class OSDNClient::ProjectFrsApi
Attributes
Public Class Methods
# File lib/osdn-client/api/project_frs_api.rb, line 30 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Create a package. @param id_or_name numeric project id or project name @param name package name @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @return [Package]
# File lib/osdn-client/api/project_frs_api.rb, line 41 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 a package. @param id_or_name numeric project id or project name @param name package name @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @return [Array<(Package
, Fixnum, Hash)>] Package
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 53 def create_package_with_http_info(id_or_name, name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.create_package ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.create_package" if id_or_name.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectFrsApi.create_package" if name.nil? # resource path local_var_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) 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["visibility"] = opts[:'visibility'] if !opts[:'visibility'].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 => 'Package') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#create_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create new release in specified package. @param id_or_name numeric project id or project name @param package_id @param name Release
name @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @option opts [DateTime] :time Release
datetime. If you set future time, the release hide until specified time. @option opts [String] :release_note Release
note body text. @option opts [String] :change_log Changelog body text. @return [Release]
# File lib/osdn-client/api/project_frs_api.rb, line 110 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 new file in target release. @param id_or_name numeric project id or project name @param package_id @param release_id @param file Upload file in "multipart/form-data". @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @return [RelFile]
# File lib/osdn-client/api/project_frs_api.rb, line 186 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 new file in target release. @param id_or_name numeric project id or project name @param package_id @param release_id @param file Upload file in "multipart/form-data". @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @return [Array<(RelFile
, Fixnum, Hash)>] RelFile
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 200 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: ProjectFrsApi.create_release_file ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.create_release_file" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.create_release_file" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.create_release_file" if release_id.nil? # verify the required parameter 'file' is set fail ArgumentError, "Missing the required parameter 'file' when calling ProjectFrsApi.create_release_file" if file.nil? # resource path local_var_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) 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 = ['multipart/form-data'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} form_params["file"] = file form_params["visibility"] = opts[:'visibility'] if !opts[:'visibility'].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 => 'RelFile') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#create_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create new release in specified package. @param id_or_name numeric project id or project name @param package_id @param name Release
name @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @option opts [DateTime] :time Release
datetime. If you set future time, the release hide until specified time. @option opts [String] :release_note Release
note body text. @option opts [String] :change_log Changelog body text. @return [Array<(Release
, Fixnum, Hash)>] Release
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 126 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: ProjectFrsApi.create_release ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.create_release" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.create_release" if package_id.nil? # verify the required parameter 'name' is set fail ArgumentError, "Missing the required parameter 'name' when calling ProjectFrsApi.create_release" if name.nil? # resource path local_var_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) 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["visibility"] = opts[:'visibility'] if !opts[:'visibility'].nil? form_params["time"] = opts[:'time'] if !opts[:'time'].nil? form_params["release_note"] = opts[:'release_note'] if !opts[:'release_note'].nil? form_params["change_log"] = opts[:'change_log'] if !opts[:'change_log'].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 => 'Release') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#create_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete taret package. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @return [nil]
# File lib/osdn-client/api/project_frs_api.rb, line 256 def delete_package(id_or_name, package_id, opts = {}) delete_package_with_http_info(id_or_name, package_id, opts) return nil end
Delete taret package. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 267 def delete_package_with_http_info(id_or_name, package_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.delete_package ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.delete_package" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.delete_package" if package_id.nil? # resource path local_var_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) 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: ProjectFrsApi#delete_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete target release. @param id_or_name numeric project id or project name @param package_id @param release_id @param [Hash] opts the optional parameters @return [nil]
# File lib/osdn-client/api/project_frs_api.rb, line 317 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 target file. @param id_or_name numeric project id or project name @param package_id @param release_id @param file_id @param [Hash] opts the optional parameters @return [nil]
# File lib/osdn-client/api/project_frs_api.rb, line 382 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 target file. @param id_or_name numeric project id or project name @param package_id @param release_id @param file_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 395 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: ProjectFrsApi.delete_release_file ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.delete_release_file" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.delete_release_file" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.delete_release_file" if release_id.nil? # verify the required parameter 'file_id' is set fail ArgumentError, "Missing the required parameter 'file_id' when calling ProjectFrsApi.delete_release_file" if file_id.nil? # resource path local_var_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) 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: ProjectFrsApi#delete_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete target release. @param id_or_name numeric project id or project name @param package_id @param release_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 329 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: ProjectFrsApi.delete_release ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.delete_release" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.delete_release" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.delete_release" if release_id.nil? # resource path local_var_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) 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: ProjectFrsApi#delete_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get release draft in specified package. If draft is not exist, it will be created automatically. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @return [Release]
# File lib/osdn-client/api/project_frs_api.rb, line 448 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
Get release draft in specified package. If draft is not exist, it will be created automatically. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @return [Array<(Release
, Fixnum, Hash)>] Release
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 459 def draft_release_with_http_info(id_or_name, package_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.draft_release ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.draft_release" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.draft_release" if package_id.nil? # resource path local_var_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) 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 => 'Release') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#draft_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get project frs admin preferences. @param id_or_name numeric project id or project name @param [Hash] opts the optional parameters @return [FrsAdminPrefs]
# File lib/osdn-client/api/project_frs_api.rb, line 508 def get_frs_adminprefs(id_or_name, opts = {}) data, _status_code, _headers = get_frs_adminprefs_with_http_info(id_or_name, opts) return data end
Get project frs admin preferences. @param id_or_name numeric project id or project name @param [Hash] opts the optional parameters @return [Array<(FrsAdminPrefs
, Fixnum, Hash)>] FrsAdminPrefs
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 518 def get_frs_adminprefs_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.get_frs_adminprefs ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.get_frs_adminprefs" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/frs/admin".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 => 'FrsAdminPrefs') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#get_frs_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get specified package info and release list of the package. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @return [Package]
# File lib/osdn-client/api/project_frs_api.rb, line 566 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 specified package info and release list of the package. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @return [Array<(Package
, Fixnum, Hash)>] Package
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 577 def get_package_with_http_info(id_or_name, package_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.get_package ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.get_package" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.get_package" if package_id.nil? # resource path local_var_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) 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 => 'Package') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#get_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get specified release info and file list of the release. @param id_or_name numeric project id or project name @param package_id @param release_id @param [Hash] opts the optional parameters @return [Release]
# File lib/osdn-client/api/project_frs_api.rb, line 628 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 single file object. @param id_or_name numeric project id or project name @param package_id @param release_id @param file_id @param [Hash] opts the optional parameters @return [RelFile]
# File lib/osdn-client/api/project_frs_api.rb, line 694 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 single file object. @param id_or_name numeric project id or project name @param package_id @param release_id @param file_id @param [Hash] opts the optional parameters @return [Array<(RelFile
, Fixnum, Hash)>] RelFile
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 707 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: ProjectFrsApi.get_release_file ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.get_release_file" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.get_release_file" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.get_release_file" if release_id.nil? # verify the required parameter 'file_id' is set fail ArgumentError, "Missing the required parameter 'file_id' when calling ProjectFrsApi.get_release_file" if file_id.nil? # resource path local_var_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) 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 => 'RelFile') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#get_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get specified release info and file list of the release. @param id_or_name numeric project id or project name @param package_id @param release_id @param [Hash] opts the optional parameters @return [Array<(Release
, Fixnum, Hash)>] Release
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 640 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: ProjectFrsApi.get_release ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.get_release" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.get_release" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.get_release" if release_id.nil? # resource path local_var_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) 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 => 'Release') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#get_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Get package list of specified project. @param id_or_name numeric project id or project name @param [Hash] opts the optional parameters @return [Array<Package>]
# File lib/osdn-client/api/project_frs_api.rb, line 760 def list_packages(id_or_name, opts = {}) data, _status_code, _headers = list_packages_with_http_info(id_or_name, opts) return data end
Get package list of specified project. @param id_or_name numeric project id or project name @param [Hash] opts the optional parameters @return [Array<(Array<Package>, Fixnum, Hash)>] Array<Package> data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 770 def list_packages_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.list_packages ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.list_packages" if id_or_name.nil? # resource path local_var_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) 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<Package>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#list_packages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update project frs admin preferences. @param id_or_name numeric project id or project name @param [Hash] opts the optional parameters @option opts [BOOLEAN] :allow_overwrite Allow overwrite files when filenames are conflict @return [FrsAdminPrefs]
# File lib/osdn-client/api/project_frs_api.rb, line 818 def update_frs_adminprefs(id_or_name, opts = {}) data, _status_code, _headers = update_frs_adminprefs_with_http_info(id_or_name, opts) return data end
Update project frs admin preferences. @param id_or_name numeric project id or project name @param [Hash] opts the optional parameters @option opts [BOOLEAN] :allow_overwrite Allow overwrite files when filenames are conflict @return [Array<(FrsAdminPrefs
, Fixnum, Hash)>] FrsAdminPrefs
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 829 def update_frs_adminprefs_with_http_info(id_or_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.update_frs_adminprefs ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.update_frs_adminprefs" if id_or_name.nil? # resource path local_var_path = "/project/{id_or_name}/frs/admin".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["allow_overwrite"] = opts[:'allow_overwrite'] if !opts[:'allow_overwrite'].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 => 'FrsAdminPrefs') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#update_frs_adminprefs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update tagret package. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @option opts [String] :name package name @option opts [String] :visibility visibility status (public, hidden or private) @return [Package]
# File lib/osdn-client/api/project_frs_api.rb, line 880 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 tagret package. @param id_or_name numeric project id or project name @param package_id @param [Hash] opts the optional parameters @option opts [String] :name package name @option opts [String] :visibility visibility status (public, hidden or private) @return [Array<(Package
, Fixnum, Hash)>] Package
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 893 def update_package_with_http_info(id_or_name, package_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ProjectFrsApi.update_package ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.update_package" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.update_package" if package_id.nil? # resource path local_var_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) 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"] = opts[:'name'] if !opts[:'name'].nil? form_params["visibility"] = opts[:'visibility'] if !opts[:'visibility'].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 => 'Package') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#update_package\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update target release. (Note: If you update draft release, the release will be public automatically.) @param id_or_name numeric project id or project name @param package_id @param release_id @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @option opts [String] :name Release
name @option opts [DateTime] :time Release
datetime. If you set future time, the release hide until specified time. @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package. @return [Release]
# File lib/osdn-client/api/project_frs_api.rb, line 950 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
Change visibility of target file. @param id_or_name numeric project id or project name @param package_id @param release_id @param file_id @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @return [RelFile]
# File lib/osdn-client/api/project_frs_api.rb, line 1025 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
Change visibility of target file. @param id_or_name numeric project id or project name @param package_id @param release_id @param file_id @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @return [Array<(RelFile
, Fixnum, Hash)>] RelFile
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 1039 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: ProjectFrsApi.update_release_file ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.update_release_file" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.update_release_file" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.update_release_file" if release_id.nil? # verify the required parameter 'file_id' is set fail ArgumentError, "Missing the required parameter 'file_id' when calling ProjectFrsApi.update_release_file" if file_id.nil? # resource path local_var_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) 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["visibility"] = opts[:'visibility'] if !opts[:'visibility'].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 => 'RelFile') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#update_release_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update target release. (Note: If you update draft release, the release will be public automatically.) @param id_or_name numeric project id or project name @param package_id @param release_id @param [Hash] opts the optional parameters @option opts [String] :visibility visibility status (public, hidden or private) @option opts [String] :name Release
name @option opts [DateTime] :time Release
datetime. If you set future time, the release hide until specified time. @option opts [Integer] :move_to_package_id If this parameter is specified, the release move to another package. @return [Array<(Release
, Fixnum, Hash)>] Release
data, response status code and response headers
# File lib/osdn-client/api/project_frs_api.rb, line 966 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: ProjectFrsApi.update_release ..." end # verify the required parameter 'id_or_name' is set fail ArgumentError, "Missing the required parameter 'id_or_name' when calling ProjectFrsApi.update_release" if id_or_name.nil? # verify the required parameter 'package_id' is set fail ArgumentError, "Missing the required parameter 'package_id' when calling ProjectFrsApi.update_release" if package_id.nil? # verify the required parameter 'release_id' is set fail ArgumentError, "Missing the required parameter 'release_id' when calling ProjectFrsApi.update_release" if release_id.nil? # resource path local_var_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) 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["visibility"] = opts[:'visibility'] if !opts[:'visibility'].nil? form_params["name"] = opts[:'name'] if !opts[:'name'].nil? form_params["time"] = opts[:'time'] if !opts[:'time'].nil? form_params["move_to_package_id"] = opts[:'move_to_package_id'] if !opts[:'move_to_package_id'].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 => 'Release') if @api_client.config.debugging @api_client.config.logger.debug "API called: ProjectFrsApi#update_release\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end