lib/phrase/api/linked_keys_api.rb in phrase-2.26.0 vs lib/phrase/api/linked_keys_api.rb in phrase-3.0.0
- old
+ new
@@ -12,11 +12,10 @@
# @param project_id [String] Project ID
# @param id [String] Parent Translation Key ID
# @param key_links_batch_destroy_parameters [KeyLinksBatchDestroyParameters]
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
- # @option opts [Boolean] :unlink_parent Whether to unlink the parent key as well and unmark it as linked-key.
# @return [nil]
def key_links_batch_destroy(project_id, id, key_links_batch_destroy_parameters, opts = {})
data, _status_code, _headers = key_links_batch_destroy_with_http_info(project_id, id, key_links_batch_destroy_parameters, opts)
data
end
@@ -26,11 +25,10 @@
# @param project_id [String] Project ID
# @param id [String] Parent Translation Key ID
# @param key_links_batch_destroy_parameters [KeyLinksBatchDestroyParameters]
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
- # @option opts [Boolean] :unlink_parent Whether to unlink the parent key as well and unmark it as linked-key.
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
def key_links_batch_destroy_with_http_info(project_id, id, key_links_batch_destroy_parameters, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: LinkedKeysApi.key_links_batch_destroy ...'
end
@@ -49,11 +47,10 @@
# resource path
local_var_path = '/projects/{project_id}/keys/{id}/key_links'.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[:'unlink_parent'] = opts[:'unlink_parent'] if !opts[:'unlink_parent'].nil?
# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
@@ -246,11 +243,11 @@
end
response = ::Phrase::Response.new(data, headers)
return response, status_code, headers
end
- # Retrieve all child keys linked to a specific parent key
+ # List child keys of a parent key
# Returns detailed information about a parent key, including its linked child keys.
# @param project_id [String] Project ID
# @param id [String] Parent Translation Key ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -258,10 +255,10 @@
def key_links_index(project_id, id, opts = {})
data, _status_code, _headers = key_links_index_with_http_info(project_id, id, opts)
data
end
- # Retrieve all child keys linked to a specific parent key
+ # List child keys of a parent key
# Returns detailed information about a parent key, including its linked child keys.
# @param project_id [String] Project ID
# @param id [String] Parent Translation Key ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)