Class: OSDNClient::ProjectApi

Inherits:
Object
  • Object
show all
Defined in:
lib/osdn-client/api/project_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ ProjectApi

Returns a new instance of ProjectApi.



7
8
9
# File 'lib/osdn-client/api/project_api.rb', line 7

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



5
6
7
# File 'lib/osdn-client/api/project_api.rb', line 5

def api_client
  @api_client
end

Instance Method Details

#create_news(title, body, group_id, opts = {}) ⇒ String

Parameters:

  • title

    news title

  • body

    news body in OSDN Wiki format.

  • group_id

    group_id the news created in

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


77
78
79
80
# File 'lib/osdn-client/api/project_api.rb', line 77

def create_news(title, body, group_id, opts = {})
  data, status_code, headers = create_news_with_http_info(title, body, group_id, opts)
  return data
end

#create_news_0(id_or_name, title, body, opts = {}) ⇒ String

Parameters:

  • id_or_name

    numeric project id or project name

  • title

    news title

  • body

    news body in OSDN Wiki format.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (String)


1479
1480
1481
1482
# File 'lib/osdn-client/api/project_api.rb', line 1479

def create_news_0(id_or_name, title, body, opts = {})
  data, status_code, headers = create_news_0_with_http_info(id_or_name, title, body, opts)
  return data
end

#create_news_0_with_http_info(id_or_name, title, body, opts = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • id_or_name

    numeric project id or project name

  • title

    news title

  • body

    news body in OSDN Wiki format.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Fixnum, Hash)>)

    String data, response status code and response headers



1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
# File 'lib/osdn-client/api/project_api.rb', line 1491

def create_news_0_with_http_info(id_or_name, title, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#create_news_0 ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling create_news_0" if id_or_name.nil?
  
  # verify the required parameter 'title' is set
  fail "Missing the required parameter 'title' when calling create_news_0" if title.nil?
  
  # verify the required parameter 'body' is set
  fail "Missing the required parameter 'body' when calling create_news_0" if body.nil?
  
  # resource path
  path = "/project/{id_or_name}/news".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)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["title"] = title
  form_params["body"] = body

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:POST, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#create_news_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_news_with_http_info(title, body, group_id, opts = {}) ⇒ Array<(String, Fixnum, Hash)>

Returns String data, response status code and response headers.

Parameters:

  • title

    news title

  • body

    news body in OSDN Wiki format.

  • group_id

    group_id the news created in

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(String, Fixnum, Hash)>)

    String data, response status code and response headers



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/osdn-client/api/project_api.rb', line 89

def create_news_with_http_info(title, body, group_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#create_news ..."
  end
  
  # verify the required parameter 'title' is set
  fail "Missing the required parameter 'title' when calling create_news" if title.nil?
  
  # verify the required parameter 'body' is set
  fail "Missing the required parameter 'body' when calling create_news" if body.nil?
  
  # verify the required parameter 'group_id' is set
  fail "Missing the required parameter 'group_id' when calling create_news" if group_id.nil?
  
  # resource path
  path = "/news".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'group_id'] = group_id

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["title"] = title
  form_params["body"] = body

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:POST, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'String')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#create_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_package(id_or_name, name, opts = {}) ⇒ Package

Create a package.

Parameters:

  • id_or_name

    numeric project id or project name

  • name

    package name

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:



461
462
463
464
# File 'lib/osdn-client/api/project_api.rb', line 461

def create_package(id_or_name, name, opts = {})
  data, status_code, headers = create_package_with_http_info(id_or_name, name, opts)
  return data
end

#create_package_with_http_info(id_or_name, name, opts = {}) ⇒ Array<(Package, Fixnum, Hash)>

Create a package.

Parameters:

  • id_or_name

    numeric project id or project name

  • name

    package name

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:

  • (Array<(Package, Fixnum, Hash)>)

    Package data, response status code and response headers



473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'lib/osdn-client/api/project_api.rb', line 473

def create_package_with_http_info(id_or_name, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#create_package ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling create_package" if id_or_name.nil?
  
  # verify the required parameter 'name' is set
  fail "Missing the required parameter 'name' when calling create_package" if name.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs".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)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["name"] = name
  form_params["visibility"] = opts[:'visibility'] if opts[:'visibility']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:POST, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Package')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#create_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_release(id_or_name, package_id, name, opts = {}) ⇒ Release

Create new release in specified package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • name

    Release name

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

  • :time (String)

    Release datetime. If you set future time, the release hide until specified time.

  • :release_note (String)

    Release note body text.

  • :change_log (String)

    Changelog body text.

Returns:



601
602
603
604
# File 'lib/osdn-client/api/project_api.rb', line 601

def create_release(id_or_name, package_id, name, opts = {})
  data, status_code, headers = create_release_with_http_info(id_or_name, package_id, name, opts)
  return data
end

#create_release_file(id_or_name, package_id, release_id, file, opts = {}) ⇒ RelFile

Create new file in target release.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file

    Upload file in &quot;multipart/form-data&quot;.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:



957
958
959
960
# File 'lib/osdn-client/api/project_api.rb', line 957

def create_release_file(id_or_name, package_id, release_id, file, opts = {})
  data, status_code, headers = create_release_file_with_http_info(id_or_name, package_id, release_id, file, opts)
  return data
end

#create_release_file_with_http_info(id_or_name, package_id, release_id, file, opts = {}) ⇒ Array<(RelFile, Fixnum, Hash)>

Create new file in target release.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file

    Upload file in &quot;multipart/form-data&quot;.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:

  • (Array<(RelFile, Fixnum, Hash)>)

    RelFile data, response status code and response headers



971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
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
# File 'lib/osdn-client/api/project_api.rb', line 971

def create_release_file_with_http_info(id_or_name, package_id, release_id, file, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#create_release_file ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling create_release_file" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling create_release_file" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling create_release_file" if release_id.nil?
  
  # verify the required parameter 'file' is set
  fail "Missing the required parameter 'file' when calling create_release_file" if file.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['multipart/form-data']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["file"] = file
  form_params["visibility"] = opts[:'visibility'] if opts[:'visibility']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:POST, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RelFile')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#create_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#create_release_with_http_info(id_or_name, package_id, name, opts = {}) ⇒ Array<(Release, Fixnum, Hash)>

Create new release in specified package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • name

    Release name

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

  • :time (String)

    Release datetime. If you set future time, the release hide until specified time.

  • :release_note (String)

    Release note body text.

  • :change_log (String)

    Changelog body text.

Returns:

  • (Array<(Release, Fixnum, Hash)>)

    Release data, response status code and response headers



617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
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
# File 'lib/osdn-client/api/project_api.rb', line 617

def create_release_with_http_info(id_or_name, package_id, name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#create_release ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling create_release" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling create_release" if package_id.nil?
  
  # verify the required parameter 'name' is set
  fail "Missing the required parameter 'name' when calling create_release" if name.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["name"] = name
  form_params["visibility"] = opts[:'visibility'] if opts[:'visibility']
  form_params["time"] = opts[:'time'] if opts[:'time']
  form_params["release_note"] = opts[:'release_note'] if opts[:'release_note']
  form_params["change_log"] = opts[:'change_log'] if opts[:'change_log']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:POST, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Release')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#create_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_news(news_id, opts = {}) ⇒ nil

Parameters:

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


210
211
212
213
# File 'lib/osdn-client/api/project_api.rb', line 210

def delete_news(news_id, opts = {})
  delete_news_with_http_info(news_id, opts)
  return nil
end

#delete_news_0(id_or_name, news_id, opts = {}) ⇒ nil

Parameters:

  • id_or_name

    numeric project id or project name

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1617
1618
1619
1620
# File 'lib/osdn-client/api/project_api.rb', line 1617

def delete_news_0(id_or_name, news_id, opts = {})
  delete_news_0_with_http_info(id_or_name, news_id, opts)
  return nil
end

#delete_news_0_with_http_info(id_or_name, news_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • id_or_name

    numeric project id or project name

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
# File 'lib/osdn-client/api/project_api.rb', line 1628

def delete_news_0_with_http_info(id_or_name, news_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#delete_news_0 ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling delete_news_0" if id_or_name.nil?
  
  # verify the required parameter 'news_id' is set
  fail "Missing the required parameter 'news_id' when calling delete_news_0" if news_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/news/{news_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'news_id' + '}', news_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:DELETE, 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: ProjectApi#delete_news_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_news_with_http_info(news_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Returns nil, response status code and response headers.

Parameters:

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
# File 'lib/osdn-client/api/project_api.rb', line 220

def delete_news_with_http_info(news_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#delete_news ..."
  end
  
  # verify the required parameter 'news_id' is set
  fail "Missing the required parameter 'news_id' when calling delete_news" if news_id.nil?
  
  # resource path
  path = "/news/{news_id}".sub('{format}','json').sub('{' + 'news_id' + '}', news_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:DELETE, 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: ProjectApi#delete_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_package(id_or_name, package_id, opts = {}) ⇒ nil

Delete taret package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


680
681
682
683
# File 'lib/osdn-client/api/project_api.rb', line 680

def delete_package(id_or_name, package_id, opts = {})
  delete_package_with_http_info(id_or_name, package_id, opts)
  return nil
end

#delete_package_with_http_info(id_or_name, package_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete taret package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



691
692
693
694
695
696
697
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
# File 'lib/osdn-client/api/project_api.rb', line 691

def delete_package_with_http_info(id_or_name, package_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#delete_package ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling delete_package" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling delete_package" if package_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:DELETE, 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: ProjectApi#delete_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_release(id_or_name, package_id, release_id, opts = {}) ⇒ nil

Delete target release.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1035
1036
1037
1038
# File 'lib/osdn-client/api/project_api.rb', line 1035

def delete_release(id_or_name, package_id, release_id, opts = {})
  delete_release_with_http_info(id_or_name, package_id, release_id, opts)
  return nil
end

#delete_release_file(id_or_name, package_id, release_id, file_id, opts = {}) ⇒ nil

Delete target file.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1265
1266
1267
1268
# File 'lib/osdn-client/api/project_api.rb', line 1265

def delete_release_file(id_or_name, package_id, release_id, file_id, opts = {})
  delete_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts)
  return nil
end

#delete_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete target file.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



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
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
# File 'lib/osdn-client/api/project_api.rb', line 1278

def delete_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#delete_release_file ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling delete_release_file" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling delete_release_file" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling delete_release_file" if release_id.nil?
  
  # verify the required parameter 'file_id' is set
  fail "Missing the required parameter 'file_id' when calling delete_release_file" if file_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}/{file_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s).sub('{' + 'file_id' + '}', file_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:DELETE, 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: ProjectApi#delete_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_release_with_http_info(id_or_name, package_id, release_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete target release.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



1047
1048
1049
1050
1051
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
1093
1094
1095
1096
# File 'lib/osdn-client/api/project_api.rb', line 1047

def delete_release_with_http_info(id_or_name, package_id, release_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#delete_release ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling delete_release" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling delete_release" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling delete_release" if release_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:DELETE, 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: ProjectApi#delete_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#draft_release(id_or_name, package_id, opts = {}) ⇒ Release

Get release draft in specified package. If draft is not exist, it will be created automatically.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



817
818
819
820
# File 'lib/osdn-client/api/project_api.rb', line 817

def draft_release(id_or_name, package_id, opts = {})
  data, status_code, headers = draft_release_with_http_info(id_or_name, package_id, opts)
  return data
end

#draft_release_with_http_info(id_or_name, package_id, opts = {}) ⇒ Array<(Release, Fixnum, Hash)>

Get release draft in specified package. If draft is not exist, it will be created automatically.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Release, Fixnum, Hash)>)

    Release data, response status code and response headers



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
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
# File 'lib/osdn-client/api/project_api.rb', line 828

def draft_release_with_http_info(id_or_name, package_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#draft_release ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling draft_release" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling draft_release" if package_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/draft".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Release')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#draft_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_news(news_id, opts = {}) ⇒ News

Get single news object.

Parameters:

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



149
150
151
152
# File 'lib/osdn-client/api/project_api.rb', line 149

def get_news(news_id, opts = {})
  data, status_code, headers = get_news_with_http_info(news_id, opts)
  return data
end

#get_news_0(id_or_name, news_id, opts = {}) ⇒ News

Get single news object.

Parameters:

  • id_or_name

    numeric project id or project name

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1551
1552
1553
1554
# File 'lib/osdn-client/api/project_api.rb', line 1551

def get_news_0(id_or_name, news_id, opts = {})
  data, status_code, headers = get_news_0_with_http_info(id_or_name, news_id, opts)
  return data
end

#get_news_0_with_http_info(id_or_name, news_id, opts = {}) ⇒ Array<(News, Fixnum, Hash)>

Get single news object.

Parameters:

  • id_or_name

    numeric project id or project name

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(News, Fixnum, Hash)>)

    News data, response status code and response headers



1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
# File 'lib/osdn-client/api/project_api.rb', line 1562

def get_news_0_with_http_info(id_or_name, news_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#get_news_0 ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling get_news_0" if id_or_name.nil?
  
  # verify the required parameter 'news_id' is set
  fail "Missing the required parameter 'news_id' when calling get_news_0" if news_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/news/{news_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'news_id' + '}', news_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'News')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#get_news_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_news_with_http_info(news_id, opts = {}) ⇒ Array<(News, Fixnum, Hash)>

Get single news object.

Parameters:

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(News, Fixnum, Hash)>)

    News data, response status code and response headers



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/osdn-client/api/project_api.rb', line 159

def get_news_with_http_info(news_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#get_news ..."
  end
  
  # verify the required parameter 'news_id' is set
  fail "Missing the required parameter 'news_id' when calling get_news" if news_id.nil?
  
  # resource path
  path = "/news/{news_id}".sub('{format}','json').sub('{' + 'news_id' + '}', news_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'News')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#get_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_package(id_or_name, package_id, opts = {}) ⇒ Package

Get specified package info and release list of the package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



530
531
532
533
# File 'lib/osdn-client/api/project_api.rb', line 530

def get_package(id_or_name, package_id, opts = {})
  data, status_code, headers = get_package_with_http_info(id_or_name, package_id, opts)
  return data
end

#get_package_with_http_info(id_or_name, package_id, opts = {}) ⇒ Array<(Package, Fixnum, Hash)>

Get specified package info and release list of the package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Package, Fixnum, Hash)>)

    Package data, response status code and response headers



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
# File 'lib/osdn-client/api/project_api.rb', line 541

def get_package_with_http_info(id_or_name, package_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#get_package ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling get_package" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling get_package" if package_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Package')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#get_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_project(id_or_name, opts = {}) ⇒ Group

Get project info.

Parameters:

  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



337
338
339
340
# File 'lib/osdn-client/api/project_api.rb', line 337

def get_project(id_or_name, opts = {})
  data, status_code, headers = get_project_with_http_info(id_or_name, opts)
  return data
end

#get_project_with_http_info(id_or_name, opts = {}) ⇒ Array<(Group, Fixnum, Hash)>

Get project info.

Parameters:

  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Group, Fixnum, Hash)>)

    Group data, response status code and response headers



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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# File 'lib/osdn-client/api/project_api.rb', line 347

def get_project_with_http_info(id_or_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#get_project ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling get_project" if id_or_name.nil?
  
  # resource path
  path = "/project/{id_or_name}".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)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Group')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#get_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_release(id_or_name, package_id, release_id, opts = {}) ⇒ Release

Get specified release info and file list of the release.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



884
885
886
887
# File 'lib/osdn-client/api/project_api.rb', line 884

def get_release(id_or_name, package_id, release_id, opts = {})
  data, status_code, headers = get_release_with_http_info(id_or_name, package_id, release_id, opts)
  return data
end

#get_release_file(id_or_name, package_id, release_id, file_id, opts = {}) ⇒ RelFile

Get single file object.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1189
1190
1191
1192
# File 'lib/osdn-client/api/project_api.rb', line 1189

def get_release_file(id_or_name, package_id, release_id, file_id, opts = {})
  data, status_code, headers = get_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts)
  return data
end

#get_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts = {}) ⇒ Array<(RelFile, Fixnum, Hash)>

Get single file object.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RelFile, Fixnum, Hash)>)

    RelFile data, response status code and response headers



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
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
# File 'lib/osdn-client/api/project_api.rb', line 1202

def get_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#get_release_file ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling get_release_file" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling get_release_file" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling get_release_file" if release_id.nil?
  
  # verify the required parameter 'file_id' is set
  fail "Missing the required parameter 'file_id' when calling get_release_file" if file_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}/{file_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s).sub('{' + 'file_id' + '}', file_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RelFile')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#get_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_release_with_http_info(id_or_name, package_id, release_id, opts = {}) ⇒ Array<(Release, Fixnum, Hash)>

Get specified release info and file list of the release.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Release, Fixnum, Hash)>)

    Release data, response status code and response headers



896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
# File 'lib/osdn-client/api/project_api.rb', line 896

def get_release_with_http_info(id_or_name, package_id, release_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#get_release ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling get_release" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling get_release" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling get_release" if release_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Release')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#get_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_news(opts = {}) ⇒ Array<News>

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :group_id (Integer)

    filter by group ID

Returns:



16
17
18
19
# File 'lib/osdn-client/api/project_api.rb', line 16

def list_news(opts = {})
  data, status_code, headers = list_news_with_http_info(opts)
  return data
end

#list_news_0(id_or_name, opts = {}) ⇒ Array<News>

Get news list of spscified project.

Parameters:

  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1416
1417
1418
1419
# File 'lib/osdn-client/api/project_api.rb', line 1416

def list_news_0(id_or_name, opts = {})
  data, status_code, headers = list_news_0_with_http_info(id_or_name, opts)
  return data
end

#list_news_0_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<News>, Fixnum, Hash)>

Get news list of spscified project.

Parameters:

  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<News>, Fixnum, Hash)>)

    Array<News> data, response status code and response headers



1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
# File 'lib/osdn-client/api/project_api.rb', line 1426

def list_news_0_with_http_info(id_or_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#list_news_0 ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling list_news_0" if id_or_name.nil?
  
  # resource path
  path = "/project/{id_or_name}/news".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)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<News>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#list_news_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_news_with_http_info(opts = {}) ⇒ Array<(Array<News>, Fixnum, Hash)>

Returns Array<News> data, response status code and response headers.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :group_id (Integer)

    filter by group ID

Returns:

  • (Array<(Array<News>, Fixnum, Hash)>)

    Array<News> data, response status code and response headers



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/osdn-client/api/project_api.rb', line 26

def list_news_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#list_news ..."
  end
  
  # resource path
  path = "/news".sub('{format}','json')

  # query parameters
  query_params = {}
  query_params[:'group_id'] = opts[:'group_id'] if opts[:'group_id']

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<News>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#list_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#list_packages(id_or_name, opts = {}) ⇒ Array<Package>

Get package list of specified project.

Parameters:

  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



398
399
400
401
# File 'lib/osdn-client/api/project_api.rb', line 398

def list_packages(id_or_name, opts = {})
  data, status_code, headers = list_packages_with_http_info(id_or_name, opts)
  return data
end

#list_packages_with_http_info(id_or_name, opts = {}) ⇒ Array<(Array<Package>, Fixnum, Hash)>

Get package list of specified project.

Parameters:

  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<Package>, Fixnum, Hash)>)

    Array<Package> data, response status code and response headers



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
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
# File 'lib/osdn-client/api/project_api.rb', line 408

def list_packages_with_http_info(id_or_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#list_packages ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling list_packages" if id_or_name.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs".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)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:GET, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<Package>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#list_packages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_news(news_id, opts = {}) ⇒ News

Parameters:

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :title (String)

    news title

  • :body (String)

    news body in OSDN Wiki format.

Returns:



272
273
274
275
# File 'lib/osdn-client/api/project_api.rb', line 272

def update_news(news_id, opts = {})
  data, status_code, headers = update_news_with_http_info(news_id, opts)
  return data
end

#update_news_0(news_id, id_or_name, opts = {}) ⇒ News

Parameters:

  • news_id
  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :title (String)

    news title

  • :body (String)

    news body in OSDN Wiki format.

Returns:



1684
1685
1686
1687
# File 'lib/osdn-client/api/project_api.rb', line 1684

def update_news_0(news_id, id_or_name, opts = {})
  data, status_code, headers = update_news_0_with_http_info(news_id, id_or_name, opts)
  return data
end

#update_news_0_with_http_info(news_id, id_or_name, opts = {}) ⇒ Array<(News, Fixnum, Hash)>

Returns News data, response status code and response headers.

Parameters:

  • news_id
  • id_or_name

    numeric project id or project name

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :title (String)

    news title

  • :body (String)

    news body in OSDN Wiki format.

Returns:

  • (Array<(News, Fixnum, Hash)>)

    News data, response status code and response headers



1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
# File 'lib/osdn-client/api/project_api.rb', line 1697

def update_news_0_with_http_info(news_id, id_or_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#update_news_0 ..."
  end
  
  # verify the required parameter 'news_id' is set
  fail "Missing the required parameter 'news_id' when calling update_news_0" if news_id.nil?
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling update_news_0" if id_or_name.nil?
  
  # resource path
  path = "/project/{id_or_name}/news/{news_id}".sub('{format}','json').sub('{' + 'news_id' + '}', news_id.to_s).sub('{' + 'id_or_name' + '}', id_or_name.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["title"] = opts[:'title'] if opts[:'title']
  form_params["body"] = opts[:'body'] if opts[:'body']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:PATCH, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'News')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#update_news_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_news_with_http_info(news_id, opts = {}) ⇒ Array<(News, Fixnum, Hash)>

Returns News data, response status code and response headers.

Parameters:

  • news_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :title (String)

    news title

  • :body (String)

    news body in OSDN Wiki format.

Returns:

  • (Array<(News, Fixnum, Hash)>)

    News data, response status code and response headers



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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# File 'lib/osdn-client/api/project_api.rb', line 284

def update_news_with_http_info(news_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#update_news ..."
  end
  
  # verify the required parameter 'news_id' is set
  fail "Missing the required parameter 'news_id' when calling update_news" if news_id.nil?
  
  # resource path
  path = "/news/{news_id}".sub('{format}','json').sub('{' + 'news_id' + '}', news_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["title"] = opts[:'title'] if opts[:'title']
  form_params["body"] = opts[:'body'] if opts[:'body']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:PATCH, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'News')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#update_news\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_package(id_or_name, package_id, opts = {}) ⇒ Package

Update tagret package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :name (String)

    package name

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:



747
748
749
750
# File 'lib/osdn-client/api/project_api.rb', line 747

def update_package(id_or_name, package_id, opts = {})
  data, status_code, headers = update_package_with_http_info(id_or_name, package_id, opts)
  return data
end

#update_package_with_http_info(id_or_name, package_id, opts = {}) ⇒ Array<(Package, Fixnum, Hash)>

Update tagret package.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :name (String)

    package name

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:

  • (Array<(Package, Fixnum, Hash)>)

    Package data, response status code and response headers



760
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
804
805
806
807
808
809
# File 'lib/osdn-client/api/project_api.rb', line 760

def update_package_with_http_info(id_or_name, package_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#update_package ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling update_package" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling update_package" if package_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["name"] = opts[:'name'] if opts[:'name']
  form_params["visibility"] = opts[:'visibility'] if opts[:'visibility']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:PATCH, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Package')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#update_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_release(id_or_name, package_id, release_id, opts = {}) ⇒ Release

Update target release.n(Note: If you update draft release, the release will be public automatically.)

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

  • :name (String)

    Release name

  • :time (String)

    Release datetime. If you set future time, the release hide until specified time.

  • :move_to_package_id (Integer)

    If this parameter is specified, the release move to another package.

Returns:



1109
1110
1111
1112
# File 'lib/osdn-client/api/project_api.rb', line 1109

def update_release(id_or_name, package_id, release_id, opts = {})
  data, status_code, headers = update_release_with_http_info(id_or_name, package_id, release_id, opts)
  return data
end

#update_release_file(id_or_name, package_id, release_id, file_id, opts = {}) ⇒ RelFile

Change visibility of target file.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:



1341
1342
1343
1344
# File 'lib/osdn-client/api/project_api.rb', line 1341

def update_release_file(id_or_name, package_id, release_id, file_id, opts = {})
  data, status_code, headers = update_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts)
  return data
end

#update_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts = {}) ⇒ Array<(RelFile, Fixnum, Hash)>

Change visibility of target file.

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • file_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

Returns:

  • (Array<(RelFile, Fixnum, Hash)>)

    RelFile data, response status code and response headers



1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
# File 'lib/osdn-client/api/project_api.rb', line 1355

def update_release_file_with_http_info(id_or_name, package_id, release_id, file_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#update_release_file ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling update_release_file" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling update_release_file" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling update_release_file" if release_id.nil?
  
  # verify the required parameter 'file_id' is set
  fail "Missing the required parameter 'file_id' when calling update_release_file" if file_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}/{file_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s).sub('{' + 'file_id' + '}', file_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["visibility"] = opts[:'visibility'] if opts[:'visibility']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:PATCH, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RelFile')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#update_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_release_with_http_info(id_or_name, package_id, release_id, opts = {}) ⇒ Array<(Release, Fixnum, Hash)>

Update target release.n(Note: If you update draft release, the release will be public automatically.)

Parameters:

  • id_or_name

    numeric project id or project name

  • package_id
  • release_id
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :visibility (String)

    visibility status (public, hidden or private)

  • :name (String)

    Release name

  • :time (String)

    Release datetime. If you set future time, the release hide until specified time.

  • :move_to_package_id (Integer)

    If this parameter is specified, the release move to another package.

Returns:

  • (Array<(Release, Fixnum, Hash)>)

    Release data, response status code and response headers



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
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
# File 'lib/osdn-client/api/project_api.rb', line 1125

def update_release_with_http_info(id_or_name, package_id, release_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug "Calling API: ProjectApi#update_release ..."
  end
  
  # verify the required parameter 'id_or_name' is set
  fail "Missing the required parameter 'id_or_name' when calling update_release" if id_or_name.nil?
  
  # verify the required parameter 'package_id' is set
  fail "Missing the required parameter 'package_id' when calling update_release" if package_id.nil?
  
  # verify the required parameter 'release_id' is set
  fail "Missing the required parameter 'release_id' when calling update_release" if release_id.nil?
  
  # resource path
  path = "/project/{id_or_name}/frs/{package_id}/{release_id}".sub('{format}','json').sub('{' + 'id_or_name' + '}', id_or_name.to_s).sub('{' + 'package_id' + '}', package_id.to_s).sub('{' + 'release_id' + '}', release_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # HTTP header 'Accept' (if needed)
  _header_accept = []
  _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result

  # HTTP header 'Content-Type'
  _header_content_type = ['application/x-www-form-urlencoded']
  header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)

  # form parameters
  form_params = {}
  form_params["visibility"] = opts[:'visibility'] if opts[:'visibility']
  form_params["name"] = opts[:'name'] if opts[:'name']
  form_params["time"] = opts[:'time'] if opts[:'time']
  form_params["move_to_package_id"] = opts[:'move_to_package_id'] if opts[:'move_to_package_id']

  # http body (model)
  post_body = nil
  

  auth_names = ['oauth2-implicit']
  data, status_code, headers = @api_client.call_api(:PATCH, path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Release')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectApi#update_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end