pulp_ostree_client 2.6.0 → 2.6.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 +7 -7
- data/docs/ContentCommitsApi.md +6 -6
- data/docs/ContentConfigsApi.md +6 -6
- data/docs/ContentContentApi.md +6 -6
- data/docs/ContentObjectsApi.md +6 -6
- data/docs/ContentRefsApi.md +6 -6
- data/docs/ContentSummariesApi.md +6 -6
- data/docs/DistributionsOstreeApi.md +4 -4
- data/docs/OstreeOstreeContent.md +2 -0
- data/docs/OstreeOstreeDistributionResponse.md +2 -0
- data/docs/OstreeOstreeRemote.md +6 -6
- data/docs/OstreeOstreeRemoteResponse.md +8 -8
- data/docs/OstreeOstreeRepository.md +2 -0
- data/docs/OstreeOstreeRepositoryResponse.md +2 -0
- data/docs/PatchedostreeOstreeRemote.md +6 -6
- data/docs/PatchedostreeOstreeRepository.md +2 -0
- data/docs/RepositoriesOstreeApi.md +20 -4
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_ostree_client/api/content_commits_api.rb +6 -6
- data/lib/pulp_ostree_client/api/content_configs_api.rb +6 -6
- data/lib/pulp_ostree_client/api/content_content_api.rb +6 -6
- data/lib/pulp_ostree_client/api/content_objects_api.rb +6 -6
- data/lib/pulp_ostree_client/api/content_refs_api.rb +6 -6
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +6 -6
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +29 -5
- data/lib/pulp_ostree_client/models/ostree_ostree_content.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +11 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +48 -33
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +60 -45
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +42 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +42 -1
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +48 -33
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +42 -1
- data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_ostree_client/models/set_label.rb +0 -11
- data/lib/pulp_ostree_client/models/set_label_response.rb +0 -21
- data/lib/pulp_ostree_client/models/unset_label.rb +0 -11
- data/lib/pulp_ostree_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/spec/api/content_commits_api_spec.rb +3 -3
- data/spec/api/content_configs_api_spec.rb +3 -3
- data/spec/api/content_content_api_spec.rb +3 -3
- data/spec/api/content_objects_api_spec.rb +3 -3
- data/spec/api/content_refs_api_spec.rb +3 -3
- data/spec/api/content_summaries_api_spec.rb +3 -3
- data/spec/api/distributions_ostree_api_spec.rb +2 -2
- data/spec/api/repositories_ostree_api_spec.rb +10 -2
- data/spec/models/ostree_ostree_content_spec.rb +6 -0
- data/spec/models/ostree_ostree_distribution_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +10 -10
- data/spec/models/ostree_ostree_remote_spec.rb +17 -17
- data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_spec.rb +6 -0
- data/spec/models/patchedostree_ostree_remote_spec.rb +17 -17
- data/spec/models/patchedostree_ostree_repository_spec.rb +6 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +41 -41
|
@@ -22,6 +22,11 @@ module PulpOstreeClient
|
|
|
22
22
|
# The URL of an external content source.
|
|
23
23
|
attr_accessor :url
|
|
24
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
|
+
# immediate - All OSTree objects are downloaded and saved during synchronization. on_demand - Only commits, dirtrees, and refs are downloaded. Other OSTree objects are not downloaded until they are requested for the first time by a client. * `immediate` - immediate * `on_demand` - on_demand
|
|
28
|
+
attr_accessor :policy
|
|
29
|
+
|
|
25
30
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
26
31
|
attr_accessor :ca_cert
|
|
27
32
|
|
|
@@ -49,17 +54,9 @@ module PulpOstreeClient
|
|
|
49
54
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
50
55
|
attr_accessor :password
|
|
51
56
|
|
|
52
|
-
attr_accessor :pulp_labels
|
|
53
|
-
|
|
54
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
55
|
-
attr_accessor :download_concurrency
|
|
56
|
-
|
|
57
57
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
58
58
|
attr_accessor :max_retries
|
|
59
59
|
|
|
60
|
-
# immediate - All OSTree objects are downloaded and saved during synchronization. on_demand - Only commits, dirtrees, and refs are downloaded. Other OSTree objects are not downloaded until they are requested for the first time by a client. * `immediate` - immediate * `on_demand` - on_demand
|
|
61
|
-
attr_accessor :policy
|
|
62
|
-
|
|
63
60
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
64
61
|
attr_accessor :total_timeout
|
|
65
62
|
|
|
@@ -75,6 +72,9 @@ module PulpOstreeClient
|
|
|
75
72
|
# Headers for aiohttp.Clientsession
|
|
76
73
|
attr_accessor :headers
|
|
77
74
|
|
|
75
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
76
|
+
attr_accessor :download_concurrency
|
|
77
|
+
|
|
78
78
|
# Limits requests per second for each concurrent downloader
|
|
79
79
|
attr_accessor :rate_limit
|
|
80
80
|
|
|
@@ -114,6 +114,8 @@ module PulpOstreeClient
|
|
|
114
114
|
{
|
|
115
115
|
:'name' => :'name',
|
|
116
116
|
:'url' => :'url',
|
|
117
|
+
:'pulp_labels' => :'pulp_labels',
|
|
118
|
+
:'policy' => :'policy',
|
|
117
119
|
:'ca_cert' => :'ca_cert',
|
|
118
120
|
:'client_cert' => :'client_cert',
|
|
119
121
|
:'client_key' => :'client_key',
|
|
@@ -123,15 +125,13 @@ module PulpOstreeClient
|
|
|
123
125
|
:'proxy_password' => :'proxy_password',
|
|
124
126
|
:'username' => :'username',
|
|
125
127
|
:'password' => :'password',
|
|
126
|
-
:'pulp_labels' => :'pulp_labels',
|
|
127
|
-
:'download_concurrency' => :'download_concurrency',
|
|
128
128
|
:'max_retries' => :'max_retries',
|
|
129
|
-
:'policy' => :'policy',
|
|
130
129
|
:'total_timeout' => :'total_timeout',
|
|
131
130
|
:'connect_timeout' => :'connect_timeout',
|
|
132
131
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
133
132
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
134
133
|
:'headers' => :'headers',
|
|
134
|
+
:'download_concurrency' => :'download_concurrency',
|
|
135
135
|
:'rate_limit' => :'rate_limit',
|
|
136
136
|
:'depth' => :'depth',
|
|
137
137
|
:'include_refs' => :'include_refs',
|
|
@@ -149,6 +149,8 @@ module PulpOstreeClient
|
|
|
149
149
|
{
|
|
150
150
|
:'name' => :'String',
|
|
151
151
|
:'url' => :'String',
|
|
152
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
153
|
+
:'policy' => :'PolicyEnum',
|
|
152
154
|
:'ca_cert' => :'String',
|
|
153
155
|
:'client_cert' => :'String',
|
|
154
156
|
:'client_key' => :'String',
|
|
@@ -158,15 +160,13 @@ module PulpOstreeClient
|
|
|
158
160
|
:'proxy_password' => :'String',
|
|
159
161
|
:'username' => :'String',
|
|
160
162
|
:'password' => :'String',
|
|
161
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
162
|
-
:'download_concurrency' => :'Integer',
|
|
163
163
|
:'max_retries' => :'Integer',
|
|
164
|
-
:'policy' => :'PolicyEnum',
|
|
165
164
|
:'total_timeout' => :'Float',
|
|
166
165
|
:'connect_timeout' => :'Float',
|
|
167
166
|
:'sock_connect_timeout' => :'Float',
|
|
168
167
|
:'sock_read_timeout' => :'Float',
|
|
169
168
|
:'headers' => :'Array<Object>',
|
|
169
|
+
:'download_concurrency' => :'Integer',
|
|
170
170
|
:'rate_limit' => :'Integer',
|
|
171
171
|
:'depth' => :'Integer',
|
|
172
172
|
:'include_refs' => :'Array<String>',
|
|
@@ -185,12 +185,12 @@ module PulpOstreeClient
|
|
|
185
185
|
:'proxy_password',
|
|
186
186
|
:'username',
|
|
187
187
|
:'password',
|
|
188
|
-
:'download_concurrency',
|
|
189
188
|
:'max_retries',
|
|
190
189
|
:'total_timeout',
|
|
191
190
|
:'connect_timeout',
|
|
192
191
|
:'sock_connect_timeout',
|
|
193
192
|
:'sock_read_timeout',
|
|
193
|
+
:'download_concurrency',
|
|
194
194
|
:'rate_limit',
|
|
195
195
|
:'include_refs',
|
|
196
196
|
:'exclude_refs'
|
|
@@ -220,6 +220,16 @@ module PulpOstreeClient
|
|
|
220
220
|
self.url = attributes[:'url']
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
+
if attributes.key?(:'pulp_labels')
|
|
224
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
225
|
+
self.pulp_labels = value
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if attributes.key?(:'policy')
|
|
230
|
+
self.policy = attributes[:'policy']
|
|
231
|
+
end
|
|
232
|
+
|
|
223
233
|
if attributes.key?(:'ca_cert')
|
|
224
234
|
self.ca_cert = attributes[:'ca_cert']
|
|
225
235
|
end
|
|
@@ -256,24 +266,10 @@ module PulpOstreeClient
|
|
|
256
266
|
self.password = attributes[:'password']
|
|
257
267
|
end
|
|
258
268
|
|
|
259
|
-
if attributes.key?(:'pulp_labels')
|
|
260
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
261
|
-
self.pulp_labels = value
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
if attributes.key?(:'download_concurrency')
|
|
266
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
267
|
-
end
|
|
268
|
-
|
|
269
269
|
if attributes.key?(:'max_retries')
|
|
270
270
|
self.max_retries = attributes[:'max_retries']
|
|
271
271
|
end
|
|
272
272
|
|
|
273
|
-
if attributes.key?(:'policy')
|
|
274
|
-
self.policy = attributes[:'policy']
|
|
275
|
-
end
|
|
276
|
-
|
|
277
273
|
if attributes.key?(:'total_timeout')
|
|
278
274
|
self.total_timeout = attributes[:'total_timeout']
|
|
279
275
|
end
|
|
@@ -296,6 +292,10 @@ module PulpOstreeClient
|
|
|
296
292
|
end
|
|
297
293
|
end
|
|
298
294
|
|
|
295
|
+
if attributes.key?(:'download_concurrency')
|
|
296
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
299
|
if attributes.key?(:'rate_limit')
|
|
300
300
|
self.rate_limit = attributes[:'rate_limit']
|
|
301
301
|
end
|
|
@@ -380,6 +380,10 @@ module PulpOstreeClient
|
|
|
380
380
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
381
381
|
end
|
|
382
382
|
|
|
383
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
384
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
385
|
+
end
|
|
386
|
+
|
|
383
387
|
if !@depth.nil? && @depth < 0
|
|
384
388
|
invalid_properties.push('invalid value for "depth", must be greater than or equal to 0.')
|
|
385
389
|
end
|
|
@@ -405,6 +409,7 @@ module PulpOstreeClient
|
|
|
405
409
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
406
410
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
407
411
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
412
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
408
413
|
return false if !@depth.nil? && @depth < 0
|
|
409
414
|
true
|
|
410
415
|
end
|
|
@@ -557,6 +562,16 @@ module PulpOstreeClient
|
|
|
557
562
|
@sock_read_timeout = sock_read_timeout
|
|
558
563
|
end
|
|
559
564
|
|
|
565
|
+
# Custom attribute writer method with validation
|
|
566
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
567
|
+
def download_concurrency=(download_concurrency)
|
|
568
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
569
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
@download_concurrency = download_concurrency
|
|
573
|
+
end
|
|
574
|
+
|
|
560
575
|
# Custom attribute writer method with validation
|
|
561
576
|
# @param [Object] depth Value to be assigned
|
|
562
577
|
def depth=(depth)
|
|
@@ -578,6 +593,8 @@ module PulpOstreeClient
|
|
|
578
593
|
self.class == o.class &&
|
|
579
594
|
name == o.name &&
|
|
580
595
|
url == o.url &&
|
|
596
|
+
pulp_labels == o.pulp_labels &&
|
|
597
|
+
policy == o.policy &&
|
|
581
598
|
ca_cert == o.ca_cert &&
|
|
582
599
|
client_cert == o.client_cert &&
|
|
583
600
|
client_key == o.client_key &&
|
|
@@ -587,15 +604,13 @@ module PulpOstreeClient
|
|
|
587
604
|
proxy_password == o.proxy_password &&
|
|
588
605
|
username == o.username &&
|
|
589
606
|
password == o.password &&
|
|
590
|
-
pulp_labels == o.pulp_labels &&
|
|
591
|
-
download_concurrency == o.download_concurrency &&
|
|
592
607
|
max_retries == o.max_retries &&
|
|
593
|
-
policy == o.policy &&
|
|
594
608
|
total_timeout == o.total_timeout &&
|
|
595
609
|
connect_timeout == o.connect_timeout &&
|
|
596
610
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
597
611
|
sock_read_timeout == o.sock_read_timeout &&
|
|
598
612
|
headers == o.headers &&
|
|
613
|
+
download_concurrency == o.download_concurrency &&
|
|
599
614
|
rate_limit == o.rate_limit &&
|
|
600
615
|
depth == o.depth &&
|
|
601
616
|
include_refs == o.include_refs &&
|
|
@@ -611,7 +626,7 @@ module PulpOstreeClient
|
|
|
611
626
|
# Calculates hash code according to all attributes.
|
|
612
627
|
# @return [Integer] Hash code
|
|
613
628
|
def hash
|
|
614
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password,
|
|
629
|
+
[name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, depth, include_refs, exclude_refs].hash
|
|
615
630
|
end
|
|
616
631
|
|
|
617
632
|
# Builds the object from hash
|
|
@@ -27,6 +27,9 @@ module PulpOstreeClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -39,6 +42,7 @@ module PulpOstreeClient
|
|
|
39
42
|
:'name' => :'name',
|
|
40
43
|
:'description' => :'description',
|
|
41
44
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
45
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
42
46
|
:'remote' => :'remote',
|
|
43
47
|
:'compute_delta' => :'compute_delta'
|
|
44
48
|
}
|
|
@@ -56,6 +60,7 @@ module PulpOstreeClient
|
|
|
56
60
|
:'name' => :'String',
|
|
57
61
|
:'description' => :'String',
|
|
58
62
|
:'retain_repo_versions' => :'Integer',
|
|
63
|
+
:'retain_checkpoints' => :'Integer',
|
|
59
64
|
:'remote' => :'String',
|
|
60
65
|
:'compute_delta' => :'Boolean'
|
|
61
66
|
}
|
|
@@ -66,6 +71,7 @@ module PulpOstreeClient
|
|
|
66
71
|
Set.new([
|
|
67
72
|
:'description',
|
|
68
73
|
:'retain_repo_versions',
|
|
74
|
+
:'retain_checkpoints',
|
|
69
75
|
:'remote',
|
|
70
76
|
])
|
|
71
77
|
end
|
|
@@ -103,6 +109,10 @@ module PulpOstreeClient
|
|
|
103
109
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
104
110
|
end
|
|
105
111
|
|
|
112
|
+
if attributes.key?(:'retain_checkpoints')
|
|
113
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
114
|
+
end
|
|
115
|
+
|
|
106
116
|
if attributes.key?(:'remote')
|
|
107
117
|
self.remote = attributes[:'remote']
|
|
108
118
|
end
|
|
@@ -127,6 +137,14 @@ module PulpOstreeClient
|
|
|
127
137
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
128
138
|
end
|
|
129
139
|
|
|
140
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
145
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
146
|
+
end
|
|
147
|
+
|
|
130
148
|
invalid_properties
|
|
131
149
|
end
|
|
132
150
|
|
|
@@ -136,6 +154,8 @@ module PulpOstreeClient
|
|
|
136
154
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
137
155
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
138
156
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
157
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
158
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
139
159
|
true
|
|
140
160
|
end
|
|
141
161
|
|
|
@@ -163,6 +183,26 @@ module PulpOstreeClient
|
|
|
163
183
|
@description = description
|
|
164
184
|
end
|
|
165
185
|
|
|
186
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
188
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
189
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
190
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
@retain_repo_versions = retain_repo_versions
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Custom attribute writer method with validation
|
|
197
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
198
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
199
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
200
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
@retain_checkpoints = retain_checkpoints
|
|
204
|
+
end
|
|
205
|
+
|
|
166
206
|
# Checks equality by comparing each attribute.
|
|
167
207
|
# @param [Object] Object to be compared
|
|
168
208
|
def ==(o)
|
|
@@ -172,6 +212,7 @@ module PulpOstreeClient
|
|
|
172
212
|
name == o.name &&
|
|
173
213
|
description == o.description &&
|
|
174
214
|
retain_repo_versions == o.retain_repo_versions &&
|
|
215
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
175
216
|
remote == o.remote &&
|
|
176
217
|
compute_delta == o.compute_delta
|
|
177
218
|
end
|
|
@@ -185,7 +226,7 @@ module PulpOstreeClient
|
|
|
185
226
|
# Calculates hash code according to all attributes.
|
|
186
227
|
# @return [Integer] Hash code
|
|
187
228
|
def hash
|
|
188
|
-
[pulp_labels, name, description, retain_repo_versions, remote, compute_delta].hash
|
|
229
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, compute_delta].hash
|
|
189
230
|
end
|
|
190
231
|
|
|
191
232
|
# Builds the object from hash
|
|
@@ -25,12 +25,16 @@ module PulpOstreeClient
|
|
|
25
25
|
# A repository version whose content will be used as the initial set of content for the new repository version
|
|
26
26
|
attr_accessor :base_version
|
|
27
27
|
|
|
28
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
|
|
29
|
+
attr_accessor :overwrite
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'add_content_units' => :'add_content_units',
|
|
32
35
|
:'remove_content_units' => :'remove_content_units',
|
|
33
|
-
:'base_version' => :'base_version'
|
|
36
|
+
:'base_version' => :'base_version',
|
|
37
|
+
:'overwrite' => :'overwrite'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -44,7 +48,8 @@ module PulpOstreeClient
|
|
|
44
48
|
{
|
|
45
49
|
:'add_content_units' => :'Array<String>',
|
|
46
50
|
:'remove_content_units' => :'Array<String>',
|
|
47
|
-
:'base_version' => :'String'
|
|
51
|
+
:'base_version' => :'String',
|
|
52
|
+
:'overwrite' => :'Boolean'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
50
55
|
|
|
@@ -84,6 +89,12 @@ module PulpOstreeClient
|
|
|
84
89
|
if attributes.key?(:'base_version')
|
|
85
90
|
self.base_version = attributes[:'base_version']
|
|
86
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'overwrite')
|
|
94
|
+
self.overwrite = attributes[:'overwrite']
|
|
95
|
+
else
|
|
96
|
+
self.overwrite = true
|
|
97
|
+
end
|
|
87
98
|
end
|
|
88
99
|
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +119,8 @@ module PulpOstreeClient
|
|
|
108
119
|
self.class == o.class &&
|
|
109
120
|
add_content_units == o.add_content_units &&
|
|
110
121
|
remove_content_units == o.remove_content_units &&
|
|
111
|
-
base_version == o.base_version
|
|
122
|
+
base_version == o.base_version &&
|
|
123
|
+
overwrite == o.overwrite
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# @see the `==` method
|
|
@@ -120,7 +132,7 @@ module PulpOstreeClient
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
def hash
|
|
123
|
-
[add_content_units, remove_content_units, base_version].hash
|
|
135
|
+
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
# Builds the object from hash
|
|
@@ -89,11 +89,6 @@ module PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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 PulpOstreeClient
|
|
|
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)
|
|
@@ -47,9 +47,9 @@ describe 'ContentCommitsApi' do
|
|
|
47
47
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
48
48
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
49
49
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
50
|
-
# @option opts [String] :repository_version
|
|
51
|
-
# @option opts [String] :repository_version_added
|
|
52
|
-
# @option opts [String] :repository_version_removed
|
|
50
|
+
# @option opts [String] :repository_version
|
|
51
|
+
# @option opts [String] :repository_version_added
|
|
52
|
+
# @option opts [String] :repository_version_removed
|
|
53
53
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
54
54
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
55
55
|
# @return [PaginatedostreeOstreeCommitResponseList]
|
|
@@ -46,9 +46,9 @@ describe 'ContentConfigsApi' do
|
|
|
46
46
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
47
47
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
48
48
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
49
|
-
# @option opts [String] :repository_version
|
|
50
|
-
# @option opts [String] :repository_version_added
|
|
51
|
-
# @option opts [String] :repository_version_removed
|
|
49
|
+
# @option opts [String] :repository_version
|
|
50
|
+
# @option opts [String] :repository_version_added
|
|
51
|
+
# @option opts [String] :repository_version_removed
|
|
52
52
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
53
53
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
54
54
|
# @return [PaginatedostreeOstreeConfigResponseList]
|
|
@@ -59,9 +59,9 @@ describe 'ContentContentApi' do
|
|
|
59
59
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
60
60
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
61
61
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
62
|
-
# @option opts [String] :repository_version
|
|
63
|
-
# @option opts [String] :repository_version_added
|
|
64
|
-
# @option opts [String] :repository_version_removed
|
|
62
|
+
# @option opts [String] :repository_version
|
|
63
|
+
# @option opts [String] :repository_version_added
|
|
64
|
+
# @option opts [String] :repository_version_removed
|
|
65
65
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
66
66
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
67
67
|
# @return [PaginatedostreeOstreeContentResponseList]
|
|
@@ -47,9 +47,9 @@ describe 'ContentObjectsApi' do
|
|
|
47
47
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
48
48
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
49
49
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
50
|
-
# @option opts [String] :repository_version
|
|
51
|
-
# @option opts [String] :repository_version_added
|
|
52
|
-
# @option opts [String] :repository_version_removed
|
|
50
|
+
# @option opts [String] :repository_version
|
|
51
|
+
# @option opts [String] :repository_version_added
|
|
52
|
+
# @option opts [String] :repository_version_removed
|
|
53
53
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
54
54
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
55
55
|
# @return [PaginatedostreeOstreeObjectResponseList]
|
|
@@ -56,9 +56,9 @@ describe 'ContentRefsApi' do
|
|
|
56
56
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
57
57
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
58
58
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
59
|
-
# @option opts [String] :repository_version
|
|
60
|
-
# @option opts [String] :repository_version_added
|
|
61
|
-
# @option opts [String] :repository_version_removed
|
|
59
|
+
# @option opts [String] :repository_version
|
|
60
|
+
# @option opts [String] :repository_version_added
|
|
61
|
+
# @option opts [String] :repository_version_removed
|
|
62
62
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
63
63
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
64
64
|
# @return [PaginatedostreeOstreeRefResponseList]
|
|
@@ -46,9 +46,9 @@ describe 'ContentSummariesApi' do
|
|
|
46
46
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
47
47
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
48
48
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
49
|
-
# @option opts [String] :repository_version
|
|
50
|
-
# @option opts [String] :repository_version_added
|
|
51
|
-
# @option opts [String] :repository_version_removed
|
|
49
|
+
# @option opts [String] :repository_version
|
|
50
|
+
# @option opts [String] :repository_version_added
|
|
51
|
+
# @option opts [String] :repository_version_removed
|
|
52
52
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
53
53
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
54
54
|
# @return [PaginatedostreeOstreeSummaryResponseList]
|
|
@@ -99,8 +99,8 @@ describe 'DistributionsOstreeApi' do
|
|
|
99
99
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
100
100
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
101
101
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
102
|
-
# @option opts [String] :repository
|
|
103
|
-
# @option opts [Array<String>] :repository__in
|
|
102
|
+
# @option opts [String] :repository
|
|
103
|
+
# @option opts [Array<String>] :repository__in
|
|
104
104
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
|
105
105
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
106
106
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|