pulp_container_client 2.10.11 → 2.10.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- attr_accessor :pulp_labels
19
-
20
- # 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.
21
- attr_accessor :retain_repo_versions
22
-
23
18
  # A unique name for this repository.
24
19
  attr_accessor :name
25
20
 
26
21
  # An optional description.
27
22
  attr_accessor :description
28
23
 
24
+ # 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.
25
+ attr_accessor :retain_repo_versions
26
+
27
+ attr_accessor :pulp_labels
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'pulp_labels' => :'pulp_labels',
33
- :'retain_repo_versions' => :'retain_repo_versions',
34
32
  :'name' => :'name',
35
- :'description' => :'description'
33
+ :'description' => :'description',
34
+ :'retain_repo_versions' => :'retain_repo_versions',
35
+ :'pulp_labels' => :'pulp_labels'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'pulp_labels' => :'Object',
43
- :'retain_repo_versions' => :'Integer',
44
42
  :'name' => :'String',
45
- :'description' => :'String'
43
+ :'description' => :'String',
44
+ :'retain_repo_versions' => :'Integer',
45
+ :'pulp_labels' => :'Object'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
+ :'description',
52
53
  :'retain_repo_versions',
53
- :'description'
54
54
  ])
55
55
  end
56
56
 
@@ -69,14 +69,6 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'pulp_labels')
73
- self.pulp_labels = attributes[:'pulp_labels']
74
- end
75
-
76
- if attributes.key?(:'retain_repo_versions')
77
- self.retain_repo_versions = attributes[:'retain_repo_versions']
78
- end
79
-
80
72
  if attributes.key?(:'name')
81
73
  self.name = attributes[:'name']
82
74
  end
@@ -84,16 +76,20 @@ module PulpContainerClient
84
76
  if attributes.key?(:'description')
85
77
  self.description = attributes[:'description']
86
78
  end
79
+
80
+ if attributes.key?(:'retain_repo_versions')
81
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
82
+ end
83
+
84
+ if attributes.key?(:'pulp_labels')
85
+ self.pulp_labels = attributes[:'pulp_labels']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
95
- end
96
-
97
93
  if !@name.nil? && @name.to_s.length < 1
98
94
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
99
95
  end
@@ -102,28 +98,22 @@ module PulpContainerClient
102
98
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
103
99
  end
104
100
 
101
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
102
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
103
+ end
104
+
105
105
  invalid_properties
106
106
  end
107
107
 
108
108
  # Check to see if the all the properties in the model are valid
109
109
  # @return true if the model is valid
110
110
  def valid?
111
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
112
111
  return false if !@name.nil? && @name.to_s.length < 1
113
112
  return false if !@description.nil? && @description.to_s.length < 1
113
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
114
  true
115
115
  end
116
116
 
117
- # Custom attribute writer method with validation
118
- # @param [Object] retain_repo_versions Value to be assigned
119
- def retain_repo_versions=(retain_repo_versions)
120
- if !retain_repo_versions.nil? && retain_repo_versions < 1
121
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
122
- end
123
-
124
- @retain_repo_versions = retain_repo_versions
125
- end
126
-
127
117
  # Custom attribute writer method with validation
128
118
  # @param [Object] name Value to be assigned
129
119
  def name=(name)
@@ -144,15 +134,25 @@ module PulpContainerClient
144
134
  @description = description
145
135
  end
146
136
 
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] retain_repo_versions Value to be assigned
139
+ def retain_repo_versions=(retain_repo_versions)
140
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
141
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
142
+ end
143
+
144
+ @retain_repo_versions = retain_repo_versions
145
+ end
146
+
147
147
  # Checks equality by comparing each attribute.
148
148
  # @param [Object] Object to be compared
149
149
  def ==(o)
150
150
  return true if self.equal?(o)
151
151
  self.class == o.class &&
152
- pulp_labels == o.pulp_labels &&
153
- retain_repo_versions == o.retain_repo_versions &&
154
152
  name == o.name &&
155
- description == o.description
153
+ description == o.description &&
154
+ retain_repo_versions == o.retain_repo_versions &&
155
+ pulp_labels == o.pulp_labels
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module PulpContainerClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [pulp_labels, retain_repo_versions, name, description].hash
167
+ [name, description, retain_repo_versions, pulp_labels].hash
168
168
  end
169
169
 
170
170
  # 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.10.11'
14
+ VERSION = '2.10.13'
15
15
  end
@@ -32,19 +32,19 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "base_path"' do
35
+ describe 'test attribute "pulp_href"' 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 "pulp_labels"' do
41
+ describe 'test attribute "name"' 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 "repository"' do
47
+ describe 'test attribute "base_path"' 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
@@ -62,13 +62,13 @@ describe 'ContainerContainerDistributionResponse' do
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "pulp_href"' do
65
+ describe 'test attribute "pulp_labels"' 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
69
69
  end
70
70
 
71
- describe 'test attribute "name"' do
71
+ describe 'test attribute "repository"' 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
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "base_path"' do
35
+ describe 'test attribute "name"' 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 "pulp_labels"' do
41
+ describe 'test attribute "base_path"' 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 "repository"' do
47
+ describe 'test attribute "content_guard"' 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 "content_guard"' 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 "name"' 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
@@ -32,13 +32,13 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
35
+ describe 'test attribute "name"' 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 "latest_version_href"' do
41
+ describe 'test attribute "pulp_href"' 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,31 +50,31 @@ describe 'ContainerContainerPushRepositoryResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "retain_repo_versions"' do
53
+ describe 'test attribute "pulp_created"' 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_created"' do
59
+ describe 'test attribute "description"' 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_href"' do
65
+ describe 'test attribute "retain_repo_versions"' 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
69
69
  end
70
70
 
71
- describe 'test attribute "name"' do
71
+ describe 'test attribute "pulp_labels"' 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 "description"' do
77
+ describe 'test attribute "latest_version_href"' 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
@@ -32,25 +32,25 @@ describe 'ContainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
35
+ describe 'test attribute "name"' 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 "retain_repo_versions"' do
41
+ describe 'test attribute "description"' 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 "name"' do
47
+ describe 'test attribute "retain_repo_versions"' 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 "description"' 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
@@ -32,31 +32,31 @@ describe 'PatchedcontainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "base_path"' do
35
+ describe 'test attribute "name"' 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 "pulp_labels"' do
41
+ describe 'test attribute "base_path"' 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 "repository"' do
47
+ describe 'test attribute "content_guard"' 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 "content_guard"' 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 "name"' 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
@@ -32,25 +32,25 @@ describe 'PatchedcontainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_labels"' do
35
+ describe 'test attribute "name"' 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 "retain_repo_versions"' do
41
+ describe 'test attribute "description"' 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 "name"' do
47
+ describe 'test attribute "retain_repo_versions"' 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 "description"' 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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_container_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.11
4
+ version: 2.10.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-11 00:00:00.000000000 Z
11
+ date: 2024-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -281,62 +281,62 @@ signing_key:
281
281
  specification_version: 4
282
282
  summary: Pulp 3 API Ruby Gem
283
283
  test_files:
284
+ - spec/api/distributions_container_api_spec.rb
285
+ - spec/api/repositories_container_versions_api_spec.rb
284
286
  - spec/api/remotes_container_api_spec.rb
287
+ - spec/api/token_api_spec.rb
285
288
  - spec/api/content_tags_api_spec.rb
286
- - spec/api/contentguards_content_redirect_api_spec.rb
287
- - spec/api/repositories_container_api_spec.rb
288
289
  - spec/api/content_blobs_api_spec.rb
289
290
  - spec/api/repositories_container_push_api_spec.rb
290
- - spec/api/repositories_container_push_versions_api_spec.rb
291
- - spec/api/pulp_container_namespaces_api_spec.rb
292
291
  - spec/api/content_manifests_api_spec.rb
293
- - spec/api/token_api_spec.rb
294
- - spec/api/repositories_container_versions_api_spec.rb
295
- - spec/api/distributions_container_api_spec.rb
292
+ - spec/api/pulp_container_namespaces_api_spec.rb
293
+ - spec/api/repositories_container_push_versions_api_spec.rb
294
+ - spec/api/contentguards_content_redirect_api_spec.rb
295
+ - spec/api/repositories_container_api_spec.rb
296
296
  - spec/api_client_spec.rb
297
297
  - spec/configuration_spec.rb
298
- - spec/models/repository_sync_url_spec.rb
299
- - spec/models/patchedcontainer_container_distribution_spec.rb
300
- - spec/models/recursive_manage_spec.rb
301
- - spec/models/paginatedcontainer_blob_response_list_spec.rb
302
- - spec/models/async_operation_response_spec.rb
303
- - spec/models/container_container_push_repository_response_spec.rb
304
- - spec/models/container_container_push_repository_spec.rb
305
- - spec/models/paginatedcontainer_container_namespace_response_list_spec.rb
306
- - spec/models/container_container_remote_response_spec.rb
307
- - spec/models/oci_build_image_spec.rb
308
- - spec/models/container_container_namespace_response_spec.rb
298
+ - spec/models/content_summary_response_spec.rb
299
+ - spec/models/manifest_copy_spec.rb
300
+ - spec/models/container_blob_response_spec.rb
301
+ - spec/models/remove_image_spec.rb
302
+ - spec/models/un_tag_image_spec.rb
309
303
  - spec/models/container_container_distribution_response_spec.rb
304
+ - spec/models/container_container_repository_response_spec.rb
305
+ - spec/models/patchedcontainer_container_push_repository_spec.rb
306
+ - spec/models/container_container_repository_spec.rb
307
+ - spec/models/patchedcontainer_container_remote_spec.rb
310
308
  - spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb
311
- - spec/models/repair_spec.rb
312
- - spec/models/un_tag_image_spec.rb
313
- - spec/models/policy_enum_spec.rb
314
- - spec/models/repository_version_response_spec.rb
315
- - spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb
316
- - spec/models/paginatedcontainer_tag_response_list_spec.rb
317
- - spec/models/container_content_redirect_content_guard_spec.rb
318
- - spec/models/container_container_remote_spec.rb
319
- - spec/models/media_types_enum_spec.rb
320
- - spec/models/patchedcontainer_content_redirect_content_guard_spec.rb
321
309
  - spec/models/paginatedcontainer_container_remote_response_list_spec.rb
322
- - spec/models/container_tag_response_spec.rb
323
- - spec/models/remove_image_spec.rb
324
- - spec/models/container_blob_response_spec.rb
325
- - spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
326
- - spec/models/patchedcontainer_container_remote_spec.rb
327
- - spec/models/container_container_repository_spec.rb
328
- - spec/models/patchedcontainer_container_repository_spec.rb
329
- - spec/models/paginated_repository_version_response_list_spec.rb
330
310
  - spec/models/paginatedcontainer_container_repository_response_list_spec.rb
311
+ - spec/models/patchedcontainer_content_redirect_content_guard_spec.rb
312
+ - spec/models/paginatedcontainer_container_namespace_response_list_spec.rb
313
+ - spec/models/repair_spec.rb
331
314
  - spec/models/paginatedcontainer_manifest_response_list_spec.rb
332
- - spec/models/manifest_copy_spec.rb
333
- - spec/models/tag_copy_spec.rb
315
+ - spec/models/repository_version_response_spec.rb
334
316
  - spec/models/container_container_namespace_spec.rb
317
+ - spec/models/paginatedcontainer_container_distribution_response_list_spec.rb
318
+ - spec/models/oci_build_image_spec.rb
319
+ - spec/models/container_container_remote_spec.rb
335
320
  - spec/models/tag_image_spec.rb
336
- - spec/models/container_manifest_response_spec.rb
337
- - spec/models/content_summary_response_spec.rb
338
- - spec/models/patchedcontainer_container_push_repository_spec.rb
339
- - spec/models/container_container_distribution_spec.rb
340
- - spec/models/container_container_repository_response_spec.rb
321
+ - spec/models/policy_enum_spec.rb
341
322
  - spec/models/container_content_redirect_content_guard_response_spec.rb
323
+ - spec/models/container_container_distribution_spec.rb
324
+ - spec/models/container_container_push_repository_response_spec.rb
325
+ - spec/models/container_container_remote_response_spec.rb
326
+ - spec/models/tag_copy_spec.rb
327
+ - spec/models/patchedcontainer_container_distribution_spec.rb
328
+ - spec/models/container_container_namespace_response_spec.rb
329
+ - spec/models/patchedcontainer_container_repository_spec.rb
330
+ - spec/models/container_container_push_repository_spec.rb
331
+ - spec/models/recursive_manage_spec.rb
332
+ - spec/models/media_types_enum_spec.rb
333
+ - spec/models/paginatedcontainer_blob_response_list_spec.rb
334
+ - spec/models/async_operation_response_spec.rb
335
+ - spec/models/paginated_repository_version_response_list_spec.rb
336
+ - spec/models/container_content_redirect_content_guard_spec.rb
337
+ - spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb
338
+ - spec/models/repository_sync_url_spec.rb
339
+ - spec/models/container_manifest_response_spec.rb
340
+ - spec/models/paginatedcontainer_tag_response_list_spec.rb
341
+ - spec/models/container_tag_response_spec.rb
342
342
  - spec/spec_helper.rb