lib/phrase/api/glossaries_api.rb in phrase-2.7.1 vs lib/phrase/api/glossaries_api.rb in phrase-2.7.2
- old
+ new
@@ -5,12 +5,12 @@
attr_accessor :api_client
def initialize(api_client = ApiClient.default)
@api_client = api_client
end
- # List glossaries
- # List all glossaries the current user has access to.
+ # List term bases
+ # List all term bases (previously: glossaries) the current user has access to.
# @param account_id [String] Account 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
@@ -18,12 +18,12 @@
def glossaries_list(account_id, opts = {})
data, _status_code, _headers = glossaries_list_with_http_info(account_id, opts)
data
end
- # List glossaries
- # List all glossaries the current user has access to.
+ # List term bases
+ # List all term bases (previously: glossaries) the current user has access to.
# @param account_id [String] Account 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
@@ -77,24 +77,24 @@
end
response = ::Phrase::Response.new(data, headers)
return response, status_code, headers
end
- # Create a glossary
- # Create a new glossary.
+ # Create a term base
+ # Create a new term base (previously: glossary).
# @param account_id [String] Account ID
# @param glossary_create_parameters [GlossaryCreateParameters]
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @return [Glossary]
def glossary_create(account_id, glossary_create_parameters, opts = {})
data, _status_code, _headers = glossary_create_with_http_info(account_id, glossary_create_parameters, opts)
data
end
- # Create a glossary
- # Create a new glossary.
+ # Create a term base
+ # Create a new term base (previously: glossary).
# @param account_id [String] Account ID
# @param glossary_create_parameters [GlossaryCreateParameters]
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @return [Array<(Response<(Glossary)>, Integer, Hash)>] Response<(Glossary)> data, response status code and response headers
@@ -151,24 +151,24 @@
end
response = ::Phrase::Response.new(data, headers)
return response, status_code, headers
end
- # Delete a glossary
- # Delete an existing glossary.
+ # Delete a term base
+ # Delete an existing term base (previously: glossary).
# @param account_id [String] Account ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @return [nil]
def glossary_delete(account_id, id, opts = {})
data, _status_code, _headers = glossary_delete_with_http_info(account_id, id, opts)
data
end
- # Delete a glossary
- # Delete an existing glossary.
+ # Delete a term base
+ # Delete an existing term base (previously: glossary).
# @param account_id [String] Account ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
@@ -221,24 +221,24 @@
end
response = ::Phrase::Response.new(data, headers)
return response, status_code, headers
end
- # Get a single glossary
- # Get details on a single glossary.
+ # Get a single term base
+ # Get details on a single term base (previously: glossary).
# @param account_id [String] Account ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @return [Glossary]
def glossary_show(account_id, id, opts = {})
data, _status_code, _headers = glossary_show_with_http_info(account_id, id, opts)
data
end
- # Get a single glossary
- # Get details on a single glossary.
+ # Get a single term base
+ # Get details on a single term base (previously: glossary).
# @param account_id [String] Account ID
# @param id [String] ID
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @return [Array<(Response<(Glossary)>, Integer, Hash)>] Response<(Glossary)> data, response status code and response headers
@@ -293,12 +293,12 @@
end
response = ::Phrase::Response.new(data, headers)
return response, status_code, headers
end
- # Update a glossary
- # Update an existing glossary.
+ # Update a term base
+ # Update an existing term base (previously: glossary).
# @param account_id [String] Account ID
# @param id [String] ID
# @param glossary_update_parameters [GlossaryUpdateParameters]
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -306,11 +306,11 @@
def glossary_update(account_id, id, glossary_update_parameters, opts = {})
data, _status_code, _headers = glossary_update_with_http_info(account_id, id, glossary_update_parameters, opts)
data
end
- # Update a glossary
- # Update an existing glossary.
+ # Update a term base
+ # Update an existing term base (previously: glossary).
# @param account_id [String] Account ID
# @param id [String] ID
# @param glossary_update_parameters [GlossaryUpdateParameters]
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)