pulp_container_client 2.18.0 → 2.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +6 -6
  5. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +6 -6
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  11. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +47 -47
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +36 -36
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +36 -36
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +53 -53
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +38 -38
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +38 -38
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  23. data/spec/models/container_container_distribution_spec.rb +5 -5
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  27. data/spec/models/container_container_push_repository_spec.rb +3 -3
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  31. metadata +61 -61
@@ -18,25 +18,25 @@ module PulpContainerClient
18
18
  # A reference to an associated signing service.
19
19
  attr_accessor :manifest_signing_service
20
20
 
21
- # A unique name for this repository.
22
- attr_accessor :name
21
+ attr_accessor :pulp_labels
23
22
 
24
23
  # Retain X versions of the repository. Default is null which retains all versions.
25
24
  attr_accessor :retain_repo_versions
26
25
 
26
+ # A unique name for this repository.
27
+ attr_accessor :name
28
+
27
29
  # An optional description.
28
30
  attr_accessor :description
29
31
 
30
- attr_accessor :pulp_labels
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
- :'name' => :'name',
36
+ :'pulp_labels' => :'pulp_labels',
37
37
  :'retain_repo_versions' => :'retain_repo_versions',
38
- :'description' => :'description',
39
- :'pulp_labels' => :'pulp_labels'
38
+ :'name' => :'name',
39
+ :'description' => :'description'
40
40
  }
41
41
  end
42
42
 
@@ -44,10 +44,10 @@ module PulpContainerClient
44
44
  def self.openapi_types
45
45
  {
46
46
  :'manifest_signing_service' => :'String',
47
- :'name' => :'String',
47
+ :'pulp_labels' => :'Hash<String, String>',
48
48
  :'retain_repo_versions' => :'Integer',
49
- :'description' => :'String',
50
- :'pulp_labels' => :'Hash<String, String>'
49
+ :'name' => :'String',
50
+ :'description' => :'String'
51
51
  }
52
52
  end
53
53
 
@@ -56,7 +56,7 @@ module PulpContainerClient
56
56
  Set.new([
57
57
  :'manifest_signing_service',
58
58
  :'retain_repo_versions',
59
- :'description',
59
+ :'description'
60
60
  ])
61
61
  end
62
62
 
@@ -79,22 +79,22 @@ module PulpContainerClient
79
79
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
80
  end
81
81
 
82
- if attributes.key?(:'name')
83
- self.name = attributes[:'name']
82
+ if attributes.key?(:'pulp_labels')
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
84
86
  end
85
87
 
86
88
  if attributes.key?(:'retain_repo_versions')
87
89
  self.retain_repo_versions = attributes[:'retain_repo_versions']
88
90
  end
89
91
 
90
- if attributes.key?(:'description')
91
- self.description = attributes[:'description']
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
92
94
  end
93
95
 
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
96
+ if attributes.key?(:'description')
97
+ self.description = attributes[:'description']
98
98
  end
99
99
  end
100
100
 
@@ -102,14 +102,14 @@ 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 !@name.nil? && @name.to_s.length < 1
106
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
107
- end
108
-
109
105
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
107
  end
112
108
 
109
+ if !@name.nil? && @name.to_s.length < 1
110
+ invalid_properties.push('invalid value for "name", the character length must be great 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 !@name.nil? && @name.to_s.length < 1
124
123
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
124
+ return false if !@name.nil? && @name.to_s.length < 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] name Value to be assigned
131
- def name=(name)
132
- if !name.nil? && name.to_s.length < 1
133
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
134
- end
135
-
136
- @name = name
137
- end
138
-
139
129
  # Custom attribute writer method with validation
140
130
  # @param [Object] retain_repo_versions Value to be assigned
141
131
  def retain_repo_versions=(retain_repo_versions)
@@ -146,6 +136,16 @@ module PulpContainerClient
146
136
  @retain_repo_versions = retain_repo_versions
147
137
  end
148
138
 
139
+ # Custom attribute writer method with validation
140
+ # @param [Object] name Value to be assigned
141
+ def name=(name)
142
+ if !name.nil? && name.to_s.length < 1
143
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
144
+ end
145
+
146
+ @name = name
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)
@@ -162,10 +162,10 @@ module PulpContainerClient
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
164
  manifest_signing_service == o.manifest_signing_service &&
165
- name == o.name &&
165
+ pulp_labels == o.pulp_labels &&
166
166
  retain_repo_versions == o.retain_repo_versions &&
167
- description == o.description &&
168
- pulp_labels == o.pulp_labels
167
+ name == o.name &&
168
+ description == o.description
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
- [manifest_signing_service, name, retain_repo_versions, description, pulp_labels].hash
180
+ [manifest_signing_service, pulp_labels, retain_repo_versions, name, description].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.18.0'
14
+ VERSION = '2.18.1'
15
15
  end
@@ -38,7 +38,7 @@ describe 'ContainerContainerDistributionResponse' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' 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
@@ -50,31 +50,31 @@ describe 'ContainerContainerDistributionResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "hidden"' 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 "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 "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 "repository"' do
71
+ describe 'test attribute "base_path"' 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 "hidden"' 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
@@ -38,31 +38,31 @@ describe 'ContainerContainerDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' 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 "hidden"' 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 "pulp_labels"' do
53
+ describe 'test attribute "repository"' 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 "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 "repository"' 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
@@ -38,7 +38,7 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' 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
@@ -50,31 +50,31 @@ describe 'ContainerContainerPullThroughDistributionResponse' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "hidden"' 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 "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 "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 "repository"' do
71
+ describe 'test attribute "base_path"' 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 "hidden"' 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
@@ -38,31 +38,31 @@ describe 'ContainerContainerPullThroughDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' 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 "hidden"' 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 "pulp_labels"' do
53
+ describe 'test attribute "repository"' 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 "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 "repository"' 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
@@ -32,55 +32,55 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "manifest_signing_service"' do
35
+ describe 'test attribute "latest_version_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 "latest_version_href"' do
41
+ describe 'test attribute "versions_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
45
45
  end
46
46
 
47
- describe 'test attribute "name"' do
47
+ describe 'test attribute "manifest_signing_service"' 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 "retain_repo_versions"' 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 "pulp_href"' do
59
+ describe 'test attribute "retain_repo_versions"' 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 "name"' 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 "pulp_created"' 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 "versions_href"' do
77
+ describe 'test attribute "description"' 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 "pulp_created"' do
83
+ describe 'test attribute "pulp_href"' 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,7 +38,7 @@ describe 'ContainerContainerPushRepository' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "name"' 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
@@ -50,13 +50,13 @@ describe 'ContainerContainerPushRepository' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "description"' 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 "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
@@ -38,31 +38,31 @@ describe 'PatchedcontainerContainerDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' 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 "hidden"' 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 "pulp_labels"' do
53
+ describe 'test attribute "repository"' 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 "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 "repository"' 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
@@ -38,31 +38,31 @@ describe 'PatchedcontainerContainerPullThroughDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' 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 "hidden"' 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 "pulp_labels"' do
53
+ describe 'test attribute "repository"' 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 "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 "repository"' 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
@@ -38,7 +38,7 @@ describe 'PatchedcontainerContainerPushRepository' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "name"' 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
@@ -50,13 +50,13 @@ describe 'PatchedcontainerContainerPushRepository' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "description"' 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 "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