hubspot-api-client 9.5.0 → 9.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ccfe6fd06109ec65d90da3c0f86705f7e5be6dbcb3363ef29693d82c565cdcc3
4
- data.tar.gz: 8178297f8490805c188951645238c9bcd14e6c9455835320f8bcf37ea424c47d
3
+ metadata.gz: e192af3eb33d3027e48abde53e732e8d14b2a044457e761697d3a6d86e2dd893
4
+ data.tar.gz: f6d52486a30a5a8b40886a4e3ecd0ab055e3361131591fe4d071c8c3efec54de
5
5
  SHA512:
6
- metadata.gz: a689506081f3c5f8d0039fcc3cee7020f31095288c2d27c6313535d4e8d16707172abe0b77ea40b97e5002feb22b2fe7b289c2d394b9b489d74af0b979eeadf3
7
- data.tar.gz: 6a1dfd577ea1751b852bd4dfeff44ee4babbe6440930cdf7b35d713e9fc4181ce9fc2d93ec78c3d212838296a14524b0792df756257b48aa2d55a3c282b0249d
6
+ metadata.gz: 42a5c9703993c4608e3d6424ce6f6fc6cee85932c03ea69cbc5ed0bb0acdf99b14583e4b2b649e98183cd55361a0a0676b058a758c9a6afe4cee580569898d77
7
+ data.tar.gz: e444149db67542db633ffda06a53262ab6529af398afbcee954f94d91984eabc5420cb7f90a895e5ef8b1451504c2120b14d01f18e4115b0f8efb1fa9bf1149e
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [9.5.1] - 2021-03-17
9
+
10
+ - fixed Files::Files api module
11
+
8
12
  ## [9.5.0] - 2021-02-19
9
13
 
10
14
  - added Events api module
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubspot-api-client (9.5.0)
4
+ hubspot-api-client (9.5.1)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  require_all (~> 3.0.0)
7
7
  typhoeus (~> 1.4.0)
data/README.md CHANGED
@@ -7,7 +7,7 @@ Ruby API v3 Client files and sample apps
7
7
 
8
8
  ## Documentation
9
9
 
10
- See the [Hubspot API](https://www.rubydoc.info/github/HubSpot/hubspot-api-ruby/master) docs.
10
+ See the [Hubspot API](https://developers.hubspot.com/docs/api/overview) docs.
11
11
 
12
12
  ## Installation
13
13
 
@@ -382,7 +382,7 @@ module Hubspot
382
382
  post_body = opts[:body]
383
383
 
384
384
  # return_type
385
- return_type = opts[:return_type] || 'File'
385
+ return_type = opts[:return_type] || 'HubspotFile'
386
386
 
387
387
  # auth_names
388
388
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -552,7 +552,7 @@ module Hubspot
552
552
  # @param file_id [String] Id of the desired file.
553
553
  # @param [Hash] opts the optional parameters
554
554
  # @option opts [String] :user_agent
555
- # @option opts [String] :file File data that will replace existing file in the file manager.
555
+ # @option opts [File] :file File data that will replace existing file in the file manager.
556
556
  # @option opts [String] :charset_hunch Character set of given file data.
557
557
  # @option opts [String] :options JSON String representing FileReplaceOptions
558
558
  # @return [File]
@@ -566,7 +566,7 @@ module Hubspot
566
566
  # @param file_id [String] Id of the desired file.
567
567
  # @param [Hash] opts the optional parameters
568
568
  # @option opts [String] :user_agent
569
- # @option opts [String] :file File data that will replace existing file in the file manager.
569
+ # @option opts [File] :file File data that will replace existing file in the file manager.
570
570
  # @option opts [String] :charset_hunch Character set of given file data.
571
571
  # @option opts [String] :options JSON String representing FileReplaceOptions
572
572
  # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
@@ -607,7 +607,7 @@ module Hubspot
607
607
  post_body = opts[:body]
608
608
 
609
609
  # return_type
610
- return_type = opts[:return_type] || 'File'
610
+ return_type = opts[:return_type] || 'HubspotFile'
611
611
 
612
612
  # auth_names
613
613
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -682,7 +682,7 @@ module Hubspot
682
682
  post_body = opts[:body] || @api_client.object_to_http_body(file_update_input)
683
683
 
684
684
  # return_type
685
- return_type = opts[:return_type] || 'File'
685
+ return_type = opts[:return_type] || 'HubspotFile'
686
686
 
687
687
  # auth_names
688
688
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -707,7 +707,7 @@ module Hubspot
707
707
  # Upload a single file with content specified in request body.
708
708
  # @param [Hash] opts the optional parameters
709
709
  # @option opts [String] :user_agent
710
- # @option opts [String] :file File to be uploaded.
710
+ # @option opts [File] :file File to be uploaded.
711
711
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
712
712
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
713
713
  # @option opts [String] :file_name Desired name for the uploaded file.
@@ -723,7 +723,7 @@ module Hubspot
723
723
  # Upload a single file with content specified in request body.
724
724
  # @param [Hash] opts the optional parameters
725
725
  # @option opts [String] :user_agent
726
- # @option opts [String] :file File to be uploaded.
726
+ # @option opts [File] :file File to be uploaded.
727
727
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
728
728
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
729
729
  # @option opts [String] :file_name Desired name for the uploaded file.
@@ -761,7 +761,7 @@ module Hubspot
761
761
  post_body = opts[:body]
762
762
 
763
763
  # return_type
764
- return_type = opts[:return_type] || 'File'
764
+ return_type = opts[:return_type] || 'HubspotFile'
765
765
 
766
766
  # auth_names
767
767
  auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
@@ -127,7 +127,7 @@ module Hubspot
127
127
  # Check to see if the all the properties in the model are valid
128
128
  # @return true if the model is valid
129
129
  def valid?
130
- access_validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "PRIVATE"])
130
+ access_validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"])
131
131
  return false unless access_validator.valid?(@access)
132
132
  true
133
133
  end
@@ -135,7 +135,7 @@ module Hubspot
135
135
  # Custom attribute writer method checking allowed values (enum).
136
136
  # @param [Object] access Object to be assigned
137
137
  def access=(access)
138
- validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "PRIVATE"])
138
+ validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"])
139
139
  unless validator.valid?(access)
140
140
  fail ArgumentError, "invalid value for \"access\", must be one of #{validator.allowable_values}."
141
141
  end
@@ -15,7 +15,7 @@ require 'date'
15
15
  module Hubspot
16
16
  module Files
17
17
  module Files
18
- class File
18
+ class HubspotFile
19
19
  # File ID.
20
20
  attr_accessor :id
21
21
 
@@ -269,7 +269,7 @@ module Hubspot
269
269
  return false if @updated_at.nil?
270
270
  return false if @archived.nil?
271
271
  return false if @access.nil?
272
- access_validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "PRIVATE"])
272
+ access_validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"])
273
273
  return false unless access_validator.valid?(@access)
274
274
  true
275
275
  end
@@ -277,7 +277,7 @@ module Hubspot
277
277
  # Custom attribute writer method checking allowed values (enum).
278
278
  # @param [Object] access Object to be assigned
279
279
  def access=(access)
280
- validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "PRIVATE"])
280
+ validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"])
281
281
  unless validator.valid?(access)
282
282
  fail ArgumentError, "invalid value for \"access\", must be one of #{validator.allowable_values}."
283
283
  end
@@ -184,7 +184,7 @@ module Hubspot
184
184
  # @return true if the model is valid
185
185
  def valid?
186
186
  return false if @access.nil?
187
- access_validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "PRIVATE"])
187
+ access_validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"])
188
188
  return false unless access_validator.valid?(@access)
189
189
  return false if @url.nil?
190
190
  return false if @duplicate_validation_strategy.nil?
@@ -200,7 +200,7 @@ module Hubspot
200
200
  # Custom attribute writer method checking allowed values (enum).
201
201
  # @param [Object] access Object to be assigned
202
202
  def access=(access)
203
- validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "PRIVATE"])
203
+ validator = EnumAttributeValidator.new('String', ["PUBLIC_INDEXABLE", "PUBLIC_NOT_INDEXABLE", "HIDDEN_INDEXABLE", "HIDDEN_NOT_INDEXABLE", "HIDDEN_PRIVATE", "PRIVATE"])
204
204
  unless validator.valid?(access)
205
205
  fail ArgumentError, "invalid value for \"access\", must be one of #{validator.allowable_values}."
206
206
  end
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '9.5.0'
2
+ VERSION = '9.5.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubspot-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.5.0
4
+ version: 9.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HubSpot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-19 00:00:00.000000000 Z
11
+ date: 2021-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -912,7 +912,6 @@ files:
912
912
  - lib/hubspot/codegen/files/files/models/error.rb
913
913
  - lib/hubspot/codegen/files/files/models/error_category.rb
914
914
  - lib/hubspot/codegen/files/files/models/error_detail.rb
915
- - lib/hubspot/codegen/files/files/models/file.rb
916
915
  - lib/hubspot/codegen/files/files/models/file_action_response.rb
917
916
  - lib/hubspot/codegen/files/files/models/file_update_input.rb
918
917
  - lib/hubspot/codegen/files/files/models/folder.rb
@@ -920,6 +919,7 @@ files:
920
919
  - lib/hubspot/codegen/files/files/models/folder_input.rb
921
920
  - lib/hubspot/codegen/files/files/models/folder_update_input.rb
922
921
  - lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb
922
+ - lib/hubspot/codegen/files/files/models/hubspot_file.rb
923
923
  - lib/hubspot/codegen/files/files/models/import_from_url_input.rb
924
924
  - lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb
925
925
  - lib/hubspot/codegen/files/files/models/next_page.rb