hubspot-api-client 16.0.3 → 16.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  5. data/lib/hubspot/codegen/cms/domains/configuration.rb +7 -0
  6. data/lib/hubspot/codegen/crm/companies/api/associations_api.rb +47 -42
  7. data/lib/hubspot/codegen/crm/companies/models/association_spec.rb +276 -0
  8. data/lib/hubspot/codegen/crm/companies/models/association_spec_with_label.rb +285 -0
  9. data/lib/hubspot/codegen/crm/companies/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  10. data/lib/hubspot/codegen/crm/companies/models/labels_between_object_pair.rb +286 -0
  11. data/lib/hubspot/codegen/crm/companies/models/multi_associated_object_with_label.rb +244 -0
  12. data/lib/hubspot/codegen/crm/contacts/api/associations_api.rb +47 -42
  13. data/lib/hubspot/codegen/crm/contacts/models/association_spec.rb +276 -0
  14. data/lib/hubspot/codegen/crm/contacts/models/association_spec_with_label.rb +285 -0
  15. data/lib/hubspot/codegen/crm/contacts/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  16. data/lib/hubspot/codegen/crm/contacts/models/labels_between_object_pair.rb +286 -0
  17. data/lib/hubspot/codegen/crm/contacts/models/multi_associated_object_with_label.rb +244 -0
  18. data/lib/hubspot/codegen/crm/deals/api/associations_api.rb +47 -42
  19. data/lib/hubspot/codegen/crm/deals/models/association_spec.rb +276 -0
  20. data/lib/hubspot/codegen/crm/deals/models/association_spec_with_label.rb +285 -0
  21. data/lib/hubspot/codegen/crm/deals/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  22. data/lib/hubspot/codegen/crm/deals/models/labels_between_object_pair.rb +286 -0
  23. data/lib/hubspot/codegen/crm/deals/models/multi_associated_object_with_label.rb +244 -0
  24. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  25. data/lib/hubspot/codegen/crm/imports/api/public_imports_api.rb +1 -1
  26. data/lib/hubspot/codegen/crm/imports/models/import_row_core.rb +34 -18
  27. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +19 -19
  28. data/lib/hubspot/codegen/crm/imports/models/public_import_response.rb +2 -2
  29. data/lib/hubspot/codegen/crm/line_items/api/associations_api.rb +47 -42
  30. data/lib/hubspot/codegen/crm/line_items/models/association_spec.rb +276 -0
  31. data/lib/hubspot/codegen/crm/line_items/models/association_spec_with_label.rb +285 -0
  32. data/lib/hubspot/codegen/crm/line_items/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  33. data/lib/hubspot/codegen/crm/line_items/models/labels_between_object_pair.rb +286 -0
  34. data/lib/hubspot/codegen/crm/line_items/models/multi_associated_object_with_label.rb +244 -0
  35. data/lib/hubspot/codegen/crm/objects/calls/api/associations_api.rb +47 -42
  36. data/lib/hubspot/codegen/crm/objects/calls/models/association_spec.rb +278 -0
  37. data/lib/hubspot/codegen/crm/objects/calls/models/association_spec_with_label.rb +287 -0
  38. data/lib/hubspot/codegen/crm/objects/calls/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  39. data/lib/hubspot/codegen/crm/objects/calls/models/labels_between_object_pair.rb +288 -0
  40. data/lib/hubspot/codegen/crm/objects/calls/models/multi_associated_object_with_label.rb +246 -0
  41. data/lib/hubspot/codegen/crm/objects/emails/api/associations_api.rb +48 -43
  42. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +2 -2
  43. data/lib/hubspot/codegen/crm/objects/emails/api/batch_api.rb +1 -1
  44. data/lib/hubspot/codegen/crm/objects/emails/api/search_api.rb +1 -1
  45. data/lib/hubspot/codegen/crm/objects/emails/models/association_spec.rb +278 -0
  46. data/lib/hubspot/codegen/crm/objects/emails/models/association_spec_with_label.rb +287 -0
  47. data/lib/hubspot/codegen/crm/objects/emails/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  48. data/lib/hubspot/codegen/crm/objects/emails/models/labels_between_object_pair.rb +288 -0
  49. data/lib/hubspot/codegen/crm/objects/emails/models/multi_associated_object_with_label.rb +246 -0
  50. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +47 -42
  51. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/association_spec.rb +278 -0
  52. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/association_spec_with_label.rb +287 -0
  53. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  54. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/labels_between_object_pair.rb +288 -0
  55. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/multi_associated_object_with_label.rb +246 -0
  56. data/lib/hubspot/codegen/crm/objects/meetings/api/associations_api.rb +47 -42
  57. data/lib/hubspot/codegen/crm/objects/meetings/models/association_spec.rb +278 -0
  58. data/lib/hubspot/codegen/crm/objects/meetings/models/association_spec_with_label.rb +287 -0
  59. data/lib/hubspot/codegen/crm/objects/meetings/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  60. data/lib/hubspot/codegen/crm/objects/meetings/models/labels_between_object_pair.rb +288 -0
  61. data/lib/hubspot/codegen/crm/objects/meetings/models/multi_associated_object_with_label.rb +246 -0
  62. data/lib/hubspot/codegen/crm/objects/notes/api/associations_api.rb +47 -42
  63. data/lib/hubspot/codegen/crm/objects/notes/models/association_spec.rb +278 -0
  64. data/lib/hubspot/codegen/crm/objects/notes/models/association_spec_with_label.rb +287 -0
  65. data/lib/hubspot/codegen/crm/objects/notes/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  66. data/lib/hubspot/codegen/crm/objects/notes/models/labels_between_object_pair.rb +288 -0
  67. data/lib/hubspot/codegen/crm/objects/notes/models/multi_associated_object_with_label.rb +246 -0
  68. data/lib/hubspot/codegen/crm/objects/postal_mail/api/associations_api.rb +264 -0
  69. data/lib/hubspot/codegen/crm/objects/postal_mail/api/basic_api.rb +391 -0
  70. data/lib/hubspot/codegen/crm/objects/postal_mail/api/batch_api.rb +295 -0
  71. data/lib/hubspot/codegen/crm/objects/postal_mail/api/public_object_api.rb +94 -0
  72. data/lib/hubspot/codegen/crm/objects/postal_mail/api/search_api.rb +92 -0
  73. data/lib/hubspot/codegen/crm/objects/postal_mail/api_client.rb +412 -0
  74. data/lib/hubspot/codegen/crm/objects/postal_mail/api_error.rb +63 -0
  75. data/lib/hubspot/codegen/crm/objects/postal_mail/configuration.rb +296 -0
  76. data/lib/hubspot/codegen/crm/objects/postal_mail/models/associated_id.rb +244 -0
  77. data/lib/hubspot/codegen/crm/objects/postal_mail/models/association_spec.rb +278 -0
  78. data/lib/hubspot/codegen/crm/objects/postal_mail/models/association_spec_with_label.rb +287 -0
  79. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_input_simple_public_object_batch_input.rb +232 -0
  80. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_input_simple_public_object_id.rb +232 -0
  81. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_input_simple_public_object_input.rb +232 -0
  82. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_read_input_simple_public_object_id.rb +273 -0
  83. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_response_simple_public_object.rb +328 -0
  84. data/lib/hubspot/codegen/crm/objects/postal_mail/models/batch_response_simple_public_object_with_errors.rb +348 -0
  85. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_associated_id.rb +241 -0
  86. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_multi_associated_object_with_label_forward_paging.rb +241 -0
  87. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_simple_public_object_with_associations_forward_paging.rb +241 -0
  88. data/lib/hubspot/codegen/crm/objects/postal_mail/models/collection_response_with_total_simple_public_object_forward_paging.rb +255 -0
  89. data/lib/hubspot/codegen/crm/objects/postal_mail/models/error.rb +307 -0
  90. data/lib/hubspot/codegen/crm/objects/postal_mail/models/error_category.rb +278 -0
  91. data/lib/hubspot/codegen/crm/objects/postal_mail/models/error_detail.rb +273 -0
  92. data/lib/hubspot/codegen/crm/objects/postal_mail/models/filter.rb +299 -0
  93. data/lib/hubspot/codegen/crm/objects/postal_mail/models/filter_group.rb +232 -0
  94. data/lib/hubspot/codegen/crm/objects/postal_mail/models/forward_paging.rb +225 -0
  95. data/lib/hubspot/codegen/crm/objects/postal_mail/models/labels_between_object_pair.rb +288 -0
  96. data/lib/hubspot/codegen/crm/objects/postal_mail/models/multi_associated_object_with_label.rb +246 -0
  97. data/lib/hubspot/codegen/crm/objects/postal_mail/models/next_page.rb +239 -0
  98. data/lib/hubspot/codegen/crm/objects/postal_mail/models/paging.rb +234 -0
  99. data/lib/hubspot/codegen/crm/objects/postal_mail/models/previous_page.rb +239 -0
  100. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_merge_input.rb +244 -0
  101. data/lib/hubspot/codegen/crm/objects/postal_mail/models/public_object_search_request.rb +301 -0
  102. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object.rb +303 -0
  103. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_batch_input.rb +246 -0
  104. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_id.rb +230 -0
  105. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_input.rb +232 -0
  106. data/lib/hubspot/codegen/crm/objects/postal_mail/models/simple_public_object_with_associations.rb +314 -0
  107. data/lib/hubspot/codegen/crm/objects/postal_mail/models/standard_error.rb +324 -0
  108. data/lib/hubspot/codegen/crm/objects/postal_mail/models/value_with_timestamp.rb +285 -0
  109. data/lib/hubspot/codegen/crm/objects/tasks/api/associations_api.rb +47 -42
  110. data/lib/hubspot/codegen/crm/objects/tasks/models/association_spec.rb +278 -0
  111. data/lib/hubspot/codegen/crm/objects/tasks/models/association_spec_with_label.rb +287 -0
  112. data/lib/hubspot/codegen/crm/objects/tasks/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  113. data/lib/hubspot/codegen/crm/objects/tasks/models/labels_between_object_pair.rb +288 -0
  114. data/lib/hubspot/codegen/crm/objects/tasks/models/multi_associated_object_with_label.rb +246 -0
  115. data/lib/hubspot/codegen/crm/products/api/associations_api.rb +47 -42
  116. data/lib/hubspot/codegen/crm/products/models/association_spec.rb +276 -0
  117. data/lib/hubspot/codegen/crm/products/models/association_spec_with_label.rb +285 -0
  118. data/lib/hubspot/codegen/crm/products/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  119. data/lib/hubspot/codegen/crm/products/models/labels_between_object_pair.rb +286 -0
  120. data/lib/hubspot/codegen/crm/products/models/multi_associated_object_with_label.rb +244 -0
  121. data/lib/hubspot/codegen/crm/quotes/api/associations_api.rb +47 -42
  122. data/lib/hubspot/codegen/crm/quotes/models/association_spec.rb +276 -0
  123. data/lib/hubspot/codegen/crm/quotes/models/association_spec_with_label.rb +285 -0
  124. data/lib/hubspot/codegen/crm/quotes/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  125. data/lib/hubspot/codegen/crm/quotes/models/labels_between_object_pair.rb +286 -0
  126. data/lib/hubspot/codegen/crm/quotes/models/multi_associated_object_with_label.rb +244 -0
  127. data/lib/hubspot/codegen/crm/tickets/api/associations_api.rb +47 -42
  128. data/lib/hubspot/codegen/crm/tickets/models/association_spec.rb +276 -0
  129. data/lib/hubspot/codegen/crm/tickets/models/association_spec_with_label.rb +285 -0
  130. data/lib/hubspot/codegen/crm/tickets/models/{collection_response_associated_id_forward_paging.rb → collection_response_multi_associated_object_with_label_forward_paging.rb} +4 -4
  131. data/lib/hubspot/codegen/crm/tickets/models/labels_between_object_pair.rb +286 -0
  132. data/lib/hubspot/codegen/crm/tickets/models/multi_associated_object_with_label.rb +244 -0
  133. data/lib/hubspot/codegen/marketing/events/api/attendance_subscriber_state_changes_api.rb +2 -2
  134. data/lib/hubspot/codegen/marketing/events/api/marketing_events_external_api.rb +12 -12
  135. data/lib/hubspot/codegen/marketing/events/models/property_value.rb +13 -4
  136. data/lib/hubspot/discovery/crm/objects/client.rb +1 -0
  137. data/lib/hubspot/discovery/crm/objects/postal_mail/api/associations_api.rb +15 -0
  138. data/lib/hubspot/discovery/crm/objects/postal_mail/api/basic_api.rb +15 -0
  139. data/lib/hubspot/discovery/crm/objects/postal_mail/api/batch_api.rb +15 -0
  140. data/lib/hubspot/discovery/crm/objects/postal_mail/api/public_object_api.rb +15 -0
  141. data/lib/hubspot/discovery/crm/objects/postal_mail/api/search_api.rb +15 -0
  142. data/lib/hubspot/discovery/crm/objects/postal_mail/client.rb +25 -0
  143. data/lib/hubspot/version.rb +1 -1
  144. data/spec/discovery/crm/objects/postal_mail/associations_api_spec.rb +9 -0
  145. data/spec/discovery/crm/objects/postal_mail/basic_api_spec.rb +10 -0
  146. data/spec/discovery/crm/objects/postal_mail/batch_api_spec.rb +10 -0
  147. data/spec/discovery/crm/objects/postal_mail/public_object_api_spec.rb +7 -0
  148. data/spec/discovery/crm/objects/postal_mail/search_api_spec.rb +7 -0
  149. metadata +125 -16
@@ -0,0 +1,264 @@
1
+ =begin
2
+ #Postal Mail
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
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 Objects
18
+ module PostalMail
19
+ class AssociationsApi
20
+ attr_accessor :api_client
21
+
22
+ def initialize(api_client = ApiClient.default)
23
+ @api_client = api_client
24
+ end
25
+ # Delete
26
+ # deletes all associations between two records.
27
+ # @param postal_mail [Integer]
28
+ # @param to_object_type [String]
29
+ # @param to_object_id [Integer]
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [nil]
32
+ def archive(postal_mail, to_object_type, to_object_id, opts = {})
33
+ archive_with_http_info(postal_mail, to_object_type, to_object_id, opts)
34
+ nil
35
+ end
36
+
37
+ # Delete
38
+ # deletes all associations between two records.
39
+ # @param postal_mail [Integer]
40
+ # @param to_object_type [String]
41
+ # @param to_object_id [Integer]
42
+ # @param [Hash] opts the optional parameters
43
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
44
+ def archive_with_http_info(postal_mail, to_object_type, to_object_id, opts = {})
45
+ if @api_client.config.debugging
46
+ @api_client.config.logger.debug 'Calling API: AssociationsApi.archive ...'
47
+ end
48
+ # verify the required parameter 'postal_mail' is set
49
+ if @api_client.config.client_side_validation && postal_mail.nil?
50
+ fail ArgumentError, "Missing the required parameter 'postal_mail' when calling AssociationsApi.archive"
51
+ end
52
+ # verify the required parameter 'to_object_type' is set
53
+ if @api_client.config.client_side_validation && to_object_type.nil?
54
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.archive"
55
+ end
56
+ # verify the required parameter 'to_object_id' is set
57
+ if @api_client.config.client_side_validation && to_object_id.nil?
58
+ fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.archive"
59
+ end
60
+ # resource path
61
+ local_var_path = '/crm/v4/objects/postal_mail/{postalMail}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'postalMail' + '}', CGI.escape(postal_mail.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_id.to_s))
62
+
63
+ # query parameters
64
+ query_params = opts[:query_params] || {}
65
+
66
+ # header parameters
67
+ header_params = opts[:header_params] || {}
68
+ # HTTP header 'Accept' (if needed)
69
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
70
+
71
+ # form parameters
72
+ form_params = opts[:form_params] || {}
73
+
74
+ # http body (model)
75
+ post_body = opts[:debug_body]
76
+
77
+ # return_type
78
+ return_type = opts[:debug_return_type]
79
+
80
+ # auth_names
81
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
82
+
83
+ new_options = opts.merge(
84
+ :operation => :"AssociationsApi.archive",
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => return_type
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: AssociationsApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+
100
+ # Create
101
+ # Set association labels between two records.
102
+ # @param postal_mail [Integer]
103
+ # @param to_object_type [String]
104
+ # @param to_object_id [Integer]
105
+ # @param association_spec [Array<AssociationSpec>]
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [LabelsBetweenObjectPair]
108
+ def create(postal_mail, to_object_type, to_object_id, association_spec, opts = {})
109
+ data, _status_code, _headers = create_with_http_info(postal_mail, to_object_type, to_object_id, association_spec, opts)
110
+ data
111
+ end
112
+
113
+ # Create
114
+ # Set association labels between two records.
115
+ # @param postal_mail [Integer]
116
+ # @param to_object_type [String]
117
+ # @param to_object_id [Integer]
118
+ # @param association_spec [Array<AssociationSpec>]
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [Array<(LabelsBetweenObjectPair, Integer, Hash)>] LabelsBetweenObjectPair data, response status code and response headers
121
+ def create_with_http_info(postal_mail, to_object_type, to_object_id, association_spec, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: AssociationsApi.create ...'
124
+ end
125
+ # verify the required parameter 'postal_mail' is set
126
+ if @api_client.config.client_side_validation && postal_mail.nil?
127
+ fail ArgumentError, "Missing the required parameter 'postal_mail' when calling AssociationsApi.create"
128
+ end
129
+ # verify the required parameter 'to_object_type' is set
130
+ if @api_client.config.client_side_validation && to_object_type.nil?
131
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.create"
132
+ end
133
+ # verify the required parameter 'to_object_id' is set
134
+ if @api_client.config.client_side_validation && to_object_id.nil?
135
+ fail ArgumentError, "Missing the required parameter 'to_object_id' when calling AssociationsApi.create"
136
+ end
137
+ # verify the required parameter 'association_spec' is set
138
+ if @api_client.config.client_side_validation && association_spec.nil?
139
+ fail ArgumentError, "Missing the required parameter 'association_spec' when calling AssociationsApi.create"
140
+ end
141
+ # resource path
142
+ local_var_path = '/crm/v4/objects/postal_mail/{postalMail}/associations/{toObjectType}/{toObjectId}'.sub('{' + 'postalMail' + '}', CGI.escape(postal_mail.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s)).sub('{' + 'toObjectId' + '}', CGI.escape(to_object_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(['application/json', '*/*'])
151
+ # HTTP header 'Content-Type'
152
+ content_type = @api_client.select_header_content_type(['application/json'])
153
+ if !content_type.nil?
154
+ header_params['Content-Type'] = content_type
155
+ end
156
+
157
+ # form parameters
158
+ form_params = opts[:form_params] || {}
159
+
160
+ # http body (model)
161
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(association_spec)
162
+
163
+ # return_type
164
+ return_type = opts[:debug_return_type] || 'LabelsBetweenObjectPair'
165
+
166
+ # auth_names
167
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
168
+
169
+ new_options = opts.merge(
170
+ :operation => :"AssociationsApi.create",
171
+ :header_params => header_params,
172
+ :query_params => query_params,
173
+ :form_params => form_params,
174
+ :body => post_body,
175
+ :auth_names => auth_names,
176
+ :return_type => return_type
177
+ )
178
+
179
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
180
+ if @api_client.config.debugging
181
+ @api_client.config.logger.debug "API called: AssociationsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
182
+ end
183
+ return data, status_code, headers
184
+ end
185
+
186
+ # List
187
+ # List all associations of a postal mail by object type. Limit 1000 per call.
188
+ # @param postal_mail [Integer]
189
+ # @param to_object_type [String]
190
+ # @param [Hash] opts the optional parameters
191
+ # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
192
+ # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
193
+ # @return [CollectionResponseMultiAssociatedObjectWithLabelForwardPaging]
194
+ def get_all(postal_mail, to_object_type, opts = {})
195
+ data, _status_code, _headers = get_all_with_http_info(postal_mail, to_object_type, opts)
196
+ data
197
+ end
198
+
199
+ # List
200
+ # List all associations of a postal mail by object type. Limit 1000 per call.
201
+ # @param postal_mail [Integer]
202
+ # @param to_object_type [String]
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
205
+ # @option opts [Integer] :limit The maximum number of results to display per page. (default to 500)
206
+ # @return [Array<(CollectionResponseMultiAssociatedObjectWithLabelForwardPaging, Integer, Hash)>] CollectionResponseMultiAssociatedObjectWithLabelForwardPaging data, response status code and response headers
207
+ def get_all_with_http_info(postal_mail, to_object_type, opts = {})
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug 'Calling API: AssociationsApi.get_all ...'
210
+ end
211
+ # verify the required parameter 'postal_mail' is set
212
+ if @api_client.config.client_side_validation && postal_mail.nil?
213
+ fail ArgumentError, "Missing the required parameter 'postal_mail' when calling AssociationsApi.get_all"
214
+ end
215
+ # verify the required parameter 'to_object_type' is set
216
+ if @api_client.config.client_side_validation && to_object_type.nil?
217
+ fail ArgumentError, "Missing the required parameter 'to_object_type' when calling AssociationsApi.get_all"
218
+ end
219
+ # resource path
220
+ local_var_path = '/crm/v4/objects/postal_mail/{postalMail}/associations/{toObjectType}'.sub('{' + 'postalMail' + '}', CGI.escape(postal_mail.to_s)).sub('{' + 'toObjectType' + '}', CGI.escape(to_object_type.to_s))
221
+
222
+ # query parameters
223
+ query_params = opts[:query_params] || {}
224
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
225
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
226
+
227
+ # header parameters
228
+ header_params = opts[:header_params] || {}
229
+ # HTTP header 'Accept' (if needed)
230
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
231
+
232
+ # form parameters
233
+ form_params = opts[:form_params] || {}
234
+
235
+ # http body (model)
236
+ post_body = opts[:debug_body]
237
+
238
+ # return_type
239
+ return_type = opts[:debug_return_type] || 'CollectionResponseMultiAssociatedObjectWithLabelForwardPaging'
240
+
241
+ # auth_names
242
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
243
+
244
+ new_options = opts.merge(
245
+ :operation => :"AssociationsApi.get_all",
246
+ :header_params => header_params,
247
+ :query_params => query_params,
248
+ :form_params => form_params,
249
+ :body => post_body,
250
+ :auth_names => auth_names,
251
+ :return_type => return_type
252
+ )
253
+
254
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
255
+ if @api_client.config.debugging
256
+ @api_client.config.logger.debug "API called: AssociationsApi#get_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
257
+ end
258
+ return data, status_code, headers
259
+ end
260
+ end
261
+ end
262
+ end
263
+ end
264
+ end
@@ -0,0 +1,391 @@
1
+ =begin
2
+ #Postal Mail
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
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 Objects
18
+ module PostalMail
19
+ class BasicApi
20
+ include Hubspot::Helpers::GetAllHelper
21
+
22
+ attr_accessor :api_client
23
+
24
+ def initialize(api_client = ApiClient.default)
25
+ @api_client = api_client
26
+ end
27
+ # Archive
28
+ # Move an Object identified by `{postalMail}` to the recycling bin.
29
+ # @param postal_mail [String]
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [nil]
32
+ def archive(postal_mail, opts = {})
33
+ archive_with_http_info(postal_mail, opts)
34
+ nil
35
+ end
36
+
37
+ # Archive
38
+ # Move an Object identified by &#x60;{postalMail}&#x60; to the recycling bin.
39
+ # @param postal_mail [String]
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
42
+ def archive_with_http_info(postal_mail, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug 'Calling API: BasicApi.archive ...'
45
+ end
46
+ # verify the required parameter 'postal_mail' is set
47
+ if @api_client.config.client_side_validation && postal_mail.nil?
48
+ fail ArgumentError, "Missing the required parameter 'postal_mail' when calling BasicApi.archive"
49
+ end
50
+ # resource path
51
+ local_var_path = '/crm/v3/objects/postal_mail/{postalMail}'.sub('{' + 'postalMail' + '}', CGI.escape(postal_mail.to_s))
52
+
53
+ # query parameters
54
+ query_params = opts[:query_params] || {}
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+ # HTTP header 'Accept' (if needed)
59
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body]
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type]
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"BasicApi.archive",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: BasicApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Create
91
+ # Create a postal mail with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard postal mail is provided.
92
+ # @param simple_public_object_input [SimplePublicObjectInput]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [SimplePublicObject]
95
+ def create(simple_public_object_input, opts = {})
96
+ data, _status_code, _headers = create_with_http_info(simple_public_object_input, opts)
97
+ data
98
+ end
99
+
100
+ # Create
101
+ # Create a postal mail with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard postal mail is provided.
102
+ # @param simple_public_object_input [SimplePublicObjectInput]
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
105
+ def create_with_http_info(simple_public_object_input, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: BasicApi.create ...'
108
+ end
109
+ # verify the required parameter 'simple_public_object_input' is set
110
+ if @api_client.config.client_side_validation && simple_public_object_input.nil?
111
+ fail ArgumentError, "Missing the required parameter 'simple_public_object_input' when calling BasicApi.create"
112
+ end
113
+ # resource path
114
+ local_var_path = '/crm/v3/objects/postal_mail'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
123
+ # HTTP header 'Content-Type'
124
+ content_type = @api_client.select_header_content_type(['application/json'])
125
+ if !content_type.nil?
126
+ header_params['Content-Type'] = content_type
127
+ end
128
+
129
+ # form parameters
130
+ form_params = opts[:form_params] || {}
131
+
132
+ # http body (model)
133
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input)
134
+
135
+ # return_type
136
+ return_type = opts[:debug_return_type] || 'SimplePublicObject'
137
+
138
+ # auth_names
139
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
140
+
141
+ new_options = opts.merge(
142
+ :operation => :"BasicApi.create",
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => return_type
149
+ )
150
+
151
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug "API called: BasicApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+
158
+ # Read
159
+ # Read an Object identified by `{postalMail}`. `{postalMail}` 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.
160
+ # @param postal_mail [String]
161
+ # @param [Hash] opts the optional parameters
162
+ # @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.
163
+ # @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.
164
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
165
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
166
+ # @option opts [String] :id_property The name of a property whose values are unique for this object type
167
+ # @return [SimplePublicObjectWithAssociations]
168
+ def get_by_id(postal_mail, opts = {})
169
+ data, _status_code, _headers = get_by_id_with_http_info(postal_mail, opts)
170
+ data
171
+ end
172
+
173
+ # Read
174
+ # Read an Object identified by &#x60;{postalMail}&#x60;. &#x60;{postalMail}&#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.
175
+ # @param postal_mail [String]
176
+ # @param [Hash] opts the optional parameters
177
+ # @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.
178
+ # @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.
179
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
180
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
181
+ # @option opts [String] :id_property The name of a property whose values are unique for this object type
182
+ # @return [Array<(SimplePublicObjectWithAssociations, Integer, Hash)>] SimplePublicObjectWithAssociations data, response status code and response headers
183
+ def get_by_id_with_http_info(postal_mail, opts = {})
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_by_id ...'
186
+ end
187
+ # verify the required parameter 'postal_mail' is set
188
+ if @api_client.config.client_side_validation && postal_mail.nil?
189
+ fail ArgumentError, "Missing the required parameter 'postal_mail' when calling BasicApi.get_by_id"
190
+ end
191
+ # resource path
192
+ local_var_path = '/crm/v3/objects/postal_mail/{postalMail}'.sub('{' + 'postalMail' + '}', CGI.escape(postal_mail.to_s))
193
+
194
+ # query parameters
195
+ query_params = opts[:query_params] || {}
196
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
197
+ query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
198
+ query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
199
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
200
+ query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
201
+
202
+ # header parameters
203
+ header_params = opts[:header_params] || {}
204
+ # HTTP header 'Accept' (if needed)
205
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
206
+
207
+ # form parameters
208
+ form_params = opts[:form_params] || {}
209
+
210
+ # http body (model)
211
+ post_body = opts[:debug_body]
212
+
213
+ # return_type
214
+ return_type = opts[:debug_return_type] || 'SimplePublicObjectWithAssociations'
215
+
216
+ # auth_names
217
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
218
+
219
+ new_options = opts.merge(
220
+ :operation => :"BasicApi.get_by_id",
221
+ :header_params => header_params,
222
+ :query_params => query_params,
223
+ :form_params => form_params,
224
+ :body => post_body,
225
+ :auth_names => auth_names,
226
+ :return_type => return_type
227
+ )
228
+
229
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug "API called: BasicApi#get_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
232
+ end
233
+ return data, status_code, headers
234
+ end
235
+
236
+ # List
237
+ # Read a page of postal mail. Control what is returned via the `properties` query param.
238
+ # @param [Hash] opts the optional parameters
239
+ # @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
240
+ # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
241
+ # @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.
242
+ # @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. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
243
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
244
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
245
+ # @return [CollectionResponseSimplePublicObjectWithAssociationsForwardPaging]
246
+ def get_page(opts = {})
247
+ data, _status_code, _headers = get_page_with_http_info(opts)
248
+ data
249
+ end
250
+
251
+ # List
252
+ # Read a page of postal mail. Control what is returned via the &#x60;properties&#x60; query param.
253
+ # @param [Hash] opts the optional parameters
254
+ # @option opts [Integer] :limit The maximum number of results to display per page. (default to 10)
255
+ # @option opts [String] :after The paging cursor token of the last successfully read resource will be returned as the &#x60;paging.next.after&#x60; JSON property of a paged response containing more results.
256
+ # @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.
257
+ # @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. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
258
+ # @option opts [Array<String>] :associations A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
259
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
260
+ # @return [Array<(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, Integer, Hash)>] CollectionResponseSimplePublicObjectWithAssociationsForwardPaging data, response status code and response headers
261
+ def get_page_with_http_info(opts = {})
262
+ if @api_client.config.debugging
263
+ @api_client.config.logger.debug 'Calling API: BasicApi.get_page ...'
264
+ end
265
+ # resource path
266
+ local_var_path = '/crm/v3/objects/postal_mail'
267
+
268
+ # query parameters
269
+ query_params = opts[:query_params] || {}
270
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
271
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
272
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
273
+ query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
274
+ query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
275
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
276
+
277
+ # header parameters
278
+ header_params = opts[:header_params] || {}
279
+ # HTTP header 'Accept' (if needed)
280
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
281
+
282
+ # form parameters
283
+ form_params = opts[:form_params] || {}
284
+
285
+ # http body (model)
286
+ post_body = opts[:debug_body]
287
+
288
+ # return_type
289
+ return_type = opts[:debug_return_type] || 'CollectionResponseSimplePublicObjectWithAssociationsForwardPaging'
290
+
291
+ # auth_names
292
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
293
+
294
+ new_options = opts.merge(
295
+ :operation => :"BasicApi.get_page",
296
+ :header_params => header_params,
297
+ :query_params => query_params,
298
+ :form_params => form_params,
299
+ :body => post_body,
300
+ :auth_names => auth_names,
301
+ :return_type => return_type
302
+ )
303
+
304
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug "API called: BasicApi#get_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
307
+ end
308
+ return data, status_code, headers
309
+ end
310
+
311
+ # Update
312
+ # Perform a partial update of an Object identified by `{postalMail}`. `{postalMail}` 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.
313
+ # @param postal_mail [String]
314
+ # @param simple_public_object_input [SimplePublicObjectInput]
315
+ # @param [Hash] opts the optional parameters
316
+ # @option opts [String] :id_property The name of a property whose values are unique for this object type
317
+ # @return [SimplePublicObject]
318
+ def update(postal_mail, simple_public_object_input, opts = {})
319
+ data, _status_code, _headers = update_with_http_info(postal_mail, simple_public_object_input, opts)
320
+ data
321
+ end
322
+
323
+ # Update
324
+ # Perform a partial update of an Object identified by &#x60;{postalMail}&#x60;. &#x60;{postalMail}&#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.
325
+ # @param postal_mail [String]
326
+ # @param simple_public_object_input [SimplePublicObjectInput]
327
+ # @param [Hash] opts the optional parameters
328
+ # @option opts [String] :id_property The name of a property whose values are unique for this object type
329
+ # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
330
+ def update_with_http_info(postal_mail, simple_public_object_input, opts = {})
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug 'Calling API: BasicApi.update ...'
333
+ end
334
+ # verify the required parameter 'postal_mail' is set
335
+ if @api_client.config.client_side_validation && postal_mail.nil?
336
+ fail ArgumentError, "Missing the required parameter 'postal_mail' when calling BasicApi.update"
337
+ end
338
+ # verify the required parameter 'simple_public_object_input' is set
339
+ if @api_client.config.client_side_validation && simple_public_object_input.nil?
340
+ fail ArgumentError, "Missing the required parameter 'simple_public_object_input' when calling BasicApi.update"
341
+ end
342
+ # resource path
343
+ local_var_path = '/crm/v3/objects/postal_mail/{postalMail}'.sub('{' + 'postalMail' + '}', CGI.escape(postal_mail.to_s))
344
+
345
+ # query parameters
346
+ query_params = opts[:query_params] || {}
347
+ query_params[:'idProperty'] = opts[:'id_property'] if !opts[:'id_property'].nil?
348
+
349
+ # header parameters
350
+ header_params = opts[:header_params] || {}
351
+ # HTTP header 'Accept' (if needed)
352
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
353
+ # HTTP header 'Content-Type'
354
+ content_type = @api_client.select_header_content_type(['application/json'])
355
+ if !content_type.nil?
356
+ header_params['Content-Type'] = content_type
357
+ end
358
+
359
+ # form parameters
360
+ form_params = opts[:form_params] || {}
361
+
362
+ # http body (model)
363
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(simple_public_object_input)
364
+
365
+ # return_type
366
+ return_type = opts[:debug_return_type] || 'SimplePublicObject'
367
+
368
+ # auth_names
369
+ auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2']
370
+
371
+ new_options = opts.merge(
372
+ :operation => :"BasicApi.update",
373
+ :header_params => header_params,
374
+ :query_params => query_params,
375
+ :form_params => form_params,
376
+ :body => post_body,
377
+ :auth_names => auth_names,
378
+ :return_type => return_type
379
+ )
380
+
381
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
382
+ if @api_client.config.debugging
383
+ @api_client.config.logger.debug "API called: BasicApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
384
+ end
385
+ return data, status_code, headers
386
+ end
387
+ end
388
+ end
389
+ end
390
+ end
391
+ end