pulp_container_client 2.7.0 → 2.8.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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContainerContainerDistribution.md +3 -3
  4. data/docs/ContainerContainerDistributionResponse.md +6 -6
  5. data/docs/ContainerContainerPushRepository.md +5 -5
  6. data/docs/ContainerContainerPushRepositoryResponse.md +7 -7
  7. data/docs/ContainerContainerRepository.md +3 -3
  8. data/docs/ContainerContainerRepositoryResponse.md +3 -3
  9. data/docs/ContentBlobsApi.md +1 -1
  10. data/docs/ContentManifestsApi.md +1 -1
  11. data/docs/ContentTagsApi.md +1 -1
  12. data/docs/ContentguardsContentRedirectApi.md +1 -1
  13. data/docs/DistributionsContainerApi.md +1 -1
  14. data/docs/PatchedcontainerContainerDistribution.md +3 -3
  15. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  16. data/docs/PatchedcontainerContainerRepository.md +3 -3
  17. data/docs/PulpContainerNamespacesApi.md +1 -1
  18. data/docs/RemotesContainerApi.md +1 -1
  19. data/docs/RepositoriesContainerApi.md +1 -1
  20. data/docs/RepositoriesContainerPushApi.md +1 -1
  21. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  22. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  23. data/docs/TokenApi.md +1 -1
  24. data/lib/pulp_container_client/configuration.rb +2 -2
  25. data/lib/pulp_container_client/models/container_container_distribution.rb +16 -16
  26. data/lib/pulp_container_client/models/container_container_distribution_response.rb +26 -26
  27. data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
  28. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +36 -36
  29. data/lib/pulp_container_client/models/container_container_repository.rb +17 -16
  30. data/lib/pulp_container_client/models/container_container_repository_response.rb +17 -16
  31. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
  32. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
  33. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +17 -16
  34. data/lib/pulp_container_client/version.rb +1 -1
  35. data/spec/configuration_spec.rb +3 -3
  36. data/spec/models/container_container_distribution_response_spec.rb +3 -3
  37. data/spec/models/container_container_distribution_spec.rb +4 -4
  38. data/spec/models/container_container_push_repository_response_spec.rb +6 -6
  39. data/spec/models/container_container_push_repository_spec.rb +3 -3
  40. data/spec/models/container_container_repository_response_spec.rb +1 -1
  41. data/spec/models/container_container_repository_spec.rb +1 -1
  42. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  43. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  44. data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
  45. metadata +45 -45
@@ -15,13 +15,14 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
+ attr_accessor :base_path
20
20
 
21
21
  # A unique name. Ex, `rawhide` and `stable`.
22
22
  attr_accessor :name
23
23
 
24
- attr_accessor :pulp_href
24
+ # Timestamp of creation.
25
+ attr_accessor :pulp_created
25
26
 
26
27
  # The latest RepositoryVersion for this Repository will be served.
27
28
  attr_accessor :repository
@@ -29,8 +30,7 @@ module PulpContainerClient
29
30
  # An optional content-guard. If none is specified, a default one will be used.
30
31
  attr_accessor :content_guard
31
32
 
32
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
- attr_accessor :base_path
33
+ attr_accessor :pulp_href
34
34
 
35
35
  attr_accessor :pulp_labels
36
36
 
@@ -52,12 +52,12 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'pulp_created' => :'pulp_created',
55
+ :'base_path' => :'base_path',
56
56
  :'name' => :'name',
57
- :'pulp_href' => :'pulp_href',
57
+ :'pulp_created' => :'pulp_created',
58
58
  :'repository' => :'repository',
59
59
  :'content_guard' => :'content_guard',
60
- :'base_path' => :'base_path',
60
+ :'pulp_href' => :'pulp_href',
61
61
  :'pulp_labels' => :'pulp_labels',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
@@ -70,12 +70,12 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'pulp_created' => :'DateTime',
73
+ :'base_path' => :'String',
74
74
  :'name' => :'String',
75
- :'pulp_href' => :'String',
75
+ :'pulp_created' => :'DateTime',
76
76
  :'repository' => :'String',
77
77
  :'content_guard' => :'String',
78
- :'base_path' => :'String',
78
+ :'pulp_href' => :'String',
79
79
  :'pulp_labels' => :'Object',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
@@ -109,16 +109,16 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'pulp_created')
113
- self.pulp_created = attributes[:'pulp_created']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
114
114
  end
115
115
 
116
116
  if attributes.key?(:'name')
117
117
  self.name = attributes[:'name']
118
118
  end
119
119
 
120
- if attributes.key?(:'pulp_href')
121
- self.pulp_href = attributes[:'pulp_href']
120
+ if attributes.key?(:'pulp_created')
121
+ self.pulp_created = attributes[:'pulp_created']
122
122
  end
123
123
 
124
124
  if attributes.key?(:'repository')
@@ -129,8 +129,8 @@ module PulpContainerClient
129
129
  self.content_guard = attributes[:'content_guard']
130
130
  end
131
131
 
132
- if attributes.key?(:'base_path')
133
- self.base_path = attributes[:'base_path']
132
+ if attributes.key?(:'pulp_href')
133
+ self.pulp_href = attributes[:'pulp_href']
134
134
  end
135
135
 
136
136
  if attributes.key?(:'pulp_labels')
@@ -162,22 +162,22 @@ module PulpContainerClient
162
162
  # @return Array for valid properties with the reasons
163
163
  def list_invalid_properties
164
164
  invalid_properties = Array.new
165
- if @name.nil?
166
- invalid_properties.push('invalid value for "name", name cannot be nil.')
167
- end
168
-
169
165
  if @base_path.nil?
170
166
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
171
167
  end
172
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
173
173
  invalid_properties
174
174
  end
175
175
 
176
176
  # Check to see if the all the properties in the model are valid
177
177
  # @return true if the model is valid
178
178
  def valid?
179
- return false if @name.nil?
180
179
  return false if @base_path.nil?
180
+ return false if @name.nil?
181
181
  true
182
182
  end
183
183
 
@@ -186,12 +186,12 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- pulp_created == o.pulp_created &&
189
+ base_path == o.base_path &&
190
190
  name == o.name &&
191
- pulp_href == o.pulp_href &&
191
+ pulp_created == o.pulp_created &&
192
192
  repository == o.repository &&
193
193
  content_guard == o.content_guard &&
194
- base_path == o.base_path &&
194
+ pulp_href == o.pulp_href &&
195
195
  pulp_labels == o.pulp_labels &&
196
196
  repository_version == o.repository_version &&
197
197
  registry_path == o.registry_path &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [pulp_created, name, pulp_href, repository, content_guard, base_path, pulp_labels, repository_version, registry_path, namespace, private, description].hash
212
+ [base_path, name, pulp_created, repository, content_guard, pulp_href, pulp_labels, repository_version, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # A unique name for this repository.
19
- attr_accessor :name
20
-
21
18
  # An optional description.
22
19
  attr_accessor :description
23
20
 
21
+ # A unique name for this repository.
22
+ attr_accessor :name
23
+
24
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 :retained_versions
25
+ attr_accessor :retain_repo_versions
26
26
 
27
27
  attr_accessor :pulp_labels
28
28
 
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'name' => :'name',
33
32
  :'description' => :'description',
34
- :'retained_versions' => :'retained_versions',
33
+ :'name' => :'name',
34
+ :'retain_repo_versions' => :'retain_repo_versions',
35
35
  :'pulp_labels' => :'pulp_labels'
36
36
  }
37
37
  end
@@ -39,9 +39,9 @@ module PulpContainerClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'name' => :'String',
43
42
  :'description' => :'String',
44
- :'retained_versions' => :'Integer',
43
+ :'name' => :'String',
44
+ :'retain_repo_versions' => :'Integer',
45
45
  :'pulp_labels' => :'Object'
46
46
  }
47
47
  end
@@ -50,7 +50,7 @@ module PulpContainerClient
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
52
  :'description',
53
- :'retained_versions',
53
+ :'retain_repo_versions',
54
54
  ])
55
55
  end
56
56
 
@@ -69,16 +69,16 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'name')
73
- self.name = attributes[:'name']
74
- end
75
-
76
72
  if attributes.key?(:'description')
77
73
  self.description = attributes[:'description']
78
74
  end
79
75
 
80
- if attributes.key?(:'retained_versions')
81
- self.retained_versions = attributes[:'retained_versions']
76
+ if attributes.key?(:'name')
77
+ self.name = attributes[:'name']
78
+ end
79
+
80
+ if attributes.key?(:'retain_repo_versions')
81
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
82
82
  end
83
83
 
84
84
  if attributes.key?(:'pulp_labels')
@@ -94,8 +94,8 @@ module PulpContainerClient
94
94
  invalid_properties.push('invalid value for "name", name cannot be nil.')
95
95
  end
96
96
 
97
- if !@retained_versions.nil? && @retained_versions < 1
98
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
97
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
98
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
99
99
  end
100
100
 
101
101
  invalid_properties
@@ -105,18 +105,18 @@ module PulpContainerClient
105
105
  # @return true if the model is valid
106
106
  def valid?
107
107
  return false if @name.nil?
108
- return false if !@retained_versions.nil? && @retained_versions < 1
108
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
109
109
  true
110
110
  end
111
111
 
112
112
  # Custom attribute writer method with validation
113
- # @param [Object] retained_versions Value to be assigned
114
- def retained_versions=(retained_versions)
115
- if !retained_versions.nil? && retained_versions < 1
116
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
113
+ # @param [Object] retain_repo_versions Value to be assigned
114
+ def retain_repo_versions=(retain_repo_versions)
115
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
116
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
117
117
  end
118
118
 
119
- @retained_versions = retained_versions
119
+ @retain_repo_versions = retain_repo_versions
120
120
  end
121
121
 
122
122
  # Checks equality by comparing each attribute.
@@ -124,9 +124,9 @@ module PulpContainerClient
124
124
  def ==(o)
125
125
  return true if self.equal?(o)
126
126
  self.class == o.class &&
127
- name == o.name &&
128
127
  description == o.description &&
129
- retained_versions == o.retained_versions &&
128
+ name == o.name &&
129
+ retain_repo_versions == o.retain_repo_versions &&
130
130
  pulp_labels == o.pulp_labels
131
131
  end
132
132
 
@@ -139,7 +139,7 @@ module PulpContainerClient
139
139
  # Calculates hash code according to all attributes.
140
140
  # @return [Integer] Hash code
141
141
  def hash
142
- [name, description, retained_versions, pulp_labels].hash
142
+ [description, name, retain_repo_versions, pulp_labels].hash
143
143
  end
144
144
 
145
145
  # Builds the object from hash
@@ -15,12 +15,6 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- # A unique name for this repository.
22
- attr_accessor :name
23
-
24
18
  attr_accessor :versions_href
25
19
 
26
20
  # An optional description.
@@ -28,8 +22,14 @@ module PulpContainerClient
28
22
 
29
23
  attr_accessor :latest_version_href
30
24
 
25
+ # A unique name for this repository.
26
+ attr_accessor :name
27
+
28
+ # Timestamp of creation.
29
+ attr_accessor :pulp_created
30
+
31
31
  # 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.
32
- attr_accessor :retained_versions
32
+ attr_accessor :retain_repo_versions
33
33
 
34
34
  attr_accessor :pulp_href
35
35
 
@@ -38,12 +38,12 @@ module PulpContainerClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_created' => :'pulp_created',
42
- :'name' => :'name',
43
41
  :'versions_href' => :'versions_href',
44
42
  :'description' => :'description',
45
43
  :'latest_version_href' => :'latest_version_href',
46
- :'retained_versions' => :'retained_versions',
44
+ :'name' => :'name',
45
+ :'pulp_created' => :'pulp_created',
46
+ :'retain_repo_versions' => :'retain_repo_versions',
47
47
  :'pulp_href' => :'pulp_href',
48
48
  :'pulp_labels' => :'pulp_labels'
49
49
  }
@@ -52,12 +52,12 @@ module PulpContainerClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'pulp_created' => :'DateTime',
56
- :'name' => :'String',
57
55
  :'versions_href' => :'String',
58
56
  :'description' => :'String',
59
57
  :'latest_version_href' => :'String',
60
- :'retained_versions' => :'Integer',
58
+ :'name' => :'String',
59
+ :'pulp_created' => :'DateTime',
60
+ :'retain_repo_versions' => :'Integer',
61
61
  :'pulp_href' => :'String',
62
62
  :'pulp_labels' => :'Object'
63
63
  }
@@ -67,7 +67,7 @@ module PulpContainerClient
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
69
  :'description',
70
- :'retained_versions',
70
+ :'retain_repo_versions',
71
71
  ])
72
72
  end
73
73
 
@@ -86,14 +86,6 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'pulp_created')
90
- self.pulp_created = attributes[:'pulp_created']
91
- end
92
-
93
- if attributes.key?(:'name')
94
- self.name = attributes[:'name']
95
- end
96
-
97
89
  if attributes.key?(:'versions_href')
98
90
  self.versions_href = attributes[:'versions_href']
99
91
  end
@@ -106,8 +98,16 @@ module PulpContainerClient
106
98
  self.latest_version_href = attributes[:'latest_version_href']
107
99
  end
108
100
 
109
- if attributes.key?(:'retained_versions')
110
- self.retained_versions = attributes[:'retained_versions']
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
105
+ if attributes.key?(:'pulp_created')
106
+ self.pulp_created = attributes[:'pulp_created']
107
+ end
108
+
109
+ if attributes.key?(:'retain_repo_versions')
110
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
111
111
  end
112
112
 
113
113
  if attributes.key?(:'pulp_href')
@@ -127,8 +127,8 @@ module PulpContainerClient
127
127
  invalid_properties.push('invalid value for "name", name cannot be nil.')
128
128
  end
129
129
 
130
- if !@retained_versions.nil? && @retained_versions < 1
131
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
130
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
132
  end
133
133
 
134
134
  invalid_properties
@@ -138,18 +138,18 @@ module PulpContainerClient
138
138
  # @return true if the model is valid
139
139
  def valid?
140
140
  return false if @name.nil?
141
- return false if !@retained_versions.nil? && @retained_versions < 1
141
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
142
142
  true
143
143
  end
144
144
 
145
145
  # Custom attribute writer method with validation
146
- # @param [Object] retained_versions Value to be assigned
147
- def retained_versions=(retained_versions)
148
- if !retained_versions.nil? && retained_versions < 1
149
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
146
+ # @param [Object] retain_repo_versions Value to be assigned
147
+ def retain_repo_versions=(retain_repo_versions)
148
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
149
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
150
150
  end
151
151
 
152
- @retained_versions = retained_versions
152
+ @retain_repo_versions = retain_repo_versions
153
153
  end
154
154
 
155
155
  # Checks equality by comparing each attribute.
@@ -157,12 +157,12 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
- pulp_created == o.pulp_created &&
161
- name == o.name &&
162
160
  versions_href == o.versions_href &&
163
161
  description == o.description &&
164
162
  latest_version_href == o.latest_version_href &&
165
- retained_versions == o.retained_versions &&
163
+ name == o.name &&
164
+ pulp_created == o.pulp_created &&
165
+ retain_repo_versions == o.retain_repo_versions &&
166
166
  pulp_href == o.pulp_href &&
167
167
  pulp_labels == o.pulp_labels
168
168
  end
@@ -176,7 +176,7 @@ module PulpContainerClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [pulp_created, name, versions_href, description, latest_version_href, retained_versions, pulp_href, pulp_labels].hash
179
+ [versions_href, description, latest_version_href, name, pulp_created, retain_repo_versions, pulp_href, pulp_labels].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -24,8 +24,9 @@ module PulpContainerClient
24
24
  attr_accessor :description
25
25
 
26
26
  # 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.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpContainerClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpContainerClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpContainerClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpContainerClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -103,8 +104,8 @@ module PulpContainerClient
103
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
104
105
  end
105
106
 
106
- if !@retained_versions.nil? && @retained_versions < 1
107
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
107
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
108
109
  end
109
110
 
110
111
  invalid_properties
@@ -114,18 +115,18 @@ module PulpContainerClient
114
115
  # @return true if the model is valid
115
116
  def valid?
116
117
  return false if @name.nil?
117
- return false if !@retained_versions.nil? && @retained_versions < 1
118
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
119
  true
119
120
  end
120
121
 
121
122
  # Custom attribute writer method with validation
122
- # @param [Object] retained_versions Value to be assigned
123
- def retained_versions=(retained_versions)
124
- if !retained_versions.nil? && retained_versions < 1
125
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
123
+ # @param [Object] retain_repo_versions Value to be assigned
124
+ def retain_repo_versions=(retain_repo_versions)
125
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
126
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
126
127
  end
127
128
 
128
- @retained_versions = retained_versions
129
+ @retain_repo_versions = retain_repo_versions
129
130
  end
130
131
 
131
132
  # Checks equality by comparing each attribute.
@@ -136,7 +137,7 @@ module PulpContainerClient
136
137
  pulp_labels == o.pulp_labels &&
137
138
  name == o.name &&
138
139
  description == o.description &&
139
- retained_versions == o.retained_versions &&
140
+ retain_repo_versions == o.retain_repo_versions &&
140
141
  remote == o.remote
141
142
  end
142
143
 
@@ -149,7 +150,7 @@ module PulpContainerClient
149
150
  # Calculates hash code according to all attributes.
150
151
  # @return [Integer] Hash code
151
152
  def hash
152
- [pulp_labels, name, description, retained_versions, remote].hash
153
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
153
154
  end
154
155
 
155
156
  # Builds the object from hash
@@ -33,8 +33,9 @@ module PulpContainerClient
33
33
  attr_accessor :description
34
34
 
35
35
  # 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.
36
- attr_accessor :retained_versions
36
+ attr_accessor :retain_repo_versions
37
37
 
38
+ # An optional remote to use by default when syncing.
38
39
  attr_accessor :remote
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +48,7 @@ module PulpContainerClient
47
48
  :'latest_version_href' => :'latest_version_href',
48
49
  :'name' => :'name',
49
50
  :'description' => :'description',
50
- :'retained_versions' => :'retained_versions',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
51
52
  :'remote' => :'remote'
52
53
  }
53
54
  end
@@ -62,7 +63,7 @@ module PulpContainerClient
62
63
  :'latest_version_href' => :'String',
63
64
  :'name' => :'String',
64
65
  :'description' => :'String',
65
- :'retained_versions' => :'Integer',
66
+ :'retain_repo_versions' => :'Integer',
66
67
  :'remote' => :'String'
67
68
  }
68
69
  end
@@ -71,7 +72,7 @@ module PulpContainerClient
71
72
  def self.openapi_nullable
72
73
  Set.new([
73
74
  :'description',
74
- :'retained_versions',
75
+ :'retain_repo_versions',
75
76
  :'remote'
76
77
  ])
77
78
  end
@@ -119,8 +120,8 @@ module PulpContainerClient
119
120
  self.description = attributes[:'description']
120
121
  end
121
122
 
122
- if attributes.key?(:'retained_versions')
123
- self.retained_versions = attributes[:'retained_versions']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
125
  end
125
126
 
126
127
  if attributes.key?(:'remote')
@@ -136,8 +137,8 @@ module PulpContainerClient
136
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
138
  end
138
139
 
139
- if !@retained_versions.nil? && @retained_versions < 1
140
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
141
142
  end
142
143
 
143
144
  invalid_properties
@@ -147,18 +148,18 @@ module PulpContainerClient
147
148
  # @return true if the model is valid
148
149
  def valid?
149
150
  return false if @name.nil?
150
- return false if !@retained_versions.nil? && @retained_versions < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  true
152
153
  end
153
154
 
154
155
  # Custom attribute writer method with validation
155
- # @param [Object] retained_versions Value to be assigned
156
- def retained_versions=(retained_versions)
157
- if !retained_versions.nil? && retained_versions < 1
158
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
159
160
  end
160
161
 
161
- @retained_versions = retained_versions
162
+ @retain_repo_versions = retain_repo_versions
162
163
  end
163
164
 
164
165
  # Checks equality by comparing each attribute.
@@ -173,7 +174,7 @@ module PulpContainerClient
173
174
  latest_version_href == o.latest_version_href &&
174
175
  name == o.name &&
175
176
  description == o.description &&
176
- retained_versions == o.retained_versions &&
177
+ retain_repo_versions == o.retain_repo_versions &&
177
178
  remote == o.remote
178
179
  end
179
180
 
@@ -186,7 +187,7 @@ module PulpContainerClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Integer] Hash code
188
189
  def hash
189
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
190
191
  end
191
192
 
192
193
  # Builds the object from hash