carbon_ruby_sdk 0.2.38 → 0.2.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +310 -2
- data/lib/carbon_ruby_sdk/api/github_api.rb +825 -0
- data/lib/carbon_ruby_sdk/models/comments_input.rb +330 -0
- data/lib/carbon_ruby_sdk/models/comments_order_by.rb +36 -0
- data/lib/carbon_ruby_sdk/models/comments_response.rb +232 -0
- data/lib/carbon_ruby_sdk/models/commit.rb +282 -0
- data/lib/carbon_ruby_sdk/models/commit_user.rb +234 -0
- data/lib/carbon_ruby_sdk/models/commit_user_nullable.rb +234 -0
- data/lib/carbon_ruby_sdk/models/commits_input.rb +307 -0
- data/lib/carbon_ruby_sdk/models/commits_response.rb +232 -0
- data/lib/carbon_ruby_sdk/models/file_status.rb +41 -0
- data/lib/carbon_ruby_sdk/models/files_input.rb +307 -0
- data/lib/carbon_ruby_sdk/models/files_response.rb +232 -0
- data/lib/carbon_ruby_sdk/models/head_or_base.rb +248 -0
- data/lib/carbon_ruby_sdk/models/issue.rb +434 -0
- data/lib/carbon_ruby_sdk/models/issue_pr.rb +230 -0
- data/lib/carbon_ruby_sdk/models/issue_pr_nullable.rb +230 -0
- data/lib/carbon_ruby_sdk/models/issues_filter.rb +217 -0
- data/lib/carbon_ruby_sdk/models/issues_input.rb +325 -0
- data/lib/carbon_ruby_sdk/models/issues_order_by.rb +37 -0
- data/lib/carbon_ruby_sdk/models/issues_response.rb +232 -0
- data/lib/carbon_ruby_sdk/models/label.rb +234 -0
- data/lib/carbon_ruby_sdk/models/pr_comment.rb +358 -0
- data/lib/carbon_ruby_sdk/models/pr_commit.rb +264 -0
- data/lib/carbon_ruby_sdk/models/pr_file.rb +342 -0
- data/lib/carbon_ruby_sdk/models/pr_order_by.rb +37 -0
- data/lib/carbon_ruby_sdk/models/pr_state.rb +36 -0
- data/lib/carbon_ruby_sdk/models/pr_state_input.rb +37 -0
- data/lib/carbon_ruby_sdk/models/pull_request.rb +438 -0
- data/lib/carbon_ruby_sdk/models/pull_request_extended.rb +536 -0
- data/lib/carbon_ruby_sdk/models/pull_request_filters.rb +239 -0
- data/lib/carbon_ruby_sdk/models/pull_request_response.rb +232 -0
- data/lib/carbon_ruby_sdk/models/pull_requests_input.rb +325 -0
- data/lib/carbon_ruby_sdk/models/team.rb +234 -0
- data/lib/carbon_ruby_sdk/models/tree.rb +234 -0
- data/lib/carbon_ruby_sdk/models/user.rb +234 -0
- data/lib/carbon_ruby_sdk/models/user_nullable.rb +234 -0
- data/lib/carbon_ruby_sdk/version.rb +1 -1
- data/lib/carbon_ruby_sdk.rb +38 -0
- data/spec/api/github_api_spec.rb +112 -0
- data/spec/models/comments_input_spec.rb +76 -0
- data/spec/models/comments_order_by_spec.rb +22 -0
- data/spec/models/comments_response_spec.rb +34 -0
- data/spec/models/commit_spec.rb +58 -0
- data/spec/models/commit_user_nullable_spec.rb +34 -0
- data/spec/models/commit_user_spec.rb +34 -0
- data/spec/models/commits_input_spec.rb +64 -0
- data/spec/models/commits_response_spec.rb +34 -0
- data/spec/models/file_status_spec.rb +22 -0
- data/spec/models/files_input_spec.rb +64 -0
- data/spec/models/files_response_spec.rb +34 -0
- data/spec/models/head_or_base_spec.rb +40 -0
- data/spec/models/issue_pr_nullable_spec.rb +34 -0
- data/spec/models/issue_pr_spec.rb +34 -0
- data/spec/models/issue_spec.rb +124 -0
- data/spec/models/issues_filter_spec.rb +28 -0
- data/spec/models/issues_input_spec.rb +76 -0
- data/spec/models/issues_order_by_spec.rb +22 -0
- data/spec/models/issues_response_spec.rb +34 -0
- data/spec/models/label_spec.rb +34 -0
- data/spec/models/pr_comment_spec.rb +94 -0
- data/spec/models/pr_commit_spec.rb +52 -0
- data/spec/models/pr_file_spec.rb +82 -0
- data/spec/models/pr_order_by_spec.rb +22 -0
- data/spec/models/pr_state_input_spec.rb +22 -0
- data/spec/models/pr_state_spec.rb +22 -0
- data/spec/models/pull_request_extended_spec.rb +166 -0
- data/spec/models/pull_request_filters_spec.rb +40 -0
- data/spec/models/pull_request_response_spec.rb +34 -0
- data/spec/models/pull_request_spec.rb +124 -0
- data/spec/models/pull_requests_input_spec.rb +76 -0
- data/spec/models/team_spec.rb +34 -0
- data/spec/models/tree_spec.rb +34 -0
- data/spec/models/user_nullable_spec.rb +34 -0
- data/spec/models/user_spec.rb +34 -0
- metadata +301 -193
data/lib/carbon_ruby_sdk.rb
CHANGED
@@ -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
|
@@ -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::CommitUserNullable
|
14
|
+
describe Carbon::CommitUserNullable do
|
15
|
+
let(:instance) { Carbon::CommitUserNullable.new }
|
16
|
+
|
17
|
+
describe 'test an instance of CommitUserNullable' do
|
18
|
+
it 'should create an instance of CommitUserNullable' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::CommitUserNullable)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "name"' 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 "email"' 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,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::CommitUser
|
14
|
+
describe Carbon::CommitUser do
|
15
|
+
let(:instance) { Carbon::CommitUser.new }
|
16
|
+
|
17
|
+
describe 'test an instance of CommitUser' do
|
18
|
+
it 'should create an instance of CommitUser' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::CommitUser)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "name"' 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 "email"' 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,64 @@
|
|
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::CommitsInput
|
14
|
+
describe Carbon::CommitsInput do
|
15
|
+
let(:instance) { Carbon::CommitsInput.new }
|
16
|
+
|
17
|
+
describe 'test an instance of CommitsInput' do
|
18
|
+
it 'should create an instance of CommitsInput' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::CommitsInput)
|
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
|
+
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::CommitsResponse
|
14
|
+
describe Carbon::CommitsResponse do
|
15
|
+
let(:instance) { Carbon::CommitsResponse.new }
|
16
|
+
|
17
|
+
describe 'test an instance of CommitsResponse' do
|
18
|
+
it 'should create an instance of CommitsResponse' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::CommitsResponse)
|
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,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::FileStatus
|
14
|
+
describe Carbon::FileStatus do
|
15
|
+
let(:instance) { Carbon::FileStatus.new }
|
16
|
+
|
17
|
+
describe 'test an instance of FileStatus' do
|
18
|
+
it 'should create an instance of FileStatus' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::FileStatus)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,64 @@
|
|
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::FilesInput
|
14
|
+
describe Carbon::FilesInput do
|
15
|
+
let(:instance) { Carbon::FilesInput.new }
|
16
|
+
|
17
|
+
describe 'test an instance of FilesInput' do
|
18
|
+
it 'should create an instance of FilesInput' do
|
19
|
+
expect(instance).to be_instance_of(Carbon::FilesInput)
|
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
|
+
end
|