osdn-client 0.0.20161003 → 0.0.20171120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +168 -6
  3. data/docs/FrsAdminPrefs.md +9 -0
  4. data/docs/Group.md +1 -3
  5. data/docs/GroupProfile.md +10 -0
  6. data/docs/GroupProfilePerLanguage.md +10 -0
  7. data/docs/GroupToolFlags.md +1 -2
  8. data/docs/History.md +15 -0
  9. data/docs/I18NText.md +9 -0
  10. data/docs/ProjectApi.md +4021 -209
  11. data/docs/ProjectBzr.md +22 -0
  12. data/docs/ProjectFrsApi.md +118 -4
  13. data/docs/ProjectGit.md +27 -0
  14. data/docs/ProjectHg.md +22 -0
  15. data/docs/ProjectSCM.md +22 -0
  16. data/docs/ProjectSCMApi.md +1214 -0
  17. data/docs/ProjectSCMLastCommit.md +11 -0
  18. data/docs/ProjectSvn.md +25 -0
  19. data/docs/ProjectTicketApi.md +1847 -0
  20. data/docs/ProjectTicketComment.md +13 -0
  21. data/docs/ProjectTicketComponent.md +14 -0
  22. data/docs/ProjectTicketComponentSummary.md +10 -0
  23. data/docs/ProjectTicketComponentSummarySummarizedBy.md +12 -0
  24. data/docs/ProjectTicketHistory.md +14 -0
  25. data/docs/ProjectTicketItem.md +25 -0
  26. data/docs/ProjectTicketMilestone.md +14 -0
  27. data/docs/ProjectTicketMilestoneSummary.md +10 -0
  28. data/docs/ProjectTicketMilestoneSummarySummarizedBy.md +12 -0
  29. data/docs/ProjectTicketPrefs.md +13 -0
  30. data/docs/ProjectTicketType.md +15 -0
  31. data/docs/ProjectTicketTypeInstructionPerLanguage.md +9 -0
  32. data/docs/ProjectTicketTypeInstructions.md +9 -0
  33. data/docs/ProjectTicketTypeSummary.md +10 -0
  34. data/docs/ProjectTicketTypeSummarySummarizedBy.md +12 -0
  35. data/docs/ProjectWeb.md +8 -0
  36. data/docs/ScmHook.md +18 -0
  37. data/docs/SummariadByComponent.md +7 -0
  38. data/docs/SummariadByComponentInner.md +10 -0
  39. data/docs/SummariadByMilestone.md +7 -0
  40. data/docs/SummariadByMilestoneInner.md +10 -0
  41. data/docs/SummariadByOwner.md +7 -0
  42. data/docs/SummariadByOwnerInner.md +10 -0
  43. data/docs/SummariadByPriority.md +7 -0
  44. data/docs/SummariadByPriorityInner.md +10 -0
  45. data/docs/SummariadBySeverity.md +7 -0
  46. data/docs/SummariadBySeverityInner.md +10 -0
  47. data/docs/SummariadByType.md +7 -0
  48. data/docs/SummariadByTypeInner.md +10 -0
  49. data/docs/User.md +5 -3
  50. data/docs/UserApi.md +279 -0
  51. data/docs/UserImages.md +12 -0
  52. data/docs/UserStats.md +33 -0
  53. data/lib/osdn-client.rb +45 -1
  54. data/lib/osdn-client/api/default_api.rb +1 -1
  55. data/lib/osdn-client/api/project_api.rb +4574 -396
  56. data/lib/osdn-client/api/project_frs_api.rb +122 -5
  57. data/lib/osdn-client/api/project_news_api.rb +1 -1
  58. data/lib/osdn-client/api/project_scm_api.rb +1310 -0
  59. data/lib/osdn-client/api/project_ticket_api.rb +2124 -0
  60. data/lib/osdn-client/api/user_api.rb +294 -1
  61. data/lib/osdn-client/api_client.rb +1 -1
  62. data/lib/osdn-client/api_error.rb +1 -1
  63. data/lib/osdn-client/configuration.rb +1 -1
  64. data/lib/osdn-client/models/frs_admin_prefs.rb +208 -0
  65. data/lib/osdn-client/models/group.rb +8 -26
  66. data/lib/osdn-client/models/group_profile.rb +223 -0
  67. data/lib/osdn-client/models/group_profile_per_language.rb +217 -0
  68. data/lib/osdn-client/models/group_tool_flags.rb +11 -20
  69. data/lib/osdn-client/models/history.rb +262 -0
  70. data/lib/osdn-client/models/i18_n_text.rb +208 -0
  71. data/lib/osdn-client/models/news.rb +1 -1
  72. data/lib/osdn-client/models/package.rb +1 -1
  73. data/lib/osdn-client/models/pong.rb +1 -1
  74. data/lib/osdn-client/models/project_bzr.rb +329 -0
  75. data/lib/osdn-client/models/project_git.rb +374 -0
  76. data/lib/osdn-client/models/project_hg.rb +329 -0
  77. data/lib/osdn-client/models/project_scm.rb +329 -0
  78. data/lib/osdn-client/models/project_scm_last_commit.rb +226 -0
  79. data/lib/osdn-client/models/project_svn.rb +356 -0
  80. data/lib/osdn-client/models/project_ticket_comment.rb +244 -0
  81. data/lib/osdn-client/models/project_ticket_component.rb +253 -0
  82. data/lib/osdn-client/models/project_ticket_component_summary.rb +217 -0
  83. data/lib/osdn-client/models/project_ticket_component_summary_summarized_by.rb +235 -0
  84. data/lib/osdn-client/models/project_ticket_history.rb +253 -0
  85. data/lib/osdn-client/models/project_ticket_item.rb +356 -0
  86. data/lib/osdn-client/models/project_ticket_milestone.rb +253 -0
  87. data/lib/osdn-client/models/project_ticket_milestone_summary.rb +217 -0
  88. data/lib/osdn-client/models/project_ticket_milestone_summary_summarized_by.rb +235 -0
  89. data/lib/osdn-client/models/project_ticket_prefs.rb +244 -0
  90. data/lib/osdn-client/models/project_ticket_type.rb +266 -0
  91. data/lib/osdn-client/models/project_ticket_type_instruction_per_language.rb +208 -0
  92. data/lib/osdn-client/models/project_ticket_type_instructions.rb +212 -0
  93. data/lib/osdn-client/models/project_ticket_type_summary.rb +217 -0
  94. data/lib/osdn-client/models/project_ticket_type_summary_summarized_by.rb +235 -0
  95. data/lib/osdn-client/models/project_web.rb +199 -0
  96. data/lib/osdn-client/models/rel_file.rb +1 -1
  97. data/lib/osdn-client/models/release.rb +1 -1
  98. data/lib/osdn-client/models/scm_hook.rb +289 -0
  99. data/lib/osdn-client/models/simple_chamber.rb +1 -1
  100. data/lib/osdn-client/models/simple_group.rb +1 -1
  101. data/lib/osdn-client/models/simple_user.rb +1 -1
  102. data/lib/osdn-client/models/skill.rb +1 -1
  103. data/lib/osdn-client/models/summariad_by_component.rb +190 -0
  104. data/lib/osdn-client/models/summariad_by_component_inner.rb +217 -0
  105. data/lib/osdn-client/models/summariad_by_milestone.rb +190 -0
  106. data/lib/osdn-client/models/summariad_by_milestone_inner.rb +217 -0
  107. data/lib/osdn-client/models/summariad_by_owner.rb +190 -0
  108. data/lib/osdn-client/models/summariad_by_owner_inner.rb +217 -0
  109. data/lib/osdn-client/models/summariad_by_priority.rb +190 -0
  110. data/lib/osdn-client/models/summariad_by_priority_inner.rb +217 -0
  111. data/lib/osdn-client/models/summariad_by_severity.rb +190 -0
  112. data/lib/osdn-client/models/summariad_by_severity_inner.rb +217 -0
  113. data/lib/osdn-client/models/summariad_by_type.rb +190 -0
  114. data/lib/osdn-client/models/summariad_by_type_inner.rb +217 -0
  115. data/lib/osdn-client/models/token.rb +1 -1
  116. data/lib/osdn-client/models/user.rb +38 -18
  117. data/lib/osdn-client/models/user_images.rb +235 -0
  118. data/lib/osdn-client/models/user_stats.rb +424 -0
  119. data/lib/osdn-client/version.rb +2 -2
  120. data/osdn-client.gemspec +1 -1
  121. data/spec/api/default_api_spec.rb +1 -1
  122. data/spec/api/project_api_spec.rb +899 -3
  123. data/spec/api/project_frs_api_spec.rb +28 -3
  124. data/spec/api/project_news_api_spec.rb +1 -1
  125. data/spec/api/project_scm_api_spec.rb +324 -0
  126. data/spec/api/project_ticket_api_spec.rb +488 -0
  127. data/spec/api/user_api_spec.rb +63 -1
  128. data/spec/api_client_spec.rb +1 -1
  129. data/spec/configuration_spec.rb +1 -1
  130. data/spec/models/frs_admin_prefs_spec.rb +59 -0
  131. data/spec/models/group_profile_per_language_spec.rb +65 -0
  132. data/spec/models/group_profile_spec.rb +65 -0
  133. data/spec/models/group_spec.rb +2 -14
  134. data/spec/models/group_tool_flags_spec.rb +3 -9
  135. data/spec/models/history_spec.rb +95 -0
  136. data/spec/models/i18_n_text_spec.rb +59 -0
  137. data/spec/models/news_spec.rb +1 -1
  138. data/spec/models/package_spec.rb +1 -1
  139. data/spec/models/pong_spec.rb +1 -1
  140. data/spec/models/project_bzr_spec.rb +137 -0
  141. data/spec/models/project_git_spec.rb +167 -0
  142. data/spec/models/project_hg_spec.rb +137 -0
  143. data/spec/models/project_scm_last_commit_spec.rb +71 -0
  144. data/spec/models/project_scm_spec.rb +137 -0
  145. data/spec/models/project_svn_spec.rb +155 -0
  146. data/spec/models/project_ticket_comment_spec.rb +83 -0
  147. data/spec/models/project_ticket_component_spec.rb +89 -0
  148. data/spec/models/project_ticket_component_summary_spec.rb +65 -0
  149. data/spec/models/project_ticket_component_summary_summarized_by_spec.rb +77 -0
  150. data/spec/models/project_ticket_history_spec.rb +89 -0
  151. data/spec/models/project_ticket_item_spec.rb +155 -0
  152. data/spec/models/project_ticket_milestone_spec.rb +89 -0
  153. data/spec/models/project_ticket_milestone_summary_spec.rb +65 -0
  154. data/spec/models/project_ticket_milestone_summary_summarized_by_spec.rb +77 -0
  155. data/spec/models/project_ticket_prefs_spec.rb +83 -0
  156. data/spec/models/project_ticket_type_instruction_per_language_spec.rb +59 -0
  157. data/spec/models/project_ticket_type_instructions_spec.rb +59 -0
  158. data/spec/models/project_ticket_type_spec.rb +95 -0
  159. data/spec/models/project_ticket_type_summary_spec.rb +65 -0
  160. data/spec/models/project_ticket_type_summary_summarized_by_spec.rb +77 -0
  161. data/spec/models/project_web_spec.rb +53 -0
  162. data/spec/models/rel_file_spec.rb +1 -1
  163. data/spec/models/release_spec.rb +1 -1
  164. data/spec/models/scm_hook_spec.rb +113 -0
  165. data/spec/models/simple_chamber_spec.rb +1 -1
  166. data/spec/models/simple_group_spec.rb +1 -1
  167. data/spec/models/simple_user_spec.rb +1 -1
  168. data/spec/models/skill_spec.rb +1 -1
  169. data/spec/models/summariad_by_component_inner_spec.rb +65 -0
  170. data/spec/models/summariad_by_component_spec.rb +47 -0
  171. data/spec/models/summariad_by_milestone_inner_spec.rb +65 -0
  172. data/spec/models/summariad_by_milestone_spec.rb +47 -0
  173. data/spec/models/summariad_by_owner_inner_spec.rb +65 -0
  174. data/spec/models/summariad_by_owner_spec.rb +47 -0
  175. data/spec/models/summariad_by_priority_inner_spec.rb +65 -0
  176. data/spec/models/summariad_by_priority_spec.rb +47 -0
  177. data/spec/models/summariad_by_severity_inner_spec.rb +65 -0
  178. data/spec/models/summariad_by_severity_spec.rb +47 -0
  179. data/spec/models/summariad_by_type_inner_spec.rb +65 -0
  180. data/spec/models/summariad_by_type_spec.rb +47 -0
  181. data/spec/models/token_spec.rb +1 -1
  182. data/spec/models/user_images_spec.rb +77 -0
  183. data/spec/models/user_spec.rb +16 -4
  184. data/spec/models/user_stats_spec.rb +203 -0
  185. data/spec/spec_helper.rb +1 -1
  186. metadata +179 -3
@@ -3,7 +3,7 @@
3
3
 
4
4
  #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.net/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.net/projects/osdn-codes/releases/p14859 .
5
5
 
6
- OpenAPI spec version: 0.0.20161003
6
+ OpenAPI spec version: 0.0.20171120
7
7
  Contact: admin@osdn.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -103,7 +103,7 @@ module OSDNClient
103
103
  # @param name Release name
104
104
  # @param [Hash] opts the optional parameters
105
105
  # @option opts [String] :visibility visibility status (public, hidden or private)
106
- # @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
106
+ # @option opts [DateTime] :time Release datetime. If you set future time, the release hide until specified time.
107
107
  # @option opts [String] :release_note Release note body text.
108
108
  # @option opts [String] :change_log Changelog body text.
109
109
  # @return [Release]
@@ -119,7 +119,7 @@ module OSDNClient
119
119
  # @param name Release name
120
120
  # @param [Hash] opts the optional parameters
121
121
  # @option opts [String] :visibility visibility status (public, hidden or private)
122
- # @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
122
+ # @option opts [DateTime] :time Release datetime. If you set future time, the release hide until specified time.
123
123
  # @option opts [String] :release_note Release note body text.
124
124
  # @option opts [String] :change_log Changelog body text.
125
125
  # @return [Array<(Release, Fixnum, Hash)>] Release data, response status code and response headers
@@ -500,6 +500,63 @@ module OSDNClient
500
500
  return data, status_code, headers
501
501
  end
502
502
 
503
+ #
504
+ # Get project frs admin preferences.
505
+ # @param id_or_name numeric project id or project name
506
+ # @param [Hash] opts the optional parameters
507
+ # @return [FrsAdminPrefs]
508
+ def get_frs_adminprefs(id_or_name, opts = {})
509
+ data, _status_code, _headers = get_frs_adminprefs_with_http_info(id_or_name, opts)
510
+ return data
511
+ end
512
+
513
+ #
514
+ # Get project frs admin preferences.
515
+ # @param id_or_name numeric project id or project name
516
+ # @param [Hash] opts the optional parameters
517
+ # @return [Array<(FrsAdminPrefs, Fixnum, Hash)>] FrsAdminPrefs data, response status code and response headers
518
+ def get_frs_adminprefs_with_http_info(id_or_name, opts = {})
519
+ if @api_client.config.debugging
520
+ @api_client.config.logger.debug "Calling API: ProjectFrsApi.get_frs_adminprefs ..."
521
+ end
522
+ # verify the required parameter 'id_or_name' is set
523
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.get_frs_adminprefs" if id_or_name.nil?
524
+ # resource path
525
+ local_var_path = "/project/{id_or_name}/frs/admin".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
526
+
527
+ # query parameters
528
+ query_params = {}
529
+
530
+ # header parameters
531
+ header_params = {}
532
+
533
+ # HTTP header 'Accept' (if needed)
534
+ local_header_accept = []
535
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
536
+
537
+ # HTTP header 'Content-Type'
538
+ local_header_content_type = ['application/x-www-form-urlencoded']
539
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
540
+
541
+ # form parameters
542
+ form_params = {}
543
+
544
+ # http body (model)
545
+ post_body = nil
546
+ auth_names = ['oauth2-code', 'oauth2-implicit']
547
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
548
+ :header_params => header_params,
549
+ :query_params => query_params,
550
+ :form_params => form_params,
551
+ :body => post_body,
552
+ :auth_names => auth_names,
553
+ :return_type => 'FrsAdminPrefs')
554
+ if @api_client.config.debugging
555
+ @api_client.config.logger.debug "API called: ProjectFrsApi#get_frs_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
556
+ end
557
+ return data, status_code, headers
558
+ end
559
+
503
560
  #
504
561
  # Get specified package info and release list of the package.
505
562
  # @param id_or_name numeric project id or project name
@@ -752,6 +809,66 @@ module OSDNClient
752
809
  return data, status_code, headers
753
810
  end
754
811
 
812
+ #
813
+ # Update project frs admin preferences.
814
+ # @param id_or_name numeric project id or project name
815
+ # @param [Hash] opts the optional parameters
816
+ # @option opts [BOOLEAN] :allow_overwrite Allow overwrite files when filenames are conflict
817
+ # @return [FrsAdminPrefs]
818
+ def update_frs_adminprefs(id_or_name, opts = {})
819
+ data, _status_code, _headers = update_frs_adminprefs_with_http_info(id_or_name, opts)
820
+ return data
821
+ end
822
+
823
+ #
824
+ # Update project frs admin preferences.
825
+ # @param id_or_name numeric project id or project name
826
+ # @param [Hash] opts the optional parameters
827
+ # @option opts [BOOLEAN] :allow_overwrite Allow overwrite files when filenames are conflict
828
+ # @return [Array<(FrsAdminPrefs, Fixnum, Hash)>] FrsAdminPrefs data, response status code and response headers
829
+ def update_frs_adminprefs_with_http_info(id_or_name, opts = {})
830
+ if @api_client.config.debugging
831
+ @api_client.config.logger.debug "Calling API: ProjectFrsApi.update_frs_adminprefs ..."
832
+ end
833
+ # verify the required parameter 'id_or_name' is set
834
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.update_frs_adminprefs" if id_or_name.nil?
835
+ # resource path
836
+ local_var_path = "/project/{id_or_name}/frs/admin".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
837
+
838
+ # query parameters
839
+ query_params = {}
840
+
841
+ # header parameters
842
+ header_params = {}
843
+
844
+ # HTTP header 'Accept' (if needed)
845
+ local_header_accept = []
846
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
847
+
848
+ # HTTP header 'Content-Type'
849
+ local_header_content_type = ['application/x-www-form-urlencoded']
850
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
851
+
852
+ # form parameters
853
+ form_params = {}
854
+ form_params["allow_overwrite"] = opts[:'allow_overwrite'] if !opts[:'allow_overwrite'].nil?
855
+
856
+ # http body (model)
857
+ post_body = nil
858
+ auth_names = ['oauth2-code', 'oauth2-implicit']
859
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
860
+ :header_params => header_params,
861
+ :query_params => query_params,
862
+ :form_params => form_params,
863
+ :body => post_body,
864
+ :auth_names => auth_names,
865
+ :return_type => 'FrsAdminPrefs')
866
+ if @api_client.config.debugging
867
+ @api_client.config.logger.debug "API called: ProjectFrsApi#update_frs_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
868
+ end
869
+ return data, status_code, headers
870
+ end
871
+
755
872
  #
756
873
  # Update tagret package.
757
874
  # @param id_or_name numeric project id or project name
@@ -827,7 +944,7 @@ module OSDNClient
827
944
  # @param [Hash] opts the optional parameters
828
945
  # @option opts [String] :visibility visibility status (public, hidden or private)
829
946
  # @option opts [String] :name Release name
830
- # @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
947
+ # @option opts [DateTime] :time Release datetime. If you set future time, the release hide until specified time.
831
948
  # @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package.
832
949
  # @return [Release]
833
950
  def update_release(id_or_name, package_id, release_id, opts = {})
@@ -843,7 +960,7 @@ module OSDNClient
843
960
  # @param [Hash] opts the optional parameters
844
961
  # @option opts [String] :visibility visibility status (public, hidden or private)
845
962
  # @option opts [String] :name Release name
846
- # @option opts [String] :time Release datetime. If you set future time, the release hide until specified time.
963
+ # @option opts [DateTime] :time Release datetime. If you set future time, the release hide until specified time.
847
964
  # @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package.
848
965
  # @return [Array<(Release, Fixnum, Hash)>] Release data, response status code and response headers
849
966
  def update_release_with_http_info(id_or_name, package_id, release_id, opts = {})
@@ -3,7 +3,7 @@
3
3
 
4
4
  #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.net/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.net/projects/osdn-codes/releases/p14859 .
5
5
 
6
- OpenAPI spec version: 0.0.20161003
6
+ OpenAPI spec version: 0.0.20171120
7
7
  Contact: admin@osdn.net
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -0,0 +1,1310 @@
1
+ =begin
2
+ #OSDN REST API v0 beta
3
+
4
+ #OSDN REST API. Currently this API is experimental release. Pelase refer documentation on https://osdn.net/projects/osdn-codes/wiki/APIGuide and you can get client libraries from https://osdn.net/projects/osdn-codes/releases/p14859 .
5
+
6
+ OpenAPI spec version: 0.0.20171120
7
+ Contact: admin@osdn.net
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ =end
23
+
24
+ require "uri"
25
+
26
+ module OSDNClient
27
+ class ProjectSCMApi
28
+ attr_accessor :api_client
29
+
30
+ def initialize(api_client = ApiClient.default)
31
+ @api_client = api_client
32
+ end
33
+
34
+ #
35
+ # Create a new bzr repository
36
+ # @param id_or_name numeric project id or project name
37
+ # @param name
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :description
40
+ # @return [ProjectBzr]
41
+ def create_project_bzr(id_or_name, name, opts = {})
42
+ data, _status_code, _headers = create_project_bzr_with_http_info(id_or_name, name, opts)
43
+ return data
44
+ end
45
+
46
+ #
47
+ # Create a new bzr repository
48
+ # @param id_or_name numeric project id or project name
49
+ # @param name
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :description
52
+ # @return [Array<(ProjectBzr, Fixnum, Hash)>] ProjectBzr data, response status code and response headers
53
+ def create_project_bzr_with_http_info(id_or_name, name, opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_bzr ..."
56
+ end
57
+ # verify the required parameter 'id_or_name' is set
58
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_bzr" if id_or_name.nil?
59
+ # verify the required parameter 'name' is set
60
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectSCMApi.create_project_bzr" if name.nil?
61
+ # resource path
62
+ local_var_path = "/project/{id_or_name}/bzr".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
63
+
64
+ # query parameters
65
+ query_params = {}
66
+
67
+ # header parameters
68
+ header_params = {}
69
+
70
+ # HTTP header 'Accept' (if needed)
71
+ local_header_accept = []
72
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
73
+
74
+ # HTTP header 'Content-Type'
75
+ local_header_content_type = ['application/x-www-form-urlencoded']
76
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
77
+
78
+ # form parameters
79
+ form_params = {}
80
+ form_params["name"] = name
81
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
82
+
83
+ # http body (model)
84
+ post_body = nil
85
+ auth_names = ['oauth2-code', 'oauth2-implicit']
86
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => 'ProjectBzr')
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+
99
+ #
100
+ # Create a new git repository
101
+ # @param id_or_name numeric project id or project name
102
+ # @param name
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :description
105
+ # @option opts [BOOLEAN] :mail_enabled
106
+ # @option opts [String] :mail_recipients
107
+ # @option opts [BOOLEAN] :allow_non_fast_forward
108
+ # @option opts [String] :default_branch
109
+ # @return [ProjectGit]
110
+ def create_project_git(id_or_name, name, opts = {})
111
+ data, _status_code, _headers = create_project_git_with_http_info(id_or_name, name, opts)
112
+ return data
113
+ end
114
+
115
+ #
116
+ # Create a new git repository
117
+ # @param id_or_name numeric project id or project name
118
+ # @param name
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [String] :description
121
+ # @option opts [BOOLEAN] :mail_enabled
122
+ # @option opts [String] :mail_recipients
123
+ # @option opts [BOOLEAN] :allow_non_fast_forward
124
+ # @option opts [String] :default_branch
125
+ # @return [Array<(ProjectGit, Fixnum, Hash)>] ProjectGit data, response status code and response headers
126
+ def create_project_git_with_http_info(id_or_name, name, opts = {})
127
+ if @api_client.config.debugging
128
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_git ..."
129
+ end
130
+ # verify the required parameter 'id_or_name' is set
131
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_git" if id_or_name.nil?
132
+ # verify the required parameter 'name' is set
133
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectSCMApi.create_project_git" if name.nil?
134
+ # resource path
135
+ local_var_path = "/project/{id_or_name}/git".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
136
+
137
+ # query parameters
138
+ query_params = {}
139
+
140
+ # header parameters
141
+ header_params = {}
142
+
143
+ # HTTP header 'Accept' (if needed)
144
+ local_header_accept = []
145
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
146
+
147
+ # HTTP header 'Content-Type'
148
+ local_header_content_type = ['application/x-www-form-urlencoded']
149
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
150
+
151
+ # form parameters
152
+ form_params = {}
153
+ form_params["name"] = name
154
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
155
+ form_params["mail_enabled"] = opts[:'mail_enabled'] if !opts[:'mail_enabled'].nil?
156
+ form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil?
157
+ form_params["allow_non_fast_forward"] = opts[:'allow_non_fast_forward'] if !opts[:'allow_non_fast_forward'].nil?
158
+ form_params["default_branch"] = opts[:'default_branch'] if !opts[:'default_branch'].nil?
159
+
160
+ # http body (model)
161
+ post_body = nil
162
+ auth_names = ['oauth2-code', 'oauth2-implicit']
163
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
164
+ :header_params => header_params,
165
+ :query_params => query_params,
166
+ :form_params => form_params,
167
+ :body => post_body,
168
+ :auth_names => auth_names,
169
+ :return_type => 'ProjectGit')
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ end
173
+ return data, status_code, headers
174
+ end
175
+
176
+ #
177
+ # Create a new hook for project git repository
178
+ # @param id_or_name numeric project id or project name
179
+ # @param repo_id
180
+ # @param target_url
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [ScmHook]
183
+ def create_project_git_hook(id_or_name, repo_id, target_url, opts = {})
184
+ data, _status_code, _headers = create_project_git_hook_with_http_info(id_or_name, repo_id, target_url, opts)
185
+ return data
186
+ end
187
+
188
+ #
189
+ # Create a new hook for project git repository
190
+ # @param id_or_name numeric project id or project name
191
+ # @param repo_id
192
+ # @param target_url
193
+ # @param [Hash] opts the optional parameters
194
+ # @return [Array<(ScmHook, Fixnum, Hash)>] ScmHook data, response status code and response headers
195
+ def create_project_git_hook_with_http_info(id_or_name, repo_id, target_url, opts = {})
196
+ if @api_client.config.debugging
197
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_git_hook ..."
198
+ end
199
+ # verify the required parameter 'id_or_name' is set
200
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_git_hook" if id_or_name.nil?
201
+ # verify the required parameter 'repo_id' is set
202
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.create_project_git_hook" if repo_id.nil?
203
+ # verify the required parameter 'target_url' is set
204
+ fail ArgumentError, "Missing the required parameter 'target_url' when calling ProjectSCMApi.create_project_git_hook" if target_url.nil?
205
+ # resource path
206
+ local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
207
+
208
+ # query parameters
209
+ query_params = {}
210
+
211
+ # header parameters
212
+ header_params = {}
213
+
214
+ # HTTP header 'Accept' (if needed)
215
+ local_header_accept = []
216
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
217
+
218
+ # HTTP header 'Content-Type'
219
+ local_header_content_type = ['application/x-www-form-urlencoded']
220
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
221
+
222
+ # form parameters
223
+ form_params = {}
224
+ form_params["target_url"] = target_url
225
+
226
+ # http body (model)
227
+ post_body = nil
228
+ auth_names = ['oauth2-code', 'oauth2-implicit']
229
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
230
+ :header_params => header_params,
231
+ :query_params => query_params,
232
+ :form_params => form_params,
233
+ :body => post_body,
234
+ :auth_names => auth_names,
235
+ :return_type => 'ScmHook')
236
+ if @api_client.config.debugging
237
+ @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ end
239
+ return data, status_code, headers
240
+ end
241
+
242
+ #
243
+ # Create a new hg repository
244
+ # @param id_or_name numeric project id or project name
245
+ # @param name
246
+ # @param [Hash] opts the optional parameters
247
+ # @option opts [String] :description
248
+ # @option opts [String] :mail_recipients
249
+ # @return [ProjectHg]
250
+ def create_project_hg(id_or_name, name, opts = {})
251
+ data, _status_code, _headers = create_project_hg_with_http_info(id_or_name, name, opts)
252
+ return data
253
+ end
254
+
255
+ #
256
+ # Create a new hg repository
257
+ # @param id_or_name numeric project id or project name
258
+ # @param name
259
+ # @param [Hash] opts the optional parameters
260
+ # @option opts [String] :description
261
+ # @option opts [String] :mail_recipients
262
+ # @return [Array<(ProjectHg, Fixnum, Hash)>] ProjectHg data, response status code and response headers
263
+ def create_project_hg_with_http_info(id_or_name, name, opts = {})
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_hg ..."
266
+ end
267
+ # verify the required parameter 'id_or_name' is set
268
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_hg" if id_or_name.nil?
269
+ # verify the required parameter 'name' is set
270
+ fail ArgumentError, "Missing the required parameter 'name' when calling ProjectSCMApi.create_project_hg" if name.nil?
271
+ # resource path
272
+ local_var_path = "/project/{id_or_name}/hg".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
273
+
274
+ # query parameters
275
+ query_params = {}
276
+
277
+ # header parameters
278
+ header_params = {}
279
+
280
+ # HTTP header 'Accept' (if needed)
281
+ local_header_accept = []
282
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
283
+
284
+ # HTTP header 'Content-Type'
285
+ local_header_content_type = ['application/x-www-form-urlencoded']
286
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
287
+
288
+ # form parameters
289
+ form_params = {}
290
+ form_params["name"] = name
291
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
292
+ form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil?
293
+
294
+ # http body (model)
295
+ post_body = nil
296
+ auth_names = ['oauth2-code', 'oauth2-implicit']
297
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
298
+ :header_params => header_params,
299
+ :query_params => query_params,
300
+ :form_params => form_params,
301
+ :body => post_body,
302
+ :auth_names => auth_names,
303
+ :return_type => 'ProjectHg')
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
306
+ end
307
+ return data, status_code, headers
308
+ end
309
+
310
+ #
311
+ # Delete a Git repository hook
312
+ # @param id_or_name numeric project id or project name
313
+ # @param repo_id
314
+ # @param hook_id
315
+ # @param [Hash] opts the optional parameters
316
+ # @return [nil]
317
+ def delete_project_git_hook(id_or_name, repo_id, hook_id, opts = {})
318
+ delete_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts)
319
+ return nil
320
+ end
321
+
322
+ #
323
+ # Delete a Git repository hook
324
+ # @param id_or_name numeric project id or project name
325
+ # @param repo_id
326
+ # @param hook_id
327
+ # @param [Hash] opts the optional parameters
328
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
329
+ def delete_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {})
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.delete_project_git_hook ..."
332
+ end
333
+ # verify the required parameter 'id_or_name' is set
334
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.delete_project_git_hook" if id_or_name.nil?
335
+ # verify the required parameter 'repo_id' is set
336
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.delete_project_git_hook" if repo_id.nil?
337
+ # verify the required parameter 'hook_id' is set
338
+ fail ArgumentError, "Missing the required parameter 'hook_id' when calling ProjectSCMApi.delete_project_git_hook" if hook_id.nil?
339
+ # resource path
340
+ local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks/{hook_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s).sub('{' + 'hook_id' + '}', hook_id.to_s)
341
+
342
+ # query parameters
343
+ query_params = {}
344
+
345
+ # header parameters
346
+ header_params = {}
347
+
348
+ # HTTP header 'Accept' (if needed)
349
+ local_header_accept = []
350
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
351
+
352
+ # HTTP header 'Content-Type'
353
+ local_header_content_type = ['application/x-www-form-urlencoded']
354
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
355
+
356
+ # form parameters
357
+ form_params = {}
358
+
359
+ # http body (model)
360
+ post_body = nil
361
+ auth_names = ['oauth2-code', 'oauth2-implicit']
362
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
363
+ :header_params => header_params,
364
+ :query_params => query_params,
365
+ :form_params => form_params,
366
+ :body => post_body,
367
+ :auth_names => auth_names)
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug "API called: ProjectSCMApi#delete_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
370
+ end
371
+ return data, status_code, headers
372
+ end
373
+
374
+ #
375
+ # Disable a bzr repository (not an actual delete, just a shorthand for updating with active=false)
376
+ # @param id_or_name numeric project id or project name
377
+ # @param repo_id
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [ProjectBzr]
380
+ def disable_project_bzr(id_or_name, repo_id, opts = {})
381
+ data, _status_code, _headers = disable_project_bzr_with_http_info(id_or_name, repo_id, opts)
382
+ return data
383
+ end
384
+
385
+ #
386
+ # Disable a bzr repository (not an actual delete, just a shorthand for updating with active&#x3D;false)
387
+ # @param id_or_name numeric project id or project name
388
+ # @param repo_id
389
+ # @param [Hash] opts the optional parameters
390
+ # @return [Array<(ProjectBzr, Fixnum, Hash)>] ProjectBzr data, response status code and response headers
391
+ def disable_project_bzr_with_http_info(id_or_name, repo_id, opts = {})
392
+ if @api_client.config.debugging
393
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.disable_project_bzr ..."
394
+ end
395
+ # verify the required parameter 'id_or_name' is set
396
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.disable_project_bzr" if id_or_name.nil?
397
+ # verify the required parameter 'repo_id' is set
398
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.disable_project_bzr" if repo_id.nil?
399
+ # resource path
400
+ local_var_path = "/project/{id_or_name}/bzr/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
401
+
402
+ # query parameters
403
+ query_params = {}
404
+
405
+ # header parameters
406
+ header_params = {}
407
+
408
+ # HTTP header 'Accept' (if needed)
409
+ local_header_accept = []
410
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
411
+
412
+ # HTTP header 'Content-Type'
413
+ local_header_content_type = ['application/x-www-form-urlencoded']
414
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
415
+
416
+ # form parameters
417
+ form_params = {}
418
+
419
+ # http body (model)
420
+ post_body = nil
421
+ auth_names = ['oauth2-code', 'oauth2-implicit']
422
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
423
+ :header_params => header_params,
424
+ :query_params => query_params,
425
+ :form_params => form_params,
426
+ :body => post_body,
427
+ :auth_names => auth_names,
428
+ :return_type => 'ProjectBzr')
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug "API called: ProjectSCMApi#disable_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
431
+ end
432
+ return data, status_code, headers
433
+ end
434
+
435
+ #
436
+ # Disable a git repository (not an actual delete, just a shorthand for updating with active=false)
437
+ # @param id_or_name numeric project id or project name
438
+ # @param repo_id
439
+ # @param [Hash] opts the optional parameters
440
+ # @return [ProjectGit]
441
+ def disable_project_git(id_or_name, repo_id, opts = {})
442
+ data, _status_code, _headers = disable_project_git_with_http_info(id_or_name, repo_id, opts)
443
+ return data
444
+ end
445
+
446
+ #
447
+ # Disable a git repository (not an actual delete, just a shorthand for updating with active&#x3D;false)
448
+ # @param id_or_name numeric project id or project name
449
+ # @param repo_id
450
+ # @param [Hash] opts the optional parameters
451
+ # @return [Array<(ProjectGit, Fixnum, Hash)>] ProjectGit data, response status code and response headers
452
+ def disable_project_git_with_http_info(id_or_name, repo_id, opts = {})
453
+ if @api_client.config.debugging
454
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.disable_project_git ..."
455
+ end
456
+ # verify the required parameter 'id_or_name' is set
457
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.disable_project_git" if id_or_name.nil?
458
+ # verify the required parameter 'repo_id' is set
459
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.disable_project_git" if repo_id.nil?
460
+ # resource path
461
+ local_var_path = "/project/{id_or_name}/git/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
462
+
463
+ # query parameters
464
+ query_params = {}
465
+
466
+ # header parameters
467
+ header_params = {}
468
+
469
+ # HTTP header 'Accept' (if needed)
470
+ local_header_accept = []
471
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
472
+
473
+ # HTTP header 'Content-Type'
474
+ local_header_content_type = ['application/x-www-form-urlencoded']
475
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
476
+
477
+ # form parameters
478
+ form_params = {}
479
+
480
+ # http body (model)
481
+ post_body = nil
482
+ auth_names = ['oauth2-code', 'oauth2-implicit']
483
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
484
+ :header_params => header_params,
485
+ :query_params => query_params,
486
+ :form_params => form_params,
487
+ :body => post_body,
488
+ :auth_names => auth_names,
489
+ :return_type => 'ProjectGit')
490
+ if @api_client.config.debugging
491
+ @api_client.config.logger.debug "API called: ProjectSCMApi#disable_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
492
+ end
493
+ return data, status_code, headers
494
+ end
495
+
496
+ #
497
+ # Disable a hg repository (not an actual delete, just a shorthand for updating with active=false)
498
+ # @param id_or_name numeric project id or project name
499
+ # @param repo_id
500
+ # @param [Hash] opts the optional parameters
501
+ # @return [ProjectHg]
502
+ def disable_project_hg(id_or_name, repo_id, opts = {})
503
+ data, _status_code, _headers = disable_project_hg_with_http_info(id_or_name, repo_id, opts)
504
+ return data
505
+ end
506
+
507
+ #
508
+ # Disable a hg repository (not an actual delete, just a shorthand for updating with active&#x3D;false)
509
+ # @param id_or_name numeric project id or project name
510
+ # @param repo_id
511
+ # @param [Hash] opts the optional parameters
512
+ # @return [Array<(ProjectHg, Fixnum, Hash)>] ProjectHg data, response status code and response headers
513
+ def disable_project_hg_with_http_info(id_or_name, repo_id, opts = {})
514
+ if @api_client.config.debugging
515
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.disable_project_hg ..."
516
+ end
517
+ # verify the required parameter 'id_or_name' is set
518
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.disable_project_hg" if id_or_name.nil?
519
+ # verify the required parameter 'repo_id' is set
520
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.disable_project_hg" if repo_id.nil?
521
+ # resource path
522
+ local_var_path = "/project/{id_or_name}/hg/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
523
+
524
+ # query parameters
525
+ query_params = {}
526
+
527
+ # header parameters
528
+ header_params = {}
529
+
530
+ # HTTP header 'Accept' (if needed)
531
+ local_header_accept = []
532
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
533
+
534
+ # HTTP header 'Content-Type'
535
+ local_header_content_type = ['application/x-www-form-urlencoded']
536
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
537
+
538
+ # form parameters
539
+ form_params = {}
540
+
541
+ # http body (model)
542
+ post_body = nil
543
+ auth_names = ['oauth2-code', 'oauth2-implicit']
544
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
545
+ :header_params => header_params,
546
+ :query_params => query_params,
547
+ :form_params => form_params,
548
+ :body => post_body,
549
+ :auth_names => auth_names,
550
+ :return_type => 'ProjectHg')
551
+ if @api_client.config.debugging
552
+ @api_client.config.logger.debug "API called: ProjectSCMApi#disable_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
553
+ end
554
+ return data, status_code, headers
555
+ end
556
+
557
+ #
558
+ # Get a bzr repository
559
+ # @param id_or_name numeric project id or project name
560
+ # @param repo_id
561
+ # @param [Hash] opts the optional parameters
562
+ # @return [ProjectBzr]
563
+ def get_project_bzr(id_or_name, repo_id, opts = {})
564
+ data, _status_code, _headers = get_project_bzr_with_http_info(id_or_name, repo_id, opts)
565
+ return data
566
+ end
567
+
568
+ #
569
+ # Get a bzr repository
570
+ # @param id_or_name numeric project id or project name
571
+ # @param repo_id
572
+ # @param [Hash] opts the optional parameters
573
+ # @return [Array<(ProjectBzr, Fixnum, Hash)>] ProjectBzr data, response status code and response headers
574
+ def get_project_bzr_with_http_info(id_or_name, repo_id, opts = {})
575
+ if @api_client.config.debugging
576
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_bzr ..."
577
+ end
578
+ # verify the required parameter 'id_or_name' is set
579
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_bzr" if id_or_name.nil?
580
+ # verify the required parameter 'repo_id' is set
581
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_bzr" if repo_id.nil?
582
+ # resource path
583
+ local_var_path = "/project/{id_or_name}/bzr/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
584
+
585
+ # query parameters
586
+ query_params = {}
587
+
588
+ # header parameters
589
+ header_params = {}
590
+
591
+ # HTTP header 'Accept' (if needed)
592
+ local_header_accept = []
593
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
594
+
595
+ # HTTP header 'Content-Type'
596
+ local_header_content_type = ['application/x-www-form-urlencoded']
597
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
598
+
599
+ # form parameters
600
+ form_params = {}
601
+
602
+ # http body (model)
603
+ post_body = nil
604
+ auth_names = ['oauth2-code', 'oauth2-implicit']
605
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
606
+ :header_params => header_params,
607
+ :query_params => query_params,
608
+ :form_params => form_params,
609
+ :body => post_body,
610
+ :auth_names => auth_names,
611
+ :return_type => 'ProjectBzr')
612
+ if @api_client.config.debugging
613
+ @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
614
+ end
615
+ return data, status_code, headers
616
+ end
617
+
618
+ #
619
+ # Get a git repository
620
+ # @param id_or_name numeric project id or project name
621
+ # @param repo_id
622
+ # @param [Hash] opts the optional parameters
623
+ # @return [ProjectGit]
624
+ def get_project_git(id_or_name, repo_id, opts = {})
625
+ data, _status_code, _headers = get_project_git_with_http_info(id_or_name, repo_id, opts)
626
+ return data
627
+ end
628
+
629
+ #
630
+ # Get a git repository
631
+ # @param id_or_name numeric project id or project name
632
+ # @param repo_id
633
+ # @param [Hash] opts the optional parameters
634
+ # @return [Array<(ProjectGit, Fixnum, Hash)>] ProjectGit data, response status code and response headers
635
+ def get_project_git_with_http_info(id_or_name, repo_id, opts = {})
636
+ if @api_client.config.debugging
637
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_git ..."
638
+ end
639
+ # verify the required parameter 'id_or_name' is set
640
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_git" if id_or_name.nil?
641
+ # verify the required parameter 'repo_id' is set
642
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_git" if repo_id.nil?
643
+ # resource path
644
+ local_var_path = "/project/{id_or_name}/git/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
645
+
646
+ # query parameters
647
+ query_params = {}
648
+
649
+ # header parameters
650
+ header_params = {}
651
+
652
+ # HTTP header 'Accept' (if needed)
653
+ local_header_accept = []
654
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
655
+
656
+ # HTTP header 'Content-Type'
657
+ local_header_content_type = ['application/x-www-form-urlencoded']
658
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
659
+
660
+ # form parameters
661
+ form_params = {}
662
+
663
+ # http body (model)
664
+ post_body = nil
665
+ auth_names = ['oauth2-code', 'oauth2-implicit']
666
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
667
+ :header_params => header_params,
668
+ :query_params => query_params,
669
+ :form_params => form_params,
670
+ :body => post_body,
671
+ :auth_names => auth_names,
672
+ :return_type => 'ProjectGit')
673
+ if @api_client.config.debugging
674
+ @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
675
+ end
676
+ return data, status_code, headers
677
+ end
678
+
679
+ #
680
+ # Get a repository hook
681
+ # @param id_or_name numeric project id or project name
682
+ # @param repo_id
683
+ # @param hook_id
684
+ # @param [Hash] opts the optional parameters
685
+ # @return [ScmHook]
686
+ def get_project_git_hook(id_or_name, repo_id, hook_id, opts = {})
687
+ data, _status_code, _headers = get_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts)
688
+ return data
689
+ end
690
+
691
+ #
692
+ # Get a repository hook
693
+ # @param id_or_name numeric project id or project name
694
+ # @param repo_id
695
+ # @param hook_id
696
+ # @param [Hash] opts the optional parameters
697
+ # @return [Array<(ScmHook, Fixnum, Hash)>] ScmHook data, response status code and response headers
698
+ def get_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {})
699
+ if @api_client.config.debugging
700
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_git_hook ..."
701
+ end
702
+ # verify the required parameter 'id_or_name' is set
703
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_git_hook" if id_or_name.nil?
704
+ # verify the required parameter 'repo_id' is set
705
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_git_hook" if repo_id.nil?
706
+ # verify the required parameter 'hook_id' is set
707
+ fail ArgumentError, "Missing the required parameter 'hook_id' when calling ProjectSCMApi.get_project_git_hook" if hook_id.nil?
708
+ # resource path
709
+ local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks/{hook_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s).sub('{' + 'hook_id' + '}', hook_id.to_s)
710
+
711
+ # query parameters
712
+ query_params = {}
713
+
714
+ # header parameters
715
+ header_params = {}
716
+
717
+ # HTTP header 'Accept' (if needed)
718
+ local_header_accept = []
719
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
720
+
721
+ # HTTP header 'Content-Type'
722
+ local_header_content_type = ['application/x-www-form-urlencoded']
723
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
724
+
725
+ # form parameters
726
+ form_params = {}
727
+
728
+ # http body (model)
729
+ post_body = nil
730
+ auth_names = ['oauth2-code', 'oauth2-implicit']
731
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
732
+ :header_params => header_params,
733
+ :query_params => query_params,
734
+ :form_params => form_params,
735
+ :body => post_body,
736
+ :auth_names => auth_names,
737
+ :return_type => 'ScmHook')
738
+ if @api_client.config.debugging
739
+ @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
740
+ end
741
+ return data, status_code, headers
742
+ end
743
+
744
+ #
745
+ # Get a hg repository
746
+ # @param id_or_name numeric project id or project name
747
+ # @param repo_id
748
+ # @param [Hash] opts the optional parameters
749
+ # @return [ProjectHg]
750
+ def get_project_hg(id_or_name, repo_id, opts = {})
751
+ data, _status_code, _headers = get_project_hg_with_http_info(id_or_name, repo_id, opts)
752
+ return data
753
+ end
754
+
755
+ #
756
+ # Get a hg repository
757
+ # @param id_or_name numeric project id or project name
758
+ # @param repo_id
759
+ # @param [Hash] opts the optional parameters
760
+ # @return [Array<(ProjectHg, Fixnum, Hash)>] ProjectHg data, response status code and response headers
761
+ def get_project_hg_with_http_info(id_or_name, repo_id, opts = {})
762
+ if @api_client.config.debugging
763
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_hg ..."
764
+ end
765
+ # verify the required parameter 'id_or_name' is set
766
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_hg" if id_or_name.nil?
767
+ # verify the required parameter 'repo_id' is set
768
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_hg" if repo_id.nil?
769
+ # resource path
770
+ local_var_path = "/project/{id_or_name}/hg/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
771
+
772
+ # query parameters
773
+ query_params = {}
774
+
775
+ # header parameters
776
+ header_params = {}
777
+
778
+ # HTTP header 'Accept' (if needed)
779
+ local_header_accept = []
780
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
781
+
782
+ # HTTP header 'Content-Type'
783
+ local_header_content_type = ['application/x-www-form-urlencoded']
784
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
785
+
786
+ # form parameters
787
+ form_params = {}
788
+
789
+ # http body (model)
790
+ post_body = nil
791
+ auth_names = ['oauth2-code', 'oauth2-implicit']
792
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
793
+ :header_params => header_params,
794
+ :query_params => query_params,
795
+ :form_params => form_params,
796
+ :body => post_body,
797
+ :auth_names => auth_names,
798
+ :return_type => 'ProjectHg')
799
+ if @api_client.config.debugging
800
+ @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
801
+ end
802
+ return data, status_code, headers
803
+ end
804
+
805
+ #
806
+ # Get Subversion repository of the project
807
+ # @param id_or_name numeric project id or project name
808
+ # @param [Hash] opts the optional parameters
809
+ # @return [ProjectSvn]
810
+ def get_project_svn(id_or_name, opts = {})
811
+ data, _status_code, _headers = get_project_svn_with_http_info(id_or_name, opts)
812
+ return data
813
+ end
814
+
815
+ #
816
+ # Get Subversion repository of the project
817
+ # @param id_or_name numeric project id or project name
818
+ # @param [Hash] opts the optional parameters
819
+ # @return [Array<(ProjectSvn, Fixnum, Hash)>] ProjectSvn data, response status code and response headers
820
+ def get_project_svn_with_http_info(id_or_name, opts = {})
821
+ if @api_client.config.debugging
822
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_svn ..."
823
+ end
824
+ # verify the required parameter 'id_or_name' is set
825
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_svn" if id_or_name.nil?
826
+ # resource path
827
+ local_var_path = "/project/{id_or_name}/svn".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
828
+
829
+ # query parameters
830
+ query_params = {}
831
+
832
+ # header parameters
833
+ header_params = {}
834
+
835
+ # HTTP header 'Accept' (if needed)
836
+ local_header_accept = []
837
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
838
+
839
+ # HTTP header 'Content-Type'
840
+ local_header_content_type = ['application/x-www-form-urlencoded']
841
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
842
+
843
+ # form parameters
844
+ form_params = {}
845
+
846
+ # http body (model)
847
+ post_body = nil
848
+ auth_names = ['oauth2-code', 'oauth2-implicit']
849
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
850
+ :header_params => header_params,
851
+ :query_params => query_params,
852
+ :form_params => form_params,
853
+ :body => post_body,
854
+ :auth_names => auth_names,
855
+ :return_type => 'ProjectSvn')
856
+ if @api_client.config.debugging
857
+ @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_svn\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
858
+ end
859
+ return data, status_code, headers
860
+ end
861
+
862
+ #
863
+ # Get Bazzar repository list
864
+ # @param id_or_name numeric project id or project name
865
+ # @param [Hash] opts the optional parameters
866
+ # @return [Array<ProjectBzr>]
867
+ def list_project_bzr(id_or_name, opts = {})
868
+ data, _status_code, _headers = list_project_bzr_with_http_info(id_or_name, opts)
869
+ return data
870
+ end
871
+
872
+ #
873
+ # Get Bazzar repository list
874
+ # @param id_or_name numeric project id or project name
875
+ # @param [Hash] opts the optional parameters
876
+ # @return [Array<(Array<ProjectBzr>, Fixnum, Hash)>] Array<ProjectBzr> data, response status code and response headers
877
+ def list_project_bzr_with_http_info(id_or_name, opts = {})
878
+ if @api_client.config.debugging
879
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_bzr ..."
880
+ end
881
+ # verify the required parameter 'id_or_name' is set
882
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_bzr" if id_or_name.nil?
883
+ # resource path
884
+ local_var_path = "/project/{id_or_name}/bzr".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
885
+
886
+ # query parameters
887
+ query_params = {}
888
+
889
+ # header parameters
890
+ header_params = {}
891
+
892
+ # HTTP header 'Accept' (if needed)
893
+ local_header_accept = []
894
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
895
+
896
+ # HTTP header 'Content-Type'
897
+ local_header_content_type = ['application/x-www-form-urlencoded']
898
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
899
+
900
+ # form parameters
901
+ form_params = {}
902
+
903
+ # http body (model)
904
+ post_body = nil
905
+ auth_names = ['oauth2-code', 'oauth2-implicit']
906
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
907
+ :header_params => header_params,
908
+ :query_params => query_params,
909
+ :form_params => form_params,
910
+ :body => post_body,
911
+ :auth_names => auth_names,
912
+ :return_type => 'Array<ProjectBzr>')
913
+ if @api_client.config.debugging
914
+ @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
915
+ end
916
+ return data, status_code, headers
917
+ end
918
+
919
+ #
920
+ # Get git repository list
921
+ # @param id_or_name numeric project id or project name
922
+ # @param [Hash] opts the optional parameters
923
+ # @return [Array<ProjectGit>]
924
+ def list_project_git(id_or_name, opts = {})
925
+ data, _status_code, _headers = list_project_git_with_http_info(id_or_name, opts)
926
+ return data
927
+ end
928
+
929
+ #
930
+ # Get git repository list
931
+ # @param id_or_name numeric project id or project name
932
+ # @param [Hash] opts the optional parameters
933
+ # @return [Array<(Array<ProjectGit>, Fixnum, Hash)>] Array<ProjectGit> data, response status code and response headers
934
+ def list_project_git_with_http_info(id_or_name, opts = {})
935
+ if @api_client.config.debugging
936
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_git ..."
937
+ end
938
+ # verify the required parameter 'id_or_name' is set
939
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_git" if id_or_name.nil?
940
+ # resource path
941
+ local_var_path = "/project/{id_or_name}/git".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
942
+
943
+ # query parameters
944
+ query_params = {}
945
+
946
+ # header parameters
947
+ header_params = {}
948
+
949
+ # HTTP header 'Accept' (if needed)
950
+ local_header_accept = []
951
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
952
+
953
+ # HTTP header 'Content-Type'
954
+ local_header_content_type = ['application/x-www-form-urlencoded']
955
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
956
+
957
+ # form parameters
958
+ form_params = {}
959
+
960
+ # http body (model)
961
+ post_body = nil
962
+ auth_names = ['oauth2-code', 'oauth2-implicit']
963
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
964
+ :header_params => header_params,
965
+ :query_params => query_params,
966
+ :form_params => form_params,
967
+ :body => post_body,
968
+ :auth_names => auth_names,
969
+ :return_type => 'Array<ProjectGit>')
970
+ if @api_client.config.debugging
971
+ @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
972
+ end
973
+ return data, status_code, headers
974
+ end
975
+
976
+ #
977
+ # Get Git repository hook list
978
+ # @param id_or_name numeric project id or project name
979
+ # @param repo_id
980
+ # @param [Hash] opts the optional parameters
981
+ # @return [Array<ScmHook>]
982
+ def list_project_git_hook(id_or_name, repo_id, opts = {})
983
+ data, _status_code, _headers = list_project_git_hook_with_http_info(id_or_name, repo_id, opts)
984
+ return data
985
+ end
986
+
987
+ #
988
+ # Get Git repository hook list
989
+ # @param id_or_name numeric project id or project name
990
+ # @param repo_id
991
+ # @param [Hash] opts the optional parameters
992
+ # @return [Array<(Array<ScmHook>, Fixnum, Hash)>] Array<ScmHook> data, response status code and response headers
993
+ def list_project_git_hook_with_http_info(id_or_name, repo_id, opts = {})
994
+ if @api_client.config.debugging
995
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_git_hook ..."
996
+ end
997
+ # verify the required parameter 'id_or_name' is set
998
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_git_hook" if id_or_name.nil?
999
+ # verify the required parameter 'repo_id' is set
1000
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.list_project_git_hook" if repo_id.nil?
1001
+ # resource path
1002
+ local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
1003
+
1004
+ # query parameters
1005
+ query_params = {}
1006
+
1007
+ # header parameters
1008
+ header_params = {}
1009
+
1010
+ # HTTP header 'Accept' (if needed)
1011
+ local_header_accept = []
1012
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1013
+
1014
+ # HTTP header 'Content-Type'
1015
+ local_header_content_type = ['application/x-www-form-urlencoded']
1016
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1017
+
1018
+ # form parameters
1019
+ form_params = {}
1020
+
1021
+ # http body (model)
1022
+ post_body = nil
1023
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1024
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1025
+ :header_params => header_params,
1026
+ :query_params => query_params,
1027
+ :form_params => form_params,
1028
+ :body => post_body,
1029
+ :auth_names => auth_names,
1030
+ :return_type => 'Array<ScmHook>')
1031
+ if @api_client.config.debugging
1032
+ @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1033
+ end
1034
+ return data, status_code, headers
1035
+ end
1036
+
1037
+ #
1038
+ # Get Mercurial repository list
1039
+ # @param id_or_name numeric project id or project name
1040
+ # @param [Hash] opts the optional parameters
1041
+ # @return [Array<ProjectHg>]
1042
+ def list_project_hg(id_or_name, opts = {})
1043
+ data, _status_code, _headers = list_project_hg_with_http_info(id_or_name, opts)
1044
+ return data
1045
+ end
1046
+
1047
+ #
1048
+ # Get Mercurial repository list
1049
+ # @param id_or_name numeric project id or project name
1050
+ # @param [Hash] opts the optional parameters
1051
+ # @return [Array<(Array<ProjectHg>, Fixnum, Hash)>] Array<ProjectHg> data, response status code and response headers
1052
+ def list_project_hg_with_http_info(id_or_name, opts = {})
1053
+ if @api_client.config.debugging
1054
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_hg ..."
1055
+ end
1056
+ # verify the required parameter 'id_or_name' is set
1057
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_hg" if id_or_name.nil?
1058
+ # resource path
1059
+ local_var_path = "/project/{id_or_name}/hg".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s)
1060
+
1061
+ # query parameters
1062
+ query_params = {}
1063
+
1064
+ # header parameters
1065
+ header_params = {}
1066
+
1067
+ # HTTP header 'Accept' (if needed)
1068
+ local_header_accept = []
1069
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1070
+
1071
+ # HTTP header 'Content-Type'
1072
+ local_header_content_type = ['application/x-www-form-urlencoded']
1073
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1074
+
1075
+ # form parameters
1076
+ form_params = {}
1077
+
1078
+ # http body (model)
1079
+ post_body = nil
1080
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1081
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1082
+ :header_params => header_params,
1083
+ :query_params => query_params,
1084
+ :form_params => form_params,
1085
+ :body => post_body,
1086
+ :auth_names => auth_names,
1087
+ :return_type => 'Array<ProjectHg>')
1088
+ if @api_client.config.debugging
1089
+ @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1090
+ end
1091
+ return data, status_code, headers
1092
+ end
1093
+
1094
+ #
1095
+ # Update a bzr repository
1096
+ # @param id_or_name numeric project id or project name
1097
+ # @param repo_id
1098
+ # @param [Hash] opts the optional parameters
1099
+ # @option opts [String] :description
1100
+ # @option opts [BOOLEAN] :active
1101
+ # @return [ProjectBzr]
1102
+ def update_project_bzr(id_or_name, repo_id, opts = {})
1103
+ data, _status_code, _headers = update_project_bzr_with_http_info(id_or_name, repo_id, opts)
1104
+ return data
1105
+ end
1106
+
1107
+ #
1108
+ # Update a bzr repository
1109
+ # @param id_or_name numeric project id or project name
1110
+ # @param repo_id
1111
+ # @param [Hash] opts the optional parameters
1112
+ # @option opts [String] :description
1113
+ # @option opts [BOOLEAN] :active
1114
+ # @return [Array<(ProjectBzr, Fixnum, Hash)>] ProjectBzr data, response status code and response headers
1115
+ def update_project_bzr_with_http_info(id_or_name, repo_id, opts = {})
1116
+ if @api_client.config.debugging
1117
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.update_project_bzr ..."
1118
+ end
1119
+ # verify the required parameter 'id_or_name' is set
1120
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.update_project_bzr" if id_or_name.nil?
1121
+ # verify the required parameter 'repo_id' is set
1122
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.update_project_bzr" if repo_id.nil?
1123
+ # resource path
1124
+ local_var_path = "/project/{id_or_name}/bzr/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
1125
+
1126
+ # query parameters
1127
+ query_params = {}
1128
+
1129
+ # header parameters
1130
+ header_params = {}
1131
+
1132
+ # HTTP header 'Accept' (if needed)
1133
+ local_header_accept = []
1134
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1135
+
1136
+ # HTTP header 'Content-Type'
1137
+ local_header_content_type = ['application/x-www-form-urlencoded']
1138
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1139
+
1140
+ # form parameters
1141
+ form_params = {}
1142
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
1143
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
1144
+
1145
+ # http body (model)
1146
+ post_body = nil
1147
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1148
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1149
+ :header_params => header_params,
1150
+ :query_params => query_params,
1151
+ :form_params => form_params,
1152
+ :body => post_body,
1153
+ :auth_names => auth_names,
1154
+ :return_type => 'ProjectBzr')
1155
+ if @api_client.config.debugging
1156
+ @api_client.config.logger.debug "API called: ProjectSCMApi#update_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1157
+ end
1158
+ return data, status_code, headers
1159
+ end
1160
+
1161
+ #
1162
+ # Update a git repository
1163
+ # @param id_or_name numeric project id or project name
1164
+ # @param repo_id
1165
+ # @param [Hash] opts the optional parameters
1166
+ # @option opts [String] :description
1167
+ # @option opts [BOOLEAN] :mail_enabled
1168
+ # @option opts [String] :mail_recipients
1169
+ # @option opts [BOOLEAN] :allow_non_fast_forward
1170
+ # @option opts [String] :default_branch
1171
+ # @option opts [BOOLEAN] :active
1172
+ # @return [ProjectGit]
1173
+ def update_project_git(id_or_name, repo_id, opts = {})
1174
+ data, _status_code, _headers = update_project_git_with_http_info(id_or_name, repo_id, opts)
1175
+ return data
1176
+ end
1177
+
1178
+ #
1179
+ # Update a git repository
1180
+ # @param id_or_name numeric project id or project name
1181
+ # @param repo_id
1182
+ # @param [Hash] opts the optional parameters
1183
+ # @option opts [String] :description
1184
+ # @option opts [BOOLEAN] :mail_enabled
1185
+ # @option opts [String] :mail_recipients
1186
+ # @option opts [BOOLEAN] :allow_non_fast_forward
1187
+ # @option opts [String] :default_branch
1188
+ # @option opts [BOOLEAN] :active
1189
+ # @return [Array<(ProjectGit, Fixnum, Hash)>] ProjectGit data, response status code and response headers
1190
+ def update_project_git_with_http_info(id_or_name, repo_id, opts = {})
1191
+ if @api_client.config.debugging
1192
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.update_project_git ..."
1193
+ end
1194
+ # verify the required parameter 'id_or_name' is set
1195
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.update_project_git" if id_or_name.nil?
1196
+ # verify the required parameter 'repo_id' is set
1197
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.update_project_git" if repo_id.nil?
1198
+ # resource path
1199
+ local_var_path = "/project/{id_or_name}/git/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
1200
+
1201
+ # query parameters
1202
+ query_params = {}
1203
+
1204
+ # header parameters
1205
+ header_params = {}
1206
+
1207
+ # HTTP header 'Accept' (if needed)
1208
+ local_header_accept = []
1209
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1210
+
1211
+ # HTTP header 'Content-Type'
1212
+ local_header_content_type = ['application/x-www-form-urlencoded']
1213
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1214
+
1215
+ # form parameters
1216
+ form_params = {}
1217
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
1218
+ form_params["mail_enabled"] = opts[:'mail_enabled'] if !opts[:'mail_enabled'].nil?
1219
+ form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil?
1220
+ form_params["allow_non_fast_forward"] = opts[:'allow_non_fast_forward'] if !opts[:'allow_non_fast_forward'].nil?
1221
+ form_params["default_branch"] = opts[:'default_branch'] if !opts[:'default_branch'].nil?
1222
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
1223
+
1224
+ # http body (model)
1225
+ post_body = nil
1226
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1227
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1228
+ :header_params => header_params,
1229
+ :query_params => query_params,
1230
+ :form_params => form_params,
1231
+ :body => post_body,
1232
+ :auth_names => auth_names,
1233
+ :return_type => 'ProjectGit')
1234
+ if @api_client.config.debugging
1235
+ @api_client.config.logger.debug "API called: ProjectSCMApi#update_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1236
+ end
1237
+ return data, status_code, headers
1238
+ end
1239
+
1240
+ #
1241
+ # Update a hg repository
1242
+ # @param id_or_name numeric project id or project name
1243
+ # @param repo_id
1244
+ # @param [Hash] opts the optional parameters
1245
+ # @option opts [String] :description
1246
+ # @option opts [String] :mail_recipients
1247
+ # @option opts [BOOLEAN] :active
1248
+ # @return [ProjectHg]
1249
+ def update_project_hg(id_or_name, repo_id, opts = {})
1250
+ data, _status_code, _headers = update_project_hg_with_http_info(id_or_name, repo_id, opts)
1251
+ return data
1252
+ end
1253
+
1254
+ #
1255
+ # Update a hg repository
1256
+ # @param id_or_name numeric project id or project name
1257
+ # @param repo_id
1258
+ # @param [Hash] opts the optional parameters
1259
+ # @option opts [String] :description
1260
+ # @option opts [String] :mail_recipients
1261
+ # @option opts [BOOLEAN] :active
1262
+ # @return [Array<(ProjectHg, Fixnum, Hash)>] ProjectHg data, response status code and response headers
1263
+ def update_project_hg_with_http_info(id_or_name, repo_id, opts = {})
1264
+ if @api_client.config.debugging
1265
+ @api_client.config.logger.debug "Calling API: ProjectSCMApi.update_project_hg ..."
1266
+ end
1267
+ # verify the required parameter 'id_or_name' is set
1268
+ fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.update_project_hg" if id_or_name.nil?
1269
+ # verify the required parameter 'repo_id' is set
1270
+ fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.update_project_hg" if repo_id.nil?
1271
+ # resource path
1272
+ local_var_path = "/project/{id_or_name}/hg/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s)
1273
+
1274
+ # query parameters
1275
+ query_params = {}
1276
+
1277
+ # header parameters
1278
+ header_params = {}
1279
+
1280
+ # HTTP header 'Accept' (if needed)
1281
+ local_header_accept = []
1282
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1283
+
1284
+ # HTTP header 'Content-Type'
1285
+ local_header_content_type = ['application/x-www-form-urlencoded']
1286
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1287
+
1288
+ # form parameters
1289
+ form_params = {}
1290
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
1291
+ form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil?
1292
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
1293
+
1294
+ # http body (model)
1295
+ post_body = nil
1296
+ auth_names = ['oauth2-code', 'oauth2-implicit']
1297
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1298
+ :header_params => header_params,
1299
+ :query_params => query_params,
1300
+ :form_params => form_params,
1301
+ :body => post_body,
1302
+ :auth_names => auth_names,
1303
+ :return_type => 'ProjectHg')
1304
+ if @api_client.config.debugging
1305
+ @api_client.config.logger.debug "API called: ProjectSCMApi#update_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1306
+ end
1307
+ return data, status_code, headers
1308
+ end
1309
+ end
1310
+ end