pulp_container_client 2.20.6 → 2.20.8

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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPullThroughRemote.md +1 -1
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
  9. data/docs/ContainerContainerPushRepository.md +7 -7
  10. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  11. data/docs/ContainerContainerRemote.md +1 -1
  12. data/docs/ContainerContainerRemoteResponse.md +1 -1
  13. data/docs/ContentBlobsApi.md +4 -0
  14. data/docs/ContentManifestsApi.md +4 -0
  15. data/docs/ContentSignaturesApi.md +4 -0
  16. data/docs/ContentTagsApi.md +4 -0
  17. data/docs/DistributionsContainerApi.md +56 -16
  18. data/docs/DistributionsPullThroughApi.md +56 -16
  19. data/docs/OCIBuildImage.md +1 -1
  20. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  21. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  22. data/docs/PatchedcontainerContainerPullThroughRemote.md +1 -1
  23. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  24. data/docs/PatchedcontainerContainerRemote.md +1 -1
  25. data/docs/{Policy762Enum.md → Policy692Enum.md} +2 -2
  26. data/docs/{Policy8e2Enum.md → Policy7e0Enum.md} +2 -2
  27. data/docs/PulpContainerNamespacesApi.md +32 -8
  28. data/docs/RemotesContainerApi.md +56 -16
  29. data/docs/RemotesPullThroughApi.md +56 -16
  30. data/docs/RepositoriesContainerApi.md +108 -34
  31. data/docs/RepositoriesContainerPushApi.md +62 -18
  32. data/docs/RepositoriesContainerPushVersionsApi.md +16 -4
  33. data/docs/RepositoriesContainerVersionsApi.md +16 -4
  34. data/docs/TokenApi.md +13 -3
  35. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
  36. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
  37. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
  38. data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
  39. data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
  40. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
  41. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
  42. data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
  43. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
  44. data/lib/pulp_container_client/api/repositories_container_api.rb +65 -2
  45. data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
  46. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +12 -0
  47. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +12 -0
  48. data/lib/pulp_container_client/api/token_api.rb +9 -0
  49. data/lib/pulp_container_client/models/container_container_distribution.rb +56 -56
  50. data/lib/pulp_container_client/models/container_container_distribution_response.rb +50 -50
  51. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +56 -56
  52. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +50 -50
  53. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +1 -1
  54. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +1 -1
  55. data/lib/pulp_container_client/models/container_container_push_repository.rb +54 -54
  56. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
  57. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  58. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  59. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  60. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +47 -47
  61. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
  62. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +1 -1
  63. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
  64. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  65. data/lib/pulp_container_client/models/{policy762_enum.rb → policy692_enum.rb} +3 -3
  66. data/lib/pulp_container_client/models/{policy8e2_enum.rb → policy7e0_enum.rb} +3 -3
  67. data/lib/pulp_container_client/version.rb +1 -1
  68. data/lib/pulp_container_client.rb +2 -2
  69. data/spec/api/content_blobs_api_spec.rb +2 -0
  70. data/spec/api/content_manifests_api_spec.rb +2 -0
  71. data/spec/api/content_signatures_api_spec.rb +2 -0
  72. data/spec/api/content_tags_api_spec.rb +2 -0
  73. data/spec/api/distributions_container_api_spec.rb +12 -0
  74. data/spec/api/distributions_pull_through_api_spec.rb +12 -0
  75. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
  76. data/spec/api/remotes_container_api_spec.rb +12 -0
  77. data/spec/api/remotes_pull_through_api_spec.rb +12 -0
  78. data/spec/api/repositories_container_api_spec.rb +22 -1
  79. data/spec/api/repositories_container_push_api_spec.rb +13 -0
  80. data/spec/api/repositories_container_push_versions_api_spec.rb +4 -0
  81. data/spec/api/repositories_container_versions_api_spec.rb +4 -0
  82. data/spec/api/token_api_spec.rb +3 -0
  83. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  84. data/spec/models/container_container_distribution_spec.rb +4 -4
  85. data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
  86. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  87. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  88. data/spec/models/container_container_push_repository_spec.rb +5 -5
  89. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  90. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  91. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  92. data/spec/models/{policy762_enum_spec.rb → policy692_enum_spec.rb} +6 -6
  93. data/spec/models/{policy8e2_enum_spec.rb → policy7e0_enum_spec.rb} +6 -6
  94. metadata +66 -66
@@ -15,14 +15,16 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistributionResponse
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
18
+ # Whether this distribution should be shown in the content app.
19
+ attr_accessor :hidden
20
20
 
21
21
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
22
22
  attr_accessor :pulp_last_updated
23
23
 
24
- # A unique name. Ex, `rawhide` and `stable`.
25
- attr_accessor :name
24
+ # Timestamp of creation.
25
+ attr_accessor :pulp_created
26
+
27
+ attr_accessor :pulp_labels
26
28
 
27
29
  # The latest RepositoryVersion for this Repository will be served.
28
30
  attr_accessor :repository
@@ -30,15 +32,13 @@ module PulpContainerClient
30
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\")
31
33
  attr_accessor :base_path
32
34
 
33
- # Whether this distribution should be shown in the content app.
34
- attr_accessor :hidden
35
-
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
38
-
39
35
  attr_accessor :pulp_href
40
36
 
41
- attr_accessor :pulp_labels
37
+ # A unique name. Ex, `rawhide` and `stable`.
38
+ attr_accessor :name
39
+
40
+ # An optional content-guard. If none is specified, a default one will be used.
41
+ attr_accessor :content_guard
42
42
 
43
43
  # Remote that can be used to fetch content when using pull-through caching.
44
44
  attr_accessor :remote
@@ -58,15 +58,15 @@ module PulpContainerClient
58
58
  # Attribute mapping from ruby-style variable name to JSON key.
59
59
  def self.attribute_map
60
60
  {
61
- :'content_guard' => :'content_guard',
61
+ :'hidden' => :'hidden',
62
62
  :'pulp_last_updated' => :'pulp_last_updated',
63
- :'name' => :'name',
63
+ :'pulp_created' => :'pulp_created',
64
+ :'pulp_labels' => :'pulp_labels',
64
65
  :'repository' => :'repository',
65
66
  :'base_path' => :'base_path',
66
- :'hidden' => :'hidden',
67
- :'pulp_created' => :'pulp_created',
68
67
  :'pulp_href' => :'pulp_href',
69
- :'pulp_labels' => :'pulp_labels',
68
+ :'name' => :'name',
69
+ :'content_guard' => :'content_guard',
70
70
  :'remote' => :'remote',
71
71
  :'distributions' => :'distributions',
72
72
  :'namespace' => :'namespace',
@@ -78,15 +78,15 @@ module PulpContainerClient
78
78
  # Attribute type mapping.
79
79
  def self.openapi_types
80
80
  {
81
- :'content_guard' => :'String',
81
+ :'hidden' => :'Boolean',
82
82
  :'pulp_last_updated' => :'DateTime',
83
- :'name' => :'String',
83
+ :'pulp_created' => :'DateTime',
84
+ :'pulp_labels' => :'Hash<String, String>',
84
85
  :'repository' => :'String',
85
86
  :'base_path' => :'String',
86
- :'hidden' => :'Boolean',
87
- :'pulp_created' => :'DateTime',
88
87
  :'pulp_href' => :'String',
89
- :'pulp_labels' => :'Hash<String, String>',
88
+ :'name' => :'String',
89
+ :'content_guard' => :'String',
90
90
  :'remote' => :'String',
91
91
  :'distributions' => :'Array<String>',
92
92
  :'namespace' => :'String',
@@ -118,16 +118,24 @@ module PulpContainerClient
118
118
  h[k.to_sym] = v
119
119
  }
120
120
 
121
- if attributes.key?(:'content_guard')
122
- self.content_guard = attributes[:'content_guard']
121
+ if attributes.key?(:'hidden')
122
+ self.hidden = attributes[:'hidden']
123
+ else
124
+ self.hidden = false
123
125
  end
124
126
 
125
127
  if attributes.key?(:'pulp_last_updated')
126
128
  self.pulp_last_updated = attributes[:'pulp_last_updated']
127
129
  end
128
130
 
129
- if attributes.key?(:'name')
130
- self.name = attributes[:'name']
131
+ if attributes.key?(:'pulp_created')
132
+ self.pulp_created = attributes[:'pulp_created']
133
+ end
134
+
135
+ if attributes.key?(:'pulp_labels')
136
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
137
+ self.pulp_labels = value
138
+ end
131
139
  end
132
140
 
133
141
  if attributes.key?(:'repository')
@@ -138,24 +146,16 @@ module PulpContainerClient
138
146
  self.base_path = attributes[:'base_path']
139
147
  end
140
148
 
141
- if attributes.key?(:'hidden')
142
- self.hidden = attributes[:'hidden']
143
- else
144
- self.hidden = false
145
- end
146
-
147
- if attributes.key?(:'pulp_created')
148
- self.pulp_created = attributes[:'pulp_created']
149
- end
150
-
151
149
  if attributes.key?(:'pulp_href')
152
150
  self.pulp_href = attributes[:'pulp_href']
153
151
  end
154
152
 
155
- if attributes.key?(:'pulp_labels')
156
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
157
- self.pulp_labels = value
158
- end
153
+ if attributes.key?(:'name')
154
+ self.name = attributes[:'name']
155
+ end
156
+
157
+ if attributes.key?(:'content_guard')
158
+ self.content_guard = attributes[:'content_guard']
159
159
  end
160
160
 
161
161
  if attributes.key?(:'remote')
@@ -185,14 +185,14 @@ module PulpContainerClient
185
185
  # @return Array for valid properties with the reasons
186
186
  def list_invalid_properties
187
187
  invalid_properties = Array.new
188
- if @name.nil?
189
- invalid_properties.push('invalid value for "name", name cannot be nil.')
190
- end
191
-
192
188
  if @base_path.nil?
193
189
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
194
190
  end
195
191
 
192
+ if @name.nil?
193
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
194
+ end
195
+
196
196
  if @remote.nil?
197
197
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
198
198
  end
@@ -203,8 +203,8 @@ module PulpContainerClient
203
203
  # Check to see if the all the properties in the model are valid
204
204
  # @return true if the model is valid
205
205
  def valid?
206
- return false if @name.nil?
207
206
  return false if @base_path.nil?
207
+ return false if @name.nil?
208
208
  return false if @remote.nil?
209
209
  true
210
210
  end
@@ -214,15 +214,15 @@ module PulpContainerClient
214
214
  def ==(o)
215
215
  return true if self.equal?(o)
216
216
  self.class == o.class &&
217
- content_guard == o.content_guard &&
217
+ hidden == o.hidden &&
218
218
  pulp_last_updated == o.pulp_last_updated &&
219
- name == o.name &&
219
+ pulp_created == o.pulp_created &&
220
+ pulp_labels == o.pulp_labels &&
220
221
  repository == o.repository &&
221
222
  base_path == o.base_path &&
222
- hidden == o.hidden &&
223
- pulp_created == o.pulp_created &&
224
223
  pulp_href == o.pulp_href &&
225
- pulp_labels == o.pulp_labels &&
224
+ name == o.name &&
225
+ content_guard == o.content_guard &&
226
226
  remote == o.remote &&
227
227
  distributions == o.distributions &&
228
228
  namespace == o.namespace &&
@@ -239,7 +239,7 @@ module PulpContainerClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [content_guard, pulp_last_updated, name, repository, base_path, hidden, pulp_created, pulp_href, pulp_labels, remote, distributions, namespace, private, description].hash
242
+ [hidden, pulp_last_updated, pulp_created, pulp_labels, repository, base_path, pulp_href, name, content_guard, remote, distributions, namespace, private, description].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -120,7 +120,7 @@ module PulpContainerClient
120
120
  :'pulp_labels' => :'Hash<String, String>',
121
121
  :'download_concurrency' => :'Integer',
122
122
  :'max_retries' => :'Integer',
123
- :'policy' => :'Policy8e2Enum',
123
+ :'policy' => :'Policy7e0Enum',
124
124
  :'total_timeout' => :'Float',
125
125
  :'connect_timeout' => :'Float',
126
126
  :'sock_connect_timeout' => :'Float',
@@ -113,7 +113,7 @@ module PulpContainerClient
113
113
  :'pulp_labels' => :'Hash<String, String>',
114
114
  :'download_concurrency' => :'Integer',
115
115
  :'max_retries' => :'Integer',
116
- :'policy' => :'Policy8e2Enum',
116
+ :'policy' => :'Policy7e0Enum',
117
117
  :'total_timeout' => :'Float',
118
118
  :'connect_timeout' => :'Float',
119
119
  :'sock_connect_timeout' => :'Float',
@@ -15,48 +15,48 @@ 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
- # An optional description.
22
- attr_accessor :description
23
-
24
18
  # A reference to an associated signing service.
25
19
  attr_accessor :manifest_signing_service
26
20
 
21
+ attr_accessor :pulp_labels
22
+
27
23
  # Retain X versions of the repository. Default is null which retains all versions.
28
24
  attr_accessor :retain_repo_versions
29
25
 
30
- attr_accessor :pulp_labels
26
+ # An optional description.
27
+ attr_accessor :description
28
+
29
+ # A unique name for this repository.
30
+ attr_accessor :name
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'name' => :'name',
36
- :'description' => :'description',
37
35
  :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'pulp_labels' => :'pulp_labels',
38
37
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'pulp_labels' => :'pulp_labels'
38
+ :'description' => :'description',
39
+ :'name' => :'name'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'name' => :'String',
47
- :'description' => :'String',
48
46
  :'manifest_signing_service' => :'String',
47
+ :'pulp_labels' => :'Hash<String, String>',
49
48
  :'retain_repo_versions' => :'Integer',
50
- :'pulp_labels' => :'Hash<String, String>'
49
+ :'description' => :'String',
50
+ :'name' => :'String'
51
51
  }
52
52
  end
53
53
 
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'description',
58
57
  :'manifest_signing_service',
59
58
  :'retain_repo_versions',
59
+ :'description',
60
60
  ])
61
61
  end
62
62
 
@@ -75,47 +75,47 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
80
- end
81
-
82
- if attributes.key?(:'description')
83
- self.description = attributes[:'description']
84
- end
85
-
86
78
  if attributes.key?(:'manifest_signing_service')
87
79
  self.manifest_signing_service = attributes[:'manifest_signing_service']
88
80
  end
89
81
 
90
- if attributes.key?(:'retain_repo_versions')
91
- self.retain_repo_versions = attributes[:'retain_repo_versions']
92
- end
93
-
94
82
  if attributes.key?(:'pulp_labels')
95
83
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
84
  self.pulp_labels = value
97
85
  end
98
86
  end
87
+
88
+ if attributes.key?(:'retain_repo_versions')
89
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
90
+ end
91
+
92
+ if attributes.key?(:'description')
93
+ self.description = attributes[:'description']
94
+ end
95
+
96
+ if attributes.key?(:'name')
97
+ self.name = attributes[:'name']
98
+ end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if @name.nil?
106
- invalid_properties.push('invalid value for "name", name cannot be nil.')
107
- end
108
-
109
- if @name.to_s.length < 1
110
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
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.')
111
107
  end
112
108
 
113
109
  if !@description.nil? && @description.to_s.length < 1
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
 
117
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
113
+ if @name.nil?
114
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
115
+ end
116
+
117
+ if @name.to_s.length < 1
118
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
119
119
  end
120
120
 
121
121
  invalid_properties
@@ -124,25 +124,21 @@ module PulpContainerClient
124
124
  # Check to see if the all the properties in the model are valid
125
125
  # @return true if the model is valid
126
126
  def valid?
127
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
+ return false if !@description.nil? && @description.to_s.length < 1
127
129
  return false if @name.nil?
128
130
  return false if @name.to_s.length < 1
129
- return false if !@description.nil? && @description.to_s.length < 1
130
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
134
134
  # Custom attribute writer method with validation
135
- # @param [Object] name Value to be assigned
136
- def name=(name)
137
- if name.nil?
138
- fail ArgumentError, 'name cannot be nil'
139
- end
140
-
141
- if name.to_s.length < 1
142
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
135
+ # @param [Object] retain_repo_versions Value to be assigned
136
+ def retain_repo_versions=(retain_repo_versions)
137
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
138
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
143
139
  end
144
140
 
145
- @name = name
141
+ @retain_repo_versions = retain_repo_versions
146
142
  end
147
143
 
148
144
  # Custom attribute writer method with validation
@@ -156,13 +152,17 @@ module PulpContainerClient
156
152
  end
157
153
 
158
154
  # Custom attribute writer method with validation
159
- # @param [Object] retain_repo_versions Value to be assigned
160
- def retain_repo_versions=(retain_repo_versions)
161
- if !retain_repo_versions.nil? && retain_repo_versions < 1
162
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
155
+ # @param [Object] name Value to be assigned
156
+ def name=(name)
157
+ if name.nil?
158
+ fail ArgumentError, 'name cannot be nil'
163
159
  end
164
160
 
165
- @retain_repo_versions = retain_repo_versions
161
+ if name.to_s.length < 1
162
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
163
+ end
164
+
165
+ @name = name
166
166
  end
167
167
 
168
168
  # Checks equality by comparing each attribute.
@@ -170,11 +170,11 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
- name == o.name &&
174
- description == o.description &&
175
173
  manifest_signing_service == o.manifest_signing_service &&
174
+ pulp_labels == o.pulp_labels &&
176
175
  retain_repo_versions == o.retain_repo_versions &&
177
- pulp_labels == o.pulp_labels
176
+ description == o.description &&
177
+ name == o.name
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [name, description, manifest_signing_service, retain_repo_versions, pulp_labels].hash
189
+ [manifest_signing_service, pulp_labels, retain_repo_versions, description, name].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,70 +15,70 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :latest_version_href
19
-
20
18
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
21
19
  attr_accessor :pulp_last_updated
22
20
 
23
- # A unique name for this repository.
24
- attr_accessor :name
25
-
26
- # An optional description.
27
- attr_accessor :description
28
-
29
- attr_accessor :versions_href
21
+ # A reference to an associated signing service.
22
+ attr_accessor :manifest_signing_service
30
23
 
31
24
  # Timestamp of creation.
32
25
  attr_accessor :pulp_created
33
26
 
34
- # A reference to an associated signing service.
35
- attr_accessor :manifest_signing_service
27
+ attr_accessor :pulp_labels
36
28
 
37
29
  # Retain X versions of the repository. Default is null which retains all versions.
38
30
  attr_accessor :retain_repo_versions
39
31
 
40
32
  attr_accessor :pulp_href
41
33
 
42
- attr_accessor :pulp_labels
34
+ # An optional description.
35
+ attr_accessor :description
36
+
37
+ attr_accessor :versions_href
38
+
39
+ # A unique name for this repository.
40
+ attr_accessor :name
41
+
42
+ attr_accessor :latest_version_href
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'latest_version_href' => :'latest_version_href',
48
47
  :'pulp_last_updated' => :'pulp_last_updated',
49
- :'name' => :'name',
50
- :'description' => :'description',
51
- :'versions_href' => :'versions_href',
52
- :'pulp_created' => :'pulp_created',
53
48
  :'manifest_signing_service' => :'manifest_signing_service',
49
+ :'pulp_created' => :'pulp_created',
50
+ :'pulp_labels' => :'pulp_labels',
54
51
  :'retain_repo_versions' => :'retain_repo_versions',
55
52
  :'pulp_href' => :'pulp_href',
56
- :'pulp_labels' => :'pulp_labels'
53
+ :'description' => :'description',
54
+ :'versions_href' => :'versions_href',
55
+ :'name' => :'name',
56
+ :'latest_version_href' => :'latest_version_href'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'latest_version_href' => :'String',
64
63
  :'pulp_last_updated' => :'DateTime',
65
- :'name' => :'String',
66
- :'description' => :'String',
67
- :'versions_href' => :'String',
68
- :'pulp_created' => :'DateTime',
69
64
  :'manifest_signing_service' => :'String',
65
+ :'pulp_created' => :'DateTime',
66
+ :'pulp_labels' => :'Hash<String, String>',
70
67
  :'retain_repo_versions' => :'Integer',
71
68
  :'pulp_href' => :'String',
72
- :'pulp_labels' => :'Hash<String, String>'
69
+ :'description' => :'String',
70
+ :'versions_href' => :'String',
71
+ :'name' => :'String',
72
+ :'latest_version_href' => :'String'
73
73
  }
74
74
  end
75
75
 
76
76
  # List of attributes with nullable: true
77
77
  def self.openapi_nullable
78
78
  Set.new([
79
- :'description',
80
79
  :'manifest_signing_service',
81
80
  :'retain_repo_versions',
81
+ :'description',
82
82
  ])
83
83
  end
84
84
 
@@ -97,32 +97,22 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'latest_version_href')
101
- self.latest_version_href = attributes[:'latest_version_href']
102
- end
103
-
104
100
  if attributes.key?(:'pulp_last_updated')
105
101
  self.pulp_last_updated = attributes[:'pulp_last_updated']
106
102
  end
107
103
 
108
- if attributes.key?(:'name')
109
- self.name = attributes[:'name']
110
- end
111
-
112
- if attributes.key?(:'description')
113
- self.description = attributes[:'description']
114
- end
115
-
116
- if attributes.key?(:'versions_href')
117
- self.versions_href = attributes[:'versions_href']
104
+ if attributes.key?(:'manifest_signing_service')
105
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
118
106
  end
119
107
 
120
108
  if attributes.key?(:'pulp_created')
121
109
  self.pulp_created = attributes[:'pulp_created']
122
110
  end
123
111
 
124
- if attributes.key?(:'manifest_signing_service')
125
- self.manifest_signing_service = attributes[:'manifest_signing_service']
112
+ if attributes.key?(:'pulp_labels')
113
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
+ self.pulp_labels = value
115
+ end
126
116
  end
127
117
 
128
118
  if attributes.key?(:'retain_repo_versions')
@@ -133,10 +123,20 @@ module PulpContainerClient
133
123
  self.pulp_href = attributes[:'pulp_href']
134
124
  end
135
125
 
136
- if attributes.key?(:'pulp_labels')
137
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
138
- self.pulp_labels = value
139
- end
126
+ if attributes.key?(:'description')
127
+ self.description = attributes[:'description']
128
+ end
129
+
130
+ if attributes.key?(:'versions_href')
131
+ self.versions_href = attributes[:'versions_href']
132
+ end
133
+
134
+ if attributes.key?(:'name')
135
+ self.name = attributes[:'name']
136
+ end
137
+
138
+ if attributes.key?(:'latest_version_href')
139
+ self.latest_version_href = attributes[:'latest_version_href']
140
140
  end
141
141
  end
142
142
 
@@ -144,22 +144,22 @@ module PulpContainerClient
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if @name.nil?
148
- invalid_properties.push('invalid value for "name", name cannot be nil.')
149
- end
150
-
151
147
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
148
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
153
149
  end
154
150
 
151
+ if @name.nil?
152
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
153
+ end
154
+
155
155
  invalid_properties
156
156
  end
157
157
 
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if @name.nil?
162
161
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
162
+ return false if @name.nil?
163
163
  true
164
164
  end
165
165
 
@@ -178,16 +178,16 @@ module PulpContainerClient
178
178
  def ==(o)
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
- latest_version_href == o.latest_version_href &&
182
181
  pulp_last_updated == o.pulp_last_updated &&
183
- name == o.name &&
184
- description == o.description &&
185
- versions_href == o.versions_href &&
186
- pulp_created == o.pulp_created &&
187
182
  manifest_signing_service == o.manifest_signing_service &&
183
+ pulp_created == o.pulp_created &&
184
+ pulp_labels == o.pulp_labels &&
188
185
  retain_repo_versions == o.retain_repo_versions &&
189
186
  pulp_href == o.pulp_href &&
190
- pulp_labels == o.pulp_labels
187
+ description == o.description &&
188
+ versions_href == o.versions_href &&
189
+ name == o.name &&
190
+ latest_version_href == o.latest_version_href
191
191
  end
192
192
 
193
193
  # @see the `==` method
@@ -199,7 +199,7 @@ module PulpContainerClient
199
199
  # Calculates hash code according to all attributes.
200
200
  # @return [Integer] Hash code
201
201
  def hash
202
- [latest_version_href, pulp_last_updated, name, description, versions_href, pulp_created, manifest_signing_service, retain_repo_versions, pulp_href, pulp_labels].hash
202
+ [pulp_last_updated, manifest_signing_service, pulp_created, pulp_labels, retain_repo_versions, pulp_href, description, versions_href, name, latest_version_href].hash
203
203
  end
204
204
 
205
205
  # Builds the object from hash
@@ -137,7 +137,7 @@ module PulpContainerClient
137
137
  :'pulp_labels' => :'Hash<String, String>',
138
138
  :'download_concurrency' => :'Integer',
139
139
  :'max_retries' => :'Integer',
140
- :'policy' => :'Policy762Enum',
140
+ :'policy' => :'Policy692Enum',
141
141
  :'total_timeout' => :'Float',
142
142
  :'connect_timeout' => :'Float',
143
143
  :'sock_connect_timeout' => :'Float',
@@ -130,7 +130,7 @@ module PulpContainerClient
130
130
  :'pulp_labels' => :'Hash<String, String>',
131
131
  :'download_concurrency' => :'Integer',
132
132
  :'max_retries' => :'Integer',
133
- :'policy' => :'Policy762Enum',
133
+ :'policy' => :'Policy692Enum',
134
134
  :'total_timeout' => :'Float',
135
135
  :'connect_timeout' => :'Float',
136
136
  :'sock_connect_timeout' => :'Float',