carbon_ruby_sdk 0.2.38 → 0.2.40

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.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +310 -2
  4. data/lib/carbon_ruby_sdk/api/github_api.rb +825 -0
  5. data/lib/carbon_ruby_sdk/models/comments_input.rb +330 -0
  6. data/lib/carbon_ruby_sdk/models/comments_order_by.rb +36 -0
  7. data/lib/carbon_ruby_sdk/models/comments_response.rb +232 -0
  8. data/lib/carbon_ruby_sdk/models/commit.rb +282 -0
  9. data/lib/carbon_ruby_sdk/models/commit_user.rb +234 -0
  10. data/lib/carbon_ruby_sdk/models/commit_user_nullable.rb +234 -0
  11. data/lib/carbon_ruby_sdk/models/commits_input.rb +307 -0
  12. data/lib/carbon_ruby_sdk/models/commits_response.rb +232 -0
  13. data/lib/carbon_ruby_sdk/models/file_status.rb +41 -0
  14. data/lib/carbon_ruby_sdk/models/files_input.rb +307 -0
  15. data/lib/carbon_ruby_sdk/models/files_response.rb +232 -0
  16. data/lib/carbon_ruby_sdk/models/head_or_base.rb +248 -0
  17. data/lib/carbon_ruby_sdk/models/issue.rb +434 -0
  18. data/lib/carbon_ruby_sdk/models/issue_pr.rb +230 -0
  19. data/lib/carbon_ruby_sdk/models/issue_pr_nullable.rb +230 -0
  20. data/lib/carbon_ruby_sdk/models/issues_filter.rb +217 -0
  21. data/lib/carbon_ruby_sdk/models/issues_input.rb +325 -0
  22. data/lib/carbon_ruby_sdk/models/issues_order_by.rb +37 -0
  23. data/lib/carbon_ruby_sdk/models/issues_response.rb +232 -0
  24. data/lib/carbon_ruby_sdk/models/label.rb +234 -0
  25. data/lib/carbon_ruby_sdk/models/organization_user_files_to_sync_filters.rb +29 -1
  26. data/lib/carbon_ruby_sdk/models/pr_comment.rb +358 -0
  27. data/lib/carbon_ruby_sdk/models/pr_commit.rb +264 -0
  28. data/lib/carbon_ruby_sdk/models/pr_file.rb +342 -0
  29. data/lib/carbon_ruby_sdk/models/pr_order_by.rb +37 -0
  30. data/lib/carbon_ruby_sdk/models/pr_state.rb +36 -0
  31. data/lib/carbon_ruby_sdk/models/pr_state_input.rb +37 -0
  32. data/lib/carbon_ruby_sdk/models/pull_request.rb +438 -0
  33. data/lib/carbon_ruby_sdk/models/pull_request_extended.rb +536 -0
  34. data/lib/carbon_ruby_sdk/models/pull_request_filters.rb +239 -0
  35. data/lib/carbon_ruby_sdk/models/pull_request_response.rb +232 -0
  36. data/lib/carbon_ruby_sdk/models/pull_requests_input.rb +325 -0
  37. data/lib/carbon_ruby_sdk/models/sent_webhook_payload.rb +2 -2
  38. data/lib/carbon_ruby_sdk/models/team.rb +234 -0
  39. data/lib/carbon_ruby_sdk/models/tree.rb +234 -0
  40. data/lib/carbon_ruby_sdk/models/user.rb +234 -0
  41. data/lib/carbon_ruby_sdk/models/user_file.rb +11 -1
  42. data/lib/carbon_ruby_sdk/models/user_nullable.rb +234 -0
  43. data/lib/carbon_ruby_sdk/version.rb +1 -1
  44. data/lib/carbon_ruby_sdk.rb +38 -0
  45. data/spec/api/github_api_spec.rb +112 -0
  46. data/spec/models/comments_input_spec.rb +76 -0
  47. data/spec/models/comments_order_by_spec.rb +22 -0
  48. data/spec/models/comments_response_spec.rb +34 -0
  49. data/spec/models/commit_spec.rb +58 -0
  50. data/spec/models/commit_user_nullable_spec.rb +34 -0
  51. data/spec/models/commit_user_spec.rb +34 -0
  52. data/spec/models/commits_input_spec.rb +64 -0
  53. data/spec/models/commits_response_spec.rb +34 -0
  54. data/spec/models/file_status_spec.rb +22 -0
  55. data/spec/models/files_input_spec.rb +64 -0
  56. data/spec/models/files_response_spec.rb +34 -0
  57. data/spec/models/head_or_base_spec.rb +40 -0
  58. data/spec/models/issue_pr_nullable_spec.rb +34 -0
  59. data/spec/models/issue_pr_spec.rb +34 -0
  60. data/spec/models/issue_spec.rb +124 -0
  61. data/spec/models/issues_filter_spec.rb +28 -0
  62. data/spec/models/issues_input_spec.rb +76 -0
  63. data/spec/models/issues_order_by_spec.rb +22 -0
  64. data/spec/models/issues_response_spec.rb +34 -0
  65. data/spec/models/label_spec.rb +34 -0
  66. data/spec/models/organization_user_files_to_sync_filters_spec.rb +6 -0
  67. data/spec/models/pr_comment_spec.rb +94 -0
  68. data/spec/models/pr_commit_spec.rb +52 -0
  69. data/spec/models/pr_file_spec.rb +82 -0
  70. data/spec/models/pr_order_by_spec.rb +22 -0
  71. data/spec/models/pr_state_input_spec.rb +22 -0
  72. data/spec/models/pr_state_spec.rb +22 -0
  73. data/spec/models/pull_request_extended_spec.rb +166 -0
  74. data/spec/models/pull_request_filters_spec.rb +40 -0
  75. data/spec/models/pull_request_response_spec.rb +34 -0
  76. data/spec/models/pull_request_spec.rb +124 -0
  77. data/spec/models/pull_requests_input_spec.rb +76 -0
  78. data/spec/models/sent_webhook_payload_spec.rb +1 -1
  79. data/spec/models/team_spec.rb +34 -0
  80. data/spec/models/tree_spec.rb +34 -0
  81. data/spec/models/user_file_spec.rb +6 -0
  82. data/spec/models/user_nullable_spec.rb +34 -0
  83. data/spec/models/user_spec.rb +34 -0
  84. metadata +301 -193
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module Carbon
13
+ class UserNullable
14
+ attr_accessor :id
15
+
16
+ attr_accessor :login
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'id' => :'id',
22
+ :'login' => :'login'
23
+ }
24
+ end
25
+
26
+ # Returns all the JSON keys this model knows about
27
+ def self.acceptable_attributes
28
+ attribute_map.values
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'id' => :'Integer',
35
+ :'login' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Carbon::UserNullable` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Carbon::UserNullable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'id')
61
+ self.id = attributes[:'id']
62
+ end
63
+
64
+ if attributes.key?(:'login')
65
+ self.login = attributes[:'login']
66
+ end
67
+ end
68
+
69
+ # Show invalid properties with the reasons. Usually used together with valid?
70
+ # @return Array for valid properties with the reasons
71
+ def list_invalid_properties
72
+ invalid_properties = Array.new
73
+ if @id.nil?
74
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
75
+ end
76
+
77
+ if @login.nil?
78
+ invalid_properties.push('invalid value for "login", login cannot be nil.')
79
+ end
80
+
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ return false if @id.nil?
88
+ return false if @login.nil?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ id == o.id &&
98
+ login == o.login
99
+ end
100
+
101
+ # @see the `==` method
102
+ # @param [Object] Object to be compared
103
+ def eql?(o)
104
+ self == o
105
+ end
106
+
107
+ # Calculates hash code according to all attributes.
108
+ # @return [Integer] Hash code
109
+ def hash
110
+ [id, login].hash
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def self.build_from_hash(attributes)
117
+ new.build_from_hash(attributes)
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def build_from_hash(attributes)
124
+ return nil unless attributes.is_a?(Hash)
125
+ attributes = attributes.transform_keys(&:to_sym)
126
+ self.class.openapi_types.each_pair do |key, type|
127
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
128
+ self.send("#{key}=", nil)
129
+ elsif type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
133
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
+ end
135
+ elsif !attributes[self.class.attribute_map[key]].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
+ end
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :Time
150
+ Time.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :Boolean
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ # models (e.g. Pet) or oneOf
181
+ klass = Carbon.const_get(type)
182
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
+ end
184
+ end
185
+
186
+ # Returns the string representation of the object
187
+ # @return [String] String presentation of the object
188
+ def to_s
189
+ to_hash.to_s
190
+ end
191
+
192
+ # to_body is an alias to to_hash (backward compatibility)
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_body
195
+ to_hash
196
+ end
197
+
198
+ # Returns the object in the form of hash
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_hash
201
+ hash = {}
202
+ self.class.attribute_map.each_pair do |attr, param|
203
+ value = self.send(attr)
204
+ if value.nil?
205
+ is_nullable = self.class.openapi_nullable.include?(attr)
206
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
207
+ end
208
+
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map { |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -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.38'
10
+ VERSION = '0.2.40'
11
11
  end
@@ -37,6 +37,14 @@ require 'carbon_ruby_sdk/models/chunk_properties_nullable'
37
37
  require 'carbon_ruby_sdk/models/chunks_and_embeddings'
38
38
  require 'carbon_ruby_sdk/models/chunks_and_embeddings_upload_input'
39
39
  require 'carbon_ruby_sdk/models/cold_storage_props'
40
+ require 'carbon_ruby_sdk/models/comments_input'
41
+ require 'carbon_ruby_sdk/models/comments_order_by'
42
+ require 'carbon_ruby_sdk/models/comments_response'
43
+ require 'carbon_ruby_sdk/models/commit'
44
+ require 'carbon_ruby_sdk/models/commit_user'
45
+ require 'carbon_ruby_sdk/models/commit_user_nullable'
46
+ require 'carbon_ruby_sdk/models/commits_input'
47
+ require 'carbon_ruby_sdk/models/commits_response'
40
48
  require 'carbon_ruby_sdk/models/confluence_authentication'
41
49
  require 'carbon_ruby_sdk/models/connect_data_source_input'
42
50
  require 'carbon_ruby_sdk/models/connect_data_source_response'
@@ -82,8 +90,11 @@ require 'carbon_ruby_sdk/models/file_formats'
82
90
  require 'carbon_ruby_sdk/models/file_formats_nullable'
83
91
  require 'carbon_ruby_sdk/models/file_statistics'
84
92
  require 'carbon_ruby_sdk/models/file_statistics_nullable'
93
+ require 'carbon_ruby_sdk/models/file_status'
85
94
  require 'carbon_ruby_sdk/models/file_sync_config'
86
95
  require 'carbon_ruby_sdk/models/file_sync_config_nullable'
96
+ require 'carbon_ruby_sdk/models/files_input'
97
+ require 'carbon_ruby_sdk/models/files_response'
87
98
  require 'carbon_ruby_sdk/models/fresh_desk_connect_request'
88
99
  require 'carbon_ruby_sdk/models/freskdesk_authentication'
89
100
  require 'carbon_ruby_sdk/models/generic_success_response'
@@ -99,10 +110,19 @@ require 'carbon_ruby_sdk/models/gong_authentication'
99
110
  require 'carbon_ruby_sdk/models/guru_authentication'
100
111
  require 'carbon_ruby_sdk/models/guru_connect_request'
101
112
  require 'carbon_ruby_sdk/models/http_validation_error'
113
+ require 'carbon_ruby_sdk/models/head_or_base'
102
114
  require 'carbon_ruby_sdk/models/helpdesk_file_types'
103
115
  require 'carbon_ruby_sdk/models/hybrid_search_tuning_params'
104
116
  require 'carbon_ruby_sdk/models/hybrid_search_tuning_params_nullable'
105
117
  require 'carbon_ruby_sdk/models/ids_property'
118
+ require 'carbon_ruby_sdk/models/issue'
119
+ require 'carbon_ruby_sdk/models/issue_pr'
120
+ require 'carbon_ruby_sdk/models/issue_pr_nullable'
121
+ require 'carbon_ruby_sdk/models/issues_filter'
122
+ require 'carbon_ruby_sdk/models/issues_input'
123
+ require 'carbon_ruby_sdk/models/issues_order_by'
124
+ require 'carbon_ruby_sdk/models/issues_response'
125
+ require 'carbon_ruby_sdk/models/label'
106
126
  require 'carbon_ruby_sdk/models/lead'
107
127
  require 'carbon_ruby_sdk/models/lead_filters'
108
128
  require 'carbon_ruby_sdk/models/leads_order_by'
@@ -153,6 +173,12 @@ require 'carbon_ruby_sdk/models/organization_user_files_to_sync_order_by_types'
153
173
  require 'carbon_ruby_sdk/models/organization_user_files_to_sync_query_input'
154
174
  require 'carbon_ruby_sdk/models/outh_url_response'
155
175
  require 'carbon_ruby_sdk/models/outlook_sync_input'
176
+ require 'carbon_ruby_sdk/models/pr_comment'
177
+ require 'carbon_ruby_sdk/models/pr_commit'
178
+ require 'carbon_ruby_sdk/models/pr_file'
179
+ require 'carbon_ruby_sdk/models/pr_order_by'
180
+ require 'carbon_ruby_sdk/models/pr_state'
181
+ require 'carbon_ruby_sdk/models/pr_state_input'
156
182
  require 'carbon_ruby_sdk/models/pagination'
157
183
  require 'carbon_ruby_sdk/models/partial_account'
158
184
  require 'carbon_ruby_sdk/models/partial_account_nullable'
@@ -162,6 +188,11 @@ require 'carbon_ruby_sdk/models/partial_owner'
162
188
  require 'carbon_ruby_sdk/models/partial_owner_nullable'
163
189
  require 'carbon_ruby_sdk/models/phone_number'
164
190
  require 'carbon_ruby_sdk/models/presigned_url_response'
191
+ require 'carbon_ruby_sdk/models/pull_request'
192
+ require 'carbon_ruby_sdk/models/pull_request_extended'
193
+ require 'carbon_ruby_sdk/models/pull_request_filters'
194
+ require 'carbon_ruby_sdk/models/pull_request_response'
195
+ require 'carbon_ruby_sdk/models/pull_requests_input'
165
196
  require 'carbon_ruby_sdk/models/rss_feed_input'
166
197
  require 'carbon_ruby_sdk/models/rank_property'
167
198
  require 'carbon_ruby_sdk/models/raw_text_input'
@@ -198,18 +229,22 @@ require 'carbon_ruby_sdk/models/sync_options'
198
229
  require 'carbon_ruby_sdk/models/tags'
199
230
  require 'carbon_ruby_sdk/models/tags1'
200
231
  require 'carbon_ruby_sdk/models/task'
232
+ require 'carbon_ruby_sdk/models/team'
201
233
  require 'carbon_ruby_sdk/models/text_embedding_generators'
202
234
  require 'carbon_ruby_sdk/models/token_response'
203
235
  require 'carbon_ruby_sdk/models/transcription_service'
204
236
  require 'carbon_ruby_sdk/models/transcription_service_nullable'
237
+ require 'carbon_ruby_sdk/models/tree'
205
238
  require 'carbon_ruby_sdk/models/update_organization_input'
206
239
  require 'carbon_ruby_sdk/models/update_users_input'
207
240
  require 'carbon_ruby_sdk/models/upload_file_from_url_input'
241
+ require 'carbon_ruby_sdk/models/user'
208
242
  require 'carbon_ruby_sdk/models/user_configuration'
209
243
  require 'carbon_ruby_sdk/models/user_configuration_nullable'
210
244
  require 'carbon_ruby_sdk/models/user_file'
211
245
  require 'carbon_ruby_sdk/models/user_files_v2'
212
246
  require 'carbon_ruby_sdk/models/user_list_response'
247
+ require 'carbon_ruby_sdk/models/user_nullable'
213
248
  require 'carbon_ruby_sdk/models/user_request_content'
214
249
  require 'carbon_ruby_sdk/models/user_response'
215
250
  require 'carbon_ruby_sdk/models/user_web_page_order_by_types'
@@ -235,6 +270,7 @@ require 'carbon_ruby_sdk/api/crm_api'
235
270
  require 'carbon_ruby_sdk/api/data_sources_api'
236
271
  require 'carbon_ruby_sdk/api/embeddings_api'
237
272
  require 'carbon_ruby_sdk/api/files_api'
273
+ require 'carbon_ruby_sdk/api/github_api'
238
274
  require 'carbon_ruby_sdk/api/integrations_api'
239
275
  require 'carbon_ruby_sdk/api/organizations_api'
240
276
  require 'carbon_ruby_sdk/api/users_api'
@@ -302,6 +338,7 @@ module Carbon
302
338
  attr_reader :data_sources
303
339
  attr_reader :embeddings
304
340
  attr_reader :files
341
+ attr_reader :github
305
342
  attr_reader :integrations
306
343
  attr_reader :organizations
307
344
  attr_reader :users
@@ -315,6 +352,7 @@ module Carbon
315
352
  @data_sources = Carbon::DataSourcesApi.new(@api_client)
316
353
  @embeddings = Carbon::EmbeddingsApi.new(@api_client)
317
354
  @files = Carbon::FilesApi.new(@api_client)
355
+ @github = Carbon::GithubApi.new(@api_client)
318
356
  @integrations = Carbon::IntegrationsApi.new(@api_client)
319
357
  @organizations = Carbon::OrganizationsApi.new(@api_client)
320
358
  @users = Carbon::UsersApi.new(@api_client)
@@ -0,0 +1,112 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+
12
+ # Unit tests for Carbon::GithubApi
13
+ describe 'GithubApi' do
14
+ before do
15
+ # run before each test
16
+ @api_instance = Carbon::GithubApi.new
17
+ end
18
+
19
+ after do
20
+ # run after each test
21
+ end
22
+
23
+ describe 'test an instance of GithubApi' do
24
+ it 'should create an instance of GithubApi' do
25
+ expect(@api_instance).to be_instance_of(Carbon::GithubApi)
26
+ end
27
+ end
28
+
29
+ # unit tests for get_issue
30
+ # Issue
31
+ # @param issue_number
32
+ # @param [Hash] opts the optional parameters
33
+ # @option opts [Boolean] :include_remote_data
34
+ # @option opts [Integer] :data_source_id
35
+ # @option opts [String] :repository
36
+ # @return [Issue]
37
+ describe 'get_issue test' do
38
+ it 'should work' do
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+
43
+ # unit tests for get_issues
44
+ # Issues
45
+ # @param issues_input
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [IssuesResponse]
48
+ describe 'get_issues test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for get_pr
55
+ # Get Pr
56
+ # @param pull_number
57
+ # @param [Hash] opts the optional parameters
58
+ # @option opts [Boolean] :include_remote_data
59
+ # @option opts [Integer] :data_source_id
60
+ # @option opts [String] :repository
61
+ # @return [PullRequestExtended]
62
+ describe 'get_pr test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ # unit tests for get_pr_comments
69
+ # Pr Comments
70
+ # @param comments_input
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [CommentsResponse]
73
+ describe 'get_pr_comments test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
76
+ end
77
+ end
78
+
79
+ # unit tests for get_pr_commits
80
+ # Pr Commits
81
+ # @param commits_input
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [CommitsResponse]
84
+ describe 'get_pr_commits test' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
87
+ end
88
+ end
89
+
90
+ # unit tests for get_pr_files
91
+ # Pr Files
92
+ # @param files_input
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [FilesResponse]
95
+ describe 'get_pr_files test' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ # unit tests for get_pull_requests
102
+ # Get Prs
103
+ # @param pull_requests_input
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [PullRequestResponse]
106
+ describe 'get_pull_requests test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ end
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::CommentsInput
14
+ describe Carbon::CommentsInput do
15
+ let(:instance) { Carbon::CommentsInput.new }
16
+
17
+ describe 'test an instance of CommentsInput' do
18
+ it 'should create an instance of CommentsInput' do
19
+ expect(instance).to be_instance_of(Carbon::CommentsInput)
20
+ end
21
+ end
22
+ describe 'test attribute "data_source_id"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "include_remote_data"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "repository"' 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
+
40
+ describe 'test attribute "page"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "page_size"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "next_cursor"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ describe 'test attribute "pull_number"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ describe 'test attribute "order_by"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'test attribute "order_dir"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -0,0 +1,22 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::CommentsOrderBy
14
+ describe Carbon::CommentsOrderBy do
15
+ let(:instance) { Carbon::CommentsOrderBy.new }
16
+
17
+ describe 'test an instance of CommentsOrderBy' do
18
+ it 'should create an instance of CommentsOrderBy' do
19
+ expect(instance).to be_instance_of(Carbon::CommentsOrderBy)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::CommentsResponse
14
+ describe Carbon::CommentsResponse do
15
+ let(:instance) { Carbon::CommentsResponse.new }
16
+
17
+ describe 'test an instance of CommentsResponse' do
18
+ it 'should create an instance of CommentsResponse' do
19
+ expect(instance).to be_instance_of(Carbon::CommentsResponse)
20
+ end
21
+ end
22
+ describe 'test attribute "data"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "next_cursor"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #Carbon
3
+
4
+ #Connect external data to LLMs, no matter the source.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'spec_helper'
10
+ require 'json'
11
+ require 'date'
12
+
13
+ # Unit tests for Carbon::Commit
14
+ describe Carbon::Commit do
15
+ let(:instance) { Carbon::Commit.new }
16
+
17
+ describe 'test an instance of Commit' do
18
+ it 'should create an instance of Commit' do
19
+ expect(instance).to be_instance_of(Carbon::Commit)
20
+ end
21
+ end
22
+ describe 'test attribute "author"' do
23
+ it 'should work' do
24
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
25
+ end
26
+ end
27
+
28
+ describe 'test attribute "committer"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "message"' 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
+
40
+ describe 'test attribute "tree"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "url"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ describe 'test attribute "comment_count"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end