pulpcore_client 3.85.13 → 3.86.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/README.md +4 -4
- data/docs/ArtifactDistributionResponse.md +13 -13
- data/docs/Domain.md +1 -1
- data/docs/DomainBackendMigrator.md +1 -1
- data/docs/DomainResponse.md +1 -1
- data/docs/PatchedDomain.md +1 -1
- data/docs/Purge.md +1 -1
- data/docs/VulnReportApi.md +0 -12
- data/lib/pulpcore_client/api/vuln_report_api.rb +0 -22
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +63 -63
- data/lib/pulpcore_client/models/domain.rb +1 -1
- data/lib/pulpcore_client/models/domain_backend_migrator.rb +1 -1
- data/lib/pulpcore_client/models/domain_response.rb +1 -1
- data/lib/pulpcore_client/models/generic_remote_response.rb +0 -15
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +0 -9
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +0 -15
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -24
- data/lib/pulpcore_client/models/patched_domain.rb +1 -1
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +0 -15
- data/lib/pulpcore_client/models/purge.rb +1 -1
- data/lib/pulpcore_client/models/repository_response.rb +0 -15
- data/lib/pulpcore_client/models/storage_class_enum.rb +1 -2
- data/lib/pulpcore_client/models/storage_response.rb +0 -45
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/vuln_report_api_spec.rb +0 -6
- data/spec/models/artifact_distribution_response_spec.rb +11 -11
- metadata +195 -195
|
@@ -186,10 +186,6 @@ module PulpcoreClient
|
|
|
186
186
|
def list_invalid_properties
|
|
187
187
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
188
188
|
invalid_properties = Array.new
|
|
189
|
-
if !@issuer.nil? && @issuer.to_s.length > 16
|
|
190
|
-
invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
|
|
191
|
-
end
|
|
192
|
-
|
|
193
189
|
if @created.nil?
|
|
194
190
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
195
191
|
end
|
|
@@ -205,22 +201,11 @@ module PulpcoreClient
|
|
|
205
201
|
# @return true if the model is valid
|
|
206
202
|
def valid?
|
|
207
203
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
208
|
-
return false if !@issuer.nil? && @issuer.to_s.length > 16
|
|
209
204
|
return false if @created.nil?
|
|
210
205
|
return false if @expired.nil?
|
|
211
206
|
true
|
|
212
207
|
end
|
|
213
208
|
|
|
214
|
-
# Custom attribute writer method with validation
|
|
215
|
-
# @param [Object] issuer Value to be assigned
|
|
216
|
-
def issuer=(issuer)
|
|
217
|
-
if !issuer.nil? && issuer.to_s.length > 16
|
|
218
|
-
fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
@issuer = issuer
|
|
222
|
-
end
|
|
223
|
-
|
|
224
209
|
# Checks equality by comparing each attribute.
|
|
225
210
|
# @param [Object] Object to be compared
|
|
226
211
|
def ==(o)
|
|
@@ -80,14 +80,6 @@ module PulpcoreClient
|
|
|
80
80
|
def list_invalid_properties
|
|
81
81
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
82
|
invalid_properties = Array.new
|
|
83
|
-
if !@orphan_protection_time.nil? && @orphan_protection_time > 4294967295
|
|
84
|
-
invalid_properties.push('invalid value for "orphan_protection_time", must be smaller than or equal to 4294967295.')
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
if !@orphan_protection_time.nil? && @orphan_protection_time < 0
|
|
88
|
-
invalid_properties.push('invalid value for "orphan_protection_time", must be greater than or equal to 0.')
|
|
89
|
-
end
|
|
90
|
-
|
|
91
83
|
invalid_properties
|
|
92
84
|
end
|
|
93
85
|
|
|
@@ -95,25 +87,9 @@ module PulpcoreClient
|
|
|
95
87
|
# @return true if the model is valid
|
|
96
88
|
def valid?
|
|
97
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
98
|
-
return false if !@orphan_protection_time.nil? && @orphan_protection_time > 4294967295
|
|
99
|
-
return false if !@orphan_protection_time.nil? && @orphan_protection_time < 0
|
|
100
90
|
true
|
|
101
91
|
end
|
|
102
92
|
|
|
103
|
-
# Custom attribute writer method with validation
|
|
104
|
-
# @param [Object] orphan_protection_time Value to be assigned
|
|
105
|
-
def orphan_protection_time=(orphan_protection_time)
|
|
106
|
-
if !orphan_protection_time.nil? && orphan_protection_time > 4294967295
|
|
107
|
-
fail ArgumentError, 'invalid value for "orphan_protection_time", must be smaller than or equal to 4294967295.'
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if !orphan_protection_time.nil? && orphan_protection_time < 0
|
|
111
|
-
fail ArgumentError, 'invalid value for "orphan_protection_time", must be greater than or equal to 0.'
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
@orphan_protection_time = orphan_protection_time
|
|
115
|
-
end
|
|
116
|
-
|
|
117
93
|
# Checks equality by comparing each attribute.
|
|
118
94
|
# @param [Object] Object to be compared
|
|
119
95
|
def ==(o)
|
|
@@ -24,7 +24,7 @@ module PulpcoreClient
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :pulp_labels
|
|
26
26
|
|
|
27
|
-
# Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage
|
|
27
|
+
# Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
|
|
28
28
|
attr_accessor :storage_class
|
|
29
29
|
|
|
30
30
|
# Settings for storage class.
|
|
@@ -117,10 +117,6 @@ module PulpcoreClient
|
|
|
117
117
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
121
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
122
|
-
end
|
|
123
|
-
|
|
124
120
|
invalid_properties
|
|
125
121
|
end
|
|
126
122
|
|
|
@@ -130,7 +126,6 @@ module PulpcoreClient
|
|
|
130
126
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
127
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
132
128
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
133
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
134
129
|
true
|
|
135
130
|
end
|
|
136
131
|
|
|
@@ -158,16 +153,6 @@ module PulpcoreClient
|
|
|
158
153
|
@description = description
|
|
159
154
|
end
|
|
160
155
|
|
|
161
|
-
# Custom attribute writer method with validation
|
|
162
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
163
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
164
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
165
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
@retain_repo_versions = retain_repo_versions
|
|
169
|
-
end
|
|
170
|
-
|
|
171
156
|
# Checks equality by comparing each attribute.
|
|
172
157
|
# @param [Object] Object to be compared
|
|
173
158
|
def ==(o)
|
|
@@ -166,10 +166,6 @@ module PulpcoreClient
|
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
171
|
-
end
|
|
172
|
-
|
|
173
169
|
invalid_properties
|
|
174
170
|
end
|
|
175
171
|
|
|
@@ -178,20 +174,9 @@ module PulpcoreClient
|
|
|
178
174
|
def valid?
|
|
179
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
180
176
|
return false if @name.nil?
|
|
181
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
182
177
|
true
|
|
183
178
|
end
|
|
184
179
|
|
|
185
|
-
# Custom attribute writer method with validation
|
|
186
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
187
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
188
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
189
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
@retain_repo_versions = retain_repo_versions
|
|
193
|
-
end
|
|
194
|
-
|
|
195
180
|
# Checks equality by comparing each attribute.
|
|
196
181
|
# @param [Object] Object to be compared
|
|
197
182
|
def ==(o)
|
|
@@ -17,11 +17,10 @@ module PulpcoreClient
|
|
|
17
17
|
class StorageClassEnum
|
|
18
18
|
PULPCORE_APP_MODELS_STORAGE_FILE_SYSTEM = "pulpcore.app.models.storage.FileSystem".freeze
|
|
19
19
|
STORAGES_BACKENDS_S3BOTO3_S3_BOTO3_STORAGE = "storages.backends.s3boto3.S3Boto3Storage".freeze
|
|
20
|
-
STORAGES_BACKENDS_S3_S3_STORAGE = "storages.backends.s3.S3Storage".freeze
|
|
21
20
|
STORAGES_BACKENDS_AZURE_STORAGE_AZURE_STORAGE = "storages.backends.azure_storage.AzureStorage".freeze
|
|
22
21
|
|
|
23
22
|
def self.all_vars
|
|
24
|
-
@all_vars ||= [PULPCORE_APP_MODELS_STORAGE_FILE_SYSTEM, STORAGES_BACKENDS_S3BOTO3_S3_BOTO3_STORAGE,
|
|
23
|
+
@all_vars ||= [PULPCORE_APP_MODELS_STORAGE_FILE_SYSTEM, STORAGES_BACKENDS_S3BOTO3_S3_BOTO3_STORAGE, STORAGES_BACKENDS_AZURE_STORAGE_AZURE_STORAGE].freeze
|
|
25
24
|
end
|
|
26
25
|
|
|
27
26
|
# Builds the enum from string
|
|
@@ -96,18 +96,6 @@ module PulpcoreClient
|
|
|
96
96
|
def list_invalid_properties
|
|
97
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
98
|
invalid_properties = Array.new
|
|
99
|
-
if @total < 0
|
|
100
|
-
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if @used < 0
|
|
104
|
-
invalid_properties.push('invalid value for "used", must be greater than or equal to 0.')
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if @free < 0
|
|
108
|
-
invalid_properties.push('invalid value for "free", must be greater than or equal to 0.')
|
|
109
|
-
end
|
|
110
|
-
|
|
111
99
|
invalid_properties
|
|
112
100
|
end
|
|
113
101
|
|
|
@@ -115,42 +103,9 @@ module PulpcoreClient
|
|
|
115
103
|
# @return true if the model is valid
|
|
116
104
|
def valid?
|
|
117
105
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
-
return false if @total < 0
|
|
119
|
-
return false if @used < 0
|
|
120
|
-
return false if @free < 0
|
|
121
106
|
true
|
|
122
107
|
end
|
|
123
108
|
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] total Value to be assigned
|
|
126
|
-
def total=(total)
|
|
127
|
-
if !total.nil? && total < 0
|
|
128
|
-
fail ArgumentError, 'invalid value for "total", must be greater than or equal to 0.'
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
@total = total
|
|
132
|
-
end
|
|
133
|
-
|
|
134
|
-
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object] used Value to be assigned
|
|
136
|
-
def used=(used)
|
|
137
|
-
if !used.nil? && used < 0
|
|
138
|
-
fail ArgumentError, 'invalid value for "used", must be greater than or equal to 0.'
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@used = used
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
# Custom attribute writer method with validation
|
|
145
|
-
# @param [Object] free Value to be assigned
|
|
146
|
-
def free=(free)
|
|
147
|
-
if !free.nil? && free < 0
|
|
148
|
-
fail ArgumentError, 'invalid value for "free", must be greater than or equal to 0.'
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
@free = free
|
|
152
|
-
end
|
|
153
|
-
|
|
154
109
|
# Checks equality by comparing each attribute.
|
|
155
110
|
# @param [Object] Object to be compared
|
|
156
111
|
def ==(o)
|
|
@@ -52,12 +52,6 @@ describe 'VulnReportApi' do
|
|
|
52
52
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
53
53
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
54
54
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
55
|
-
# @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) * `vulns` - Vulns * `-vulns` - Vulns (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
56
|
-
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
57
|
-
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
58
|
-
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
59
|
-
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
60
|
-
# @option opts [String] :repo_versions Filter results where repo_versions matches value
|
|
61
55
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
62
56
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
63
57
|
# @return [PaginatedVulnerabilityReportResponseList]
|
|
@@ -27,67 +27,67 @@ describe PulpcoreClient::ArtifactDistributionResponse do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "base_url"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "hidden"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "name"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "
|
|
54
|
+
describe 'test attribute "no_content_change_since"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
describe 'test attribute "
|
|
60
|
+
describe 'test attribute "prn"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "pulp_created"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
describe 'test attribute "
|
|
72
|
+
describe 'test attribute "content_guard"' do
|
|
73
73
|
it 'should work' do
|
|
74
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
describe 'test attribute "
|
|
78
|
+
describe 'test attribute "base_path"' do
|
|
79
79
|
it 'should work' do
|
|
80
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
describe 'test attribute "
|
|
84
|
+
describe 'test attribute "pulp_href"' do
|
|
85
85
|
it 'should work' do
|
|
86
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "
|
|
90
|
+
describe 'test attribute "pulp_labels"' do
|
|
91
91
|
it 'should work' do
|
|
92
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
93
|
end
|