Class: OSDNClient::ProjectTicketApi
- Inherits:
-
Object
- Object
- OSDNClient::ProjectTicketApi
- Defined in:
- lib/osdn-client/api/project_ticket_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_project_ticket(id_or_name, name, description, type_id, opts = {}) ⇒ ProjectTicketItem
Create project ticket.
-
#create_project_ticket_comment(id_or_name, ticket_id, comment, opts = {}) ⇒ ProjectTicketComment
Create new project ticket comment of spscified project.
-
#create_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment, opts = {}) ⇒ Array<(ProjectTicketComment, Fixnum, Hash)>
Create new project ticket comment of spscified project.
-
#create_project_ticket_component(id_or_name, name, description, opts = {}) ⇒ Array<ProjectTicketComponent>
Create new project ticket component of spscified project.
-
#create_project_ticket_component_with_http_info(id_or_name, name, description, opts = {}) ⇒ Array<(Array<ProjectTicketComponent>, Fixnum, Hash)>
Create new project ticket component of spscified project.
-
#create_project_ticket_milestone(id_or_name, name, description, opts = {}) ⇒ ProjectTicketMilestone
Create new project ticket milestone of spscified project.
-
#create_project_ticket_milestone_with_http_info(id_or_name, name, description, opts = {}) ⇒ Array<(ProjectTicketMilestone, Fixnum, Hash)>
Create new project ticket milestone of spscified project.
-
#create_project_ticket_type(id_or_name, name, description, opts = {}) ⇒ ProjectTicketType
Create new project ticket type of spscified project.
-
#create_project_ticket_type_instruction(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ ProjectTicketTypeInstructionPerLanguage
Create project ticket type instructions for the language.
-
#create_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>
Create project ticket type instructions for the language.
-
#create_project_ticket_type_with_http_info(id_or_name, name, description, opts = {}) ⇒ Array<(ProjectTicketType, Fixnum, Hash)>
Create new project ticket type of spscified project.
-
#create_project_ticket_with_http_info(id_or_name, name, description, type_id, opts = {}) ⇒ Array<(ProjectTicketItem, Fixnum, Hash)>
Create project ticket.
-
#delete_project_ticket_component(id_or_name, component_id, migrate_to, opts = {}) ⇒ nil
Delete project ticket component.
-
#delete_project_ticket_component_with_http_info(id_or_name, component_id, migrate_to, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket component.
-
#delete_project_ticket_milestone(id_or_name, milestone_id, opts = {}) ⇒ nil
Delete project ticket milestone.
-
#delete_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket milestone.
-
#delete_project_ticket_type(id_or_name, type_id, migrate_to, opts = {}) ⇒ nil
Delete project ticket type.
-
#delete_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {}) ⇒ nil
Delete project ticket type instructions on the language.
-
#delete_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket type instructions on the language.
-
#delete_project_ticket_type_with_http_info(id_or_name, type_id, migrate_to, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket type.
-
#get_project_ticket(id_or_name, ticket_id, opts = {}) ⇒ ProjectTicketItem
Get project ticket.
-
#get_project_ticket_component(id_or_name, component_id, opts = {}) ⇒ ProjectTicketComponent
Get project ticket component.
-
#get_project_ticket_component_with_http_info(id_or_name, component_id, opts = {}) ⇒ Array<(ProjectTicketComponent, Fixnum, Hash)>
Get project ticket component.
-
#get_project_ticket_milestone(id_or_name, milestone_id, opts = {}) ⇒ ProjectTicketMilestone
Get project ticket milestone of spscified milestone_id.
-
#get_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) ⇒ Array<(ProjectTicketMilestone, Fixnum, Hash)>
Get project ticket milestone of spscified milestone_id.
-
#get_project_ticket_type(id_or_name, type_id, opts = {}) ⇒ ProjectTicketType
Get project ticket type.
-
#get_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {}) ⇒ ProjectTicketTypeInstructionPerLanguage
Get project ticket type instructions on the language.
-
#get_project_ticket_type_instruction_0(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ ProjectTicketTypeInstructionPerLanguage
Update project ticket type instructions on the language.
-
#get_project_ticket_type_instruction_0_with_http_info(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>
Update project ticket type instructions on the language.
-
#get_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {}) ⇒ Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>
Get project ticket type instructions on the language.
-
#get_project_ticket_type_with_http_info(id_or_name, type_id, opts = {}) ⇒ Array<(ProjectTicketType, Fixnum, Hash)>
Get project ticket type.
-
#get_project_ticket_with_http_info(id_or_name, ticket_id, opts = {}) ⇒ Array<(ProjectTicketItem, Fixnum, Hash)>
Get project ticket.
-
#initialize(api_client = ApiClient.default) ⇒ ProjectTicketApi
constructor
A new instance of ProjectTicketApi.
-
#list_project_ticket(id_or_name, opts = {}) ⇒ Array<ProjectTicketItem>
List project ticket order by submit date descending.
-
#list_project_ticket_comment(id_or_name, ticket_id, opts = {}) ⇒ Array<ProjectTicketComment>
Get project ticket comment list of spscified project.
-
#list_project_ticket_comment_with_http_info(id_or_name, ticket_id, opts = {}) ⇒ Array<(Array<ProjectTicketComment>, Fixnum, Hash)>
Get project ticket comment list of spscified project.
-
#list_project_ticket_component(id_or_name, opts = {}) ⇒ Array<ProjectTicketComponent>
Get project ticket component list of spscified project.
-
#list_project_ticket_component_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketComponent>, Fixnum, Hash)>
Get project ticket component list of spscified project.
-
#list_project_ticket_milestone(id_or_name, opts = {}) ⇒ Array<ProjectTicketMilestone>
Get project ticket milestone list of spscified project.
-
#list_project_ticket_milestone_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketMilestone>, Fixnum, Hash)>
Get project ticket milestone list of spscified project.
-
#list_project_ticket_type(id_or_name, opts = {}) ⇒ Array<ProjectTicketType>
Get project ticket type list of spscified project.
-
#list_project_ticket_type_instruction(id_or_name, type_id, opts = {}) ⇒ ProjectTicketTypeInstructions
Get project ticket type instructions.
-
#list_project_ticket_type_instruction_with_http_info(id_or_name, type_id, opts = {}) ⇒ Array<(ProjectTicketTypeInstructions, Fixnum, Hash)>
Get project ticket type instructions.
-
#list_project_ticket_type_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketType>, Fixnum, Hash)>
Get project ticket type list of spscified project.
-
#list_project_ticket_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketItem>, Fixnum, Hash)>
List project ticket order by submit date descending.
-
#show_project_ticket_adminprefs(id_or_name, opts = {}) ⇒ ProjectTicketPrefs
Get project ticket admin preferences.
-
#show_project_ticket_adminprefs_with_http_info(id_or_name, opts = {}) ⇒ Array<(ProjectTicketPrefs, Fixnum, Hash)>
Get project ticket admin preferences.
-
#show_project_ticket_comment(id_or_name, ticket_id, comment_id, opts = {}) ⇒ ProjectTicketComment
Get project ticket comment spscified project.
-
#show_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment_id, opts = {}) ⇒ Array<(ProjectTicketComment, Fixnum, Hash)>
Get project ticket comment spscified project.
-
#update_project_ticket(id_or_name, ticket_id, opts = {}) ⇒ ProjectTicketItem
Update project ticket.
-
#update_project_ticket_adminprefs(id_or_name, opts = {}) ⇒ ProjectTicketPrefs
Update project ticket admin preferences.
-
#update_project_ticket_adminprefs_with_http_info(id_or_name, opts = {}) ⇒ Array<(ProjectTicketPrefs, Fixnum, Hash)>
Update project ticket admin preferences.
-
#update_project_ticket_component(id_or_name, component_id, opts = {}) ⇒ ProjectTicketComponent
Update project ticket component.
-
#update_project_ticket_component_with_http_info(id_or_name, component_id, opts = {}) ⇒ Array<(ProjectTicketComponent, Fixnum, Hash)>
Update project ticket component.
-
#update_project_ticket_milestone(id_or_name, milestone_id, opts = {}) ⇒ ProjectTicketComponent
Update project ticket milestone.
-
#update_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) ⇒ Array<(ProjectTicketComponent, Fixnum, Hash)>
Update project ticket milestone.
-
#update_project_ticket_type(id_or_name, type_id, opts = {}) ⇒ ProjectTicketType
Update project ticket type.
-
#update_project_ticket_type_with_http_info(id_or_name, type_id, opts = {}) ⇒ Array<(ProjectTicketType, Fixnum, Hash)>
Update project ticket type.
-
#update_project_ticket_with_http_info(id_or_name, ticket_id, opts = {}) ⇒ Array<(ProjectTicketItem, Fixnum, Hash)>
Update project ticket.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ProjectTicketApi
Returns a new instance of ProjectTicketApi.
30 31 32 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 30 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
28 29 30 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 28 def api_client @api_client end |
Instance Method Details
#create_project_ticket(id_or_name, name, description, type_id, opts = {}) ⇒ ProjectTicketItem
Create project ticket
47 48 49 50 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 47 def create_project_ticket(id_or_name, name, description, type_id, opts = {}) data, _status_code, _headers = create_project_ticket_with_http_info(id_or_name, name, description, type_id, opts) return data end |
#create_project_ticket_comment(id_or_name, ticket_id, comment, opts = {}) ⇒ ProjectTicketComment
Create new project ticket comment of spscified project.
148 149 150 151 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 148 def create_project_ticket_comment(id_or_name, ticket_id, comment, opts = {}) data, _status_code, _headers = create_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment, opts) return data end |
#create_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment, opts = {}) ⇒ Array<(ProjectTicketComment, Fixnum, Hash)>
Create new project ticket comment of spscified project.
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 160 def create_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_comment ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_comment" if id_or_name.nil? # verify the required parameter 'ticket_id' is set fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.create_project_ticket_comment" if ticket_id.nil? # verify the required parameter 'comment' is set fail ArgumentError, "Missing the required parameter 'comment' when calling ProjectTicketApi.create_project_ticket_comment" if comment.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["comment"] = comment # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketComment') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_ticket_component(id_or_name, name, description, opts = {}) ⇒ Array<ProjectTicketComponent>
Create new project ticket component of spscified project.
216 217 218 219 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 216 def create_project_ticket_component(id_or_name, name, description, opts = {}) data, _status_code, _headers = create_project_ticket_component_with_http_info(id_or_name, name, description, opts) return data end |
#create_project_ticket_component_with_http_info(id_or_name, name, description, opts = {}) ⇒ Array<(Array<ProjectTicketComponent>, Fixnum, Hash)>
Create new project ticket component of spscified project.
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 230 def create_project_ticket_component_with_http_info(id_or_name, name, description, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_component ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_component" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket_component" if name.nil? # verify the required parameter 'description' is set fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket_component" if description.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/component".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = description form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil? form_params["active"] = opts[:'active'] if !opts[:'active'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectTicketComponent>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_ticket_milestone(id_or_name, name, description, opts = {}) ⇒ ProjectTicketMilestone
Create new project ticket milestone of spscified project.
289 290 291 292 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 289 def create_project_ticket_milestone(id_or_name, name, description, opts = {}) data, _status_code, _headers = create_project_ticket_milestone_with_http_info(id_or_name, name, description, opts) return data end |
#create_project_ticket_milestone_with_http_info(id_or_name, name, description, opts = {}) ⇒ Array<(ProjectTicketMilestone, Fixnum, Hash)>
Create new project ticket milestone of spscified project.
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 303 def create_project_ticket_milestone_with_http_info(id_or_name, name, description, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_milestone ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_milestone" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket_milestone" if name.nil? # verify the required parameter 'description' is set fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket_milestone" if description.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/milestone".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = description form_params["start"] = opts[:'start'] if !opts[:'start'].nil? form_params["end"] = opts[:'_end'] if !opts[:'_end'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketMilestone') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_ticket_type(id_or_name, name, description, opts = {}) ⇒ ProjectTicketType
Create new project ticket type of spscified project.
361 362 363 364 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 361 def create_project_ticket_type(id_or_name, name, description, opts = {}) data, _status_code, _headers = create_project_ticket_type_with_http_info(id_or_name, name, description, opts) return data end |
#create_project_ticket_type_instruction(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ ProjectTicketTypeInstructionPerLanguage
Create project ticket type instructions for the language
431 432 433 434 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 431 def create_project_ticket_type_instruction(id_or_name, type_id, language_code, instruction, opts = {}) data, _status_code, _headers = create_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, instruction, opts) return data end |
#create_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>
Create project ticket type instructions for the language
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 444 def create_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, instruction, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_type_instruction ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_type_instruction" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.create_project_ticket_type_instruction" if type_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.create_project_ticket_type_instruction" if language_code.nil? # verify the required parameter 'instruction' is set fail ArgumentError, "Missing the required parameter 'instruction' when calling ProjectTicketApi.create_project_ticket_type_instruction" if instruction.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["language_code"] = language_code form_params["instruction"] = instruction # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketTypeInstructionPerLanguage') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_ticket_type_with_http_info(id_or_name, name, description, opts = {}) ⇒ Array<(ProjectTicketType, Fixnum, Hash)>
Create new project ticket type of spscified project.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 374 def create_project_ticket_type_with_http_info(id_or_name, name, description, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket_type ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket_type" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket_type" if name.nil? # verify the required parameter 'description' is set fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket_type" if description.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/type".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = description form_params["is_public"] = opts[:'is_public'] if !opts[:'is_public'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketType') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_ticket_with_http_info(id_or_name, name, description, type_id, opts = {}) ⇒ Array<(ProjectTicketItem, Fixnum, Hash)>
Create project ticket
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 65 def create_project_ticket_with_http_info(id_or_name, name, description, type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.create_project_ticket ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.create_project_ticket" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectTicketApi.create_project_ticket" if name.nil? # verify the required parameter 'description' is set fail ArgumentError, "Missing the required parameter 'description' when calling ProjectTicketApi.create_project_ticket" if description.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.create_project_ticket" if type_id.nil? if opts[:'priority'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.create_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'priority'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.create_project_ticket, must be greater than or equal to 1.0.' end if opts[:'severity'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.create_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'severity'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.create_project_ticket, must be greater than or equal to 1.0.' end if opts[:'owner'] < 101.0 fail ArgumentError, 'invalid value for "opts[:"owner"]" when calling ProjectTicketApi.create_project_ticket, must be greater than or equal to 101.0.' end # resource path local_var_path = "/project/{id_or_name}/ticket".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = description form_params["type_id"] = type_id form_params["milestone_id"] = opts[:'milestone_id'] if !opts[:'milestone_id'].nil? form_params["component_id"] = opts[:'component_id'] if !opts[:'component_id'].nil? form_params["priority"] = opts[:'priority'] if !opts[:'priority'].nil? form_params["severity"] = opts[:'severity'] if !opts[:'severity'].nil? form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketItem') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#create_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_project_ticket_component(id_or_name, component_id, migrate_to, opts = {}) ⇒ nil
Delete project ticket component
501 502 503 504 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 501 def delete_project_ticket_component(id_or_name, component_id, migrate_to, opts = {}) delete_project_ticket_component_with_http_info(id_or_name, component_id, migrate_to, opts) return nil end |
#delete_project_ticket_component_with_http_info(id_or_name, component_id, migrate_to, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket component
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 513 def delete_project_ticket_component_with_http_info(id_or_name, component_id, migrate_to, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_component ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_component" if id_or_name.nil? # verify the required parameter 'component_id' is set fail ArgumentError, "Missing the required parameter 'component_id' when calling ProjectTicketApi.delete_project_ticket_component" if component_id.nil? # verify the required parameter 'migrate_to' is set fail ArgumentError, "Missing the required parameter 'migrate_to' when calling ProjectTicketApi.delete_project_ticket_component" if migrate_to.nil? # resource path 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) # query parameters query_params = {} query_params[:'migrate_to'] = migrate_to # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_project_ticket_milestone(id_or_name, milestone_id, opts = {}) ⇒ nil
Delete project ticket milestone
566 567 568 569 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 566 def delete_project_ticket_milestone(id_or_name, milestone_id, opts = {}) delete_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts) return nil end |
#delete_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket milestone
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 578 def delete_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_milestone ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_milestone" if id_or_name.nil? # verify the required parameter 'milestone_id' is set fail ArgumentError, "Missing the required parameter 'milestone_id' when calling ProjectTicketApi.delete_project_ticket_milestone" if milestone_id.nil? # resource path 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) # query parameters query_params = {} query_params[:'migrate_to'] = opts[:'migrate_to'] if !opts[:'migrate_to'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_project_ticket_type(id_or_name, type_id, migrate_to, opts = {}) ⇒ nil
Delete project ticket type
629 630 631 632 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 629 def delete_project_ticket_type(id_or_name, type_id, migrate_to, opts = {}) delete_project_ticket_type_with_http_info(id_or_name, type_id, migrate_to, opts) return nil end |
#delete_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {}) ⇒ nil
Delete project ticket type instructions on the language
694 695 696 697 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 694 def delete_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {}) delete_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts) return nil end |
#delete_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket type instructions on the language
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 706 def delete_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_type_instruction ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_type_instruction" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.delete_project_ticket_type_instruction" if type_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.delete_project_ticket_type_instruction" if language_code.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_project_ticket_type_with_http_info(id_or_name, type_id, migrate_to, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete project ticket type
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 641 def delete_project_ticket_type_with_http_info(id_or_name, type_id, migrate_to, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.delete_project_ticket_type ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.delete_project_ticket_type" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.delete_project_ticket_type" if type_id.nil? # verify the required parameter 'migrate_to' is set fail ArgumentError, "Missing the required parameter 'migrate_to' when calling ProjectTicketApi.delete_project_ticket_type" if migrate_to.nil? # resource path 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) # query parameters query_params = {} query_params[:'migrate_to'] = migrate_to # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#delete_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_ticket(id_or_name, ticket_id, opts = {}) ⇒ ProjectTicketItem
Get project ticket
757 758 759 760 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 757 def get_project_ticket(id_or_name, ticket_id, opts = {}) data, _status_code, _headers = get_project_ticket_with_http_info(id_or_name, ticket_id, opts) return data end |
#get_project_ticket_component(id_or_name, component_id, opts = {}) ⇒ ProjectTicketComponent
Get project ticket component
818 819 820 821 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 818 def get_project_ticket_component(id_or_name, component_id, opts = {}) data, _status_code, _headers = get_project_ticket_component_with_http_info(id_or_name, component_id, opts) return data end |
#get_project_ticket_component_with_http_info(id_or_name, component_id, opts = {}) ⇒ Array<(ProjectTicketComponent, Fixnum, Hash)>
Get project ticket component
829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 829 def get_project_ticket_component_with_http_info(id_or_name, component_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_component ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_component" if id_or_name.nil? # verify the required parameter 'component_id' is set fail ArgumentError, "Missing the required parameter 'component_id' when calling ProjectTicketApi.get_project_ticket_component" if component_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketComponent') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_ticket_milestone(id_or_name, milestone_id, opts = {}) ⇒ ProjectTicketMilestone
Get project ticket milestone of spscified milestone_id.
879 880 881 882 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 879 def get_project_ticket_milestone(id_or_name, milestone_id, opts = {}) data, _status_code, _headers = get_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts) return data end |
#get_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) ⇒ Array<(ProjectTicketMilestone, Fixnum, Hash)>
Get project ticket milestone of spscified milestone_id.
890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 890 def get_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_milestone ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_milestone" if id_or_name.nil? # verify the required parameter 'milestone_id' is set fail ArgumentError, "Missing the required parameter 'milestone_id' when calling ProjectTicketApi.get_project_ticket_milestone" if milestone_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketMilestone') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_ticket_type(id_or_name, type_id, opts = {}) ⇒ ProjectTicketType
Get project ticket type
940 941 942 943 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 940 def get_project_ticket_type(id_or_name, type_id, opts = {}) data, _status_code, _headers = get_project_ticket_type_with_http_info(id_or_name, type_id, opts) return data end |
#get_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {}) ⇒ ProjectTicketTypeInstructionPerLanguage
Get project ticket type instructions on the language
1002 1003 1004 1005 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1002 def get_project_ticket_type_instruction(id_or_name, type_id, language_code, opts = {}) data, _status_code, _headers = get_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts) return data end |
#get_project_ticket_type_instruction_0(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ ProjectTicketTypeInstructionPerLanguage
Update project ticket type instructions on the language
1068 1069 1070 1071 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1068 def get_project_ticket_type_instruction_0(id_or_name, type_id, language_code, instruction, opts = {}) data, _status_code, _headers = get_project_ticket_type_instruction_0_with_http_info(id_or_name, type_id, language_code, instruction, opts) return data end |
#get_project_ticket_type_instruction_0_with_http_info(id_or_name, type_id, language_code, instruction, opts = {}) ⇒ Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>
Update project ticket type instructions on the language
1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1081 def get_project_ticket_type_instruction_0_with_http_info(id_or_name, type_id, language_code, instruction, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_type_instruction_0 ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if type_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if language_code.nil? # verify the required parameter 'instruction' is set fail ArgumentError, "Missing the required parameter 'instruction' when calling ProjectTicketApi.get_project_ticket_type_instruction_0" if instruction.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["instruction"] = instruction # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketTypeInstructionPerLanguage') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_type_instruction_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {}) ⇒ Array<(ProjectTicketTypeInstructionPerLanguage, Fixnum, Hash)>
Get project ticket type instructions on the language
1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1014 def get_project_ticket_type_instruction_with_http_info(id_or_name, type_id, language_code, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_type_instruction ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_type_instruction" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.get_project_ticket_type_instruction" if type_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ProjectTicketApi.get_project_ticket_type_instruction" if language_code.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketTypeInstructionPerLanguage') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_ticket_type_with_http_info(id_or_name, type_id, opts = {}) ⇒ Array<(ProjectTicketType, Fixnum, Hash)>
Get project ticket type
951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 951 def get_project_ticket_type_with_http_info(id_or_name, type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket_type ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket_type" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.get_project_ticket_type" if type_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketType') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_ticket_with_http_info(id_or_name, ticket_id, opts = {}) ⇒ Array<(ProjectTicketItem, Fixnum, Hash)>
Get project ticket
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 768 def get_project_ticket_with_http_info(id_or_name, ticket_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.get_project_ticket ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.get_project_ticket" if id_or_name.nil? # verify the required parameter 'ticket_id' is set fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.get_project_ticket" if ticket_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketItem') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#get_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_ticket(id_or_name, opts = {}) ⇒ Array<ProjectTicketItem>
List project ticket order by submit date descending
1153 1154 1155 1156 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1153 def list_project_ticket(id_or_name, opts = {}) data, _status_code, _headers = list_project_ticket_with_http_info(id_or_name, opts) return data end |
#list_project_ticket_comment(id_or_name, ticket_id, opts = {}) ⇒ Array<ProjectTicketComment>
Get project ticket comment list of spscified project.
1298 1299 1300 1301 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1298 def list_project_ticket_comment(id_or_name, ticket_id, opts = {}) data, _status_code, _headers = list_project_ticket_comment_with_http_info(id_or_name, ticket_id, opts) return data end |
#list_project_ticket_comment_with_http_info(id_or_name, ticket_id, opts = {}) ⇒ Array<(Array<ProjectTicketComment>, Fixnum, Hash)>
Get project ticket comment list of spscified project.
1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1309 def list_project_ticket_comment_with_http_info(id_or_name, ticket_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_comment ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_comment" if id_or_name.nil? # verify the required parameter 'ticket_id' is set fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.list_project_ticket_comment" if ticket_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectTicketComment>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_ticket_component(id_or_name, opts = {}) ⇒ Array<ProjectTicketComponent>
Get project ticket component list of spscified project.
1358 1359 1360 1361 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1358 def list_project_ticket_component(id_or_name, opts = {}) data, _status_code, _headers = list_project_ticket_component_with_http_info(id_or_name, opts) return data end |
#list_project_ticket_component_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketComponent>, Fixnum, Hash)>
Get project ticket component list of spscified project.
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1368 def list_project_ticket_component_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_component ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_component" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/component".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectTicketComponent>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_ticket_milestone(id_or_name, opts = {}) ⇒ Array<ProjectTicketMilestone>
Get project ticket milestone list of spscified project.
1415 1416 1417 1418 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1415 def list_project_ticket_milestone(id_or_name, opts = {}) data, _status_code, _headers = list_project_ticket_milestone_with_http_info(id_or_name, opts) return data end |
#list_project_ticket_milestone_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketMilestone>, Fixnum, Hash)>
Get project ticket milestone list of spscified project.
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1425 def list_project_ticket_milestone_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_milestone ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_milestone" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/milestone".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectTicketMilestone>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_ticket_type(id_or_name, opts = {}) ⇒ Array<ProjectTicketType>
Get project ticket type list of spscified project.
1472 1473 1474 1475 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1472 def list_project_ticket_type(id_or_name, opts = {}) data, _status_code, _headers = list_project_ticket_type_with_http_info(id_or_name, opts) return data end |
#list_project_ticket_type_instruction(id_or_name, type_id, opts = {}) ⇒ ProjectTicketTypeInstructions
Get project ticket type instructions
1530 1531 1532 1533 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1530 def list_project_ticket_type_instruction(id_or_name, type_id, opts = {}) data, _status_code, _headers = list_project_ticket_type_instruction_with_http_info(id_or_name, type_id, opts) return data end |
#list_project_ticket_type_instruction_with_http_info(id_or_name, type_id, opts = {}) ⇒ Array<(ProjectTicketTypeInstructions, Fixnum, Hash)>
Get project ticket type instructions
1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1541 def list_project_ticket_type_instruction_with_http_info(id_or_name, type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_type_instruction ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_type_instruction" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.list_project_ticket_type_instruction" if type_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketTypeInstructions') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_type_instruction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_ticket_type_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketType>, Fixnum, Hash)>
Get project ticket type list of spscified project.
1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1482 def list_project_ticket_type_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket_type ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket_type" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/type".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectTicketType>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_ticket_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectTicketItem>, Fixnum, Hash)>
List project ticket order by submit date descending
1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1181 def list_project_ticket_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.list_project_ticket ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.list_project_ticket" if id_or_name.nil? if opts[:'status'] && ![].include?(opts[:'status']) fail ArgumentError, 'invalid value for "status", must be one of ' end if opts[:'max_priority'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"max_priority"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'max_priority'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"max_priority"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.' end if opts[:'min_priority'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"min_priority"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'min_priority'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"min_priority"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.' end if opts[:'priority'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'priority'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.' end if opts[:'max_severity'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"max_severity"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'max_severity'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"max_severity"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.' end if opts[:'min_severity'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"min_severity"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'min_severity'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"min_severity"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.' end if opts[:'severity'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.list_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'severity'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.list_project_ticket, must be greater than or equal to 1.0.' end # resource path local_var_path = "/project/{id_or_name}/ticket".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :csv) if !opts[:'status'].nil? query_params[:'type_id'] = @api_client.build_collection_param(opts[:'type_id'], :csv) if !opts[:'type_id'].nil? query_params[:'not_type_id'] = @api_client.build_collection_param(opts[:'not_type_id'], :csv) if !opts[:'not_type_id'].nil? query_params[:'component_id'] = @api_client.build_collection_param(opts[:'component_id'], :csv) if !opts[:'component_id'].nil? query_params[:'not_component_id'] = @api_client.build_collection_param(opts[:'not_component_id'], :csv) if !opts[:'not_component_id'].nil? query_params[:'milestone_id'] = @api_client.build_collection_param(opts[:'milestone_id'], :csv) if !opts[:'milestone_id'].nil? query_params[:'not_milestone_id'] = @api_client.build_collection_param(opts[:'not_milestone_id'], :csv) if !opts[:'not_milestone_id'].nil? query_params[:'max_priority'] = opts[:'max_priority'] if !opts[:'max_priority'].nil? query_params[:'min_priority'] = opts[:'min_priority'] if !opts[:'min_priority'].nil? query_params[:'priority'] = opts[:'priority'] if !opts[:'priority'].nil? query_params[:'max_severity'] = opts[:'max_severity'] if !opts[:'max_severity'].nil? query_params[:'min_severity'] = opts[:'min_severity'] if !opts[:'min_severity'].nil? query_params[:'severity'] = opts[:'severity'] if !opts[:'severity'].nil? query_params[:'owner'] = @api_client.build_collection_param(opts[:'owner'], :csv) if !opts[:'owner'].nil? query_params[:'not_owner'] = @api_client.build_collection_param(opts[:'not_owner'], :csv) if !opts[:'not_owner'].nil? query_params[:'reporter'] = @api_client.build_collection_param(opts[:'reporter'], :csv) if !opts[:'reporter'].nil? query_params[:'not_reporter'] = @api_client.build_collection_param(opts[:'not_reporter'], :csv) if !opts[:'not_reporter'].nil? query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectTicketItem>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#list_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#show_project_ticket_adminprefs(id_or_name, opts = {}) ⇒ ProjectTicketPrefs
Get project ticket admin preferences.
1590 1591 1592 1593 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1590 def show_project_ticket_adminprefs(id_or_name, opts = {}) data, _status_code, _headers = show_project_ticket_adminprefs_with_http_info(id_or_name, opts) return data end |
#show_project_ticket_adminprefs_with_http_info(id_or_name, opts = {}) ⇒ Array<(ProjectTicketPrefs, Fixnum, Hash)>
Get project ticket admin preferences.
1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1600 def show_project_ticket_adminprefs_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.show_project_ticket_adminprefs ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.show_project_ticket_adminprefs" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/ticket/admin".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketPrefs') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#show_project_ticket_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#show_project_ticket_comment(id_or_name, ticket_id, comment_id, opts = {}) ⇒ ProjectTicketComment
Get project ticket comment spscified project.
1649 1650 1651 1652 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1649 def show_project_ticket_comment(id_or_name, ticket_id, comment_id, opts = {}) data, _status_code, _headers = show_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment_id, opts) return data end |
#show_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment_id, opts = {}) ⇒ Array<(ProjectTicketComment, Fixnum, Hash)>
Get project ticket comment spscified project.
1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1661 def show_project_ticket_comment_with_http_info(id_or_name, ticket_id, comment_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.show_project_ticket_comment ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.show_project_ticket_comment" if id_or_name.nil? # verify the required parameter 'ticket_id' is set fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.show_project_ticket_comment" if ticket_id.nil? # verify the required parameter 'comment_id' is set fail ArgumentError, "Missing the required parameter 'comment_id' when calling ProjectTicketApi.show_project_ticket_comment" if comment_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketComment') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#show_project_ticket_comment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_ticket(id_or_name, ticket_id, opts = {}) ⇒ ProjectTicketItem
Update project ticket
1723 1724 1725 1726 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1723 def update_project_ticket(id_or_name, ticket_id, opts = {}) data, _status_code, _headers = update_project_ticket_with_http_info(id_or_name, ticket_id, opts) return data end |
#update_project_ticket_adminprefs(id_or_name, opts = {}) ⇒ ProjectTicketPrefs
Update project ticket admin preferences.
1834 1835 1836 1837 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1834 def update_project_ticket_adminprefs(id_or_name, opts = {}) data, _status_code, _headers = update_project_ticket_adminprefs_with_http_info(id_or_name, opts) return data end |
#update_project_ticket_adminprefs_with_http_info(id_or_name, opts = {}) ⇒ Array<(ProjectTicketPrefs, Fixnum, Hash)>
Update project ticket admin preferences.
1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1849 def update_project_ticket_adminprefs_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_adminprefs ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_adminprefs" if id_or_name.nil? if opts[:'frs_autosync'] && !['Disabled', 'Package', 'Release', 'Package and Release'].include?(opts[:'frs_autosync']) fail ArgumentError, 'invalid value for "frs_autosync", must be one of Disabled, Package, Release, Package and Release' end if opts[:'mailsend_type'] && !['None', 'Ticket Technician', 'Ticket Administrator', 'Ticket Administrator and Technician', 'All project members', 'Mailing List'].include?(opts[:'mailsend_type']) 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' end if opts[:'mail_lang'] && !['English', 'Japanese'].include?(opts[:'mail_lang']) fail ArgumentError, 'invalid value for "mail_lang", must be one of English, Japanese' end # resource path local_var_path = "/project/{id_or_name}/ticket/admin".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["allow_anonymouse"] = opts[:'allow_anonymouse'] if !opts[:'allow_anonymouse'].nil? form_params["frs_autosync"] = opts[:'frs_autosync'] if !opts[:'frs_autosync'].nil? form_params["mailsend_type"] = opts[:'mailsend_type'] if !opts[:'mailsend_type'].nil? form_params["mailing_list_id"] = opts[:'mailing_list_id'] if !opts[:'mailing_list_id'].nil? form_params["mail_lang"] = opts[:'mail_lang'] if !opts[:'mail_lang'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketPrefs') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_ticket_component(id_or_name, component_id, opts = {}) ⇒ ProjectTicketComponent
Update project ticket component
1915 1916 1917 1918 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1915 def update_project_ticket_component(id_or_name, component_id, opts = {}) data, _status_code, _headers = update_project_ticket_component_with_http_info(id_or_name, component_id, opts) return data end |
#update_project_ticket_component_with_http_info(id_or_name, component_id, opts = {}) ⇒ Array<(ProjectTicketComponent, Fixnum, Hash)>
Update project ticket component
1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1930 def update_project_ticket_component_with_http_info(id_or_name, component_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_component ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_component" if id_or_name.nil? # verify the required parameter 'component_id' is set fail ArgumentError, "Missing the required parameter 'component_id' when calling ProjectTicketApi.update_project_ticket_component" if component_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = opts[:'name'] if !opts[:'name'].nil? form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil? form_params["active"] = opts[:'active'] if !opts[:'active'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketComponent') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_component\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_ticket_milestone(id_or_name, milestone_id, opts = {}) ⇒ ProjectTicketComponent
Update project ticket milestone
1989 1990 1991 1992 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1989 def update_project_ticket_milestone(id_or_name, milestone_id, opts = {}) data, _status_code, _headers = update_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts) return data end |
#update_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) ⇒ Array<(ProjectTicketComponent, Fixnum, Hash)>
Update project ticket milestone
2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 2005 def update_project_ticket_milestone_with_http_info(id_or_name, milestone_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_milestone ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_milestone" if id_or_name.nil? # verify the required parameter 'milestone_id' is set fail ArgumentError, "Missing the required parameter 'milestone_id' when calling ProjectTicketApi.update_project_ticket_milestone" if milestone_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = opts[:'name'] if !opts[:'name'].nil? form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["start"] = opts[:'start'] if !opts[:'start'].nil? form_params["end"] = opts[:'_end'] if !opts[:'_end'].nil? form_params["force_status"] = opts[:'force_status'] if !opts[:'force_status'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketComponent') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_milestone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_ticket_type(id_or_name, type_id, opts = {}) ⇒ ProjectTicketType
Update project ticket type
2063 2064 2065 2066 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 2063 def update_project_ticket_type(id_or_name, type_id, opts = {}) data, _status_code, _headers = update_project_ticket_type_with_http_info(id_or_name, type_id, opts) return data end |
#update_project_ticket_type_with_http_info(id_or_name, type_id, opts = {}) ⇒ Array<(ProjectTicketType, Fixnum, Hash)>
Update project ticket type
2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 2077 def update_project_ticket_type_with_http_info(id_or_name, type_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket_type ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket_type" if id_or_name.nil? # verify the required parameter 'type_id' is set fail ArgumentError, "Missing the required parameter 'type_id' when calling ProjectTicketApi.update_project_ticket_type" if type_id.nil? # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = opts[:'name'] if !opts[:'name'].nil? form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["is_public"] = opts[:'is_public'] if !opts[:'is_public'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketType') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_ticket_with_http_info(id_or_name, ticket_id, opts = {}) ⇒ Array<(ProjectTicketItem, Fixnum, Hash)>
Update project ticket
1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 |
# File 'lib/osdn-client/api/project_ticket_api.rb', line 1744 def update_project_ticket_with_http_info(id_or_name, ticket_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectTicketApi.update_project_ticket ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectTicketApi.update_project_ticket" if id_or_name.nil? # verify the required parameter 'ticket_id' is set fail ArgumentError, "Missing the required parameter 'ticket_id' when calling ProjectTicketApi.update_project_ticket" if ticket_id.nil? if opts[:'priority'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.update_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'priority'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"priority"]" when calling ProjectTicketApi.update_project_ticket, must be greater than or equal to 1.0.' end if opts[:'severity'] > 9.0 fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.update_project_ticket, must be smaller than or equal to 9.0.' end if opts[:'severity'] < 1.0 fail ArgumentError, 'invalid value for "opts[:"severity"]" when calling ProjectTicketApi.update_project_ticket, must be greater than or equal to 1.0.' end if opts[:'owner'] < 101.0 fail ArgumentError, 'invalid value for "opts[:"owner"]" when calling ProjectTicketApi.update_project_ticket, must be greater than or equal to 101.0.' end if opts[:'resolution'] && !['Fixed', 'Invalid', 'Wont Fix', 'Later', 'Remind', 'Works For Me', 'None', 'Duplicate', 'Accepted', 'Out of Date', 'Postponed', 'Rejected'].include?(opts[:'resolution']) 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' end if opts[:'status'] && !['close', 'reopen'].include?(opts[:'status']) fail ArgumentError, 'invalid value for "status", must be one of close, reopen' end # resource path 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) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = opts[:'name'] if !opts[:'name'].nil? form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["type_id"] = opts[:'type_id'] if !opts[:'type_id'].nil? form_params["milestone_id"] = opts[:'milestone_id'] if !opts[:'milestone_id'].nil? form_params["component_id"] = opts[:'component_id'] if !opts[:'component_id'].nil? form_params["priority"] = opts[:'priority'] if !opts[:'priority'].nil? form_params["severity"] = opts[:'severity'] if !opts[:'severity'].nil? form_params["owner"] = opts[:'owner'] if !opts[:'owner'].nil? form_params["resolution"] = opts[:'resolution'] if !opts[:'resolution'].nil? form_params["status"] = opts[:'status'] if !opts[:'status'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectTicketItem') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectTicketApi#update_project_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |