Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch associations query_param to be csv vs multi #263

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions lib/hubspot/codegen/crm/companies/api/basic_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(api_client = ApiClient.default)
end
# Archive
# Move an Object identified by `{companyId}` to the recycling bin.
# @param company_id [String]
# @param company_id [String]
# @param [Hash] opts the optional parameters
# @return [nil]
def archive(company_id, opts = {})
Expand All @@ -35,7 +35,7 @@ def archive(company_id, opts = {})

# Archive
# Move an Object identified by `{companyId}` to the recycling bin.
# @param company_id [String]
# @param company_id [String]
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def archive_with_http_info(company_id, opts = {})
Expand Down Expand Up @@ -88,7 +88,7 @@ def archive_with_http_info(company_id, opts = {})

# Create
# Create a company with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard companies is provided.
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param [Hash] opts the optional parameters
# @return [SimplePublicObject]
def create(simple_public_object_input_for_create, opts = {})
Expand All @@ -98,7 +98,7 @@ def create(simple_public_object_input_for_create, opts = {})

# Create
# Create a company with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard companies is provided.
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param [Hash] opts the optional parameters
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
def create_with_http_info(simple_public_object_input_for_create, opts = {})
Expand Down Expand Up @@ -156,7 +156,7 @@ def create_with_http_info(simple_public_object_input_for_create, opts = {})

# Read
# Read an Object identified by `{companyId}`. `{companyId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Control what is returned via the `properties` query param.
# @param company_id [String]
# @param company_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
Expand All @@ -171,7 +171,7 @@ def get_by_id(company_id, opts = {})

# Read
# Read an Object identified by &#x60;{companyId}&#x60;. &#x60;{companyId}&#x60; refers to the internal object ID by default, or optionally any unique property value as specified by the &#x60;idProperty&#x60; query param. Control what is returned via the &#x60;properties&#x60; query param.
# @param company_id [String]
# @param company_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
Expand All @@ -194,7 +194,7 @@ def get_by_id_with_http_info(company_id, opts = {})
query_params = opts[:query_params] || {}
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :csv) if !opts[:'associations'].nil?
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?

Expand Down Expand Up @@ -270,7 +270,7 @@ def get_page_with_http_info(opts = {})
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :csv) if !opts[:'associations'].nil?
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?

# header parameters
Expand Down Expand Up @@ -309,8 +309,8 @@ def get_page_with_http_info(opts = {})

# Update
# Perform a partial update of an Object identified by `{companyId}`. `{companyId}` refers to the internal object ID by default, or optionally any unique property value as specified by the `idProperty` query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
# @param company_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param company_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param [Hash] opts the optional parameters
# @option opts [String] :id_property The name of a property whose values are unique for this object type
# @return [SimplePublicObject]
Expand All @@ -321,8 +321,8 @@ def update(company_id, simple_public_object_input, opts = {})

# Update
# Perform a partial update of an Object identified by &#x60;{companyId}&#x60;. &#x60;{companyId}&#x60; refers to the internal object ID by default, or optionally any unique property value as specified by the &#x60;idProperty&#x60; query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
# @param company_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param company_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param [Hash] opts the optional parameters
# @option opts [String] :id_property The name of a property whose values are unique for this object type
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
Expand Down
24 changes: 12 additions & 12 deletions lib/hubspot/codegen/crm/contacts/api/basic_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(api_client = ApiClient.default)
end
# Archive
# Move an Object identified by `{contactId}` to the recycling bin.
# @param contact_id [String]
# @param contact_id [String]
# @param [Hash] opts the optional parameters
# @return [nil]
def archive(contact_id, opts = {})
Expand All @@ -35,7 +35,7 @@ def archive(contact_id, opts = {})

# Archive
# Move an Object identified by &#x60;{contactId}&#x60; to the recycling bin.
# @param contact_id [String]
# @param contact_id [String]
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def archive_with_http_info(contact_id, opts = {})
Expand Down Expand Up @@ -88,7 +88,7 @@ def archive_with_http_info(contact_id, opts = {})

# Create
# Create a contact with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard contacts is provided.
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param [Hash] opts the optional parameters
# @return [SimplePublicObject]
def create(simple_public_object_input_for_create, opts = {})
Expand All @@ -98,7 +98,7 @@ def create(simple_public_object_input_for_create, opts = {})

# Create
# Create a contact with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard contacts is provided.
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param simple_public_object_input_for_create [SimplePublicObjectInputForCreate]
# @param [Hash] opts the optional parameters
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
def create_with_http_info(simple_public_object_input_for_create, opts = {})
Expand Down Expand Up @@ -156,7 +156,7 @@ def create_with_http_info(simple_public_object_input_for_create, opts = {})

# Read
# Read an Object identified by `{contactId}`. `{contactId}` refers to the internal object ID. Control what is returned via the `properties` query param.
# @param contact_id [String]
# @param contact_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
Expand All @@ -171,7 +171,7 @@ def get_by_id(contact_id, opts = {})

# Read
# Read an Object identified by &#x60;{contactId}&#x60;. &#x60;{contactId}&#x60; refers to the internal object ID. Control what is returned via the &#x60;properties&#x60; query param.
# @param contact_id [String]
# @param contact_id [String]
# @param [Hash] opts the optional parameters
# @option opts [Array<String>] :properties A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
# @option opts [Array<String>] :properties_with_history A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored.
Expand All @@ -194,7 +194,7 @@ def get_by_id_with_http_info(contact_id, opts = {})
query_params = opts[:query_params] || {}
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :csv) if !opts[:'associations'].nil?
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?

Expand Down Expand Up @@ -270,7 +270,7 @@ def get_page_with_http_info(opts = {})
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :csv) if !opts[:'associations'].nil?
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?

# header parameters
Expand Down Expand Up @@ -309,8 +309,8 @@ def get_page_with_http_info(opts = {})

# Update
# Perform a partial update of an Object identified by `{contactId}`. `{contactId}` refers to the internal object ID. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
# @param contact_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param contact_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param [Hash] opts the optional parameters
# @option opts [String] :id_property The name of a property whose values are unique for this object type
# @return [SimplePublicObject]
Expand All @@ -321,8 +321,8 @@ def update(contact_id, simple_public_object_input, opts = {})

# Update
# Perform a partial update of an Object identified by &#x60;{contactId}&#x60;. &#x60;{contactId}&#x60; refers to the internal object ID. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
# @param contact_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param contact_id [String]
# @param simple_public_object_input [SimplePublicObjectInput]
# @param [Hash] opts the optional parameters
# @option opts [String] :id_property The name of a property whose values are unique for this object type
# @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
Expand Down
Loading