carbon_ruby_sdk 0.2.49 → 0.2.50

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: 5377eddec4484fc632907259ca881b18e2de0d89ba45f11e39cf83f3b558b3db
4
- data.tar.gz: acd1aefa8532e6dffa4bb78ddd49bf8c44a0bc6bd6b3b82f315f4f30a2f574a3
3
+ metadata.gz: 835371f6fb44f5dd9e26d7a74873c8d84fe16cfc43120194af7fb443fa76c6e7
4
+ data.tar.gz: 0b7fc9ab32ab52b1f56ac8e23b512182cb192d78593e93a3eadae6a5c609fa05
5
5
  SHA512:
6
- metadata.gz: 37b917b98b2ba00b55bd034e927cc7ddd64df51c1906152b49ab8293a577b8d6a3e1fb68b2f5a547e98860e1fb9316c57a3a01b28a4937f365a950a85cc70dd2
7
- data.tar.gz: 100ad2f69c198ac3972519b3f4b5a3408a4916ebcfbdc2feb593b87a2c0b0091fa988da9f57c404069535fd3229b5bc051669e1560792206e3d3e9a6ae2a1ea8
6
+ metadata.gz: 64f3998fd7940d7291f2415ffad5e3c8c369bb0e4dff87807956f6c2f3e5f48f51f23d6b9f244b1a8710242bf5c5bdbf6232cecc2682f93128ed941a9a54185f
7
+ data.tar.gz: 1c56c8a2712ed40ec34b251a95df7d113471a450d5e51e7b021ad22733a74182449d4dae117d9bab6a50f5199b3dde9d57c91af4084df129bdb36b866108ec40
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carbon_ruby_sdk (0.2.49)
4
+ carbon_ruby_sdk (0.2.50)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
@@ -67,7 +67,7 @@ GEM
67
67
  rubocop-ast (>= 1.2.0, < 2.0)
68
68
  ruby-progressbar (~> 1.7)
69
69
  unicode-display_width (>= 1.4.0, < 3.0)
70
- rubocop-ast (1.35.0)
70
+ rubocop-ast (1.36.1)
71
71
  parser (>= 3.3.1.0)
72
72
  ruby-progressbar (1.13.0)
73
73
  ruby2_keywords (0.0.5)
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect external data to LLMs, no matter the source.
8
8
 
9
- [![npm](https://img.shields.io/badge/gem-v0.2.49-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.49)
9
+ [![npm](https://img.shields.io/badge/gem-v0.2.50-blue)](https://rubygems.org/gems/carbon_ruby_sdk/versions/0.2.50)
10
10
 
11
11
  </div>
12
12
 
@@ -120,7 +120,7 @@ Connect external data to LLMs, no matter the source.
120
120
  Add to Gemfile:
121
121
 
122
122
  ```ruby
123
- gem 'carbon_ruby_sdk', '~> 0.2.49'
123
+ gem 'carbon_ruby_sdk', '~> 0.2.50'
124
124
  ```
125
125
 
126
126
  ## Getting Started<a id="getting-started"></a>
@@ -3765,6 +3765,10 @@ p result
3765
3765
  #### ⚙️ Parameters<a id="⚙️-parameters"></a>
3766
3766
 
3767
3767
  ##### ids: Array<[`S3GetFileInput`](./lib/carbon_ruby_sdk/models/s3_get_file_input.rb)><a id="ids-array"></a>
3768
+ Each input should be one of the following: A bucket name, a bucket name and a
3769
+ prefix, or a bucket name and an object key. A prefix is the common path for all
3770
+ objects you want to sync. Paths should end with a forward slash.
3771
+
3768
3772
  ##### tags: `Object`<a id="tags-object"></a>
3769
3773
  ##### chunk_size: `Integer`<a id="chunk_size-integer"></a>
3770
3774
  ##### chunk_overlap: `Integer`<a id="chunk_overlap-integer"></a>
@@ -3668,7 +3668,7 @@ module Carbon
3668
3668
  # and object key as the ID in this endpoint to sync them into Carbon. Additional parameters below can associate
3669
3669
  # data with the selected items or modify the sync behavior
3670
3670
  #
3671
- # @param ids [Array<S3GetFileInput>]
3671
+ # @param ids [Array<S3GetFileInput>] Each input should be one of the following: A bucket name, a bucket name and a prefix, or a bucket name and an object key. A prefix is the common path for all objects you want to sync. Paths should end with a forward slash.
3672
3672
  # @param tags [Object]
3673
3673
  # @param chunk_size [Integer]
3674
3674
  # @param chunk_overlap [Integer]
@@ -3713,7 +3713,7 @@ module Carbon
3713
3713
  # and object key as the ID in this endpoint to sync them into Carbon. Additional parameters below can associate
3714
3714
  # data with the selected items or modify the sync behavior
3715
3715
  #
3716
- # @param ids [Array<S3GetFileInput>]
3716
+ # @param ids [Array<S3GetFileInput>] Each input should be one of the following: A bucket name, a bucket name and a prefix, or a bucket name and an object key. A prefix is the common path for all objects you want to sync. Paths should end with a forward slash.
3717
3717
  # @param tags [Object]
3718
3718
  # @param chunk_size [Integer]
3719
3719
  # @param chunk_overlap [Integer]
@@ -13,6 +13,7 @@ module Carbon
13
13
  class S3FileSyncInput
14
14
  attr_accessor :tags
15
15
 
16
+ # Each input should be one of the following: A bucket name, a bucket name and a prefix, or a bucket name and an object key. A prefix is the common path for all objects you want to sync. Paths should end with a forward slash.
16
17
  attr_accessor :ids
17
18
 
18
19
  attr_accessor :chunk_size
@@ -15,11 +15,14 @@ module Carbon
15
15
 
16
16
  attr_accessor :bucket
17
17
 
18
+ attr_accessor :prefix
19
+
18
20
  # Attribute mapping from ruby-style variable name to JSON key.
19
21
  def self.attribute_map
20
22
  {
21
23
  :'id' => :'id',
22
- :'bucket' => :'bucket'
24
+ :'bucket' => :'bucket',
25
+ :'prefix' => :'prefix'
23
26
  }
24
27
  end
25
28
 
@@ -32,7 +35,8 @@ module Carbon
32
35
  def self.openapi_types
33
36
  {
34
37
  :'id' => :'String',
35
- :'bucket' => :'String'
38
+ :'bucket' => :'String',
39
+ :'prefix' => :'String'
36
40
  }
37
41
  end
38
42
 
@@ -40,7 +44,8 @@ module Carbon
40
44
  def self.openapi_nullable
41
45
  Set.new([
42
46
  :'id',
43
- :'bucket'
47
+ :'bucket',
48
+ :'prefix'
44
49
  ])
45
50
  end
46
51
 
@@ -66,6 +71,10 @@ module Carbon
66
71
  if attributes.key?(:'bucket')
67
72
  self.bucket = attributes[:'bucket']
68
73
  end
74
+
75
+ if attributes.key?(:'prefix')
76
+ self.prefix = attributes[:'prefix']
77
+ end
69
78
  end
70
79
 
71
80
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -87,7 +96,8 @@ module Carbon
87
96
  return true if self.equal?(o)
88
97
  self.class == o.class &&
89
98
  id == o.id &&
90
- bucket == o.bucket
99
+ bucket == o.bucket &&
100
+ prefix == o.prefix
91
101
  end
92
102
 
93
103
  # @see the `==` method
@@ -99,7 +109,7 @@ module Carbon
99
109
  # Calculates hash code according to all attributes.
100
110
  # @return [Integer] Hash code
101
111
  def hash
102
- [id, bucket].hash
112
+ [id, bucket, prefix].hash
103
113
  end
104
114
 
105
115
  # Builds the object from hash
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Carbon
10
- VERSION = '0.2.49'
10
+ VERSION = '0.2.50'
11
11
  end
@@ -31,4 +31,10 @@ describe Carbon::S3GetFileInput do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "prefix"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
34
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carbon_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.49
4
+ version: 0.2.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konfig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2024-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday