hubspot-api-client 9.5.0 → 9.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/hubspot/codegen/files/files/api/files_api.rb +8 -8
- data/lib/hubspot/codegen/files/files/models/file_update_input.rb +2 -2
- data/lib/hubspot/codegen/files/files/models/{file.rb → hubspot_file.rb} +3 -3
- data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +2 -2
- data/lib/hubspot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e192af3eb33d3027e48abde53e732e8d14b2a044457e761697d3a6d86e2dd893
|
4
|
+
data.tar.gz: f6d52486a30a5a8b40886a4e3ecd0ab055e3361131591fe4d071c8c3efec54de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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://
|
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] || '
|
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 [
|
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 [
|
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] || '
|
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] || '
|
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 [
|
710
|
+
# @option opts [File] :file File to be uploaded.
|
711
711
|
# @option opts [String] :folder_id Either 'folderId' or 'folderPath' is required. folderId is the ID of the folder the file will be uploaded to.
|
712
712
|
# @option opts [String] :folder_path Either 'folderPath' or 'folderId' is required. This field represents the destination folder path for the uploaded file. If a path doesn'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 [
|
726
|
+
# @option opts [File] :file File to be uploaded.
|
727
727
|
# @option opts [String] :folder_id Either 'folderId' or 'folderPath' is required. folderId is the ID of the folder the file will be uploaded to.
|
728
728
|
# @option opts [String] :folder_path Either 'folderPath' or 'folderId' is required. This field represents the destination folder path for the uploaded file. If a path doesn'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] || '
|
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
|
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
|
data/lib/hubspot/version.rb
CHANGED
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.
|
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-
|
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
|