aspose_tasks_cloud 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +22 -0
- data/README.md +49 -0
- data/aspose_tasks_cloud.gemspec +26 -0
- data/lib/aspose_tasks_cloud.rb +92 -0
- data/lib/aspose_tasks_cloud/api/tasks_api.rb +2585 -0
- data/lib/aspose_tasks_cloud/api_client.rb +335 -0
- data/lib/aspose_tasks_cloud/api_error.rb +24 -0
- data/lib/aspose_tasks_cloud/configuration.rb +166 -0
- data/lib/aspose_tasks_cloud/models/assignment_item.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignment_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignment_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/assignment_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignment_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/assignments_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/base_object.rb +86 -0
- data/lib/aspose_tasks_cloud/models/base_response.rb +53 -0
- data/lib/aspose_tasks_cloud/models/calendar.rb +89 -0
- data/lib/aspose_tasks_cloud/models/calendar_exception.rb +145 -0
- data/lib/aspose_tasks_cloud/models/calendar_exceptions_response.rb +63 -0
- data/lib/aspose_tasks_cloud/models/calendar_item.rb +53 -0
- data/lib/aspose_tasks_cloud/models/calendar_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/calendar_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/calendar_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/calendar_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/document_properties.rb +47 -0
- data/lib/aspose_tasks_cloud/models/document_properties_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/document_property.rb +53 -0
- data/lib/aspose_tasks_cloud/models/document_property_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute.rb +61 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_definition.rb +207 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_item.rb +53 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/extended_attribute_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/link.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_code.rb +53 -0
- data/lib/aspose_tasks_cloud/models/outline_code_definition.rb +145 -0
- data/lib/aspose_tasks_cloud/models/outline_code_item.rb +45 -0
- data/lib/aspose_tasks_cloud/models/outline_code_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/outline_code_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_code_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_mask.rb +61 -0
- data/lib/aspose_tasks_cloud/models/outline_value.rb +85 -0
- data/lib/aspose_tasks_cloud/models/recurring_info.rb +197 -0
- data/lib/aspose_tasks_cloud/models/recurring_info_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource.rb +945 -0
- data/lib/aspose_tasks_cloud/models/resource_assignment.rb +1063 -0
- data/lib/aspose_tasks_cloud/models/resource_assignments.rb +47 -0
- data/lib/aspose_tasks_cloud/models/resource_item.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/resource_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/resource_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task.rb +1595 -0
- data/lib/aspose_tasks_cloud/models/task_document.rb +63 -0
- data/lib/aspose_tasks_cloud/models/task_document_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_item.rb +85 -0
- data/lib/aspose_tasks_cloud/models/task_item_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_items.rb +47 -0
- data/lib/aspose_tasks_cloud/models/task_items_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_link.rb +85 -0
- data/lib/aspose_tasks_cloud/models/task_link_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/task_links_response.rb +63 -0
- data/lib/aspose_tasks_cloud/models/task_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/value.rb +61 -0
- data/lib/aspose_tasks_cloud/models/wbs_code_mask.rb +61 -0
- data/lib/aspose_tasks_cloud/models/wbs_definition.rb +63 -0
- data/lib/aspose_tasks_cloud/models/wbs_definition_response.rb +61 -0
- data/lib/aspose_tasks_cloud/models/week_day.rb +71 -0
- data/lib/aspose_tasks_cloud/models/working_time.rb +45 -0
- data/lib/aspose_tasks_cloud/version.rb +3 -0
- data/test/data/ExtendedAttribute.mpp +0 -0
- data/test/data/Outlinecode.mpp +0 -0
- data/test/data/ResourceWithExtAttribs.xml +345 -0
- data/test/data/sample-project-2.mpp +0 -0
- data/test/data/sample-project.mpp +0 -0
- data/test/tasks_tests.rb +430 -0
- metadata +207 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 18c840d86a3935ed8428e79ea77678ec101f678b
|
4
|
+
data.tar.gz: edd6fc1a63aeab631b5407007380c7bb79f7b413
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a50db0b8b3d868027ac64588166d2aa276d68d3e4db99af900a8051ef770615559daf908927e3134eb50047298fce834995c9f656d329b184eb1a5dab6f0112b
|
7
|
+
data.tar.gz: b1db915b3a50f1bbb6eb9bdc716fee19ab1a2b4236afe62208abcfb07df95fa69d15a5a51d0230c614dba21640923ff72ecf473f65b7f187850986ae86730a15
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2001-2016 Aspose Pty Ltd
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Aspose.Tasks Cloud SDK For Ruby
|
2
|
+
This SDK lets you use [Aspose Cloud Tasks APIs](http://www.aspose.com/cloud/project-management-api.aspx) in your Ruby web apps.
|
3
|
+
|
4
|
+
## Installing
|
5
|
+
You can simply install Aspose Tasks Cloud SDK with gem:
|
6
|
+
|
7
|
+
`gem install aspose_tasks_cloud`
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
APIs of this SDK can be called as follows:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'aspose_tasks_cloud'
|
14
|
+
|
15
|
+
class TasksUsage
|
16
|
+
|
17
|
+
include AsposeTasksCloud
|
18
|
+
include AsposeStorageCloud
|
19
|
+
|
20
|
+
def initialize
|
21
|
+
#Get App key and App SID from https://cloud.aspose.com
|
22
|
+
AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
|
23
|
+
@tasks_api = TasksApi.new
|
24
|
+
end
|
25
|
+
|
26
|
+
def upload_file(file_name)
|
27
|
+
@storage_api = StorageApi.new
|
28
|
+
response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
|
29
|
+
end
|
30
|
+
|
31
|
+
def get_task_document_with_format
|
32
|
+
#Get a project document in specified format.
|
33
|
+
file_name = "sample-project.mpp"
|
34
|
+
upload_file(file_name)
|
35
|
+
format = "pdf"
|
36
|
+
|
37
|
+
response = @tasks_api.get_task_document_with_format(file_name, format)
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
```
|
42
|
+
## Unit Tests
|
43
|
+
Aspose Tasks SDK includes a suite of unit tests within the [test](https://github.com/asposetasks/Aspose_Tasks_Cloud/blob/master/SDKs/Aspose.Tasks_Cloud_SDK_for_Ruby/test/tasks_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose Tasks SDK.
|
44
|
+
|
45
|
+
## Contact
|
46
|
+
Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.
|
47
|
+
|
48
|
+
## License
|
49
|
+
Aspose Tasks SDK is available under the MIT license. See the [LICENSE](https://github.com/asposetasks/Aspose_Tasks_Cloud/blob/master/SDKs/Aspose.Tasks_Cloud_SDK_for_Ruby/LICENSE) file for more info.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "aspose_tasks_cloud/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "aspose_tasks_cloud"
|
7
|
+
s.version = AsposeTasksCloud::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["M. Sohail Ismail"]
|
10
|
+
s.email = ["muhammad.sohail@aspose.com"]
|
11
|
+
s.homepage = "http://www.aspose.com/cloud/project-management-api.aspx"
|
12
|
+
s.summary = %q{Aspose.Tasks for Cloud}
|
13
|
+
s.description = %q{Aspose.Tasks for Cloud is a REST API for manipulating Microsoft Project documents in the cloud. It allows you to work with all aspects of a Project document including conversion. The API offers a wide range of Microsoft Project export options. The Aspose.Tasks for Cloud API allows developers to convert Project documents to various formats including XML, HTML, BMP, PNG, PDF, and XSLX. The API can be used to list document properties such as a project’s default start and finish time, minutes per week and days per month, work format, default task type, and so on. The API also provides the capability to retrieve information about each task from a Project data file hosted in the cloud. Task information such as name, ID, duration, and start and end dates, can be retrieved. In addition, the API can add new tasks to projects and retrieve information about task links and task assignments. The Aspose.Tasks API can manage project resources for documents hosted in the cloud. It supports adding a new resource, retrieve a list of project resources, and delet existing resources from the Project data. The API also facilitates retrieval of resource assignments information for resources assigned to project tasks. The API provides full access to a project’s calendar collection. Details about project calendars such as ID, name, and working days and time, can be read. New calendars can be added or deleted from hosted project data files. The API can be used to create new calendar exceptions to the Project’s calendars and retrieving a list of existing exceptions.}
|
14
|
+
s.license = "MIT"
|
15
|
+
|
16
|
+
s.add_runtime_dependency 'typhoeus', '~> 0.8'
|
17
|
+
s.add_runtime_dependency 'json', '~> 1.7'
|
18
|
+
s.add_runtime_dependency 'aspose_storage_cloud', '~> 1.0', '>= 1.0.0'
|
19
|
+
|
20
|
+
s.add_development_dependency 'minitest', '~> 5.8'
|
21
|
+
|
22
|
+
s.files = `git ls-files`.split("\n")
|
23
|
+
s.test_files = `git ls-files -- test/*`.split("\n")
|
24
|
+
s.executables = []
|
25
|
+
s.require_paths = ["lib"]
|
26
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require 'aspose_storage_cloud'
|
2
|
+
|
3
|
+
# Common files
|
4
|
+
require_relative 'aspose_tasks_cloud/api_client'
|
5
|
+
require_relative 'aspose_tasks_cloud/api_error'
|
6
|
+
require_relative 'aspose_tasks_cloud/version'
|
7
|
+
require_relative 'aspose_tasks_cloud/configuration'
|
8
|
+
|
9
|
+
# Models
|
10
|
+
require_relative 'aspose_tasks_cloud/models/base_object'
|
11
|
+
require_relative 'aspose_tasks_cloud/models/base_response'
|
12
|
+
require_relative 'aspose_tasks_cloud/models/resource_items_response'
|
13
|
+
require_relative 'aspose_tasks_cloud/models/resource_items'
|
14
|
+
require_relative 'aspose_tasks_cloud/models/resource_item'
|
15
|
+
require_relative 'aspose_tasks_cloud/models/resource_item_response'
|
16
|
+
require_relative 'aspose_tasks_cloud/models/resource_response'
|
17
|
+
require_relative 'aspose_tasks_cloud/models/resource'
|
18
|
+
require_relative 'aspose_tasks_cloud/models/extended_attribute'
|
19
|
+
require_relative 'aspose_tasks_cloud/models/outline_code'
|
20
|
+
require_relative 'aspose_tasks_cloud/models/assignments_response'
|
21
|
+
require_relative 'aspose_tasks_cloud/models/resource_assignments'
|
22
|
+
require_relative 'aspose_tasks_cloud/models/resource_assignment'
|
23
|
+
require_relative 'aspose_tasks_cloud/models/task_items_response'
|
24
|
+
require_relative 'aspose_tasks_cloud/models/task_items'
|
25
|
+
require_relative 'aspose_tasks_cloud/models/task_item'
|
26
|
+
require_relative 'aspose_tasks_cloud/models/calendar_items_response'
|
27
|
+
require_relative 'aspose_tasks_cloud/models/calendar_items'
|
28
|
+
require_relative 'aspose_tasks_cloud/models/calendar_item'
|
29
|
+
require_relative 'aspose_tasks_cloud/models/calendar'
|
30
|
+
require_relative 'aspose_tasks_cloud/models/week_day'
|
31
|
+
require_relative 'aspose_tasks_cloud/models/calendar_exception'
|
32
|
+
require_relative 'aspose_tasks_cloud/models/working_time'
|
33
|
+
require_relative 'aspose_tasks_cloud/models/calendar_item_response'
|
34
|
+
require_relative 'aspose_tasks_cloud/models/calendar_response'
|
35
|
+
require_relative 'aspose_tasks_cloud/models/calendar_exceptions_response'
|
36
|
+
require_relative 'aspose_tasks_cloud/models/assignment_items_response'
|
37
|
+
require_relative 'aspose_tasks_cloud/models/assignment_items'
|
38
|
+
require_relative 'aspose_tasks_cloud/models/assignment_item'
|
39
|
+
require_relative 'aspose_tasks_cloud/models/assignment_item_response'
|
40
|
+
require_relative 'aspose_tasks_cloud/models/assignment_response'
|
41
|
+
require_relative 'aspose_tasks_cloud/models/task_item_response'
|
42
|
+
require_relative 'aspose_tasks_cloud/models/task_response'
|
43
|
+
require_relative 'aspose_tasks_cloud/models/task'
|
44
|
+
require_relative 'aspose_tasks_cloud/models/recurring_info_response'
|
45
|
+
require_relative 'aspose_tasks_cloud/models/recurring_info'
|
46
|
+
require_relative 'aspose_tasks_cloud/models/outline_code_items_response'
|
47
|
+
require_relative 'aspose_tasks_cloud/models/outline_code_items'
|
48
|
+
require_relative 'aspose_tasks_cloud/models/outline_code_item'
|
49
|
+
require_relative 'aspose_tasks_cloud/models/outline_code_response'
|
50
|
+
require_relative 'aspose_tasks_cloud/models/outline_code_definition'
|
51
|
+
require_relative 'aspose_tasks_cloud/models/outline_value'
|
52
|
+
require_relative 'aspose_tasks_cloud/models/outline_mask'
|
53
|
+
require_relative 'aspose_tasks_cloud/models/document_properties_response'
|
54
|
+
require_relative 'aspose_tasks_cloud/models/document_properties'
|
55
|
+
require_relative 'aspose_tasks_cloud/models/document_property'
|
56
|
+
require_relative 'aspose_tasks_cloud/models/document_property_response'
|
57
|
+
require_relative 'aspose_tasks_cloud/models/task_links_response'
|
58
|
+
require_relative 'aspose_tasks_cloud/models/task_link'
|
59
|
+
require_relative 'aspose_tasks_cloud/models/task_link_response'
|
60
|
+
require_relative 'aspose_tasks_cloud/models/wbs_definition_response'
|
61
|
+
require_relative 'aspose_tasks_cloud/models/wbs_definition'
|
62
|
+
require_relative 'aspose_tasks_cloud/models/wbs_code_mask'
|
63
|
+
require_relative 'aspose_tasks_cloud/models/extended_attribute_items_response'
|
64
|
+
require_relative 'aspose_tasks_cloud/models/extended_attribute_items'
|
65
|
+
require_relative 'aspose_tasks_cloud/models/extended_attribute_item'
|
66
|
+
require_relative 'aspose_tasks_cloud/models/extended_attribute_response'
|
67
|
+
require_relative 'aspose_tasks_cloud/models/extended_attribute_definition'
|
68
|
+
require_relative 'aspose_tasks_cloud/models/value'
|
69
|
+
require_relative 'aspose_tasks_cloud/models/link'
|
70
|
+
require_relative 'aspose_tasks_cloud/models/task_document_response'
|
71
|
+
require_relative 'aspose_tasks_cloud/models/task_document'
|
72
|
+
|
73
|
+
# APIs
|
74
|
+
require_relative 'aspose_tasks_cloud/api/tasks_api'
|
75
|
+
|
76
|
+
module AsposeTasksCloud
|
77
|
+
class << self
|
78
|
+
# Configure sdk using block.
|
79
|
+
# AsposeTasksCloud.configure do |config|
|
80
|
+
# config.username = "xxx"
|
81
|
+
# config.password = "xxx"
|
82
|
+
# end
|
83
|
+
# If no block given, return the configuration singleton instance.
|
84
|
+
def configure
|
85
|
+
if block_given?
|
86
|
+
yield Configuration.instance
|
87
|
+
else
|
88
|
+
Configuration.instance
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,2585 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module AsposeTasksCloud
|
4
|
+
class TasksApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = nil)
|
8
|
+
@api_client = api_client || Configuration.api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Represents a project document.
|
12
|
+
#
|
13
|
+
# @param name The name of the file.
|
14
|
+
# @param [Hash] opts the optional parameters
|
15
|
+
# @option opts [String] :storage The document storage.
|
16
|
+
# @option opts [String] :folder The document folder.
|
17
|
+
# @return [TaskDocumentResponse]
|
18
|
+
def get_task_document(name, opts = {})
|
19
|
+
if Configuration.debugging
|
20
|
+
Configuration.logger.debug "Calling API: TasksApi#get_task_document ..."
|
21
|
+
end
|
22
|
+
|
23
|
+
# verify the required parameter 'name' is set
|
24
|
+
fail "Missing the required parameter 'name' when calling get_task_document" if name.nil?
|
25
|
+
|
26
|
+
# resource path
|
27
|
+
path = "/tasks/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
28
|
+
|
29
|
+
# query parameters
|
30
|
+
query_params = {}
|
31
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
32
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
33
|
+
|
34
|
+
# header parameters
|
35
|
+
header_params = {}
|
36
|
+
|
37
|
+
# HTTP header 'Accept' (if needed)
|
38
|
+
_header_accept = ['application/json']
|
39
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
40
|
+
|
41
|
+
# HTTP header 'Content-Type'
|
42
|
+
_header_content_type = []
|
43
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
44
|
+
|
45
|
+
# form parameters
|
46
|
+
form_params = {}
|
47
|
+
|
48
|
+
# http body (model)
|
49
|
+
post_body = nil
|
50
|
+
|
51
|
+
|
52
|
+
auth_names = []
|
53
|
+
result = @api_client.call_api(:GET, path,
|
54
|
+
:header_params => header_params,
|
55
|
+
:query_params => query_params,
|
56
|
+
:form_params => form_params,
|
57
|
+
:body => post_body,
|
58
|
+
:auth_names => auth_names,
|
59
|
+
:return_type => 'TaskDocumentResponse')
|
60
|
+
if Configuration.debugging
|
61
|
+
Configuration.logger.debug "API called: TasksApi#get_task_document. Result: #{result.inspect}"
|
62
|
+
end
|
63
|
+
return result
|
64
|
+
end
|
65
|
+
|
66
|
+
# Get a project document in specified format.
|
67
|
+
#
|
68
|
+
# @param name The name of the file.
|
69
|
+
# @param format
|
70
|
+
# @param [Hash] opts the optional parameters
|
71
|
+
# @option opts [String] :storage The document storage.
|
72
|
+
# @option opts [String] :folder The document folder.
|
73
|
+
# @return [File]
|
74
|
+
def get_task_document_with_format(name, format, opts = {})
|
75
|
+
if Configuration.debugging
|
76
|
+
Configuration.logger.debug "Calling API: TasksApi#get_task_document_with_format ..."
|
77
|
+
end
|
78
|
+
|
79
|
+
# verify the required parameter 'name' is set
|
80
|
+
fail "Missing the required parameter 'name' when calling get_task_document_with_format" if name.nil?
|
81
|
+
|
82
|
+
# verify the required parameter 'format' is set
|
83
|
+
fail "Missing the required parameter 'format' when calling get_task_document_with_format" if format.nil?
|
84
|
+
|
85
|
+
# resource path
|
86
|
+
path = "/tasks/{name}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
87
|
+
|
88
|
+
# query parameters
|
89
|
+
query_params = {}
|
90
|
+
query_params[:'format'] = format
|
91
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
92
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
93
|
+
|
94
|
+
# header parameters
|
95
|
+
header_params = {}
|
96
|
+
|
97
|
+
# HTTP header 'Accept' (if needed)
|
98
|
+
_header_accept = ['multipart/form-data']
|
99
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
100
|
+
|
101
|
+
# HTTP header 'Content-Type'
|
102
|
+
_header_content_type = []
|
103
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
104
|
+
|
105
|
+
# form parameters
|
106
|
+
form_params = {}
|
107
|
+
|
108
|
+
# http body (model)
|
109
|
+
post_body = nil
|
110
|
+
|
111
|
+
|
112
|
+
auth_names = []
|
113
|
+
result = @api_client.call_api(:GET, path,
|
114
|
+
:header_params => header_params,
|
115
|
+
:query_params => query_params,
|
116
|
+
:form_params => form_params,
|
117
|
+
:body => post_body,
|
118
|
+
:auth_names => auth_names,
|
119
|
+
:return_type => 'File')
|
120
|
+
if Configuration.debugging
|
121
|
+
Configuration.logger.debug "API called: TasksApi#get_task_document_with_format. Result: #{result.inspect}"
|
122
|
+
end
|
123
|
+
return result
|
124
|
+
end
|
125
|
+
|
126
|
+
# Read project assignment items.
|
127
|
+
#
|
128
|
+
# @param name The name of the file.
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [String] :storage The document storage.
|
131
|
+
# @option opts [String] :folder The document folder.
|
132
|
+
# @return [AssignmentItemsResponse]
|
133
|
+
def get_project_assignments(name, opts = {})
|
134
|
+
if Configuration.debugging
|
135
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_assignments ..."
|
136
|
+
end
|
137
|
+
|
138
|
+
# verify the required parameter 'name' is set
|
139
|
+
fail "Missing the required parameter 'name' when calling get_project_assignments" if name.nil?
|
140
|
+
|
141
|
+
# resource path
|
142
|
+
path = "/tasks/{name}/assignments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
143
|
+
|
144
|
+
# query parameters
|
145
|
+
query_params = {}
|
146
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
147
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
148
|
+
|
149
|
+
# header parameters
|
150
|
+
header_params = {}
|
151
|
+
|
152
|
+
# HTTP header 'Accept' (if needed)
|
153
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
154
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
155
|
+
|
156
|
+
# HTTP header 'Content-Type'
|
157
|
+
_header_content_type = []
|
158
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
159
|
+
|
160
|
+
# form parameters
|
161
|
+
form_params = {}
|
162
|
+
|
163
|
+
# http body (model)
|
164
|
+
post_body = nil
|
165
|
+
|
166
|
+
|
167
|
+
auth_names = []
|
168
|
+
result = @api_client.call_api(:GET, path,
|
169
|
+
:header_params => header_params,
|
170
|
+
:query_params => query_params,
|
171
|
+
:form_params => form_params,
|
172
|
+
:body => post_body,
|
173
|
+
:auth_names => auth_names,
|
174
|
+
:return_type => 'AssignmentItemsResponse')
|
175
|
+
if Configuration.debugging
|
176
|
+
Configuration.logger.debug "API called: TasksApi#get_project_assignments. Result: #{result.inspect}"
|
177
|
+
end
|
178
|
+
return result
|
179
|
+
end
|
180
|
+
|
181
|
+
# Adds a new assignment to a project and returns assignment item in a response.
|
182
|
+
#
|
183
|
+
# @param name The name of the file.
|
184
|
+
# @param task_uid The unique id of the task to be assigned.
|
185
|
+
# @param resource_uid The unique id of the resource to be assigned.
|
186
|
+
# @param [Hash] opts the optional parameters
|
187
|
+
# @option opts [Float] :units The units for the new assignment. Default value is 1.
|
188
|
+
# @option opts [String] :file_name 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.
|
189
|
+
# @option opts [String] :storage The document storage.
|
190
|
+
# @option opts [String] :folder The document folder.
|
191
|
+
# @return [AssignmentItemResponse]
|
192
|
+
def post_project_assignment(name, task_uid, resource_uid, opts = {})
|
193
|
+
if Configuration.debugging
|
194
|
+
Configuration.logger.debug "Calling API: TasksApi#post_project_assignment ..."
|
195
|
+
end
|
196
|
+
|
197
|
+
# verify the required parameter 'name' is set
|
198
|
+
fail "Missing the required parameter 'name' when calling post_project_assignment" if name.nil?
|
199
|
+
|
200
|
+
# verify the required parameter 'task_uid' is set
|
201
|
+
fail "Missing the required parameter 'task_uid' when calling post_project_assignment" if task_uid.nil?
|
202
|
+
|
203
|
+
# verify the required parameter 'resource_uid' is set
|
204
|
+
fail "Missing the required parameter 'resource_uid' when calling post_project_assignment" if resource_uid.nil?
|
205
|
+
|
206
|
+
# resource path
|
207
|
+
path = "/tasks/{name}/assignments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
208
|
+
|
209
|
+
# query parameters
|
210
|
+
query_params = {}
|
211
|
+
query_params[:'taskUid'] = task_uid
|
212
|
+
query_params[:'resourceUid'] = resource_uid
|
213
|
+
query_params[:'units'] = opts[:'units'] if opts[:'units']
|
214
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
215
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
216
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
217
|
+
|
218
|
+
# header parameters
|
219
|
+
header_params = {}
|
220
|
+
|
221
|
+
# HTTP header 'Accept' (if needed)
|
222
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
223
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
224
|
+
|
225
|
+
# HTTP header 'Content-Type'
|
226
|
+
_header_content_type = []
|
227
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
228
|
+
|
229
|
+
# form parameters
|
230
|
+
form_params = {}
|
231
|
+
|
232
|
+
# http body (model)
|
233
|
+
post_body = nil
|
234
|
+
|
235
|
+
|
236
|
+
auth_names = []
|
237
|
+
result = @api_client.call_api(:POST, path,
|
238
|
+
:header_params => header_params,
|
239
|
+
:query_params => query_params,
|
240
|
+
:form_params => form_params,
|
241
|
+
:body => post_body,
|
242
|
+
:auth_names => auth_names,
|
243
|
+
:return_type => 'AssignmentItemResponse')
|
244
|
+
if Configuration.debugging
|
245
|
+
Configuration.logger.debug "API called: TasksApi#post_project_assignment. Result: #{result.inspect}"
|
246
|
+
end
|
247
|
+
return result
|
248
|
+
end
|
249
|
+
|
250
|
+
# Read project assignment.
|
251
|
+
#
|
252
|
+
# @param name The name of the file.
|
253
|
+
# @param assignment_uid Assignment Uid
|
254
|
+
# @param [Hash] opts the optional parameters
|
255
|
+
# @option opts [String] :storage The document storage.
|
256
|
+
# @option opts [String] :folder The document folder.
|
257
|
+
# @return [AssignmentResponse]
|
258
|
+
def get_project_assignment(name, assignment_uid, opts = {})
|
259
|
+
if Configuration.debugging
|
260
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_assignment ..."
|
261
|
+
end
|
262
|
+
|
263
|
+
# verify the required parameter 'name' is set
|
264
|
+
fail "Missing the required parameter 'name' when calling get_project_assignment" if name.nil?
|
265
|
+
|
266
|
+
# verify the required parameter 'assignment_uid' is set
|
267
|
+
fail "Missing the required parameter 'assignment_uid' when calling get_project_assignment" if assignment_uid.nil?
|
268
|
+
|
269
|
+
# resource path
|
270
|
+
path = "/tasks/{name}/assignments/{assignmentUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'assignmentUid' + '}', assignment_uid.to_s)
|
271
|
+
|
272
|
+
# query parameters
|
273
|
+
query_params = {}
|
274
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
275
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
276
|
+
|
277
|
+
# header parameters
|
278
|
+
header_params = {}
|
279
|
+
|
280
|
+
# HTTP header 'Accept' (if needed)
|
281
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
282
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
283
|
+
|
284
|
+
# HTTP header 'Content-Type'
|
285
|
+
_header_content_type = []
|
286
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
287
|
+
|
288
|
+
# form parameters
|
289
|
+
form_params = {}
|
290
|
+
|
291
|
+
# http body (model)
|
292
|
+
post_body = nil
|
293
|
+
|
294
|
+
|
295
|
+
auth_names = []
|
296
|
+
result = @api_client.call_api(:GET, path,
|
297
|
+
:header_params => header_params,
|
298
|
+
:query_params => query_params,
|
299
|
+
:form_params => form_params,
|
300
|
+
:body => post_body,
|
301
|
+
:auth_names => auth_names,
|
302
|
+
:return_type => 'AssignmentResponse')
|
303
|
+
if Configuration.debugging
|
304
|
+
Configuration.logger.debug "API called: TasksApi#get_project_assignment. Result: #{result.inspect}"
|
305
|
+
end
|
306
|
+
return result
|
307
|
+
end
|
308
|
+
|
309
|
+
# Deletes a project assignment with all references to it.
|
310
|
+
#
|
311
|
+
# @param name The name of the file.
|
312
|
+
# @param assignment_uid assignment Uid
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [String] :storage The document storage.
|
315
|
+
# @option opts [String] :folder The document folder.
|
316
|
+
# @option opts [String] :file_name 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.
|
317
|
+
# @return [BaseResponse]
|
318
|
+
def delete_project_assignment(name, assignment_uid, opts = {})
|
319
|
+
if Configuration.debugging
|
320
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_project_assignment ..."
|
321
|
+
end
|
322
|
+
|
323
|
+
# verify the required parameter 'name' is set
|
324
|
+
fail "Missing the required parameter 'name' when calling delete_project_assignment" if name.nil?
|
325
|
+
|
326
|
+
# verify the required parameter 'assignment_uid' is set
|
327
|
+
fail "Missing the required parameter 'assignment_uid' when calling delete_project_assignment" if assignment_uid.nil?
|
328
|
+
|
329
|
+
# resource path
|
330
|
+
path = "/tasks/{name}/assignments/{assignmentUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'assignmentUid' + '}', assignment_uid.to_s)
|
331
|
+
|
332
|
+
# query parameters
|
333
|
+
query_params = {}
|
334
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
335
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
336
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
337
|
+
|
338
|
+
# header parameters
|
339
|
+
header_params = {}
|
340
|
+
|
341
|
+
# HTTP header 'Accept' (if needed)
|
342
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
343
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
344
|
+
|
345
|
+
# HTTP header 'Content-Type'
|
346
|
+
_header_content_type = []
|
347
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
348
|
+
|
349
|
+
# form parameters
|
350
|
+
form_params = {}
|
351
|
+
|
352
|
+
# http body (model)
|
353
|
+
post_body = nil
|
354
|
+
|
355
|
+
|
356
|
+
auth_names = []
|
357
|
+
result = @api_client.call_api(:DELETE, path,
|
358
|
+
:header_params => header_params,
|
359
|
+
:query_params => query_params,
|
360
|
+
:form_params => form_params,
|
361
|
+
:body => post_body,
|
362
|
+
:auth_names => auth_names,
|
363
|
+
:return_type => 'BaseResponse')
|
364
|
+
if Configuration.debugging
|
365
|
+
Configuration.logger.debug "API called: TasksApi#delete_project_assignment. Result: #{result.inspect}"
|
366
|
+
end
|
367
|
+
return result
|
368
|
+
end
|
369
|
+
|
370
|
+
# Read project calendar items.
|
371
|
+
#
|
372
|
+
# @param name The name of the file.
|
373
|
+
# @param [Hash] opts the optional parameters
|
374
|
+
# @option opts [String] :storage The document storage.
|
375
|
+
# @option opts [String] :folder The document folder.
|
376
|
+
# @return [CalendarItemsResponse]
|
377
|
+
def get_project_calendars(name, opts = {})
|
378
|
+
if Configuration.debugging
|
379
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_calendars ..."
|
380
|
+
end
|
381
|
+
|
382
|
+
# verify the required parameter 'name' is set
|
383
|
+
fail "Missing the required parameter 'name' when calling get_project_calendars" if name.nil?
|
384
|
+
|
385
|
+
# resource path
|
386
|
+
path = "/tasks/{name}/calendars".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
387
|
+
|
388
|
+
# query parameters
|
389
|
+
query_params = {}
|
390
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
391
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
392
|
+
|
393
|
+
# header parameters
|
394
|
+
header_params = {}
|
395
|
+
|
396
|
+
# HTTP header 'Accept' (if needed)
|
397
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
398
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
399
|
+
|
400
|
+
# HTTP header 'Content-Type'
|
401
|
+
_header_content_type = []
|
402
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
403
|
+
|
404
|
+
# form parameters
|
405
|
+
form_params = {}
|
406
|
+
|
407
|
+
# http body (model)
|
408
|
+
post_body = nil
|
409
|
+
|
410
|
+
|
411
|
+
auth_names = []
|
412
|
+
result = @api_client.call_api(:GET, path,
|
413
|
+
:header_params => header_params,
|
414
|
+
:query_params => query_params,
|
415
|
+
:form_params => form_params,
|
416
|
+
:body => post_body,
|
417
|
+
:auth_names => auth_names,
|
418
|
+
:return_type => 'CalendarItemsResponse')
|
419
|
+
if Configuration.debugging
|
420
|
+
Configuration.logger.debug "API called: TasksApi#get_project_calendars. Result: #{result.inspect}"
|
421
|
+
end
|
422
|
+
return result
|
423
|
+
end
|
424
|
+
|
425
|
+
# Adds a new calendar to project file.
|
426
|
+
#
|
427
|
+
# @param name The name of the file.
|
428
|
+
# @param calendar Calendar DTO
|
429
|
+
# @param [Hash] opts the optional parameters
|
430
|
+
# @option opts [String] :file_name 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.
|
431
|
+
# @option opts [String] :storage The document storage.
|
432
|
+
# @option opts [String] :folder The document folder.
|
433
|
+
# @return [CalendarItemResponse]
|
434
|
+
def post_project_calendar(name, calendar, opts = {})
|
435
|
+
if Configuration.debugging
|
436
|
+
Configuration.logger.debug "Calling API: TasksApi#post_project_calendar ..."
|
437
|
+
end
|
438
|
+
|
439
|
+
# verify the required parameter 'name' is set
|
440
|
+
fail "Missing the required parameter 'name' when calling post_project_calendar" if name.nil?
|
441
|
+
|
442
|
+
# verify the required parameter 'calendar' is set
|
443
|
+
fail "Missing the required parameter 'calendar' when calling post_project_calendar" if calendar.nil?
|
444
|
+
|
445
|
+
# resource path
|
446
|
+
path = "/tasks/{name}/calendars".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
447
|
+
|
448
|
+
# query parameters
|
449
|
+
query_params = {}
|
450
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
451
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
452
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
453
|
+
|
454
|
+
# header parameters
|
455
|
+
header_params = {}
|
456
|
+
|
457
|
+
# HTTP header 'Accept' (if needed)
|
458
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
459
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
460
|
+
|
461
|
+
# HTTP header 'Content-Type'
|
462
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
463
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
464
|
+
|
465
|
+
# form parameters
|
466
|
+
form_params = {}
|
467
|
+
|
468
|
+
# http body (model)
|
469
|
+
post_body = @api_client.object_to_http_body(calendar)
|
470
|
+
|
471
|
+
|
472
|
+
auth_names = []
|
473
|
+
result = @api_client.call_api(:POST, path,
|
474
|
+
:header_params => header_params,
|
475
|
+
:query_params => query_params,
|
476
|
+
:form_params => form_params,
|
477
|
+
:body => post_body,
|
478
|
+
:auth_names => auth_names,
|
479
|
+
:return_type => 'CalendarItemResponse')
|
480
|
+
if Configuration.debugging
|
481
|
+
Configuration.logger.debug "API called: TasksApi#post_project_calendar. Result: #{result.inspect}"
|
482
|
+
end
|
483
|
+
return result
|
484
|
+
end
|
485
|
+
|
486
|
+
# Represents a project calendar.
|
487
|
+
#
|
488
|
+
# @param name The name of the file.
|
489
|
+
# @param calendar_uid Calendar Uid
|
490
|
+
# @param [Hash] opts the optional parameters
|
491
|
+
# @option opts [String] :storage The document storage.
|
492
|
+
# @option opts [String] :folder The document folder.
|
493
|
+
# @return [CalendarResponse]
|
494
|
+
def get_project_calendar(name, calendar_uid, opts = {})
|
495
|
+
if Configuration.debugging
|
496
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_calendar ..."
|
497
|
+
end
|
498
|
+
|
499
|
+
# verify the required parameter 'name' is set
|
500
|
+
fail "Missing the required parameter 'name' when calling get_project_calendar" if name.nil?
|
501
|
+
|
502
|
+
# verify the required parameter 'calendar_uid' is set
|
503
|
+
fail "Missing the required parameter 'calendar_uid' when calling get_project_calendar" if calendar_uid.nil?
|
504
|
+
|
505
|
+
# resource path
|
506
|
+
path = "/tasks/{name}/calendars/{calendarUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'calendarUid' + '}', calendar_uid.to_s)
|
507
|
+
|
508
|
+
# query parameters
|
509
|
+
query_params = {}
|
510
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
511
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
512
|
+
|
513
|
+
# header parameters
|
514
|
+
header_params = {}
|
515
|
+
|
516
|
+
# HTTP header 'Accept' (if needed)
|
517
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
518
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
519
|
+
|
520
|
+
# HTTP header 'Content-Type'
|
521
|
+
_header_content_type = []
|
522
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
523
|
+
|
524
|
+
# form parameters
|
525
|
+
form_params = {}
|
526
|
+
|
527
|
+
# http body (model)
|
528
|
+
post_body = nil
|
529
|
+
|
530
|
+
|
531
|
+
auth_names = []
|
532
|
+
result = @api_client.call_api(:GET, path,
|
533
|
+
:header_params => header_params,
|
534
|
+
:query_params => query_params,
|
535
|
+
:form_params => form_params,
|
536
|
+
:body => post_body,
|
537
|
+
:auth_names => auth_names,
|
538
|
+
:return_type => 'CalendarResponse')
|
539
|
+
if Configuration.debugging
|
540
|
+
Configuration.logger.debug "API called: TasksApi#get_project_calendar. Result: #{result.inspect}"
|
541
|
+
end
|
542
|
+
return result
|
543
|
+
end
|
544
|
+
|
545
|
+
# Deletes a project calendar
|
546
|
+
#
|
547
|
+
# @param name The name of the file.
|
548
|
+
# @param calendar_uid Calendar Uid
|
549
|
+
# @param [Hash] opts the optional parameters
|
550
|
+
# @option opts [String] :storage The document storage.
|
551
|
+
# @option opts [String] :folder The document folder.
|
552
|
+
# @option opts [String] :file_name 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.
|
553
|
+
# @return [BaseResponse]
|
554
|
+
def delete_project_calendar(name, calendar_uid, opts = {})
|
555
|
+
if Configuration.debugging
|
556
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_project_calendar ..."
|
557
|
+
end
|
558
|
+
|
559
|
+
# verify the required parameter 'name' is set
|
560
|
+
fail "Missing the required parameter 'name' when calling delete_project_calendar" if name.nil?
|
561
|
+
|
562
|
+
# verify the required parameter 'calendar_uid' is set
|
563
|
+
fail "Missing the required parameter 'calendar_uid' when calling delete_project_calendar" if calendar_uid.nil?
|
564
|
+
|
565
|
+
# resource path
|
566
|
+
path = "/tasks/{name}/calendars/{calendarUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'calendarUid' + '}', calendar_uid.to_s)
|
567
|
+
|
568
|
+
# query parameters
|
569
|
+
query_params = {}
|
570
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
571
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
572
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
573
|
+
|
574
|
+
# header parameters
|
575
|
+
header_params = {}
|
576
|
+
|
577
|
+
# HTTP header 'Accept' (if needed)
|
578
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
579
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
580
|
+
|
581
|
+
# HTTP header 'Content-Type'
|
582
|
+
_header_content_type = []
|
583
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
584
|
+
|
585
|
+
# form parameters
|
586
|
+
form_params = {}
|
587
|
+
|
588
|
+
# http body (model)
|
589
|
+
post_body = nil
|
590
|
+
|
591
|
+
|
592
|
+
auth_names = []
|
593
|
+
result = @api_client.call_api(:DELETE, path,
|
594
|
+
:header_params => header_params,
|
595
|
+
:query_params => query_params,
|
596
|
+
:form_params => form_params,
|
597
|
+
:body => post_body,
|
598
|
+
:auth_names => auth_names,
|
599
|
+
:return_type => 'BaseResponse')
|
600
|
+
if Configuration.debugging
|
601
|
+
Configuration.logger.debug "API called: TasksApi#delete_project_calendar. Result: #{result.inspect}"
|
602
|
+
end
|
603
|
+
return result
|
604
|
+
end
|
605
|
+
|
606
|
+
# Get list of calendar exceptions.
|
607
|
+
#
|
608
|
+
# @param name The name of the file.
|
609
|
+
# @param calendar_uid Calendar Uid
|
610
|
+
# @param [Hash] opts the optional parameters
|
611
|
+
# @option opts [String] :storage The document storage.
|
612
|
+
# @option opts [String] :folder The document folder.
|
613
|
+
# @return [CalendarExceptionsResponse]
|
614
|
+
def get_calendar_exceptions(name, calendar_uid, opts = {})
|
615
|
+
if Configuration.debugging
|
616
|
+
Configuration.logger.debug "Calling API: TasksApi#get_calendar_exceptions ..."
|
617
|
+
end
|
618
|
+
|
619
|
+
# verify the required parameter 'name' is set
|
620
|
+
fail "Missing the required parameter 'name' when calling get_calendar_exceptions" if name.nil?
|
621
|
+
|
622
|
+
# verify the required parameter 'calendar_uid' is set
|
623
|
+
fail "Missing the required parameter 'calendar_uid' when calling get_calendar_exceptions" if calendar_uid.nil?
|
624
|
+
|
625
|
+
# resource path
|
626
|
+
path = "/tasks/{name}/calendars/{calendarUid}/calendarExceptions".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'calendarUid' + '}', calendar_uid.to_s)
|
627
|
+
|
628
|
+
# query parameters
|
629
|
+
query_params = {}
|
630
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
631
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
632
|
+
|
633
|
+
# header parameters
|
634
|
+
header_params = {}
|
635
|
+
|
636
|
+
# HTTP header 'Accept' (if needed)
|
637
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
638
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
639
|
+
|
640
|
+
# HTTP header 'Content-Type'
|
641
|
+
_header_content_type = []
|
642
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
643
|
+
|
644
|
+
# form parameters
|
645
|
+
form_params = {}
|
646
|
+
|
647
|
+
# http body (model)
|
648
|
+
post_body = nil
|
649
|
+
|
650
|
+
|
651
|
+
auth_names = []
|
652
|
+
result = @api_client.call_api(:GET, path,
|
653
|
+
:header_params => header_params,
|
654
|
+
:query_params => query_params,
|
655
|
+
:form_params => form_params,
|
656
|
+
:body => post_body,
|
657
|
+
:auth_names => auth_names,
|
658
|
+
:return_type => 'CalendarExceptionsResponse')
|
659
|
+
if Configuration.debugging
|
660
|
+
Configuration.logger.debug "API called: TasksApi#get_calendar_exceptions. Result: #{result.inspect}"
|
661
|
+
end
|
662
|
+
return result
|
663
|
+
end
|
664
|
+
|
665
|
+
# Adds a new calendar exception to a calendar.
|
666
|
+
#
|
667
|
+
# @param name The name of the file.
|
668
|
+
# @param calendar_uid Calendar Uid
|
669
|
+
# @param calendar_exception CalendarException DTO
|
670
|
+
# @param [Hash] opts the optional parameters
|
671
|
+
# @option opts [String] :file_name 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.
|
672
|
+
# @option opts [String] :storage The document storage.
|
673
|
+
# @option opts [String] :folder The document folder.
|
674
|
+
# @return [BaseResponse]
|
675
|
+
def post_calendar_exceptions(name, calendar_uid, calendar_exception, opts = {})
|
676
|
+
if Configuration.debugging
|
677
|
+
Configuration.logger.debug "Calling API: TasksApi#post_calendar_exceptions ..."
|
678
|
+
end
|
679
|
+
|
680
|
+
# verify the required parameter 'name' is set
|
681
|
+
fail "Missing the required parameter 'name' when calling post_calendar_exceptions" if name.nil?
|
682
|
+
|
683
|
+
# verify the required parameter 'calendar_uid' is set
|
684
|
+
fail "Missing the required parameter 'calendar_uid' when calling post_calendar_exceptions" if calendar_uid.nil?
|
685
|
+
|
686
|
+
# verify the required parameter 'calendar_exception' is set
|
687
|
+
fail "Missing the required parameter 'calendar_exception' when calling post_calendar_exceptions" if calendar_exception.nil?
|
688
|
+
|
689
|
+
# resource path
|
690
|
+
path = "/tasks/{name}/calendars/{calendarUid}/calendarExceptions".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'calendarUid' + '}', calendar_uid.to_s)
|
691
|
+
|
692
|
+
# query parameters
|
693
|
+
query_params = {}
|
694
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
695
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
696
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
697
|
+
|
698
|
+
# header parameters
|
699
|
+
header_params = {}
|
700
|
+
|
701
|
+
# HTTP header 'Accept' (if needed)
|
702
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
703
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
704
|
+
|
705
|
+
# HTTP header 'Content-Type'
|
706
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
707
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
708
|
+
|
709
|
+
# form parameters
|
710
|
+
form_params = {}
|
711
|
+
|
712
|
+
# http body (model)
|
713
|
+
post_body = @api_client.object_to_http_body(calendar_exception)
|
714
|
+
|
715
|
+
|
716
|
+
auth_names = []
|
717
|
+
result = @api_client.call_api(:POST, path,
|
718
|
+
:header_params => header_params,
|
719
|
+
:query_params => query_params,
|
720
|
+
:form_params => form_params,
|
721
|
+
:body => post_body,
|
722
|
+
:auth_names => auth_names,
|
723
|
+
:return_type => 'BaseResponse')
|
724
|
+
if Configuration.debugging
|
725
|
+
Configuration.logger.debug "API called: TasksApi#post_calendar_exceptions. Result: #{result.inspect}"
|
726
|
+
end
|
727
|
+
return result
|
728
|
+
end
|
729
|
+
|
730
|
+
# Updates calendar exception.
|
731
|
+
#
|
732
|
+
# @param name The name of the file.
|
733
|
+
# @param calendar_uid Calendar Uid
|
734
|
+
# @param index Calendar exception index
|
735
|
+
# @param calendar_exception CalendarException DTO
|
736
|
+
# @param [Hash] opts the optional parameters
|
737
|
+
# @option opts [String] :file_name 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.
|
738
|
+
# @option opts [String] :storage The document storage.
|
739
|
+
# @option opts [String] :folder The document folder.
|
740
|
+
# @return [BaseResponse]
|
741
|
+
def put_calendar_exception(name, calendar_uid, index, calendar_exception, opts = {})
|
742
|
+
if Configuration.debugging
|
743
|
+
Configuration.logger.debug "Calling API: TasksApi#put_calendar_exception ..."
|
744
|
+
end
|
745
|
+
|
746
|
+
# verify the required parameter 'name' is set
|
747
|
+
fail "Missing the required parameter 'name' when calling put_calendar_exception" if name.nil?
|
748
|
+
|
749
|
+
# verify the required parameter 'calendar_uid' is set
|
750
|
+
fail "Missing the required parameter 'calendar_uid' when calling put_calendar_exception" if calendar_uid.nil?
|
751
|
+
|
752
|
+
# verify the required parameter 'index' is set
|
753
|
+
fail "Missing the required parameter 'index' when calling put_calendar_exception" if index.nil?
|
754
|
+
|
755
|
+
# verify the required parameter 'calendar_exception' is set
|
756
|
+
fail "Missing the required parameter 'calendar_exception' when calling put_calendar_exception" if calendar_exception.nil?
|
757
|
+
|
758
|
+
# resource path
|
759
|
+
path = "/tasks/{name}/calendars/{calendarUid}/calendarExceptions/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'calendarUid' + '}', calendar_uid.to_s).sub('{' + 'index' + '}', index.to_s)
|
760
|
+
|
761
|
+
# query parameters
|
762
|
+
query_params = {}
|
763
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
764
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
765
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
766
|
+
|
767
|
+
# header parameters
|
768
|
+
header_params = {}
|
769
|
+
|
770
|
+
# HTTP header 'Accept' (if needed)
|
771
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
772
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
773
|
+
|
774
|
+
# HTTP header 'Content-Type'
|
775
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
776
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
777
|
+
|
778
|
+
# form parameters
|
779
|
+
form_params = {}
|
780
|
+
|
781
|
+
# http body (model)
|
782
|
+
post_body = @api_client.object_to_http_body(calendar_exception)
|
783
|
+
|
784
|
+
|
785
|
+
auth_names = []
|
786
|
+
result = @api_client.call_api(:PUT, path,
|
787
|
+
:header_params => header_params,
|
788
|
+
:query_params => query_params,
|
789
|
+
:form_params => form_params,
|
790
|
+
:body => post_body,
|
791
|
+
:auth_names => auth_names,
|
792
|
+
:return_type => 'BaseResponse')
|
793
|
+
if Configuration.debugging
|
794
|
+
Configuration.logger.debug "API called: TasksApi#put_calendar_exception. Result: #{result.inspect}"
|
795
|
+
end
|
796
|
+
return result
|
797
|
+
end
|
798
|
+
|
799
|
+
# Deletes calendar exception from calendar exceptions collection.
|
800
|
+
#
|
801
|
+
# @param name The name of the file.
|
802
|
+
# @param calendar_uid Calendar Uid
|
803
|
+
# @param index Calendar exception index
|
804
|
+
# @param [Hash] opts the optional parameters
|
805
|
+
# @option opts [String] :file_name 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.
|
806
|
+
# @option opts [String] :storage The document storage.
|
807
|
+
# @option opts [String] :folder The document folder.
|
808
|
+
# @return [BaseResponse]
|
809
|
+
def delete_calendar_exception(name, calendar_uid, index, opts = {})
|
810
|
+
if Configuration.debugging
|
811
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_calendar_exception ..."
|
812
|
+
end
|
813
|
+
|
814
|
+
# verify the required parameter 'name' is set
|
815
|
+
fail "Missing the required parameter 'name' when calling delete_calendar_exception" if name.nil?
|
816
|
+
|
817
|
+
# verify the required parameter 'calendar_uid' is set
|
818
|
+
fail "Missing the required parameter 'calendar_uid' when calling delete_calendar_exception" if calendar_uid.nil?
|
819
|
+
|
820
|
+
# verify the required parameter 'index' is set
|
821
|
+
fail "Missing the required parameter 'index' when calling delete_calendar_exception" if index.nil?
|
822
|
+
|
823
|
+
# resource path
|
824
|
+
path = "/tasks/{name}/calendars/{calendarUid}/calendarExceptions/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'calendarUid' + '}', calendar_uid.to_s).sub('{' + 'index' + '}', index.to_s)
|
825
|
+
|
826
|
+
# query parameters
|
827
|
+
query_params = {}
|
828
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
829
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
830
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
831
|
+
|
832
|
+
# header parameters
|
833
|
+
header_params = {}
|
834
|
+
|
835
|
+
# HTTP header 'Accept' (if needed)
|
836
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
837
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
838
|
+
|
839
|
+
# HTTP header 'Content-Type'
|
840
|
+
_header_content_type = []
|
841
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
842
|
+
|
843
|
+
# form parameters
|
844
|
+
form_params = {}
|
845
|
+
|
846
|
+
# http body (model)
|
847
|
+
post_body = nil
|
848
|
+
|
849
|
+
|
850
|
+
auth_names = []
|
851
|
+
result = @api_client.call_api(:DELETE, path,
|
852
|
+
:header_params => header_params,
|
853
|
+
:query_params => query_params,
|
854
|
+
:form_params => form_params,
|
855
|
+
:body => post_body,
|
856
|
+
:auth_names => auth_names,
|
857
|
+
:return_type => 'BaseResponse')
|
858
|
+
if Configuration.debugging
|
859
|
+
Configuration.logger.debug "API called: TasksApi#delete_calendar_exception. Result: #{result.inspect}"
|
860
|
+
end
|
861
|
+
return result
|
862
|
+
end
|
863
|
+
|
864
|
+
# Returns created report in PDF format.
|
865
|
+
#
|
866
|
+
# @param name The name of the file.
|
867
|
+
# @param [Hash] opts the optional parameters
|
868
|
+
# @option opts [String] :storage The document storage.
|
869
|
+
# @option opts [String] :folder The document folder.
|
870
|
+
# @return [TaskItemsResponse]
|
871
|
+
def get_critical_path(name, opts = {})
|
872
|
+
if Configuration.debugging
|
873
|
+
Configuration.logger.debug "Calling API: TasksApi#get_critical_path ..."
|
874
|
+
end
|
875
|
+
|
876
|
+
# verify the required parameter 'name' is set
|
877
|
+
fail "Missing the required parameter 'name' when calling get_critical_path" if name.nil?
|
878
|
+
|
879
|
+
# resource path
|
880
|
+
path = "/tasks/{name}/criticalPath".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
881
|
+
|
882
|
+
# query parameters
|
883
|
+
query_params = {}
|
884
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
885
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
886
|
+
|
887
|
+
# header parameters
|
888
|
+
header_params = {}
|
889
|
+
|
890
|
+
# HTTP header 'Accept' (if needed)
|
891
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
892
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
893
|
+
|
894
|
+
# HTTP header 'Content-Type'
|
895
|
+
_header_content_type = []
|
896
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
897
|
+
|
898
|
+
# form parameters
|
899
|
+
form_params = {}
|
900
|
+
|
901
|
+
# http body (model)
|
902
|
+
post_body = nil
|
903
|
+
|
904
|
+
|
905
|
+
auth_names = []
|
906
|
+
result = @api_client.call_api(:GET, path,
|
907
|
+
:header_params => header_params,
|
908
|
+
:query_params => query_params,
|
909
|
+
:form_params => form_params,
|
910
|
+
:body => post_body,
|
911
|
+
:auth_names => auth_names,
|
912
|
+
:return_type => 'TaskItemsResponse')
|
913
|
+
if Configuration.debugging
|
914
|
+
Configuration.logger.debug "API called: TasksApi#get_critical_path. Result: #{result.inspect}"
|
915
|
+
end
|
916
|
+
return result
|
917
|
+
end
|
918
|
+
|
919
|
+
# Read document properties.
|
920
|
+
#
|
921
|
+
# @param name The document name.
|
922
|
+
# @param [Hash] opts the optional parameters
|
923
|
+
# @option opts [String] :storage The document storage.
|
924
|
+
# @option opts [String] :folder The document folder.
|
925
|
+
# @return [DocumentPropertiesResponse]
|
926
|
+
def get_document_properties(name, opts = {})
|
927
|
+
if Configuration.debugging
|
928
|
+
Configuration.logger.debug "Calling API: TasksApi#get_document_properties ..."
|
929
|
+
end
|
930
|
+
|
931
|
+
# verify the required parameter 'name' is set
|
932
|
+
fail "Missing the required parameter 'name' when calling get_document_properties" if name.nil?
|
933
|
+
|
934
|
+
# resource path
|
935
|
+
path = "/tasks/{name}/documentproperties".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
936
|
+
|
937
|
+
# query parameters
|
938
|
+
query_params = {}
|
939
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
940
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
941
|
+
|
942
|
+
# header parameters
|
943
|
+
header_params = {}
|
944
|
+
|
945
|
+
# HTTP header 'Accept' (if needed)
|
946
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
947
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
948
|
+
|
949
|
+
# HTTP header 'Content-Type'
|
950
|
+
_header_content_type = []
|
951
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
952
|
+
|
953
|
+
# form parameters
|
954
|
+
form_params = {}
|
955
|
+
|
956
|
+
# http body (model)
|
957
|
+
post_body = nil
|
958
|
+
|
959
|
+
|
960
|
+
auth_names = []
|
961
|
+
result = @api_client.call_api(:GET, path,
|
962
|
+
:header_params => header_params,
|
963
|
+
:query_params => query_params,
|
964
|
+
:form_params => form_params,
|
965
|
+
:body => post_body,
|
966
|
+
:auth_names => auth_names,
|
967
|
+
:return_type => 'DocumentPropertiesResponse')
|
968
|
+
if Configuration.debugging
|
969
|
+
Configuration.logger.debug "API called: TasksApi#get_document_properties. Result: #{result.inspect}"
|
970
|
+
end
|
971
|
+
return result
|
972
|
+
end
|
973
|
+
|
974
|
+
# Read document property by name.
|
975
|
+
#
|
976
|
+
# @param name The document name.
|
977
|
+
# @param property_name The property name.
|
978
|
+
# @param [Hash] opts the optional parameters
|
979
|
+
# @option opts [String] :storage The document storage.
|
980
|
+
# @option opts [String] :folder The document folder.
|
981
|
+
# @return [DocumentPropertyResponse]
|
982
|
+
def get_document_property(name, property_name, opts = {})
|
983
|
+
if Configuration.debugging
|
984
|
+
Configuration.logger.debug "Calling API: TasksApi#get_document_property ..."
|
985
|
+
end
|
986
|
+
|
987
|
+
# verify the required parameter 'name' is set
|
988
|
+
fail "Missing the required parameter 'name' when calling get_document_property" if name.nil?
|
989
|
+
|
990
|
+
# verify the required parameter 'property_name' is set
|
991
|
+
fail "Missing the required parameter 'property_name' when calling get_document_property" if property_name.nil?
|
992
|
+
|
993
|
+
# resource path
|
994
|
+
path = "/tasks/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
995
|
+
|
996
|
+
# query parameters
|
997
|
+
query_params = {}
|
998
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
999
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1000
|
+
|
1001
|
+
# header parameters
|
1002
|
+
header_params = {}
|
1003
|
+
|
1004
|
+
# HTTP header 'Accept' (if needed)
|
1005
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1006
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1007
|
+
|
1008
|
+
# HTTP header 'Content-Type'
|
1009
|
+
_header_content_type = []
|
1010
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1011
|
+
|
1012
|
+
# form parameters
|
1013
|
+
form_params = {}
|
1014
|
+
|
1015
|
+
# http body (model)
|
1016
|
+
post_body = nil
|
1017
|
+
|
1018
|
+
|
1019
|
+
auth_names = []
|
1020
|
+
result = @api_client.call_api(:GET, path,
|
1021
|
+
:header_params => header_params,
|
1022
|
+
:query_params => query_params,
|
1023
|
+
:form_params => form_params,
|
1024
|
+
:body => post_body,
|
1025
|
+
:auth_names => auth_names,
|
1026
|
+
:return_type => 'DocumentPropertyResponse')
|
1027
|
+
if Configuration.debugging
|
1028
|
+
Configuration.logger.debug "API called: TasksApi#get_document_property. Result: #{result.inspect}"
|
1029
|
+
end
|
1030
|
+
return result
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# Set/create document property.
|
1034
|
+
#
|
1035
|
+
# @param name The document name.
|
1036
|
+
# @param property_name The property name.
|
1037
|
+
# @param property {DocumentProperty} with new property value.
|
1038
|
+
# @param [Hash] opts the optional parameters
|
1039
|
+
# @option opts [String] :storage The document storage.
|
1040
|
+
# @option opts [String] :folder The document folder.
|
1041
|
+
# @option opts [String] :filename 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.
|
1042
|
+
# @return [DocumentPropertyResponse]
|
1043
|
+
def put_document_property(name, property_name, property, opts = {})
|
1044
|
+
if Configuration.debugging
|
1045
|
+
Configuration.logger.debug "Calling API: TasksApi#put_document_property ..."
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
# verify the required parameter 'name' is set
|
1049
|
+
fail "Missing the required parameter 'name' when calling put_document_property" if name.nil?
|
1050
|
+
|
1051
|
+
# verify the required parameter 'property_name' is set
|
1052
|
+
fail "Missing the required parameter 'property_name' when calling put_document_property" if property_name.nil?
|
1053
|
+
|
1054
|
+
# verify the required parameter 'property' is set
|
1055
|
+
fail "Missing the required parameter 'property' when calling put_document_property" if property.nil?
|
1056
|
+
|
1057
|
+
# resource path
|
1058
|
+
path = "/tasks/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
1059
|
+
|
1060
|
+
# query parameters
|
1061
|
+
query_params = {}
|
1062
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1063
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1064
|
+
query_params[:'filename'] = opts[:'filename'] if opts[:'filename']
|
1065
|
+
|
1066
|
+
# header parameters
|
1067
|
+
header_params = {}
|
1068
|
+
|
1069
|
+
# HTTP header 'Accept' (if needed)
|
1070
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1071
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1072
|
+
|
1073
|
+
# HTTP header 'Content-Type'
|
1074
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1075
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1076
|
+
|
1077
|
+
# form parameters
|
1078
|
+
form_params = {}
|
1079
|
+
|
1080
|
+
# http body (model)
|
1081
|
+
post_body = @api_client.object_to_http_body(property)
|
1082
|
+
|
1083
|
+
|
1084
|
+
auth_names = []
|
1085
|
+
result = @api_client.call_api(:PUT, path,
|
1086
|
+
:header_params => header_params,
|
1087
|
+
:query_params => query_params,
|
1088
|
+
:form_params => form_params,
|
1089
|
+
:body => post_body,
|
1090
|
+
:auth_names => auth_names,
|
1091
|
+
:return_type => 'DocumentPropertyResponse')
|
1092
|
+
if Configuration.debugging
|
1093
|
+
Configuration.logger.debug "API called: TasksApi#put_document_property. Result: #{result.inspect}"
|
1094
|
+
end
|
1095
|
+
return result
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
# Set/create document property.
|
1099
|
+
#
|
1100
|
+
# @param name The document name.
|
1101
|
+
# @param property_name The property name.
|
1102
|
+
# @param property {DocumentProperty} with new property value.
|
1103
|
+
# @param [Hash] opts the optional parameters
|
1104
|
+
# @option opts [String] :storage The document storage.
|
1105
|
+
# @option opts [String] :folder The document folder.
|
1106
|
+
# @option opts [String] :filename 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.
|
1107
|
+
# @return [DocumentPropertyResponse]
|
1108
|
+
def post_document_property(name, property_name, property, opts = {})
|
1109
|
+
if Configuration.debugging
|
1110
|
+
Configuration.logger.debug "Calling API: TasksApi#post_document_property ..."
|
1111
|
+
end
|
1112
|
+
|
1113
|
+
# verify the required parameter 'name' is set
|
1114
|
+
fail "Missing the required parameter 'name' when calling post_document_property" if name.nil?
|
1115
|
+
|
1116
|
+
# verify the required parameter 'property_name' is set
|
1117
|
+
fail "Missing the required parameter 'property_name' when calling post_document_property" if property_name.nil?
|
1118
|
+
|
1119
|
+
# verify the required parameter 'property' is set
|
1120
|
+
fail "Missing the required parameter 'property' when calling post_document_property" if property.nil?
|
1121
|
+
|
1122
|
+
# resource path
|
1123
|
+
path = "/tasks/{name}/documentproperties/{propertyName}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'propertyName' + '}', property_name.to_s)
|
1124
|
+
|
1125
|
+
# query parameters
|
1126
|
+
query_params = {}
|
1127
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1128
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1129
|
+
query_params[:'filename'] = opts[:'filename'] if opts[:'filename']
|
1130
|
+
|
1131
|
+
# header parameters
|
1132
|
+
header_params = {}
|
1133
|
+
|
1134
|
+
# HTTP header 'Accept' (if needed)
|
1135
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1136
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1137
|
+
|
1138
|
+
# HTTP header 'Content-Type'
|
1139
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1140
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1141
|
+
|
1142
|
+
# form parameters
|
1143
|
+
form_params = {}
|
1144
|
+
|
1145
|
+
# http body (model)
|
1146
|
+
post_body = @api_client.object_to_http_body(property)
|
1147
|
+
|
1148
|
+
|
1149
|
+
auth_names = []
|
1150
|
+
result = @api_client.call_api(:POST, path,
|
1151
|
+
:header_params => header_params,
|
1152
|
+
:query_params => query_params,
|
1153
|
+
:form_params => form_params,
|
1154
|
+
:body => post_body,
|
1155
|
+
:auth_names => auth_names,
|
1156
|
+
:return_type => 'DocumentPropertyResponse')
|
1157
|
+
if Configuration.debugging
|
1158
|
+
Configuration.logger.debug "API called: TasksApi#post_document_property. Result: #{result.inspect}"
|
1159
|
+
end
|
1160
|
+
return result
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Represents a project document.
|
1164
|
+
#
|
1165
|
+
# @param name The name of the file.
|
1166
|
+
# @param [Hash] opts the optional parameters
|
1167
|
+
# @option opts [String] :storage The document storage.
|
1168
|
+
# @option opts [String] :folder The document folder.
|
1169
|
+
# @return [ExtendedAttributeItemsResponse]
|
1170
|
+
def get_extended_attributes(name, opts = {})
|
1171
|
+
if Configuration.debugging
|
1172
|
+
Configuration.logger.debug "Calling API: TasksApi#get_extended_attributes ..."
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# verify the required parameter 'name' is set
|
1176
|
+
fail "Missing the required parameter 'name' when calling get_extended_attributes" if name.nil?
|
1177
|
+
|
1178
|
+
# resource path
|
1179
|
+
path = "/tasks/{name}/extendedAttributes".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1180
|
+
|
1181
|
+
# query parameters
|
1182
|
+
query_params = {}
|
1183
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1184
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1185
|
+
|
1186
|
+
# header parameters
|
1187
|
+
header_params = {}
|
1188
|
+
|
1189
|
+
# HTTP header 'Accept' (if needed)
|
1190
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1191
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1192
|
+
|
1193
|
+
# HTTP header 'Content-Type'
|
1194
|
+
_header_content_type = []
|
1195
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1196
|
+
|
1197
|
+
# form parameters
|
1198
|
+
form_params = {}
|
1199
|
+
|
1200
|
+
# http body (model)
|
1201
|
+
post_body = nil
|
1202
|
+
|
1203
|
+
|
1204
|
+
auth_names = []
|
1205
|
+
result = @api_client.call_api(:GET, path,
|
1206
|
+
:header_params => header_params,
|
1207
|
+
:query_params => query_params,
|
1208
|
+
:form_params => form_params,
|
1209
|
+
:body => post_body,
|
1210
|
+
:auth_names => auth_names,
|
1211
|
+
:return_type => 'ExtendedAttributeItemsResponse')
|
1212
|
+
if Configuration.debugging
|
1213
|
+
Configuration.logger.debug "API called: TasksApi#get_extended_attributes. Result: #{result.inspect}"
|
1214
|
+
end
|
1215
|
+
return result
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
# Represents a project extended attribute definition.
|
1219
|
+
#
|
1220
|
+
# @param name The name of the file.
|
1221
|
+
# @param index Index of extended attribute
|
1222
|
+
# @param [Hash] opts the optional parameters
|
1223
|
+
# @option opts [String] :storage The document storage.
|
1224
|
+
# @option opts [String] :folder The document folder.
|
1225
|
+
# @return [ExtendedAttributeResponse]
|
1226
|
+
def get_extended_attribute_by_index(name, index, opts = {})
|
1227
|
+
if Configuration.debugging
|
1228
|
+
Configuration.logger.debug "Calling API: TasksApi#get_extended_attribute_by_index ..."
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
# verify the required parameter 'name' is set
|
1232
|
+
fail "Missing the required parameter 'name' when calling get_extended_attribute_by_index" if name.nil?
|
1233
|
+
|
1234
|
+
# verify the required parameter 'index' is set
|
1235
|
+
fail "Missing the required parameter 'index' when calling get_extended_attribute_by_index" if index.nil?
|
1236
|
+
|
1237
|
+
# resource path
|
1238
|
+
path = "/tasks/{name}/extendedAttributes/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
|
1239
|
+
|
1240
|
+
# query parameters
|
1241
|
+
query_params = {}
|
1242
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1243
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1244
|
+
|
1245
|
+
# header parameters
|
1246
|
+
header_params = {}
|
1247
|
+
|
1248
|
+
# HTTP header 'Accept' (if needed)
|
1249
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1250
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1251
|
+
|
1252
|
+
# HTTP header 'Content-Type'
|
1253
|
+
_header_content_type = []
|
1254
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1255
|
+
|
1256
|
+
# form parameters
|
1257
|
+
form_params = {}
|
1258
|
+
|
1259
|
+
# http body (model)
|
1260
|
+
post_body = nil
|
1261
|
+
|
1262
|
+
|
1263
|
+
auth_names = []
|
1264
|
+
result = @api_client.call_api(:GET, path,
|
1265
|
+
:header_params => header_params,
|
1266
|
+
:query_params => query_params,
|
1267
|
+
:form_params => form_params,
|
1268
|
+
:body => post_body,
|
1269
|
+
:auth_names => auth_names,
|
1270
|
+
:return_type => 'ExtendedAttributeResponse')
|
1271
|
+
if Configuration.debugging
|
1272
|
+
Configuration.logger.debug "API called: TasksApi#get_extended_attribute_by_index. Result: #{result.inspect}"
|
1273
|
+
end
|
1274
|
+
return result
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
# Delete a project extended attribute.
|
1278
|
+
#
|
1279
|
+
# @param name The name of the file.
|
1280
|
+
# @param index Index of extended attribute
|
1281
|
+
# @param [Hash] opts the optional parameters
|
1282
|
+
# @option opts [String] :storage The document storage.
|
1283
|
+
# @option opts [String] :folder The document folder.
|
1284
|
+
# @return [BaseResponse]
|
1285
|
+
def delete_extended_attribute_by_index(name, index, opts = {})
|
1286
|
+
if Configuration.debugging
|
1287
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_extended_attribute_by_index ..."
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# verify the required parameter 'name' is set
|
1291
|
+
fail "Missing the required parameter 'name' when calling delete_extended_attribute_by_index" if name.nil?
|
1292
|
+
|
1293
|
+
# verify the required parameter 'index' is set
|
1294
|
+
fail "Missing the required parameter 'index' when calling delete_extended_attribute_by_index" if index.nil?
|
1295
|
+
|
1296
|
+
# resource path
|
1297
|
+
path = "/tasks/{name}/extendedAttributes/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
|
1298
|
+
|
1299
|
+
# query parameters
|
1300
|
+
query_params = {}
|
1301
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1302
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1303
|
+
|
1304
|
+
# header parameters
|
1305
|
+
header_params = {}
|
1306
|
+
|
1307
|
+
# HTTP header 'Accept' (if needed)
|
1308
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1309
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1310
|
+
|
1311
|
+
# HTTP header 'Content-Type'
|
1312
|
+
_header_content_type = []
|
1313
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1314
|
+
|
1315
|
+
# form parameters
|
1316
|
+
form_params = {}
|
1317
|
+
|
1318
|
+
# http body (model)
|
1319
|
+
post_body = nil
|
1320
|
+
|
1321
|
+
|
1322
|
+
auth_names = []
|
1323
|
+
result = @api_client.call_api(:DELETE, path,
|
1324
|
+
:header_params => header_params,
|
1325
|
+
:query_params => query_params,
|
1326
|
+
:form_params => form_params,
|
1327
|
+
:body => post_body,
|
1328
|
+
:auth_names => auth_names,
|
1329
|
+
:return_type => 'BaseResponse')
|
1330
|
+
if Configuration.debugging
|
1331
|
+
Configuration.logger.debug "API called: TasksApi#delete_extended_attribute_by_index. Result: #{result.inspect}"
|
1332
|
+
end
|
1333
|
+
return result
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
# Read outline codes.
|
1337
|
+
#
|
1338
|
+
# @param name The name of the file.
|
1339
|
+
# @param [Hash] opts the optional parameters
|
1340
|
+
# @option opts [String] :storage The document storage.
|
1341
|
+
# @option opts [String] :folder The document folder.
|
1342
|
+
# @return [OutlineCodeItemsResponse]
|
1343
|
+
def get_outline_codes(name, opts = {})
|
1344
|
+
if Configuration.debugging
|
1345
|
+
Configuration.logger.debug "Calling API: TasksApi#get_outline_codes ..."
|
1346
|
+
end
|
1347
|
+
|
1348
|
+
# verify the required parameter 'name' is set
|
1349
|
+
fail "Missing the required parameter 'name' when calling get_outline_codes" if name.nil?
|
1350
|
+
|
1351
|
+
# resource path
|
1352
|
+
path = "/tasks/{name}/outlineCodes".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1353
|
+
|
1354
|
+
# query parameters
|
1355
|
+
query_params = {}
|
1356
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1357
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1358
|
+
|
1359
|
+
# header parameters
|
1360
|
+
header_params = {}
|
1361
|
+
|
1362
|
+
# HTTP header 'Accept' (if needed)
|
1363
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1364
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1365
|
+
|
1366
|
+
# HTTP header 'Content-Type'
|
1367
|
+
_header_content_type = []
|
1368
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1369
|
+
|
1370
|
+
# form parameters
|
1371
|
+
form_params = {}
|
1372
|
+
|
1373
|
+
# http body (model)
|
1374
|
+
post_body = nil
|
1375
|
+
|
1376
|
+
|
1377
|
+
auth_names = []
|
1378
|
+
result = @api_client.call_api(:GET, path,
|
1379
|
+
:header_params => header_params,
|
1380
|
+
:query_params => query_params,
|
1381
|
+
:form_params => form_params,
|
1382
|
+
:body => post_body,
|
1383
|
+
:auth_names => auth_names,
|
1384
|
+
:return_type => 'OutlineCodeItemsResponse')
|
1385
|
+
if Configuration.debugging
|
1386
|
+
Configuration.logger.debug "API called: TasksApi#get_outline_codes. Result: #{result.inspect}"
|
1387
|
+
end
|
1388
|
+
return result
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
# Get outline code by index.
|
1392
|
+
#
|
1393
|
+
# @param name The name of the file.
|
1394
|
+
# @param index Outline code index
|
1395
|
+
# @param [Hash] opts the optional parameters
|
1396
|
+
# @option opts [String] :storage The document storage.
|
1397
|
+
# @option opts [String] :folder The document folder.
|
1398
|
+
# @return [OutlineCodeResponse]
|
1399
|
+
def get_outline_code_by_index(name, index, opts = {})
|
1400
|
+
if Configuration.debugging
|
1401
|
+
Configuration.logger.debug "Calling API: TasksApi#get_outline_code_by_index ..."
|
1402
|
+
end
|
1403
|
+
|
1404
|
+
# verify the required parameter 'name' is set
|
1405
|
+
fail "Missing the required parameter 'name' when calling get_outline_code_by_index" if name.nil?
|
1406
|
+
|
1407
|
+
# verify the required parameter 'index' is set
|
1408
|
+
fail "Missing the required parameter 'index' when calling get_outline_code_by_index" if index.nil?
|
1409
|
+
|
1410
|
+
# resource path
|
1411
|
+
path = "/tasks/{name}/outlineCodes/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
|
1412
|
+
|
1413
|
+
# query parameters
|
1414
|
+
query_params = {}
|
1415
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1416
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1417
|
+
|
1418
|
+
# header parameters
|
1419
|
+
header_params = {}
|
1420
|
+
|
1421
|
+
# HTTP header 'Accept' (if needed)
|
1422
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1423
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1424
|
+
|
1425
|
+
# HTTP header 'Content-Type'
|
1426
|
+
_header_content_type = []
|
1427
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1428
|
+
|
1429
|
+
# form parameters
|
1430
|
+
form_params = {}
|
1431
|
+
|
1432
|
+
# http body (model)
|
1433
|
+
post_body = nil
|
1434
|
+
|
1435
|
+
|
1436
|
+
auth_names = []
|
1437
|
+
result = @api_client.call_api(:GET, path,
|
1438
|
+
:header_params => header_params,
|
1439
|
+
:query_params => query_params,
|
1440
|
+
:form_params => form_params,
|
1441
|
+
:body => post_body,
|
1442
|
+
:auth_names => auth_names,
|
1443
|
+
:return_type => 'OutlineCodeResponse')
|
1444
|
+
if Configuration.debugging
|
1445
|
+
Configuration.logger.debug "API called: TasksApi#get_outline_code_by_index. Result: #{result.inspect}"
|
1446
|
+
end
|
1447
|
+
return result
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
# Deletes a project outline code
|
1451
|
+
#
|
1452
|
+
# @param name The name of the file.
|
1453
|
+
# @param index Outline code index
|
1454
|
+
# @param [Hash] opts the optional parameters
|
1455
|
+
# @option opts [String] :storage The document storage.
|
1456
|
+
# @option opts [String] :folder The document folder.
|
1457
|
+
# @return [BaseResponse]
|
1458
|
+
def delete_outline_code_by_index(name, index, opts = {})
|
1459
|
+
if Configuration.debugging
|
1460
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_outline_code_by_index ..."
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
# verify the required parameter 'name' is set
|
1464
|
+
fail "Missing the required parameter 'name' when calling delete_outline_code_by_index" if name.nil?
|
1465
|
+
|
1466
|
+
# verify the required parameter 'index' is set
|
1467
|
+
fail "Missing the required parameter 'index' when calling delete_outline_code_by_index" if index.nil?
|
1468
|
+
|
1469
|
+
# resource path
|
1470
|
+
path = "/tasks/{name}/outlineCodes/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
|
1471
|
+
|
1472
|
+
# query parameters
|
1473
|
+
query_params = {}
|
1474
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1475
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1476
|
+
|
1477
|
+
# header parameters
|
1478
|
+
header_params = {}
|
1479
|
+
|
1480
|
+
# HTTP header 'Accept' (if needed)
|
1481
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1482
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1483
|
+
|
1484
|
+
# HTTP header 'Content-Type'
|
1485
|
+
_header_content_type = []
|
1486
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1487
|
+
|
1488
|
+
# form parameters
|
1489
|
+
form_params = {}
|
1490
|
+
|
1491
|
+
# http body (model)
|
1492
|
+
post_body = nil
|
1493
|
+
|
1494
|
+
|
1495
|
+
auth_names = []
|
1496
|
+
result = @api_client.call_api(:DELETE, path,
|
1497
|
+
:header_params => header_params,
|
1498
|
+
:query_params => query_params,
|
1499
|
+
:form_params => form_params,
|
1500
|
+
:body => post_body,
|
1501
|
+
:auth_names => auth_names,
|
1502
|
+
:return_type => 'BaseResponse')
|
1503
|
+
if Configuration.debugging
|
1504
|
+
Configuration.logger.debug "API called: TasksApi#delete_outline_code_by_index. Result: #{result.inspect}"
|
1505
|
+
end
|
1506
|
+
return result
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
# Returns created report in PDF format.
|
1510
|
+
#
|
1511
|
+
# @param name The name of the file.
|
1512
|
+
# @param type A type of the project's graphical report.
|
1513
|
+
# @param [Hash] opts the optional parameters
|
1514
|
+
# @option opts [String] :storage The document storage.
|
1515
|
+
# @option opts [String] :folder The document folder.
|
1516
|
+
# @return [File]
|
1517
|
+
def get_report_pdf(name, type, opts = {})
|
1518
|
+
if Configuration.debugging
|
1519
|
+
Configuration.logger.debug "Calling API: TasksApi#get_report_pdf ..."
|
1520
|
+
end
|
1521
|
+
|
1522
|
+
# verify the required parameter 'name' is set
|
1523
|
+
fail "Missing the required parameter 'name' when calling get_report_pdf" if name.nil?
|
1524
|
+
|
1525
|
+
# verify the required parameter 'type' is set
|
1526
|
+
fail "Missing the required parameter 'type' when calling get_report_pdf" if type.nil?
|
1527
|
+
|
1528
|
+
# resource path
|
1529
|
+
path = "/tasks/{name}/report".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1530
|
+
|
1531
|
+
# query parameters
|
1532
|
+
query_params = {}
|
1533
|
+
query_params[:'type'] = type
|
1534
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1535
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1536
|
+
|
1537
|
+
# header parameters
|
1538
|
+
header_params = {}
|
1539
|
+
|
1540
|
+
# HTTP header 'Accept' (if needed)
|
1541
|
+
_header_accept = []
|
1542
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1543
|
+
|
1544
|
+
# HTTP header 'Content-Type'
|
1545
|
+
_header_content_type = []
|
1546
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1547
|
+
|
1548
|
+
# form parameters
|
1549
|
+
form_params = {}
|
1550
|
+
|
1551
|
+
# http body (model)
|
1552
|
+
post_body = nil
|
1553
|
+
|
1554
|
+
|
1555
|
+
auth_names = []
|
1556
|
+
result = @api_client.call_api(:GET, path,
|
1557
|
+
:header_params => header_params,
|
1558
|
+
:query_params => query_params,
|
1559
|
+
:form_params => form_params,
|
1560
|
+
:body => post_body,
|
1561
|
+
:auth_names => auth_names,
|
1562
|
+
:return_type => 'File')
|
1563
|
+
if Configuration.debugging
|
1564
|
+
Configuration.logger.debug "API called: TasksApi#get_report_pdf. Result: #{result.inspect}"
|
1565
|
+
end
|
1566
|
+
return result
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
# Read project resources.
|
1570
|
+
#
|
1571
|
+
# @param name The name of the file.
|
1572
|
+
# @param [Hash] opts the optional parameters
|
1573
|
+
# @option opts [String] :storage The document storage.
|
1574
|
+
# @option opts [String] :folder The document folder.
|
1575
|
+
# @return [ResourceItemsResponse]
|
1576
|
+
def get_project_resources(name, opts = {})
|
1577
|
+
if Configuration.debugging
|
1578
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_resources ..."
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
# verify the required parameter 'name' is set
|
1582
|
+
fail "Missing the required parameter 'name' when calling get_project_resources" if name.nil?
|
1583
|
+
|
1584
|
+
# resource path
|
1585
|
+
path = "/tasks/{name}/resources".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1586
|
+
|
1587
|
+
# query parameters
|
1588
|
+
query_params = {}
|
1589
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1590
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1591
|
+
|
1592
|
+
# header parameters
|
1593
|
+
header_params = {}
|
1594
|
+
|
1595
|
+
# HTTP header 'Accept' (if needed)
|
1596
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1597
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1598
|
+
|
1599
|
+
# HTTP header 'Content-Type'
|
1600
|
+
_header_content_type = []
|
1601
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1602
|
+
|
1603
|
+
# form parameters
|
1604
|
+
form_params = {}
|
1605
|
+
|
1606
|
+
# http body (model)
|
1607
|
+
post_body = nil
|
1608
|
+
|
1609
|
+
|
1610
|
+
auth_names = []
|
1611
|
+
result = @api_client.call_api(:GET, path,
|
1612
|
+
:header_params => header_params,
|
1613
|
+
:query_params => query_params,
|
1614
|
+
:form_params => form_params,
|
1615
|
+
:body => post_body,
|
1616
|
+
:auth_names => auth_names,
|
1617
|
+
:return_type => 'ResourceItemsResponse')
|
1618
|
+
if Configuration.debugging
|
1619
|
+
Configuration.logger.debug "API called: TasksApi#get_project_resources. Result: #{result.inspect}"
|
1620
|
+
end
|
1621
|
+
return result
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# Add a new resource to a project.
|
1625
|
+
#
|
1626
|
+
# @param name The name of the file.
|
1627
|
+
# @param [Hash] opts the optional parameters
|
1628
|
+
# @option opts [String] :resource_name The name of the new resource. The default value is an empty string
|
1629
|
+
# @option opts [Integer] :before_resource_id 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.
|
1630
|
+
# @option opts [String] :file_name 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.
|
1631
|
+
# @option opts [String] :storage The document storage.
|
1632
|
+
# @option opts [String] :folder The document folder.
|
1633
|
+
# @return [ResourceItemResponse]
|
1634
|
+
def post_project_resource(name, opts = {})
|
1635
|
+
if Configuration.debugging
|
1636
|
+
Configuration.logger.debug "Calling API: TasksApi#post_project_resource ..."
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
# verify the required parameter 'name' is set
|
1640
|
+
fail "Missing the required parameter 'name' when calling post_project_resource" if name.nil?
|
1641
|
+
|
1642
|
+
# resource path
|
1643
|
+
path = "/tasks/{name}/resources".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1644
|
+
|
1645
|
+
# query parameters
|
1646
|
+
query_params = {}
|
1647
|
+
query_params[:'resourceName'] = opts[:'resource_name'] if opts[:'resource_name']
|
1648
|
+
query_params[:'beforeResourceId'] = opts[:'before_resource_id'] if opts[:'before_resource_id']
|
1649
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
1650
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1651
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1652
|
+
|
1653
|
+
# header parameters
|
1654
|
+
header_params = {}
|
1655
|
+
|
1656
|
+
# HTTP header 'Accept' (if needed)
|
1657
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1658
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1659
|
+
|
1660
|
+
# HTTP header 'Content-Type'
|
1661
|
+
_header_content_type = []
|
1662
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1663
|
+
|
1664
|
+
# form parameters
|
1665
|
+
form_params = {}
|
1666
|
+
|
1667
|
+
# http body (model)
|
1668
|
+
post_body = nil
|
1669
|
+
|
1670
|
+
|
1671
|
+
auth_names = []
|
1672
|
+
result = @api_client.call_api(:POST, path,
|
1673
|
+
:header_params => header_params,
|
1674
|
+
:query_params => query_params,
|
1675
|
+
:form_params => form_params,
|
1676
|
+
:body => post_body,
|
1677
|
+
:auth_names => auth_names,
|
1678
|
+
:return_type => 'ResourceItemResponse')
|
1679
|
+
if Configuration.debugging
|
1680
|
+
Configuration.logger.debug "API called: TasksApi#post_project_resource. Result: #{result.inspect}"
|
1681
|
+
end
|
1682
|
+
return result
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
# Get project resource.
|
1686
|
+
#
|
1687
|
+
# @param name The name of the file.
|
1688
|
+
# @param resource_uid Resource Uid
|
1689
|
+
# @param [Hash] opts the optional parameters
|
1690
|
+
# @option opts [String] :storage The document storage.
|
1691
|
+
# @option opts [String] :folder The document folder.
|
1692
|
+
# @return [ResourceResponse]
|
1693
|
+
def get_project_resource(name, resource_uid, opts = {})
|
1694
|
+
if Configuration.debugging
|
1695
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_resource ..."
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
# verify the required parameter 'name' is set
|
1699
|
+
fail "Missing the required parameter 'name' when calling get_project_resource" if name.nil?
|
1700
|
+
|
1701
|
+
# verify the required parameter 'resource_uid' is set
|
1702
|
+
fail "Missing the required parameter 'resource_uid' when calling get_project_resource" if resource_uid.nil?
|
1703
|
+
|
1704
|
+
# resource path
|
1705
|
+
path = "/tasks/{name}/resources/{resourceUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'resourceUid' + '}', resource_uid.to_s)
|
1706
|
+
|
1707
|
+
# query parameters
|
1708
|
+
query_params = {}
|
1709
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1710
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1711
|
+
|
1712
|
+
# header parameters
|
1713
|
+
header_params = {}
|
1714
|
+
|
1715
|
+
# HTTP header 'Accept' (if needed)
|
1716
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1717
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1718
|
+
|
1719
|
+
# HTTP header 'Content-Type'
|
1720
|
+
_header_content_type = []
|
1721
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1722
|
+
|
1723
|
+
# form parameters
|
1724
|
+
form_params = {}
|
1725
|
+
|
1726
|
+
# http body (model)
|
1727
|
+
post_body = nil
|
1728
|
+
|
1729
|
+
|
1730
|
+
auth_names = []
|
1731
|
+
result = @api_client.call_api(:GET, path,
|
1732
|
+
:header_params => header_params,
|
1733
|
+
:query_params => query_params,
|
1734
|
+
:form_params => form_params,
|
1735
|
+
:body => post_body,
|
1736
|
+
:auth_names => auth_names,
|
1737
|
+
:return_type => 'ResourceResponse')
|
1738
|
+
if Configuration.debugging
|
1739
|
+
Configuration.logger.debug "API called: TasksApi#get_project_resource. Result: #{result.inspect}"
|
1740
|
+
end
|
1741
|
+
return result
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# Deletes a project resource with all references to it
|
1745
|
+
#
|
1746
|
+
# @param name The name of the file.
|
1747
|
+
# @param resource_uid Resource Uid
|
1748
|
+
# @param [Hash] opts the optional parameters
|
1749
|
+
# @option opts [String] :storage The document storage.
|
1750
|
+
# @option opts [String] :folder The document folder.
|
1751
|
+
# @option opts [String] :file_name 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.
|
1752
|
+
# @return [BaseResponse]
|
1753
|
+
def delete_project_resource(name, resource_uid, opts = {})
|
1754
|
+
if Configuration.debugging
|
1755
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_project_resource ..."
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
# verify the required parameter 'name' is set
|
1759
|
+
fail "Missing the required parameter 'name' when calling delete_project_resource" if name.nil?
|
1760
|
+
|
1761
|
+
# verify the required parameter 'resource_uid' is set
|
1762
|
+
fail "Missing the required parameter 'resource_uid' when calling delete_project_resource" if resource_uid.nil?
|
1763
|
+
|
1764
|
+
# resource path
|
1765
|
+
path = "/tasks/{name}/resources/{resourceUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'resourceUid' + '}', resource_uid.to_s)
|
1766
|
+
|
1767
|
+
# query parameters
|
1768
|
+
query_params = {}
|
1769
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1770
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1771
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
1772
|
+
|
1773
|
+
# header parameters
|
1774
|
+
header_params = {}
|
1775
|
+
|
1776
|
+
# HTTP header 'Accept' (if needed)
|
1777
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1778
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1779
|
+
|
1780
|
+
# HTTP header 'Content-Type'
|
1781
|
+
_header_content_type = []
|
1782
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1783
|
+
|
1784
|
+
# form parameters
|
1785
|
+
form_params = {}
|
1786
|
+
|
1787
|
+
# http body (model)
|
1788
|
+
post_body = nil
|
1789
|
+
|
1790
|
+
|
1791
|
+
auth_names = []
|
1792
|
+
result = @api_client.call_api(:DELETE, path,
|
1793
|
+
:header_params => header_params,
|
1794
|
+
:query_params => query_params,
|
1795
|
+
:form_params => form_params,
|
1796
|
+
:body => post_body,
|
1797
|
+
:auth_names => auth_names,
|
1798
|
+
:return_type => 'BaseResponse')
|
1799
|
+
if Configuration.debugging
|
1800
|
+
Configuration.logger.debug "API called: TasksApi#delete_project_resource. Result: #{result.inspect}"
|
1801
|
+
end
|
1802
|
+
return result
|
1803
|
+
end
|
1804
|
+
|
1805
|
+
# Get resource assignments.
|
1806
|
+
#
|
1807
|
+
# @param name The name of the file.
|
1808
|
+
# @param resource_uid Resource Uid
|
1809
|
+
# @param [Hash] opts the optional parameters
|
1810
|
+
# @option opts [String] :storage The document storage.
|
1811
|
+
# @option opts [String] :folder The document folder.
|
1812
|
+
# @return [AssignmentsResponse]
|
1813
|
+
def get_resource_assignments(name, resource_uid, opts = {})
|
1814
|
+
if Configuration.debugging
|
1815
|
+
Configuration.logger.debug "Calling API: TasksApi#get_resource_assignments ..."
|
1816
|
+
end
|
1817
|
+
|
1818
|
+
# verify the required parameter 'name' is set
|
1819
|
+
fail "Missing the required parameter 'name' when calling get_resource_assignments" if name.nil?
|
1820
|
+
|
1821
|
+
# verify the required parameter 'resource_uid' is set
|
1822
|
+
fail "Missing the required parameter 'resource_uid' when calling get_resource_assignments" if resource_uid.nil?
|
1823
|
+
|
1824
|
+
# resource path
|
1825
|
+
path = "/tasks/{name}/resources/{resourceUid}/assignments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'resourceUid' + '}', resource_uid.to_s)
|
1826
|
+
|
1827
|
+
# query parameters
|
1828
|
+
query_params = {}
|
1829
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1830
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1831
|
+
|
1832
|
+
# header parameters
|
1833
|
+
header_params = {}
|
1834
|
+
|
1835
|
+
# HTTP header 'Accept' (if needed)
|
1836
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1837
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1838
|
+
|
1839
|
+
# HTTP header 'Content-Type'
|
1840
|
+
_header_content_type = []
|
1841
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1842
|
+
|
1843
|
+
# form parameters
|
1844
|
+
form_params = {}
|
1845
|
+
|
1846
|
+
# http body (model)
|
1847
|
+
post_body = nil
|
1848
|
+
|
1849
|
+
|
1850
|
+
auth_names = []
|
1851
|
+
result = @api_client.call_api(:GET, path,
|
1852
|
+
:header_params => header_params,
|
1853
|
+
:query_params => query_params,
|
1854
|
+
:form_params => form_params,
|
1855
|
+
:body => post_body,
|
1856
|
+
:auth_names => auth_names,
|
1857
|
+
:return_type => 'AssignmentsResponse')
|
1858
|
+
if Configuration.debugging
|
1859
|
+
Configuration.logger.debug "API called: TasksApi#get_resource_assignments. Result: #{result.inspect}"
|
1860
|
+
end
|
1861
|
+
return result
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
# Read task links.
|
1865
|
+
#
|
1866
|
+
# @param name The name of the file.
|
1867
|
+
# @param [Hash] opts the optional parameters
|
1868
|
+
# @option opts [String] :storage The document storage.
|
1869
|
+
# @option opts [String] :folder The document folder.
|
1870
|
+
# @return [TaskLinksResponse]
|
1871
|
+
def get_task_links(name, opts = {})
|
1872
|
+
if Configuration.debugging
|
1873
|
+
Configuration.logger.debug "Calling API: TasksApi#get_task_links ..."
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
# verify the required parameter 'name' is set
|
1877
|
+
fail "Missing the required parameter 'name' when calling get_task_links" if name.nil?
|
1878
|
+
|
1879
|
+
# resource path
|
1880
|
+
path = "/tasks/{name}/taskLinks".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1881
|
+
|
1882
|
+
# query parameters
|
1883
|
+
query_params = {}
|
1884
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1885
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1886
|
+
|
1887
|
+
# header parameters
|
1888
|
+
header_params = {}
|
1889
|
+
|
1890
|
+
# HTTP header 'Accept' (if needed)
|
1891
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1892
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1893
|
+
|
1894
|
+
# HTTP header 'Content-Type'
|
1895
|
+
_header_content_type = []
|
1896
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1897
|
+
|
1898
|
+
# form parameters
|
1899
|
+
form_params = {}
|
1900
|
+
|
1901
|
+
# http body (model)
|
1902
|
+
post_body = nil
|
1903
|
+
|
1904
|
+
|
1905
|
+
auth_names = []
|
1906
|
+
result = @api_client.call_api(:GET, path,
|
1907
|
+
:header_params => header_params,
|
1908
|
+
:query_params => query_params,
|
1909
|
+
:form_params => form_params,
|
1910
|
+
:body => post_body,
|
1911
|
+
:auth_names => auth_names,
|
1912
|
+
:return_type => 'TaskLinksResponse')
|
1913
|
+
if Configuration.debugging
|
1914
|
+
Configuration.logger.debug "API called: TasksApi#get_task_links. Result: #{result.inspect}"
|
1915
|
+
end
|
1916
|
+
return result
|
1917
|
+
end
|
1918
|
+
|
1919
|
+
# Adds a new task link to a project.
|
1920
|
+
#
|
1921
|
+
# @param name The name of the file.
|
1922
|
+
# @param dto TaskLink dto
|
1923
|
+
# @param [Hash] opts the optional parameters
|
1924
|
+
# @option opts [String] :storage The document storage.
|
1925
|
+
# @option opts [String] :folder The document folder.
|
1926
|
+
# @option opts [String] :file_name 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.
|
1927
|
+
# @return [BaseResponse]
|
1928
|
+
def post_task_link(name, dto, opts = {})
|
1929
|
+
if Configuration.debugging
|
1930
|
+
Configuration.logger.debug "Calling API: TasksApi#post_task_link ..."
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
# verify the required parameter 'name' is set
|
1934
|
+
fail "Missing the required parameter 'name' when calling post_task_link" if name.nil?
|
1935
|
+
|
1936
|
+
# verify the required parameter 'dto' is set
|
1937
|
+
fail "Missing the required parameter 'dto' when calling post_task_link" if dto.nil?
|
1938
|
+
|
1939
|
+
# resource path
|
1940
|
+
path = "/tasks/{name}/taskLinks".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
1941
|
+
|
1942
|
+
# query parameters
|
1943
|
+
query_params = {}
|
1944
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
1945
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
1946
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
1947
|
+
|
1948
|
+
# header parameters
|
1949
|
+
header_params = {}
|
1950
|
+
|
1951
|
+
# HTTP header 'Accept' (if needed)
|
1952
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
1953
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
1954
|
+
|
1955
|
+
# HTTP header 'Content-Type'
|
1956
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
1957
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
1958
|
+
|
1959
|
+
# form parameters
|
1960
|
+
form_params = {}
|
1961
|
+
|
1962
|
+
# http body (model)
|
1963
|
+
post_body = @api_client.object_to_http_body(dto)
|
1964
|
+
|
1965
|
+
|
1966
|
+
auth_names = []
|
1967
|
+
result = @api_client.call_api(:POST, path,
|
1968
|
+
:header_params => header_params,
|
1969
|
+
:query_params => query_params,
|
1970
|
+
:form_params => form_params,
|
1971
|
+
:body => post_body,
|
1972
|
+
:auth_names => auth_names,
|
1973
|
+
:return_type => 'BaseResponse')
|
1974
|
+
if Configuration.debugging
|
1975
|
+
Configuration.logger.debug "API called: TasksApi#post_task_link. Result: #{result.inspect}"
|
1976
|
+
end
|
1977
|
+
return result
|
1978
|
+
end
|
1979
|
+
|
1980
|
+
# Updates task link.
|
1981
|
+
#
|
1982
|
+
# @param name The name of the file.
|
1983
|
+
# @param index Task link index
|
1984
|
+
# @param dto TaskLink dto
|
1985
|
+
# @param [Hash] opts the optional parameters
|
1986
|
+
# @option opts [String] :storage The document storage.
|
1987
|
+
# @option opts [String] :folder The document folder.
|
1988
|
+
# @option opts [String] :file_name 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.
|
1989
|
+
# @return [TaskLinkResponse]
|
1990
|
+
def put_task_link(name, index, dto, opts = {})
|
1991
|
+
if Configuration.debugging
|
1992
|
+
Configuration.logger.debug "Calling API: TasksApi#put_task_link ..."
|
1993
|
+
end
|
1994
|
+
|
1995
|
+
# verify the required parameter 'name' is set
|
1996
|
+
fail "Missing the required parameter 'name' when calling put_task_link" if name.nil?
|
1997
|
+
|
1998
|
+
# verify the required parameter 'index' is set
|
1999
|
+
fail "Missing the required parameter 'index' when calling put_task_link" if index.nil?
|
2000
|
+
|
2001
|
+
# verify the required parameter 'dto' is set
|
2002
|
+
fail "Missing the required parameter 'dto' when calling put_task_link" if dto.nil?
|
2003
|
+
|
2004
|
+
# resource path
|
2005
|
+
path = "/tasks/{name}/taskLinks/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
|
2006
|
+
|
2007
|
+
# query parameters
|
2008
|
+
query_params = {}
|
2009
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2010
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2011
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
2012
|
+
|
2013
|
+
# header parameters
|
2014
|
+
header_params = {}
|
2015
|
+
|
2016
|
+
# HTTP header 'Accept' (if needed)
|
2017
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2018
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2019
|
+
|
2020
|
+
# HTTP header 'Content-Type'
|
2021
|
+
_header_content_type = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript', 'application/x-www-form-urlencoded']
|
2022
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2023
|
+
|
2024
|
+
# form parameters
|
2025
|
+
form_params = {}
|
2026
|
+
|
2027
|
+
# http body (model)
|
2028
|
+
post_body = @api_client.object_to_http_body(dto)
|
2029
|
+
|
2030
|
+
|
2031
|
+
auth_names = []
|
2032
|
+
result = @api_client.call_api(:PUT, path,
|
2033
|
+
:header_params => header_params,
|
2034
|
+
:query_params => query_params,
|
2035
|
+
:form_params => form_params,
|
2036
|
+
:body => post_body,
|
2037
|
+
:auth_names => auth_names,
|
2038
|
+
:return_type => 'TaskLinkResponse')
|
2039
|
+
if Configuration.debugging
|
2040
|
+
Configuration.logger.debug "API called: TasksApi#put_task_link. Result: #{result.inspect}"
|
2041
|
+
end
|
2042
|
+
return result
|
2043
|
+
end
|
2044
|
+
|
2045
|
+
# Updates task link.
|
2046
|
+
#
|
2047
|
+
# @param name The name of the file.
|
2048
|
+
# @param index Task link index
|
2049
|
+
# @param [Hash] opts the optional parameters
|
2050
|
+
# @option opts [String] :storage The document storage.
|
2051
|
+
# @option opts [String] :folder The document folder.
|
2052
|
+
# @option opts [String] :file_name 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.
|
2053
|
+
# @return [BaseResponse]
|
2054
|
+
def delete_task_link(name, index, opts = {})
|
2055
|
+
if Configuration.debugging
|
2056
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_task_link ..."
|
2057
|
+
end
|
2058
|
+
|
2059
|
+
# verify the required parameter 'name' is set
|
2060
|
+
fail "Missing the required parameter 'name' when calling delete_task_link" if name.nil?
|
2061
|
+
|
2062
|
+
# verify the required parameter 'index' is set
|
2063
|
+
fail "Missing the required parameter 'index' when calling delete_task_link" if index.nil?
|
2064
|
+
|
2065
|
+
# resource path
|
2066
|
+
path = "/tasks/{name}/taskLinks/{index}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'index' + '}', index.to_s)
|
2067
|
+
|
2068
|
+
# query parameters
|
2069
|
+
query_params = {}
|
2070
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2071
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2072
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
2073
|
+
|
2074
|
+
# header parameters
|
2075
|
+
header_params = {}
|
2076
|
+
|
2077
|
+
# HTTP header 'Accept' (if needed)
|
2078
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2079
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2080
|
+
|
2081
|
+
# HTTP header 'Content-Type'
|
2082
|
+
_header_content_type = []
|
2083
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2084
|
+
|
2085
|
+
# form parameters
|
2086
|
+
form_params = {}
|
2087
|
+
|
2088
|
+
# http body (model)
|
2089
|
+
post_body = nil
|
2090
|
+
|
2091
|
+
|
2092
|
+
auth_names = []
|
2093
|
+
result = @api_client.call_api(:DELETE, path,
|
2094
|
+
:header_params => header_params,
|
2095
|
+
:query_params => query_params,
|
2096
|
+
:form_params => form_params,
|
2097
|
+
:body => post_body,
|
2098
|
+
:auth_names => auth_names,
|
2099
|
+
:return_type => 'BaseResponse')
|
2100
|
+
if Configuration.debugging
|
2101
|
+
Configuration.logger.debug "API called: TasksApi#delete_task_link. Result: #{result.inspect}"
|
2102
|
+
end
|
2103
|
+
return result
|
2104
|
+
end
|
2105
|
+
|
2106
|
+
# Read project task items.
|
2107
|
+
#
|
2108
|
+
# @param name The name of the file.
|
2109
|
+
# @param [Hash] opts the optional parameters
|
2110
|
+
# @option opts [String] :storage The document storage.
|
2111
|
+
# @option opts [String] :folder The document folder.
|
2112
|
+
# @return [TaskItemsResponse]
|
2113
|
+
def get_project_tasks(name, opts = {})
|
2114
|
+
if Configuration.debugging
|
2115
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_tasks ..."
|
2116
|
+
end
|
2117
|
+
|
2118
|
+
# verify the required parameter 'name' is set
|
2119
|
+
fail "Missing the required parameter 'name' when calling get_project_tasks" if name.nil?
|
2120
|
+
|
2121
|
+
# resource path
|
2122
|
+
path = "/tasks/{name}/tasks".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
2123
|
+
|
2124
|
+
# query parameters
|
2125
|
+
query_params = {}
|
2126
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2127
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2128
|
+
|
2129
|
+
# header parameters
|
2130
|
+
header_params = {}
|
2131
|
+
|
2132
|
+
# HTTP header 'Accept' (if needed)
|
2133
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2134
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2135
|
+
|
2136
|
+
# HTTP header 'Content-Type'
|
2137
|
+
_header_content_type = []
|
2138
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2139
|
+
|
2140
|
+
# form parameters
|
2141
|
+
form_params = {}
|
2142
|
+
|
2143
|
+
# http body (model)
|
2144
|
+
post_body = nil
|
2145
|
+
|
2146
|
+
|
2147
|
+
auth_names = []
|
2148
|
+
result = @api_client.call_api(:GET, path,
|
2149
|
+
:header_params => header_params,
|
2150
|
+
:query_params => query_params,
|
2151
|
+
:form_params => form_params,
|
2152
|
+
:body => post_body,
|
2153
|
+
:auth_names => auth_names,
|
2154
|
+
:return_type => 'TaskItemsResponse')
|
2155
|
+
if Configuration.debugging
|
2156
|
+
Configuration.logger.debug "API called: TasksApi#get_project_tasks. Result: #{result.inspect}"
|
2157
|
+
end
|
2158
|
+
return result
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
# Add a new task to a project.
|
2162
|
+
#
|
2163
|
+
# @param name The name of the file.
|
2164
|
+
# @param [Hash] opts the optional parameters
|
2165
|
+
# @option opts [String] :task_name The name of the new task. The default value is an empty string
|
2166
|
+
# @option opts [Integer] :before_task_id 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.
|
2167
|
+
# @option opts [String] :file_name 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.
|
2168
|
+
# @option opts [String] :storage The document storage.
|
2169
|
+
# @option opts [String] :folder The document folder.
|
2170
|
+
# @return [TaskItemResponse]
|
2171
|
+
def post_project_task(name, opts = {})
|
2172
|
+
if Configuration.debugging
|
2173
|
+
Configuration.logger.debug "Calling API: TasksApi#post_project_task ..."
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
# verify the required parameter 'name' is set
|
2177
|
+
fail "Missing the required parameter 'name' when calling post_project_task" if name.nil?
|
2178
|
+
|
2179
|
+
# resource path
|
2180
|
+
path = "/tasks/{name}/tasks".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
2181
|
+
|
2182
|
+
# query parameters
|
2183
|
+
query_params = {}
|
2184
|
+
query_params[:'taskName'] = opts[:'task_name'] if opts[:'task_name']
|
2185
|
+
query_params[:'beforeTaskId'] = opts[:'before_task_id'] if opts[:'before_task_id']
|
2186
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
2187
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2188
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2189
|
+
|
2190
|
+
# header parameters
|
2191
|
+
header_params = {}
|
2192
|
+
|
2193
|
+
# HTTP header 'Accept' (if needed)
|
2194
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2195
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2196
|
+
|
2197
|
+
# HTTP header 'Content-Type'
|
2198
|
+
_header_content_type = []
|
2199
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2200
|
+
|
2201
|
+
# form parameters
|
2202
|
+
form_params = {}
|
2203
|
+
|
2204
|
+
# http body (model)
|
2205
|
+
post_body = nil
|
2206
|
+
|
2207
|
+
|
2208
|
+
auth_names = []
|
2209
|
+
result = @api_client.call_api(:POST, path,
|
2210
|
+
:header_params => header_params,
|
2211
|
+
:query_params => query_params,
|
2212
|
+
:form_params => form_params,
|
2213
|
+
:body => post_body,
|
2214
|
+
:auth_names => auth_names,
|
2215
|
+
:return_type => 'TaskItemResponse')
|
2216
|
+
if Configuration.debugging
|
2217
|
+
Configuration.logger.debug "API called: TasksApi#post_project_task. Result: #{result.inspect}"
|
2218
|
+
end
|
2219
|
+
return result
|
2220
|
+
end
|
2221
|
+
|
2222
|
+
# Read project task.
|
2223
|
+
#
|
2224
|
+
# @param name The name of the file.
|
2225
|
+
# @param task_uid Task Uid
|
2226
|
+
# @param [Hash] opts the optional parameters
|
2227
|
+
# @option opts [String] :storage The document storage.
|
2228
|
+
# @option opts [String] :folder The document folder.
|
2229
|
+
# @return [TaskResponse]
|
2230
|
+
def get_project_task(name, task_uid, opts = {})
|
2231
|
+
if Configuration.debugging
|
2232
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_task ..."
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
# verify the required parameter 'name' is set
|
2236
|
+
fail "Missing the required parameter 'name' when calling get_project_task" if name.nil?
|
2237
|
+
|
2238
|
+
# verify the required parameter 'task_uid' is set
|
2239
|
+
fail "Missing the required parameter 'task_uid' when calling get_project_task" if task_uid.nil?
|
2240
|
+
|
2241
|
+
# resource path
|
2242
|
+
path = "/tasks/{name}/tasks/{taskUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'taskUid' + '}', task_uid.to_s)
|
2243
|
+
|
2244
|
+
# query parameters
|
2245
|
+
query_params = {}
|
2246
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2247
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2248
|
+
|
2249
|
+
# header parameters
|
2250
|
+
header_params = {}
|
2251
|
+
|
2252
|
+
# HTTP header 'Accept' (if needed)
|
2253
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2254
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2255
|
+
|
2256
|
+
# HTTP header 'Content-Type'
|
2257
|
+
_header_content_type = []
|
2258
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2259
|
+
|
2260
|
+
# form parameters
|
2261
|
+
form_params = {}
|
2262
|
+
|
2263
|
+
# http body (model)
|
2264
|
+
post_body = nil
|
2265
|
+
|
2266
|
+
|
2267
|
+
auth_names = []
|
2268
|
+
result = @api_client.call_api(:GET, path,
|
2269
|
+
:header_params => header_params,
|
2270
|
+
:query_params => query_params,
|
2271
|
+
:form_params => form_params,
|
2272
|
+
:body => post_body,
|
2273
|
+
:auth_names => auth_names,
|
2274
|
+
:return_type => 'TaskResponse')
|
2275
|
+
if Configuration.debugging
|
2276
|
+
Configuration.logger.debug "API called: TasksApi#get_project_task. Result: #{result.inspect}"
|
2277
|
+
end
|
2278
|
+
return result
|
2279
|
+
end
|
2280
|
+
|
2281
|
+
# Deletes a project task with all references to it and rebuilds tasks tree.
|
2282
|
+
#
|
2283
|
+
# @param name The name of the file.
|
2284
|
+
# @param task_uid Task Uid
|
2285
|
+
# @param [Hash] opts the optional parameters
|
2286
|
+
# @option opts [String] :storage The document storage.
|
2287
|
+
# @option opts [String] :folder The document folder.
|
2288
|
+
# @option opts [String] :file_name 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.
|
2289
|
+
# @return [BaseResponse]
|
2290
|
+
def delete_project_task(name, task_uid, opts = {})
|
2291
|
+
if Configuration.debugging
|
2292
|
+
Configuration.logger.debug "Calling API: TasksApi#delete_project_task ..."
|
2293
|
+
end
|
2294
|
+
|
2295
|
+
# verify the required parameter 'name' is set
|
2296
|
+
fail "Missing the required parameter 'name' when calling delete_project_task" if name.nil?
|
2297
|
+
|
2298
|
+
# verify the required parameter 'task_uid' is set
|
2299
|
+
fail "Missing the required parameter 'task_uid' when calling delete_project_task" if task_uid.nil?
|
2300
|
+
|
2301
|
+
# resource path
|
2302
|
+
path = "/tasks/{name}/tasks/{taskUid}".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'taskUid' + '}', task_uid.to_s)
|
2303
|
+
|
2304
|
+
# query parameters
|
2305
|
+
query_params = {}
|
2306
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2307
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2308
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
2309
|
+
|
2310
|
+
# header parameters
|
2311
|
+
header_params = {}
|
2312
|
+
|
2313
|
+
# HTTP header 'Accept' (if needed)
|
2314
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2315
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2316
|
+
|
2317
|
+
# HTTP header 'Content-Type'
|
2318
|
+
_header_content_type = []
|
2319
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2320
|
+
|
2321
|
+
# form parameters
|
2322
|
+
form_params = {}
|
2323
|
+
|
2324
|
+
# http body (model)
|
2325
|
+
post_body = nil
|
2326
|
+
|
2327
|
+
|
2328
|
+
auth_names = []
|
2329
|
+
result = @api_client.call_api(:DELETE, path,
|
2330
|
+
:header_params => header_params,
|
2331
|
+
:query_params => query_params,
|
2332
|
+
:form_params => form_params,
|
2333
|
+
:body => post_body,
|
2334
|
+
:auth_names => auth_names,
|
2335
|
+
:return_type => 'BaseResponse')
|
2336
|
+
if Configuration.debugging
|
2337
|
+
Configuration.logger.debug "API called: TasksApi#delete_project_task. Result: #{result.inspect}"
|
2338
|
+
end
|
2339
|
+
return result
|
2340
|
+
end
|
2341
|
+
|
2342
|
+
# Get task assignments.
|
2343
|
+
#
|
2344
|
+
# @param name The name of the file.
|
2345
|
+
# @param task_uid Task Uid
|
2346
|
+
# @param [Hash] opts the optional parameters
|
2347
|
+
# @option opts [String] :storage The document storage.
|
2348
|
+
# @option opts [String] :folder The document folder.
|
2349
|
+
# @return [AssignmentsResponse]
|
2350
|
+
def get_task_assignments(name, task_uid, opts = {})
|
2351
|
+
if Configuration.debugging
|
2352
|
+
Configuration.logger.debug "Calling API: TasksApi#get_task_assignments ..."
|
2353
|
+
end
|
2354
|
+
|
2355
|
+
# verify the required parameter 'name' is set
|
2356
|
+
fail "Missing the required parameter 'name' when calling get_task_assignments" if name.nil?
|
2357
|
+
|
2358
|
+
# verify the required parameter 'task_uid' is set
|
2359
|
+
fail "Missing the required parameter 'task_uid' when calling get_task_assignments" if task_uid.nil?
|
2360
|
+
|
2361
|
+
# resource path
|
2362
|
+
path = "/tasks/{name}/tasks/{taskUid}/assignments".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'taskUid' + '}', task_uid.to_s)
|
2363
|
+
|
2364
|
+
# query parameters
|
2365
|
+
query_params = {}
|
2366
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2367
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2368
|
+
|
2369
|
+
# header parameters
|
2370
|
+
header_params = {}
|
2371
|
+
|
2372
|
+
# HTTP header 'Accept' (if needed)
|
2373
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2374
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2375
|
+
|
2376
|
+
# HTTP header 'Content-Type'
|
2377
|
+
_header_content_type = []
|
2378
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2379
|
+
|
2380
|
+
# form parameters
|
2381
|
+
form_params = {}
|
2382
|
+
|
2383
|
+
# http body (model)
|
2384
|
+
post_body = nil
|
2385
|
+
|
2386
|
+
|
2387
|
+
auth_names = []
|
2388
|
+
result = @api_client.call_api(:GET, path,
|
2389
|
+
:header_params => header_params,
|
2390
|
+
:query_params => query_params,
|
2391
|
+
:form_params => form_params,
|
2392
|
+
:body => post_body,
|
2393
|
+
:auth_names => auth_names,
|
2394
|
+
:return_type => 'AssignmentsResponse')
|
2395
|
+
if Configuration.debugging
|
2396
|
+
Configuration.logger.debug "API called: TasksApi#get_task_assignments. Result: #{result.inspect}"
|
2397
|
+
end
|
2398
|
+
return result
|
2399
|
+
end
|
2400
|
+
|
2401
|
+
# Move one task to another parent task
|
2402
|
+
#
|
2403
|
+
# @param name The name of the file.
|
2404
|
+
# @param task_uid Task Uid
|
2405
|
+
# @param parent_task_uid Uniquer id of the task.This task represent parent task for another task.
|
2406
|
+
# @param [Hash] opts the optional parameters
|
2407
|
+
# @option opts [String] :file_name 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.
|
2408
|
+
# @option opts [String] :storage The document storage.
|
2409
|
+
# @option opts [String] :folder The document folder.
|
2410
|
+
# @return [BaseResponse]
|
2411
|
+
def put_move_task(name, task_uid, parent_task_uid, opts = {})
|
2412
|
+
if Configuration.debugging
|
2413
|
+
Configuration.logger.debug "Calling API: TasksApi#put_move_task ..."
|
2414
|
+
end
|
2415
|
+
|
2416
|
+
# verify the required parameter 'name' is set
|
2417
|
+
fail "Missing the required parameter 'name' when calling put_move_task" if name.nil?
|
2418
|
+
|
2419
|
+
# verify the required parameter 'task_uid' is set
|
2420
|
+
fail "Missing the required parameter 'task_uid' when calling put_move_task" if task_uid.nil?
|
2421
|
+
|
2422
|
+
# verify the required parameter 'parent_task_uid' is set
|
2423
|
+
fail "Missing the required parameter 'parent_task_uid' when calling put_move_task" if parent_task_uid.nil?
|
2424
|
+
|
2425
|
+
# resource path
|
2426
|
+
path = "/tasks/{name}/tasks/{taskUid}/move".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'taskUid' + '}', task_uid.to_s)
|
2427
|
+
|
2428
|
+
# query parameters
|
2429
|
+
query_params = {}
|
2430
|
+
query_params[:'parentTaskUid'] = parent_task_uid
|
2431
|
+
query_params[:'fileName'] = opts[:'file_name'] if opts[:'file_name']
|
2432
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2433
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2434
|
+
|
2435
|
+
# header parameters
|
2436
|
+
header_params = {}
|
2437
|
+
|
2438
|
+
# HTTP header 'Accept' (if needed)
|
2439
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2440
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2441
|
+
|
2442
|
+
# HTTP header 'Content-Type'
|
2443
|
+
_header_content_type = []
|
2444
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2445
|
+
|
2446
|
+
# form parameters
|
2447
|
+
form_params = {}
|
2448
|
+
|
2449
|
+
# http body (model)
|
2450
|
+
post_body = nil
|
2451
|
+
|
2452
|
+
|
2453
|
+
auth_names = []
|
2454
|
+
result = @api_client.call_api(:PUT, path,
|
2455
|
+
:header_params => header_params,
|
2456
|
+
:query_params => query_params,
|
2457
|
+
:form_params => form_params,
|
2458
|
+
:body => post_body,
|
2459
|
+
:auth_names => auth_names,
|
2460
|
+
:return_type => 'BaseResponse')
|
2461
|
+
if Configuration.debugging
|
2462
|
+
Configuration.logger.debug "API called: TasksApi#put_move_task. Result: #{result.inspect}"
|
2463
|
+
end
|
2464
|
+
return result
|
2465
|
+
end
|
2466
|
+
|
2467
|
+
# Get recurring info for the task
|
2468
|
+
#
|
2469
|
+
# @param name The name of the file.
|
2470
|
+
# @param task_uid Task Uid
|
2471
|
+
# @param [Hash] opts the optional parameters
|
2472
|
+
# @option opts [String] :storage The document storage.
|
2473
|
+
# @option opts [String] :folder The document folder.
|
2474
|
+
# @return [RecurringInfoResponse]
|
2475
|
+
def get_task_recurring_info(name, task_uid, opts = {})
|
2476
|
+
if Configuration.debugging
|
2477
|
+
Configuration.logger.debug "Calling API: TasksApi#get_task_recurring_info ..."
|
2478
|
+
end
|
2479
|
+
|
2480
|
+
# verify the required parameter 'name' is set
|
2481
|
+
fail "Missing the required parameter 'name' when calling get_task_recurring_info" if name.nil?
|
2482
|
+
|
2483
|
+
# verify the required parameter 'task_uid' is set
|
2484
|
+
fail "Missing the required parameter 'task_uid' when calling get_task_recurring_info" if task_uid.nil?
|
2485
|
+
|
2486
|
+
# resource path
|
2487
|
+
path = "/tasks/{name}/tasks/{taskUid}/recurringInfo".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'taskUid' + '}', task_uid.to_s)
|
2488
|
+
|
2489
|
+
# query parameters
|
2490
|
+
query_params = {}
|
2491
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2492
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2493
|
+
|
2494
|
+
# header parameters
|
2495
|
+
header_params = {}
|
2496
|
+
|
2497
|
+
# HTTP header 'Accept' (if needed)
|
2498
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2499
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2500
|
+
|
2501
|
+
# HTTP header 'Content-Type'
|
2502
|
+
_header_content_type = []
|
2503
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2504
|
+
|
2505
|
+
# form parameters
|
2506
|
+
form_params = {}
|
2507
|
+
|
2508
|
+
# http body (model)
|
2509
|
+
post_body = nil
|
2510
|
+
|
2511
|
+
|
2512
|
+
auth_names = []
|
2513
|
+
result = @api_client.call_api(:GET, path,
|
2514
|
+
:header_params => header_params,
|
2515
|
+
:query_params => query_params,
|
2516
|
+
:form_params => form_params,
|
2517
|
+
:body => post_body,
|
2518
|
+
:auth_names => auth_names,
|
2519
|
+
:return_type => 'RecurringInfoResponse')
|
2520
|
+
if Configuration.debugging
|
2521
|
+
Configuration.logger.debug "API called: TasksApi#get_task_recurring_info. Result: #{result.inspect}"
|
2522
|
+
end
|
2523
|
+
return result
|
2524
|
+
end
|
2525
|
+
|
2526
|
+
# Get project WBS Definition.
|
2527
|
+
#
|
2528
|
+
# @param name The name of the file.
|
2529
|
+
# @param [Hash] opts the optional parameters
|
2530
|
+
# @option opts [String] :storage The document storage.
|
2531
|
+
# @option opts [String] :folder The document folder.
|
2532
|
+
# @return [WBSDefinitionResponse]
|
2533
|
+
def get_project_wbs_definition(name, opts = {})
|
2534
|
+
if Configuration.debugging
|
2535
|
+
Configuration.logger.debug "Calling API: TasksApi#get_project_wbs_definition ..."
|
2536
|
+
end
|
2537
|
+
|
2538
|
+
# verify the required parameter 'name' is set
|
2539
|
+
fail "Missing the required parameter 'name' when calling get_project_wbs_definition" if name.nil?
|
2540
|
+
|
2541
|
+
# resource path
|
2542
|
+
path = "/tasks/{name}/wbsDefinition".sub('{format}','json').sub('{' + 'name' + '}', name.to_s)
|
2543
|
+
|
2544
|
+
# query parameters
|
2545
|
+
query_params = {}
|
2546
|
+
query_params[:'storage'] = opts[:'storage'] if opts[:'storage']
|
2547
|
+
query_params[:'folder'] = opts[:'folder'] if opts[:'folder']
|
2548
|
+
|
2549
|
+
# header parameters
|
2550
|
+
header_params = {}
|
2551
|
+
|
2552
|
+
# HTTP header 'Accept' (if needed)
|
2553
|
+
_header_accept = ['application/json', 'text/json', 'application/xml', 'text/xml', 'text/javascript']
|
2554
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
2555
|
+
|
2556
|
+
# HTTP header 'Content-Type'
|
2557
|
+
_header_content_type = []
|
2558
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
2559
|
+
|
2560
|
+
# form parameters
|
2561
|
+
form_params = {}
|
2562
|
+
|
2563
|
+
# http body (model)
|
2564
|
+
post_body = nil
|
2565
|
+
|
2566
|
+
|
2567
|
+
auth_names = []
|
2568
|
+
result = @api_client.call_api(:GET, path,
|
2569
|
+
:header_params => header_params,
|
2570
|
+
:query_params => query_params,
|
2571
|
+
:form_params => form_params,
|
2572
|
+
:body => post_body,
|
2573
|
+
:auth_names => auth_names,
|
2574
|
+
:return_type => 'WBSDefinitionResponse')
|
2575
|
+
if Configuration.debugging
|
2576
|
+
Configuration.logger.debug "API called: TasksApi#get_project_wbs_definition. Result: #{result.inspect}"
|
2577
|
+
end
|
2578
|
+
return result
|
2579
|
+
end
|
2580
|
+
end
|
2581
|
+
end
|
2582
|
+
|
2583
|
+
|
2584
|
+
|
2585
|
+
|