pulpcore_client 3.49.13 → 3.49.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AccessPoliciesApi.md +1 -1
  4. data/docs/ArtifactDistributionResponse.md +12 -12
  5. data/docs/ArtifactsApi.md +1 -1
  6. data/docs/ContentApi.md +1 -1
  7. data/docs/ContentguardsApi.md +1 -1
  8. data/docs/ContentguardsCompositeApi.md +1 -1
  9. data/docs/ContentguardsContentRedirectApi.md +1 -1
  10. data/docs/ContentguardsHeaderApi.md +1 -1
  11. data/docs/ContentguardsRbacApi.md +1 -1
  12. data/docs/DistributionsApi.md +1 -1
  13. data/docs/DistributionsArtifactsApi.md +1 -1
  14. data/docs/DomainsApi.md +1 -1
  15. data/docs/ExportersFilesystemApi.md +1 -1
  16. data/docs/ExportersFilesystemExportsApi.md +1 -1
  17. data/docs/ExportersPulpApi.md +1 -1
  18. data/docs/ExportersPulpExportsApi.md +1 -1
  19. data/docs/GroupsApi.md +1 -1
  20. data/docs/GroupsRolesApi.md +1 -1
  21. data/docs/GroupsUsersApi.md +1 -1
  22. data/docs/ImportersPulpApi.md +1 -1
  23. data/docs/ImportersPulpImportCheckApi.md +1 -1
  24. data/docs/ImportersPulpImportsApi.md +1 -1
  25. data/docs/OrphansApi.md +1 -1
  26. data/docs/OrphansCleanupApi.md +1 -1
  27. data/docs/PublicationsApi.md +1 -1
  28. data/docs/RemotesApi.md +1 -1
  29. data/docs/RepairApi.md +1 -1
  30. data/docs/RepositoriesApi.md +1 -1
  31. data/docs/RepositoriesReclaimSpaceApi.md +1 -1
  32. data/docs/RepositoryVersionsApi.md +1 -1
  33. data/docs/RolesApi.md +1 -1
  34. data/docs/SigningServicesApi.md +1 -1
  35. data/docs/StatusApi.md +1 -1
  36. data/docs/TaskGroupsApi.md +1 -1
  37. data/docs/TaskSchedulesApi.md +1 -1
  38. data/docs/TasksApi.md +1 -1
  39. data/docs/UploadsApi.md +1 -1
  40. data/docs/UpstreamPulpsApi.md +1 -1
  41. data/docs/UsersApi.md +1 -1
  42. data/docs/UsersRolesApi.md +1 -1
  43. data/docs/WorkersApi.md +1 -1
  44. data/lib/pulpcore_client/configuration.rb +2 -2
  45. data/lib/pulpcore_client/models/artifact_distribution_response.rb +52 -52
  46. data/lib/pulpcore_client/models/remote_response.rb +20 -20
  47. data/lib/pulpcore_client/version.rb +1 -1
  48. data/spec/configuration_spec.rb +3 -3
  49. data/spec/models/artifact_distribution_response_spec.rb +8 -8
  50. metadata +165 -165
@@ -15,24 +15,12 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # A serializer for ArtifactDistribution.
17
17
  class ArtifactDistributionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- # Whether this distribution should be shown in the content app.
22
- attr_accessor :hidden
23
-
24
18
  # The URL for accessing the publication as defined by this distribution.
25
19
  attr_accessor :base_url
26
20
 
27
- attr_accessor :pulp_href
28
-
29
21
  attr_accessor :pulp_labels
30
22
 
31
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
32
- attr_accessor :pulp_last_updated
33
-
34
- # An optional content-guard.
35
- attr_accessor :content_guard
23
+ attr_accessor :pulp_href
36
24
 
37
25
  # A unique name. Ex, `rawhide` and `stable`.
38
26
  attr_accessor :name
@@ -40,33 +28,45 @@ module PulpcoreClient
40
28
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
41
29
  attr_accessor :base_path
42
30
 
31
+ # Whether this distribution should be shown in the content app.
32
+ attr_accessor :hidden
33
+
34
+ # An optional content-guard.
35
+ attr_accessor :content_guard
36
+
37
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
38
+ attr_accessor :pulp_last_updated
39
+
40
+ # Timestamp of creation.
41
+ attr_accessor :pulp_created
42
+
43
43
  # Attribute mapping from ruby-style variable name to JSON key.
44
44
  def self.attribute_map
45
45
  {
46
- :'pulp_created' => :'pulp_created',
47
- :'hidden' => :'hidden',
48
46
  :'base_url' => :'base_url',
49
- :'pulp_href' => :'pulp_href',
50
47
  :'pulp_labels' => :'pulp_labels',
51
- :'pulp_last_updated' => :'pulp_last_updated',
52
- :'content_guard' => :'content_guard',
48
+ :'pulp_href' => :'pulp_href',
53
49
  :'name' => :'name',
54
- :'base_path' => :'base_path'
50
+ :'base_path' => :'base_path',
51
+ :'hidden' => :'hidden',
52
+ :'content_guard' => :'content_guard',
53
+ :'pulp_last_updated' => :'pulp_last_updated',
54
+ :'pulp_created' => :'pulp_created'
55
55
  }
56
56
  end
57
57
 
58
58
  # Attribute type mapping.
59
59
  def self.openapi_types
60
60
  {
61
- :'pulp_created' => :'DateTime',
62
- :'hidden' => :'Boolean',
63
61
  :'base_url' => :'String',
64
- :'pulp_href' => :'String',
65
62
  :'pulp_labels' => :'Hash<String, String>',
66
- :'pulp_last_updated' => :'DateTime',
67
- :'content_guard' => :'String',
63
+ :'pulp_href' => :'String',
68
64
  :'name' => :'String',
69
- :'base_path' => :'String'
65
+ :'base_path' => :'String',
66
+ :'hidden' => :'Boolean',
67
+ :'content_guard' => :'String',
68
+ :'pulp_last_updated' => :'DateTime',
69
+ :'pulp_created' => :'DateTime'
70
70
  }
71
71
  end
72
72
 
@@ -92,36 +92,18 @@ module PulpcoreClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'pulp_created')
96
- self.pulp_created = attributes[:'pulp_created']
97
- end
98
-
99
- if attributes.key?(:'hidden')
100
- self.hidden = attributes[:'hidden']
101
- else
102
- self.hidden = false
103
- end
104
-
105
95
  if attributes.key?(:'base_url')
106
96
  self.base_url = attributes[:'base_url']
107
97
  end
108
98
 
109
- if attributes.key?(:'pulp_href')
110
- self.pulp_href = attributes[:'pulp_href']
111
- end
112
-
113
99
  if attributes.key?(:'pulp_labels')
114
100
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
115
101
  self.pulp_labels = value
116
102
  end
117
103
  end
118
104
 
119
- if attributes.key?(:'pulp_last_updated')
120
- self.pulp_last_updated = attributes[:'pulp_last_updated']
121
- end
122
-
123
- if attributes.key?(:'content_guard')
124
- self.content_guard = attributes[:'content_guard']
105
+ if attributes.key?(:'pulp_href')
106
+ self.pulp_href = attributes[:'pulp_href']
125
107
  end
126
108
 
127
109
  if attributes.key?(:'name')
@@ -131,6 +113,24 @@ module PulpcoreClient
131
113
  if attributes.key?(:'base_path')
132
114
  self.base_path = attributes[:'base_path']
133
115
  end
116
+
117
+ if attributes.key?(:'hidden')
118
+ self.hidden = attributes[:'hidden']
119
+ else
120
+ self.hidden = false
121
+ end
122
+
123
+ if attributes.key?(:'content_guard')
124
+ self.content_guard = attributes[:'content_guard']
125
+ end
126
+
127
+ if attributes.key?(:'pulp_last_updated')
128
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
129
+ end
130
+
131
+ if attributes.key?(:'pulp_created')
132
+ self.pulp_created = attributes[:'pulp_created']
133
+ end
134
134
  end
135
135
 
136
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -161,15 +161,15 @@ module PulpcoreClient
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
- pulp_created == o.pulp_created &&
165
- hidden == o.hidden &&
166
164
  base_url == o.base_url &&
167
- pulp_href == o.pulp_href &&
168
165
  pulp_labels == o.pulp_labels &&
169
- pulp_last_updated == o.pulp_last_updated &&
170
- content_guard == o.content_guard &&
166
+ pulp_href == o.pulp_href &&
171
167
  name == o.name &&
172
- base_path == o.base_path
168
+ base_path == o.base_path &&
169
+ hidden == o.hidden &&
170
+ content_guard == o.content_guard &&
171
+ pulp_last_updated == o.pulp_last_updated &&
172
+ pulp_created == o.pulp_created
173
173
  end
174
174
 
175
175
  # @see the `==` method
@@ -181,7 +181,7 @@ module PulpcoreClient
181
181
  # Calculates hash code according to all attributes.
182
182
  # @return [Integer] Hash code
183
183
  def hash
184
- [pulp_created, hidden, base_url, pulp_href, pulp_labels, pulp_last_updated, content_guard, name, base_path].hash
184
+ [base_url, pulp_labels, pulp_href, name, base_path, hidden, content_guard, pulp_last_updated, pulp_created].hash
185
185
  end
186
186
 
187
187
  # Builds the object from hash
@@ -259,20 +259,20 @@ module PulpcoreClient
259
259
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
260
  end
261
261
 
262
- if !@total_timeout.nil? && @total_timeout < 0.0
263
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
262
+ if !@total_timeout.nil? && @total_timeout < 0
263
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
264
264
  end
265
265
 
266
- if !@connect_timeout.nil? && @connect_timeout < 0.0
267
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
266
+ if !@connect_timeout.nil? && @connect_timeout < 0
267
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
268
268
  end
269
269
 
270
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
272
272
  end
273
273
 
274
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
275
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
274
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
275
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
276
276
  end
277
277
 
278
278
  invalid_properties
@@ -284,10 +284,10 @@ module PulpcoreClient
284
284
  return false if @name.nil?
285
285
  return false if @url.nil?
286
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
- return false if !@total_timeout.nil? && @total_timeout < 0.0
288
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
289
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
290
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
287
+ return false if !@total_timeout.nil? && @total_timeout < 0
288
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
289
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
290
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
291
291
  true
292
292
  end
293
293
 
@@ -304,8 +304,8 @@ module PulpcoreClient
304
304
  # Custom attribute writer method with validation
305
305
  # @param [Object] total_timeout Value to be assigned
306
306
  def total_timeout=(total_timeout)
307
- if !total_timeout.nil? && total_timeout < 0.0
308
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
307
+ if !total_timeout.nil? && total_timeout < 0
308
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
309
309
  end
310
310
 
311
311
  @total_timeout = total_timeout
@@ -314,8 +314,8 @@ module PulpcoreClient
314
314
  # Custom attribute writer method with validation
315
315
  # @param [Object] connect_timeout Value to be assigned
316
316
  def connect_timeout=(connect_timeout)
317
- if !connect_timeout.nil? && connect_timeout < 0.0
318
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
317
+ if !connect_timeout.nil? && connect_timeout < 0
318
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
319
319
  end
320
320
 
321
321
  @connect_timeout = connect_timeout
@@ -324,8 +324,8 @@ module PulpcoreClient
324
324
  # Custom attribute writer method with validation
325
325
  # @param [Object] sock_connect_timeout Value to be assigned
326
326
  def sock_connect_timeout=(sock_connect_timeout)
327
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
328
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
327
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
328
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
329
329
  end
330
330
 
331
331
  @sock_connect_timeout = sock_connect_timeout
@@ -334,8 +334,8 @@ module PulpcoreClient
334
334
  # Custom attribute writer method with validation
335
335
  # @param [Object] sock_read_timeout Value to be assigned
336
336
  def sock_read_timeout=(sock_read_timeout)
337
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
338
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
337
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
338
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
339
339
  end
340
340
 
341
341
  @sock_read_timeout = sock_read_timeout
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.49.13'
14
+ VERSION = '3.49.16'
15
15
  end
@@ -18,7 +18,7 @@ describe PulpcoreClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("http://pulp")
21
+ # uri = URI.parse("http://localhost:24817")
22
22
  # PulpcoreClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpcoreClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://pulp")
31
+ # expect(config.base_url).to eq("http://localhost:24817")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://pulp")
38
+ # expect(config.base_url).to eq("http://localhost:24817")
39
39
  end
40
40
  end
41
41
  end
@@ -32,37 +32,37 @@ describe 'ArtifactDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpcoreClient::ArtifactDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_created"' do
35
+ describe 'test attribute "base_url"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "hidden"' do
41
+ describe 'test attribute "pulp_labels"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "base_url"' do
47
+ describe 'test attribute "pulp_href"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_href"' do
53
+ describe 'test attribute "name"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "pulp_labels"' do
59
+ describe 'test attribute "base_path"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "pulp_last_updated"' do
65
+ describe 'test attribute "hidden"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
@@ -74,13 +74,13 @@ describe 'ArtifactDistributionResponse' do
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "name"' do
77
+ describe 'test attribute "pulp_last_updated"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "base_path"' do
83
+ describe 'test attribute "pulp_created"' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
86
  end