lib/phrase/api/screenshots_api.rb in phrase-1.0.13 vs lib/phrase/api/screenshots_api.rb in phrase-1.0.14
- old
+ new
@@ -85,10 +85,11 @@
# Delete an existing screenshot.
# @param project_id [String] Project ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
+ # @option opts [String] :branch specify the branch to use
# @return [nil]
def screenshot_delete(project_id, id, opts = {})
data, _status_code, _headers = screenshot_delete_with_http_info(project_id, id, opts)
data
end
@@ -97,10 +98,11 @@
# Delete an existing screenshot.
# @param project_id [String] Project ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
+ # @option opts [String] :branch specify the branch to use
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
def screenshot_delete_with_http_info(project_id, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ScreenshotsApi.screenshot_delete ...'
end
@@ -115,10 +117,11 @@
# resource path
local_var_path = '/projects/{project_id}/screenshots/{id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
# header parameters
header_params = opts[:header_params] || {}
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
@@ -155,10 +158,11 @@
# Get details on a single screenshot for a given project.
# @param project_id [String] Project ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
+ # @option opts [String] :branch specify the branch to use
# @return [Screenshot]
def screenshot_show(project_id, id, opts = {})
data, _status_code, _headers = screenshot_show_with_http_info(project_id, id, opts)
data
end
@@ -167,10 +171,11 @@
# Get details on a single screenshot for a given project.
# @param project_id [String] Project ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
+ # @option opts [String] :branch specify the branch to use
# @return [Array<(Response<(Screenshot)>, Integer, Hash)>] Response<(Screenshot)> data, response status code and response headers
def screenshot_show_with_http_info(project_id, id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ScreenshotsApi.screenshot_show ...'
end
@@ -185,10 +190,11 @@
# resource path
local_var_path = '/projects/{project_id}/screenshots/{id}'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -308,10 +314,11 @@
# @param project_id [String] Project ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [Integer] :page Page number
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
+ # @option opts [String] :branch specify the branch to use
# @option opts [String] :key_id filter by key
# @return [Array<Screenshot>]
def screenshots_list(project_id, opts = {})
data, _status_code, _headers = screenshots_list_with_http_info(project_id, opts)
data
@@ -322,10 +329,11 @@
# @param project_id [String] Project ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [Integer] :page Page number
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
+ # @option opts [String] :branch specify the branch to use
# @option opts [String] :key_id filter by key
# @return [Array<(Response<(Array<Screenshot>)>, Integer, Hash)>] Response<(Array<Screenshot>)> data, response status code and response headers
def screenshots_list_with_http_info(project_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: ScreenshotsApi.screenshots_list ...'
@@ -339,9 +347,10 @@
# query parameters
query_params = opts[:query_params] || {}
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
+ query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
query_params[:'key_id'] = opts[:'key_id'] if !opts[:'key_id'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)