osdn-client 0.0.20161003 → 0.0.20171120

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