osdn-client 0.0.20160304 → 0.0.20160711

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 (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,576 @@
1
+ # OSDNClient::ProjectNewsApi
2
+
3
+ All URIs are relative to *https://osdn.jp/api/v0*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_news**](ProjectNewsApi.md#create_news) | **POST** /news |
8
+ [**create_news_0**](ProjectNewsApi.md#create_news_0) | **POST** /project/{id_or_name}/news |
9
+ [**delete_news**](ProjectNewsApi.md#delete_news) | **DELETE** /news/{news_id} |
10
+ [**delete_news_0**](ProjectNewsApi.md#delete_news_0) | **DELETE** /project/{id_or_name}/news/{news_id} |
11
+ [**get_news**](ProjectNewsApi.md#get_news) | **GET** /news/{news_id} |
12
+ [**get_news_0**](ProjectNewsApi.md#get_news_0) | **GET** /project/{id_or_name}/news/{news_id} |
13
+ [**list_news**](ProjectNewsApi.md#list_news) | **GET** /news |
14
+ [**list_news_0**](ProjectNewsApi.md#list_news_0) | **GET** /project/{id_or_name}/news |
15
+ [**update_news**](ProjectNewsApi.md#update_news) | **PATCH** /news/{news_id} |
16
+ [**update_news_0**](ProjectNewsApi.md#update_news_0) | **PATCH** /project/{id_or_name}/news/{news_id} |
17
+
18
+
19
+ # **create_news**
20
+ > String create_news(title, body, group_id)
21
+
22
+
23
+
24
+ ### Example
25
+ ```ruby
26
+ # load the gem
27
+ require 'osdn-client'
28
+ # setup authorization
29
+ OSDNClient.configure do |config|
30
+ # Configure OAuth2 access token for authorization: oauth2-code
31
+ config.access_token = 'YOUR ACCESS TOKEN'
32
+
33
+ # Configure OAuth2 access token for authorization: oauth2-implicit
34
+ config.access_token = 'YOUR ACCESS TOKEN'
35
+ end
36
+
37
+ api_instance = OSDNClient::ProjectNewsApi.new
38
+
39
+ title = "title_example" # String | news title
40
+
41
+ body = "body_example" # String | news body in OSDN Wiki format.
42
+
43
+ group_id = 56 # Integer | group_id the news created in
44
+
45
+
46
+ begin
47
+ result = api_instance.create_news(title, body, group_id)
48
+ p result
49
+ rescue OSDNClient::ApiError => e
50
+ puts "Exception when calling ProjectNewsApi->create_news: #{e}"
51
+ end
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **title** | **String**| news title |
59
+ **body** | **String**| news body in OSDN Wiki format. |
60
+ **group_id** | **Integer**| group_id the news created in |
61
+
62
+ ### Return type
63
+
64
+ **String**
65
+
66
+ ### Authorization
67
+
68
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: application/x-www-form-urlencoded
73
+ - **Accept**: Not defined
74
+
75
+
76
+
77
+ # **create_news_0**
78
+ > String create_news_0(id_or_name, title, body)
79
+
80
+
81
+
82
+ ### Example
83
+ ```ruby
84
+ # load the gem
85
+ require 'osdn-client'
86
+ # setup authorization
87
+ OSDNClient.configure do |config|
88
+ # Configure OAuth2 access token for authorization: oauth2-code
89
+ config.access_token = 'YOUR ACCESS TOKEN'
90
+
91
+ # Configure OAuth2 access token for authorization: oauth2-implicit
92
+ config.access_token = 'YOUR ACCESS TOKEN'
93
+ end
94
+
95
+ api_instance = OSDNClient::ProjectNewsApi.new
96
+
97
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
98
+
99
+ title = "title_example" # String | news title
100
+
101
+ body = "body_example" # String | news body in OSDN Wiki format.
102
+
103
+
104
+ begin
105
+ result = api_instance.create_news_0(id_or_name, title, body)
106
+ p result
107
+ rescue OSDNClient::ApiError => e
108
+ puts "Exception when calling ProjectNewsApi->create_news_0: #{e}"
109
+ end
110
+ ```
111
+
112
+ ### Parameters
113
+
114
+ Name | Type | Description | Notes
115
+ ------------- | ------------- | ------------- | -------------
116
+ **id_or_name** | **String**| numeric project id or project name |
117
+ **title** | **String**| news title |
118
+ **body** | **String**| news body in OSDN Wiki format. |
119
+
120
+ ### Return type
121
+
122
+ **String**
123
+
124
+ ### Authorization
125
+
126
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: application/x-www-form-urlencoded
131
+ - **Accept**: Not defined
132
+
133
+
134
+
135
+ # **delete_news**
136
+ > delete_news(news_id)
137
+
138
+
139
+
140
+ ### Example
141
+ ```ruby
142
+ # load the gem
143
+ require 'osdn-client'
144
+ # setup authorization
145
+ OSDNClient.configure do |config|
146
+ # Configure OAuth2 access token for authorization: oauth2-code
147
+ config.access_token = 'YOUR ACCESS TOKEN'
148
+
149
+ # Configure OAuth2 access token for authorization: oauth2-implicit
150
+ config.access_token = 'YOUR ACCESS TOKEN'
151
+ end
152
+
153
+ api_instance = OSDNClient::ProjectNewsApi.new
154
+
155
+ news_id = 56 # Integer |
156
+
157
+
158
+ begin
159
+ api_instance.delete_news(news_id)
160
+ rescue OSDNClient::ApiError => e
161
+ puts "Exception when calling ProjectNewsApi->delete_news: #{e}"
162
+ end
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+ Name | Type | Description | Notes
168
+ ------------- | ------------- | ------------- | -------------
169
+ **news_id** | **Integer**| |
170
+
171
+ ### Return type
172
+
173
+ nil (empty response body)
174
+
175
+ ### Authorization
176
+
177
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
178
+
179
+ ### HTTP request headers
180
+
181
+ - **Content-Type**: application/x-www-form-urlencoded
182
+ - **Accept**: Not defined
183
+
184
+
185
+
186
+ # **delete_news_0**
187
+ > delete_news_0(id_or_name, news_id)
188
+
189
+
190
+
191
+ ### Example
192
+ ```ruby
193
+ # load the gem
194
+ require 'osdn-client'
195
+ # setup authorization
196
+ OSDNClient.configure do |config|
197
+ # Configure OAuth2 access token for authorization: oauth2-code
198
+ config.access_token = 'YOUR ACCESS TOKEN'
199
+
200
+ # Configure OAuth2 access token for authorization: oauth2-implicit
201
+ config.access_token = 'YOUR ACCESS TOKEN'
202
+ end
203
+
204
+ api_instance = OSDNClient::ProjectNewsApi.new
205
+
206
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
207
+
208
+ news_id = 56 # Integer |
209
+
210
+
211
+ begin
212
+ api_instance.delete_news_0(id_or_name, news_id)
213
+ rescue OSDNClient::ApiError => e
214
+ puts "Exception when calling ProjectNewsApi->delete_news_0: #{e}"
215
+ end
216
+ ```
217
+
218
+ ### Parameters
219
+
220
+ Name | Type | Description | Notes
221
+ ------------- | ------------- | ------------- | -------------
222
+ **id_or_name** | **String**| numeric project id or project name |
223
+ **news_id** | **Integer**| |
224
+
225
+ ### Return type
226
+
227
+ nil (empty response body)
228
+
229
+ ### Authorization
230
+
231
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: application/x-www-form-urlencoded
236
+ - **Accept**: Not defined
237
+
238
+
239
+
240
+ # **get_news**
241
+ > News get_news(news_id)
242
+
243
+
244
+
245
+ Get single news object.
246
+
247
+ ### Example
248
+ ```ruby
249
+ # load the gem
250
+ require 'osdn-client'
251
+ # setup authorization
252
+ OSDNClient.configure do |config|
253
+ # Configure OAuth2 access token for authorization: oauth2-code
254
+ config.access_token = 'YOUR ACCESS TOKEN'
255
+
256
+ # Configure OAuth2 access token for authorization: oauth2-implicit
257
+ config.access_token = 'YOUR ACCESS TOKEN'
258
+ end
259
+
260
+ api_instance = OSDNClient::ProjectNewsApi.new
261
+
262
+ news_id = 56 # Integer |
263
+
264
+
265
+ begin
266
+ result = api_instance.get_news(news_id)
267
+ p result
268
+ rescue OSDNClient::ApiError => e
269
+ puts "Exception when calling ProjectNewsApi->get_news: #{e}"
270
+ end
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ Name | Type | Description | Notes
276
+ ------------- | ------------- | ------------- | -------------
277
+ **news_id** | **Integer**| |
278
+
279
+ ### Return type
280
+
281
+ [**News**](News.md)
282
+
283
+ ### Authorization
284
+
285
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
286
+
287
+ ### HTTP request headers
288
+
289
+ - **Content-Type**: application/x-www-form-urlencoded
290
+ - **Accept**: Not defined
291
+
292
+
293
+
294
+ # **get_news_0**
295
+ > News get_news_0(id_or_name, news_id)
296
+
297
+
298
+
299
+ Get single news object.
300
+
301
+ ### Example
302
+ ```ruby
303
+ # load the gem
304
+ require 'osdn-client'
305
+ # setup authorization
306
+ OSDNClient.configure do |config|
307
+ # Configure OAuth2 access token for authorization: oauth2-code
308
+ config.access_token = 'YOUR ACCESS TOKEN'
309
+
310
+ # Configure OAuth2 access token for authorization: oauth2-implicit
311
+ config.access_token = 'YOUR ACCESS TOKEN'
312
+ end
313
+
314
+ api_instance = OSDNClient::ProjectNewsApi.new
315
+
316
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
317
+
318
+ news_id = 56 # Integer |
319
+
320
+
321
+ begin
322
+ result = api_instance.get_news_0(id_or_name, news_id)
323
+ p result
324
+ rescue OSDNClient::ApiError => e
325
+ puts "Exception when calling ProjectNewsApi->get_news_0: #{e}"
326
+ end
327
+ ```
328
+
329
+ ### Parameters
330
+
331
+ Name | Type | Description | Notes
332
+ ------------- | ------------- | ------------- | -------------
333
+ **id_or_name** | **String**| numeric project id or project name |
334
+ **news_id** | **Integer**| |
335
+
336
+ ### Return type
337
+
338
+ [**News**](News.md)
339
+
340
+ ### Authorization
341
+
342
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: application/x-www-form-urlencoded
347
+ - **Accept**: Not defined
348
+
349
+
350
+
351
+ # **list_news**
352
+ > Array<News> list_news(opts)
353
+
354
+
355
+
356
+ ### Example
357
+ ```ruby
358
+ # load the gem
359
+ require 'osdn-client'
360
+ # setup authorization
361
+ OSDNClient.configure do |config|
362
+ # Configure OAuth2 access token for authorization: oauth2-code
363
+ config.access_token = 'YOUR ACCESS TOKEN'
364
+
365
+ # Configure OAuth2 access token for authorization: oauth2-implicit
366
+ config.access_token = 'YOUR ACCESS TOKEN'
367
+ end
368
+
369
+ api_instance = OSDNClient::ProjectNewsApi.new
370
+
371
+ opts = {
372
+ group_id: 56 # Integer | filter by group ID
373
+ }
374
+
375
+ begin
376
+ result = api_instance.list_news(opts)
377
+ p result
378
+ rescue OSDNClient::ApiError => e
379
+ puts "Exception when calling ProjectNewsApi->list_news: #{e}"
380
+ end
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+ Name | Type | Description | Notes
386
+ ------------- | ------------- | ------------- | -------------
387
+ **group_id** | **Integer**| filter by group ID | [optional]
388
+
389
+ ### Return type
390
+
391
+ [**Array<News>**](News.md)
392
+
393
+ ### Authorization
394
+
395
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
396
+
397
+ ### HTTP request headers
398
+
399
+ - **Content-Type**: application/x-www-form-urlencoded
400
+ - **Accept**: Not defined
401
+
402
+
403
+
404
+ # **list_news_0**
405
+ > Array<News> list_news_0(id_or_name)
406
+
407
+
408
+
409
+ Get news list of spscified project.
410
+
411
+ ### Example
412
+ ```ruby
413
+ # load the gem
414
+ require 'osdn-client'
415
+ # setup authorization
416
+ OSDNClient.configure do |config|
417
+ # Configure OAuth2 access token for authorization: oauth2-code
418
+ config.access_token = 'YOUR ACCESS TOKEN'
419
+
420
+ # Configure OAuth2 access token for authorization: oauth2-implicit
421
+ config.access_token = 'YOUR ACCESS TOKEN'
422
+ end
423
+
424
+ api_instance = OSDNClient::ProjectNewsApi.new
425
+
426
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
427
+
428
+
429
+ begin
430
+ result = api_instance.list_news_0(id_or_name)
431
+ p result
432
+ rescue OSDNClient::ApiError => e
433
+ puts "Exception when calling ProjectNewsApi->list_news_0: #{e}"
434
+ end
435
+ ```
436
+
437
+ ### Parameters
438
+
439
+ Name | Type | Description | Notes
440
+ ------------- | ------------- | ------------- | -------------
441
+ **id_or_name** | **String**| numeric project id or project name |
442
+
443
+ ### Return type
444
+
445
+ [**Array<News>**](News.md)
446
+
447
+ ### Authorization
448
+
449
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
450
+
451
+ ### HTTP request headers
452
+
453
+ - **Content-Type**: application/x-www-form-urlencoded
454
+ - **Accept**: Not defined
455
+
456
+
457
+
458
+ # **update_news**
459
+ > News update_news(news_id, opts)
460
+
461
+
462
+
463
+ ### Example
464
+ ```ruby
465
+ # load the gem
466
+ require 'osdn-client'
467
+ # setup authorization
468
+ OSDNClient.configure do |config|
469
+ # Configure OAuth2 access token for authorization: oauth2-code
470
+ config.access_token = 'YOUR ACCESS TOKEN'
471
+
472
+ # Configure OAuth2 access token for authorization: oauth2-implicit
473
+ config.access_token = 'YOUR ACCESS TOKEN'
474
+ end
475
+
476
+ api_instance = OSDNClient::ProjectNewsApi.new
477
+
478
+ news_id = 56 # Integer |
479
+
480
+ opts = {
481
+ title: "title_example", # String | news title
482
+ body: "body_example" # String | news body in OSDN Wiki format.
483
+ }
484
+
485
+ begin
486
+ result = api_instance.update_news(news_id, opts)
487
+ p result
488
+ rescue OSDNClient::ApiError => e
489
+ puts "Exception when calling ProjectNewsApi->update_news: #{e}"
490
+ end
491
+ ```
492
+
493
+ ### Parameters
494
+
495
+ Name | Type | Description | Notes
496
+ ------------- | ------------- | ------------- | -------------
497
+ **news_id** | **Integer**| |
498
+ **title** | **String**| news title | [optional]
499
+ **body** | **String**| news body in OSDN Wiki format. | [optional]
500
+
501
+ ### Return type
502
+
503
+ [**News**](News.md)
504
+
505
+ ### Authorization
506
+
507
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
508
+
509
+ ### HTTP request headers
510
+
511
+ - **Content-Type**: application/x-www-form-urlencoded
512
+ - **Accept**: Not defined
513
+
514
+
515
+
516
+ # **update_news_0**
517
+ > News update_news_0(news_id, id_or_name, opts)
518
+
519
+
520
+
521
+ ### Example
522
+ ```ruby
523
+ # load the gem
524
+ require 'osdn-client'
525
+ # setup authorization
526
+ OSDNClient.configure do |config|
527
+ # Configure OAuth2 access token for authorization: oauth2-code
528
+ config.access_token = 'YOUR ACCESS TOKEN'
529
+
530
+ # Configure OAuth2 access token for authorization: oauth2-implicit
531
+ config.access_token = 'YOUR ACCESS TOKEN'
532
+ end
533
+
534
+ api_instance = OSDNClient::ProjectNewsApi.new
535
+
536
+ news_id = 56 # Integer |
537
+
538
+ id_or_name = "id_or_name_example" # String | numeric project id or project name
539
+
540
+ opts = {
541
+ title: "title_example", # String | news title
542
+ body: "body_example" # String | news body in OSDN Wiki format.
543
+ }
544
+
545
+ begin
546
+ result = api_instance.update_news_0(news_id, id_or_name, opts)
547
+ p result
548
+ rescue OSDNClient::ApiError => e
549
+ puts "Exception when calling ProjectNewsApi->update_news_0: #{e}"
550
+ end
551
+ ```
552
+
553
+ ### Parameters
554
+
555
+ Name | Type | Description | Notes
556
+ ------------- | ------------- | ------------- | -------------
557
+ **news_id** | **Integer**| |
558
+ **id_or_name** | **String**| numeric project id or project name |
559
+ **title** | **String**| news title | [optional]
560
+ **body** | **String**| news body in OSDN Wiki format. | [optional]
561
+
562
+ ### Return type
563
+
564
+ [**News**](News.md)
565
+
566
+ ### Authorization
567
+
568
+ [oauth2-code](../README.md#oauth2-code), [oauth2-implicit](../README.md#oauth2-implicit)
569
+
570
+ ### HTTP request headers
571
+
572
+ - **Content-Type**: application/x-www-form-urlencoded
573
+ - **Accept**: Not defined
574
+
575
+
576
+