osdn-client 0.0.20161003 → 0.0.20171120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +168 -6
  3. data/docs/FrsAdminPrefs.md +9 -0
  4. data/docs/Group.md +1 -3
  5. data/docs/GroupProfile.md +10 -0
  6. data/docs/GroupProfilePerLanguage.md +10 -0
  7. data/docs/GroupToolFlags.md +1 -2
  8. data/docs/History.md +15 -0
  9. data/docs/I18NText.md +9 -0
  10. data/docs/ProjectApi.md +4021 -209
  11. data/docs/ProjectBzr.md +22 -0
  12. data/docs/ProjectFrsApi.md +118 -4
  13. data/docs/ProjectGit.md +27 -0
  14. data/docs/ProjectHg.md +22 -0
  15. data/docs/ProjectSCM.md +22 -0
  16. data/docs/ProjectSCMApi.md +1214 -0
  17. data/docs/ProjectSCMLastCommit.md +11 -0
  18. data/docs/ProjectSvn.md +25 -0
  19. data/docs/ProjectTicketApi.md +1847 -0
  20. data/docs/ProjectTicketComment.md +13 -0
  21. data/docs/ProjectTicketComponent.md +14 -0
  22. data/docs/ProjectTicketComponentSummary.md +10 -0
  23. data/docs/ProjectTicketComponentSummarySummarizedBy.md +12 -0
  24. data/docs/ProjectTicketHistory.md +14 -0
  25. data/docs/ProjectTicketItem.md +25 -0
  26. data/docs/ProjectTicketMilestone.md +14 -0
  27. data/docs/ProjectTicketMilestoneSummary.md +10 -0
  28. data/docs/ProjectTicketMilestoneSummarySummarizedBy.md +12 -0
  29. data/docs/ProjectTicketPrefs.md +13 -0
  30. data/docs/ProjectTicketType.md +15 -0
  31. data/docs/ProjectTicketTypeInstructionPerLanguage.md +9 -0
  32. data/docs/ProjectTicketTypeInstructions.md +9 -0
  33. data/docs/ProjectTicketTypeSummary.md +10 -0
  34. data/docs/ProjectTicketTypeSummarySummarizedBy.md +12 -0
  35. data/docs/ProjectWeb.md +8 -0
  36. data/docs/ScmHook.md +18 -0
  37. data/docs/SummariadByComponent.md +7 -0
  38. data/docs/SummariadByComponentInner.md +10 -0
  39. data/docs/SummariadByMilestone.md +7 -0
  40. data/docs/SummariadByMilestoneInner.md +10 -0
  41. data/docs/SummariadByOwner.md +7 -0
  42. data/docs/SummariadByOwnerInner.md +10 -0
  43. data/docs/SummariadByPriority.md +7 -0
  44. data/docs/SummariadByPriorityInner.md +10 -0
  45. data/docs/SummariadBySeverity.md +7 -0
  46. data/docs/SummariadBySeverityInner.md +10 -0
  47. data/docs/SummariadByType.md +7 -0
  48. data/docs/SummariadByTypeInner.md +10 -0
  49. data/docs/User.md +5 -3
  50. data/docs/UserApi.md +279 -0
  51. data/docs/UserImages.md +12 -0
  52. data/docs/UserStats.md +33 -0
  53. data/lib/osdn-client.rb +45 -1
  54. data/lib/osdn-client/api/default_api.rb +1 -1
  55. data/lib/osdn-client/api/project_api.rb +4574 -396
  56. data/lib/osdn-client/api/project_frs_api.rb +122 -5
  57. data/lib/osdn-client/api/project_news_api.rb +1 -1
  58. data/lib/osdn-client/api/project_scm_api.rb +1310 -0
  59. data/lib/osdn-client/api/project_ticket_api.rb +2124 -0
  60. data/lib/osdn-client/api/user_api.rb +294 -1
  61. data/lib/osdn-client/api_client.rb +1 -1
  62. data/lib/osdn-client/api_error.rb +1 -1
  63. data/lib/osdn-client/configuration.rb +1 -1
  64. data/lib/osdn-client/models/frs_admin_prefs.rb +208 -0
  65. data/lib/osdn-client/models/group.rb +8 -26
  66. data/lib/osdn-client/models/group_profile.rb +223 -0
  67. data/lib/osdn-client/models/group_profile_per_language.rb +217 -0
  68. data/lib/osdn-client/models/group_tool_flags.rb +11 -20
  69. data/lib/osdn-client/models/history.rb +262 -0
  70. data/lib/osdn-client/models/i18_n_text.rb +208 -0
  71. data/lib/osdn-client/models/news.rb +1 -1
  72. data/lib/osdn-client/models/package.rb +1 -1
  73. data/lib/osdn-client/models/pong.rb +1 -1
  74. data/lib/osdn-client/models/project_bzr.rb +329 -0
  75. data/lib/osdn-client/models/project_git.rb +374 -0
  76. data/lib/osdn-client/models/project_hg.rb +329 -0
  77. data/lib/osdn-client/models/project_scm.rb +329 -0
  78. data/lib/osdn-client/models/project_scm_last_commit.rb +226 -0
  79. data/lib/osdn-client/models/project_svn.rb +356 -0
  80. data/lib/osdn-client/models/project_ticket_comment.rb +244 -0
  81. data/lib/osdn-client/models/project_ticket_component.rb +253 -0
  82. data/lib/osdn-client/models/project_ticket_component_summary.rb +217 -0
  83. data/lib/osdn-client/models/project_ticket_component_summary_summarized_by.rb +235 -0
  84. data/lib/osdn-client/models/project_ticket_history.rb +253 -0
  85. data/lib/osdn-client/models/project_ticket_item.rb +356 -0
  86. data/lib/osdn-client/models/project_ticket_milestone.rb +253 -0
  87. data/lib/osdn-client/models/project_ticket_milestone_summary.rb +217 -0
  88. data/lib/osdn-client/models/project_ticket_milestone_summary_summarized_by.rb +235 -0
  89. data/lib/osdn-client/models/project_ticket_prefs.rb +244 -0
  90. data/lib/osdn-client/models/project_ticket_type.rb +266 -0
  91. data/lib/osdn-client/models/project_ticket_type_instruction_per_language.rb +208 -0
  92. data/lib/osdn-client/models/project_ticket_type_instructions.rb +212 -0
  93. data/lib/osdn-client/models/project_ticket_type_summary.rb +217 -0
  94. data/lib/osdn-client/models/project_ticket_type_summary_summarized_by.rb +235 -0
  95. data/lib/osdn-client/models/project_web.rb +199 -0
  96. data/lib/osdn-client/models/rel_file.rb +1 -1
  97. data/lib/osdn-client/models/release.rb +1 -1
  98. data/lib/osdn-client/models/scm_hook.rb +289 -0
  99. data/lib/osdn-client/models/simple_chamber.rb +1 -1
  100. data/lib/osdn-client/models/simple_group.rb +1 -1
  101. data/lib/osdn-client/models/simple_user.rb +1 -1
  102. data/lib/osdn-client/models/skill.rb +1 -1
  103. data/lib/osdn-client/models/summariad_by_component.rb +190 -0
  104. data/lib/osdn-client/models/summariad_by_component_inner.rb +217 -0
  105. data/lib/osdn-client/models/summariad_by_milestone.rb +190 -0
  106. data/lib/osdn-client/models/summariad_by_milestone_inner.rb +217 -0
  107. data/lib/osdn-client/models/summariad_by_owner.rb +190 -0
  108. data/lib/osdn-client/models/summariad_by_owner_inner.rb +217 -0
  109. data/lib/osdn-client/models/summariad_by_priority.rb +190 -0
  110. data/lib/osdn-client/models/summariad_by_priority_inner.rb +217 -0
  111. data/lib/osdn-client/models/summariad_by_severity.rb +190 -0
  112. data/lib/osdn-client/models/summariad_by_severity_inner.rb +217 -0
  113. data/lib/osdn-client/models/summariad_by_type.rb +190 -0
  114. data/lib/osdn-client/models/summariad_by_type_inner.rb +217 -0
  115. data/lib/osdn-client/models/token.rb +1 -1
  116. data/lib/osdn-client/models/user.rb +38 -18
  117. data/lib/osdn-client/models/user_images.rb +235 -0
  118. data/lib/osdn-client/models/user_stats.rb +424 -0
  119. data/lib/osdn-client/version.rb +2 -2
  120. data/osdn-client.gemspec +1 -1
  121. data/spec/api/default_api_spec.rb +1 -1
  122. data/spec/api/project_api_spec.rb +899 -3
  123. data/spec/api/project_frs_api_spec.rb +28 -3
  124. data/spec/api/project_news_api_spec.rb +1 -1
  125. data/spec/api/project_scm_api_spec.rb +324 -0
  126. data/spec/api/project_ticket_api_spec.rb +488 -0
  127. data/spec/api/user_api_spec.rb +63 -1
  128. data/spec/api_client_spec.rb +1 -1
  129. data/spec/configuration_spec.rb +1 -1
  130. data/spec/models/frs_admin_prefs_spec.rb +59 -0
  131. data/spec/models/group_profile_per_language_spec.rb +65 -0
  132. data/spec/models/group_profile_spec.rb +65 -0
  133. data/spec/models/group_spec.rb +2 -14
  134. data/spec/models/group_tool_flags_spec.rb +3 -9
  135. data/spec/models/history_spec.rb +95 -0
  136. data/spec/models/i18_n_text_spec.rb +59 -0
  137. data/spec/models/news_spec.rb +1 -1
  138. data/spec/models/package_spec.rb +1 -1
  139. data/spec/models/pong_spec.rb +1 -1
  140. data/spec/models/project_bzr_spec.rb +137 -0
  141. data/spec/models/project_git_spec.rb +167 -0
  142. data/spec/models/project_hg_spec.rb +137 -0
  143. data/spec/models/project_scm_last_commit_spec.rb +71 -0
  144. data/spec/models/project_scm_spec.rb +137 -0
  145. data/spec/models/project_svn_spec.rb +155 -0
  146. data/spec/models/project_ticket_comment_spec.rb +83 -0
  147. data/spec/models/project_ticket_component_spec.rb +89 -0
  148. data/spec/models/project_ticket_component_summary_spec.rb +65 -0
  149. data/spec/models/project_ticket_component_summary_summarized_by_spec.rb +77 -0
  150. data/spec/models/project_ticket_history_spec.rb +89 -0
  151. data/spec/models/project_ticket_item_spec.rb +155 -0
  152. data/spec/models/project_ticket_milestone_spec.rb +89 -0
  153. data/spec/models/project_ticket_milestone_summary_spec.rb +65 -0
  154. data/spec/models/project_ticket_milestone_summary_summarized_by_spec.rb +77 -0
  155. data/spec/models/project_ticket_prefs_spec.rb +83 -0
  156. data/spec/models/project_ticket_type_instruction_per_language_spec.rb +59 -0
  157. data/spec/models/project_ticket_type_instructions_spec.rb +59 -0
  158. data/spec/models/project_ticket_type_spec.rb +95 -0
  159. data/spec/models/project_ticket_type_summary_spec.rb +65 -0
  160. data/spec/models/project_ticket_type_summary_summarized_by_spec.rb +77 -0
  161. data/spec/models/project_web_spec.rb +53 -0
  162. data/spec/models/rel_file_spec.rb +1 -1
  163. data/spec/models/release_spec.rb +1 -1
  164. data/spec/models/scm_hook_spec.rb +113 -0
  165. data/spec/models/simple_chamber_spec.rb +1 -1
  166. data/spec/models/simple_group_spec.rb +1 -1
  167. data/spec/models/simple_user_spec.rb +1 -1
  168. data/spec/models/skill_spec.rb +1 -1
  169. data/spec/models/summariad_by_component_inner_spec.rb +65 -0
  170. data/spec/models/summariad_by_component_spec.rb +47 -0
  171. data/spec/models/summariad_by_milestone_inner_spec.rb +65 -0
  172. data/spec/models/summariad_by_milestone_spec.rb +47 -0
  173. data/spec/models/summariad_by_owner_inner_spec.rb +65 -0
  174. data/spec/models/summariad_by_owner_spec.rb +47 -0
  175. data/spec/models/summariad_by_priority_inner_spec.rb +65 -0
  176. data/spec/models/summariad_by_priority_spec.rb +47 -0
  177. data/spec/models/summariad_by_severity_inner_spec.rb +65 -0
  178. data/spec/models/summariad_by_severity_spec.rb +47 -0
  179. data/spec/models/summariad_by_type_inner_spec.rb +65 -0
  180. data/spec/models/summariad_by_type_spec.rb +47 -0
  181. data/spec/models/token_spec.rb +1 -1
  182. data/spec/models/user_images_spec.rb +77 -0
  183. data/spec/models/user_spec.rb +16 -4
  184. data/spec/models/user_stats_spec.rb +203 -0
  185. data/spec/spec_helper.rb +1 -1
  186. metadata +179 -3
@@ -0,0 +1,2124 @@
1
+ =begin
2
+ #OSDN REST API v0 beta
3
+
4
+ #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.net/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.net/projects/osdn-codes/releases/p14859 .
5
+
6
+ OpenAPI spec version: 0.0.20171120
7
+ Contact: admin@osdn.net
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require "uri"
25
+
26
+ module OSDNClient
27
+ class ProjectTicketApi
28
+ attr_accessor :api_client
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+
34
+ #
35
+ # Create project ticket
36
+ # @param id_or_name numeric project id or project name
37
+ # @param name Project ticket name (title)
38
+ # @param description Project ticket description details
39
+ # @param type_id numeric project ticket type id
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [Integer] :milestone_id numeric project ticket milestone id
42
+ # @option opts [Integer] :component_id numeric project ticket component id
43
+ # @option opts [Integer] :priority project ticket priority (min = 1 and max = 9)
44
+ # @option opts [Integer] :severity project ticket severity (min = 1 and max = 9)
45
+ # @option opts [Integer] :owner numeric project ticket owner user id
46
+ # @return [ProjectTicketItem]
47
+ def create_project_ticket(id_or_name, name, description, type_id, opts = {})
48
+ data, _status_code, _headers = create_project_ticket_with_http_info(id_or_name, name, description, type_id, opts)
49
+ return data
50
+ end
51
+
52
+ #
53
+ # Create project ticket
54
+ # @param id_or_name numeric project id or project name
55
+ # @param name Project ticket name (title)
56
+ # @param description Project ticket description details
57
+ # @param type_id numeric project ticket type id
58
+ # @param [Hash] opts the optional parameters
59
+ # @option opts [Integer] :milestone_id numeric project ticket milestone id
60
+ # @option opts [Integer] :component_id numeric project ticket component id
61
+ # @option opts [Integer] :priority project ticket priority (min = 1 and max = 9)
62
+ # @option opts [Integer] :severity project ticket severity (min = 1 and max = 9)
63
+ # @option opts [Integer] :owner numeric project ticket owner user id
64
+ # @return [Array<(ProjectTicketItem, Fixnum, Hash)>] ProjectTicketItem data, response status code and response headers
65
+ def create_project_ticket_with_http_info(id_or_name, name, description, type_id, opts = {})
66
+ if @api_client.config.debugging
67
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket ..."
68
+ end
69
+ # verify the required parameter 'id_or_name' is set
70
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket" if id_or_name.nil?
71
+ # verify the required parameter 'name' is set
72
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket" if name.nil?
73
+ # verify the required parameter 'description' is set
74
+ fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket" if description.nil?
75
+ # verify the required parameter 'type_id' is set
76
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.create_project_ticket" if type_id.nil?
77
+ if opts[:'priority'] > 9.0
78
+ fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.create_project_ticket, must be smaller than or equal to 9.0.'
79
+ end
80
+
81
+ if opts[:'priority'] < 1.0
82
+ fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.create_project_ticket, must be greater than or equal to 1.0.'
83
+ end
84
+
85
+ if opts[:'severity'] > 9.0
86
+ fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.create_project_ticket, must be smaller than or equal to 9.0.'
87
+ end
88
+
89
+ if opts[:'severity'] < 1.0
90
+ fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.create_project_ticket, must be greater than or equal to 1.0.'
91
+ end
92
+
93
+ if opts[:'owner'] < 101.0
94
+ fail ArgumentError, 'invalid value for "opts[:"owner"]" when calling ProjectTicketApi.create_project_ticket, must be greater than or equal to 101.0.'
95
+ end
96
+
97
+ # resource path
98
+ local_var_path = "/project/{id_or_name}/ticket".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
99
+
100
+ # query parameters
101
+ query_params = {}
102
+
103
+ # header parameters
104
+ header_params = {}
105
+
106
+ # HTTP header 'Accept' (if needed)
107
+ local_header_accept = []
108
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
109
+
110
+ # HTTP header 'Content-Type'
111
+ local_header_content_type = ['application/x-www-form-urlencoded']
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
113
+
114
+ # form parameters
115
+ form_params = {}
116
+ form_params["name"] = name
117
+ form_params["description"] = description
118
+ form_params["type_id"] = type_id
119
+ form_params["milestone_id"] = opts[:'milestone_id'] if !opts[:'milestone_id'].nil?
120
+ form_params["component_id"] = opts[:'component_id'] if !opts[:'component_id'].nil?
121
+ form_params["priority"] = opts[:'priority'] if !opts[:'priority'].nil?
122
+ form_params["severity"] = opts[:'severity'] if !opts[:'severity'].nil?
123
+ form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil?
124
+
125
+ # http body (model)
126
+ post_body = nil
127
+ auth_names = ['oauth2-code', 'oauth2-implicit']
128
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => 'ProjectTicketItem')
135
+ if @api_client.config.debugging
136
+ @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
137
+ end
138
+ return data, status_code, headers
139
+ end
140
+
141
+ #
142
+ # Create new project ticket comment of spscified project.
143
+ # @param id_or_name numeric project id or project name
144
+ # @param ticket_id numeric project ticket id
145
+ # @param comment Ticket comment text
146
+ # @param [Hash] opts the optional parameters
147
+ # @return [ProjectTicketComment]
148
+ def create_project_ticket_comment(id_or_name, ticket_id, comment, opts = {})
149
+ data, _status_code, _headers = create_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment, opts)
150
+ return data
151
+ end
152
+
153
+ #
154
+ # Create new project ticket comment of spscified project.
155
+ # @param id_or_name numeric project id or project name
156
+ # @param ticket_id numeric project ticket id
157
+ # @param comment Ticket comment text
158
+ # @param [Hash] opts the optional parameters
159
+ # @return [Array<(ProjectTicketComment, Fixnum, Hash)>] ProjectTicketComment data, response status code and response headers
160
+ def create_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment, opts = {})
161
+ if @api_client.config.debugging
162
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_comment ..."
163
+ end
164
+ # verify the required parameter 'id_or_name' is set
165
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_comment" if id_or_name.nil?
166
+ # verify the required parameter 'ticket_id' is set
167
+ fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.create_project_ticket_comment" if ticket_id.nil?
168
+ # verify the required parameter 'comment' is set
169
+ fail ArgumentError, "Missing the required parameter 'comment' when calling ProjectTicketApi.create_project_ticket_comment" if comment.nil?
170
+ # resource path
171
+ local_var_path = "/project/{id_or_name}/ticket/{ticket_id}/comment".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'ticket_id' + '}', ticket_id.to_s)
172
+
173
+ # query parameters
174
+ query_params = {}
175
+
176
+ # header parameters
177
+ header_params = {}
178
+
179
+ # HTTP header 'Accept' (if needed)
180
+ local_header_accept = []
181
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
182
+
183
+ # HTTP header 'Content-Type'
184
+ local_header_content_type = ['application/x-www-form-urlencoded']
185
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
186
+
187
+ # form parameters
188
+ form_params = {}
189
+ form_params["comment"] = comment
190
+
191
+ # http body (model)
192
+ post_body = nil
193
+ auth_names = ['oauth2-code', 'oauth2-implicit']
194
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
195
+ :header_params => header_params,
196
+ :query_params => query_params,
197
+ :form_params => form_params,
198
+ :body => post_body,
199
+ :auth_names => auth_names,
200
+ :return_type => 'ProjectTicketComment')
201
+ if @api_client.config.debugging
202
+ @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ end
204
+ return data, status_code, headers
205
+ end
206
+
207
+ #
208
+ # Create new project ticket component of spscified project.
209
+ # @param id_or_name numeric project id or project name
210
+ # @param name Ticket component name
211
+ # @param description Ticket component description
212
+ # @param [Hash] opts the optional parameters
213
+ # @option opts [Integer] :owner Ticket componet owner user_id
214
+ # @option opts [BOOLEAN] :active Ticket componet will be shown the component select list when this parameter is true
215
+ # @return [Array<ProjectTicketComponent>]
216
+ def create_project_ticket_component(id_or_name, name, description, opts = {})
217
+ data, _status_code, _headers = create_project_ticket_component_with_http_info(id_or_name, name, description, opts)
218
+ return data
219
+ end
220
+
221
+ #
222
+ # Create new project ticket component of spscified project.
223
+ # @param id_or_name numeric project id or project name
224
+ # @param name Ticket component name
225
+ # @param description Ticket component description
226
+ # @param [Hash] opts the optional parameters
227
+ # @option opts [Integer] :owner Ticket componet owner user_id
228
+ # @option opts [BOOLEAN] :active Ticket componet will be shown the component select list when this parameter is true
229
+ # @return [Array<(Array<ProjectTicketComponent>, Fixnum, Hash)>] Array<ProjectTicketComponent> data, response status code and response headers
230
+ def create_project_ticket_component_with_http_info(id_or_name, name, description, opts = {})
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_component ..."
233
+ end
234
+ # verify the required parameter 'id_or_name' is set
235
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_component" if id_or_name.nil?
236
+ # verify the required parameter 'name' is set
237
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket_component" if name.nil?
238
+ # verify the required parameter 'description' is set
239
+ fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket_component" if description.nil?
240
+ # resource path
241
+ local_var_path = "/project/{id_or_name}/ticket/component".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
242
+
243
+ # query parameters
244
+ query_params = {}
245
+
246
+ # header parameters
247
+ header_params = {}
248
+
249
+ # HTTP header 'Accept' (if needed)
250
+ local_header_accept = []
251
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
252
+
253
+ # HTTP header 'Content-Type'
254
+ local_header_content_type = ['application/x-www-form-urlencoded']
255
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
256
+
257
+ # form parameters
258
+ form_params = {}
259
+ form_params["name"] = name
260
+ form_params["description"] = description
261
+ form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil?
262
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
263
+
264
+ # http body (model)
265
+ post_body = nil
266
+ auth_names = ['oauth2-code', 'oauth2-implicit']
267
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
268
+ :header_params => header_params,
269
+ :query_params => query_params,
270
+ :form_params => form_params,
271
+ :body => post_body,
272
+ :auth_names => auth_names,
273
+ :return_type => 'Array<ProjectTicketComponent>')
274
+ if @api_client.config.debugging
275
+ @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
276
+ end
277
+ return data, status_code, headers
278
+ end
279
+
280
+ #
281
+ # Create new project ticket milestone of spscified project.
282
+ # @param id_or_name numeric project id or project name
283
+ # @param name Ticket milestone name
284
+ # @param description Ticket milestone description
285
+ # @param [Hash] opts the optional parameters
286
+ # @option opts [DateTime] :start Ticket milestone start date
287
+ # @option opts [DateTime] :_end Ticket milestone due date
288
+ # @return [ProjectTicketMilestone]
289
+ def create_project_ticket_milestone(id_or_name, name, description, opts = {})
290
+ data, _status_code, _headers = create_project_ticket_milestone_with_http_info(id_or_name, name, description, opts)
291
+ return data
292
+ end
293
+
294
+ #
295
+ # Create new project ticket milestone of spscified project.
296
+ # @param id_or_name numeric project id or project name
297
+ # @param name Ticket milestone name
298
+ # @param description Ticket milestone description
299
+ # @param [Hash] opts the optional parameters
300
+ # @option opts [DateTime] :start Ticket milestone start date
301
+ # @option opts [DateTime] :_end Ticket milestone due date
302
+ # @return [Array<(ProjectTicketMilestone, Fixnum, Hash)>] ProjectTicketMilestone data, response status code and response headers
303
+ def create_project_ticket_milestone_with_http_info(id_or_name, name, description, opts = {})
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_milestone ..."
306
+ end
307
+ # verify the required parameter 'id_or_name' is set
308
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_milestone" if id_or_name.nil?
309
+ # verify the required parameter 'name' is set
310
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket_milestone" if name.nil?
311
+ # verify the required parameter 'description' is set
312
+ fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket_milestone" if description.nil?
313
+ # resource path
314
+ local_var_path = "/project/{id_or_name}/ticket/milestone".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
315
+
316
+ # query parameters
317
+ query_params = {}
318
+
319
+ # header parameters
320
+ header_params = {}
321
+
322
+ # HTTP header 'Accept' (if needed)
323
+ local_header_accept = []
324
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
325
+
326
+ # HTTP header 'Content-Type'
327
+ local_header_content_type = ['application/x-www-form-urlencoded']
328
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
329
+
330
+ # form parameters
331
+ form_params = {}
332
+ form_params["name"] = name
333
+ form_params["description"] = description
334
+ form_params["start"] = opts[:'start'] if !opts[:'start'].nil?
335
+ form_params["end"] = opts[:'_end'] if !opts[:'_end'].nil?
336
+
337
+ # http body (model)
338
+ post_body = nil
339
+ auth_names = ['oauth2-code', 'oauth2-implicit']
340
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
341
+ :header_params => header_params,
342
+ :query_params => query_params,
343
+ :form_params => form_params,
344
+ :body => post_body,
345
+ :auth_names => auth_names,
346
+ :return_type => 'ProjectTicketMilestone')
347
+ if @api_client.config.debugging
348
+ @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
349
+ end
350
+ return data, status_code, headers
351
+ end
352
+
353
+ #
354
+ # Create new project ticket type of spscified project.
355
+ # @param id_or_name numeric project id or project name
356
+ # @param name Ticket type name
357
+ # @param description Ticket type description
358
+ # @param [Hash] opts the optional parameters
359
+ # @option opts [BOOLEAN] :is_public if set as false, this type will be shown to project members only.
360
+ # @return [ProjectTicketType]
361
+ def create_project_ticket_type(id_or_name, name, description, opts = {})
362
+ data, _status_code, _headers = create_project_ticket_type_with_http_info(id_or_name, name, description, opts)
363
+ return data
364
+ end
365
+
366
+ #
367
+ # Create new project ticket type of spscified project.
368
+ # @param id_or_name numeric project id or project name
369
+ # @param name Ticket type name
370
+ # @param description Ticket type description
371
+ # @param [Hash] opts the optional parameters
372
+ # @option opts [BOOLEAN] :is_public if set as false, this type will be shown to project members only.
373
+ # @return [Array<(ProjectTicketType, Fixnum, Hash)>] ProjectTicketType data, response status code and response headers
374
+ def create_project_ticket_type_with_http_info(id_or_name, name, description, opts = {})
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_type ..."
377
+ end
378
+ # verify the required parameter 'id_or_name' is set
379
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_type" if id_or_name.nil?
380
+ # verify the required parameter 'name' is set
381
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket_type" if name.nil?
382
+ # verify the required parameter 'description' is set
383
+ fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket_type" if description.nil?
384
+ # resource path
385
+ local_var_path = "/project/{id_or_name}/ticket/type".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
386
+
387
+ # query parameters
388
+ query_params = {}
389
+
390
+ # header parameters
391
+ header_params = {}
392
+
393
+ # HTTP header 'Accept' (if needed)
394
+ local_header_accept = []
395
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
396
+
397
+ # HTTP header 'Content-Type'
398
+ local_header_content_type = ['application/x-www-form-urlencoded']
399
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
400
+
401
+ # form parameters
402
+ form_params = {}
403
+ form_params["name"] = name
404
+ form_params["description"] = description
405
+ form_params["is_public"] = opts[:'is_public'] if !opts[:'is_public'].nil?
406
+
407
+ # http body (model)
408
+ post_body = nil
409
+ auth_names = ['oauth2-code', 'oauth2-implicit']
410
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
411
+ :header_params => header_params,
412
+ :query_params => query_params,
413
+ :form_params => form_params,
414
+ :body => post_body,
415
+ :auth_names => auth_names,
416
+ :return_type => 'ProjectTicketType')
417
+ if @api_client.config.debugging
418
+ @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
419
+ end
420
+ return data, status_code, headers
421
+ end
422
+
423
+ #
424
+ # Create project ticket type instructions for the language
425
+ # @param id_or_name numeric project id or project name
426
+ # @param type_id numeric project ticket type id
427
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
428
+ # @param instruction Ticket submit instruction for the type
429
+ # @param [Hash] opts the optional parameters
430
+ # @return [ProjectTicketTypeInstructionPerLanguage]
431
+ def create_project_ticket_type_instruction(id_or_name, type_id, language_code, instruction, opts = {})
432
+ data, _status_code, _headers = create_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, instruction, opts)
433
+ return data
434
+ end
435
+
436
+ #
437
+ # Create project ticket type instructions for the language
438
+ # @param id_or_name numeric project id or project name
439
+ # @param type_id numeric project ticket type id
440
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
441
+ # @param instruction Ticket submit instruction for the type
442
+ # @param [Hash] opts the optional parameters
443
+ # @return [Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>] ProjectTicketTypeInstructionPerLanguage data, response status code and response headers
444
+ def create_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, instruction, opts = {})
445
+ if @api_client.config.debugging
446
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_type_instruction ..."
447
+ end
448
+ # verify the required parameter 'id_or_name' is set
449
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_type_instruction" if id_or_name.nil?
450
+ # verify the required parameter 'type_id' is set
451
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.create_project_ticket_type_instruction" if type_id.nil?
452
+ # verify the required parameter 'language_code' is set
453
+ fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.create_project_ticket_type_instruction" if language_code.nil?
454
+ # verify the required parameter 'instruction' is set
455
+ fail ArgumentError, "Missing the required parameter 'instruction' when calling ProjectTicketApi.create_project_ticket_type_instruction" if instruction.nil?
456
+ # resource path
457
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}/instruction".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s)
458
+
459
+ # query parameters
460
+ query_params = {}
461
+
462
+ # header parameters
463
+ header_params = {}
464
+
465
+ # HTTP header 'Accept' (if needed)
466
+ local_header_accept = []
467
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
468
+
469
+ # HTTP header 'Content-Type'
470
+ local_header_content_type = ['application/x-www-form-urlencoded']
471
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
472
+
473
+ # form parameters
474
+ form_params = {}
475
+ form_params["language_code"] = language_code
476
+ form_params["instruction"] = instruction
477
+
478
+ # http body (model)
479
+ post_body = nil
480
+ auth_names = ['oauth2-code', 'oauth2-implicit']
481
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
482
+ :header_params => header_params,
483
+ :query_params => query_params,
484
+ :form_params => form_params,
485
+ :body => post_body,
486
+ :auth_names => auth_names,
487
+ :return_type => 'ProjectTicketTypeInstructionPerLanguage')
488
+ if @api_client.config.debugging
489
+ @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
490
+ end
491
+ return data, status_code, headers
492
+ end
493
+
494
+ #
495
+ # Delete project ticket component
496
+ # @param id_or_name numeric project id or project name
497
+ # @param component_id numeric project ticket component id
498
+ # @param migrate_to Tickets that assigned to delete target will be migrate to the ticket component_id
499
+ # @param [Hash] opts the optional parameters
500
+ # @return [nil]
501
+ def delete_project_ticket_component(id_or_name, component_id, migrate_to, opts = {})
502
+ delete_project_ticket_component_with_http_info(id_or_name, component_id, migrate_to, opts)
503
+ return nil
504
+ end
505
+
506
+ #
507
+ # Delete project ticket component
508
+ # @param id_or_name numeric project id or project name
509
+ # @param component_id numeric project ticket component id
510
+ # @param migrate_to Tickets that assigned to delete target will be migrate to the ticket component_id
511
+ # @param [Hash] opts the optional parameters
512
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
513
+ def delete_project_ticket_component_with_http_info(id_or_name, component_id, migrate_to, opts = {})
514
+ if @api_client.config.debugging
515
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_component ..."
516
+ end
517
+ # verify the required parameter 'id_or_name' is set
518
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_component" if id_or_name.nil?
519
+ # verify the required parameter 'component_id' is set
520
+ fail ArgumentError, "Missing the required parameter 'component_id' when calling ProjectTicketApi.delete_project_ticket_component" if component_id.nil?
521
+ # verify the required parameter 'migrate_to' is set
522
+ fail ArgumentError, "Missing the required parameter 'migrate_to' when calling ProjectTicketApi.delete_project_ticket_component" if migrate_to.nil?
523
+ # resource path
524
+ local_var_path = "/project/{id_or_name}/ticket/component/{component_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'component_id' + '}', component_id.to_s)
525
+
526
+ # query parameters
527
+ query_params = {}
528
+ query_params[:'migrate_to'] = migrate_to
529
+
530
+ # header parameters
531
+ header_params = {}
532
+
533
+ # HTTP header 'Accept' (if needed)
534
+ local_header_accept = []
535
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
536
+
537
+ # HTTP header 'Content-Type'
538
+ local_header_content_type = ['application/x-www-form-urlencoded']
539
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
540
+
541
+ # form parameters
542
+ form_params = {}
543
+
544
+ # http body (model)
545
+ post_body = nil
546
+ auth_names = ['oauth2-code', 'oauth2-implicit']
547
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
548
+ :header_params => header_params,
549
+ :query_params => query_params,
550
+ :form_params => form_params,
551
+ :body => post_body,
552
+ :auth_names => auth_names)
553
+ if @api_client.config.debugging
554
+ @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
555
+ end
556
+ return data, status_code, headers
557
+ end
558
+
559
+ #
560
+ # Delete project ticket milestone
561
+ # @param id_or_name numeric project id or project name
562
+ # @param milestone_id numeric project ticket milestone id
563
+ # @param [Hash] opts the optional parameters
564
+ # @option opts [Integer] :migrate_to Tickets that assigned to delete target will be migrate to the ticket milestone_id
565
+ # @return [nil]
566
+ def delete_project_ticket_milestone(id_or_name, milestone_id, opts = {})
567
+ delete_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts)
568
+ return nil
569
+ end
570
+
571
+ #
572
+ # Delete project ticket milestone
573
+ # @param id_or_name numeric project id or project name
574
+ # @param milestone_id numeric project ticket milestone id
575
+ # @param [Hash] opts the optional parameters
576
+ # @option opts [Integer] :migrate_to Tickets that assigned to delete target will be migrate to the ticket milestone_id
577
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
578
+ def delete_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {})
579
+ if @api_client.config.debugging
580
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_milestone ..."
581
+ end
582
+ # verify the required parameter 'id_or_name' is set
583
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_milestone" if id_or_name.nil?
584
+ # verify the required parameter 'milestone_id' is set
585
+ fail ArgumentError, "Missing the required parameter 'milestone_id' when calling ProjectTicketApi.delete_project_ticket_milestone" if milestone_id.nil?
586
+ # resource path
587
+ local_var_path = "/project/{id_or_name}/ticket/milestone/{milestone_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'milestone_id' + '}', milestone_id.to_s)
588
+
589
+ # query parameters
590
+ query_params = {}
591
+ query_params[:'migrate_to'] = opts[:'migrate_to'] if !opts[:'migrate_to'].nil?
592
+
593
+ # header parameters
594
+ header_params = {}
595
+
596
+ # HTTP header 'Accept' (if needed)
597
+ local_header_accept = []
598
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
599
+
600
+ # HTTP header 'Content-Type'
601
+ local_header_content_type = ['application/x-www-form-urlencoded']
602
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
603
+
604
+ # form parameters
605
+ form_params = {}
606
+
607
+ # http body (model)
608
+ post_body = nil
609
+ auth_names = ['oauth2-code', 'oauth2-implicit']
610
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
611
+ :header_params => header_params,
612
+ :query_params => query_params,
613
+ :form_params => form_params,
614
+ :body => post_body,
615
+ :auth_names => auth_names)
616
+ if @api_client.config.debugging
617
+ @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
618
+ end
619
+ return data, status_code, headers
620
+ end
621
+
622
+ #
623
+ # Delete project ticket type
624
+ # @param id_or_name numeric project id or project name
625
+ # @param type_id numeric project ticket type id
626
+ # @param migrate_to Tickets that assigned to delete target will be migrate to the ticket type_id
627
+ # @param [Hash] opts the optional parameters
628
+ # @return [nil]
629
+ def delete_project_ticket_type(id_or_name, type_id, migrate_to, opts = {})
630
+ delete_project_ticket_type_with_http_info(id_or_name, type_id, migrate_to, opts)
631
+ return nil
632
+ end
633
+
634
+ #
635
+ # Delete project ticket type
636
+ # @param id_or_name numeric project id or project name
637
+ # @param type_id numeric project ticket type id
638
+ # @param migrate_to Tickets that assigned to delete target will be migrate to the ticket type_id
639
+ # @param [Hash] opts the optional parameters
640
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
641
+ def delete_project_ticket_type_with_http_info(id_or_name, type_id, migrate_to, opts = {})
642
+ if @api_client.config.debugging
643
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_type ..."
644
+ end
645
+ # verify the required parameter 'id_or_name' is set
646
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_type" if id_or_name.nil?
647
+ # verify the required parameter 'type_id' is set
648
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.delete_project_ticket_type" if type_id.nil?
649
+ # verify the required parameter 'migrate_to' is set
650
+ fail ArgumentError, "Missing the required parameter 'migrate_to' when calling ProjectTicketApi.delete_project_ticket_type" if migrate_to.nil?
651
+ # resource path
652
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s)
653
+
654
+ # query parameters
655
+ query_params = {}
656
+ query_params[:'migrate_to'] = migrate_to
657
+
658
+ # header parameters
659
+ header_params = {}
660
+
661
+ # HTTP header 'Accept' (if needed)
662
+ local_header_accept = []
663
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
664
+
665
+ # HTTP header 'Content-Type'
666
+ local_header_content_type = ['application/x-www-form-urlencoded']
667
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
668
+
669
+ # form parameters
670
+ form_params = {}
671
+
672
+ # http body (model)
673
+ post_body = nil
674
+ auth_names = ['oauth2-code', 'oauth2-implicit']
675
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
676
+ :header_params => header_params,
677
+ :query_params => query_params,
678
+ :form_params => form_params,
679
+ :body => post_body,
680
+ :auth_names => auth_names)
681
+ if @api_client.config.debugging
682
+ @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
683
+ end
684
+ return data, status_code, headers
685
+ end
686
+
687
+ #
688
+ # Delete project ticket type instructions on the language
689
+ # @param id_or_name numeric project id or project name
690
+ # @param type_id numeric project ticket type id
691
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
692
+ # @param [Hash] opts the optional parameters
693
+ # @return [nil]
694
+ def delete_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {})
695
+ delete_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts)
696
+ return nil
697
+ end
698
+
699
+ #
700
+ # Delete project ticket type instructions on the language
701
+ # @param id_or_name numeric project id or project name
702
+ # @param type_id numeric project ticket type id
703
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
704
+ # @param [Hash] opts the optional parameters
705
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
706
+ def delete_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {})
707
+ if @api_client.config.debugging
708
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_type_instruction ..."
709
+ end
710
+ # verify the required parameter 'id_or_name' is set
711
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_type_instruction" if id_or_name.nil?
712
+ # verify the required parameter 'type_id' is set
713
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.delete_project_ticket_type_instruction" if type_id.nil?
714
+ # verify the required parameter 'language_code' is set
715
+ fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.delete_project_ticket_type_instruction" if language_code.nil?
716
+ # resource path
717
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}/instruction/{language_code}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s).sub('{' + 'language_code' + '}', language_code.to_s)
718
+
719
+ # query parameters
720
+ query_params = {}
721
+
722
+ # header parameters
723
+ header_params = {}
724
+
725
+ # HTTP header 'Accept' (if needed)
726
+ local_header_accept = []
727
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
728
+
729
+ # HTTP header 'Content-Type'
730
+ local_header_content_type = ['application/x-www-form-urlencoded']
731
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
732
+
733
+ # form parameters
734
+ form_params = {}
735
+
736
+ # http body (model)
737
+ post_body = nil
738
+ auth_names = ['oauth2-code', 'oauth2-implicit']
739
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
740
+ :header_params => header_params,
741
+ :query_params => query_params,
742
+ :form_params => form_params,
743
+ :body => post_body,
744
+ :auth_names => auth_names)
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
747
+ end
748
+ return data, status_code, headers
749
+ end
750
+
751
+ #
752
+ # Get project ticket
753
+ # @param id_or_name numeric project id or project name
754
+ # @param ticket_id numeric project ticket id
755
+ # @param [Hash] opts the optional parameters
756
+ # @return [ProjectTicketItem]
757
+ def get_project_ticket(id_or_name, ticket_id, opts = {})
758
+ data, _status_code, _headers = get_project_ticket_with_http_info(id_or_name, ticket_id, opts)
759
+ return data
760
+ end
761
+
762
+ #
763
+ # Get project ticket
764
+ # @param id_or_name numeric project id or project name
765
+ # @param ticket_id numeric project ticket id
766
+ # @param [Hash] opts the optional parameters
767
+ # @return [Array<(ProjectTicketItem, Fixnum, Hash)>] ProjectTicketItem data, response status code and response headers
768
+ def get_project_ticket_with_http_info(id_or_name, ticket_id, opts = {})
769
+ if @api_client.config.debugging
770
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket ..."
771
+ end
772
+ # verify the required parameter 'id_or_name' is set
773
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket" if id_or_name.nil?
774
+ # verify the required parameter 'ticket_id' is set
775
+ fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.get_project_ticket" if ticket_id.nil?
776
+ # resource path
777
+ local_var_path = "/project/{id_or_name}/ticket/{ticket_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'ticket_id' + '}', ticket_id.to_s)
778
+
779
+ # query parameters
780
+ query_params = {}
781
+
782
+ # header parameters
783
+ header_params = {}
784
+
785
+ # HTTP header 'Accept' (if needed)
786
+ local_header_accept = []
787
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
788
+
789
+ # HTTP header 'Content-Type'
790
+ local_header_content_type = ['application/x-www-form-urlencoded']
791
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
792
+
793
+ # form parameters
794
+ form_params = {}
795
+
796
+ # http body (model)
797
+ post_body = nil
798
+ auth_names = ['oauth2-code', 'oauth2-implicit']
799
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
800
+ :header_params => header_params,
801
+ :query_params => query_params,
802
+ :form_params => form_params,
803
+ :body => post_body,
804
+ :auth_names => auth_names,
805
+ :return_type => 'ProjectTicketItem')
806
+ if @api_client.config.debugging
807
+ @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
808
+ end
809
+ return data, status_code, headers
810
+ end
811
+
812
+ #
813
+ # Get project ticket component
814
+ # @param id_or_name numeric project id or project name
815
+ # @param component_id numeric project ticket component id
816
+ # @param [Hash] opts the optional parameters
817
+ # @return [ProjectTicketComponent]
818
+ def get_project_ticket_component(id_or_name, component_id, opts = {})
819
+ data, _status_code, _headers = get_project_ticket_component_with_http_info(id_or_name, component_id, opts)
820
+ return data
821
+ end
822
+
823
+ #
824
+ # Get project ticket component
825
+ # @param id_or_name numeric project id or project name
826
+ # @param component_id numeric project ticket component id
827
+ # @param [Hash] opts the optional parameters
828
+ # @return [Array<(ProjectTicketComponent, Fixnum, Hash)>] ProjectTicketComponent data, response status code and response headers
829
+ def get_project_ticket_component_with_http_info(id_or_name, component_id, opts = {})
830
+ if @api_client.config.debugging
831
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_component ..."
832
+ end
833
+ # verify the required parameter 'id_or_name' is set
834
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_component" if id_or_name.nil?
835
+ # verify the required parameter 'component_id' is set
836
+ fail ArgumentError, "Missing the required parameter 'component_id' when calling ProjectTicketApi.get_project_ticket_component" if component_id.nil?
837
+ # resource path
838
+ local_var_path = "/project/{id_or_name}/ticket/component/{component_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'component_id' + '}', component_id.to_s)
839
+
840
+ # query parameters
841
+ query_params = {}
842
+
843
+ # header parameters
844
+ header_params = {}
845
+
846
+ # HTTP header 'Accept' (if needed)
847
+ local_header_accept = []
848
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
849
+
850
+ # HTTP header 'Content-Type'
851
+ local_header_content_type = ['application/x-www-form-urlencoded']
852
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
853
+
854
+ # form parameters
855
+ form_params = {}
856
+
857
+ # http body (model)
858
+ post_body = nil
859
+ auth_names = ['oauth2-code', 'oauth2-implicit']
860
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
861
+ :header_params => header_params,
862
+ :query_params => query_params,
863
+ :form_params => form_params,
864
+ :body => post_body,
865
+ :auth_names => auth_names,
866
+ :return_type => 'ProjectTicketComponent')
867
+ if @api_client.config.debugging
868
+ @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
869
+ end
870
+ return data, status_code, headers
871
+ end
872
+
873
+ #
874
+ # Get project ticket milestone of spscified milestone_id.
875
+ # @param id_or_name numeric project id or project name
876
+ # @param milestone_id numeric project ticket milestone id
877
+ # @param [Hash] opts the optional parameters
878
+ # @return [ProjectTicketMilestone]
879
+ def get_project_ticket_milestone(id_or_name, milestone_id, opts = {})
880
+ data, _status_code, _headers = get_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts)
881
+ return data
882
+ end
883
+
884
+ #
885
+ # Get project ticket milestone of spscified milestone_id.
886
+ # @param id_or_name numeric project id or project name
887
+ # @param milestone_id numeric project ticket milestone id
888
+ # @param [Hash] opts the optional parameters
889
+ # @return [Array<(ProjectTicketMilestone, Fixnum, Hash)>] ProjectTicketMilestone data, response status code and response headers
890
+ def get_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {})
891
+ if @api_client.config.debugging
892
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_milestone ..."
893
+ end
894
+ # verify the required parameter 'id_or_name' is set
895
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_milestone" if id_or_name.nil?
896
+ # verify the required parameter 'milestone_id' is set
897
+ fail ArgumentError, "Missing the required parameter 'milestone_id' when calling ProjectTicketApi.get_project_ticket_milestone" if milestone_id.nil?
898
+ # resource path
899
+ local_var_path = "/project/{id_or_name}/ticket/milestone/{milestone_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'milestone_id' + '}', milestone_id.to_s)
900
+
901
+ # query parameters
902
+ query_params = {}
903
+
904
+ # header parameters
905
+ header_params = {}
906
+
907
+ # HTTP header 'Accept' (if needed)
908
+ local_header_accept = []
909
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
910
+
911
+ # HTTP header 'Content-Type'
912
+ local_header_content_type = ['application/x-www-form-urlencoded']
913
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
914
+
915
+ # form parameters
916
+ form_params = {}
917
+
918
+ # http body (model)
919
+ post_body = nil
920
+ auth_names = ['oauth2-code', 'oauth2-implicit']
921
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
922
+ :header_params => header_params,
923
+ :query_params => query_params,
924
+ :form_params => form_params,
925
+ :body => post_body,
926
+ :auth_names => auth_names,
927
+ :return_type => 'ProjectTicketMilestone')
928
+ if @api_client.config.debugging
929
+ @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
930
+ end
931
+ return data, status_code, headers
932
+ end
933
+
934
+ #
935
+ # Get project ticket type
936
+ # @param id_or_name numeric project id or project name
937
+ # @param type_id numeric project ticket type id
938
+ # @param [Hash] opts the optional parameters
939
+ # @return [ProjectTicketType]
940
+ def get_project_ticket_type(id_or_name, type_id, opts = {})
941
+ data, _status_code, _headers = get_project_ticket_type_with_http_info(id_or_name, type_id, opts)
942
+ return data
943
+ end
944
+
945
+ #
946
+ # Get project ticket type
947
+ # @param id_or_name numeric project id or project name
948
+ # @param type_id numeric project ticket type id
949
+ # @param [Hash] opts the optional parameters
950
+ # @return [Array<(ProjectTicketType, Fixnum, Hash)>] ProjectTicketType data, response status code and response headers
951
+ def get_project_ticket_type_with_http_info(id_or_name, type_id, opts = {})
952
+ if @api_client.config.debugging
953
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_type ..."
954
+ end
955
+ # verify the required parameter 'id_or_name' is set
956
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_type" if id_or_name.nil?
957
+ # verify the required parameter 'type_id' is set
958
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.get_project_ticket_type" if type_id.nil?
959
+ # resource path
960
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s)
961
+
962
+ # query parameters
963
+ query_params = {}
964
+
965
+ # header parameters
966
+ header_params = {}
967
+
968
+ # HTTP header 'Accept' (if needed)
969
+ local_header_accept = []
970
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
971
+
972
+ # HTTP header 'Content-Type'
973
+ local_header_content_type = ['application/x-www-form-urlencoded']
974
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
975
+
976
+ # form parameters
977
+ form_params = {}
978
+
979
+ # http body (model)
980
+ post_body = nil
981
+ auth_names = ['oauth2-code', 'oauth2-implicit']
982
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
983
+ :header_params => header_params,
984
+ :query_params => query_params,
985
+ :form_params => form_params,
986
+ :body => post_body,
987
+ :auth_names => auth_names,
988
+ :return_type => 'ProjectTicketType')
989
+ if @api_client.config.debugging
990
+ @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
991
+ end
992
+ return data, status_code, headers
993
+ end
994
+
995
+ #
996
+ # Get project ticket type instructions on the language
997
+ # @param id_or_name numeric project id or project name
998
+ # @param type_id numeric project ticket type id
999
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
1000
+ # @param [Hash] opts the optional parameters
1001
+ # @return [ProjectTicketTypeInstructionPerLanguage]
1002
+ def get_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {})
1003
+ data, _status_code, _headers = get_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts)
1004
+ return data
1005
+ end
1006
+
1007
+ #
1008
+ # Get project ticket type instructions on the language
1009
+ # @param id_or_name numeric project id or project name
1010
+ # @param type_id numeric project ticket type id
1011
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
1012
+ # @param [Hash] opts the optional parameters
1013
+ # @return [Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>] ProjectTicketTypeInstructionPerLanguage data, response status code and response headers
1014
+ def get_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {})
1015
+ if @api_client.config.debugging
1016
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_type_instruction ..."
1017
+ end
1018
+ # verify the required parameter 'id_or_name' is set
1019
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_type_instruction" if id_or_name.nil?
1020
+ # verify the required parameter 'type_id' is set
1021
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.get_project_ticket_type_instruction" if type_id.nil?
1022
+ # verify the required parameter 'language_code' is set
1023
+ fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.get_project_ticket_type_instruction" if language_code.nil?
1024
+ # resource path
1025
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}/instruction/{language_code}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s).sub('{' + 'language_code' + '}', language_code.to_s)
1026
+
1027
+ # query parameters
1028
+ query_params = {}
1029
+
1030
+ # header parameters
1031
+ header_params = {}
1032
+
1033
+ # HTTP header 'Accept' (if needed)
1034
+ local_header_accept = []
1035
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1036
+
1037
+ # HTTP header 'Content-Type'
1038
+ local_header_content_type = ['application/x-www-form-urlencoded']
1039
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1040
+
1041
+ # form parameters
1042
+ form_params = {}
1043
+
1044
+ # http body (model)
1045
+ post_body = nil
1046
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1047
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1048
+ :header_params => header_params,
1049
+ :query_params => query_params,
1050
+ :form_params => form_params,
1051
+ :body => post_body,
1052
+ :auth_names => auth_names,
1053
+ :return_type => 'ProjectTicketTypeInstructionPerLanguage')
1054
+ if @api_client.config.debugging
1055
+ @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1056
+ end
1057
+ return data, status_code, headers
1058
+ end
1059
+
1060
+ #
1061
+ # Update project ticket type instructions on the language
1062
+ # @param id_or_name numeric project id or project name
1063
+ # @param type_id numeric project ticket type id
1064
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
1065
+ # @param instruction Ticket submit instruction for the type
1066
+ # @param [Hash] opts the optional parameters
1067
+ # @return [ProjectTicketTypeInstructionPerLanguage]
1068
+ def get_project_ticket_type_instruction_0(id_or_name, type_id, language_code, instruction, opts = {})
1069
+ data, _status_code, _headers = get_project_ticket_type_instruction_0_with_http_info(id_or_name, type_id, language_code, instruction, opts)
1070
+ return data
1071
+ end
1072
+
1073
+ #
1074
+ # Update project ticket type instructions on the language
1075
+ # @param id_or_name numeric project id or project name
1076
+ # @param type_id numeric project ticket type id
1077
+ # @param language_code Language code for display name and description (example en, ja, zh-TW)
1078
+ # @param instruction Ticket submit instruction for the type
1079
+ # @param [Hash] opts the optional parameters
1080
+ # @return [Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>] ProjectTicketTypeInstructionPerLanguage data, response status code and response headers
1081
+ def get_project_ticket_type_instruction_0_with_http_info(id_or_name, type_id, language_code, instruction, opts = {})
1082
+ if @api_client.config.debugging
1083
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_type_instruction_0 ..."
1084
+ end
1085
+ # verify the required parameter 'id_or_name' is set
1086
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if id_or_name.nil?
1087
+ # verify the required parameter 'type_id' is set
1088
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if type_id.nil?
1089
+ # verify the required parameter 'language_code' is set
1090
+ fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if language_code.nil?
1091
+ # verify the required parameter 'instruction' is set
1092
+ fail ArgumentError, "Missing the required parameter 'instruction' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if instruction.nil?
1093
+ # resource path
1094
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}/instruction/{language_code}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s).sub('{' + 'language_code' + '}', language_code.to_s)
1095
+
1096
+ # query parameters
1097
+ query_params = {}
1098
+
1099
+ # header parameters
1100
+ header_params = {}
1101
+
1102
+ # HTTP header 'Accept' (if needed)
1103
+ local_header_accept = []
1104
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1105
+
1106
+ # HTTP header 'Content-Type'
1107
+ local_header_content_type = ['application/x-www-form-urlencoded']
1108
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1109
+
1110
+ # form parameters
1111
+ form_params = {}
1112
+ form_params["instruction"] = instruction
1113
+
1114
+ # http body (model)
1115
+ post_body = nil
1116
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1117
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1118
+ :header_params => header_params,
1119
+ :query_params => query_params,
1120
+ :form_params => form_params,
1121
+ :body => post_body,
1122
+ :auth_names => auth_names,
1123
+ :return_type => 'ProjectTicketTypeInstructionPerLanguage')
1124
+ if @api_client.config.debugging
1125
+ @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_type_instruction_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1126
+ end
1127
+ return data, status_code, headers
1128
+ end
1129
+
1130
+ #
1131
+ # List project ticket order by submit date descending
1132
+ # @param id_or_name numeric project id or project name
1133
+ # @param [Hash] opts the optional parameters
1134
+ # @option opts [Array<String>] :status Tickets are assigned to these type_ids
1135
+ # @option opts [Array<Integer>] :type_id Listing tickets are assigned to these type_ids
1136
+ # @option opts [Array<Integer>] :not_type_id Listing tickets are NOT assigned to these type_ids
1137
+ # @option opts [Array<Integer>] :component_id Listing tickets are assigned to these component_ids (If you want to indicate component is not assigned, please use component_id &#x3D; 0)
1138
+ # @option opts [Array<Integer>] :not_component_id Listing tickets are NOT assigned to these component_ids (If you want to indicate component is not assigned, please use component_id &#x3D; 0)
1139
+ # @option opts [Array<Integer>] :milestone_id Listing tickets are assigned to these milestone_ids (If you want to indicate milestone is not assigned, please use milestone_id &#x3D; 0)
1140
+ # @option opts [Array<Integer>] :not_milestone_id Listing tickets are NOT assigned to these milestone_ids (milestone_id &#x3D; 0 means milestone not assigned)
1141
+ # @option opts [Integer] :max_priority Listing equal or lower priority tickets
1142
+ # @option opts [Integer] :min_priority Listing equal or higher priority tickets
1143
+ # @option opts [Integer] :priority Listing tickets have this priority
1144
+ # @option opts [Integer] :max_severity Listing equal or lower severity tickets
1145
+ # @option opts [Integer] :min_severity Listing equal or higher severity tickets
1146
+ # @option opts [Integer] :severity Listing tickets have this severity
1147
+ # @option opts [Array<Integer>] :owner Listing tickets assigned to these owners (owner &#x3D; 100 means owner is not assigned)
1148
+ # @option opts [Array<Integer>] :not_owner Listing tickets NOT assigned to these owners (owner &#x3D; 100 means owner is not assigned)
1149
+ # @option opts [Array<Integer>] :reporter Listing tickets reported by these users (report &#x3D; 100 means reported by non login user)
1150
+ # @option opts [Array<Integer>] :not_reporter Listing tickets reported by these users (report &#x3D; 100 means reported by non login user)
1151
+ # @option opts [String] :text Listing tickets title or description or comment include the text
1152
+ # @return [Array<ProjectTicketItem>]
1153
+ def list_project_ticket(id_or_name, opts = {})
1154
+ data, _status_code, _headers = list_project_ticket_with_http_info(id_or_name, opts)
1155
+ return data
1156
+ end
1157
+
1158
+ #
1159
+ # List project ticket order by submit date descending
1160
+ # @param id_or_name numeric project id or project name
1161
+ # @param [Hash] opts the optional parameters
1162
+ # @option opts [Array<String>] :status Tickets are assigned to these type_ids
1163
+ # @option opts [Array<Integer>] :type_id Listing tickets are assigned to these type_ids
1164
+ # @option opts [Array<Integer>] :not_type_id Listing tickets are NOT assigned to these type_ids
1165
+ # @option opts [Array<Integer>] :component_id Listing tickets are assigned to these component_ids (If you want to indicate component is not assigned, please use component_id &#x3D; 0)
1166
+ # @option opts [Array<Integer>] :not_component_id Listing tickets are NOT assigned to these component_ids (If you want to indicate component is not assigned, please use component_id &#x3D; 0)
1167
+ # @option opts [Array<Integer>] :milestone_id Listing tickets are assigned to these milestone_ids (If you want to indicate milestone is not assigned, please use milestone_id &#x3D; 0)
1168
+ # @option opts [Array<Integer>] :not_milestone_id Listing tickets are NOT assigned to these milestone_ids (milestone_id &#x3D; 0 means milestone not assigned)
1169
+ # @option opts [Integer] :max_priority Listing equal or lower priority tickets
1170
+ # @option opts [Integer] :min_priority Listing equal or higher priority tickets
1171
+ # @option opts [Integer] :priority Listing tickets have this priority
1172
+ # @option opts [Integer] :max_severity Listing equal or lower severity tickets
1173
+ # @option opts [Integer] :min_severity Listing equal or higher severity tickets
1174
+ # @option opts [Integer] :severity Listing tickets have this severity
1175
+ # @option opts [Array<Integer>] :owner Listing tickets assigned to these owners (owner &#x3D; 100 means owner is not assigned)
1176
+ # @option opts [Array<Integer>] :not_owner Listing tickets NOT assigned to these owners (owner &#x3D; 100 means owner is not assigned)
1177
+ # @option opts [Array<Integer>] :reporter Listing tickets reported by these users (report &#x3D; 100 means reported by non login user)
1178
+ # @option opts [Array<Integer>] :not_reporter Listing tickets reported by these users (report &#x3D; 100 means reported by non login user)
1179
+ # @option opts [String] :text Listing tickets title or description or comment include the text
1180
+ # @return [Array<(Array<ProjectTicketItem>, Fixnum, Hash)>] Array<ProjectTicketItem> data, response status code and response headers
1181
+ def list_project_ticket_with_http_info(id_or_name, opts = {})
1182
+ if @api_client.config.debugging
1183
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket ..."
1184
+ end
1185
+ # verify the required parameter 'id_or_name' is set
1186
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket" if id_or_name.nil?
1187
+ if opts[:'status'] && ![].include?(opts[:'status'])
1188
+ fail ArgumentError, 'invalid value for "status", must be one of '
1189
+ end
1190
+ if opts[:'max_priority'] > 9.0
1191
+ fail ArgumentError, 'invalid value for "opts[:"max_priority"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.'
1192
+ end
1193
+
1194
+ if opts[:'max_priority'] < 1.0
1195
+ fail ArgumentError, 'invalid value for "opts[:"max_priority"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.'
1196
+ end
1197
+
1198
+ if opts[:'min_priority'] > 9.0
1199
+ fail ArgumentError, 'invalid value for "opts[:"min_priority"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.'
1200
+ end
1201
+
1202
+ if opts[:'min_priority'] < 1.0
1203
+ fail ArgumentError, 'invalid value for "opts[:"min_priority"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.'
1204
+ end
1205
+
1206
+ if opts[:'priority'] > 9.0
1207
+ fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.'
1208
+ end
1209
+
1210
+ if opts[:'priority'] < 1.0
1211
+ fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.'
1212
+ end
1213
+
1214
+ if opts[:'max_severity'] > 9.0
1215
+ fail ArgumentError, 'invalid value for "opts[:"max_severity"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.'
1216
+ end
1217
+
1218
+ if opts[:'max_severity'] < 1.0
1219
+ fail ArgumentError, 'invalid value for "opts[:"max_severity"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.'
1220
+ end
1221
+
1222
+ if opts[:'min_severity'] > 9.0
1223
+ fail ArgumentError, 'invalid value for "opts[:"min_severity"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.'
1224
+ end
1225
+
1226
+ if opts[:'min_severity'] < 1.0
1227
+ fail ArgumentError, 'invalid value for "opts[:"min_severity"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.'
1228
+ end
1229
+
1230
+ if opts[:'severity'] > 9.0
1231
+ fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.'
1232
+ end
1233
+
1234
+ if opts[:'severity'] < 1.0
1235
+ fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.'
1236
+ end
1237
+
1238
+ # resource path
1239
+ local_var_path = "/project/{id_or_name}/ticket".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1240
+
1241
+ # query parameters
1242
+ query_params = {}
1243
+ query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :csv) if !opts[:'status'].nil?
1244
+ query_params[:'type_id'] = @api_client.build_collection_param(opts[:'type_id'], :csv) if !opts[:'type_id'].nil?
1245
+ query_params[:'not_type_id'] = @api_client.build_collection_param(opts[:'not_type_id'], :csv) if !opts[:'not_type_id'].nil?
1246
+ query_params[:'component_id'] = @api_client.build_collection_param(opts[:'component_id'], :csv) if !opts[:'component_id'].nil?
1247
+ query_params[:'not_component_id'] = @api_client.build_collection_param(opts[:'not_component_id'], :csv) if !opts[:'not_component_id'].nil?
1248
+ query_params[:'milestone_id'] = @api_client.build_collection_param(opts[:'milestone_id'], :csv) if !opts[:'milestone_id'].nil?
1249
+ query_params[:'not_milestone_id'] = @api_client.build_collection_param(opts[:'not_milestone_id'], :csv) if !opts[:'not_milestone_id'].nil?
1250
+ query_params[:'max_priority'] = opts[:'max_priority'] if !opts[:'max_priority'].nil?
1251
+ query_params[:'min_priority'] = opts[:'min_priority'] if !opts[:'min_priority'].nil?
1252
+ query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil?
1253
+ query_params[:'max_severity'] = opts[:'max_severity'] if !opts[:'max_severity'].nil?
1254
+ query_params[:'min_severity'] = opts[:'min_severity'] if !opts[:'min_severity'].nil?
1255
+ query_params[:'severity'] = opts[:'severity'] if !opts[:'severity'].nil?
1256
+ query_params[:'owner'] = @api_client.build_collection_param(opts[:'owner'], :csv) if !opts[:'owner'].nil?
1257
+ query_params[:'not_owner'] = @api_client.build_collection_param(opts[:'not_owner'], :csv) if !opts[:'not_owner'].nil?
1258
+ query_params[:'reporter'] = @api_client.build_collection_param(opts[:'reporter'], :csv) if !opts[:'reporter'].nil?
1259
+ query_params[:'not_reporter'] = @api_client.build_collection_param(opts[:'not_reporter'], :csv) if !opts[:'not_reporter'].nil?
1260
+ query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
1261
+
1262
+ # header parameters
1263
+ header_params = {}
1264
+
1265
+ # HTTP header 'Accept' (if needed)
1266
+ local_header_accept = []
1267
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1268
+
1269
+ # HTTP header 'Content-Type'
1270
+ local_header_content_type = ['application/x-www-form-urlencoded']
1271
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1272
+
1273
+ # form parameters
1274
+ form_params = {}
1275
+
1276
+ # http body (model)
1277
+ post_body = nil
1278
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1279
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1280
+ :header_params => header_params,
1281
+ :query_params => query_params,
1282
+ :form_params => form_params,
1283
+ :body => post_body,
1284
+ :auth_names => auth_names,
1285
+ :return_type => 'Array<ProjectTicketItem>')
1286
+ if @api_client.config.debugging
1287
+ @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1288
+ end
1289
+ return data, status_code, headers
1290
+ end
1291
+
1292
+ #
1293
+ # Get project ticket comment list of spscified project.
1294
+ # @param id_or_name numeric project id or project name
1295
+ # @param ticket_id numeric project ticket id
1296
+ # @param [Hash] opts the optional parameters
1297
+ # @return [Array<ProjectTicketComment>]
1298
+ def list_project_ticket_comment(id_or_name, ticket_id, opts = {})
1299
+ data, _status_code, _headers = list_project_ticket_comment_with_http_info(id_or_name, ticket_id, opts)
1300
+ return data
1301
+ end
1302
+
1303
+ #
1304
+ # Get project ticket comment list of spscified project.
1305
+ # @param id_or_name numeric project id or project name
1306
+ # @param ticket_id numeric project ticket id
1307
+ # @param [Hash] opts the optional parameters
1308
+ # @return [Array<(Array<ProjectTicketComment>, Fixnum, Hash)>] Array<ProjectTicketComment> data, response status code and response headers
1309
+ def list_project_ticket_comment_with_http_info(id_or_name, ticket_id, opts = {})
1310
+ if @api_client.config.debugging
1311
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_comment ..."
1312
+ end
1313
+ # verify the required parameter 'id_or_name' is set
1314
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_comment" if id_or_name.nil?
1315
+ # verify the required parameter 'ticket_id' is set
1316
+ fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.list_project_ticket_comment" if ticket_id.nil?
1317
+ # resource path
1318
+ local_var_path = "/project/{id_or_name}/ticket/{ticket_id}/comment".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'ticket_id' + '}', ticket_id.to_s)
1319
+
1320
+ # query parameters
1321
+ query_params = {}
1322
+
1323
+ # header parameters
1324
+ header_params = {}
1325
+
1326
+ # HTTP header 'Accept' (if needed)
1327
+ local_header_accept = []
1328
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1329
+
1330
+ # HTTP header 'Content-Type'
1331
+ local_header_content_type = ['application/x-www-form-urlencoded']
1332
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1333
+
1334
+ # form parameters
1335
+ form_params = {}
1336
+
1337
+ # http body (model)
1338
+ post_body = nil
1339
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1340
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1341
+ :header_params => header_params,
1342
+ :query_params => query_params,
1343
+ :form_params => form_params,
1344
+ :body => post_body,
1345
+ :auth_names => auth_names,
1346
+ :return_type => 'Array<ProjectTicketComment>')
1347
+ if @api_client.config.debugging
1348
+ @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1349
+ end
1350
+ return data, status_code, headers
1351
+ end
1352
+
1353
+ #
1354
+ # Get project ticket component list of spscified project.
1355
+ # @param id_or_name numeric project id or project name
1356
+ # @param [Hash] opts the optional parameters
1357
+ # @return [Array<ProjectTicketComponent>]
1358
+ def list_project_ticket_component(id_or_name, opts = {})
1359
+ data, _status_code, _headers = list_project_ticket_component_with_http_info(id_or_name, opts)
1360
+ return data
1361
+ end
1362
+
1363
+ #
1364
+ # Get project ticket component list of spscified project.
1365
+ # @param id_or_name numeric project id or project name
1366
+ # @param [Hash] opts the optional parameters
1367
+ # @return [Array<(Array<ProjectTicketComponent>, Fixnum, Hash)>] Array<ProjectTicketComponent> data, response status code and response headers
1368
+ def list_project_ticket_component_with_http_info(id_or_name, opts = {})
1369
+ if @api_client.config.debugging
1370
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_component ..."
1371
+ end
1372
+ # verify the required parameter 'id_or_name' is set
1373
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_component" if id_or_name.nil?
1374
+ # resource path
1375
+ local_var_path = "/project/{id_or_name}/ticket/component".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1376
+
1377
+ # query parameters
1378
+ query_params = {}
1379
+
1380
+ # header parameters
1381
+ header_params = {}
1382
+
1383
+ # HTTP header 'Accept' (if needed)
1384
+ local_header_accept = []
1385
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1386
+
1387
+ # HTTP header 'Content-Type'
1388
+ local_header_content_type = ['application/x-www-form-urlencoded']
1389
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1390
+
1391
+ # form parameters
1392
+ form_params = {}
1393
+
1394
+ # http body (model)
1395
+ post_body = nil
1396
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1397
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1398
+ :header_params => header_params,
1399
+ :query_params => query_params,
1400
+ :form_params => form_params,
1401
+ :body => post_body,
1402
+ :auth_names => auth_names,
1403
+ :return_type => 'Array<ProjectTicketComponent>')
1404
+ if @api_client.config.debugging
1405
+ @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1406
+ end
1407
+ return data, status_code, headers
1408
+ end
1409
+
1410
+ #
1411
+ # Get project ticket milestone list of spscified project.
1412
+ # @param id_or_name numeric project id or project name
1413
+ # @param [Hash] opts the optional parameters
1414
+ # @return [Array<ProjectTicketMilestone>]
1415
+ def list_project_ticket_milestone(id_or_name, opts = {})
1416
+ data, _status_code, _headers = list_project_ticket_milestone_with_http_info(id_or_name, opts)
1417
+ return data
1418
+ end
1419
+
1420
+ #
1421
+ # Get project ticket milestone list of spscified project.
1422
+ # @param id_or_name numeric project id or project name
1423
+ # @param [Hash] opts the optional parameters
1424
+ # @return [Array<(Array<ProjectTicketMilestone>, Fixnum, Hash)>] Array<ProjectTicketMilestone> data, response status code and response headers
1425
+ def list_project_ticket_milestone_with_http_info(id_or_name, opts = {})
1426
+ if @api_client.config.debugging
1427
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_milestone ..."
1428
+ end
1429
+ # verify the required parameter 'id_or_name' is set
1430
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_milestone" if id_or_name.nil?
1431
+ # resource path
1432
+ local_var_path = "/project/{id_or_name}/ticket/milestone".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1433
+
1434
+ # query parameters
1435
+ query_params = {}
1436
+
1437
+ # header parameters
1438
+ header_params = {}
1439
+
1440
+ # HTTP header 'Accept' (if needed)
1441
+ local_header_accept = []
1442
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1443
+
1444
+ # HTTP header 'Content-Type'
1445
+ local_header_content_type = ['application/x-www-form-urlencoded']
1446
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1447
+
1448
+ # form parameters
1449
+ form_params = {}
1450
+
1451
+ # http body (model)
1452
+ post_body = nil
1453
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1454
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1455
+ :header_params => header_params,
1456
+ :query_params => query_params,
1457
+ :form_params => form_params,
1458
+ :body => post_body,
1459
+ :auth_names => auth_names,
1460
+ :return_type => 'Array<ProjectTicketMilestone>')
1461
+ if @api_client.config.debugging
1462
+ @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1463
+ end
1464
+ return data, status_code, headers
1465
+ end
1466
+
1467
+ #
1468
+ # Get project ticket type list of spscified project.
1469
+ # @param id_or_name numeric project id or project name
1470
+ # @param [Hash] opts the optional parameters
1471
+ # @return [Array<ProjectTicketType>]
1472
+ def list_project_ticket_type(id_or_name, opts = {})
1473
+ data, _status_code, _headers = list_project_ticket_type_with_http_info(id_or_name, opts)
1474
+ return data
1475
+ end
1476
+
1477
+ #
1478
+ # Get project ticket type list of spscified project.
1479
+ # @param id_or_name numeric project id or project name
1480
+ # @param [Hash] opts the optional parameters
1481
+ # @return [Array<(Array<ProjectTicketType>, Fixnum, Hash)>] Array<ProjectTicketType> data, response status code and response headers
1482
+ def list_project_ticket_type_with_http_info(id_or_name, opts = {})
1483
+ if @api_client.config.debugging
1484
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_type ..."
1485
+ end
1486
+ # verify the required parameter 'id_or_name' is set
1487
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_type" if id_or_name.nil?
1488
+ # resource path
1489
+ local_var_path = "/project/{id_or_name}/ticket/type".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1490
+
1491
+ # query parameters
1492
+ query_params = {}
1493
+
1494
+ # header parameters
1495
+ header_params = {}
1496
+
1497
+ # HTTP header 'Accept' (if needed)
1498
+ local_header_accept = []
1499
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1500
+
1501
+ # HTTP header 'Content-Type'
1502
+ local_header_content_type = ['application/x-www-form-urlencoded']
1503
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1504
+
1505
+ # form parameters
1506
+ form_params = {}
1507
+
1508
+ # http body (model)
1509
+ post_body = nil
1510
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1511
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1512
+ :header_params => header_params,
1513
+ :query_params => query_params,
1514
+ :form_params => form_params,
1515
+ :body => post_body,
1516
+ :auth_names => auth_names,
1517
+ :return_type => 'Array<ProjectTicketType>')
1518
+ if @api_client.config.debugging
1519
+ @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1520
+ end
1521
+ return data, status_code, headers
1522
+ end
1523
+
1524
+ #
1525
+ # Get project ticket type instructions
1526
+ # @param id_or_name numeric project id or project name
1527
+ # @param type_id numeric project ticket type id
1528
+ # @param [Hash] opts the optional parameters
1529
+ # @return [ProjectTicketTypeInstructions]
1530
+ def list_project_ticket_type_instruction(id_or_name, type_id, opts = {})
1531
+ data, _status_code, _headers = list_project_ticket_type_instruction_with_http_info(id_or_name, type_id, opts)
1532
+ return data
1533
+ end
1534
+
1535
+ #
1536
+ # Get project ticket type instructions
1537
+ # @param id_or_name numeric project id or project name
1538
+ # @param type_id numeric project ticket type id
1539
+ # @param [Hash] opts the optional parameters
1540
+ # @return [Array<(ProjectTicketTypeInstructions, Fixnum, Hash)>] ProjectTicketTypeInstructions data, response status code and response headers
1541
+ def list_project_ticket_type_instruction_with_http_info(id_or_name, type_id, opts = {})
1542
+ if @api_client.config.debugging
1543
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_type_instruction ..."
1544
+ end
1545
+ # verify the required parameter 'id_or_name' is set
1546
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_type_instruction" if id_or_name.nil?
1547
+ # verify the required parameter 'type_id' is set
1548
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.list_project_ticket_type_instruction" if type_id.nil?
1549
+ # resource path
1550
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}/instruction".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s)
1551
+
1552
+ # query parameters
1553
+ query_params = {}
1554
+
1555
+ # header parameters
1556
+ header_params = {}
1557
+
1558
+ # HTTP header 'Accept' (if needed)
1559
+ local_header_accept = []
1560
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1561
+
1562
+ # HTTP header 'Content-Type'
1563
+ local_header_content_type = ['application/x-www-form-urlencoded']
1564
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1565
+
1566
+ # form parameters
1567
+ form_params = {}
1568
+
1569
+ # http body (model)
1570
+ post_body = nil
1571
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1572
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1573
+ :header_params => header_params,
1574
+ :query_params => query_params,
1575
+ :form_params => form_params,
1576
+ :body => post_body,
1577
+ :auth_names => auth_names,
1578
+ :return_type => 'ProjectTicketTypeInstructions')
1579
+ if @api_client.config.debugging
1580
+ @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1581
+ end
1582
+ return data, status_code, headers
1583
+ end
1584
+
1585
+ #
1586
+ # Get project ticket admin preferences.
1587
+ # @param id_or_name numeric project id or project name
1588
+ # @param [Hash] opts the optional parameters
1589
+ # @return [ProjectTicketPrefs]
1590
+ def show_project_ticket_adminprefs(id_or_name, opts = {})
1591
+ data, _status_code, _headers = show_project_ticket_adminprefs_with_http_info(id_or_name, opts)
1592
+ return data
1593
+ end
1594
+
1595
+ #
1596
+ # Get project ticket admin preferences.
1597
+ # @param id_or_name numeric project id or project name
1598
+ # @param [Hash] opts the optional parameters
1599
+ # @return [Array<(ProjectTicketPrefs, Fixnum, Hash)>] ProjectTicketPrefs data, response status code and response headers
1600
+ def show_project_ticket_adminprefs_with_http_info(id_or_name, opts = {})
1601
+ if @api_client.config.debugging
1602
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.show_project_ticket_adminprefs ..."
1603
+ end
1604
+ # verify the required parameter 'id_or_name' is set
1605
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.show_project_ticket_adminprefs" if id_or_name.nil?
1606
+ # resource path
1607
+ local_var_path = "/project/{id_or_name}/ticket/admin".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1608
+
1609
+ # query parameters
1610
+ query_params = {}
1611
+
1612
+ # header parameters
1613
+ header_params = {}
1614
+
1615
+ # HTTP header 'Accept' (if needed)
1616
+ local_header_accept = []
1617
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1618
+
1619
+ # HTTP header 'Content-Type'
1620
+ local_header_content_type = ['application/x-www-form-urlencoded']
1621
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1622
+
1623
+ # form parameters
1624
+ form_params = {}
1625
+
1626
+ # http body (model)
1627
+ post_body = nil
1628
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1629
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1630
+ :header_params => header_params,
1631
+ :query_params => query_params,
1632
+ :form_params => form_params,
1633
+ :body => post_body,
1634
+ :auth_names => auth_names,
1635
+ :return_type => 'ProjectTicketPrefs')
1636
+ if @api_client.config.debugging
1637
+ @api_client.config.logger.debug "API called: ProjectTicketApi#show_project_ticket_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1638
+ end
1639
+ return data, status_code, headers
1640
+ end
1641
+
1642
+ #
1643
+ # Get project ticket comment spscified project.
1644
+ # @param id_or_name numeric project id or project name
1645
+ # @param ticket_id numeric project ticket id
1646
+ # @param comment_id numeric project ticket comment id
1647
+ # @param [Hash] opts the optional parameters
1648
+ # @return [ProjectTicketComment]
1649
+ def show_project_ticket_comment(id_or_name, ticket_id, comment_id, opts = {})
1650
+ data, _status_code, _headers = show_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment_id, opts)
1651
+ return data
1652
+ end
1653
+
1654
+ #
1655
+ # Get project ticket comment spscified project.
1656
+ # @param id_or_name numeric project id or project name
1657
+ # @param ticket_id numeric project ticket id
1658
+ # @param comment_id numeric project ticket comment id
1659
+ # @param [Hash] opts the optional parameters
1660
+ # @return [Array<(ProjectTicketComment, Fixnum, Hash)>] ProjectTicketComment data, response status code and response headers
1661
+ def show_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment_id, opts = {})
1662
+ if @api_client.config.debugging
1663
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.show_project_ticket_comment ..."
1664
+ end
1665
+ # verify the required parameter 'id_or_name' is set
1666
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.show_project_ticket_comment" if id_or_name.nil?
1667
+ # verify the required parameter 'ticket_id' is set
1668
+ fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.show_project_ticket_comment" if ticket_id.nil?
1669
+ # verify the required parameter 'comment_id' is set
1670
+ fail ArgumentError, "Missing the required parameter 'comment_id' when calling ProjectTicketApi.show_project_ticket_comment" if comment_id.nil?
1671
+ # resource path
1672
+ local_var_path = "/project/{id_or_name}/ticket/{ticket_id}/comment/{comment_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'ticket_id' + '}', ticket_id.to_s).sub('{' + 'comment_id' + '}', comment_id.to_s)
1673
+
1674
+ # query parameters
1675
+ query_params = {}
1676
+
1677
+ # header parameters
1678
+ header_params = {}
1679
+
1680
+ # HTTP header 'Accept' (if needed)
1681
+ local_header_accept = []
1682
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1683
+
1684
+ # HTTP header 'Content-Type'
1685
+ local_header_content_type = ['application/x-www-form-urlencoded']
1686
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1687
+
1688
+ # form parameters
1689
+ form_params = {}
1690
+
1691
+ # http body (model)
1692
+ post_body = nil
1693
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1694
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1695
+ :header_params => header_params,
1696
+ :query_params => query_params,
1697
+ :form_params => form_params,
1698
+ :body => post_body,
1699
+ :auth_names => auth_names,
1700
+ :return_type => 'ProjectTicketComment')
1701
+ if @api_client.config.debugging
1702
+ @api_client.config.logger.debug "API called: ProjectTicketApi#show_project_ticket_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1703
+ end
1704
+ return data, status_code, headers
1705
+ end
1706
+
1707
+ #
1708
+ # Update project ticket
1709
+ # @param id_or_name numeric project id or project name
1710
+ # @param ticket_id numeric project ticket id
1711
+ # @param [Hash] opts the optional parameters
1712
+ # @option opts [String] :name Project ticket name (title)
1713
+ # @option opts [String] :description Project ticket description details
1714
+ # @option opts [Integer] :type_id numeric project ticket type id
1715
+ # @option opts [Integer] :milestone_id numeric project ticket milestone id
1716
+ # @option opts [Integer] :component_id numeric project ticket component id
1717
+ # @option opts [Integer] :priority project ticket priority (min &#x3D; 1 and max &#x3D; 9)
1718
+ # @option opts [Integer] :severity project ticket severity (min &#x3D; 1 and max &#x3D; 9)
1719
+ # @option opts [Integer] :owner numeric project ticket owner user id
1720
+ # @option opts [String] :resolution project ticket resolution text
1721
+ # @option opts [String] :status project ticket status (open or close)
1722
+ # @return [ProjectTicketItem]
1723
+ def update_project_ticket(id_or_name, ticket_id, opts = {})
1724
+ data, _status_code, _headers = update_project_ticket_with_http_info(id_or_name, ticket_id, opts)
1725
+ return data
1726
+ end
1727
+
1728
+ #
1729
+ # Update project ticket
1730
+ # @param id_or_name numeric project id or project name
1731
+ # @param ticket_id numeric project ticket id
1732
+ # @param [Hash] opts the optional parameters
1733
+ # @option opts [String] :name Project ticket name (title)
1734
+ # @option opts [String] :description Project ticket description details
1735
+ # @option opts [Integer] :type_id numeric project ticket type id
1736
+ # @option opts [Integer] :milestone_id numeric project ticket milestone id
1737
+ # @option opts [Integer] :component_id numeric project ticket component id
1738
+ # @option opts [Integer] :priority project ticket priority (min &#x3D; 1 and max &#x3D; 9)
1739
+ # @option opts [Integer] :severity project ticket severity (min &#x3D; 1 and max &#x3D; 9)
1740
+ # @option opts [Integer] :owner numeric project ticket owner user id
1741
+ # @option opts [String] :resolution project ticket resolution text
1742
+ # @option opts [String] :status project ticket status (open or close)
1743
+ # @return [Array<(ProjectTicketItem, Fixnum, Hash)>] ProjectTicketItem data, response status code and response headers
1744
+ def update_project_ticket_with_http_info(id_or_name, ticket_id, opts = {})
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket ..."
1747
+ end
1748
+ # verify the required parameter 'id_or_name' is set
1749
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket" if id_or_name.nil?
1750
+ # verify the required parameter 'ticket_id' is set
1751
+ fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.update_project_ticket" if ticket_id.nil?
1752
+ if opts[:'priority'] > 9.0
1753
+ fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.update_project_ticket, must be smaller than or equal to 9.0.'
1754
+ end
1755
+
1756
+ if opts[:'priority'] < 1.0
1757
+ fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.update_project_ticket, must be greater than or equal to 1.0.'
1758
+ end
1759
+
1760
+ if opts[:'severity'] > 9.0
1761
+ fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.update_project_ticket, must be smaller than or equal to 9.0.'
1762
+ end
1763
+
1764
+ if opts[:'severity'] < 1.0
1765
+ fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.update_project_ticket, must be greater than or equal to 1.0.'
1766
+ end
1767
+
1768
+ if opts[:'owner'] < 101.0
1769
+ fail ArgumentError, 'invalid value for "opts[:"owner"]" when calling ProjectTicketApi.update_project_ticket, must be greater than or equal to 101.0.'
1770
+ end
1771
+
1772
+ if opts[:'resolution'] && !['Fixed', 'Invalid', 'Wont Fix', 'Later', 'Remind', 'Works For Me', 'None', 'Duplicate', 'Accepted', 'Out of Date', 'Postponed', 'Rejected'].include?(opts[:'resolution'])
1773
+ fail ArgumentError, 'invalid value for "resolution", must be one of Fixed, Invalid, Wont Fix, Later, Remind, Works For Me, None, Duplicate, Accepted, Out of Date, Postponed, Rejected'
1774
+ end
1775
+ if opts[:'status'] && !['close', 'reopen'].include?(opts[:'status'])
1776
+ fail ArgumentError, 'invalid value for "status", must be one of close, reopen'
1777
+ end
1778
+ # resource path
1779
+ local_var_path = "/project/{id_or_name}/ticket/{ticket_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'ticket_id' + '}', ticket_id.to_s)
1780
+
1781
+ # query parameters
1782
+ query_params = {}
1783
+
1784
+ # header parameters
1785
+ header_params = {}
1786
+
1787
+ # HTTP header 'Accept' (if needed)
1788
+ local_header_accept = []
1789
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1790
+
1791
+ # HTTP header 'Content-Type'
1792
+ local_header_content_type = ['application/x-www-form-urlencoded']
1793
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1794
+
1795
+ # form parameters
1796
+ form_params = {}
1797
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1798
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
1799
+ form_params["type_id"] = opts[:'type_id'] if !opts[:'type_id'].nil?
1800
+ form_params["milestone_id"] = opts[:'milestone_id'] if !opts[:'milestone_id'].nil?
1801
+ form_params["component_id"] = opts[:'component_id'] if !opts[:'component_id'].nil?
1802
+ form_params["priority"] = opts[:'priority'] if !opts[:'priority'].nil?
1803
+ form_params["severity"] = opts[:'severity'] if !opts[:'severity'].nil?
1804
+ form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil?
1805
+ form_params["resolution"] = opts[:'resolution'] if !opts[:'resolution'].nil?
1806
+ form_params["status"] = opts[:'status'] if !opts[:'status'].nil?
1807
+
1808
+ # http body (model)
1809
+ post_body = nil
1810
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1811
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1812
+ :header_params => header_params,
1813
+ :query_params => query_params,
1814
+ :form_params => form_params,
1815
+ :body => post_body,
1816
+ :auth_names => auth_names,
1817
+ :return_type => 'ProjectTicketItem')
1818
+ if @api_client.config.debugging
1819
+ @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1820
+ end
1821
+ return data, status_code, headers
1822
+ end
1823
+
1824
+ #
1825
+ # Update project ticket admin preferences.
1826
+ # @param id_or_name numeric project id or project name
1827
+ # @param [Hash] opts the optional parameters
1828
+ # @option opts [BOOLEAN] :allow_anonymouse Non login user allows to post new ticket/comment
1829
+ # @option opts [String] :frs_autosync Componet File release autosync type &#39;Disabled&#39;, &#39;Package&#39;, &#39;Release&#39;, &#39;Package and Release&#39;
1830
+ # @option opts [String] :mailsend_type Ticket update mail destination type &#39;None&#39;, &#39;Ticket Technician&#39;, &#39;Ticket Administrator&#39;, &#39;Ticket Administrator and Technician&#39;, &#39;All project members&#39;, &#39;Mailing List&#39;
1831
+ # @option opts [Integer] :mailing_list_id Ticket update mail destination mail list id (it is only used when mailsend_type is mailing list)
1832
+ # @option opts [String] :mail_lang Ticket update mail language
1833
+ # @return [ProjectTicketPrefs]
1834
+ def update_project_ticket_adminprefs(id_or_name, opts = {})
1835
+ data, _status_code, _headers = update_project_ticket_adminprefs_with_http_info(id_or_name, opts)
1836
+ return data
1837
+ end
1838
+
1839
+ #
1840
+ # Update project ticket admin preferences.
1841
+ # @param id_or_name numeric project id or project name
1842
+ # @param [Hash] opts the optional parameters
1843
+ # @option opts [BOOLEAN] :allow_anonymouse Non login user allows to post new ticket/comment
1844
+ # @option opts [String] :frs_autosync Componet File release autosync type &#39;Disabled&#39;, &#39;Package&#39;, &#39;Release&#39;, &#39;Package and Release&#39;
1845
+ # @option opts [String] :mailsend_type Ticket update mail destination type &#39;None&#39;, &#39;Ticket Technician&#39;, &#39;Ticket Administrator&#39;, &#39;Ticket Administrator and Technician&#39;, &#39;All project members&#39;, &#39;Mailing List&#39;
1846
+ # @option opts [Integer] :mailing_list_id Ticket update mail destination mail list id (it is only used when mailsend_type is mailing list)
1847
+ # @option opts [String] :mail_lang Ticket update mail language
1848
+ # @return [Array<(ProjectTicketPrefs, Fixnum, Hash)>] ProjectTicketPrefs data, response status code and response headers
1849
+ def update_project_ticket_adminprefs_with_http_info(id_or_name, opts = {})
1850
+ if @api_client.config.debugging
1851
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_adminprefs ..."
1852
+ end
1853
+ # verify the required parameter 'id_or_name' is set
1854
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_adminprefs" if id_or_name.nil?
1855
+ if opts[:'frs_autosync'] && !['Disabled', 'Package', 'Release', 'Package and Release'].include?(opts[:'frs_autosync'])
1856
+ fail ArgumentError, 'invalid value for "frs_autosync", must be one of Disabled, Package, Release, Package and Release'
1857
+ end
1858
+ if opts[:'mailsend_type'] && !['None', 'Ticket Technician', 'Ticket Administrator', 'Ticket Administrator and Technician', 'All project members', 'Mailing List'].include?(opts[:'mailsend_type'])
1859
+ fail ArgumentError, 'invalid value for "mailsend_type", must be one of None, Ticket Technician, Ticket Administrator, Ticket Administrator and Technician, All project members, Mailing List'
1860
+ end
1861
+ if opts[:'mail_lang'] && !['English', 'Japanese'].include?(opts[:'mail_lang'])
1862
+ fail ArgumentError, 'invalid value for "mail_lang", must be one of English, Japanese'
1863
+ end
1864
+ # resource path
1865
+ local_var_path = "/project/{id_or_name}/ticket/admin".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1866
+
1867
+ # query parameters
1868
+ query_params = {}
1869
+
1870
+ # header parameters
1871
+ header_params = {}
1872
+
1873
+ # HTTP header 'Accept' (if needed)
1874
+ local_header_accept = []
1875
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1876
+
1877
+ # HTTP header 'Content-Type'
1878
+ local_header_content_type = ['application/x-www-form-urlencoded']
1879
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1880
+
1881
+ # form parameters
1882
+ form_params = {}
1883
+ form_params["allow_anonymouse"] = opts[:'allow_anonymouse'] if !opts[:'allow_anonymouse'].nil?
1884
+ form_params["frs_autosync"] = opts[:'frs_autosync'] if !opts[:'frs_autosync'].nil?
1885
+ form_params["mailsend_type"] = opts[:'mailsend_type'] if !opts[:'mailsend_type'].nil?
1886
+ form_params["mailing_list_id"] = opts[:'mailing_list_id'] if !opts[:'mailing_list_id'].nil?
1887
+ form_params["mail_lang"] = opts[:'mail_lang'] if !opts[:'mail_lang'].nil?
1888
+
1889
+ # http body (model)
1890
+ post_body = nil
1891
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1892
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1893
+ :header_params => header_params,
1894
+ :query_params => query_params,
1895
+ :form_params => form_params,
1896
+ :body => post_body,
1897
+ :auth_names => auth_names,
1898
+ :return_type => 'ProjectTicketPrefs')
1899
+ if @api_client.config.debugging
1900
+ @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1901
+ end
1902
+ return data, status_code, headers
1903
+ end
1904
+
1905
+ #
1906
+ # Update project ticket component
1907
+ # @param id_or_name numeric project id or project name
1908
+ # @param component_id numeric project ticket component id
1909
+ # @param [Hash] opts the optional parameters
1910
+ # @option opts [String] :name Ticket component name
1911
+ # @option opts [String] :description Ticket component description
1912
+ # @option opts [Integer] :owner Ticket componet owner user_id
1913
+ # @option opts [BOOLEAN] :active Ticket componet will be shown the component select list when this parameter is true
1914
+ # @return [ProjectTicketComponent]
1915
+ def update_project_ticket_component(id_or_name, component_id, opts = {})
1916
+ data, _status_code, _headers = update_project_ticket_component_with_http_info(id_or_name, component_id, opts)
1917
+ return data
1918
+ end
1919
+
1920
+ #
1921
+ # Update project ticket component
1922
+ # @param id_or_name numeric project id or project name
1923
+ # @param component_id numeric project ticket component id
1924
+ # @param [Hash] opts the optional parameters
1925
+ # @option opts [String] :name Ticket component name
1926
+ # @option opts [String] :description Ticket component description
1927
+ # @option opts [Integer] :owner Ticket componet owner user_id
1928
+ # @option opts [BOOLEAN] :active Ticket componet will be shown the component select list when this parameter is true
1929
+ # @return [Array<(ProjectTicketComponent, Fixnum, Hash)>] ProjectTicketComponent data, response status code and response headers
1930
+ def update_project_ticket_component_with_http_info(id_or_name, component_id, opts = {})
1931
+ if @api_client.config.debugging
1932
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_component ..."
1933
+ end
1934
+ # verify the required parameter 'id_or_name' is set
1935
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_component" if id_or_name.nil?
1936
+ # verify the required parameter 'component_id' is set
1937
+ fail ArgumentError, "Missing the required parameter 'component_id' when calling ProjectTicketApi.update_project_ticket_component" if component_id.nil?
1938
+ # resource path
1939
+ local_var_path = "/project/{id_or_name}/ticket/component/{component_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'component_id' + '}', component_id.to_s)
1940
+
1941
+ # query parameters
1942
+ query_params = {}
1943
+
1944
+ # header parameters
1945
+ header_params = {}
1946
+
1947
+ # HTTP header 'Accept' (if needed)
1948
+ local_header_accept = []
1949
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1950
+
1951
+ # HTTP header 'Content-Type'
1952
+ local_header_content_type = ['application/x-www-form-urlencoded']
1953
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1954
+
1955
+ # form parameters
1956
+ form_params = {}
1957
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
1958
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
1959
+ form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil?
1960
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
1961
+
1962
+ # http body (model)
1963
+ post_body = nil
1964
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1965
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1966
+ :header_params => header_params,
1967
+ :query_params => query_params,
1968
+ :form_params => form_params,
1969
+ :body => post_body,
1970
+ :auth_names => auth_names,
1971
+ :return_type => 'ProjectTicketComponent')
1972
+ if @api_client.config.debugging
1973
+ @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1974
+ end
1975
+ return data, status_code, headers
1976
+ end
1977
+
1978
+ #
1979
+ # Update project ticket milestone
1980
+ # @param id_or_name numeric project id or project name
1981
+ # @param milestone_id numeric project ticket milestone id
1982
+ # @param [Hash] opts the optional parameters
1983
+ # @option opts [String] :name Ticket milestone name
1984
+ # @option opts [String] :description Ticket milestone description
1985
+ # @option opts [DateTime] :start Ticket milestone start date
1986
+ # @option opts [DateTime] :_end Ticket milestone due date
1987
+ # @option opts [String] :force_status If you want to force close the milestone set to &#39;close&#39; or reopen it set to &#39;reopen&#39;
1988
+ # @return [ProjectTicketComponent]
1989
+ def update_project_ticket_milestone(id_or_name, milestone_id, opts = {})
1990
+ data, _status_code, _headers = update_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts)
1991
+ return data
1992
+ end
1993
+
1994
+ #
1995
+ # Update project ticket milestone
1996
+ # @param id_or_name numeric project id or project name
1997
+ # @param milestone_id numeric project ticket milestone id
1998
+ # @param [Hash] opts the optional parameters
1999
+ # @option opts [String] :name Ticket milestone name
2000
+ # @option opts [String] :description Ticket milestone description
2001
+ # @option opts [DateTime] :start Ticket milestone start date
2002
+ # @option opts [DateTime] :_end Ticket milestone due date
2003
+ # @option opts [String] :force_status If you want to force close the milestone set to &#39;close&#39; or reopen it set to &#39;reopen&#39;
2004
+ # @return [Array<(ProjectTicketComponent, Fixnum, Hash)>] ProjectTicketComponent data, response status code and response headers
2005
+ def update_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {})
2006
+ if @api_client.config.debugging
2007
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_milestone ..."
2008
+ end
2009
+ # verify the required parameter 'id_or_name' is set
2010
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_milestone" if id_or_name.nil?
2011
+ # verify the required parameter 'milestone_id' is set
2012
+ fail ArgumentError, "Missing the required parameter 'milestone_id' when calling ProjectTicketApi.update_project_ticket_milestone" if milestone_id.nil?
2013
+ # resource path
2014
+ local_var_path = "/project/{id_or_name}/ticket/milestone/{milestone_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'milestone_id' + '}', milestone_id.to_s)
2015
+
2016
+ # query parameters
2017
+ query_params = {}
2018
+
2019
+ # header parameters
2020
+ header_params = {}
2021
+
2022
+ # HTTP header 'Accept' (if needed)
2023
+ local_header_accept = []
2024
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2025
+
2026
+ # HTTP header 'Content-Type'
2027
+ local_header_content_type = ['application/x-www-form-urlencoded']
2028
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2029
+
2030
+ # form parameters
2031
+ form_params = {}
2032
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
2033
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
2034
+ form_params["start"] = opts[:'start'] if !opts[:'start'].nil?
2035
+ form_params["end"] = opts[:'_end'] if !opts[:'_end'].nil?
2036
+ form_params["force_status"] = opts[:'force_status'] if !opts[:'force_status'].nil?
2037
+
2038
+ # http body (model)
2039
+ post_body = nil
2040
+ auth_names = ['oauth2-code', 'oauth2-implicit']
2041
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2042
+ :header_params => header_params,
2043
+ :query_params => query_params,
2044
+ :form_params => form_params,
2045
+ :body => post_body,
2046
+ :auth_names => auth_names,
2047
+ :return_type => 'ProjectTicketComponent')
2048
+ if @api_client.config.debugging
2049
+ @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2050
+ end
2051
+ return data, status_code, headers
2052
+ end
2053
+
2054
+ #
2055
+ # Update project ticket type
2056
+ # @param id_or_name numeric project id or project name
2057
+ # @param type_id numeric project ticket type id
2058
+ # @param [Hash] opts the optional parameters
2059
+ # @option opts [String] :name Ticket type name
2060
+ # @option opts [String] :description Ticket type description
2061
+ # @option opts [BOOLEAN] :is_public if set as false, this type will be shown to project members only.
2062
+ # @return [ProjectTicketType]
2063
+ def update_project_ticket_type(id_or_name, type_id, opts = {})
2064
+ data, _status_code, _headers = update_project_ticket_type_with_http_info(id_or_name, type_id, opts)
2065
+ return data
2066
+ end
2067
+
2068
+ #
2069
+ # Update project ticket type
2070
+ # @param id_or_name numeric project id or project name
2071
+ # @param type_id numeric project ticket type id
2072
+ # @param [Hash] opts the optional parameters
2073
+ # @option opts [String] :name Ticket type name
2074
+ # @option opts [String] :description Ticket type description
2075
+ # @option opts [BOOLEAN] :is_public if set as false, this type will be shown to project members only.
2076
+ # @return [Array<(ProjectTicketType, Fixnum, Hash)>] ProjectTicketType data, response status code and response headers
2077
+ def update_project_ticket_type_with_http_info(id_or_name, type_id, opts = {})
2078
+ if @api_client.config.debugging
2079
+ @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_type ..."
2080
+ end
2081
+ # verify the required parameter 'id_or_name' is set
2082
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_type" if id_or_name.nil?
2083
+ # verify the required parameter 'type_id' is set
2084
+ fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.update_project_ticket_type" if type_id.nil?
2085
+ # resource path
2086
+ local_var_path = "/project/{id_or_name}/ticket/type/{type_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'type_id' + '}', type_id.to_s)
2087
+
2088
+ # query parameters
2089
+ query_params = {}
2090
+
2091
+ # header parameters
2092
+ header_params = {}
2093
+
2094
+ # HTTP header 'Accept' (if needed)
2095
+ local_header_accept = []
2096
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
2097
+
2098
+ # HTTP header 'Content-Type'
2099
+ local_header_content_type = ['application/x-www-form-urlencoded']
2100
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
2101
+
2102
+ # form parameters
2103
+ form_params = {}
2104
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
2105
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
2106
+ form_params["is_public"] = opts[:'is_public'] if !opts[:'is_public'].nil?
2107
+
2108
+ # http body (model)
2109
+ post_body = nil
2110
+ auth_names = ['oauth2-code', 'oauth2-implicit']
2111
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2112
+ :header_params => header_params,
2113
+ :query_params => query_params,
2114
+ :form_params => form_params,
2115
+ :body => post_body,
2116
+ :auth_names => auth_names,
2117
+ :return_type => 'ProjectTicketType')
2118
+ if @api_client.config.debugging
2119
+ @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2120
+ end
2121
+ return data, status_code, headers
2122
+ end
2123
+ end
2124
+ end