lib/MailchimpTransactional/api/metadata_api.rb in MailchimpTransactional-1.0.6 vs lib/MailchimpTransactional/api/metadata_api.rb in MailchimpTransactional-1.0.8
- old
+ new
@@ -1,11 +1,11 @@
=begin
#Mailchimp Transactional API
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
-OpenAPI spec version: 1.0.6
+OpenAPI spec version: 1.0.8
Contact: apihelp@mandrill.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.12
=end
@@ -20,21 +20,21 @@
def initialize(api_key = '', api_client = ApiClient.default)
@api_key = api_key
@api_client = api_client
end
- # /metadata/add
+ # Add metadata field
# Add a new custom metadata field to be indexed for the account.
# @param body
# @param [Hash] opts the optional parameters
# @return [InlineResponse20034]
def add(body = {}, opts = {})
- data, _status_code, _headers = add_with_http_info(body, opts)
+ data = add_with_http_info(body, opts)
data
end
- # /metadata/add
+ # Add metadata field
# Add a new custom metadata field to be indexed for the account.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(InlineResponse20034, Fixnum, Hash)>] InlineResponse20034 data, response status code and response headers
def add_with_http_info(body, opts = {})
@@ -43,28 +43,24 @@
# resource path
local_var_path = '/metadata/add'
# http body (model)
- auth_names = []
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
- :body => body,
- :auth_names => auth_names,
- :return_type => 'InlineResponse20034')
- return data, status_code, headers
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
+ return data
end
- # /metadata/delete
+ # Delete metadata field
# Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
# @param body
# @param [Hash] opts the optional parameters
# @return [InlineResponse20036]
def delete(body = {}, opts = {})
- data, _status_code, _headers = delete_with_http_info(body, opts)
+ data = delete_with_http_info(body, opts)
data
end
- # /metadata/delete
+ # Delete metadata field
# Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(InlineResponse20036, Fixnum, Hash)>] InlineResponse20036 data, response status code and response headers
def delete_with_http_info(body, opts = {})
@@ -73,28 +69,24 @@
# resource path
local_var_path = '/metadata/delete'
# http body (model)
- auth_names = []
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
- :body => body,
- :auth_names => auth_names,
- :return_type => 'InlineResponse20036')
- return data, status_code, headers
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
+ return data
end
- # /metadata/list
+ # List metadata fields
# Get the list of custom metadata fields indexed for the account.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<InlineResponse20033>]
def list(body = {}, opts = {})
- data, _status_code, _headers = list_with_http_info(body, opts)
+ data = list_with_http_info(body, opts)
data
end
- # /metadata/list
+ # List metadata fields
# Get the list of custom metadata fields indexed for the account.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(Array<InlineResponse20033>, Fixnum, Hash)>] Array<InlineResponse20033> data, response status code and response headers
def list_with_http_info(body, opts = {})
@@ -103,29 +95,25 @@
# resource path
local_var_path = '/metadata/list'
# http body (model)
- auth_names = []
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
- :body => body,
- :auth_names => auth_names,
- :return_type => 'Array<InlineResponse20033>')
- return data, status_code, headers
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
+ return data
end
- # /metadata/update
- # Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
+ # Update metadata field
+ # Update an existing custom metadata field.
# @param body
# @param [Hash] opts the optional parameters
# @return [InlineResponse20035]
def update(body = {}, opts = {})
- data, _status_code, _headers = update_with_http_info(body, opts)
+ data = update_with_http_info(body, opts)
data
end
- # /metadata/update
- # Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
+ # Update metadata field
+ # Update an existing custom metadata field.
# @param body
# @param [Hash] opts the optional parameters
# @return [Array<(InlineResponse20035, Fixnum, Hash)>] InlineResponse20035 data, response status code and response headers
def update_with_http_info(body, opts = {})
# add api key to request body
@@ -133,14 +121,10 @@
# resource path
local_var_path = '/metadata/update'
# http body (model)
- auth_names = []
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
- :body => body,
- :auth_names => auth_names,
- :return_type => 'InlineResponse20035')
- return data, status_code, headers
+ data = @api_client.call_api(:POST, local_var_path, :body => body)
+ return data
end
end
end