pulp_container_client 2.20.0 → 2.20.2

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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +5 -5
  5. data/docs/ContainerContainerDistributionResponse.md +9 -7
  6. data/docs/ContainerContainerNamespaceResponse.md +2 -0
  7. data/docs/ContainerContainerPullThroughDistribution.md +5 -5
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
  9. data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
  10. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
  11. data/docs/ContainerContainerPushRepository.md +7 -7
  12. data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
  13. data/docs/ContainerContainerRemoteResponse.md +2 -2
  14. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  15. data/docs/ContainerManifestResponse.md +2 -0
  16. data/docs/ContainerManifestSignatureResponse.md +2 -0
  17. data/docs/ContainerTagResponse.md +2 -0
  18. data/docs/ContentBlobsApi.md +1 -1
  19. data/docs/ContentManifestsApi.md +1 -1
  20. data/docs/ContentSignaturesApi.md +1 -1
  21. data/docs/ContentTagsApi.md +1 -1
  22. data/docs/DistributionsContainerApi.md +1 -1
  23. data/docs/DistributionsPullThroughApi.md +1 -1
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedcontainerBlobResponseList.md +2 -2
  26. data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
  27. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
  28. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
  29. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
  30. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
  31. data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
  32. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
  33. data/docs/PaginatedcontainerManifestResponseList.md +2 -2
  34. data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
  35. data/docs/PaginatedcontainerTagResponseList.md +2 -2
  36. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  37. data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
  38. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  39. data/docs/PulpContainerNamespacesApi.md +1 -1
  40. data/docs/RemotesContainerApi.md +1 -1
  41. data/docs/RemotesPullThroughApi.md +1 -1
  42. data/docs/RepositoriesContainerApi.md +1 -1
  43. data/docs/RepositoriesContainerPushApi.md +1 -1
  44. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  45. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  46. data/docs/RepositoryVersionResponse.md +2 -0
  47. data/docs/TokenApi.md +1 -1
  48. data/lib/pulp_container_client/configuration.rb +2 -2
  49. data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +44 -44
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -33
  52. data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
  53. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +44 -44
  54. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +43 -33
  55. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  56. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
  57. data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
  58. data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
  59. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +64 -54
  60. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  61. data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
  62. data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
  63. data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
  64. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
  65. data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
  66. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
  67. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
  68. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
  69. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
  70. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
  71. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
  73. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
  74. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
  75. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
  76. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
  77. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
  78. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +35 -35
  79. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
  80. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  81. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
  82. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  83. data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
  84. data/lib/pulp_container_client/version.rb +1 -1
  85. data/lib/pulp_container_client.rb +0 -2
  86. data/spec/configuration_spec.rb +3 -3
  87. data/spec/models/container_blob_response_spec.rb +6 -0
  88. data/spec/models/container_container_distribution_response_spec.rb +11 -5
  89. data/spec/models/container_container_distribution_spec.rb +6 -6
  90. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  91. data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -5
  92. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  93. data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
  94. data/spec/models/container_container_push_repository_response_spec.rb +14 -8
  95. data/spec/models/container_container_push_repository_spec.rb +5 -5
  96. data/spec/models/container_container_remote_response_spec.rb +6 -6
  97. data/spec/models/container_container_repository_response_spec.rb +6 -0
  98. data/spec/models/container_manifest_response_spec.rb +6 -0
  99. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  100. data/spec/models/container_tag_response_spec.rb +6 -0
  101. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  102. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  103. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  104. data/spec/models/repository_version_response_spec.rb +6 -0
  105. metadata +73 -81
  106. data/docs/IndexDynamicApi.md +0 -50
  107. data/docs/IndexStaticApi.md +0 -50
  108. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  109. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  110. data/spec/api/index_dynamic_api_spec.rb +0 -45
  111. data/spec/api/index_static_api_spec.rb +0 -45
@@ -303,20 +303,20 @@ module PulpContainerClient
303
303
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
304
304
  end
305
305
 
306
- if !@total_timeout.nil? && @total_timeout < 0.0
307
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
+ if !@total_timeout.nil? && @total_timeout < 0
307
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
308
308
  end
309
309
 
310
- if !@connect_timeout.nil? && @connect_timeout < 0.0
311
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
310
+ if !@connect_timeout.nil? && @connect_timeout < 0
311
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
312
312
  end
313
313
 
314
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
315
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
315
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
316
316
  end
317
317
 
318
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
319
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
319
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
320
320
  end
321
321
 
322
322
  invalid_properties
@@ -336,10 +336,10 @@ module PulpContainerClient
336
336
  return false if !@username.nil? && @username.to_s.length < 1
337
337
  return false if !@password.nil? && @password.to_s.length < 1
338
338
  return false if !@download_concurrency.nil? && @download_concurrency < 1
339
- return false if !@total_timeout.nil? && @total_timeout < 0.0
340
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
341
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
342
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
339
+ return false if !@total_timeout.nil? && @total_timeout < 0
340
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
341
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
342
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
343
343
  true
344
344
  end
345
345
 
@@ -456,8 +456,8 @@ module PulpContainerClient
456
456
  # Custom attribute writer method with validation
457
457
  # @param [Object] total_timeout Value to be assigned
458
458
  def total_timeout=(total_timeout)
459
- if !total_timeout.nil? && total_timeout < 0.0
460
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
459
+ if !total_timeout.nil? && total_timeout < 0
460
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
461
461
  end
462
462
 
463
463
  @total_timeout = total_timeout
@@ -466,8 +466,8 @@ module PulpContainerClient
466
466
  # Custom attribute writer method with validation
467
467
  # @param [Object] connect_timeout Value to be assigned
468
468
  def connect_timeout=(connect_timeout)
469
- if !connect_timeout.nil? && connect_timeout < 0.0
470
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
469
+ if !connect_timeout.nil? && connect_timeout < 0
470
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
471
471
  end
472
472
 
473
473
  @connect_timeout = connect_timeout
@@ -476,8 +476,8 @@ module PulpContainerClient
476
476
  # Custom attribute writer method with validation
477
477
  # @param [Object] sock_connect_timeout Value to be assigned
478
478
  def sock_connect_timeout=(sock_connect_timeout)
479
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
480
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
479
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
480
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
481
481
  end
482
482
 
483
483
  @sock_connect_timeout = sock_connect_timeout
@@ -486,8 +486,8 @@ module PulpContainerClient
486
486
  # Custom attribute writer method with validation
487
487
  # @param [Object] sock_read_timeout Value to be assigned
488
488
  def sock_read_timeout=(sock_read_timeout)
489
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
490
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
489
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
490
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
491
491
  end
492
492
 
493
493
  @sock_read_timeout = sock_read_timeout
@@ -15,39 +15,39 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- # Retain X versions of the repository. Default is null which retains all versions.
19
- attr_accessor :retain_repo_versions
20
-
21
- # A reference to an associated signing service.
22
- attr_accessor :manifest_signing_service
18
+ # A unique name for this repository.
19
+ attr_accessor :name
23
20
 
24
21
  attr_accessor :pulp_labels
25
22
 
26
- # A unique name for this repository.
27
- attr_accessor :name
23
+ # Retain X versions of the repository. Default is null which retains all versions.
24
+ attr_accessor :retain_repo_versions
28
25
 
29
26
  # An optional description.
30
27
  attr_accessor :description
31
28
 
29
+ # A reference to an associated signing service.
30
+ attr_accessor :manifest_signing_service
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'retain_repo_versions' => :'retain_repo_versions',
36
- :'manifest_signing_service' => :'manifest_signing_service',
37
- :'pulp_labels' => :'pulp_labels',
38
35
  :'name' => :'name',
39
- :'description' => :'description'
36
+ :'pulp_labels' => :'pulp_labels',
37
+ :'retain_repo_versions' => :'retain_repo_versions',
38
+ :'description' => :'description',
39
+ :'manifest_signing_service' => :'manifest_signing_service'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'retain_repo_versions' => :'Integer',
47
- :'manifest_signing_service' => :'String',
48
- :'pulp_labels' => :'Hash<String, String>',
49
46
  :'name' => :'String',
50
- :'description' => :'String'
47
+ :'pulp_labels' => :'Hash<String, String>',
48
+ :'retain_repo_versions' => :'Integer',
49
+ :'description' => :'String',
50
+ :'manifest_signing_service' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -55,8 +55,8 @@ module PulpContainerClient
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
57
  :'retain_repo_versions',
58
- :'manifest_signing_service',
59
- :'description'
58
+ :'description',
59
+ :'manifest_signing_service'
60
60
  ])
61
61
  end
62
62
 
@@ -75,12 +75,8 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'retain_repo_versions')
79
- self.retain_repo_versions = attributes[:'retain_repo_versions']
80
- end
81
-
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
78
+ if attributes.key?(:'name')
79
+ self.name = attributes[:'name']
84
80
  end
85
81
 
86
82
  if attributes.key?(:'pulp_labels')
@@ -89,27 +85,31 @@ module PulpContainerClient
89
85
  end
90
86
  end
91
87
 
92
- if attributes.key?(:'name')
93
- self.name = attributes[:'name']
88
+ if attributes.key?(:'retain_repo_versions')
89
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
94
90
  end
95
91
 
96
92
  if attributes.key?(:'description')
97
93
  self.description = attributes[:'description']
98
94
  end
95
+
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
98
+ end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
- end
108
-
109
105
  if !@name.nil? && @name.to_s.length < 1
110
106
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
111
107
  end
112
108
 
109
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
+ end
112
+
113
113
  if !@description.nil? && @description.to_s.length < 1
114
114
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
115
115
  end
@@ -120,22 +120,12 @@ module PulpContainerClient
120
120
  # Check to see if the all the properties in the model are valid
121
121
  # @return true if the model is valid
122
122
  def valid?
123
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
124
123
  return false if !@name.nil? && @name.to_s.length < 1
124
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
125
125
  return false if !@description.nil? && @description.to_s.length < 1
126
126
  true
127
127
  end
128
128
 
129
- # Custom attribute writer method with validation
130
- # @param [Object] retain_repo_versions Value to be assigned
131
- def retain_repo_versions=(retain_repo_versions)
132
- if !retain_repo_versions.nil? && retain_repo_versions < 1
133
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
134
- end
135
-
136
- @retain_repo_versions = retain_repo_versions
137
- end
138
-
139
129
  # Custom attribute writer method with validation
140
130
  # @param [Object] name Value to be assigned
141
131
  def name=(name)
@@ -146,6 +136,16 @@ module PulpContainerClient
146
136
  @name = name
147
137
  end
148
138
 
139
+ # Custom attribute writer method with validation
140
+ # @param [Object] retain_repo_versions Value to be assigned
141
+ def retain_repo_versions=(retain_repo_versions)
142
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
143
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
144
+ end
145
+
146
+ @retain_repo_versions = retain_repo_versions
147
+ end
148
+
149
149
  # Custom attribute writer method with validation
150
150
  # @param [Object] description Value to be assigned
151
151
  def description=(description)
@@ -161,11 +161,11 @@ module PulpContainerClient
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
- retain_repo_versions == o.retain_repo_versions &&
165
- manifest_signing_service == o.manifest_signing_service &&
166
- pulp_labels == o.pulp_labels &&
167
164
  name == o.name &&
168
- description == o.description
165
+ pulp_labels == o.pulp_labels &&
166
+ retain_repo_versions == o.retain_repo_versions &&
167
+ description == o.description &&
168
+ manifest_signing_service == o.manifest_signing_service
169
169
  end
170
170
 
171
171
  # @see the `==` method
@@ -177,7 +177,7 @@ module PulpContainerClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [retain_repo_versions, manifest_signing_service, pulp_labels, name, description].hash
180
+ [name, pulp_labels, retain_repo_versions, description, manifest_signing_service].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash
@@ -346,20 +346,20 @@ module PulpContainerClient
346
346
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
347
347
  end
348
348
 
349
- if !@total_timeout.nil? && @total_timeout < 0.0
350
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
349
+ if !@total_timeout.nil? && @total_timeout < 0
350
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
351
351
  end
352
352
 
353
- if !@connect_timeout.nil? && @connect_timeout < 0.0
354
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
353
+ if !@connect_timeout.nil? && @connect_timeout < 0
354
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
355
355
  end
356
356
 
357
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
358
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
357
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
358
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
359
359
  end
360
360
 
361
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
362
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
361
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
362
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
363
363
  end
364
364
 
365
365
  if !@upstream_name.nil? && @upstream_name.to_s.length < 1
@@ -387,10 +387,10 @@ module PulpContainerClient
387
387
  return false if !@username.nil? && @username.to_s.length < 1
388
388
  return false if !@password.nil? && @password.to_s.length < 1
389
389
  return false if !@download_concurrency.nil? && @download_concurrency < 1
390
- return false if !@total_timeout.nil? && @total_timeout < 0.0
391
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
392
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
393
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
390
+ return false if !@total_timeout.nil? && @total_timeout < 0
391
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
392
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
393
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
394
394
  return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
395
395
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
396
396
  true
@@ -509,8 +509,8 @@ module PulpContainerClient
509
509
  # Custom attribute writer method with validation
510
510
  # @param [Object] total_timeout Value to be assigned
511
511
  def total_timeout=(total_timeout)
512
- if !total_timeout.nil? && total_timeout < 0.0
513
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
512
+ if !total_timeout.nil? && total_timeout < 0
513
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
514
514
  end
515
515
 
516
516
  @total_timeout = total_timeout
@@ -519,8 +519,8 @@ module PulpContainerClient
519
519
  # Custom attribute writer method with validation
520
520
  # @param [Object] connect_timeout Value to be assigned
521
521
  def connect_timeout=(connect_timeout)
522
- if !connect_timeout.nil? && connect_timeout < 0.0
523
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
522
+ if !connect_timeout.nil? && connect_timeout < 0
523
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
524
524
  end
525
525
 
526
526
  @connect_timeout = connect_timeout
@@ -529,8 +529,8 @@ module PulpContainerClient
529
529
  # Custom attribute writer method with validation
530
530
  # @param [Object] sock_connect_timeout Value to be assigned
531
531
  def sock_connect_timeout=(sock_connect_timeout)
532
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
533
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
532
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
533
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
534
534
  end
535
535
 
536
536
  @sock_connect_timeout = sock_connect_timeout
@@ -539,8 +539,8 @@ module PulpContainerClient
539
539
  # Custom attribute writer method with validation
540
540
  # @param [Object] sock_read_timeout Value to be assigned
541
541
  def sock_read_timeout=(sock_read_timeout)
542
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
543
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
542
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
543
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
544
544
  end
545
545
 
546
546
  @sock_read_timeout = sock_read_timeout
@@ -20,6 +20,9 @@ module PulpContainerClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  attr_accessor :number
24
27
 
25
28
  attr_accessor :repository
@@ -35,6 +38,7 @@ module PulpContainerClient
35
38
  {
36
39
  :'pulp_href' => :'pulp_href',
37
40
  :'pulp_created' => :'pulp_created',
41
+ :'pulp_last_updated' => :'pulp_last_updated',
38
42
  :'number' => :'number',
39
43
  :'repository' => :'repository',
40
44
  :'base_version' => :'base_version',
@@ -47,6 +51,7 @@ module PulpContainerClient
47
51
  {
48
52
  :'pulp_href' => :'String',
49
53
  :'pulp_created' => :'DateTime',
54
+ :'pulp_last_updated' => :'DateTime',
50
55
  :'number' => :'Integer',
51
56
  :'repository' => :'String',
52
57
  :'base_version' => :'String',
@@ -83,6 +88,10 @@ module PulpContainerClient
83
88
  self.pulp_created = attributes[:'pulp_created']
84
89
  end
85
90
 
91
+ if attributes.key?(:'pulp_last_updated')
92
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
93
+ end
94
+
86
95
  if attributes.key?(:'number')
87
96
  self.number = attributes[:'number']
88
97
  end
@@ -120,6 +129,7 @@ module PulpContainerClient
120
129
  self.class == o.class &&
121
130
  pulp_href == o.pulp_href &&
122
131
  pulp_created == o.pulp_created &&
132
+ pulp_last_updated == o.pulp_last_updated &&
123
133
  number == o.number &&
124
134
  repository == o.repository &&
125
135
  base_version == o.base_version &&
@@ -135,7 +145,7 @@ module PulpContainerClient
135
145
  # Calculates hash code according to all attributes.
136
146
  # @return [Integer] Hash code
137
147
  def hash
138
- [pulp_href, pulp_created, number, repository, base_version, content_summary].hash
148
+ [pulp_href, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
139
149
  end
140
150
 
141
151
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.20.0'
14
+ VERSION = '2.20.2'
15
15
  end
@@ -88,8 +88,6 @@ require 'pulp_container_client/api/content_signatures_api'
88
88
  require 'pulp_container_client/api/content_tags_api'
89
89
  require 'pulp_container_client/api/distributions_container_api'
90
90
  require 'pulp_container_client/api/distributions_pull_through_api'
91
- require 'pulp_container_client/api/index_dynamic_api'
92
- require 'pulp_container_client/api/index_static_api'
93
91
  require 'pulp_container_client/api/pulp_container_namespaces_api'
94
92
  require 'pulp_container_client/api/remotes_container_api'
95
93
  require 'pulp_container_client/api/remotes_pull_through_api'
@@ -18,7 +18,7 @@ describe PulpContainerClient::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
  # PulpContainerClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpContainerClient::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
@@ -44,6 +44,12 @@ describe 'ContainerBlobResponse' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "artifact"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,13 +32,13 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "content_guard"' do
35
+ describe 'test attribute "hidden"' 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 "content_guard"' 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
@@ -50,7 +50,7 @@ describe 'ContainerContainerDistributionResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_created"' 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
@@ -68,13 +68,19 @@ describe 'ContainerContainerDistributionResponse' do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "base_path"' do
71
+ describe 'test attribute "pulp_last_updated"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "name"' do
77
+ describe 'test attribute "pulp_created"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "base_path"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
86
  end
@@ -32,37 +32,37 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "content_guard"' do
35
+ describe 'test attribute "hidden"' 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 "content_guard"' 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 "pulp_labels"' do
47
+ describe 'test attribute "name"' 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 "repository"' do
53
+ describe 'test attribute "pulp_labels"' 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 "base_path"' do
59
+ describe 'test attribute "repository"' 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 "name"' do
65
+ describe 'test attribute "base_path"' 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
@@ -44,6 +44,12 @@ describe 'ContainerContainerNamespaceResponse' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "pulp_last_updated"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
47
53
  describe 'test attribute "name"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -32,13 +32,13 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPullThroughDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "content_guard"' do
35
+ describe 'test attribute "hidden"' 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 "content_guard"' 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
@@ -50,7 +50,7 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_created"' 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
@@ -68,13 +68,19 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "base_path"' do
71
+ describe 'test attribute "pulp_last_updated"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "name"' do
77
+ describe 'test attribute "pulp_created"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "base_path"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
86
  end