osdn-client 0.0.20160304 → 0.0.20160711

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +201 -0
  3. data/README.md +182 -0
  4. data/docs/DefaultApi.md +115 -0
  5. data/docs/Group.md +23 -0
  6. data/docs/GroupToolFlags.md +17 -0
  7. data/docs/News.md +14 -0
  8. data/docs/Package.md +13 -0
  9. data/docs/Pong.md +11 -0
  10. data/docs/ProjectApi.md +1511 -0
  11. data/docs/ProjectFrsApi.md +888 -0
  12. data/docs/ProjectNewsApi.md +576 -0
  13. data/docs/RelFile.md +19 -0
  14. data/docs/Release.md +16 -0
  15. data/docs/SimpleChamber.md +11 -0
  16. data/docs/SimpleGroup.md +11 -0
  17. data/docs/SimpleUser.md +10 -0
  18. data/docs/Skill.md +11 -0
  19. data/docs/Token.md +12 -0
  20. data/docs/User.md +20 -0
  21. data/docs/UserApi.md +63 -0
  22. data/lib/osdn-client.rb +32 -9
  23. data/lib/osdn-client/api/default_api.rb +50 -39
  24. data/lib/osdn-client/api/project_api.rb +661 -773
  25. data/lib/osdn-client/api/project_frs_api.rb +350 -412
  26. data/lib/osdn-client/api/project_news_api.rb +217 -244
  27. data/lib/osdn-client/api/user_api.rb +35 -20
  28. data/lib/osdn-client/api_client.rb +74 -13
  29. data/lib/osdn-client/api_error.rb +23 -0
  30. data/lib/osdn-client/configuration.rb +45 -1
  31. data/lib/osdn-client/models/group.rb +103 -65
  32. data/lib/osdn-client/models/group_tool_flags.rb +91 -47
  33. data/lib/osdn-client/models/news.rb +85 -38
  34. data/lib/osdn-client/models/package.rb +83 -35
  35. data/lib/osdn-client/models/pong.rb +79 -29
  36. data/lib/osdn-client/models/rel_file.rb +95 -53
  37. data/lib/osdn-client/models/release.rb +89 -44
  38. data/lib/osdn-client/models/simple_chamber.rb +79 -29
  39. data/lib/osdn-client/models/simple_group.rb +79 -29
  40. data/lib/osdn-client/models/simple_user.rb +77 -26
  41. data/lib/osdn-client/models/skill.rb +79 -29
  42. data/lib/osdn-client/models/token.rb +81 -32
  43. data/lib/osdn-client/models/user.rb +97 -56
  44. data/lib/osdn-client/version.rb +24 -1
  45. data/osdn-client.gemspec +30 -7
  46. data/spec/api/default_api_spec.rb +73 -0
  47. data/spec/api/{ProjectApi_spec.rb → project_api_spec.rb} +187 -264
  48. data/spec/api/{ProjectFrsApi_spec.rb → project_frs_api_spec.rb} +103 -136
  49. data/spec/api/{ProjectNewsApi_spec.rb → project_news_api_spec.rb} +71 -88
  50. data/spec/api/user_api_spec.rb +58 -0
  51. data/spec/api_client_spec.rb +315 -0
  52. data/spec/configuration_spec.rb +48 -0
  53. data/spec/models/group_spec.rb +143 -0
  54. data/spec/models/group_tool_flags_spec.rb +107 -0
  55. data/spec/models/news_spec.rb +89 -0
  56. data/spec/models/package_spec.rb +83 -0
  57. data/spec/models/pong_spec.rb +71 -0
  58. data/spec/models/rel_file_spec.rb +119 -0
  59. data/spec/models/release_spec.rb +101 -0
  60. data/spec/models/simple_chamber_spec.rb +71 -0
  61. data/spec/models/simple_group_spec.rb +71 -0
  62. data/spec/models/simple_user_spec.rb +65 -0
  63. data/spec/models/skill_spec.rb +71 -0
  64. data/spec/models/token_spec.rb +77 -0
  65. data/spec/models/user_spec.rb +125 -0
  66. data/spec/spec_helper.rb +122 -0
  67. metadata +87 -59
  68. data/spec/api/DefaultApi_spec.rb +0 -58
  69. data/spec/api/UserApi_spec.rb +0 -39
  70. data/spec/models/GroupToolFlags_spec.rb +0 -124
  71. data/spec/models/Group_spec.rb +0 -184
  72. data/spec/models/News_spec.rb +0 -94
  73. data/spec/models/Package_spec.rb +0 -84
  74. data/spec/models/Pong_spec.rb +0 -64
  75. data/spec/models/RelFile_spec.rb +0 -144
  76. data/spec/models/Release_spec.rb +0 -114
  77. data/spec/models/SimpleChamber_spec.rb +0 -64
  78. data/spec/models/SimpleGroup_spec.rb +0 -64
  79. data/spec/models/SimpleUser_spec.rb +0 -54
  80. data/spec/models/Skill_spec.rb +0 -64
  81. data/spec/models/Token_spec.rb +0 -74
  82. data/spec/models/User_spec.rb +0 -154
@@ -0,0 +1,23 @@
1
+ # OSDNClient::Group
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **display_name** | **String** | | [optional]
9
+ **last_update** | **DateTime** | | [optional]
10
+ **description** | **String** | | [optional]
11
+ **description_html** | **String** | | [optional]
12
+ **start_date** | **DateTime** | | [optional]
13
+ **license** | **String** | | [optional]
14
+ **license_other** | **String** | | [optional]
15
+ **url** | **String** | | [optional]
16
+ **homepage** | **String** | | [optional]
17
+ **logo_image** | **String** | | [optional]
18
+ **banner_image** | **String** | | [optional]
19
+ **thumbnail_image** | **String** | | [optional]
20
+ **tools** | [**GroupToolFlags**](GroupToolFlags.md) | | [optional]
21
+ **members** | [**Array<SimpleUser>**](SimpleUser.md) | | [optional]
22
+
23
+
@@ -0,0 +1,17 @@
1
+ # OSDNClient::GroupToolFlags
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cvs** | **BOOLEAN** | | [optional]
7
+ **git** | **BOOLEAN** | | [optional]
8
+ **svn** | **BOOLEAN** | | [optional]
9
+ **bzr** | **BOOLEAN** | | [optional]
10
+ **scm** | **BOOLEAN** | | [optional]
11
+ **frs** | **BOOLEAN** | | [optional]
12
+ **tikcet** | **BOOLEAN** | | [optional]
13
+ **wiki** | **BOOLEAN** | | [optional]
14
+ **forum** | **BOOLEAN** | | [optional]
15
+ **ml** | **BOOLEAN** | | [optional]
16
+
17
+
@@ -0,0 +1,14 @@
1
+ # OSDNClient::News
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **url** | **String** | | [optional]
8
+ **title** | **String** | | [optional]
9
+ **body** | **String** | | [optional]
10
+ **body_html** | **String** | | [optional]
11
+ **last_update** | **DateTime** | | [optional]
12
+ **submitter** | [**SimpleUser**](SimpleUser.md) | | [optional]
13
+
14
+
@@ -0,0 +1,13 @@
1
+ # OSDNClient::Package
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **url** | **String** | | [optional]
9
+ **visibility** | **String** | | [optional]
10
+ **group_id** | **Integer** | | [optional]
11
+ **releases** | [**Array<Release>**](Release.md) | | [optional]
12
+
13
+
@@ -0,0 +1,11 @@
1
+ # OSDNClient::Pong
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **time** | **DateTime** | | [optional]
7
+ **loggedin** | **BOOLEAN** | | [optional]
8
+ **login_id** | **Integer** | | [optional]
9
+ **login_name** | **String** | | [optional]
10
+
11
+
@@ -0,0 +1,1511 @@
1
+ # OSDNClient::ProjectApi
2
+
3
+ All URIs are relative to *https://osdn.jp/api/v0*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_news**](ProjectApi.md#create_news) | **POST** /news |
8
+ [**create_news_0**](ProjectApi.md#create_news_0) | **POST** /project/{id_or_name}/news |
9
+ [**create_package**](ProjectApi.md#create_package) | **POST** /project/{id_or_name}/frs |
10
+ [**create_release**](ProjectApi.md#create_release) | **POST** /project/{id_or_name}/frs/{package_id} |
11
+ [**create_release_file**](ProjectApi.md#create_release_file) | **POST** /project/{id_or_name}/frs/{package_id}/{release_id} |
12
+ [**delete_news**](ProjectApi.md#delete_news) | **DELETE** /news/{news_id} |
13
+ [**delete_news_0**](ProjectApi.md#delete_news_0) | **DELETE** /project/{id_or_name}/news/{news_id} |
14
+ [**delete_package**](ProjectApi.md#delete_package) | **DELETE** /project/{id_or_name}/frs/{package_id} |
15
+ [**delete_release**](ProjectApi.md#delete_release) | **DELETE** /project/{id_or_name}/frs/{package_id}/{release_id} |
16
+ [**delete_release_file**](ProjectApi.md#delete_release_file) | **DELETE** /project/{id_or_name}/frs/{package_id}/{release_id}/{file_id} |
17
+ [**draft_release**](ProjectApi.md#draft_release) | **GET** /project/{id_or_name}/frs/{package_id}/draft |
18
+ [**get_news**](ProjectApi.md#get_news) | **GET** /news/{news_id} |
19
+ [**get_news_0**](ProjectApi.md#get_news_0) | **GET** /project/{id_or_name}/news/{news_id} |
20
+ [**get_package**](ProjectApi.md#get_package) | **GET** /project/{id_or_name}/frs/{package_id} |
21
+ [**get_project**](ProjectApi.md#get_project) | **GET** /project/{id_or_name} |
22
+ [**get_release**](ProjectApi.md#get_release) | **GET** /project/{id_or_name}/frs/{package_id}/{release_id} |
23
+ [**get_release_file**](ProjectApi.md#get_release_file) | **GET** /project/{id_or_name}/frs/{package_id}/{release_id}/{file_id} |
24
+ [**list_news**](ProjectApi.md#list_news) | **GET** /news |
25
+ [**list_news_0**](ProjectApi.md#list_news_0) | **GET** /project/{id_or_name}/news |
26
+ [**list_packages**](ProjectApi.md#list_packages) | **GET** /project/{id_or_name}/frs |
27
+ [**update_news**](ProjectApi.md#update_news) | **PATCH** /news/{news_id} |
28
+ [**update_news_0**](ProjectApi.md#update_news_0) | **PATCH** /project/{id_or_name}/news/{news_id} |
29
+ [**update_package**](ProjectApi.md#update_package) | **PATCH** /project/{id_or_name}/frs/{package_id} |
30
+ [**update_release**](ProjectApi.md#update_release) | **PATCH** /project/{id_or_name}/frs/{package_id}/{release_id} |
31
+ [**update_release_file**](ProjectApi.md#update_release_file) | **PATCH** /project/{id_or_name}/frs/{package_id}/{release_id}/{file_id} |
32
+
33
+
34
+ # **create_news**
35
+ > String create_news(title, body, group_id)
36
+
37
+
38
+
39
+ ### Example
40
+ ```ruby
41
+ # load the gem
42
+ require 'osdn-client'
43
+ # setup authorization
44
+ OSDNClient.configure do |config|
45
+ # Configure OAuth2 access token for authorization: oauth2-code
46
+ config.access_token = 'YOUR ACCESS TOKEN'
47
+
48
+ # Configure OAuth2 access token for authorization: oauth2-implicit
49
+ config.access_token = 'YOUR ACCESS TOKEN'
50
+ end
51
+
52
+ api_instance = OSDNClient::ProjectApi.new
53
+
54
+ title = "title_example" # String | news title
55
+
56
+ body = "body_example" # String | news body in OSDN Wiki format.
57
+
58
+ group_id = 56 # Integer | group_id the news created in
59
+
60
+
61
+ begin
62
+ result = api_instance.create_news(title, body, group_id)
63
+ p result
64
+ rescue OSDNClient::ApiError => e
65
+ puts "Exception when calling ProjectApi->create_news: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ Name | Type | Description | Notes
72
+ ------------- | ------------- | ------------- | -------------
73
+ **title** | **String**| news title |
74
+ **body** | **String**| news body in OSDN Wiki format. |
75
+ **group_id** | **Integer**| group_id the news created in |
76
+
77
+ ### Return type
78
+
79
+ **String**
80
+
81
+ ### Authorization
82
+
83
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: application/x-www-form-urlencoded
88
+ - **Accept**: Not defined
89
+
90
+
91
+
92
+ # **create_news_0**
93
+ > String create_news_0(id_or_name, title, body)
94
+
95
+
96
+
97
+ ### Example
98
+ ```ruby
99
+ # load the gem
100
+ require 'osdn-client'
101
+ # setup authorization
102
+ OSDNClient.configure do |config|
103
+ # Configure OAuth2 access token for authorization: oauth2-code
104
+ config.access_token = 'YOUR ACCESS TOKEN'
105
+
106
+ # Configure OAuth2 access token for authorization: oauth2-implicit
107
+ config.access_token = 'YOUR ACCESS TOKEN'
108
+ end
109
+
110
+ api_instance = OSDNClient::ProjectApi.new
111
+
112
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
113
+
114
+ title = "title_example" # String | news title
115
+
116
+ body = "body_example" # String | news body in OSDN Wiki format.
117
+
118
+
119
+ begin
120
+ result = api_instance.create_news_0(id_or_name, title, body)
121
+ p result
122
+ rescue OSDNClient::ApiError => e
123
+ puts "Exception when calling ProjectApi->create_news_0: #{e}"
124
+ end
125
+ ```
126
+
127
+ ### Parameters
128
+
129
+ Name | Type | Description | Notes
130
+ ------------- | ------------- | ------------- | -------------
131
+ **id_or_name** | **String**| numeric project id or project name |
132
+ **title** | **String**| news title |
133
+ **body** | **String**| news body in OSDN Wiki format. |
134
+
135
+ ### Return type
136
+
137
+ **String**
138
+
139
+ ### Authorization
140
+
141
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: application/x-www-form-urlencoded
146
+ - **Accept**: Not defined
147
+
148
+
149
+
150
+ # **create_package**
151
+ > Package create_package(id_or_name, name, opts)
152
+
153
+
154
+
155
+ Create a package.
156
+
157
+ ### Example
158
+ ```ruby
159
+ # load the gem
160
+ require 'osdn-client'
161
+ # setup authorization
162
+ OSDNClient.configure do |config|
163
+ # Configure OAuth2 access token for authorization: oauth2-code
164
+ config.access_token = 'YOUR ACCESS TOKEN'
165
+
166
+ # Configure OAuth2 access token for authorization: oauth2-implicit
167
+ config.access_token = 'YOUR ACCESS TOKEN'
168
+ end
169
+
170
+ api_instance = OSDNClient::ProjectApi.new
171
+
172
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
173
+
174
+ name = "name_example" # String | package name
175
+
176
+ opts = {
177
+ visibility: "visibility_example" # String | visibility status (public, hidden or private)
178
+ }
179
+
180
+ begin
181
+ result = api_instance.create_package(id_or_name, name, opts)
182
+ p result
183
+ rescue OSDNClient::ApiError => e
184
+ puts "Exception when calling ProjectApi->create_package: #{e}"
185
+ end
186
+ ```
187
+
188
+ ### Parameters
189
+
190
+ Name | Type | Description | Notes
191
+ ------------- | ------------- | ------------- | -------------
192
+ **id_or_name** | **String**| numeric project id or project name |
193
+ **name** | **String**| package name |
194
+ **visibility** | **String**| visibility status (public, hidden or private) | [optional]
195
+
196
+ ### Return type
197
+
198
+ [**Package**](Package.md)
199
+
200
+ ### Authorization
201
+
202
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
203
+
204
+ ### HTTP request headers
205
+
206
+ - **Content-Type**: application/x-www-form-urlencoded
207
+ - **Accept**: Not defined
208
+
209
+
210
+
211
+ # **create_release**
212
+ > Release create_release(id_or_name, package_id, name, opts)
213
+
214
+
215
+
216
+ Create new release in specified package.
217
+
218
+ ### Example
219
+ ```ruby
220
+ # load the gem
221
+ require 'osdn-client'
222
+ # setup authorization
223
+ OSDNClient.configure do |config|
224
+ # Configure OAuth2 access token for authorization: oauth2-code
225
+ config.access_token = 'YOUR ACCESS TOKEN'
226
+
227
+ # Configure OAuth2 access token for authorization: oauth2-implicit
228
+ config.access_token = 'YOUR ACCESS TOKEN'
229
+ end
230
+
231
+ api_instance = OSDNClient::ProjectApi.new
232
+
233
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
234
+
235
+ package_id = 56 # Integer |
236
+
237
+ name = "name_example" # String | Release name
238
+
239
+ opts = {
240
+ visibility: "visibility_example", # String | visibility status (public, hidden or private)
241
+ time: "time_example", # String | Release datetime. If you set future time, the release hide until specified time.
242
+ release_note: "release_note_example", # String | Release note body text.
243
+ change_log: "change_log_example" # String | Changelog body text.
244
+ }
245
+
246
+ begin
247
+ result = api_instance.create_release(id_or_name, package_id, name, opts)
248
+ p result
249
+ rescue OSDNClient::ApiError => e
250
+ puts "Exception when calling ProjectApi->create_release: #{e}"
251
+ end
252
+ ```
253
+
254
+ ### Parameters
255
+
256
+ Name | Type | Description | Notes
257
+ ------------- | ------------- | ------------- | -------------
258
+ **id_or_name** | **String**| numeric project id or project name |
259
+ **package_id** | **Integer**| |
260
+ **name** | **String**| Release name |
261
+ **visibility** | **String**| visibility status (public, hidden or private) | [optional]
262
+ **time** | **String**| Release datetime. If you set future time, the release hide until specified time. | [optional]
263
+ **release_note** | **String**| Release note body text. | [optional]
264
+ **change_log** | **String**| Changelog body text. | [optional]
265
+
266
+ ### Return type
267
+
268
+ [**Release**](Release.md)
269
+
270
+ ### Authorization
271
+
272
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
273
+
274
+ ### HTTP request headers
275
+
276
+ - **Content-Type**: application/x-www-form-urlencoded
277
+ - **Accept**: Not defined
278
+
279
+
280
+
281
+ # **create_release_file**
282
+ > RelFile create_release_file(id_or_name, package_id, release_id, file, opts)
283
+
284
+
285
+
286
+ Create new file in target release.
287
+
288
+ ### Example
289
+ ```ruby
290
+ # load the gem
291
+ require 'osdn-client'
292
+ # setup authorization
293
+ OSDNClient.configure do |config|
294
+ # Configure OAuth2 access token for authorization: oauth2-code
295
+ config.access_token = 'YOUR ACCESS TOKEN'
296
+
297
+ # Configure OAuth2 access token for authorization: oauth2-implicit
298
+ config.access_token = 'YOUR ACCESS TOKEN'
299
+ end
300
+
301
+ api_instance = OSDNClient::ProjectApi.new
302
+
303
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
304
+
305
+ package_id = 56 # Integer |
306
+
307
+ release_id = 56 # Integer |
308
+
309
+ file = File.new("/path/to/file.txt") # File | Upload file in \"multipart/form-data\".
310
+
311
+ opts = {
312
+ visibility: "visibility_example" # String | visibility status (public, hidden or private)
313
+ }
314
+
315
+ begin
316
+ result = api_instance.create_release_file(id_or_name, package_id, release_id, file, opts)
317
+ p result
318
+ rescue OSDNClient::ApiError => e
319
+ puts "Exception when calling ProjectApi->create_release_file: #{e}"
320
+ end
321
+ ```
322
+
323
+ ### Parameters
324
+
325
+ Name | Type | Description | Notes
326
+ ------------- | ------------- | ------------- | -------------
327
+ **id_or_name** | **String**| numeric project id or project name |
328
+ **package_id** | **Integer**| |
329
+ **release_id** | **Integer**| |
330
+ **file** | **File**| Upload file in \"multipart/form-data\". |
331
+ **visibility** | **String**| visibility status (public, hidden or private) | [optional]
332
+
333
+ ### Return type
334
+
335
+ [**RelFile**](RelFile.md)
336
+
337
+ ### Authorization
338
+
339
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
340
+
341
+ ### HTTP request headers
342
+
343
+ - **Content-Type**: multipart/form-data
344
+ - **Accept**: Not defined
345
+
346
+
347
+
348
+ # **delete_news**
349
+ > delete_news(news_id)
350
+
351
+
352
+
353
+ ### Example
354
+ ```ruby
355
+ # load the gem
356
+ require 'osdn-client'
357
+ # setup authorization
358
+ OSDNClient.configure do |config|
359
+ # Configure OAuth2 access token for authorization: oauth2-code
360
+ config.access_token = 'YOUR ACCESS TOKEN'
361
+
362
+ # Configure OAuth2 access token for authorization: oauth2-implicit
363
+ config.access_token = 'YOUR ACCESS TOKEN'
364
+ end
365
+
366
+ api_instance = OSDNClient::ProjectApi.new
367
+
368
+ news_id = 56 # Integer |
369
+
370
+
371
+ begin
372
+ api_instance.delete_news(news_id)
373
+ rescue OSDNClient::ApiError => e
374
+ puts "Exception when calling ProjectApi->delete_news: #{e}"
375
+ end
376
+ ```
377
+
378
+ ### Parameters
379
+
380
+ Name | Type | Description | Notes
381
+ ------------- | ------------- | ------------- | -------------
382
+ **news_id** | **Integer**| |
383
+
384
+ ### Return type
385
+
386
+ nil (empty response body)
387
+
388
+ ### Authorization
389
+
390
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
391
+
392
+ ### HTTP request headers
393
+
394
+ - **Content-Type**: application/x-www-form-urlencoded
395
+ - **Accept**: Not defined
396
+
397
+
398
+
399
+ # **delete_news_0**
400
+ > delete_news_0(id_or_name, news_id)
401
+
402
+
403
+
404
+ ### Example
405
+ ```ruby
406
+ # load the gem
407
+ require 'osdn-client'
408
+ # setup authorization
409
+ OSDNClient.configure do |config|
410
+ # Configure OAuth2 access token for authorization: oauth2-code
411
+ config.access_token = 'YOUR ACCESS TOKEN'
412
+
413
+ # Configure OAuth2 access token for authorization: oauth2-implicit
414
+ config.access_token = 'YOUR ACCESS TOKEN'
415
+ end
416
+
417
+ api_instance = OSDNClient::ProjectApi.new
418
+
419
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
420
+
421
+ news_id = 56 # Integer |
422
+
423
+
424
+ begin
425
+ api_instance.delete_news_0(id_or_name, news_id)
426
+ rescue OSDNClient::ApiError => e
427
+ puts "Exception when calling ProjectApi->delete_news_0: #{e}"
428
+ end
429
+ ```
430
+
431
+ ### Parameters
432
+
433
+ Name | Type | Description | Notes
434
+ ------------- | ------------- | ------------- | -------------
435
+ **id_or_name** | **String**| numeric project id or project name |
436
+ **news_id** | **Integer**| |
437
+
438
+ ### Return type
439
+
440
+ nil (empty response body)
441
+
442
+ ### Authorization
443
+
444
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
445
+
446
+ ### HTTP request headers
447
+
448
+ - **Content-Type**: application/x-www-form-urlencoded
449
+ - **Accept**: Not defined
450
+
451
+
452
+
453
+ # **delete_package**
454
+ > delete_package(id_or_name, package_id)
455
+
456
+
457
+
458
+ Delete taret package.
459
+
460
+ ### Example
461
+ ```ruby
462
+ # load the gem
463
+ require 'osdn-client'
464
+ # setup authorization
465
+ OSDNClient.configure do |config|
466
+ # Configure OAuth2 access token for authorization: oauth2-code
467
+ config.access_token = 'YOUR ACCESS TOKEN'
468
+
469
+ # Configure OAuth2 access token for authorization: oauth2-implicit
470
+ config.access_token = 'YOUR ACCESS TOKEN'
471
+ end
472
+
473
+ api_instance = OSDNClient::ProjectApi.new
474
+
475
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
476
+
477
+ package_id = 56 # Integer |
478
+
479
+
480
+ begin
481
+ api_instance.delete_package(id_or_name, package_id)
482
+ rescue OSDNClient::ApiError => e
483
+ puts "Exception when calling ProjectApi->delete_package: #{e}"
484
+ end
485
+ ```
486
+
487
+ ### Parameters
488
+
489
+ Name | Type | Description | Notes
490
+ ------------- | ------------- | ------------- | -------------
491
+ **id_or_name** | **String**| numeric project id or project name |
492
+ **package_id** | **Integer**| |
493
+
494
+ ### Return type
495
+
496
+ nil (empty response body)
497
+
498
+ ### Authorization
499
+
500
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
501
+
502
+ ### HTTP request headers
503
+
504
+ - **Content-Type**: application/x-www-form-urlencoded
505
+ - **Accept**: Not defined
506
+
507
+
508
+
509
+ # **delete_release**
510
+ > delete_release(id_or_name, package_id, release_id)
511
+
512
+
513
+
514
+ Delete target release.
515
+
516
+ ### Example
517
+ ```ruby
518
+ # load the gem
519
+ require 'osdn-client'
520
+ # setup authorization
521
+ OSDNClient.configure do |config|
522
+ # Configure OAuth2 access token for authorization: oauth2-code
523
+ config.access_token = 'YOUR ACCESS TOKEN'
524
+
525
+ # Configure OAuth2 access token for authorization: oauth2-implicit
526
+ config.access_token = 'YOUR ACCESS TOKEN'
527
+ end
528
+
529
+ api_instance = OSDNClient::ProjectApi.new
530
+
531
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
532
+
533
+ package_id = 56 # Integer |
534
+
535
+ release_id = 56 # Integer |
536
+
537
+
538
+ begin
539
+ api_instance.delete_release(id_or_name, package_id, release_id)
540
+ rescue OSDNClient::ApiError => e
541
+ puts "Exception when calling ProjectApi->delete_release: #{e}"
542
+ end
543
+ ```
544
+
545
+ ### Parameters
546
+
547
+ Name | Type | Description | Notes
548
+ ------------- | ------------- | ------------- | -------------
549
+ **id_or_name** | **String**| numeric project id or project name |
550
+ **package_id** | **Integer**| |
551
+ **release_id** | **Integer**| |
552
+
553
+ ### Return type
554
+
555
+ nil (empty response body)
556
+
557
+ ### Authorization
558
+
559
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
560
+
561
+ ### HTTP request headers
562
+
563
+ - **Content-Type**: application/x-www-form-urlencoded
564
+ - **Accept**: Not defined
565
+
566
+
567
+
568
+ # **delete_release_file**
569
+ > delete_release_file(id_or_name, package_id, release_id, file_id)
570
+
571
+
572
+
573
+ Delete target file.
574
+
575
+ ### Example
576
+ ```ruby
577
+ # load the gem
578
+ require 'osdn-client'
579
+ # setup authorization
580
+ OSDNClient.configure do |config|
581
+ # Configure OAuth2 access token for authorization: oauth2-code
582
+ config.access_token = 'YOUR ACCESS TOKEN'
583
+
584
+ # Configure OAuth2 access token for authorization: oauth2-implicit
585
+ config.access_token = 'YOUR ACCESS TOKEN'
586
+ end
587
+
588
+ api_instance = OSDNClient::ProjectApi.new
589
+
590
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
591
+
592
+ package_id = 56 # Integer |
593
+
594
+ release_id = 56 # Integer |
595
+
596
+ file_id = 56 # Integer |
597
+
598
+
599
+ begin
600
+ api_instance.delete_release_file(id_or_name, package_id, release_id, file_id)
601
+ rescue OSDNClient::ApiError => e
602
+ puts "Exception when calling ProjectApi->delete_release_file: #{e}"
603
+ end
604
+ ```
605
+
606
+ ### Parameters
607
+
608
+ Name | Type | Description | Notes
609
+ ------------- | ------------- | ------------- | -------------
610
+ **id_or_name** | **String**| numeric project id or project name |
611
+ **package_id** | **Integer**| |
612
+ **release_id** | **Integer**| |
613
+ **file_id** | **Integer**| |
614
+
615
+ ### Return type
616
+
617
+ nil (empty response body)
618
+
619
+ ### Authorization
620
+
621
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
622
+
623
+ ### HTTP request headers
624
+
625
+ - **Content-Type**: application/x-www-form-urlencoded
626
+ - **Accept**: Not defined
627
+
628
+
629
+
630
+ # **draft_release**
631
+ > Release draft_release(id_or_name, package_id)
632
+
633
+
634
+
635
+ Get release draft in specified package. If draft is not exist, it will be created automatically.
636
+
637
+ ### Example
638
+ ```ruby
639
+ # load the gem
640
+ require 'osdn-client'
641
+ # setup authorization
642
+ OSDNClient.configure do |config|
643
+ # Configure OAuth2 access token for authorization: oauth2-code
644
+ config.access_token = 'YOUR ACCESS TOKEN'
645
+
646
+ # Configure OAuth2 access token for authorization: oauth2-implicit
647
+ config.access_token = 'YOUR ACCESS TOKEN'
648
+ end
649
+
650
+ api_instance = OSDNClient::ProjectApi.new
651
+
652
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
653
+
654
+ package_id = 56 # Integer |
655
+
656
+
657
+ begin
658
+ result = api_instance.draft_release(id_or_name, package_id)
659
+ p result
660
+ rescue OSDNClient::ApiError => e
661
+ puts "Exception when calling ProjectApi->draft_release: #{e}"
662
+ end
663
+ ```
664
+
665
+ ### Parameters
666
+
667
+ Name | Type | Description | Notes
668
+ ------------- | ------------- | ------------- | -------------
669
+ **id_or_name** | **String**| numeric project id or project name |
670
+ **package_id** | **Integer**| |
671
+
672
+ ### Return type
673
+
674
+ [**Release**](Release.md)
675
+
676
+ ### Authorization
677
+
678
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
679
+
680
+ ### HTTP request headers
681
+
682
+ - **Content-Type**: application/x-www-form-urlencoded
683
+ - **Accept**: Not defined
684
+
685
+
686
+
687
+ # **get_news**
688
+ > News get_news(news_id)
689
+
690
+
691
+
692
+ Get single news object.
693
+
694
+ ### Example
695
+ ```ruby
696
+ # load the gem
697
+ require 'osdn-client'
698
+ # setup authorization
699
+ OSDNClient.configure do |config|
700
+ # Configure OAuth2 access token for authorization: oauth2-code
701
+ config.access_token = 'YOUR ACCESS TOKEN'
702
+
703
+ # Configure OAuth2 access token for authorization: oauth2-implicit
704
+ config.access_token = 'YOUR ACCESS TOKEN'
705
+ end
706
+
707
+ api_instance = OSDNClient::ProjectApi.new
708
+
709
+ news_id = 56 # Integer |
710
+
711
+
712
+ begin
713
+ result = api_instance.get_news(news_id)
714
+ p result
715
+ rescue OSDNClient::ApiError => e
716
+ puts "Exception when calling ProjectApi->get_news: #{e}"
717
+ end
718
+ ```
719
+
720
+ ### Parameters
721
+
722
+ Name | Type | Description | Notes
723
+ ------------- | ------------- | ------------- | -------------
724
+ **news_id** | **Integer**| |
725
+
726
+ ### Return type
727
+
728
+ [**News**](News.md)
729
+
730
+ ### Authorization
731
+
732
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
733
+
734
+ ### HTTP request headers
735
+
736
+ - **Content-Type**: application/x-www-form-urlencoded
737
+ - **Accept**: Not defined
738
+
739
+
740
+
741
+ # **get_news_0**
742
+ > News get_news_0(id_or_name, news_id)
743
+
744
+
745
+
746
+ Get single news object.
747
+
748
+ ### Example
749
+ ```ruby
750
+ # load the gem
751
+ require 'osdn-client'
752
+ # setup authorization
753
+ OSDNClient.configure do |config|
754
+ # Configure OAuth2 access token for authorization: oauth2-code
755
+ config.access_token = 'YOUR ACCESS TOKEN'
756
+
757
+ # Configure OAuth2 access token for authorization: oauth2-implicit
758
+ config.access_token = 'YOUR ACCESS TOKEN'
759
+ end
760
+
761
+ api_instance = OSDNClient::ProjectApi.new
762
+
763
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
764
+
765
+ news_id = 56 # Integer |
766
+
767
+
768
+ begin
769
+ result = api_instance.get_news_0(id_or_name, news_id)
770
+ p result
771
+ rescue OSDNClient::ApiError => e
772
+ puts "Exception when calling ProjectApi->get_news_0: #{e}"
773
+ end
774
+ ```
775
+
776
+ ### Parameters
777
+
778
+ Name | Type | Description | Notes
779
+ ------------- | ------------- | ------------- | -------------
780
+ **id_or_name** | **String**| numeric project id or project name |
781
+ **news_id** | **Integer**| |
782
+
783
+ ### Return type
784
+
785
+ [**News**](News.md)
786
+
787
+ ### Authorization
788
+
789
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
790
+
791
+ ### HTTP request headers
792
+
793
+ - **Content-Type**: application/x-www-form-urlencoded
794
+ - **Accept**: Not defined
795
+
796
+
797
+
798
+ # **get_package**
799
+ > Package get_package(id_or_name, package_id)
800
+
801
+
802
+
803
+ Get specified package info and release list of the package.
804
+
805
+ ### Example
806
+ ```ruby
807
+ # load the gem
808
+ require 'osdn-client'
809
+ # setup authorization
810
+ OSDNClient.configure do |config|
811
+ # Configure OAuth2 access token for authorization: oauth2-code
812
+ config.access_token = 'YOUR ACCESS TOKEN'
813
+
814
+ # Configure OAuth2 access token for authorization: oauth2-implicit
815
+ config.access_token = 'YOUR ACCESS TOKEN'
816
+ end
817
+
818
+ api_instance = OSDNClient::ProjectApi.new
819
+
820
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
821
+
822
+ package_id = 56 # Integer |
823
+
824
+
825
+ begin
826
+ result = api_instance.get_package(id_or_name, package_id)
827
+ p result
828
+ rescue OSDNClient::ApiError => e
829
+ puts "Exception when calling ProjectApi->get_package: #{e}"
830
+ end
831
+ ```
832
+
833
+ ### Parameters
834
+
835
+ Name | Type | Description | Notes
836
+ ------------- | ------------- | ------------- | -------------
837
+ **id_or_name** | **String**| numeric project id or project name |
838
+ **package_id** | **Integer**| |
839
+
840
+ ### Return type
841
+
842
+ [**Package**](Package.md)
843
+
844
+ ### Authorization
845
+
846
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
847
+
848
+ ### HTTP request headers
849
+
850
+ - **Content-Type**: application/x-www-form-urlencoded
851
+ - **Accept**: Not defined
852
+
853
+
854
+
855
+ # **get_project**
856
+ > Group get_project(id_or_name)
857
+
858
+
859
+
860
+ Get project info.
861
+
862
+ ### Example
863
+ ```ruby
864
+ # load the gem
865
+ require 'osdn-client'
866
+ # setup authorization
867
+ OSDNClient.configure do |config|
868
+ # Configure OAuth2 access token for authorization: oauth2-code
869
+ config.access_token = 'YOUR ACCESS TOKEN'
870
+
871
+ # Configure OAuth2 access token for authorization: oauth2-implicit
872
+ config.access_token = 'YOUR ACCESS TOKEN'
873
+ end
874
+
875
+ api_instance = OSDNClient::ProjectApi.new
876
+
877
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
878
+
879
+
880
+ begin
881
+ result = api_instance.get_project(id_or_name)
882
+ p result
883
+ rescue OSDNClient::ApiError => e
884
+ puts "Exception when calling ProjectApi->get_project: #{e}"
885
+ end
886
+ ```
887
+
888
+ ### Parameters
889
+
890
+ Name | Type | Description | Notes
891
+ ------------- | ------------- | ------------- | -------------
892
+ **id_or_name** | **String**| numeric project id or project name |
893
+
894
+ ### Return type
895
+
896
+ [**Group**](Group.md)
897
+
898
+ ### Authorization
899
+
900
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
901
+
902
+ ### HTTP request headers
903
+
904
+ - **Content-Type**: application/x-www-form-urlencoded
905
+ - **Accept**: Not defined
906
+
907
+
908
+
909
+ # **get_release**
910
+ > Release get_release(id_or_name, package_id, release_id)
911
+
912
+
913
+
914
+ Get specified release info and file list of the release.
915
+
916
+ ### Example
917
+ ```ruby
918
+ # load the gem
919
+ require 'osdn-client'
920
+ # setup authorization
921
+ OSDNClient.configure do |config|
922
+ # Configure OAuth2 access token for authorization: oauth2-code
923
+ config.access_token = 'YOUR ACCESS TOKEN'
924
+
925
+ # Configure OAuth2 access token for authorization: oauth2-implicit
926
+ config.access_token = 'YOUR ACCESS TOKEN'
927
+ end
928
+
929
+ api_instance = OSDNClient::ProjectApi.new
930
+
931
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
932
+
933
+ package_id = 56 # Integer |
934
+
935
+ release_id = 56 # Integer |
936
+
937
+
938
+ begin
939
+ result = api_instance.get_release(id_or_name, package_id, release_id)
940
+ p result
941
+ rescue OSDNClient::ApiError => e
942
+ puts "Exception when calling ProjectApi->get_release: #{e}"
943
+ end
944
+ ```
945
+
946
+ ### Parameters
947
+
948
+ Name | Type | Description | Notes
949
+ ------------- | ------------- | ------------- | -------------
950
+ **id_or_name** | **String**| numeric project id or project name |
951
+ **package_id** | **Integer**| |
952
+ **release_id** | **Integer**| |
953
+
954
+ ### Return type
955
+
956
+ [**Release**](Release.md)
957
+
958
+ ### Authorization
959
+
960
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
961
+
962
+ ### HTTP request headers
963
+
964
+ - **Content-Type**: application/x-www-form-urlencoded
965
+ - **Accept**: Not defined
966
+
967
+
968
+
969
+ # **get_release_file**
970
+ > RelFile get_release_file(id_or_name, package_id, release_id, file_id)
971
+
972
+
973
+
974
+ Get single file object.
975
+
976
+ ### Example
977
+ ```ruby
978
+ # load the gem
979
+ require 'osdn-client'
980
+ # setup authorization
981
+ OSDNClient.configure do |config|
982
+ # Configure OAuth2 access token for authorization: oauth2-code
983
+ config.access_token = 'YOUR ACCESS TOKEN'
984
+
985
+ # Configure OAuth2 access token for authorization: oauth2-implicit
986
+ config.access_token = 'YOUR ACCESS TOKEN'
987
+ end
988
+
989
+ api_instance = OSDNClient::ProjectApi.new
990
+
991
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
992
+
993
+ package_id = 56 # Integer |
994
+
995
+ release_id = 56 # Integer |
996
+
997
+ file_id = 56 # Integer |
998
+
999
+
1000
+ begin
1001
+ result = api_instance.get_release_file(id_or_name, package_id, release_id, file_id)
1002
+ p result
1003
+ rescue OSDNClient::ApiError => e
1004
+ puts "Exception when calling ProjectApi->get_release_file: #{e}"
1005
+ end
1006
+ ```
1007
+
1008
+ ### Parameters
1009
+
1010
+ Name | Type | Description | Notes
1011
+ ------------- | ------------- | ------------- | -------------
1012
+ **id_or_name** | **String**| numeric project id or project name |
1013
+ **package_id** | **Integer**| |
1014
+ **release_id** | **Integer**| |
1015
+ **file_id** | **Integer**| |
1016
+
1017
+ ### Return type
1018
+
1019
+ [**RelFile**](RelFile.md)
1020
+
1021
+ ### Authorization
1022
+
1023
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1024
+
1025
+ ### HTTP request headers
1026
+
1027
+ - **Content-Type**: application/x-www-form-urlencoded
1028
+ - **Accept**: Not defined
1029
+
1030
+
1031
+
1032
+ # **list_news**
1033
+ > Array<News> list_news(opts)
1034
+
1035
+
1036
+
1037
+ ### Example
1038
+ ```ruby
1039
+ # load the gem
1040
+ require 'osdn-client'
1041
+ # setup authorization
1042
+ OSDNClient.configure do |config|
1043
+ # Configure OAuth2 access token for authorization: oauth2-code
1044
+ config.access_token = 'YOUR ACCESS TOKEN'
1045
+
1046
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1047
+ config.access_token = 'YOUR ACCESS TOKEN'
1048
+ end
1049
+
1050
+ api_instance = OSDNClient::ProjectApi.new
1051
+
1052
+ opts = {
1053
+ group_id: 56 # Integer | filter by group ID
1054
+ }
1055
+
1056
+ begin
1057
+ result = api_instance.list_news(opts)
1058
+ p result
1059
+ rescue OSDNClient::ApiError => e
1060
+ puts "Exception when calling ProjectApi->list_news: #{e}"
1061
+ end
1062
+ ```
1063
+
1064
+ ### Parameters
1065
+
1066
+ Name | Type | Description | Notes
1067
+ ------------- | ------------- | ------------- | -------------
1068
+ **group_id** | **Integer**| filter by group ID | [optional]
1069
+
1070
+ ### Return type
1071
+
1072
+ [**Array<News>**](News.md)
1073
+
1074
+ ### Authorization
1075
+
1076
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1077
+
1078
+ ### HTTP request headers
1079
+
1080
+ - **Content-Type**: application/x-www-form-urlencoded
1081
+ - **Accept**: Not defined
1082
+
1083
+
1084
+
1085
+ # **list_news_0**
1086
+ > Array<News> list_news_0(id_or_name)
1087
+
1088
+
1089
+
1090
+ Get news list of spscified project.
1091
+
1092
+ ### Example
1093
+ ```ruby
1094
+ # load the gem
1095
+ require 'osdn-client'
1096
+ # setup authorization
1097
+ OSDNClient.configure do |config|
1098
+ # Configure OAuth2 access token for authorization: oauth2-code
1099
+ config.access_token = 'YOUR ACCESS TOKEN'
1100
+
1101
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1102
+ config.access_token = 'YOUR ACCESS TOKEN'
1103
+ end
1104
+
1105
+ api_instance = OSDNClient::ProjectApi.new
1106
+
1107
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
1108
+
1109
+
1110
+ begin
1111
+ result = api_instance.list_news_0(id_or_name)
1112
+ p result
1113
+ rescue OSDNClient::ApiError => e
1114
+ puts "Exception when calling ProjectApi->list_news_0: #{e}"
1115
+ end
1116
+ ```
1117
+
1118
+ ### Parameters
1119
+
1120
+ Name | Type | Description | Notes
1121
+ ------------- | ------------- | ------------- | -------------
1122
+ **id_or_name** | **String**| numeric project id or project name |
1123
+
1124
+ ### Return type
1125
+
1126
+ [**Array<News>**](News.md)
1127
+
1128
+ ### Authorization
1129
+
1130
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1131
+
1132
+ ### HTTP request headers
1133
+
1134
+ - **Content-Type**: application/x-www-form-urlencoded
1135
+ - **Accept**: Not defined
1136
+
1137
+
1138
+
1139
+ # **list_packages**
1140
+ > Array<Package> list_packages(id_or_name)
1141
+
1142
+
1143
+
1144
+ Get package list of specified project.
1145
+
1146
+ ### Example
1147
+ ```ruby
1148
+ # load the gem
1149
+ require 'osdn-client'
1150
+ # setup authorization
1151
+ OSDNClient.configure do |config|
1152
+ # Configure OAuth2 access token for authorization: oauth2-code
1153
+ config.access_token = 'YOUR ACCESS TOKEN'
1154
+
1155
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1156
+ config.access_token = 'YOUR ACCESS TOKEN'
1157
+ end
1158
+
1159
+ api_instance = OSDNClient::ProjectApi.new
1160
+
1161
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
1162
+
1163
+
1164
+ begin
1165
+ result = api_instance.list_packages(id_or_name)
1166
+ p result
1167
+ rescue OSDNClient::ApiError => e
1168
+ puts "Exception when calling ProjectApi->list_packages: #{e}"
1169
+ end
1170
+ ```
1171
+
1172
+ ### Parameters
1173
+
1174
+ Name | Type | Description | Notes
1175
+ ------------- | ------------- | ------------- | -------------
1176
+ **id_or_name** | **String**| numeric project id or project name |
1177
+
1178
+ ### Return type
1179
+
1180
+ [**Array<Package>**](Package.md)
1181
+
1182
+ ### Authorization
1183
+
1184
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1185
+
1186
+ ### HTTP request headers
1187
+
1188
+ - **Content-Type**: application/x-www-form-urlencoded
1189
+ - **Accept**: Not defined
1190
+
1191
+
1192
+
1193
+ # **update_news**
1194
+ > News update_news(news_id, opts)
1195
+
1196
+
1197
+
1198
+ ### Example
1199
+ ```ruby
1200
+ # load the gem
1201
+ require 'osdn-client'
1202
+ # setup authorization
1203
+ OSDNClient.configure do |config|
1204
+ # Configure OAuth2 access token for authorization: oauth2-code
1205
+ config.access_token = 'YOUR ACCESS TOKEN'
1206
+
1207
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1208
+ config.access_token = 'YOUR ACCESS TOKEN'
1209
+ end
1210
+
1211
+ api_instance = OSDNClient::ProjectApi.new
1212
+
1213
+ news_id = 56 # Integer |
1214
+
1215
+ opts = {
1216
+ title: "title_example", # String | news title
1217
+ body: "body_example" # String | news body in OSDN Wiki format.
1218
+ }
1219
+
1220
+ begin
1221
+ result = api_instance.update_news(news_id, opts)
1222
+ p result
1223
+ rescue OSDNClient::ApiError => e
1224
+ puts "Exception when calling ProjectApi->update_news: #{e}"
1225
+ end
1226
+ ```
1227
+
1228
+ ### Parameters
1229
+
1230
+ Name | Type | Description | Notes
1231
+ ------------- | ------------- | ------------- | -------------
1232
+ **news_id** | **Integer**| |
1233
+ **title** | **String**| news title | [optional]
1234
+ **body** | **String**| news body in OSDN Wiki format. | [optional]
1235
+
1236
+ ### Return type
1237
+
1238
+ [**News**](News.md)
1239
+
1240
+ ### Authorization
1241
+
1242
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1243
+
1244
+ ### HTTP request headers
1245
+
1246
+ - **Content-Type**: application/x-www-form-urlencoded
1247
+ - **Accept**: Not defined
1248
+
1249
+
1250
+
1251
+ # **update_news_0**
1252
+ > News update_news_0(news_id, id_or_name, opts)
1253
+
1254
+
1255
+
1256
+ ### Example
1257
+ ```ruby
1258
+ # load the gem
1259
+ require 'osdn-client'
1260
+ # setup authorization
1261
+ OSDNClient.configure do |config|
1262
+ # Configure OAuth2 access token for authorization: oauth2-code
1263
+ config.access_token = 'YOUR ACCESS TOKEN'
1264
+
1265
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1266
+ config.access_token = 'YOUR ACCESS TOKEN'
1267
+ end
1268
+
1269
+ api_instance = OSDNClient::ProjectApi.new
1270
+
1271
+ news_id = 56 # Integer |
1272
+
1273
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
1274
+
1275
+ opts = {
1276
+ title: "title_example", # String | news title
1277
+ body: "body_example" # String | news body in OSDN Wiki format.
1278
+ }
1279
+
1280
+ begin
1281
+ result = api_instance.update_news_0(news_id, id_or_name, opts)
1282
+ p result
1283
+ rescue OSDNClient::ApiError => e
1284
+ puts "Exception when calling ProjectApi->update_news_0: #{e}"
1285
+ end
1286
+ ```
1287
+
1288
+ ### Parameters
1289
+
1290
+ Name | Type | Description | Notes
1291
+ ------------- | ------------- | ------------- | -------------
1292
+ **news_id** | **Integer**| |
1293
+ **id_or_name** | **String**| numeric project id or project name |
1294
+ **title** | **String**| news title | [optional]
1295
+ **body** | **String**| news body in OSDN Wiki format. | [optional]
1296
+
1297
+ ### Return type
1298
+
1299
+ [**News**](News.md)
1300
+
1301
+ ### Authorization
1302
+
1303
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1304
+
1305
+ ### HTTP request headers
1306
+
1307
+ - **Content-Type**: application/x-www-form-urlencoded
1308
+ - **Accept**: Not defined
1309
+
1310
+
1311
+
1312
+ # **update_package**
1313
+ > Package update_package(id_or_name, package_id, opts)
1314
+
1315
+
1316
+
1317
+ Update tagret package.
1318
+
1319
+ ### Example
1320
+ ```ruby
1321
+ # load the gem
1322
+ require 'osdn-client'
1323
+ # setup authorization
1324
+ OSDNClient.configure do |config|
1325
+ # Configure OAuth2 access token for authorization: oauth2-code
1326
+ config.access_token = 'YOUR ACCESS TOKEN'
1327
+
1328
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1329
+ config.access_token = 'YOUR ACCESS TOKEN'
1330
+ end
1331
+
1332
+ api_instance = OSDNClient::ProjectApi.new
1333
+
1334
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
1335
+
1336
+ package_id = 56 # Integer |
1337
+
1338
+ opts = {
1339
+ name: "name_example", # String | package name
1340
+ visibility: "visibility_example" # String | visibility status (public, hidden or private)
1341
+ }
1342
+
1343
+ begin
1344
+ result = api_instance.update_package(id_or_name, package_id, opts)
1345
+ p result
1346
+ rescue OSDNClient::ApiError => e
1347
+ puts "Exception when calling ProjectApi->update_package: #{e}"
1348
+ end
1349
+ ```
1350
+
1351
+ ### Parameters
1352
+
1353
+ Name | Type | Description | Notes
1354
+ ------------- | ------------- | ------------- | -------------
1355
+ **id_or_name** | **String**| numeric project id or project name |
1356
+ **package_id** | **Integer**| |
1357
+ **name** | **String**| package name | [optional]
1358
+ **visibility** | **String**| visibility status (public, hidden or private) | [optional]
1359
+
1360
+ ### Return type
1361
+
1362
+ [**Package**](Package.md)
1363
+
1364
+ ### Authorization
1365
+
1366
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1367
+
1368
+ ### HTTP request headers
1369
+
1370
+ - **Content-Type**: application/x-www-form-urlencoded
1371
+ - **Accept**: Not defined
1372
+
1373
+
1374
+
1375
+ # **update_release**
1376
+ > Release update_release(id_or_name, package_id, release_id, opts)
1377
+
1378
+
1379
+
1380
+ Update target release. (Note: If you update draft release, the release will be public automatically.)
1381
+
1382
+ ### Example
1383
+ ```ruby
1384
+ # load the gem
1385
+ require 'osdn-client'
1386
+ # setup authorization
1387
+ OSDNClient.configure do |config|
1388
+ # Configure OAuth2 access token for authorization: oauth2-code
1389
+ config.access_token = 'YOUR ACCESS TOKEN'
1390
+
1391
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1392
+ config.access_token = 'YOUR ACCESS TOKEN'
1393
+ end
1394
+
1395
+ api_instance = OSDNClient::ProjectApi.new
1396
+
1397
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
1398
+
1399
+ package_id = 56 # Integer |
1400
+
1401
+ release_id = 56 # Integer |
1402
+
1403
+ opts = {
1404
+ visibility: "visibility_example", # String | visibility status (public, hidden or private)
1405
+ name: "name_example", # String | Release name
1406
+ time: "time_example", # String | Release datetime. If you set future time, the release hide until specified time.
1407
+ move_to_package_id: 56 # Integer | If this parameter is specified, the release move to another package.
1408
+ }
1409
+
1410
+ begin
1411
+ result = api_instance.update_release(id_or_name, package_id, release_id, opts)
1412
+ p result
1413
+ rescue OSDNClient::ApiError => e
1414
+ puts "Exception when calling ProjectApi->update_release: #{e}"
1415
+ end
1416
+ ```
1417
+
1418
+ ### Parameters
1419
+
1420
+ Name | Type | Description | Notes
1421
+ ------------- | ------------- | ------------- | -------------
1422
+ **id_or_name** | **String**| numeric project id or project name |
1423
+ **package_id** | **Integer**| |
1424
+ **release_id** | **Integer**| |
1425
+ **visibility** | **String**| visibility status (public, hidden or private) | [optional]
1426
+ **name** | **String**| Release name | [optional]
1427
+ **time** | **String**| Release datetime. If you set future time, the release hide until specified time. | [optional]
1428
+ **move_to_package_id** | **Integer**| If this parameter is specified, the release move to another package. | [optional]
1429
+
1430
+ ### Return type
1431
+
1432
+ [**Release**](Release.md)
1433
+
1434
+ ### Authorization
1435
+
1436
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1437
+
1438
+ ### HTTP request headers
1439
+
1440
+ - **Content-Type**: application/x-www-form-urlencoded
1441
+ - **Accept**: Not defined
1442
+
1443
+
1444
+
1445
+ # **update_release_file**
1446
+ > RelFile update_release_file(id_or_name, package_id, release_id, file_id, opts)
1447
+
1448
+
1449
+
1450
+ Change visibility of target file.
1451
+
1452
+ ### Example
1453
+ ```ruby
1454
+ # load the gem
1455
+ require 'osdn-client'
1456
+ # setup authorization
1457
+ OSDNClient.configure do |config|
1458
+ # Configure OAuth2 access token for authorization: oauth2-code
1459
+ config.access_token = 'YOUR ACCESS TOKEN'
1460
+
1461
+ # Configure OAuth2 access token for authorization: oauth2-implicit
1462
+ config.access_token = 'YOUR ACCESS TOKEN'
1463
+ end
1464
+
1465
+ api_instance = OSDNClient::ProjectApi.new
1466
+
1467
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
1468
+
1469
+ package_id = 56 # Integer |
1470
+
1471
+ release_id = 56 # Integer |
1472
+
1473
+ file_id = 56 # Integer |
1474
+
1475
+ opts = {
1476
+ visibility: "visibility_example" # String | visibility status (public, hidden or private)
1477
+ }
1478
+
1479
+ begin
1480
+ result = api_instance.update_release_file(id_or_name, package_id, release_id, file_id, opts)
1481
+ p result
1482
+ rescue OSDNClient::ApiError => e
1483
+ puts "Exception when calling ProjectApi->update_release_file: #{e}"
1484
+ end
1485
+ ```
1486
+
1487
+ ### Parameters
1488
+
1489
+ Name | Type | Description | Notes
1490
+ ------------- | ------------- | ------------- | -------------
1491
+ **id_or_name** | **String**| numeric project id or project name |
1492
+ **package_id** | **Integer**| |
1493
+ **release_id** | **Integer**| |
1494
+ **file_id** | **Integer**| |
1495
+ **visibility** | **String**| visibility status (public, hidden or private) | [optional]
1496
+
1497
+ ### Return type
1498
+
1499
+ [**RelFile**](RelFile.md)
1500
+
1501
+ ### Authorization
1502
+
1503
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
1504
+
1505
+ ### HTTP request headers
1506
+
1507
+ - **Content-Type**: application/x-www-form-urlencoded
1508
+ - **Accept**: Not defined
1509
+
1510
+
1511
+