Class: OSDNClient::ProjectSCMApi
- Inherits:
-
Object
- Object
- OSDNClient::ProjectSCMApi
- Defined in:
- lib/osdn-client/api/project_scm_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_project_bzr(id_or_name, name, opts = {}) ⇒ ProjectBzr
Create a new bzr repository.
-
#create_project_bzr_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Create a new bzr repository.
-
#create_project_git(id_or_name, name, opts = {}) ⇒ ProjectGit
Create a new git repository.
-
#create_project_git_hook(id_or_name, repo_id, target_url, opts = {}) ⇒ ScmHook
Create a new hook for project git repository.
-
#create_project_git_hook_with_http_info(id_or_name, repo_id, target_url, opts = {}) ⇒ Array<(ScmHook, Fixnum, Hash)>
Create a new hook for project git repository.
-
#create_project_git_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Create a new git repository.
-
#create_project_hg(id_or_name, name, opts = {}) ⇒ ProjectHg
Create a new hg repository.
-
#create_project_hg_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Create a new hg repository.
-
#delete_project_git_hook(id_or_name, repo_id, hook_id, opts = {}) ⇒ nil
Delete a Git repository hook.
-
#delete_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Git repository hook.
-
#disable_project_bzr(id_or_name, repo_id, opts = {}) ⇒ ProjectBzr
Disable a bzr repository (not an actual delete, just a shorthand for updating with active=false).
-
#disable_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Disable a bzr repository (not an actual delete, just a shorthand for updating with active=false).
-
#disable_project_git(id_or_name, repo_id, opts = {}) ⇒ ProjectGit
Disable a git repository (not an actual delete, just a shorthand for updating with active=false).
-
#disable_project_git_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Disable a git repository (not an actual delete, just a shorthand for updating with active=false).
-
#disable_project_hg(id_or_name, repo_id, opts = {}) ⇒ ProjectHg
Disable a hg repository (not an actual delete, just a shorthand for updating with active=false).
-
#disable_project_hg_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Disable a hg repository (not an actual delete, just a shorthand for updating with active=false).
-
#get_project_bzr(id_or_name, repo_id, opts = {}) ⇒ ProjectBzr
Get a bzr repository.
-
#get_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Get a bzr repository.
-
#get_project_git(id_or_name, repo_id, opts = {}) ⇒ ProjectGit
Get a git repository.
-
#get_project_git_hook(id_or_name, repo_id, hook_id, opts = {}) ⇒ ScmHook
Get a repository hook.
-
#get_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {}) ⇒ Array<(ScmHook, Fixnum, Hash)>
Get a repository hook.
-
#get_project_git_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Get a git repository.
-
#get_project_hg(id_or_name, repo_id, opts = {}) ⇒ ProjectHg
Get a hg repository.
-
#get_project_hg_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Get a hg repository.
-
#get_project_svn(id_or_name, opts = {}) ⇒ ProjectSvn
Get Subversion repository of the project.
-
#get_project_svn_with_http_info(id_or_name, opts = {}) ⇒ Array<(ProjectSvn, Fixnum, Hash)>
Get Subversion repository of the project.
-
#initialize(api_client = ApiClient.default) ⇒ ProjectSCMApi
constructor
A new instance of ProjectSCMApi.
-
#list_project_bzr(id_or_name, opts = {}) ⇒ Array<ProjectBzr>
Get Bazzar repository list.
-
#list_project_bzr_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectBzr>, Fixnum, Hash)>
Get Bazzar repository list.
-
#list_project_git(id_or_name, opts = {}) ⇒ Array<ProjectGit>
Get git repository list.
-
#list_project_git_hook(id_or_name, repo_id, opts = {}) ⇒ Array<ScmHook>
Get Git repository hook list.
-
#list_project_git_hook_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(Array<ScmHook>, Fixnum, Hash)>
Get Git repository hook list.
-
#list_project_git_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectGit>, Fixnum, Hash)>
Get git repository list.
-
#list_project_hg(id_or_name, opts = {}) ⇒ Array<ProjectHg>
Get Mercurial repository list.
-
#list_project_hg_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectHg>, Fixnum, Hash)>
Get Mercurial repository list.
-
#update_project_bzr(id_or_name, repo_id, opts = {}) ⇒ ProjectBzr
Update a bzr repository.
-
#update_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Update a bzr repository.
-
#update_project_git(id_or_name, repo_id, opts = {}) ⇒ ProjectGit
Update a git repository.
-
#update_project_git_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Update a git repository.
-
#update_project_hg(id_or_name, repo_id, opts = {}) ⇒ ProjectHg
Update a hg repository.
-
#update_project_hg_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Update a hg repository.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ProjectSCMApi
Returns a new instance of ProjectSCMApi.
30 31 32 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 30 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
28 29 30 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 28 def api_client @api_client end |
Instance Method Details
#create_project_bzr(id_or_name, name, opts = {}) ⇒ ProjectBzr
Create a new bzr repository
41 42 43 44 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 41 def create_project_bzr(id_or_name, name, opts = {}) data, _status_code, _headers = create_project_bzr_with_http_info(id_or_name, name, opts) return data end |
#create_project_bzr_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Create a new bzr repository
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 53 def create_project_bzr_with_http_info(id_or_name, name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_bzr ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_bzr" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectSCMApi.create_project_bzr" if name.nil? # resource path local_var_path = "/project/{id_or_name}/bzr".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = opts[:'description'] if !opts[:'description'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectBzr') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_git(id_or_name, name, opts = {}) ⇒ ProjectGit
Create a new git repository
110 111 112 113 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 110 def create_project_git(id_or_name, name, opts = {}) data, _status_code, _headers = create_project_git_with_http_info(id_or_name, name, opts) return data end |
#create_project_git_hook(id_or_name, repo_id, target_url, opts = {}) ⇒ ScmHook
Create a new hook for project git repository
183 184 185 186 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 183 def create_project_git_hook(id_or_name, repo_id, target_url, opts = {}) data, _status_code, _headers = create_project_git_hook_with_http_info(id_or_name, repo_id, target_url, opts) return data end |
#create_project_git_hook_with_http_info(id_or_name, repo_id, target_url, opts = {}) ⇒ Array<(ScmHook, Fixnum, Hash)>
Create a new hook for project git repository
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 195 def create_project_git_hook_with_http_info(id_or_name, repo_id, target_url, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_git_hook ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_git_hook" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.create_project_git_hook" if repo_id.nil? # verify the required parameter 'target_url' is set fail ArgumentError, "Missing the required parameter 'target_url' when calling ProjectSCMApi.create_project_git_hook" if target_url.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["target_url"] = target_url # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScmHook') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_git_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Create a new git repository
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 126 def create_project_git_with_http_info(id_or_name, name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_git ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_git" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectSCMApi.create_project_git" if name.nil? # resource path local_var_path = "/project/{id_or_name}/git".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["mail_enabled"] = opts[:'mail_enabled'] if !opts[:'mail_enabled'].nil? form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil? form_params["allow_non_fast_forward"] = opts[:'allow_non_fast_forward'] if !opts[:'allow_non_fast_forward'].nil? form_params["default_branch"] = opts[:'default_branch'] if !opts[:'default_branch'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectGit') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_project_hg(id_or_name, name, opts = {}) ⇒ ProjectHg
Create a new hg repository
250 251 252 253 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 250 def create_project_hg(id_or_name, name, opts = {}) data, _status_code, _headers = create_project_hg_with_http_info(id_or_name, name, opts) return data end |
#create_project_hg_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Create a new hg repository
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 263 def create_project_hg_with_http_info(id_or_name, name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.create_project_hg ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.create_project_hg" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectSCMApi.create_project_hg" if name.nil? # resource path local_var_path = "/project/{id_or_name}/hg".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["name"] = name form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectHg') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#create_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_project_git_hook(id_or_name, repo_id, hook_id, opts = {}) ⇒ nil
Delete a Git repository hook
317 318 319 320 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 317 def delete_project_git_hook(id_or_name, repo_id, hook_id, opts = {}) delete_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts) return nil end |
#delete_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a Git repository hook
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 329 def delete_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.delete_project_git_hook ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.delete_project_git_hook" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.delete_project_git_hook" if repo_id.nil? # verify the required parameter 'hook_id' is set fail ArgumentError, "Missing the required parameter 'hook_id' when calling ProjectSCMApi.delete_project_git_hook" if hook_id.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks/{hook_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s).sub('{' + 'hook_id' + '}', hook_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#delete_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#disable_project_bzr(id_or_name, repo_id, opts = {}) ⇒ ProjectBzr
Disable a bzr repository (not an actual delete, just a shorthand for updating with active=false)
380 381 382 383 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 380 def disable_project_bzr(id_or_name, repo_id, opts = {}) data, _status_code, _headers = disable_project_bzr_with_http_info(id_or_name, repo_id, opts) return data end |
#disable_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Disable a bzr repository (not an actual delete, just a shorthand for updating with active=false)
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 391 def disable_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.disable_project_bzr ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.disable_project_bzr" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.disable_project_bzr" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/bzr/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectBzr') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#disable_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#disable_project_git(id_or_name, repo_id, opts = {}) ⇒ ProjectGit
Disable a git repository (not an actual delete, just a shorthand for updating with active=false)
441 442 443 444 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 441 def disable_project_git(id_or_name, repo_id, opts = {}) data, _status_code, _headers = disable_project_git_with_http_info(id_or_name, repo_id, opts) return data end |
#disable_project_git_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Disable a git repository (not an actual delete, just a shorthand for updating with active=false)
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 452 def disable_project_git_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.disable_project_git ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.disable_project_git" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.disable_project_git" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectGit') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#disable_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#disable_project_hg(id_or_name, repo_id, opts = {}) ⇒ ProjectHg
Disable a hg repository (not an actual delete, just a shorthand for updating with active=false)
502 503 504 505 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 502 def disable_project_hg(id_or_name, repo_id, opts = {}) data, _status_code, _headers = disable_project_hg_with_http_info(id_or_name, repo_id, opts) return data end |
#disable_project_hg_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Disable a hg repository (not an actual delete, just a shorthand for updating with active=false)
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 513 def disable_project_hg_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.disable_project_hg ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.disable_project_hg" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.disable_project_hg" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/hg/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectHg') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#disable_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_bzr(id_or_name, repo_id, opts = {}) ⇒ ProjectBzr
Get a bzr repository
563 564 565 566 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 563 def get_project_bzr(id_or_name, repo_id, opts = {}) data, _status_code, _headers = get_project_bzr_with_http_info(id_or_name, repo_id, opts) return data end |
#get_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Get a bzr repository
574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 574 def get_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_bzr ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_bzr" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_bzr" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/bzr/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectBzr') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_git(id_or_name, repo_id, opts = {}) ⇒ ProjectGit
Get a git repository
624 625 626 627 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 624 def get_project_git(id_or_name, repo_id, opts = {}) data, _status_code, _headers = get_project_git_with_http_info(id_or_name, repo_id, opts) return data end |
#get_project_git_hook(id_or_name, repo_id, hook_id, opts = {}) ⇒ ScmHook
Get a repository hook
686 687 688 689 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 686 def get_project_git_hook(id_or_name, repo_id, hook_id, opts = {}) data, _status_code, _headers = get_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts) return data end |
#get_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {}) ⇒ Array<(ScmHook, Fixnum, Hash)>
Get a repository hook
698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 698 def get_project_git_hook_with_http_info(id_or_name, repo_id, hook_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_git_hook ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_git_hook" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_git_hook" if repo_id.nil? # verify the required parameter 'hook_id' is set fail ArgumentError, "Missing the required parameter 'hook_id' when calling ProjectSCMApi.get_project_git_hook" if hook_id.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks/{hook_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s).sub('{' + 'hook_id' + '}', hook_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ScmHook') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_git_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Get a git repository
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 635 def get_project_git_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_git ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_git" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_git" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectGit') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_hg(id_or_name, repo_id, opts = {}) ⇒ ProjectHg
Get a hg repository
750 751 752 753 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 750 def get_project_hg(id_or_name, repo_id, opts = {}) data, _status_code, _headers = get_project_hg_with_http_info(id_or_name, repo_id, opts) return data end |
#get_project_hg_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Get a hg repository
761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 761 def get_project_hg_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_hg ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_hg" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.get_project_hg" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/hg/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectHg') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_project_svn(id_or_name, opts = {}) ⇒ ProjectSvn
Get Subversion repository of the project
810 811 812 813 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 810 def get_project_svn(id_or_name, opts = {}) data, _status_code, _headers = get_project_svn_with_http_info(id_or_name, opts) return data end |
#get_project_svn_with_http_info(id_or_name, opts = {}) ⇒ Array<(ProjectSvn, Fixnum, Hash)>
Get Subversion repository of the project
820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 820 def get_project_svn_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.get_project_svn ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.get_project_svn" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/svn".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectSvn') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#get_project_svn\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_bzr(id_or_name, opts = {}) ⇒ Array<ProjectBzr>
Get Bazzar repository list
867 868 869 870 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 867 def list_project_bzr(id_or_name, opts = {}) data, _status_code, _headers = list_project_bzr_with_http_info(id_or_name, opts) return data end |
#list_project_bzr_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectBzr>, Fixnum, Hash)>
Get Bazzar repository list
877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 877 def list_project_bzr_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_bzr ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_bzr" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/bzr".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectBzr>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_git(id_or_name, opts = {}) ⇒ Array<ProjectGit>
Get git repository list
924 925 926 927 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 924 def list_project_git(id_or_name, opts = {}) data, _status_code, _headers = list_project_git_with_http_info(id_or_name, opts) return data end |
#list_project_git_hook(id_or_name, repo_id, opts = {}) ⇒ Array<ScmHook>
Get Git repository hook list
982 983 984 985 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 982 def list_project_git_hook(id_or_name, repo_id, opts = {}) data, _status_code, _headers = list_project_git_hook_with_http_info(id_or_name, repo_id, opts) return data end |
#list_project_git_hook_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(Array<ScmHook>, Fixnum, Hash)>
Get Git repository hook list
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 993 def list_project_git_hook_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_git_hook ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_git_hook" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.list_project_git_hook" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}/hooks".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ScmHook>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_git_hook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_git_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectGit>, Fixnum, Hash)>
Get git repository list
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 934 def list_project_git_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_git ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_git" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/git".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectGit>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_project_hg(id_or_name, opts = {}) ⇒ Array<ProjectHg>
Get Mercurial repository list
1042 1043 1044 1045 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1042 def list_project_hg(id_or_name, opts = {}) data, _status_code, _headers = list_project_hg_with_http_info(id_or_name, opts) return data end |
#list_project_hg_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<ProjectHg>, Fixnum, Hash)>
Get Mercurial repository list
1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1052 def list_project_hg_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.list_project_hg ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.list_project_hg" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/hg".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<ProjectHg>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#list_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_bzr(id_or_name, repo_id, opts = {}) ⇒ ProjectBzr
Update a bzr repository
1102 1103 1104 1105 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1102 def update_project_bzr(id_or_name, repo_id, opts = {}) data, _status_code, _headers = update_project_bzr_with_http_info(id_or_name, repo_id, opts) return data end |
#update_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectBzr, Fixnum, Hash)>
Update a bzr repository
1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1115 def update_project_bzr_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.update_project_bzr ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.update_project_bzr" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.update_project_bzr" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/bzr/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["active"] = opts[:'active'] if !opts[:'active'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectBzr') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#update_project_bzr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_git(id_or_name, repo_id, opts = {}) ⇒ ProjectGit
Update a git repository
1173 1174 1175 1176 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1173 def update_project_git(id_or_name, repo_id, opts = {}) data, _status_code, _headers = update_project_git_with_http_info(id_or_name, repo_id, opts) return data end |
#update_project_git_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectGit, Fixnum, Hash)>
Update a git repository
1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1190 def update_project_git_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.update_project_git ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.update_project_git" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.update_project_git" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/git/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["mail_enabled"] = opts[:'mail_enabled'] if !opts[:'mail_enabled'].nil? form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil? form_params["allow_non_fast_forward"] = opts[:'allow_non_fast_forward'] if !opts[:'allow_non_fast_forward'].nil? form_params["default_branch"] = opts[:'default_branch'] if !opts[:'default_branch'].nil? form_params["active"] = opts[:'active'] if !opts[:'active'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectGit') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#update_project_git\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_project_hg(id_or_name, repo_id, opts = {}) ⇒ ProjectHg
Update a hg repository
1249 1250 1251 1252 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1249 def update_project_hg(id_or_name, repo_id, opts = {}) data, _status_code, _headers = update_project_hg_with_http_info(id_or_name, repo_id, opts) return data end |
#update_project_hg_with_http_info(id_or_name, repo_id, opts = {}) ⇒ Array<(ProjectHg, Fixnum, Hash)>
Update a hg repository
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 |
# File 'lib/osdn-client/api/project_scm_api.rb', line 1263 def update_project_hg_with_http_info(id_or_name, repo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectSCMApi.update_project_hg ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectSCMApi.update_project_hg" if id_or_name.nil? # verify the required parameter 'repo_id' is set fail ArgumentError, "Missing the required parameter 'repo_id' when calling ProjectSCMApi.update_project_hg" if repo_id.nil? # resource path local_var_path = "/project/{id_or_name}/hg/{repo_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'repo_id' + '}', repo_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = [] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['application/x-www-form-urlencoded'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["description"] = opts[:'description'] if !opts[:'description'].nil? form_params["mail_recipients"] = opts[:'mail_recipients'] if !opts[:'mail_recipients'].nil? form_params["active"] = opts[:'active'] if !opts[:'active'].nil? # http body (model) post_body = nil auth_names = ['oauth2-code', 'oauth2-implicit'] data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ProjectHg') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectSCMApi#update_project_hg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |