daytona_toolbox_api_client 0.193.0 → 0.194.0
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 +4 -4
- data/.openapi-generator/FILES +14 -1
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +5 -2
- data/lib/daytona_toolbox_api_client/api/git_api.rb +600 -4
- data/lib/daytona_toolbox_api_client/api/system_api.rb +79 -0
- data/lib/daytona_toolbox_api_client/models/file_info.rb +11 -1
- data/lib/daytona_toolbox_api_client/models/git_add_remote_request.rb +236 -0
- data/lib/daytona_toolbox_api_client/models/git_authenticate_request.rb +210 -0
- data/lib/daytona_toolbox_api_client/models/git_clone_request.rb +11 -1
- data/lib/daytona_toolbox_api_client/models/git_config_response.rb +148 -0
- data/lib/daytona_toolbox_api_client/models/git_configure_user_request.rb +210 -0
- data/lib/daytona_toolbox_api_client/models/git_init_request.rb +184 -0
- data/lib/daytona_toolbox_api_client/models/{git_repo_request.rb → git_pull_request.rb} +24 -4
- data/lib/daytona_toolbox_api_client/models/git_push_request.rb +212 -0
- data/lib/daytona_toolbox_api_client/models/git_remote.rb +190 -0
- data/lib/daytona_toolbox_api_client/models/git_reset_request.rb +196 -0
- data/lib/daytona_toolbox_api_client/models/git_restore_request.rb +222 -0
- data/lib/daytona_toolbox_api_client/models/git_set_config_request.rb +210 -0
- data/lib/daytona_toolbox_api_client/models/git_status.rb +24 -4
- data/lib/daytona_toolbox_api_client/models/list_branch_response.rb +14 -4
- data/lib/daytona_toolbox_api_client/models/list_remotes_response.rb +166 -0
- data/lib/daytona_toolbox_api_client/models/system_metrics.rb +228 -0
- data/lib/daytona_toolbox_api_client/version.rb +1 -1
- data/lib/daytona_toolbox_api_client.rb +14 -1
- metadata +15 -2
|
@@ -85,6 +85,138 @@ module DaytonaToolboxApiClient
|
|
|
85
85
|
return data, status_code, headers
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
+
# Add a remote
|
|
89
|
+
# Add (or overwrite) a remote in the Git repository
|
|
90
|
+
# @param request [GitAddRemoteRequest] Add remote request
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @return [nil]
|
|
93
|
+
def add_remote(request, opts = {})
|
|
94
|
+
add_remote_with_http_info(request, opts)
|
|
95
|
+
nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Add a remote
|
|
99
|
+
# Add (or overwrite) a remote in the Git repository
|
|
100
|
+
# @param request [GitAddRemoteRequest] Add remote request
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
103
|
+
def add_remote_with_http_info(request, opts = {})
|
|
104
|
+
if @api_client.config.debugging
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: GitApi.add_remote ...'
|
|
106
|
+
end
|
|
107
|
+
# verify the required parameter 'request' is set
|
|
108
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.add_remote"
|
|
110
|
+
end
|
|
111
|
+
# resource path
|
|
112
|
+
local_var_path = '/git/remotes'
|
|
113
|
+
|
|
114
|
+
# query parameters
|
|
115
|
+
query_params = opts[:query_params] || {}
|
|
116
|
+
|
|
117
|
+
# header parameters
|
|
118
|
+
header_params = opts[:header_params] || {}
|
|
119
|
+
# HTTP header 'Content-Type'
|
|
120
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
121
|
+
if !content_type.nil?
|
|
122
|
+
header_params['Content-Type'] = content_type
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# form parameters
|
|
126
|
+
form_params = opts[:form_params] || {}
|
|
127
|
+
|
|
128
|
+
# http body (model)
|
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
130
|
+
|
|
131
|
+
# return_type
|
|
132
|
+
return_type = opts[:debug_return_type]
|
|
133
|
+
|
|
134
|
+
# auth_names
|
|
135
|
+
auth_names = opts[:debug_auth_names] || []
|
|
136
|
+
|
|
137
|
+
new_options = opts.merge(
|
|
138
|
+
:operation => :"GitApi.add_remote",
|
|
139
|
+
:header_params => header_params,
|
|
140
|
+
:query_params => query_params,
|
|
141
|
+
:form_params => form_params,
|
|
142
|
+
:body => post_body,
|
|
143
|
+
:auth_names => auth_names,
|
|
144
|
+
:return_type => return_type
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
148
|
+
if @api_client.config.debugging
|
|
149
|
+
@api_client.config.logger.debug "API called: GitApi#add_remote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
|
+
end
|
|
151
|
+
return data, status_code, headers
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Authenticate Git
|
|
155
|
+
# Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
|
|
156
|
+
# @param request [GitAuthenticateRequest] Authenticate request
|
|
157
|
+
# @param [Hash] opts the optional parameters
|
|
158
|
+
# @return [nil]
|
|
159
|
+
def authenticate(request, opts = {})
|
|
160
|
+
authenticate_with_http_info(request, opts)
|
|
161
|
+
nil
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Authenticate Git
|
|
165
|
+
# Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
|
|
166
|
+
# @param request [GitAuthenticateRequest] Authenticate request
|
|
167
|
+
# @param [Hash] opts the optional parameters
|
|
168
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
169
|
+
def authenticate_with_http_info(request, opts = {})
|
|
170
|
+
if @api_client.config.debugging
|
|
171
|
+
@api_client.config.logger.debug 'Calling API: GitApi.authenticate ...'
|
|
172
|
+
end
|
|
173
|
+
# verify the required parameter 'request' is set
|
|
174
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.authenticate"
|
|
176
|
+
end
|
|
177
|
+
# resource path
|
|
178
|
+
local_var_path = '/git/credentials'
|
|
179
|
+
|
|
180
|
+
# query parameters
|
|
181
|
+
query_params = opts[:query_params] || {}
|
|
182
|
+
|
|
183
|
+
# header parameters
|
|
184
|
+
header_params = opts[:header_params] || {}
|
|
185
|
+
# HTTP header 'Content-Type'
|
|
186
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
187
|
+
if !content_type.nil?
|
|
188
|
+
header_params['Content-Type'] = content_type
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# form parameters
|
|
192
|
+
form_params = opts[:form_params] || {}
|
|
193
|
+
|
|
194
|
+
# http body (model)
|
|
195
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
196
|
+
|
|
197
|
+
# return_type
|
|
198
|
+
return_type = opts[:debug_return_type]
|
|
199
|
+
|
|
200
|
+
# auth_names
|
|
201
|
+
auth_names = opts[:debug_auth_names] || []
|
|
202
|
+
|
|
203
|
+
new_options = opts.merge(
|
|
204
|
+
:operation => :"GitApi.authenticate",
|
|
205
|
+
:header_params => header_params,
|
|
206
|
+
:query_params => query_params,
|
|
207
|
+
:form_params => form_params,
|
|
208
|
+
:body => post_body,
|
|
209
|
+
:auth_names => auth_names,
|
|
210
|
+
:return_type => return_type
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
214
|
+
if @api_client.config.debugging
|
|
215
|
+
@api_client.config.logger.debug "API called: GitApi#authenticate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
|
+
end
|
|
217
|
+
return data, status_code, headers
|
|
218
|
+
end
|
|
219
|
+
|
|
88
220
|
# Checkout branch or commit
|
|
89
221
|
# Switch to a different branch or commit in the Git repository
|
|
90
222
|
# @param request [GitCheckoutRequest] Checkout request
|
|
@@ -285,6 +417,72 @@ module DaytonaToolboxApiClient
|
|
|
285
417
|
return data, status_code, headers
|
|
286
418
|
end
|
|
287
419
|
|
|
420
|
+
# Configure Git user
|
|
421
|
+
# Configure the Git user name and email at the given scope
|
|
422
|
+
# @param request [GitConfigureUserRequest] Configure user request
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [nil]
|
|
425
|
+
def configure_user(request, opts = {})
|
|
426
|
+
configure_user_with_http_info(request, opts)
|
|
427
|
+
nil
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Configure Git user
|
|
431
|
+
# Configure the Git user name and email at the given scope
|
|
432
|
+
# @param request [GitConfigureUserRequest] Configure user request
|
|
433
|
+
# @param [Hash] opts the optional parameters
|
|
434
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
435
|
+
def configure_user_with_http_info(request, opts = {})
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug 'Calling API: GitApi.configure_user ...'
|
|
438
|
+
end
|
|
439
|
+
# verify the required parameter 'request' is set
|
|
440
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.configure_user"
|
|
442
|
+
end
|
|
443
|
+
# resource path
|
|
444
|
+
local_var_path = '/git/config/user'
|
|
445
|
+
|
|
446
|
+
# query parameters
|
|
447
|
+
query_params = opts[:query_params] || {}
|
|
448
|
+
|
|
449
|
+
# header parameters
|
|
450
|
+
header_params = opts[:header_params] || {}
|
|
451
|
+
# HTTP header 'Content-Type'
|
|
452
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
453
|
+
if !content_type.nil?
|
|
454
|
+
header_params['Content-Type'] = content_type
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# form parameters
|
|
458
|
+
form_params = opts[:form_params] || {}
|
|
459
|
+
|
|
460
|
+
# http body (model)
|
|
461
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
462
|
+
|
|
463
|
+
# return_type
|
|
464
|
+
return_type = opts[:debug_return_type]
|
|
465
|
+
|
|
466
|
+
# auth_names
|
|
467
|
+
auth_names = opts[:debug_auth_names] || []
|
|
468
|
+
|
|
469
|
+
new_options = opts.merge(
|
|
470
|
+
:operation => :"GitApi.configure_user",
|
|
471
|
+
:header_params => header_params,
|
|
472
|
+
:query_params => query_params,
|
|
473
|
+
:form_params => form_params,
|
|
474
|
+
:body => post_body,
|
|
475
|
+
:auth_names => auth_names,
|
|
476
|
+
:return_type => return_type
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
480
|
+
if @api_client.config.debugging
|
|
481
|
+
@api_client.config.logger.debug "API called: GitApi#configure_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
482
|
+
end
|
|
483
|
+
return data, status_code, headers
|
|
484
|
+
end
|
|
485
|
+
|
|
288
486
|
# Create a new branch
|
|
289
487
|
# Create a new branch in the Git repository
|
|
290
488
|
# @param request [GitBranchRequest] Create branch request
|
|
@@ -481,6 +679,76 @@ module DaytonaToolboxApiClient
|
|
|
481
679
|
return data, status_code, headers
|
|
482
680
|
end
|
|
483
681
|
|
|
682
|
+
# Get a Git config value
|
|
683
|
+
# Get a Git config value at the given scope (null when unset)
|
|
684
|
+
# @param key [String] Config key (e.g. user.name)
|
|
685
|
+
# @param [Hash] opts the optional parameters
|
|
686
|
+
# @option opts [String] :path Repository path (required for local scope)
|
|
687
|
+
# @option opts [String] :scope Config scope: global (default), local or system
|
|
688
|
+
# @return [GitConfigResponse]
|
|
689
|
+
def get_git_config(key, opts = {})
|
|
690
|
+
data, _status_code, _headers = get_git_config_with_http_info(key, opts)
|
|
691
|
+
data
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Get a Git config value
|
|
695
|
+
# Get a Git config value at the given scope (null when unset)
|
|
696
|
+
# @param key [String] Config key (e.g. user.name)
|
|
697
|
+
# @param [Hash] opts the optional parameters
|
|
698
|
+
# @option opts [String] :path Repository path (required for local scope)
|
|
699
|
+
# @option opts [String] :scope Config scope: global (default), local or system
|
|
700
|
+
# @return [Array<(GitConfigResponse, Integer, Hash)>] GitConfigResponse data, response status code and response headers
|
|
701
|
+
def get_git_config_with_http_info(key, opts = {})
|
|
702
|
+
if @api_client.config.debugging
|
|
703
|
+
@api_client.config.logger.debug 'Calling API: GitApi.get_git_config ...'
|
|
704
|
+
end
|
|
705
|
+
# verify the required parameter 'key' is set
|
|
706
|
+
if @api_client.config.client_side_validation && key.nil?
|
|
707
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling GitApi.get_git_config"
|
|
708
|
+
end
|
|
709
|
+
# resource path
|
|
710
|
+
local_var_path = '/git/config'
|
|
711
|
+
|
|
712
|
+
# query parameters
|
|
713
|
+
query_params = opts[:query_params] || {}
|
|
714
|
+
query_params[:'key'] = key
|
|
715
|
+
query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
|
|
716
|
+
query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
|
717
|
+
|
|
718
|
+
# header parameters
|
|
719
|
+
header_params = opts[:header_params] || {}
|
|
720
|
+
# HTTP header 'Accept' (if needed)
|
|
721
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
722
|
+
|
|
723
|
+
# form parameters
|
|
724
|
+
form_params = opts[:form_params] || {}
|
|
725
|
+
|
|
726
|
+
# http body (model)
|
|
727
|
+
post_body = opts[:debug_body]
|
|
728
|
+
|
|
729
|
+
# return_type
|
|
730
|
+
return_type = opts[:debug_return_type] || 'GitConfigResponse'
|
|
731
|
+
|
|
732
|
+
# auth_names
|
|
733
|
+
auth_names = opts[:debug_auth_names] || []
|
|
734
|
+
|
|
735
|
+
new_options = opts.merge(
|
|
736
|
+
:operation => :"GitApi.get_git_config",
|
|
737
|
+
:header_params => header_params,
|
|
738
|
+
:query_params => query_params,
|
|
739
|
+
:form_params => form_params,
|
|
740
|
+
:body => post_body,
|
|
741
|
+
:auth_names => auth_names,
|
|
742
|
+
:return_type => return_type
|
|
743
|
+
)
|
|
744
|
+
|
|
745
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
746
|
+
if @api_client.config.debugging
|
|
747
|
+
@api_client.config.logger.debug "API called: GitApi#get_git_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
748
|
+
end
|
|
749
|
+
return data, status_code, headers
|
|
750
|
+
end
|
|
751
|
+
|
|
484
752
|
# Get Git status
|
|
485
753
|
# Get the Git status of the repository at the specified path
|
|
486
754
|
# @param path [String] Repository path
|
|
@@ -545,6 +813,72 @@ module DaytonaToolboxApiClient
|
|
|
545
813
|
return data, status_code, headers
|
|
546
814
|
end
|
|
547
815
|
|
|
816
|
+
# Initialize a Git repository
|
|
817
|
+
# Initialize a new Git repository at the specified path
|
|
818
|
+
# @param request [GitInitRequest] Init repository request
|
|
819
|
+
# @param [Hash] opts the optional parameters
|
|
820
|
+
# @return [nil]
|
|
821
|
+
def init_repository(request, opts = {})
|
|
822
|
+
init_repository_with_http_info(request, opts)
|
|
823
|
+
nil
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
# Initialize a Git repository
|
|
827
|
+
# Initialize a new Git repository at the specified path
|
|
828
|
+
# @param request [GitInitRequest] Init repository request
|
|
829
|
+
# @param [Hash] opts the optional parameters
|
|
830
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
831
|
+
def init_repository_with_http_info(request, opts = {})
|
|
832
|
+
if @api_client.config.debugging
|
|
833
|
+
@api_client.config.logger.debug 'Calling API: GitApi.init_repository ...'
|
|
834
|
+
end
|
|
835
|
+
# verify the required parameter 'request' is set
|
|
836
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
837
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.init_repository"
|
|
838
|
+
end
|
|
839
|
+
# resource path
|
|
840
|
+
local_var_path = '/git/init'
|
|
841
|
+
|
|
842
|
+
# query parameters
|
|
843
|
+
query_params = opts[:query_params] || {}
|
|
844
|
+
|
|
845
|
+
# header parameters
|
|
846
|
+
header_params = opts[:header_params] || {}
|
|
847
|
+
# HTTP header 'Content-Type'
|
|
848
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
849
|
+
if !content_type.nil?
|
|
850
|
+
header_params['Content-Type'] = content_type
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
# form parameters
|
|
854
|
+
form_params = opts[:form_params] || {}
|
|
855
|
+
|
|
856
|
+
# http body (model)
|
|
857
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
858
|
+
|
|
859
|
+
# return_type
|
|
860
|
+
return_type = opts[:debug_return_type]
|
|
861
|
+
|
|
862
|
+
# auth_names
|
|
863
|
+
auth_names = opts[:debug_auth_names] || []
|
|
864
|
+
|
|
865
|
+
new_options = opts.merge(
|
|
866
|
+
:operation => :"GitApi.init_repository",
|
|
867
|
+
:header_params => header_params,
|
|
868
|
+
:query_params => query_params,
|
|
869
|
+
:form_params => form_params,
|
|
870
|
+
:body => post_body,
|
|
871
|
+
:auth_names => auth_names,
|
|
872
|
+
:return_type => return_type
|
|
873
|
+
)
|
|
874
|
+
|
|
875
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
876
|
+
if @api_client.config.debugging
|
|
877
|
+
@api_client.config.logger.debug "API called: GitApi#init_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
878
|
+
end
|
|
879
|
+
return data, status_code, headers
|
|
880
|
+
end
|
|
881
|
+
|
|
548
882
|
# List branches
|
|
549
883
|
# Get a list of all branches in the Git repository
|
|
550
884
|
# @param path [String] Repository path
|
|
@@ -609,9 +943,73 @@ module DaytonaToolboxApiClient
|
|
|
609
943
|
return data, status_code, headers
|
|
610
944
|
end
|
|
611
945
|
|
|
946
|
+
# List remotes
|
|
947
|
+
# List the remotes configured in the Git repository
|
|
948
|
+
# @param path [String] Repository path
|
|
949
|
+
# @param [Hash] opts the optional parameters
|
|
950
|
+
# @return [ListRemotesResponse]
|
|
951
|
+
def list_remotes(path, opts = {})
|
|
952
|
+
data, _status_code, _headers = list_remotes_with_http_info(path, opts)
|
|
953
|
+
data
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# List remotes
|
|
957
|
+
# List the remotes configured in the Git repository
|
|
958
|
+
# @param path [String] Repository path
|
|
959
|
+
# @param [Hash] opts the optional parameters
|
|
960
|
+
# @return [Array<(ListRemotesResponse, Integer, Hash)>] ListRemotesResponse data, response status code and response headers
|
|
961
|
+
def list_remotes_with_http_info(path, opts = {})
|
|
962
|
+
if @api_client.config.debugging
|
|
963
|
+
@api_client.config.logger.debug 'Calling API: GitApi.list_remotes ...'
|
|
964
|
+
end
|
|
965
|
+
# verify the required parameter 'path' is set
|
|
966
|
+
if @api_client.config.client_side_validation && path.nil?
|
|
967
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling GitApi.list_remotes"
|
|
968
|
+
end
|
|
969
|
+
# resource path
|
|
970
|
+
local_var_path = '/git/remotes'
|
|
971
|
+
|
|
972
|
+
# query parameters
|
|
973
|
+
query_params = opts[:query_params] || {}
|
|
974
|
+
query_params[:'path'] = path
|
|
975
|
+
|
|
976
|
+
# header parameters
|
|
977
|
+
header_params = opts[:header_params] || {}
|
|
978
|
+
# HTTP header 'Accept' (if needed)
|
|
979
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
980
|
+
|
|
981
|
+
# form parameters
|
|
982
|
+
form_params = opts[:form_params] || {}
|
|
983
|
+
|
|
984
|
+
# http body (model)
|
|
985
|
+
post_body = opts[:debug_body]
|
|
986
|
+
|
|
987
|
+
# return_type
|
|
988
|
+
return_type = opts[:debug_return_type] || 'ListRemotesResponse'
|
|
989
|
+
|
|
990
|
+
# auth_names
|
|
991
|
+
auth_names = opts[:debug_auth_names] || []
|
|
992
|
+
|
|
993
|
+
new_options = opts.merge(
|
|
994
|
+
:operation => :"GitApi.list_remotes",
|
|
995
|
+
:header_params => header_params,
|
|
996
|
+
:query_params => query_params,
|
|
997
|
+
:form_params => form_params,
|
|
998
|
+
:body => post_body,
|
|
999
|
+
:auth_names => auth_names,
|
|
1000
|
+
:return_type => return_type
|
|
1001
|
+
)
|
|
1002
|
+
|
|
1003
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1004
|
+
if @api_client.config.debugging
|
|
1005
|
+
@api_client.config.logger.debug "API called: GitApi#list_remotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1006
|
+
end
|
|
1007
|
+
return data, status_code, headers
|
|
1008
|
+
end
|
|
1009
|
+
|
|
612
1010
|
# Pull changes from remote
|
|
613
1011
|
# Pull changes from the remote Git repository
|
|
614
|
-
# @param request [
|
|
1012
|
+
# @param request [GitPullRequest] Pull request
|
|
615
1013
|
# @param [Hash] opts the optional parameters
|
|
616
1014
|
# @return [nil]
|
|
617
1015
|
def pull_changes(request, opts = {})
|
|
@@ -621,7 +1019,7 @@ module DaytonaToolboxApiClient
|
|
|
621
1019
|
|
|
622
1020
|
# Pull changes from remote
|
|
623
1021
|
# Pull changes from the remote Git repository
|
|
624
|
-
# @param request [
|
|
1022
|
+
# @param request [GitPullRequest] Pull request
|
|
625
1023
|
# @param [Hash] opts the optional parameters
|
|
626
1024
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
627
1025
|
def pull_changes_with_http_info(request, opts = {})
|
|
@@ -677,7 +1075,7 @@ module DaytonaToolboxApiClient
|
|
|
677
1075
|
|
|
678
1076
|
# Push changes to remote
|
|
679
1077
|
# Push local changes to the remote Git repository
|
|
680
|
-
# @param request [
|
|
1078
|
+
# @param request [GitPushRequest] Push request
|
|
681
1079
|
# @param [Hash] opts the optional parameters
|
|
682
1080
|
# @return [nil]
|
|
683
1081
|
def push_changes(request, opts = {})
|
|
@@ -687,7 +1085,7 @@ module DaytonaToolboxApiClient
|
|
|
687
1085
|
|
|
688
1086
|
# Push changes to remote
|
|
689
1087
|
# Push local changes to the remote Git repository
|
|
690
|
-
# @param request [
|
|
1088
|
+
# @param request [GitPushRequest] Push request
|
|
691
1089
|
# @param [Hash] opts the optional parameters
|
|
692
1090
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
693
1091
|
def push_changes_with_http_info(request, opts = {})
|
|
@@ -740,5 +1138,203 @@ module DaytonaToolboxApiClient
|
|
|
740
1138
|
end
|
|
741
1139
|
return data, status_code, headers
|
|
742
1140
|
end
|
|
1141
|
+
|
|
1142
|
+
# Reset repository
|
|
1143
|
+
# Reset the current HEAD to the specified state
|
|
1144
|
+
# @param request [GitResetRequest] Reset request
|
|
1145
|
+
# @param [Hash] opts the optional parameters
|
|
1146
|
+
# @return [nil]
|
|
1147
|
+
def reset_changes(request, opts = {})
|
|
1148
|
+
reset_changes_with_http_info(request, opts)
|
|
1149
|
+
nil
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
# Reset repository
|
|
1153
|
+
# Reset the current HEAD to the specified state
|
|
1154
|
+
# @param request [GitResetRequest] Reset request
|
|
1155
|
+
# @param [Hash] opts the optional parameters
|
|
1156
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1157
|
+
def reset_changes_with_http_info(request, opts = {})
|
|
1158
|
+
if @api_client.config.debugging
|
|
1159
|
+
@api_client.config.logger.debug 'Calling API: GitApi.reset_changes ...'
|
|
1160
|
+
end
|
|
1161
|
+
# verify the required parameter 'request' is set
|
|
1162
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
1163
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.reset_changes"
|
|
1164
|
+
end
|
|
1165
|
+
# resource path
|
|
1166
|
+
local_var_path = '/git/reset'
|
|
1167
|
+
|
|
1168
|
+
# query parameters
|
|
1169
|
+
query_params = opts[:query_params] || {}
|
|
1170
|
+
|
|
1171
|
+
# header parameters
|
|
1172
|
+
header_params = opts[:header_params] || {}
|
|
1173
|
+
# HTTP header 'Content-Type'
|
|
1174
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1175
|
+
if !content_type.nil?
|
|
1176
|
+
header_params['Content-Type'] = content_type
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1179
|
+
# form parameters
|
|
1180
|
+
form_params = opts[:form_params] || {}
|
|
1181
|
+
|
|
1182
|
+
# http body (model)
|
|
1183
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
1184
|
+
|
|
1185
|
+
# return_type
|
|
1186
|
+
return_type = opts[:debug_return_type]
|
|
1187
|
+
|
|
1188
|
+
# auth_names
|
|
1189
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1190
|
+
|
|
1191
|
+
new_options = opts.merge(
|
|
1192
|
+
:operation => :"GitApi.reset_changes",
|
|
1193
|
+
:header_params => header_params,
|
|
1194
|
+
:query_params => query_params,
|
|
1195
|
+
:form_params => form_params,
|
|
1196
|
+
:body => post_body,
|
|
1197
|
+
:auth_names => auth_names,
|
|
1198
|
+
:return_type => return_type
|
|
1199
|
+
)
|
|
1200
|
+
|
|
1201
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1202
|
+
if @api_client.config.debugging
|
|
1203
|
+
@api_client.config.logger.debug "API called: GitApi#reset_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1204
|
+
end
|
|
1205
|
+
return data, status_code, headers
|
|
1206
|
+
end
|
|
1207
|
+
|
|
1208
|
+
# Restore files
|
|
1209
|
+
# Restore working tree files or unstage changes
|
|
1210
|
+
# @param request [GitRestoreRequest] Restore request
|
|
1211
|
+
# @param [Hash] opts the optional parameters
|
|
1212
|
+
# @return [nil]
|
|
1213
|
+
def restore_files(request, opts = {})
|
|
1214
|
+
restore_files_with_http_info(request, opts)
|
|
1215
|
+
nil
|
|
1216
|
+
end
|
|
1217
|
+
|
|
1218
|
+
# Restore files
|
|
1219
|
+
# Restore working tree files or unstage changes
|
|
1220
|
+
# @param request [GitRestoreRequest] Restore request
|
|
1221
|
+
# @param [Hash] opts the optional parameters
|
|
1222
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1223
|
+
def restore_files_with_http_info(request, opts = {})
|
|
1224
|
+
if @api_client.config.debugging
|
|
1225
|
+
@api_client.config.logger.debug 'Calling API: GitApi.restore_files ...'
|
|
1226
|
+
end
|
|
1227
|
+
# verify the required parameter 'request' is set
|
|
1228
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
1229
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.restore_files"
|
|
1230
|
+
end
|
|
1231
|
+
# resource path
|
|
1232
|
+
local_var_path = '/git/restore'
|
|
1233
|
+
|
|
1234
|
+
# query parameters
|
|
1235
|
+
query_params = opts[:query_params] || {}
|
|
1236
|
+
|
|
1237
|
+
# header parameters
|
|
1238
|
+
header_params = opts[:header_params] || {}
|
|
1239
|
+
# HTTP header 'Content-Type'
|
|
1240
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1241
|
+
if !content_type.nil?
|
|
1242
|
+
header_params['Content-Type'] = content_type
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
# form parameters
|
|
1246
|
+
form_params = opts[:form_params] || {}
|
|
1247
|
+
|
|
1248
|
+
# http body (model)
|
|
1249
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
1250
|
+
|
|
1251
|
+
# return_type
|
|
1252
|
+
return_type = opts[:debug_return_type]
|
|
1253
|
+
|
|
1254
|
+
# auth_names
|
|
1255
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1256
|
+
|
|
1257
|
+
new_options = opts.merge(
|
|
1258
|
+
:operation => :"GitApi.restore_files",
|
|
1259
|
+
:header_params => header_params,
|
|
1260
|
+
:query_params => query_params,
|
|
1261
|
+
:form_params => form_params,
|
|
1262
|
+
:body => post_body,
|
|
1263
|
+
:auth_names => auth_names,
|
|
1264
|
+
:return_type => return_type
|
|
1265
|
+
)
|
|
1266
|
+
|
|
1267
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1268
|
+
if @api_client.config.debugging
|
|
1269
|
+
@api_client.config.logger.debug "API called: GitApi#restore_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1270
|
+
end
|
|
1271
|
+
return data, status_code, headers
|
|
1272
|
+
end
|
|
1273
|
+
|
|
1274
|
+
# Set a Git config value
|
|
1275
|
+
# Set a Git config key/value at the given scope
|
|
1276
|
+
# @param request [GitSetConfigRequest] Set config request
|
|
1277
|
+
# @param [Hash] opts the optional parameters
|
|
1278
|
+
# @return [nil]
|
|
1279
|
+
def set_git_config(request, opts = {})
|
|
1280
|
+
set_git_config_with_http_info(request, opts)
|
|
1281
|
+
nil
|
|
1282
|
+
end
|
|
1283
|
+
|
|
1284
|
+
# Set a Git config value
|
|
1285
|
+
# Set a Git config key/value at the given scope
|
|
1286
|
+
# @param request [GitSetConfigRequest] Set config request
|
|
1287
|
+
# @param [Hash] opts the optional parameters
|
|
1288
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1289
|
+
def set_git_config_with_http_info(request, opts = {})
|
|
1290
|
+
if @api_client.config.debugging
|
|
1291
|
+
@api_client.config.logger.debug 'Calling API: GitApi.set_git_config ...'
|
|
1292
|
+
end
|
|
1293
|
+
# verify the required parameter 'request' is set
|
|
1294
|
+
if @api_client.config.client_side_validation && request.nil?
|
|
1295
|
+
fail ArgumentError, "Missing the required parameter 'request' when calling GitApi.set_git_config"
|
|
1296
|
+
end
|
|
1297
|
+
# resource path
|
|
1298
|
+
local_var_path = '/git/config'
|
|
1299
|
+
|
|
1300
|
+
# query parameters
|
|
1301
|
+
query_params = opts[:query_params] || {}
|
|
1302
|
+
|
|
1303
|
+
# header parameters
|
|
1304
|
+
header_params = opts[:header_params] || {}
|
|
1305
|
+
# HTTP header 'Content-Type'
|
|
1306
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1307
|
+
if !content_type.nil?
|
|
1308
|
+
header_params['Content-Type'] = content_type
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
# form parameters
|
|
1312
|
+
form_params = opts[:form_params] || {}
|
|
1313
|
+
|
|
1314
|
+
# http body (model)
|
|
1315
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(request)
|
|
1316
|
+
|
|
1317
|
+
# return_type
|
|
1318
|
+
return_type = opts[:debug_return_type]
|
|
1319
|
+
|
|
1320
|
+
# auth_names
|
|
1321
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1322
|
+
|
|
1323
|
+
new_options = opts.merge(
|
|
1324
|
+
:operation => :"GitApi.set_git_config",
|
|
1325
|
+
:header_params => header_params,
|
|
1326
|
+
:query_params => query_params,
|
|
1327
|
+
:form_params => form_params,
|
|
1328
|
+
:body => post_body,
|
|
1329
|
+
:auth_names => auth_names,
|
|
1330
|
+
:return_type => return_type
|
|
1331
|
+
)
|
|
1332
|
+
|
|
1333
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1334
|
+
if @api_client.config.debugging
|
|
1335
|
+
@api_client.config.logger.debug "API called: GitApi#set_git_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1336
|
+
end
|
|
1337
|
+
return data, status_code, headers
|
|
1338
|
+
end
|
|
743
1339
|
end
|
|
744
1340
|
end
|