pulp_file_client 3.104.2 → 3.105.1
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/README.md +21 -5
- data/docs/FileFileGitRemote.md +58 -0
- data/docs/FileFileGitRemoteResponse.md +58 -0
- data/docs/{FileFileRemoteResponseHiddenFieldsInner.md → FileFileGitRemoteResponseHiddenFieldsInner.md} +2 -2
- data/docs/FileFileRemoteResponse.md +1 -1
- data/docs/PaginatedfileFileGitRemoteResponseList.md +24 -0
- data/docs/PatchedfileFileGitRemote.md +58 -0
- data/docs/RemotesGitApi.md +981 -0
- data/lib/pulp_file_client/api/remotes_git_api.rb +979 -0
- data/lib/pulp_file_client/models/file_file_git_remote.rb +702 -0
- data/lib/pulp_file_client/models/file_file_git_remote_response.rb +521 -0
- data/lib/pulp_file_client/models/{file_file_remote_response_hidden_fields_inner.rb → file_file_git_remote_response_hidden_fields_inner.rb} +3 -3
- data/lib/pulp_file_client/models/file_file_remote.rb +15 -0
- data/lib/pulp_file_client/models/file_file_remote_response.rb +16 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +15 -0
- data/lib/pulp_file_client/models/file_file_repository_response.rb +15 -0
- data/lib/pulp_file_client/models/paginatedfile_file_git_remote_response_list.rb +257 -0
- data/lib/pulp_file_client/models/patchedfile_file_git_remote.rb +688 -0
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +15 -0
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +15 -0
- data/lib/pulp_file_client/models/remote_network_config.rb +15 -0
- data/lib/pulp_file_client/models/remote_network_config_response.rb +15 -0
- data/lib/pulp_file_client/models/set_label.rb +0 -11
- data/lib/pulp_file_client/models/set_label_response.rb +0 -21
- data/lib/pulp_file_client/models/unset_label.rb +0 -11
- data/lib/pulp_file_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_file_client/version.rb +1 -1
- data/lib/pulp_file_client.rb +6 -1
- data/spec/api/remotes_git_api_spec.rb +228 -0
- data/spec/models/{file_file_remote_response_hidden_fields_inner_spec.rb → file_file_git_remote_response_hidden_fields_inner_spec.rb} +6 -6
- data/spec/models/file_file_git_remote_response_spec.rb +156 -0
- data/spec/models/file_file_git_remote_spec.rb +156 -0
- data/spec/models/paginatedfile_file_git_remote_response_list_spec.rb +54 -0
- data/spec/models/patchedfile_file_git_remote_spec.rb +156 -0
- metadata +26 -6
|
@@ -345,6 +345,10 @@ module PulpFileClient
|
|
|
345
345
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
346
346
|
end
|
|
347
347
|
|
|
348
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
349
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
350
|
+
end
|
|
351
|
+
|
|
348
352
|
invalid_properties
|
|
349
353
|
end
|
|
350
354
|
|
|
@@ -366,6 +370,7 @@ module PulpFileClient
|
|
|
366
370
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
367
371
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
368
372
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
373
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
369
374
|
true
|
|
370
375
|
end
|
|
371
376
|
|
|
@@ -517,6 +522,16 @@ module PulpFileClient
|
|
|
517
522
|
@sock_read_timeout = sock_read_timeout
|
|
518
523
|
end
|
|
519
524
|
|
|
525
|
+
# Custom attribute writer method with validation
|
|
526
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
527
|
+
def download_concurrency=(download_concurrency)
|
|
528
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
529
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
@download_concurrency = download_concurrency
|
|
533
|
+
end
|
|
534
|
+
|
|
520
535
|
# Checks equality by comparing each attribute.
|
|
521
536
|
# @param [Object] Object to be compared
|
|
522
537
|
def ==(o)
|
|
@@ -140,6 +140,10 @@ module PulpFileClient
|
|
|
140
140
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
144
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
145
|
+
end
|
|
146
|
+
|
|
143
147
|
if !@manifest.nil? && @manifest.to_s.length < 1
|
|
144
148
|
invalid_properties.push('invalid value for "manifest", the character length must be great than or equal to 1.')
|
|
145
149
|
end
|
|
@@ -153,6 +157,7 @@ module PulpFileClient
|
|
|
153
157
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
154
158
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
155
159
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
160
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
156
161
|
return false if !@manifest.nil? && @manifest.to_s.length < 1
|
|
157
162
|
true
|
|
158
163
|
end
|
|
@@ -181,6 +186,16 @@ module PulpFileClient
|
|
|
181
186
|
@description = description
|
|
182
187
|
end
|
|
183
188
|
|
|
189
|
+
# Custom attribute writer method with validation
|
|
190
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
191
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
192
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
193
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
@retain_repo_versions = retain_repo_versions
|
|
197
|
+
end
|
|
198
|
+
|
|
184
199
|
# Custom attribute writer method with validation
|
|
185
200
|
# @param [Object] manifest Value to be assigned
|
|
186
201
|
def manifest=(manifest)
|
|
@@ -278,6 +278,10 @@ module PulpFileClient
|
|
|
278
278
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
279
279
|
end
|
|
280
280
|
|
|
281
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
282
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
283
|
+
end
|
|
284
|
+
|
|
281
285
|
invalid_properties
|
|
282
286
|
end
|
|
283
287
|
|
|
@@ -297,6 +301,7 @@ module PulpFileClient
|
|
|
297
301
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
298
302
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
299
303
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
304
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
300
305
|
true
|
|
301
306
|
end
|
|
302
307
|
|
|
@@ -420,6 +425,16 @@ module PulpFileClient
|
|
|
420
425
|
@sock_read_timeout = sock_read_timeout
|
|
421
426
|
end
|
|
422
427
|
|
|
428
|
+
# Custom attribute writer method with validation
|
|
429
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
430
|
+
def download_concurrency=(download_concurrency)
|
|
431
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
432
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
@download_concurrency = download_concurrency
|
|
436
|
+
end
|
|
437
|
+
|
|
423
438
|
# Checks equality by comparing each attribute.
|
|
424
439
|
# @param [Object] Object to be compared
|
|
425
440
|
def ==(o)
|
|
@@ -196,6 +196,10 @@ module PulpFileClient
|
|
|
196
196
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
200
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
201
|
+
end
|
|
202
|
+
|
|
199
203
|
invalid_properties
|
|
200
204
|
end
|
|
201
205
|
|
|
@@ -207,6 +211,7 @@ module PulpFileClient
|
|
|
207
211
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
208
212
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
209
213
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
214
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
210
215
|
true
|
|
211
216
|
end
|
|
212
217
|
|
|
@@ -250,6 +255,16 @@ module PulpFileClient
|
|
|
250
255
|
@sock_read_timeout = sock_read_timeout
|
|
251
256
|
end
|
|
252
257
|
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
260
|
+
def download_concurrency=(download_concurrency)
|
|
261
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
262
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@download_concurrency = download_concurrency
|
|
266
|
+
end
|
|
267
|
+
|
|
253
268
|
# Checks equality by comparing each attribute.
|
|
254
269
|
# @param [Object] Object to be compared
|
|
255
270
|
def ==(o)
|
|
@@ -89,11 +89,6 @@ module PulpFileClient
|
|
|
89
89
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
93
|
-
if @key !~ pattern
|
|
94
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
95
|
-
end
|
|
96
|
-
|
|
97
92
|
invalid_properties
|
|
98
93
|
end
|
|
99
94
|
|
|
@@ -103,7 +98,6 @@ module PulpFileClient
|
|
|
103
98
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
99
|
return false if @key.nil?
|
|
105
100
|
return false if @key.to_s.length < 1
|
|
106
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
107
101
|
true
|
|
108
102
|
end
|
|
109
103
|
|
|
@@ -118,11 +112,6 @@ module PulpFileClient
|
|
|
118
112
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
119
113
|
end
|
|
120
114
|
|
|
121
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
122
|
-
if key !~ pattern
|
|
123
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
124
|
-
end
|
|
125
|
-
|
|
126
115
|
@key = key
|
|
127
116
|
end
|
|
128
117
|
|
|
@@ -85,11 +85,6 @@ module PulpFileClient
|
|
|
85
85
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
89
|
-
if @key !~ pattern
|
|
90
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
91
|
-
end
|
|
92
|
-
|
|
93
88
|
invalid_properties
|
|
94
89
|
end
|
|
95
90
|
|
|
@@ -98,25 +93,9 @@ module PulpFileClient
|
|
|
98
93
|
def valid?
|
|
99
94
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
95
|
return false if @key.nil?
|
|
101
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
102
96
|
true
|
|
103
97
|
end
|
|
104
98
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] key Value to be assigned
|
|
107
|
-
def key=(key)
|
|
108
|
-
if key.nil?
|
|
109
|
-
fail ArgumentError, 'key cannot be nil'
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
113
|
-
if key !~ pattern
|
|
114
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@key = key
|
|
118
|
-
end
|
|
119
|
-
|
|
120
99
|
# Checks equality by comparing each attribute.
|
|
121
100
|
# @param [Object] Object to be compared
|
|
122
101
|
def ==(o)
|
|
@@ -78,11 +78,6 @@ module PulpFileClient
|
|
|
78
78
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
82
|
-
if @key !~ pattern
|
|
83
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
84
|
-
end
|
|
85
|
-
|
|
86
81
|
invalid_properties
|
|
87
82
|
end
|
|
88
83
|
|
|
@@ -92,7 +87,6 @@ module PulpFileClient
|
|
|
92
87
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
88
|
return false if @key.nil?
|
|
94
89
|
return false if @key.to_s.length < 1
|
|
95
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
96
90
|
true
|
|
97
91
|
end
|
|
98
92
|
|
|
@@ -107,11 +101,6 @@ module PulpFileClient
|
|
|
107
101
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
108
102
|
end
|
|
109
103
|
|
|
110
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
111
|
-
if key !~ pattern
|
|
112
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
113
|
-
end
|
|
114
|
-
|
|
115
104
|
@key = key
|
|
116
105
|
end
|
|
117
106
|
|
|
@@ -82,11 +82,6 @@ module PulpFileClient
|
|
|
82
82
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
86
|
-
if @key !~ pattern
|
|
87
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
88
|
-
end
|
|
89
|
-
|
|
90
85
|
invalid_properties
|
|
91
86
|
end
|
|
92
87
|
|
|
@@ -95,25 +90,9 @@ module PulpFileClient
|
|
|
95
90
|
def valid?
|
|
96
91
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
97
92
|
return false if @key.nil?
|
|
98
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
99
93
|
true
|
|
100
94
|
end
|
|
101
95
|
|
|
102
|
-
# Custom attribute writer method with validation
|
|
103
|
-
# @param [Object] key Value to be assigned
|
|
104
|
-
def key=(key)
|
|
105
|
-
if key.nil?
|
|
106
|
-
fail ArgumentError, 'key cannot be nil'
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
110
|
-
if key !~ pattern
|
|
111
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
@key = key
|
|
115
|
-
end
|
|
116
|
-
|
|
117
96
|
# Checks equality by comparing each attribute.
|
|
118
97
|
# @param [Object] Object to be compared
|
|
119
98
|
def ==(o)
|
data/lib/pulp_file_client.rb
CHANGED
|
@@ -25,11 +25,13 @@ require 'pulp_file_client/models/file_file_alternate_content_source_response'
|
|
|
25
25
|
require 'pulp_file_client/models/file_file_content_response'
|
|
26
26
|
require 'pulp_file_client/models/file_file_distribution'
|
|
27
27
|
require 'pulp_file_client/models/file_file_distribution_response'
|
|
28
|
+
require 'pulp_file_client/models/file_file_git_remote'
|
|
29
|
+
require 'pulp_file_client/models/file_file_git_remote_response'
|
|
30
|
+
require 'pulp_file_client/models/file_file_git_remote_response_hidden_fields_inner'
|
|
28
31
|
require 'pulp_file_client/models/file_file_publication'
|
|
29
32
|
require 'pulp_file_client/models/file_file_publication_response'
|
|
30
33
|
require 'pulp_file_client/models/file_file_remote'
|
|
31
34
|
require 'pulp_file_client/models/file_file_remote_response'
|
|
32
|
-
require 'pulp_file_client/models/file_file_remote_response_hidden_fields_inner'
|
|
33
35
|
require 'pulp_file_client/models/file_file_repository'
|
|
34
36
|
require 'pulp_file_client/models/file_file_repository_response'
|
|
35
37
|
require 'pulp_file_client/models/my_permissions_response'
|
|
@@ -40,11 +42,13 @@ require 'pulp_file_client/models/paginated_repository_version_response_list'
|
|
|
40
42
|
require 'pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list'
|
|
41
43
|
require 'pulp_file_client/models/paginatedfile_file_content_response_list'
|
|
42
44
|
require 'pulp_file_client/models/paginatedfile_file_distribution_response_list'
|
|
45
|
+
require 'pulp_file_client/models/paginatedfile_file_git_remote_response_list'
|
|
43
46
|
require 'pulp_file_client/models/paginatedfile_file_publication_response_list'
|
|
44
47
|
require 'pulp_file_client/models/paginatedfile_file_remote_response_list'
|
|
45
48
|
require 'pulp_file_client/models/paginatedfile_file_repository_response_list'
|
|
46
49
|
require 'pulp_file_client/models/patchedfile_file_alternate_content_source'
|
|
47
50
|
require 'pulp_file_client/models/patchedfile_file_distribution'
|
|
51
|
+
require 'pulp_file_client/models/patchedfile_file_git_remote'
|
|
48
52
|
require 'pulp_file_client/models/patchedfile_file_remote'
|
|
49
53
|
require 'pulp_file_client/models/patchedfile_file_repository'
|
|
50
54
|
require 'pulp_file_client/models/policy_enum'
|
|
@@ -66,6 +70,7 @@ require 'pulp_file_client/api/content_files_api'
|
|
|
66
70
|
require 'pulp_file_client/api/distributions_file_api'
|
|
67
71
|
require 'pulp_file_client/api/publications_file_api'
|
|
68
72
|
require 'pulp_file_client/api/remotes_file_api'
|
|
73
|
+
require 'pulp_file_client/api/remotes_git_api'
|
|
69
74
|
require 'pulp_file_client/api/repositories_file_api'
|
|
70
75
|
require 'pulp_file_client/api/repositories_file_versions_api'
|
|
71
76
|
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for PulpFileClient::RemotesGitApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RemotesGitApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = PulpFileClient::RemotesGitApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RemotesGitApi' do
|
|
30
|
+
it 'should create an instance of RemotesGitApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(PulpFileClient::RemotesGitApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for add_role
|
|
36
|
+
# Add a role
|
|
37
|
+
# Add a role for this object to users/groups.
|
|
38
|
+
# @param file_file_git_remote_href
|
|
39
|
+
# @param nested_role
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
42
|
+
# @return [NestedRoleResponse]
|
|
43
|
+
describe 'add_role test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for create
|
|
50
|
+
# Create a file git remote
|
|
51
|
+
# FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
|
|
52
|
+
# @param file_file_git_remote
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
55
|
+
# @return [FileFileGitRemoteResponse]
|
|
56
|
+
describe 'create test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# unit tests for delete
|
|
63
|
+
# Delete a file git remote
|
|
64
|
+
# Trigger an asynchronous delete task
|
|
65
|
+
# @param file_file_git_remote_href
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
68
|
+
# @return [AsyncOperationResponse]
|
|
69
|
+
describe 'delete test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# unit tests for list
|
|
76
|
+
# List file git remotes
|
|
77
|
+
# FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
80
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
81
|
+
# @option opts [String] :name Filter results where name matches value
|
|
82
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
83
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
84
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
|
85
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
86
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
|
87
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
|
88
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
89
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
90
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
91
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
92
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
93
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
94
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
95
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
96
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
|
97
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
|
98
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
|
99
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
|
100
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
101
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
102
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
103
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
104
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
105
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
106
|
+
# @return [PaginatedfileFileGitRemoteResponseList]
|
|
107
|
+
describe 'list test' do
|
|
108
|
+
it 'should work' do
|
|
109
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# unit tests for list_roles
|
|
114
|
+
# List roles
|
|
115
|
+
# List roles assigned to this object.
|
|
116
|
+
# @param file_file_git_remote_href
|
|
117
|
+
# @param [Hash] opts the optional parameters
|
|
118
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
119
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
120
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
121
|
+
# @return [ObjectRolesResponse]
|
|
122
|
+
describe 'list_roles test' do
|
|
123
|
+
it 'should work' do
|
|
124
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# unit tests for my_permissions
|
|
129
|
+
# List user permissions
|
|
130
|
+
# List permissions available to the current user on this object.
|
|
131
|
+
# @param file_file_git_remote_href
|
|
132
|
+
# @param [Hash] opts the optional parameters
|
|
133
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
134
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
135
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
136
|
+
# @return [MyPermissionsResponse]
|
|
137
|
+
describe 'my_permissions test' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# unit tests for partial_update
|
|
144
|
+
# Update a file git remote
|
|
145
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
146
|
+
# @param file_file_git_remote_href
|
|
147
|
+
# @param patchedfile_file_git_remote
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
150
|
+
# @return [FileFileGitRemoteResponse]
|
|
151
|
+
describe 'partial_update test' do
|
|
152
|
+
it 'should work' do
|
|
153
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# unit tests for read
|
|
158
|
+
# Inspect a file git remote
|
|
159
|
+
# FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
|
|
160
|
+
# @param file_file_git_remote_href
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
163
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
164
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
165
|
+
# @return [FileFileGitRemoteResponse]
|
|
166
|
+
describe 'read test' do
|
|
167
|
+
it 'should work' do
|
|
168
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# unit tests for remove_role
|
|
173
|
+
# Remove a role
|
|
174
|
+
# Remove a role for this object from users/groups.
|
|
175
|
+
# @param file_file_git_remote_href
|
|
176
|
+
# @param nested_role
|
|
177
|
+
# @param [Hash] opts the optional parameters
|
|
178
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
179
|
+
# @return [NestedRoleResponse]
|
|
180
|
+
describe 'remove_role test' do
|
|
181
|
+
it 'should work' do
|
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# unit tests for set_label
|
|
187
|
+
# Set a label
|
|
188
|
+
# Set a single pulp_label on the object to a specific value or null.
|
|
189
|
+
# @param file_file_git_remote_href
|
|
190
|
+
# @param set_label
|
|
191
|
+
# @param [Hash] opts the optional parameters
|
|
192
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
193
|
+
# @return [SetLabelResponse]
|
|
194
|
+
describe 'set_label test' do
|
|
195
|
+
it 'should work' do
|
|
196
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# unit tests for unset_label
|
|
201
|
+
# Unset a label
|
|
202
|
+
# Unset a single pulp_label on the object.
|
|
203
|
+
# @param file_file_git_remote_href
|
|
204
|
+
# @param unset_label
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
207
|
+
# @return [UnsetLabelResponse]
|
|
208
|
+
describe 'unset_label test' do
|
|
209
|
+
it 'should work' do
|
|
210
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# unit tests for update
|
|
215
|
+
# Update a file git remote
|
|
216
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
217
|
+
# @param file_file_git_remote_href
|
|
218
|
+
# @param file_file_git_remote
|
|
219
|
+
# @param [Hash] opts the optional parameters
|
|
220
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
221
|
+
# @return [FileFileGitRemoteResponse]
|
|
222
|
+
describe 'update test' do
|
|
223
|
+
it 'should work' do
|
|
224
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
end
|
|
@@ -14,16 +14,16 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for PulpFileClient::
|
|
17
|
+
# Unit tests for PulpFileClient::FileFileGitRemoteResponseHiddenFieldsInner
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe PulpFileClient::
|
|
21
|
-
let(:instance) { PulpFileClient::
|
|
20
|
+
describe PulpFileClient::FileFileGitRemoteResponseHiddenFieldsInner do
|
|
21
|
+
let(:instance) { PulpFileClient::FileFileGitRemoteResponseHiddenFieldsInner.new }
|
|
22
22
|
|
|
23
|
-
describe 'test an instance of
|
|
24
|
-
it 'should create an instance of
|
|
23
|
+
describe 'test an instance of FileFileGitRemoteResponseHiddenFieldsInner' do
|
|
24
|
+
it 'should create an instance of FileFileGitRemoteResponseHiddenFieldsInner' do
|
|
25
25
|
# uncomment below to test the instance creation
|
|
26
|
-
#expect(instance).to be_instance_of(PulpFileClient::
|
|
26
|
+
#expect(instance).to be_instance_of(PulpFileClient::FileFileGitRemoteResponseHiddenFieldsInner)
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|