pulp_container_client 2.15.0.dev1674789963 → 2.15.0.dev1675047954

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.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +2 -2
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  8. data/docs/PatchedcontainerContainerPushRepository.md +2 -2
  9. data/docs/RepositoriesContainerApi.md +16 -0
  10. data/docs/RepositoriesContainerPushApi.md +16 -0
  11. data/lib/pulp_container_client/api/repositories_container_api.rb +24 -0
  12. data/lib/pulp_container_client/api/repositories_container_push_api.rb +24 -0
  13. data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
  14. data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
  15. data/lib/pulp_container_client/models/container_container_push_repository.rb +27 -27
  16. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +47 -47
  17. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +25 -25
  18. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +27 -27
  19. data/lib/pulp_container_client/version.rb +1 -1
  20. data/spec/api/repositories_container_api_spec.rb +8 -0
  21. data/spec/api/repositories_container_push_api_spec.rb +8 -0
  22. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  23. data/spec/models/container_container_distribution_spec.rb +4 -4
  24. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  25. data/spec/models/container_container_push_repository_spec.rb +3 -3
  26. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  27. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  28. metadata +2 -2
@@ -18,24 +18,24 @@ module PulpContainerClient
18
18
  # A reference to an associated signing service.
19
19
  attr_accessor :manifest_signing_service
20
20
 
21
- # 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.
22
- attr_accessor :retain_repo_versions
23
-
24
21
  # A unique name for this repository.
25
22
  attr_accessor :name
26
23
 
27
24
  # An optional description.
28
25
  attr_accessor :description
29
26
 
27
+ # 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.
28
+ attr_accessor :retain_repo_versions
29
+
30
30
  attr_accessor :pulp_labels
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'manifest_signing_service' => :'manifest_signing_service',
36
- :'retain_repo_versions' => :'retain_repo_versions',
37
36
  :'name' => :'name',
38
37
  :'description' => :'description',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
39
39
  :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
@@ -44,9 +44,9 @@ module PulpContainerClient
44
44
  def self.openapi_types
45
45
  {
46
46
  :'manifest_signing_service' => :'String',
47
- :'retain_repo_versions' => :'Integer',
48
47
  :'name' => :'String',
49
48
  :'description' => :'String',
49
+ :'retain_repo_versions' => :'Integer',
50
50
  :'pulp_labels' => :'Hash<String, String>'
51
51
  }
52
52
  end
@@ -55,8 +55,8 @@ module PulpContainerClient
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
57
  :'manifest_signing_service',
58
- :'retain_repo_versions',
59
58
  :'description',
59
+ :'retain_repo_versions',
60
60
  ])
61
61
  end
62
62
 
@@ -79,10 +79,6 @@ module PulpContainerClient
79
79
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
80
  end
81
81
 
82
- if attributes.key?(:'retain_repo_versions')
83
- self.retain_repo_versions = attributes[:'retain_repo_versions']
84
- end
85
-
86
82
  if attributes.key?(:'name')
87
83
  self.name = attributes[:'name']
88
84
  end
@@ -91,6 +87,10 @@ module PulpContainerClient
91
87
  self.description = attributes[:'description']
92
88
  end
93
89
 
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
92
+ end
93
+
94
94
  if attributes.key?(:'pulp_labels')
95
95
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
96
  self.pulp_labels = value
@@ -102,10 +102,6 @@ module PulpContainerClient
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
@@ -114,28 +110,22 @@ module PulpContainerClient
114
110
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
115
111
  end
116
112
 
113
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
+ end
116
+
117
117
  invalid_properties
118
118
  end
119
119
 
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
125
124
  return false if !@description.nil? && @description.to_s.length < 1
125
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 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)
@@ -156,15 +146,25 @@ module PulpContainerClient
156
146
  @description = description
157
147
  end
158
148
 
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] retain_repo_versions Value to be assigned
151
+ def retain_repo_versions=(retain_repo_versions)
152
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
153
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
154
+ end
155
+
156
+ @retain_repo_versions = retain_repo_versions
157
+ end
158
+
159
159
  # Checks equality by comparing each attribute.
160
160
  # @param [Object] Object to be compared
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
164
  manifest_signing_service == o.manifest_signing_service &&
165
- retain_repo_versions == o.retain_repo_versions &&
166
165
  name == o.name &&
167
166
  description == o.description &&
167
+ retain_repo_versions == o.retain_repo_versions &&
168
168
  pulp_labels == o.pulp_labels
169
169
  end
170
170
 
@@ -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
- [manifest_signing_service, retain_repo_versions, name, description, pulp_labels].hash
180
+ [manifest_signing_service, name, description, retain_repo_versions, pulp_labels].hash
181
181
  end
182
182
 
183
183
  # 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.15.0.dev1674789963'
14
+ VERSION = '2.15.0.dev1675047954'
15
15
  end
@@ -137,6 +137,14 @@ describe 'RepositoriesContainerApi' do
137
137
  # @option opts [Array<String>] :ordering Ordering
138
138
  # @option opts [String] :pulp_label_select Filter labels by search string
139
139
  # @option opts [String] :remote Foreign Key referenced by HREF
140
+ # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
141
+ # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
142
+ # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
143
+ # @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
144
+ # @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
145
+ # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
146
+ # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
147
+ # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
140
148
  # @option opts [Array<String>] :fields A list of fields to include in the response.
141
149
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
142
150
  # @return [PaginatedcontainerContainerRepositoryResponseList]
@@ -58,6 +58,14 @@ describe 'RepositoriesContainerPushApi' do
58
58
  # @option opts [Array<String>] :ordering Ordering
59
59
  # @option opts [String] :pulp_label_select Filter labels by search string
60
60
  # @option opts [String] :remote Foreign Key referenced by HREF
61
+ # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
62
+ # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
63
+ # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
64
+ # @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
65
+ # @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
66
+ # @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
67
+ # @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
68
+ # @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
61
69
  # @option opts [Array<String>] :fields A list of fields to include in the response.
62
70
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
63
71
  # @return [PaginatedcontainerContainerPushRepositoryResponseList]
@@ -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 "content_guard"' 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 "name"' 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
@@ -56,19 +56,19 @@ describe 'ContainerContainerDistributionResponse' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "pulp_created"' do
59
+ describe 'test attribute "pulp_href"' 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 "base_path"' do
65
+ describe 'test attribute "pulp_created"' 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 "pulp_href"' 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,19 +32,19 @@ 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 "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 "name"' 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
@@ -56,7 +56,7 @@ describe 'ContainerContainerDistribution' do
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
@@ -32,19 +32,19 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "versions_href"' do
35
+ describe 'test attribute "manifest_signing_service"' 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 "manifest_signing_service"' 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 "pulp_href"' do
47
+ describe 'test attribute "description"' 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
@@ -56,31 +56,31 @@ describe 'ContainerContainerPushRepositoryResponse' do
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "name"' do
59
+ describe 'test attribute "versions_href"' 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 "description"' 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 "pulp_labels"' do
71
+ describe 'test attribute "latest_version_href"' 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 "pulp_created"' do
77
+ describe 'test attribute "pulp_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
81
81
  end
82
82
 
83
- describe 'test attribute "latest_version_href"' 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
@@ -38,19 +38,19 @@ describe 'ContainerContainerPushRepository' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "retain_repo_versions"' 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 "name"' do
47
+ describe 'test attribute "description"' 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 "retain_repo_versions"' 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,19 +32,19 @@ describe 'PatchedcontainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "content_guard"' 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 "name"' 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
@@ -56,7 +56,7 @@ describe 'PatchedcontainerContainerDistribution' do
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
@@ -38,19 +38,19 @@ describe 'PatchedcontainerContainerPushRepository' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "retain_repo_versions"' 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 "name"' do
47
+ describe 'test attribute "description"' 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 "retain_repo_versions"' 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.15.0.dev1674789963
4
+ version: 2.15.0.dev1675047954
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-27 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday