hubspot-api-client 17.0.0.pre.beta.2 → 17.0.0.pre.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/Gemfile.lock +1 -1
- data/lib/hubspot/codegen/crm/associations/schema/api/types_api.rb +97 -0
- data/lib/hubspot/codegen/crm/associations/schema/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/associations/schema/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/associations/schema/configuration.rb +296 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/batch_input_public_association.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/batch_input_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/batch_response_public_association.rb +328 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/batch_response_public_association_multi.rb +328 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/batch_response_public_association_multi_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/batch_response_public_association_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/collection_response_public_association_definition_no_paging.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/error_category.rb +278 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/public_association.rb +258 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/public_association_definition.rb +244 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/public_association_multi.rb +256 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/public_object_id.rb +231 -0
- data/lib/hubspot/codegen/crm/associations/schema/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/associations/v4/api/basic_api.rb +365 -0
- data/lib/hubspot/codegen/crm/associations/v4/api/batch_api.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api_client.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/api_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/configuration.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/association_spec_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_labels_between_object_pair_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_association_multi_with_label_with_errors.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_association_spec_with_label_no_paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_multi_associated_object_with_label_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/error_category.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/error_detail.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/labels_between_object_pair.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/multi_associated_object_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/next_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/paging.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/previous_page.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_create_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_definition_update_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_archive.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_association_multi_with_label.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_default_association_multi_post.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_fetch_associations_batch_request.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/public_gdpr_delete_input.rb +239 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/public_object_id.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_batch_input.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_input.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_input_for_create.rb +248 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/associations/v4/models/standard_error.rb +1 -1
- data/lib/hubspot/codegen/crm/associations/v4/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/api/definitions_api.rb +334 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/api_client.rb +414 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/api_error.rb +65 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/configuration.rb +298 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/association_spec.rb +280 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/association_spec_with_label.rb +289 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_multi_archive.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_association_multi_post.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_default_association_multi_post.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_input_public_fetch_associations_batch_request.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_labels_between_object_pair.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_labels_between_object_pair_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_multi_with_label.rb +330 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_association_multi_with_label_with_errors.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/batch_response_public_default_association.rb +350 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/collection_response_association_spec_with_label_no_paging.rb +234 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/error.rb +309 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/error_category.rb +280 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/error_detail.rb +275 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/labels_between_object_pair.rb +290 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/multi_associated_object_with_label.rb +248 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/next_page.rb +241 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/paging.rb +236 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/previous_page.rb +241 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_create_request.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_definition_update_request.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_multi_archive.rb +248 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_multi_post.rb +262 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_association_multi_with_label.rb +257 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_default_association.rb +260 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_default_association_multi_post.rb +246 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_fetch_associations_batch_request.rb +241 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/associations/v4/schema/models/standard_error.rb +326 -0
- data/lib/hubspot/codegen/crm/objects/communications/api/basic_api.rb +391 -0
- data/lib/hubspot/codegen/crm/objects/communications/api/batch_api.rb +295 -0
- data/lib/hubspot/codegen/crm/objects/communications/api/public_object_api.rb +94 -0
- data/lib/hubspot/codegen/crm/objects/communications/api/search_api.rb +92 -0
- data/lib/hubspot/codegen/crm/objects/communications/api_client.rb +412 -0
- data/lib/hubspot/codegen/crm/objects/communications/api_error.rb +63 -0
- data/lib/hubspot/codegen/crm/objects/communications/configuration.rb +296 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/associated_id.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/association_spec.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_input_simple_public_object_batch_input.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_input_simple_public_object_id.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_input_simple_public_object_input_for_create.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_read_input_simple_public_object_id.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_object.rb +328 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/batch_response_simple_public_object_with_errors.rb +348 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/collection_response_associated_id.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/error.rb +307 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/error_category.rb +278 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/error_detail.rb +273 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/filter.rb +308 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/filter_group.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/forward_paging.rb +225 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/next_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/paging.rb +234 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/previous_page.rb +239 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/public_associations_for_object.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/public_merge_input.rb +244 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/public_object_search_request.rb +301 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object.rb +303 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_batch_input.rb +246 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_id.rb +230 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input.rb +232 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_input_for_create.rb +248 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/simple_public_object_with_associations.rb +314 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/standard_error.rb +324 -0
- data/lib/hubspot/codegen/crm/objects/communications/models/value_with_timestamp.rb +285 -0
- data/lib/hubspot/discovery/crm/associations/client.rb +4 -2
- data/lib/hubspot/discovery/crm/associations/schema/api/types_api.rb +15 -0
- data/lib/hubspot/discovery/crm/associations/schema/client.rb +20 -0
- data/lib/hubspot/discovery/crm/associations/v4/api/{definitions_api.rb → basic_api.rb} +1 -1
- data/lib/hubspot/discovery/crm/associations/v4/client.rb +6 -1
- data/lib/hubspot/discovery/crm/associations/v4/schema/api/definitions_api.rb +17 -0
- data/lib/hubspot/discovery/crm/associations/v4/schema/client.rb +22 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +1 -0
- data/lib/hubspot/discovery/crm/objects/communications/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/communications/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/communications/api/public_object_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/communications/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/communications/client.rb +24 -0
- data/lib/hubspot/version.rb +1 -1
- data/spec/discovery/crm/associations/client_spec.rb +1 -0
- data/spec/discovery/crm/associations/schema/types_api_spec.rb +7 -0
- data/spec/discovery/crm/associations/v4/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/associations/v4/client_spec.rb +7 -0
- data/spec/discovery/crm/associations/v4/{definitions_api_spec.rb → schema/definitions_api_spec.rb} +3 -3
- data/spec/discovery/crm/objects/client_spec.rb +1 -0
- data/spec/discovery/crm/objects/communications/basic_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/communications/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/communications/public_object_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/communications/search_api_spec.rb +7 -0
- metadata +145 -10
- data/lib/hubspot/codegen/crm/associations/api/types_api.rb +0 -95
- data/lib/hubspot/codegen/crm/associations/v4/api/definitions_api.rb +0 -332
- data/lib/hubspot/discovery/crm/associations/api/types_api.rb +0 -13
- data/spec/discovery/crm/associations/types_api_spec.rb +0 -7
@@ -0,0 +1,285 @@
|
|
1
|
+
=begin
|
2
|
+
#CrmPublicObjectsService
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v4
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Hubspot
|
17
|
+
module Crm
|
18
|
+
module Associations
|
19
|
+
module V4
|
20
|
+
class ValueWithTimestamp
|
21
|
+
attr_accessor :value
|
22
|
+
|
23
|
+
attr_accessor :timestamp
|
24
|
+
|
25
|
+
attr_accessor :source_type
|
26
|
+
|
27
|
+
attr_accessor :source_id
|
28
|
+
|
29
|
+
attr_accessor :source_label
|
30
|
+
|
31
|
+
attr_accessor :updated_by_user_id
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'value' => :'value',
|
37
|
+
:'timestamp' => :'timestamp',
|
38
|
+
:'source_type' => :'sourceType',
|
39
|
+
:'source_id' => :'sourceId',
|
40
|
+
:'source_label' => :'sourceLabel',
|
41
|
+
:'updated_by_user_id' => :'updatedByUserId'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'value' => :'String',
|
54
|
+
:'timestamp' => :'Time',
|
55
|
+
:'source_type' => :'String',
|
56
|
+
:'source_id' => :'String',
|
57
|
+
:'source_label' => :'String',
|
58
|
+
:'updated_by_user_id' => :'Integer'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# List of attributes with nullable: true
|
63
|
+
def self.openapi_nullable
|
64
|
+
Set.new([
|
65
|
+
])
|
66
|
+
end
|
67
|
+
|
68
|
+
# Initializes the object
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
70
|
+
def initialize(attributes = {})
|
71
|
+
if (!attributes.is_a?(Hash))
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Associations::V4::ValueWithTimestamp` initialize method"
|
73
|
+
end
|
74
|
+
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Associations::V4::ValueWithTimestamp`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
79
|
+
end
|
80
|
+
h[k.to_sym] = v
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'value')
|
84
|
+
self.value = attributes[:'value']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'timestamp')
|
88
|
+
self.timestamp = attributes[:'timestamp']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'source_type')
|
92
|
+
self.source_type = attributes[:'source_type']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'source_id')
|
96
|
+
self.source_id = attributes[:'source_id']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'source_label')
|
100
|
+
self.source_label = attributes[:'source_label']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'updated_by_user_id')
|
104
|
+
self.updated_by_user_id = attributes[:'updated_by_user_id']
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
109
|
+
# @return Array for valid properties with the reasons
|
110
|
+
def list_invalid_properties
|
111
|
+
invalid_properties = Array.new
|
112
|
+
if @value.nil?
|
113
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @timestamp.nil?
|
117
|
+
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
118
|
+
end
|
119
|
+
|
120
|
+
if @source_type.nil?
|
121
|
+
invalid_properties.push('invalid value for "source_type", source_type cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
|
+
invalid_properties
|
125
|
+
end
|
126
|
+
|
127
|
+
# Check to see if the all the properties in the model are valid
|
128
|
+
# @return true if the model is valid
|
129
|
+
def valid?
|
130
|
+
return false if @value.nil?
|
131
|
+
return false if @timestamp.nil?
|
132
|
+
return false if @source_type.nil?
|
133
|
+
true
|
134
|
+
end
|
135
|
+
|
136
|
+
# Checks equality by comparing each attribute.
|
137
|
+
# @param [Object] Object to be compared
|
138
|
+
def ==(o)
|
139
|
+
return true if self.equal?(o)
|
140
|
+
self.class == o.class &&
|
141
|
+
value == o.value &&
|
142
|
+
timestamp == o.timestamp &&
|
143
|
+
source_type == o.source_type &&
|
144
|
+
source_id == o.source_id &&
|
145
|
+
source_label == o.source_label &&
|
146
|
+
updated_by_user_id == o.updated_by_user_id
|
147
|
+
end
|
148
|
+
|
149
|
+
# @see the `==` method
|
150
|
+
# @param [Object] Object to be compared
|
151
|
+
def eql?(o)
|
152
|
+
self == o
|
153
|
+
end
|
154
|
+
|
155
|
+
# Calculates hash code according to all attributes.
|
156
|
+
# @return [Integer] Hash code
|
157
|
+
def hash
|
158
|
+
[value, timestamp, source_type, source_id, source_label, updated_by_user_id].hash
|
159
|
+
end
|
160
|
+
|
161
|
+
# Builds the object from hash
|
162
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
163
|
+
# @return [Object] Returns the model itself
|
164
|
+
def self.build_from_hash(attributes)
|
165
|
+
new.build_from_hash(attributes)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Builds the object from hash
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
+
# @return [Object] Returns the model itself
|
171
|
+
def build_from_hash(attributes)
|
172
|
+
return nil unless attributes.is_a?(Hash)
|
173
|
+
attributes = attributes.transform_keys(&:to_sym)
|
174
|
+
self.class.openapi_types.each_pair do |key, type|
|
175
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
176
|
+
self.send("#{key}=", nil)
|
177
|
+
elsif type =~ /\AArray<(.*)>/i
|
178
|
+
# check to ensure the input is an array given that the attribute
|
179
|
+
# is documented as an array but the input is not
|
180
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
182
|
+
end
|
183
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
184
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
self
|
189
|
+
end
|
190
|
+
|
191
|
+
# Deserializes the data based on type
|
192
|
+
# @param string type Data type
|
193
|
+
# @param string value Value to be deserialized
|
194
|
+
# @return [Object] Deserialized data
|
195
|
+
def _deserialize(type, value)
|
196
|
+
case type.to_sym
|
197
|
+
when :Time
|
198
|
+
Time.parse(value)
|
199
|
+
when :Date
|
200
|
+
Date.parse(value)
|
201
|
+
when :String
|
202
|
+
value.to_s
|
203
|
+
when :Integer
|
204
|
+
value.to_i
|
205
|
+
when :Float
|
206
|
+
value.to_f
|
207
|
+
when :Boolean
|
208
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
209
|
+
true
|
210
|
+
else
|
211
|
+
false
|
212
|
+
end
|
213
|
+
when :Object
|
214
|
+
# generic object (usually a Hash), return directly
|
215
|
+
value
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
219
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each do |k, v|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
else # model
|
228
|
+
# models (e.g. Pet) or oneOf
|
229
|
+
klass = Hubspot::Crm::Associations::V4.const_get(type)
|
230
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the string representation of the object
|
235
|
+
# @return [String] String presentation of the object
|
236
|
+
def to_s
|
237
|
+
to_hash.to_s
|
238
|
+
end
|
239
|
+
|
240
|
+
# to_body is an alias to to_hash (backward compatibility)
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
242
|
+
def to_body
|
243
|
+
to_hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Returns the object in the form of hash
|
247
|
+
# @return [Hash] Returns the object in the form of hash
|
248
|
+
def to_hash
|
249
|
+
hash = {}
|
250
|
+
self.class.attribute_map.each_pair do |attr, param|
|
251
|
+
value = self.send(attr)
|
252
|
+
if value.nil?
|
253
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
254
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
255
|
+
end
|
256
|
+
|
257
|
+
hash[param] = _to_hash(value)
|
258
|
+
end
|
259
|
+
hash
|
260
|
+
end
|
261
|
+
|
262
|
+
# Outputs non-array value in the form of hash
|
263
|
+
# For object, use to_hash. Otherwise, just return the value
|
264
|
+
# @param [Object] value Any valid value
|
265
|
+
# @return [Hash] Returns the value in the form of hash
|
266
|
+
def _to_hash(value)
|
267
|
+
if value.is_a?(Array)
|
268
|
+
value.compact.map { |v| _to_hash(v) }
|
269
|
+
elsif value.is_a?(Hash)
|
270
|
+
{}.tap do |hash|
|
271
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
272
|
+
end
|
273
|
+
elsif value.respond_to? :to_hash
|
274
|
+
value.to_hash
|
275
|
+
else
|
276
|
+
value
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
end
|
281
|
+
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|
@@ -0,0 +1,334 @@
|
|
1
|
+
=begin
|
2
|
+
#CrmPublicAssociationsServiceV4
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v4
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Hubspot
|
16
|
+
module Crm
|
17
|
+
module Associations
|
18
|
+
module V4
|
19
|
+
module Schema
|
20
|
+
class DefinitionsApi
|
21
|
+
attr_accessor :api_client
|
22
|
+
|
23
|
+
def initialize(api_client = ApiClient.default)
|
24
|
+
@api_client = api_client
|
25
|
+
end
|
26
|
+
# Create
|
27
|
+
# Create a user defined association definition
|
28
|
+
# @param from_object_type [String]
|
29
|
+
# @param to_object_type [String]
|
30
|
+
# @param public_association_definition_create_request [PublicAssociationDefinitionCreateRequest]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [CollectionResponseAssociationSpecWithLabelNoPaging]
|
33
|
+
def create(from_object_type, to_object_type, public_association_definition_create_request, opts = {})
|
34
|
+
data, _status_code, _headers = create_with_http_info(from_object_type, to_object_type, public_association_definition_create_request, opts)
|
35
|
+
data
|
36
|
+
end
|
37
|
+
|
38
|
+
# Create
|
39
|
+
# Create a user defined association definition
|
40
|
+
# @param from_object_type [String]
|
41
|
+
# @param to_object_type [String]
|
42
|
+
# @param public_association_definition_create_request [PublicAssociationDefinitionCreateRequest]
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [Array<(CollectionResponseAssociationSpecWithLabelNoPaging, Integer, Hash)>] CollectionResponseAssociationSpecWithLabelNoPaging data, response status code and response headers
|
45
|
+
def create_with_http_info(from_object_type, to_object_type, public_association_definition_create_request, opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: DefinitionsApi.create ...'
|
48
|
+
end
|
49
|
+
# verify the required parameter 'from_object_type' is set
|
50
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
51
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling DefinitionsApi.create"
|
52
|
+
end
|
53
|
+
# verify the required parameter 'to_object_type' is set
|
54
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
55
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling DefinitionsApi.create"
|
56
|
+
end
|
57
|
+
# verify the required parameter 'public_association_definition_create_request' is set
|
58
|
+
if @api_client.config.client_side_validation && public_association_definition_create_request.nil?
|
59
|
+
fail ArgumentError, "Missing the required parameter 'public_association_definition_create_request' when calling DefinitionsApi.create"
|
60
|
+
end
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/crm/v4/associations/{fromObjectType}/{toObjectType}/labels'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = opts[:query_params] || {}
|
66
|
+
|
67
|
+
# header parameters
|
68
|
+
header_params = opts[:header_params] || {}
|
69
|
+
# HTTP header 'Accept' (if needed)
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
71
|
+
# HTTP header 'Content-Type'
|
72
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
73
|
+
if !content_type.nil?
|
74
|
+
header_params['Content-Type'] = content_type
|
75
|
+
end
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = opts[:form_params] || {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(public_association_definition_create_request)
|
82
|
+
|
83
|
+
# return_type
|
84
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseAssociationSpecWithLabelNoPaging'
|
85
|
+
|
86
|
+
# auth_names
|
87
|
+
auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
|
88
|
+
|
89
|
+
new_options = opts.merge(
|
90
|
+
:operation => :"DefinitionsApi.create",
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => return_type
|
97
|
+
)
|
98
|
+
|
99
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug "API called: DefinitionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
102
|
+
end
|
103
|
+
return data, status_code, headers
|
104
|
+
end
|
105
|
+
|
106
|
+
# Delete
|
107
|
+
# Deletes an association definition
|
108
|
+
# @param from_object_type [String]
|
109
|
+
# @param to_object_type [String]
|
110
|
+
# @param association_type_id [Integer]
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [nil]
|
113
|
+
def delete(from_object_type, to_object_type, association_type_id, opts = {})
|
114
|
+
delete_with_http_info(from_object_type, to_object_type, association_type_id, opts)
|
115
|
+
nil
|
116
|
+
end
|
117
|
+
|
118
|
+
# Delete
|
119
|
+
# Deletes an association definition
|
120
|
+
# @param from_object_type [String]
|
121
|
+
# @param to_object_type [String]
|
122
|
+
# @param association_type_id [Integer]
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
125
|
+
def delete_with_http_info(from_object_type, to_object_type, association_type_id, opts = {})
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug 'Calling API: DefinitionsApi.delete ...'
|
128
|
+
end
|
129
|
+
# verify the required parameter 'from_object_type' is set
|
130
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
131
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling DefinitionsApi.delete"
|
132
|
+
end
|
133
|
+
# verify the required parameter 'to_object_type' is set
|
134
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
135
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling DefinitionsApi.delete"
|
136
|
+
end
|
137
|
+
# verify the required parameter 'association_type_id' is set
|
138
|
+
if @api_client.config.client_side_validation && association_type_id.nil?
|
139
|
+
fail ArgumentError, "Missing the required parameter 'association_type_id' when calling DefinitionsApi.delete"
|
140
|
+
end
|
141
|
+
# resource path
|
142
|
+
local_var_path = '/crm/v4/associations/{fromObjectType}/{toObjectType}/labels/{associationTypeId}'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'associationTypeId' + '}', CGI.escape(association_type_id.to_s))
|
143
|
+
|
144
|
+
# query parameters
|
145
|
+
query_params = opts[:query_params] || {}
|
146
|
+
|
147
|
+
# header parameters
|
148
|
+
header_params = opts[:header_params] || {}
|
149
|
+
# HTTP header 'Accept' (if needed)
|
150
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
151
|
+
|
152
|
+
# form parameters
|
153
|
+
form_params = opts[:form_params] || {}
|
154
|
+
|
155
|
+
# http body (model)
|
156
|
+
post_body = opts[:debug_body]
|
157
|
+
|
158
|
+
# return_type
|
159
|
+
return_type = opts[:debug_return_type]
|
160
|
+
|
161
|
+
# auth_names
|
162
|
+
auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
|
163
|
+
|
164
|
+
new_options = opts.merge(
|
165
|
+
:operation => :"DefinitionsApi.delete",
|
166
|
+
:header_params => header_params,
|
167
|
+
:query_params => query_params,
|
168
|
+
:form_params => form_params,
|
169
|
+
:body => post_body,
|
170
|
+
:auth_names => auth_names,
|
171
|
+
:return_type => return_type
|
172
|
+
)
|
173
|
+
|
174
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
175
|
+
if @api_client.config.debugging
|
176
|
+
@api_client.config.logger.debug "API called: DefinitionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
177
|
+
end
|
178
|
+
return data, status_code, headers
|
179
|
+
end
|
180
|
+
|
181
|
+
# Read
|
182
|
+
# Returns all association types between two object types
|
183
|
+
# @param from_object_type [String]
|
184
|
+
# @param to_object_type [String]
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @return [CollectionResponseAssociationSpecWithLabelNoPaging]
|
187
|
+
def get_all(from_object_type, to_object_type, opts = {})
|
188
|
+
data, _status_code, _headers = get_all_with_http_info(from_object_type, to_object_type, opts)
|
189
|
+
data
|
190
|
+
end
|
191
|
+
|
192
|
+
# Read
|
193
|
+
# Returns all association types between two object types
|
194
|
+
# @param from_object_type [String]
|
195
|
+
# @param to_object_type [String]
|
196
|
+
# @param [Hash] opts the optional parameters
|
197
|
+
# @return [Array<(CollectionResponseAssociationSpecWithLabelNoPaging, Integer, Hash)>] CollectionResponseAssociationSpecWithLabelNoPaging data, response status code and response headers
|
198
|
+
def get_all_with_http_info(from_object_type, to_object_type, opts = {})
|
199
|
+
if @api_client.config.debugging
|
200
|
+
@api_client.config.logger.debug 'Calling API: DefinitionsApi.get_all ...'
|
201
|
+
end
|
202
|
+
# verify the required parameter 'from_object_type' is set
|
203
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
204
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling DefinitionsApi.get_all"
|
205
|
+
end
|
206
|
+
# verify the required parameter 'to_object_type' is set
|
207
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
208
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling DefinitionsApi.get_all"
|
209
|
+
end
|
210
|
+
# resource path
|
211
|
+
local_var_path = '/crm/v4/associations/{fromObjectType}/{toObjectType}/labels'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
212
|
+
|
213
|
+
# query parameters
|
214
|
+
query_params = opts[:query_params] || {}
|
215
|
+
|
216
|
+
# header parameters
|
217
|
+
header_params = opts[:header_params] || {}
|
218
|
+
# HTTP header 'Accept' (if needed)
|
219
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
|
220
|
+
|
221
|
+
# form parameters
|
222
|
+
form_params = opts[:form_params] || {}
|
223
|
+
|
224
|
+
# http body (model)
|
225
|
+
post_body = opts[:debug_body]
|
226
|
+
|
227
|
+
# return_type
|
228
|
+
return_type = opts[:debug_return_type] || 'CollectionResponseAssociationSpecWithLabelNoPaging'
|
229
|
+
|
230
|
+
# auth_names
|
231
|
+
auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
|
232
|
+
|
233
|
+
new_options = opts.merge(
|
234
|
+
:operation => :"DefinitionsApi.get_all",
|
235
|
+
:header_params => header_params,
|
236
|
+
:query_params => query_params,
|
237
|
+
:form_params => form_params,
|
238
|
+
:body => post_body,
|
239
|
+
:auth_names => auth_names,
|
240
|
+
:return_type => return_type
|
241
|
+
)
|
242
|
+
|
243
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
244
|
+
if @api_client.config.debugging
|
245
|
+
@api_client.config.logger.debug "API called: DefinitionsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
246
|
+
end
|
247
|
+
return data, status_code, headers
|
248
|
+
end
|
249
|
+
|
250
|
+
# Update
|
251
|
+
# Update a user defined association definition
|
252
|
+
# @param from_object_type [String]
|
253
|
+
# @param to_object_type [String]
|
254
|
+
# @param public_association_definition_update_request [PublicAssociationDefinitionUpdateRequest]
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [nil]
|
257
|
+
def update(from_object_type, to_object_type, public_association_definition_update_request, opts = {})
|
258
|
+
update_with_http_info(from_object_type, to_object_type, public_association_definition_update_request, opts)
|
259
|
+
nil
|
260
|
+
end
|
261
|
+
|
262
|
+
# Update
|
263
|
+
# Update a user defined association definition
|
264
|
+
# @param from_object_type [String]
|
265
|
+
# @param to_object_type [String]
|
266
|
+
# @param public_association_definition_update_request [PublicAssociationDefinitionUpdateRequest]
|
267
|
+
# @param [Hash] opts the optional parameters
|
268
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
269
|
+
def update_with_http_info(from_object_type, to_object_type, public_association_definition_update_request, opts = {})
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug 'Calling API: DefinitionsApi.update ...'
|
272
|
+
end
|
273
|
+
# verify the required parameter 'from_object_type' is set
|
274
|
+
if @api_client.config.client_side_validation && from_object_type.nil?
|
275
|
+
fail ArgumentError, "Missing the required parameter 'from_object_type' when calling DefinitionsApi.update"
|
276
|
+
end
|
277
|
+
# verify the required parameter 'to_object_type' is set
|
278
|
+
if @api_client.config.client_side_validation && to_object_type.nil?
|
279
|
+
fail ArgumentError, "Missing the required parameter 'to_object_type' when calling DefinitionsApi.update"
|
280
|
+
end
|
281
|
+
# verify the required parameter 'public_association_definition_update_request' is set
|
282
|
+
if @api_client.config.client_side_validation && public_association_definition_update_request.nil?
|
283
|
+
fail ArgumentError, "Missing the required parameter 'public_association_definition_update_request' when calling DefinitionsApi.update"
|
284
|
+
end
|
285
|
+
# resource path
|
286
|
+
local_var_path = '/crm/v4/associations/{fromObjectType}/{toObjectType}/labels'.sub('{' + 'fromObjectType' + '}', CGI.escape(from_object_type.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
|
287
|
+
|
288
|
+
# query parameters
|
289
|
+
query_params = opts[:query_params] || {}
|
290
|
+
|
291
|
+
# header parameters
|
292
|
+
header_params = opts[:header_params] || {}
|
293
|
+
# HTTP header 'Accept' (if needed)
|
294
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
295
|
+
# HTTP header 'Content-Type'
|
296
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
297
|
+
if !content_type.nil?
|
298
|
+
header_params['Content-Type'] = content_type
|
299
|
+
end
|
300
|
+
|
301
|
+
# form parameters
|
302
|
+
form_params = opts[:form_params] || {}
|
303
|
+
|
304
|
+
# http body (model)
|
305
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(public_association_definition_update_request)
|
306
|
+
|
307
|
+
# return_type
|
308
|
+
return_type = opts[:debug_return_type]
|
309
|
+
|
310
|
+
# auth_names
|
311
|
+
auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
|
312
|
+
|
313
|
+
new_options = opts.merge(
|
314
|
+
:operation => :"DefinitionsApi.update",
|
315
|
+
:header_params => header_params,
|
316
|
+
:query_params => query_params,
|
317
|
+
:form_params => form_params,
|
318
|
+
:body => post_body,
|
319
|
+
:auth_names => auth_names,
|
320
|
+
:return_type => return_type
|
321
|
+
)
|
322
|
+
|
323
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug "API called: DefinitionsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
326
|
+
end
|
327
|
+
return data, status_code, headers
|
328
|
+
end
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|
332
|
+
end
|
333
|
+
end
|
334
|
+
end
|