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