pulp_file_client 1.8.0 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +21 -15
- data/docs/AcsFileApi.md +416 -0
- data/docs/ContentFilesApi.md +1 -1
- data/docs/DistributionsFileApi.md +1 -1
- data/docs/FileFileAlternateContentSource.md +23 -0
- data/docs/FileFileAlternateContentSourceResponse.md +27 -0
- data/docs/FileFileRemote.md +7 -5
- data/docs/FileFileRemoteResponse.md +7 -5
- data/docs/FileFileRepository.md +3 -3
- data/docs/FileFileRepositoryResponse.md +3 -3
- data/docs/PaginatedfileFileAlternateContentSourceResponseList.md +23 -0
- data/docs/PatchedfileFileAlternateContentSource.md +23 -0
- data/docs/PatchedfileFileRemote.md +7 -5
- data/docs/PatchedfileFileRepository.md +3 -3
- data/docs/PublicationsFileApi.md +1 -1
- data/docs/RemotesFileApi.md +1 -1
- data/docs/RepositoriesFileApi.md +1 -1
- data/docs/RepositoriesFileVersionsApi.md +1 -1
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/lib/pulp_file_client/api/acs_file_api.rb +508 -0
- data/lib/pulp_file_client/api/content_files_api.rb +1 -1
- data/lib/pulp_file_client/api/distributions_file_api.rb +1 -1
- data/lib/pulp_file_client/api/publications_file_api.rb +1 -1
- data/lib/pulp_file_client/api/remotes_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_api.rb +1 -1
- data/lib/pulp_file_client/api/repositories_file_versions_api.rb +1 -1
- data/lib/pulp_file_client/api_client.rb +12 -8
- data/lib/pulp_file_client/api_error.rb +1 -1
- data/lib/pulp_file_client/configuration.rb +10 -3
- data/lib/pulp_file_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_file_client/models/content_summary.rb +1 -1
- data/lib/pulp_file_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_alternate_content_source.rb +251 -0
- data/lib/pulp_file_client/models/file_file_alternate_content_source_response.rb +270 -0
- data/lib/pulp_file_client/models/file_file_content.rb +1 -1
- data/lib/pulp_file_client/models/file_file_content_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication.rb +1 -1
- data/lib/pulp_file_client/models/file_file_publication_response.rb +1 -1
- data/lib/pulp_file_client/models/file_file_remote.rb +19 -7
- data/lib/pulp_file_client/models/file_file_remote_response.rb +19 -7
- data/lib/pulp_file_client/models/file_file_repository.rb +18 -17
- data/lib/pulp_file_client/models/file_file_repository_response.rb +18 -17
- data/lib/pulp_file_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_alternate_content_source_response_list.rb +237 -0
- data/lib/pulp_file_client/models/paginatedfile_file_content_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_distribution_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_publication_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_remote_response_list.rb +1 -1
- data/lib/pulp_file_client/models/paginatedfile_file_repository_response_list.rb +1 -1
- data/lib/pulp_file_client/models/patchedfile_file_alternate_content_source.rb +241 -0
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +1 -1
- data/lib/pulp_file_client/models/patchedfile_file_remote.rb +19 -7
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +18 -17
- data/lib/pulp_file_client/models/policy_enum.rb +1 -1
- data/lib/pulp_file_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_file_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_file_client/models/repository_version.rb +1 -1
- data/lib/pulp_file_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_file_client/version.rb +2 -2
- data/lib/pulp_file_client.rb +6 -1
- data/pulp_file_client.gemspec +1 -1
- data/spec/api/acs_file_api_spec.rb +132 -0
- data/spec/api/content_files_api_spec.rb +1 -1
- data/spec/api/distributions_file_api_spec.rb +1 -1
- data/spec/api/publications_file_api_spec.rb +1 -1
- data/spec/api/remotes_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_api_spec.rb +1 -1
- data/spec/api/repositories_file_versions_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/file_file_alternate_content_source_response_spec.rb +71 -0
- data/spec/models/file_file_alternate_content_source_spec.rb +59 -0
- data/spec/models/file_file_content_response_spec.rb +1 -1
- data/spec/models/file_file_content_spec.rb +1 -1
- data/spec/models/file_file_distribution_response_spec.rb +1 -1
- data/spec/models/file_file_distribution_spec.rb +1 -1
- data/spec/models/file_file_publication_response_spec.rb +1 -1
- data/spec/models/file_file_publication_spec.rb +1 -1
- data/spec/models/file_file_remote_response_spec.rb +7 -1
- data/spec/models/file_file_remote_spec.rb +7 -1
- data/spec/models/file_file_repository_response_spec.rb +2 -2
- data/spec/models/file_file_repository_spec.rb +2 -2
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb +59 -0
- data/spec/models/paginatedfile_file_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_publication_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedfile_file_repository_response_list_spec.rb +1 -1
- data/spec/models/patchedfile_file_alternate_content_source_spec.rb +59 -0
- data/spec/models/patchedfile_file_distribution_spec.rb +1 -1
- data/spec/models/patchedfile_file_remote_spec.rb +7 -1
- data/spec/models/patchedfile_file_repository_spec.rb +2 -2
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +43 -23
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -50,22 +50,25 @@ module PulpFileClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -90,6 +93,7 @@ module PulpFileClient
|
|
90
93
|
:'password' => :'password',
|
91
94
|
:'pulp_labels' => :'pulp_labels',
|
92
95
|
:'download_concurrency' => :'download_concurrency',
|
96
|
+
:'max_retries' => :'max_retries',
|
93
97
|
:'policy' => :'policy',
|
94
98
|
:'total_timeout' => :'total_timeout',
|
95
99
|
:'connect_timeout' => :'connect_timeout',
|
@@ -116,6 +120,7 @@ module PulpFileClient
|
|
116
120
|
:'password' => :'String',
|
117
121
|
:'pulp_labels' => :'Object',
|
118
122
|
:'download_concurrency' => :'Integer',
|
123
|
+
:'max_retries' => :'Integer',
|
119
124
|
:'policy' => :'PolicyEnum',
|
120
125
|
:'total_timeout' => :'Float',
|
121
126
|
:'connect_timeout' => :'Float',
|
@@ -137,6 +142,8 @@ module PulpFileClient
|
|
137
142
|
:'proxy_password',
|
138
143
|
:'username',
|
139
144
|
:'password',
|
145
|
+
:'download_concurrency',
|
146
|
+
:'max_retries',
|
140
147
|
:'total_timeout',
|
141
148
|
:'connect_timeout',
|
142
149
|
:'sock_connect_timeout',
|
@@ -212,6 +219,10 @@ module PulpFileClient
|
|
212
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
213
220
|
end
|
214
221
|
|
222
|
+
if attributes.key?(:'max_retries')
|
223
|
+
self.max_retries = attributes[:'max_retries']
|
224
|
+
end
|
225
|
+
|
215
226
|
if attributes.key?(:'policy')
|
216
227
|
self.policy = attributes[:'policy']
|
217
228
|
end
|
@@ -359,6 +370,7 @@ module PulpFileClient
|
|
359
370
|
password == o.password &&
|
360
371
|
pulp_labels == o.pulp_labels &&
|
361
372
|
download_concurrency == o.download_concurrency &&
|
373
|
+
max_retries == o.max_retries &&
|
362
374
|
policy == o.policy &&
|
363
375
|
total_timeout == o.total_timeout &&
|
364
376
|
connect_timeout == o.connect_timeout &&
|
@@ -377,7 +389,7 @@ module PulpFileClient
|
|
377
389
|
# Calculates hash code according to all attributes.
|
378
390
|
# @return [Integer] Hash code
|
379
391
|
def hash
|
380
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
392
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
381
393
|
end
|
382
394
|
|
383
395
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -43,22 +43,25 @@ module PulpFileClient
|
|
43
43
|
# Timestamp of the most recent update of the remote.
|
44
44
|
attr_accessor :pulp_last_updated
|
45
45
|
|
46
|
-
# Total number of simultaneous connections.
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
47
|
attr_accessor :download_concurrency
|
48
48
|
|
49
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
|
+
attr_accessor :max_retries
|
51
|
+
|
49
52
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
50
53
|
attr_accessor :policy
|
51
54
|
|
52
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
53
56
|
attr_accessor :total_timeout
|
54
57
|
|
55
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
56
59
|
attr_accessor :connect_timeout
|
57
60
|
|
58
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
61
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
59
62
|
attr_accessor :sock_connect_timeout
|
60
63
|
|
61
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
64
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
62
65
|
attr_accessor :sock_read_timeout
|
63
66
|
|
64
67
|
# Headers for aiohttp.Clientsession
|
@@ -81,6 +84,7 @@ module PulpFileClient
|
|
81
84
|
:'pulp_labels' => :'pulp_labels',
|
82
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
83
86
|
:'download_concurrency' => :'download_concurrency',
|
87
|
+
:'max_retries' => :'max_retries',
|
84
88
|
:'policy' => :'policy',
|
85
89
|
:'total_timeout' => :'total_timeout',
|
86
90
|
:'connect_timeout' => :'connect_timeout',
|
@@ -105,6 +109,7 @@ module PulpFileClient
|
|
105
109
|
:'pulp_labels' => :'Object',
|
106
110
|
:'pulp_last_updated' => :'DateTime',
|
107
111
|
:'download_concurrency' => :'Integer',
|
112
|
+
:'max_retries' => :'Integer',
|
108
113
|
:'policy' => :'PolicyEnum',
|
109
114
|
:'total_timeout' => :'Float',
|
110
115
|
:'connect_timeout' => :'Float',
|
@@ -121,6 +126,8 @@ module PulpFileClient
|
|
121
126
|
:'ca_cert',
|
122
127
|
:'client_cert',
|
123
128
|
:'proxy_url',
|
129
|
+
:'download_concurrency',
|
130
|
+
:'max_retries',
|
124
131
|
:'total_timeout',
|
125
132
|
:'connect_timeout',
|
126
133
|
:'sock_connect_timeout',
|
@@ -188,6 +195,10 @@ module PulpFileClient
|
|
188
195
|
self.download_concurrency = attributes[:'download_concurrency']
|
189
196
|
end
|
190
197
|
|
198
|
+
if attributes.key?(:'max_retries')
|
199
|
+
self.max_retries = attributes[:'max_retries']
|
200
|
+
end
|
201
|
+
|
191
202
|
if attributes.key?(:'policy')
|
192
203
|
self.policy = attributes[:'policy']
|
193
204
|
end
|
@@ -333,6 +344,7 @@ module PulpFileClient
|
|
333
344
|
pulp_labels == o.pulp_labels &&
|
334
345
|
pulp_last_updated == o.pulp_last_updated &&
|
335
346
|
download_concurrency == o.download_concurrency &&
|
347
|
+
max_retries == o.max_retries &&
|
336
348
|
policy == o.policy &&
|
337
349
|
total_timeout == o.total_timeout &&
|
338
350
|
connect_timeout == o.connect_timeout &&
|
@@ -351,7 +363,7 @@ module PulpFileClient
|
|
351
363
|
# Calculates hash code according to all attributes.
|
352
364
|
# @return [Integer] Hash code
|
353
365
|
def hash
|
354
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
366
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
355
367
|
end
|
356
368
|
|
357
369
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,8 +24,9 @@ module PulpFileClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -40,7 +41,7 @@ module PulpFileClient
|
|
40
41
|
:'pulp_labels' => :'pulp_labels',
|
41
42
|
:'name' => :'name',
|
42
43
|
:'description' => :'description',
|
43
|
-
:'
|
44
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
44
45
|
:'remote' => :'remote',
|
45
46
|
:'autopublish' => :'autopublish',
|
46
47
|
:'manifest' => :'manifest'
|
@@ -53,7 +54,7 @@ module PulpFileClient
|
|
53
54
|
:'pulp_labels' => :'Object',
|
54
55
|
:'name' => :'String',
|
55
56
|
:'description' => :'String',
|
56
|
-
:'
|
57
|
+
:'retain_repo_versions' => :'Integer',
|
57
58
|
:'remote' => :'String',
|
58
59
|
:'autopublish' => :'Boolean',
|
59
60
|
:'manifest' => :'String'
|
@@ -64,7 +65,7 @@ module PulpFileClient
|
|
64
65
|
def self.openapi_nullable
|
65
66
|
Set.new([
|
66
67
|
:'description',
|
67
|
-
:'
|
68
|
+
:'retain_repo_versions',
|
68
69
|
:'remote',
|
69
70
|
])
|
70
71
|
end
|
@@ -96,8 +97,8 @@ module PulpFileClient
|
|
96
97
|
self.description = attributes[:'description']
|
97
98
|
end
|
98
99
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
100
|
+
if attributes.key?(:'retain_repo_versions')
|
101
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
101
102
|
end
|
102
103
|
|
103
104
|
if attributes.key?(:'remote')
|
@@ -125,8 +126,8 @@ module PulpFileClient
|
|
125
126
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
126
127
|
end
|
127
128
|
|
128
|
-
if !@
|
129
|
-
invalid_properties.push('invalid value for "
|
129
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
130
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
130
131
|
end
|
131
132
|
|
132
133
|
invalid_properties
|
@@ -136,18 +137,18 @@ module PulpFileClient
|
|
136
137
|
# @return true if the model is valid
|
137
138
|
def valid?
|
138
139
|
return false if @name.nil?
|
139
|
-
return false if !@
|
140
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
140
141
|
true
|
141
142
|
end
|
142
143
|
|
143
144
|
# Custom attribute writer method with validation
|
144
|
-
# @param [Object]
|
145
|
-
def
|
146
|
-
if !
|
147
|
-
fail ArgumentError, 'invalid value for "
|
145
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
146
|
+
def retain_repo_versions=(retain_repo_versions)
|
147
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
148
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
148
149
|
end
|
149
150
|
|
150
|
-
@
|
151
|
+
@retain_repo_versions = retain_repo_versions
|
151
152
|
end
|
152
153
|
|
153
154
|
# Checks equality by comparing each attribute.
|
@@ -158,7 +159,7 @@ module PulpFileClient
|
|
158
159
|
pulp_labels == o.pulp_labels &&
|
159
160
|
name == o.name &&
|
160
161
|
description == o.description &&
|
161
|
-
|
162
|
+
retain_repo_versions == o.retain_repo_versions &&
|
162
163
|
remote == o.remote &&
|
163
164
|
autopublish == o.autopublish &&
|
164
165
|
manifest == o.manifest
|
@@ -173,7 +174,7 @@ module PulpFileClient
|
|
173
174
|
# Calculates hash code according to all attributes.
|
174
175
|
# @return [Integer] Hash code
|
175
176
|
def hash
|
176
|
-
[pulp_labels, name, description,
|
177
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, manifest].hash
|
177
178
|
end
|
178
179
|
|
179
180
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,8 +33,9 @@ module PulpFileClient
|
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
35
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :retain_repo_versions
|
37
37
|
|
38
|
+
# An optional remote to use by default when syncing.
|
38
39
|
attr_accessor :remote
|
39
40
|
|
40
41
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -53,7 +54,7 @@ module PulpFileClient
|
|
53
54
|
:'latest_version_href' => :'latest_version_href',
|
54
55
|
:'name' => :'name',
|
55
56
|
:'description' => :'description',
|
56
|
-
:'
|
57
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
57
58
|
:'remote' => :'remote',
|
58
59
|
:'autopublish' => :'autopublish',
|
59
60
|
:'manifest' => :'manifest'
|
@@ -70,7 +71,7 @@ module PulpFileClient
|
|
70
71
|
:'latest_version_href' => :'String',
|
71
72
|
:'name' => :'String',
|
72
73
|
:'description' => :'String',
|
73
|
-
:'
|
74
|
+
:'retain_repo_versions' => :'Integer',
|
74
75
|
:'remote' => :'String',
|
75
76
|
:'autopublish' => :'Boolean',
|
76
77
|
:'manifest' => :'String'
|
@@ -81,7 +82,7 @@ module PulpFileClient
|
|
81
82
|
def self.openapi_nullable
|
82
83
|
Set.new([
|
83
84
|
:'description',
|
84
|
-
:'
|
85
|
+
:'retain_repo_versions',
|
85
86
|
:'remote',
|
86
87
|
])
|
87
88
|
end
|
@@ -129,8 +130,8 @@ module PulpFileClient
|
|
129
130
|
self.description = attributes[:'description']
|
130
131
|
end
|
131
132
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
133
|
+
if attributes.key?(:'retain_repo_versions')
|
134
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
134
135
|
end
|
135
136
|
|
136
137
|
if attributes.key?(:'remote')
|
@@ -158,8 +159,8 @@ module PulpFileClient
|
|
158
159
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
159
160
|
end
|
160
161
|
|
161
|
-
if !@
|
162
|
-
invalid_properties.push('invalid value for "
|
162
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
163
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
163
164
|
end
|
164
165
|
|
165
166
|
invalid_properties
|
@@ -169,18 +170,18 @@ module PulpFileClient
|
|
169
170
|
# @return true if the model is valid
|
170
171
|
def valid?
|
171
172
|
return false if @name.nil?
|
172
|
-
return false if !@
|
173
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
173
174
|
true
|
174
175
|
end
|
175
176
|
|
176
177
|
# Custom attribute writer method with validation
|
177
|
-
# @param [Object]
|
178
|
-
def
|
179
|
-
if !
|
180
|
-
fail ArgumentError, 'invalid value for "
|
178
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
179
|
+
def retain_repo_versions=(retain_repo_versions)
|
180
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
181
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
181
182
|
end
|
182
183
|
|
183
|
-
@
|
184
|
+
@retain_repo_versions = retain_repo_versions
|
184
185
|
end
|
185
186
|
|
186
187
|
# Checks equality by comparing each attribute.
|
@@ -195,7 +196,7 @@ module PulpFileClient
|
|
195
196
|
latest_version_href == o.latest_version_href &&
|
196
197
|
name == o.name &&
|
197
198
|
description == o.description &&
|
198
|
-
|
199
|
+
retain_repo_versions == o.retain_repo_versions &&
|
199
200
|
remote == o.remote &&
|
200
201
|
autopublish == o.autopublish &&
|
201
202
|
manifest == o.manifest
|
@@ -210,7 +211,7 @@ module PulpFileClient
|
|
210
211
|
# Calculates hash code according to all attributes.
|
211
212
|
# @return [Integer] Hash code
|
212
213
|
def hash
|
213
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
214
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, manifest].hash
|
214
215
|
end
|
215
216
|
|
216
217
|
# Builds the object from hash
|