pulp_container_client 2.10.13 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -17
  3. data/docs/ContainerBlobResponse.md +1 -3
  4. data/docs/ContainerContainerDistribution.md +5 -5
  5. data/docs/ContainerContainerDistributionResponse.md +9 -9
  6. data/docs/ContainerContainerPushRepository.md +7 -5
  7. data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
  8. data/docs/ContainerContainerRemote.md +3 -1
  9. data/docs/ContainerContainerRemoteResponse.md +3 -1
  10. data/docs/ContainerContainerRepository.md +3 -1
  11. data/docs/ContainerContainerRepositoryResponse.md +3 -1
  12. data/docs/ContainerManifestSignatureResponse.md +33 -0
  13. data/docs/{RepositorySyncURL.md → ContainerRepositorySyncURL.md} +5 -3
  14. data/docs/ContentBlobsApi.md +0 -2
  15. data/docs/ContentSignaturesApi.md +158 -0
  16. data/docs/ContentSummary.md +21 -0
  17. data/docs/DistributionsContainerApi.md +228 -0
  18. data/docs/MyPermissionsResponse.md +17 -0
  19. data/docs/NestedRole.md +21 -0
  20. data/docs/NestedRoleResponse.md +21 -0
  21. data/docs/ObjectRolesResponse.md +17 -0
  22. data/docs/{PaginatedcontainerContentRedirectContentGuardResponseList.md → PaginatedcontainerManifestSignatureResponseList.md} +3 -3
  23. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  24. data/docs/PatchedcontainerContainerPushRepository.md +7 -5
  25. data/docs/PatchedcontainerContainerRemote.md +3 -1
  26. data/docs/PatchedcontainerContainerRepository.md +3 -1
  27. data/docs/PulpContainerNamespacesApi.md +228 -0
  28. data/docs/RemotesContainerApi.md +228 -0
  29. data/docs/RemoveSignatures.md +17 -0
  30. data/docs/RemoveSignaturesResponse.md +17 -0
  31. data/docs/RepositoriesContainerApi.md +288 -4
  32. data/docs/RepositoriesContainerPushApi.md +339 -0
  33. data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
  34. data/docs/RepositoriesContainerVersionsApi.md +4 -4
  35. data/docs/RepositorySign.md +21 -0
  36. data/docs/RepositoryVersion.md +17 -0
  37. data/git_push.sh +58 -0
  38. data/lib/pulp_container_client/api/content_blobs_api.rb +0 -7
  39. data/lib/pulp_container_client/api/content_signatures_api.rb +200 -0
  40. data/lib/pulp_container_client/api/distributions_container_api.rb +268 -0
  41. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +268 -0
  42. data/lib/pulp_container_client/api/remotes_container_api.rb +268 -0
  43. data/lib/pulp_container_client/api/repositories_container_api.rb +347 -9
  44. data/lib/pulp_container_client/api/repositories_container_push_api.rb +406 -0
  45. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
  46. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
  47. data/lib/pulp_container_client/api_client.rb +5 -2
  48. data/lib/pulp_container_client/configuration.rb +0 -1
  49. data/lib/pulp_container_client/models/container_blob_response.rb +4 -19
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
  52. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -33
  53. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -44
  54. data/lib/pulp_container_client/models/container_container_remote.rb +30 -5
  55. data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -5
  56. data/lib/pulp_container_client/models/container_container_repository.rb +16 -5
  57. data/lib/pulp_container_client/models/container_container_repository_response.rb +16 -5
  58. data/lib/pulp_container_client/models/{container_content_redirect_content_guard.rb → container_manifest_signature_response.rb} +108 -44
  59. data/lib/pulp_container_client/models/{repository_sync_url.rb → container_repository_sync_url.rb} +20 -8
  60. data/lib/pulp_container_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_container_client/models/my_permissions_response.rb +213 -0
  62. data/lib/pulp_container_client/models/{container_content_redirect_content_guard_response.rb → nested_role.rb} +30 -39
  63. data/lib/pulp_container_client/models/nested_role_response.rb +234 -0
  64. data/lib/pulp_container_client/models/{repair.rb → object_roles_response.rb} +17 -13
  65. data/lib/pulp_container_client/models/{paginatedcontainer_content_redirect_content_guard_response_list.rb → paginatedcontainer_manifest_signature_response_list.rb} +4 -4
  66. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  67. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -33
  68. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +30 -5
  69. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +16 -5
  70. data/lib/pulp_container_client/models/remove_signatures.rb +232 -0
  71. data/lib/pulp_container_client/models/remove_signatures_response.rb +213 -0
  72. data/lib/pulp_container_client/models/{patchedcontainer_content_redirect_content_guard.rb → repository_sign.rb} +40 -43
  73. data/lib/pulp_container_client/models/repository_version.rb +208 -0
  74. data/lib/pulp_container_client/version.rb +1 -1
  75. data/lib/pulp_container_client.rb +13 -7
  76. data/pulp_container_client.gemspec +3 -3
  77. data/spec/api/content_blobs_api_spec.rb +0 -1
  78. data/spec/api/content_signatures_api_spec.rb +78 -0
  79. data/spec/api/distributions_container_api_spec.rb +50 -0
  80. data/spec/api/pulp_container_namespaces_api_spec.rb +50 -0
  81. data/spec/api/remotes_container_api_spec.rb +50 -0
  82. data/spec/api/repositories_container_api_spec.rb +64 -1
  83. data/spec/api/repositories_container_push_api_spec.rb +75 -0
  84. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
  85. data/spec/api/repositories_container_versions_api_spec.rb +1 -1
  86. data/spec/models/container_blob_response_spec.rb +0 -6
  87. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  88. data/spec/models/container_container_distribution_spec.rb +5 -5
  89. data/spec/models/container_container_push_repository_response_spec.rb +13 -7
  90. data/spec/models/container_container_push_repository_spec.rb +9 -3
  91. data/spec/models/container_container_remote_response_spec.rb +6 -0
  92. data/spec/models/container_container_remote_spec.rb +6 -0
  93. data/spec/models/container_container_repository_response_spec.rb +6 -0
  94. data/spec/models/container_container_repository_spec.rb +6 -0
  95. data/spec/models/container_manifest_signature_response_spec.rb +89 -0
  96. data/spec/models/{container_content_redirect_content_guard_response_spec.rb → container_repository_sync_url_spec.rb} +9 -15
  97. data/spec/models/{container_content_redirect_content_guard_spec.rb → content_summary_spec.rb} +14 -8
  98. data/spec/models/my_permissions_response_spec.rb +41 -0
  99. data/spec/models/nested_role_response_spec.rb +53 -0
  100. data/spec/models/{patchedcontainer_content_redirect_content_guard_spec.rb → nested_role_spec.rb} +14 -8
  101. data/spec/models/object_roles_response_spec.rb +41 -0
  102. data/spec/models/{paginatedcontainer_content_redirect_content_guard_response_list_spec.rb → paginatedcontainer_manifest_signature_response_list_spec.rb} +6 -6
  103. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  104. data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
  105. data/spec/models/patchedcontainer_container_remote_spec.rb +6 -0
  106. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  107. data/spec/models/remove_signatures_response_spec.rb +41 -0
  108. data/spec/models/{repair_spec.rb → remove_signatures_spec.rb} +7 -7
  109. data/spec/models/{repository_sync_url_spec.rb → repository_sign_spec.rb} +14 -8
  110. data/spec/models/repository_version_spec.rb +41 -0
  111. metadata +99 -74
  112. data/docs/ContainerContentRedirectContentGuard.md +0 -19
  113. data/docs/ContainerContentRedirectContentGuardResponse.md +0 -23
  114. data/docs/ContentguardsContentRedirectApi.md +0 -361
  115. data/docs/PatchedcontainerContentRedirectContentGuard.md +0 -19
  116. data/docs/Repair.md +0 -17
  117. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +0 -440
  118. data/spec/api/contentguards_content_redirect_api_spec.rb +0 -120
@@ -0,0 +1,234 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpContainerClient
16
+ # Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.
17
+ class NestedRoleResponse
18
+ attr_accessor :users
19
+
20
+ attr_accessor :groups
21
+
22
+ attr_accessor :role
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'users' => :'users',
28
+ :'groups' => :'groups',
29
+ :'role' => :'role'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'users' => :'Array<String>',
37
+ :'groups' => :'Array<String>',
38
+ :'role' => :'String'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.openapi_nullable
44
+ Set.new([
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::NestedRoleResponse` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::NestedRoleResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'users')
64
+ if (value = attributes[:'users']).is_a?(Array)
65
+ self.users = value
66
+ end
67
+ end
68
+
69
+ if attributes.key?(:'groups')
70
+ if (value = attributes[:'groups']).is_a?(Array)
71
+ self.groups = value
72
+ end
73
+ end
74
+
75
+ if attributes.key?(:'role')
76
+ self.role = attributes[:'role']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ if @role.nil?
85
+ invalid_properties.push('invalid value for "role", role cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @role.nil?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ users == o.users &&
104
+ groups == o.groups &&
105
+ role == o.role
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [users, groups, role].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
138
+ end
139
+ elsif !attributes[self.class.attribute_map[key]].nil?
140
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
141
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ DateTime.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ PulpContainerClient.const_get(type).build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ if value.nil?
207
+ is_nullable = self.class.openapi_nullable.include?(attr)
208
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
209
+ end
210
+
211
+ hash[param] = _to_hash(value)
212
+ end
213
+ hash
214
+ end
215
+
216
+ # Outputs non-array value in the form of hash
217
+ # For object, use to_hash. Otherwise, just return the value
218
+ # @param [Object] value Any valid value
219
+ # @return [Hash] Returns the value in the form of hash
220
+ def _to_hash(value)
221
+ if value.is_a?(Array)
222
+ value.compact.map { |v| _to_hash(v) }
223
+ elsif value.is_a?(Hash)
224
+ {}.tap do |hash|
225
+ value.each { |k, v| hash[k] = _to_hash(v) }
226
+ end
227
+ elsif value.respond_to? :to_hash
228
+ value.to_hash
229
+ else
230
+ value
231
+ end
232
+ end
233
+ end
234
+ end
@@ -13,21 +13,20 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class Repair
17
- # Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
18
- attr_accessor :verify_checksums
16
+ class ObjectRolesResponse
17
+ attr_accessor :roles
19
18
 
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
23
- :'verify_checksums' => :'verify_checksums'
22
+ :'roles' => :'roles'
24
23
  }
25
24
  end
26
25
 
27
26
  # Attribute type mapping.
28
27
  def self.openapi_types
29
28
  {
30
- :'verify_checksums' => :'Boolean'
29
+ :'roles' => :'Array<NestedRoleResponse>'
31
30
  }
32
31
  end
33
32
 
@@ -41,21 +40,21 @@ module PulpContainerClient
41
40
  # @param [Hash] attributes Model attributes in the form of hash
42
41
  def initialize(attributes = {})
43
42
  if (!attributes.is_a?(Hash))
44
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::Repair` initialize method"
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ObjectRolesResponse` initialize method"
45
44
  end
46
45
 
47
46
  # check to see if the attribute exists and convert string to symbol for hash key
48
47
  attributes = attributes.each_with_object({}) { |(k, v), h|
49
48
  if (!self.class.attribute_map.key?(k.to_sym))
50
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ObjectRolesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
50
  end
52
51
  h[k.to_sym] = v
53
52
  }
54
53
 
55
- if attributes.key?(:'verify_checksums')
56
- self.verify_checksums = attributes[:'verify_checksums']
57
- else
58
- self.verify_checksums = true
54
+ if attributes.key?(:'roles')
55
+ if (value = attributes[:'roles']).is_a?(Array)
56
+ self.roles = value
57
+ end
59
58
  end
60
59
  end
61
60
 
@@ -63,12 +62,17 @@ module PulpContainerClient
63
62
  # @return Array for valid properties with the reasons
64
63
  def list_invalid_properties
65
64
  invalid_properties = Array.new
65
+ if @roles.nil?
66
+ invalid_properties.push('invalid value for "roles", roles cannot be nil.')
67
+ end
68
+
66
69
  invalid_properties
67
70
  end
68
71
 
69
72
  # Check to see if the all the properties in the model are valid
70
73
  # @return true if the model is valid
71
74
  def valid?
75
+ return false if @roles.nil?
72
76
  true
73
77
  end
74
78
 
@@ -77,7 +81,7 @@ module PulpContainerClient
77
81
  def ==(o)
78
82
  return true if self.equal?(o)
79
83
  self.class == o.class &&
80
- verify_checksums == o.verify_checksums
84
+ roles == o.roles
81
85
  end
82
86
 
83
87
  # @see the `==` method
@@ -89,7 +93,7 @@ module PulpContainerClient
89
93
  # Calculates hash code according to all attributes.
90
94
  # @return [Integer] Hash code
91
95
  def hash
92
- [verify_checksums].hash
96
+ [roles].hash
93
97
  end
94
98
 
95
99
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class PaginatedcontainerContentRedirectContentGuardResponseList
16
+ class PaginatedcontainerManifestSignatureResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -38,7 +38,7 @@ module PulpContainerClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<ContainerContentRedirectContentGuardResponse>'
41
+ :'results' => :'Array<ContainerManifestSignatureResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContentRedirectContentGuardResponseList` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerManifestSignatureResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContentRedirectContentGuardResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerManifestSignatureResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # A unique name. Ex, `rawhide` and `stable`.
19
- attr_accessor :name
20
-
21
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
- attr_accessor :base_path
23
-
24
18
  # An optional content-guard. If none is specified, a default one will be used.
25
19
  attr_accessor :content_guard
26
20
 
27
21
  attr_accessor :pulp_labels
28
22
 
23
+ # A unique name. Ex, `rawhide` and `stable`.
24
+ attr_accessor :name
25
+
29
26
  # The latest RepositoryVersion for this Repository will be served.
30
27
  attr_accessor :repository
31
28
 
29
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
+ attr_accessor :base_path
31
+
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'name' => :'name',
45
- :'base_path' => :'base_path',
46
44
  :'content_guard' => :'content_guard',
47
45
  :'pulp_labels' => :'pulp_labels',
46
+ :'name' => :'name',
48
47
  :'repository' => :'repository',
48
+ :'base_path' => :'base_path',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'name' => :'String',
59
- :'base_path' => :'String',
60
58
  :'content_guard' => :'String',
61
59
  :'pulp_labels' => :'Object',
60
+ :'name' => :'String',
62
61
  :'repository' => :'String',
62
+ :'base_path' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,14 +90,6 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'name')
94
- self.name = attributes[:'name']
95
- end
96
-
97
- if attributes.key?(:'base_path')
98
- self.base_path = attributes[:'base_path']
99
- end
100
-
101
93
  if attributes.key?(:'content_guard')
102
94
  self.content_guard = attributes[:'content_guard']
103
95
  end
@@ -106,10 +98,18 @@ module PulpContainerClient
106
98
  self.pulp_labels = attributes[:'pulp_labels']
107
99
  end
108
100
 
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
109
105
  if attributes.key?(:'repository')
110
106
  self.repository = attributes[:'repository']
111
107
  end
112
108
 
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
111
+ end
112
+
113
113
  if attributes.key?(:'repository_version')
114
114
  self.repository_version = attributes[:'repository_version']
115
115
  end
@@ -186,11 +186,11 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- name == o.name &&
190
- base_path == o.base_path &&
191
189
  content_guard == o.content_guard &&
192
190
  pulp_labels == o.pulp_labels &&
191
+ name == o.name &&
193
192
  repository == o.repository &&
193
+ base_path == o.base_path &&
194
194
  repository_version == o.repository_version &&
195
195
  private == o.private &&
196
196
  description == o.description
@@ -205,7 +205,7 @@ module PulpContainerClient
205
205
  # Calculates hash code according to all attributes.
206
206
  # @return [Integer] Hash code
207
207
  def hash
208
- [name, base_path, content_guard, pulp_labels, repository, repository_version, private, description].hash
208
+ [content_guard, pulp_labels, name, repository, base_path, repository_version, private, description].hash
209
209
  end
210
210
 
211
211
  # Builds the object from hash
@@ -15,42 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # A unique name for this repository.
19
24
  attr_accessor :name
20
25
 
21
- # An optional description.
22
- attr_accessor :description
23
-
24
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.
25
27
  attr_accessor :retain_repo_versions
26
28
 
27
- attr_accessor :pulp_labels
29
+ # An optional description.
30
+ attr_accessor :description
28
31
 
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
35
+ :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'pulp_labels' => :'pulp_labels',
32
37
  :'name' => :'name',
33
- :'description' => :'description',
34
38
  :'retain_repo_versions' => :'retain_repo_versions',
35
- :'pulp_labels' => :'pulp_labels'
39
+ :'description' => :'description'
36
40
  }
37
41
  end
38
42
 
39
43
  # Attribute type mapping.
40
44
  def self.openapi_types
41
45
  {
46
+ :'manifest_signing_service' => :'String',
47
+ :'pulp_labels' => :'Object',
42
48
  :'name' => :'String',
43
- :'description' => :'String',
44
49
  :'retain_repo_versions' => :'Integer',
45
- :'pulp_labels' => :'Object'
50
+ :'description' => :'String'
46
51
  }
47
52
  end
48
53
 
49
54
  # List of attributes with nullable: true
50
55
  def self.openapi_nullable
51
56
  Set.new([
52
- :'description',
57
+ :'manifest_signing_service',
53
58
  :'retain_repo_versions',
59
+ :'description'
54
60
  ])
55
61
  end
56
62
 
@@ -69,20 +75,24 @@ module PulpContainerClient
69
75
  h[k.to_sym] = v
70
76
  }
71
77
 
72
- if attributes.key?(:'name')
73
- self.name = attributes[:'name']
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
74
80
  end
75
81
 
76
- if attributes.key?(:'description')
77
- self.description = attributes[:'description']
82
+ if attributes.key?(:'pulp_labels')
83
+ self.pulp_labels = attributes[:'pulp_labels']
84
+ end
85
+
86
+ if attributes.key?(:'name')
87
+ self.name = attributes[:'name']
78
88
  end
79
89
 
80
90
  if attributes.key?(:'retain_repo_versions')
81
91
  self.retain_repo_versions = attributes[:'retain_repo_versions']
82
92
  end
83
93
 
84
- if attributes.key?(:'pulp_labels')
85
- self.pulp_labels = attributes[:'pulp_labels']
94
+ if attributes.key?(:'description')
95
+ self.description = attributes[:'description']
86
96
  end
87
97
  end
88
98
 
@@ -94,14 +104,14 @@ module PulpContainerClient
94
104
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
95
105
  end
96
106
 
97
- if !@description.nil? && @description.to_s.length < 1
98
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
99
- end
100
-
101
107
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
102
108
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
103
109
  end
104
110
 
111
+ if !@description.nil? && @description.to_s.length < 1
112
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
113
+ end
114
+
105
115
  invalid_properties
106
116
  end
107
117
 
@@ -109,8 +119,8 @@ module PulpContainerClient
109
119
  # @return true if the model is valid
110
120
  def valid?
111
121
  return false if !@name.nil? && @name.to_s.length < 1
112
- return false if !@description.nil? && @description.to_s.length < 1
113
122
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
123
+ return false if !@description.nil? && @description.to_s.length < 1
114
124
  true
115
125
  end
116
126
 
@@ -124,16 +134,6 @@ module PulpContainerClient
124
134
  @name = name
125
135
  end
126
136
 
127
- # Custom attribute writer method with validation
128
- # @param [Object] description Value to be assigned
129
- def description=(description)
130
- if !description.nil? && description.to_s.length < 1
131
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
132
- end
133
-
134
- @description = description
135
- end
136
-
137
137
  # Custom attribute writer method with validation
138
138
  # @param [Object] retain_repo_versions Value to be assigned
139
139
  def retain_repo_versions=(retain_repo_versions)
@@ -144,15 +144,26 @@ module PulpContainerClient
144
144
  @retain_repo_versions = retain_repo_versions
145
145
  end
146
146
 
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] description Value to be assigned
149
+ def description=(description)
150
+ if !description.nil? && description.to_s.length < 1
151
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
152
+ end
153
+
154
+ @description = description
155
+ end
156
+
147
157
  # Checks equality by comparing each attribute.
148
158
  # @param [Object] Object to be compared
149
159
  def ==(o)
150
160
  return true if self.equal?(o)
151
161
  self.class == o.class &&
162
+ manifest_signing_service == o.manifest_signing_service &&
163
+ pulp_labels == o.pulp_labels &&
152
164
  name == o.name &&
153
- description == o.description &&
154
165
  retain_repo_versions == o.retain_repo_versions &&
155
- pulp_labels == o.pulp_labels
166
+ description == o.description
156
167
  end
157
168
 
158
169
  # @see the `==` method
@@ -164,7 +175,7 @@ module PulpContainerClient
164
175
  # Calculates hash code according to all attributes.
165
176
  # @return [Integer] Hash code
166
177
  def hash
167
- [name, description, retain_repo_versions, pulp_labels].hash
178
+ [manifest_signing_service, pulp_labels, name, retain_repo_versions, description].hash
168
179
  end
169
180
 
170
181
  # Builds the object from hash