pulp_container_client 2.14.3 → 2.14.4

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +7 -7
  6. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +3 -1
  9. data/docs/ContainerContainerRemoteResponseHiddenFields.md +19 -0
  10. data/docs/ContainerContainerRepository.md +2 -2
  11. data/docs/ContainerContainerRepositoryResponse.md +2 -2
  12. data/docs/ContentBlobsApi.md +8 -8
  13. data/docs/ContentManifestsApi.md +8 -8
  14. data/docs/ContentSignaturesApi.md +8 -8
  15. data/docs/ContentTagsApi.md +8 -8
  16. data/docs/DistributionsContainerApi.md +24 -20
  17. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  18. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  19. data/docs/PatchedcontainerContainerRemote.md +1 -1
  20. data/docs/PatchedcontainerContainerRepository.md +2 -2
  21. data/docs/PulpContainerNamespacesApi.md +16 -16
  22. data/docs/RemotesContainerApi.md +20 -20
  23. data/docs/RepositoriesContainerApi.md +35 -19
  24. data/docs/RepositoriesContainerPushApi.md +35 -19
  25. data/docs/RepositoriesContainerPushVersionsApi.md +12 -12
  26. data/docs/RepositoriesContainerVersionsApi.md +12 -12
  27. data/lib/pulp_container_client/api/content_blobs_api.rb +13 -13
  28. data/lib/pulp_container_client/api/content_manifests_api.rb +13 -13
  29. data/lib/pulp_container_client/api/content_signatures_api.rb +13 -13
  30. data/lib/pulp_container_client/api/content_tags_api.rb +13 -13
  31. data/lib/pulp_container_client/api/distributions_container_api.rb +35 -29
  32. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +25 -25
  33. data/lib/pulp_container_client/api/remotes_container_api.rb +29 -29
  34. data/lib/pulp_container_client/api/repositories_container_api.rb +51 -27
  35. data/lib/pulp_container_client/api/repositories_container_push_api.rb +51 -27
  36. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +17 -17
  37. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +17 -17
  38. data/lib/pulp_container_client/models/container_container_distribution.rb +25 -23
  39. data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -38
  40. data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -43
  41. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -49
  42. data/lib/pulp_container_client/models/container_container_remote.rb +4 -2
  43. data/lib/pulp_container_client/models/container_container_remote_response.rb +17 -3
  44. data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +215 -0
  45. data/lib/pulp_container_client/models/container_container_repository.rb +5 -3
  46. data/lib/pulp_container_client/models/container_container_repository_response.rb +5 -3
  47. data/lib/pulp_container_client/models/nested_role.rb +19 -0
  48. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +25 -23
  49. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -43
  50. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +4 -2
  51. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +5 -3
  52. data/lib/pulp_container_client/version.rb +1 -1
  53. data/lib/pulp_container_client.rb +1 -0
  54. data/spec/api/content_blobs_api_spec.rb +4 -4
  55. data/spec/api/content_manifests_api_spec.rb +4 -4
  56. data/spec/api/content_signatures_api_spec.rb +4 -4
  57. data/spec/api/content_tags_api_spec.rb +4 -4
  58. data/spec/api/distributions_container_api_spec.rb +12 -10
  59. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -8
  60. data/spec/api/remotes_container_api_spec.rb +10 -10
  61. data/spec/api/repositories_container_api_spec.rb +17 -9
  62. data/spec/api/repositories_container_push_api_spec.rb +17 -9
  63. data/spec/api/repositories_container_push_versions_api_spec.rb +6 -6
  64. data/spec/api/repositories_container_versions_api_spec.rb +6 -6
  65. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  66. data/spec/models/container_container_distribution_spec.rb +5 -5
  67. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  68. data/spec/models/container_container_push_repository_spec.rb +5 -5
  69. data/spec/models/container_container_remote_response_hidden_fields_spec.rb +47 -0
  70. data/spec/models/container_container_remote_response_spec.rb +6 -0
  71. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  72. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  73. metadata +50 -46
@@ -15,25 +15,25 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- attr_accessor :pulp_href
19
-
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
22
20
 
23
21
  # The latest RepositoryVersion for this Repository will be served.
24
22
  attr_accessor :repository
25
23
 
26
- # An optional content-guard. If none is specified, a default one will be used.
27
- attr_accessor :content_guard
28
-
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
31
-
32
24
  attr_accessor :pulp_labels
33
25
 
26
+ attr_accessor :pulp_href
27
+
34
28
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
35
29
  attr_accessor :base_path
36
30
 
31
+ # An optional content-guard. If none is specified, a default one will be used.
32
+ attr_accessor :content_guard
33
+
34
+ # Timestamp of creation.
35
+ attr_accessor :pulp_created
36
+
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
39
39
 
@@ -52,13 +52,13 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'pulp_href' => :'pulp_href',
56
- :'pulp_created' => :'pulp_created',
57
- :'repository' => :'repository',
58
- :'content_guard' => :'content_guard',
59
55
  :'name' => :'name',
56
+ :'repository' => :'repository',
60
57
  :'pulp_labels' => :'pulp_labels',
58
+ :'pulp_href' => :'pulp_href',
61
59
  :'base_path' => :'base_path',
60
+ :'content_guard' => :'content_guard',
61
+ :'pulp_created' => :'pulp_created',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
@@ -70,13 +70,13 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'pulp_href' => :'String',
74
- :'pulp_created' => :'DateTime',
75
- :'repository' => :'String',
76
- :'content_guard' => :'String',
77
73
  :'name' => :'String',
78
- :'pulp_labels' => :'Object',
74
+ :'repository' => :'String',
75
+ :'pulp_labels' => :'Hash<String, String>',
76
+ :'pulp_href' => :'String',
79
77
  :'base_path' => :'String',
78
+ :'content_guard' => :'String',
79
+ :'pulp_created' => :'DateTime',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,34 +109,36 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'pulp_href')
113
- self.pulp_href = attributes[:'pulp_href']
114
- end
115
-
116
- if attributes.key?(:'pulp_created')
117
- self.pulp_created = attributes[:'pulp_created']
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
118
114
  end
119
115
 
120
116
  if attributes.key?(:'repository')
121
117
  self.repository = attributes[:'repository']
122
118
  end
123
119
 
124
- if attributes.key?(:'content_guard')
125
- self.content_guard = attributes[:'content_guard']
126
- end
127
-
128
- if attributes.key?(:'name')
129
- self.name = attributes[:'name']
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
130
124
  end
131
125
 
132
- if attributes.key?(:'pulp_labels')
133
- self.pulp_labels = attributes[:'pulp_labels']
126
+ if attributes.key?(:'pulp_href')
127
+ self.pulp_href = attributes[:'pulp_href']
134
128
  end
135
129
 
136
130
  if attributes.key?(:'base_path')
137
131
  self.base_path = attributes[:'base_path']
138
132
  end
139
133
 
134
+ if attributes.key?(:'content_guard')
135
+ self.content_guard = attributes[:'content_guard']
136
+ end
137
+
138
+ if attributes.key?(:'pulp_created')
139
+ self.pulp_created = attributes[:'pulp_created']
140
+ end
141
+
140
142
  if attributes.key?(:'repository_version')
141
143
  self.repository_version = attributes[:'repository_version']
142
144
  end
@@ -186,13 +188,13 @@ module PulpContainerClient
186
188
  def ==(o)
187
189
  return true if self.equal?(o)
188
190
  self.class == o.class &&
189
- pulp_href == o.pulp_href &&
190
- pulp_created == o.pulp_created &&
191
- repository == o.repository &&
192
- content_guard == o.content_guard &&
193
191
  name == o.name &&
192
+ repository == o.repository &&
194
193
  pulp_labels == o.pulp_labels &&
194
+ pulp_href == o.pulp_href &&
195
195
  base_path == o.base_path &&
196
+ content_guard == o.content_guard &&
197
+ pulp_created == o.pulp_created &&
196
198
  repository_version == o.repository_version &&
197
199
  registry_path == o.registry_path &&
198
200
  namespace == o.namespace &&
@@ -209,7 +211,7 @@ module PulpContainerClient
209
211
  # Calculates hash code according to all attributes.
210
212
  # @return [Integer] Hash code
211
213
  def hash
212
- [pulp_href, pulp_created, repository, content_guard, name, pulp_labels, base_path, repository_version, registry_path, namespace, private, description].hash
214
+ [name, repository, pulp_labels, pulp_href, base_path, content_guard, pulp_created, repository_version, registry_path, namespace, private, description].hash
213
215
  end
214
216
 
215
217
  # 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 ContainerContainerPushRepository
18
- # 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.
19
- attr_accessor :retain_repo_versions
20
-
21
- # A reference to an associated signing service.
22
- attr_accessor :manifest_signing_service
23
-
24
18
  # A unique name for this repository.
25
19
  attr_accessor :name
26
20
 
@@ -29,34 +23,40 @@ module PulpContainerClient
29
23
  # An optional description.
30
24
  attr_accessor :description
31
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
+ attr_accessor :retain_repo_versions
28
+
29
+ # A reference to an associated signing service.
30
+ attr_accessor :manifest_signing_service
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'retain_repo_versions' => :'retain_repo_versions',
36
- :'manifest_signing_service' => :'manifest_signing_service',
37
35
  :'name' => :'name',
38
36
  :'pulp_labels' => :'pulp_labels',
39
- :'description' => :'description'
37
+ :'description' => :'description',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
39
+ :'manifest_signing_service' => :'manifest_signing_service'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'retain_repo_versions' => :'Integer',
47
- :'manifest_signing_service' => :'String',
48
46
  :'name' => :'String',
49
- :'pulp_labels' => :'Object',
50
- :'description' => :'String'
47
+ :'pulp_labels' => :'Hash<String, String>',
48
+ :'description' => :'String',
49
+ :'retain_repo_versions' => :'Integer',
50
+ :'manifest_signing_service' => :'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',
57
58
  :'retain_repo_versions',
58
- :'manifest_signing_service',
59
- :'description'
59
+ :'manifest_signing_service'
60
60
  ])
61
61
  end
62
62
 
@@ -75,35 +75,33 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'retain_repo_versions')
79
- self.retain_repo_versions = attributes[:'retain_repo_versions']
80
- end
81
-
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
84
- end
85
-
86
78
  if attributes.key?(:'name')
87
79
  self.name = attributes[:'name']
88
80
  end
89
81
 
90
82
  if attributes.key?(:'pulp_labels')
91
- self.pulp_labels = attributes[:'pulp_labels']
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
92
86
  end
93
87
 
94
88
  if attributes.key?(:'description')
95
89
  self.description = attributes[:'description']
96
90
  end
91
+
92
+ if attributes.key?(:'retain_repo_versions')
93
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
94
+ end
95
+
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
98
+ end
97
99
  end
98
100
 
99
101
  # Show invalid properties with the reasons. Usually used together with valid?
100
102
  # @return Array for valid properties with the reasons
101
103
  def list_invalid_properties
102
104
  invalid_properties = Array.new
103
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
104
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
105
- end
106
-
107
105
  if @name.nil?
108
106
  invalid_properties.push('invalid value for "name", name cannot be nil.')
109
107
  end
@@ -116,29 +114,23 @@ module PulpContainerClient
116
114
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
117
115
  end
118
116
 
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.')
119
+ end
120
+
119
121
  invalid_properties
120
122
  end
121
123
 
122
124
  # Check to see if the all the properties in the model are valid
123
125
  # @return true if the model is valid
124
126
  def valid?
125
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
126
127
  return false if @name.nil?
127
128
  return false if @name.to_s.length < 1
128
129
  return false if !@description.nil? && @description.to_s.length < 1
130
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
131
  true
130
132
  end
131
133
 
132
- # Custom attribute writer method with validation
133
- # @param [Object] retain_repo_versions Value to be assigned
134
- def retain_repo_versions=(retain_repo_versions)
135
- if !retain_repo_versions.nil? && retain_repo_versions < 1
136
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
137
- end
138
-
139
- @retain_repo_versions = retain_repo_versions
140
- end
141
-
142
134
  # Custom attribute writer method with validation
143
135
  # @param [Object] name Value to be assigned
144
136
  def name=(name)
@@ -163,16 +155,26 @@ module PulpContainerClient
163
155
  @description = description
164
156
  end
165
157
 
158
+ # 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.'
163
+ end
164
+
165
+ @retain_repo_versions = retain_repo_versions
166
+ end
167
+
166
168
  # Checks equality by comparing each attribute.
167
169
  # @param [Object] Object to be compared
168
170
  def ==(o)
169
171
  return true if self.equal?(o)
170
172
  self.class == o.class &&
171
- retain_repo_versions == o.retain_repo_versions &&
172
- manifest_signing_service == o.manifest_signing_service &&
173
173
  name == o.name &&
174
174
  pulp_labels == o.pulp_labels &&
175
- description == o.description
175
+ description == o.description &&
176
+ retain_repo_versions == o.retain_repo_versions &&
177
+ manifest_signing_service == o.manifest_signing_service
176
178
  end
177
179
 
178
180
  # @see the `==` method
@@ -184,7 +186,7 @@ module PulpContainerClient
184
186
  # Calculates hash code according to all attributes.
185
187
  # @return [Integer] Hash code
186
188
  def hash
187
- [retain_repo_versions, manifest_signing_service, name, pulp_labels, description].hash
189
+ [name, pulp_labels, description, retain_repo_versions, manifest_signing_service].hash
188
190
  end
189
191
 
190
192
  # Builds the object from hash
@@ -15,65 +15,65 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- # 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.
19
- attr_accessor :retain_repo_versions
18
+ # A unique name for this repository.
19
+ attr_accessor :name
20
20
 
21
- attr_accessor :pulp_href
21
+ attr_accessor :pulp_labels
22
22
 
23
- # A reference to an associated signing service.
24
- attr_accessor :manifest_signing_service
23
+ # An optional description.
24
+ attr_accessor :description
25
25
 
26
- # Timestamp of creation.
27
- attr_accessor :pulp_created
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
+ attr_accessor :retain_repo_versions
28
28
 
29
- # A unique name for this repository.
30
- attr_accessor :name
29
+ attr_accessor :pulp_href
31
30
 
32
31
  attr_accessor :versions_href
33
32
 
34
33
  attr_accessor :latest_version_href
35
34
 
36
- attr_accessor :pulp_labels
35
+ # Timestamp of creation.
36
+ attr_accessor :pulp_created
37
37
 
38
- # An optional description.
39
- attr_accessor :description
38
+ # A reference to an associated signing service.
39
+ attr_accessor :manifest_signing_service
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'name' => :'name',
45
+ :'pulp_labels' => :'pulp_labels',
46
+ :'description' => :'description',
44
47
  :'retain_repo_versions' => :'retain_repo_versions',
45
48
  :'pulp_href' => :'pulp_href',
46
- :'manifest_signing_service' => :'manifest_signing_service',
47
- :'pulp_created' => :'pulp_created',
48
- :'name' => :'name',
49
49
  :'versions_href' => :'versions_href',
50
50
  :'latest_version_href' => :'latest_version_href',
51
- :'pulp_labels' => :'pulp_labels',
52
- :'description' => :'description'
51
+ :'pulp_created' => :'pulp_created',
52
+ :'manifest_signing_service' => :'manifest_signing_service'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
+ :'name' => :'String',
60
+ :'pulp_labels' => :'Hash<String, String>',
61
+ :'description' => :'String',
59
62
  :'retain_repo_versions' => :'Integer',
60
63
  :'pulp_href' => :'String',
61
- :'manifest_signing_service' => :'String',
62
- :'pulp_created' => :'DateTime',
63
- :'name' => :'String',
64
64
  :'versions_href' => :'String',
65
65
  :'latest_version_href' => :'String',
66
- :'pulp_labels' => :'Object',
67
- :'description' => :'String'
66
+ :'pulp_created' => :'DateTime',
67
+ :'manifest_signing_service' => :'String'
68
68
  }
69
69
  end
70
70
 
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
+ :'description',
74
75
  :'retain_repo_versions',
75
- :'manifest_signing_service',
76
- :'description'
76
+ :'manifest_signing_service'
77
77
  ])
78
78
  end
79
79
 
@@ -92,24 +92,26 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'retain_repo_versions')
96
- self.retain_repo_versions = attributes[:'retain_repo_versions']
95
+ if attributes.key?(:'name')
96
+ self.name = attributes[:'name']
97
97
  end
98
98
 
99
- if attributes.key?(:'pulp_href')
100
- self.pulp_href = attributes[:'pulp_href']
99
+ if attributes.key?(:'pulp_labels')
100
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
101
+ self.pulp_labels = value
102
+ end
101
103
  end
102
104
 
103
- if attributes.key?(:'manifest_signing_service')
104
- self.manifest_signing_service = attributes[:'manifest_signing_service']
105
+ if attributes.key?(:'description')
106
+ self.description = attributes[:'description']
105
107
  end
106
108
 
107
- if attributes.key?(:'pulp_created')
108
- self.pulp_created = attributes[:'pulp_created']
109
+ if attributes.key?(:'retain_repo_versions')
110
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
109
111
  end
110
112
 
111
- if attributes.key?(:'name')
112
- self.name = attributes[:'name']
113
+ if attributes.key?(:'pulp_href')
114
+ self.pulp_href = attributes[:'pulp_href']
113
115
  end
114
116
 
115
117
  if attributes.key?(:'versions_href')
@@ -120,12 +122,12 @@ module PulpContainerClient
120
122
  self.latest_version_href = attributes[:'latest_version_href']
121
123
  end
122
124
 
123
- if attributes.key?(:'pulp_labels')
124
- self.pulp_labels = attributes[:'pulp_labels']
125
+ if attributes.key?(:'pulp_created')
126
+ self.pulp_created = attributes[:'pulp_created']
125
127
  end
126
128
 
127
- if attributes.key?(:'description')
128
- self.description = attributes[:'description']
129
+ if attributes.key?(:'manifest_signing_service')
130
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
129
131
  end
130
132
  end
131
133
 
@@ -133,22 +135,22 @@ module PulpContainerClient
133
135
  # @return Array for valid properties with the reasons
134
136
  def list_invalid_properties
135
137
  invalid_properties = Array.new
136
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
137
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
138
- end
139
-
140
138
  if @name.nil?
141
139
  invalid_properties.push('invalid value for "name", name cannot be nil.')
142
140
  end
143
141
 
142
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
143
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
144
+ end
145
+
144
146
  invalid_properties
145
147
  end
146
148
 
147
149
  # Check to see if the all the properties in the model are valid
148
150
  # @return true if the model is valid
149
151
  def valid?
150
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  return false if @name.nil?
153
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
154
  true
153
155
  end
154
156
 
@@ -167,15 +169,15 @@ module PulpContainerClient
167
169
  def ==(o)
168
170
  return true if self.equal?(o)
169
171
  self.class == o.class &&
172
+ name == o.name &&
173
+ pulp_labels == o.pulp_labels &&
174
+ description == o.description &&
170
175
  retain_repo_versions == o.retain_repo_versions &&
171
176
  pulp_href == o.pulp_href &&
172
- manifest_signing_service == o.manifest_signing_service &&
173
- pulp_created == o.pulp_created &&
174
- name == o.name &&
175
177
  versions_href == o.versions_href &&
176
178
  latest_version_href == o.latest_version_href &&
177
- pulp_labels == o.pulp_labels &&
178
- description == o.description
179
+ pulp_created == o.pulp_created &&
180
+ manifest_signing_service == o.manifest_signing_service
179
181
  end
180
182
 
181
183
  # @see the `==` method
@@ -187,7 +189,7 @@ module PulpContainerClient
187
189
  # Calculates hash code according to all attributes.
188
190
  # @return [Integer] Hash code
189
191
  def hash
190
- [retain_repo_versions, pulp_href, manifest_signing_service, pulp_created, name, versions_href, latest_version_href, pulp_labels, description].hash
192
+ [name, pulp_labels, description, retain_repo_versions, pulp_href, versions_href, latest_version_href, pulp_created, manifest_signing_service].hash
191
193
  end
192
194
 
193
195
  # Builds the object from hash
@@ -134,7 +134,7 @@ module PulpContainerClient
134
134
  :'proxy_password' => :'String',
135
135
  :'username' => :'String',
136
136
  :'password' => :'String',
137
- :'pulp_labels' => :'Object',
137
+ :'pulp_labels' => :'Hash<String, String>',
138
138
  :'download_concurrency' => :'Integer',
139
139
  :'max_retries' => :'Integer',
140
140
  :'policy' => :'PolicyEnum',
@@ -234,7 +234,9 @@ module PulpContainerClient
234
234
  end
235
235
 
236
236
  if attributes.key?(:'pulp_labels')
237
- self.pulp_labels = attributes[:'pulp_labels']
237
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
238
+ self.pulp_labels = value
239
+ end
238
240
  end
239
241
 
240
242
  if attributes.key?(:'download_concurrency')
@@ -70,6 +70,9 @@ module PulpContainerClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # List of hidden (write only) fields
74
+ attr_accessor :hidden_fields
75
+
73
76
  # Name of the upstream repository
74
77
  attr_accessor :upstream_name
75
78
 
@@ -104,6 +107,7 @@ module PulpContainerClient
104
107
  :'sock_read_timeout' => :'sock_read_timeout',
105
108
  :'headers' => :'headers',
106
109
  :'rate_limit' => :'rate_limit',
110
+ :'hidden_fields' => :'hidden_fields',
107
111
  :'upstream_name' => :'upstream_name',
108
112
  :'include_tags' => :'include_tags',
109
113
  :'exclude_tags' => :'exclude_tags',
@@ -122,7 +126,7 @@ module PulpContainerClient
122
126
  :'client_cert' => :'String',
123
127
  :'tls_validation' => :'Boolean',
124
128
  :'proxy_url' => :'String',
125
- :'pulp_labels' => :'Object',
129
+ :'pulp_labels' => :'Hash<String, String>',
126
130
  :'pulp_last_updated' => :'DateTime',
127
131
  :'download_concurrency' => :'Integer',
128
132
  :'max_retries' => :'Integer',
@@ -133,6 +137,7 @@ module PulpContainerClient
133
137
  :'sock_read_timeout' => :'Float',
134
138
  :'headers' => :'Array<Object>',
135
139
  :'rate_limit' => :'Integer',
140
+ :'hidden_fields' => :'Array<ContainerContainerRemoteResponseHiddenFields>',
136
141
  :'upstream_name' => :'String',
137
142
  :'include_tags' => :'Array<String>',
138
143
  :'exclude_tags' => :'Array<String>',
@@ -206,7 +211,9 @@ module PulpContainerClient
206
211
  end
207
212
 
208
213
  if attributes.key?(:'pulp_labels')
209
- self.pulp_labels = attributes[:'pulp_labels']
214
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
215
+ self.pulp_labels = value
216
+ end
210
217
  end
211
218
 
212
219
  if attributes.key?(:'pulp_last_updated')
@@ -251,6 +258,12 @@ module PulpContainerClient
251
258
  self.rate_limit = attributes[:'rate_limit']
252
259
  end
253
260
 
261
+ if attributes.key?(:'hidden_fields')
262
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
263
+ self.hidden_fields = value
264
+ end
265
+ end
266
+
254
267
  if attributes.key?(:'upstream_name')
255
268
  self.upstream_name = attributes[:'upstream_name']
256
269
  end
@@ -399,6 +412,7 @@ module PulpContainerClient
399
412
  sock_read_timeout == o.sock_read_timeout &&
400
413
  headers == o.headers &&
401
414
  rate_limit == o.rate_limit &&
415
+ hidden_fields == o.hidden_fields &&
402
416
  upstream_name == o.upstream_name &&
403
417
  include_tags == o.include_tags &&
404
418
  exclude_tags == o.exclude_tags &&
@@ -414,7 +428,7 @@ module PulpContainerClient
414
428
  # Calculates hash code according to all attributes.
415
429
  # @return [Integer] Hash code
416
430
  def hash
417
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
431
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, upstream_name, include_tags, exclude_tags, sigstore].hash
418
432
  end
419
433
 
420
434
  # Builds the object from hash