pulp_python_client 3.11.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -10
  3. data/docs/ContentPackagesApi.md +14 -12
  4. data/docs/DistributionsPypiApi.md +232 -0
  5. data/docs/MyPermissionsResponse.md +17 -0
  6. data/docs/NestedRole.md +21 -0
  7. data/docs/NestedRoleResponse.md +21 -0
  8. data/docs/ObjectRolesResponse.md +17 -0
  9. data/docs/PackageMetadataResponse.md +3 -3
  10. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  11. data/docs/PaginatedpythonPythonDistributionResponseList.md +2 -2
  12. data/docs/PaginatedpythonPythonPackageContentResponseList.md +2 -2
  13. data/docs/PaginatedpythonPythonPublicationResponseList.md +2 -2
  14. data/docs/PaginatedpythonPythonRemoteResponseList.md +2 -2
  15. data/docs/PaginatedpythonPythonRepositoryResponseList.md +2 -2
  16. data/docs/PublicationsPypiApi.md +232 -0
  17. data/docs/PypiApi.md +7 -1
  18. data/docs/PypiMetadataApi.md +7 -1
  19. data/docs/PythonPythonDistributionResponse.md +2 -0
  20. data/docs/PythonPythonPackageContent.md +6 -6
  21. data/docs/PythonPythonPackageContentResponse.md +8 -6
  22. data/docs/PythonPythonPublicationResponse.md +2 -0
  23. data/docs/PythonPythonRemoteResponse.md +2 -2
  24. data/docs/PythonPythonRemoteResponseHiddenFields.md +2 -2
  25. data/docs/PythonPythonRepositoryResponse.md +2 -0
  26. data/docs/RemotesPythonApi.md +232 -0
  27. data/docs/RepositoriesPythonApi.md +232 -0
  28. data/docs/RepositoryVersionResponse.md +2 -0
  29. data/lib/pulp_python_client/api/content_packages_api.rb +15 -12
  30. data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -0
  31. data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -0
  32. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  33. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  34. data/lib/pulp_python_client/api/remotes_python_api.rb +276 -0
  35. data/lib/pulp_python_client/api/repositories_python_api.rb +276 -0
  36. data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
  37. data/lib/pulp_python_client/models/nested_role.rb +253 -0
  38. data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
  39. data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
  40. data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
  41. data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
  42. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +10 -0
  43. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +10 -0
  44. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +10 -0
  45. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +10 -0
  46. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +10 -0
  47. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +10 -0
  48. data/lib/pulp_python_client/models/python_python_distribution_response.rb +11 -1
  49. data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
  50. data/lib/pulp_python_client/models/python_python_package_content_response.rb +17 -7
  51. data/lib/pulp_python_client/models/python_python_publication_response.rb +11 -1
  52. data/lib/pulp_python_client/models/python_python_remote_response.rb +11 -11
  53. data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +10 -0
  54. data/lib/pulp_python_client/models/python_python_repository_response.rb +11 -1
  55. data/lib/pulp_python_client/models/repository_version_response.rb +11 -1
  56. data/lib/pulp_python_client/version.rb +1 -1
  57. data/lib/pulp_python_client.rb +4 -0
  58. data/spec/api/content_packages_api_spec.rb +7 -6
  59. data/spec/api/distributions_pypi_api_spec.rb +54 -0
  60. data/spec/api/publications_pypi_api_spec.rb +54 -0
  61. data/spec/api/remotes_python_api_spec.rb +54 -0
  62. data/spec/api/repositories_python_api_spec.rb +54 -0
  63. data/spec/models/my_permissions_response_spec.rb +41 -0
  64. data/spec/models/nested_role_response_spec.rb +53 -0
  65. data/spec/models/nested_role_spec.rb +53 -0
  66. data/spec/models/object_roles_response_spec.rb +41 -0
  67. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  68. data/spec/models/python_python_package_content_response_spec.rb +6 -0
  69. data/spec/models/python_python_publication_response_spec.rb +6 -0
  70. data/spec/models/python_python_remote_response_spec.rb +6 -6
  71. data/spec/models/python_python_repository_response_spec.rb +6 -0
  72. data/spec/models/repository_version_response_spec.rb +6 -0
  73. metadata +52 -36
@@ -0,0 +1,213 @@
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 PulpPythonClient
16
+ class ObjectRolesResponse
17
+ attr_accessor :roles
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'roles' => :'roles'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'roles' => :'Array<NestedRoleResponse>'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpPythonClient::ObjectRolesResponse` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpPythonClient::ObjectRolesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'roles')
55
+ if (value = attributes[:'roles']).is_a?(Array)
56
+ self.roles = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @roles.nil?
66
+ invalid_properties.push('invalid value for "roles", roles cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @roles.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ roles == o.roles
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [roles].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ PulpPythonClient.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end
@@ -40,9 +40,9 @@ module PulpPythonClient
40
40
  def self.openapi_types
41
41
  {
42
42
  :'last_serial' => :'Integer',
43
- :'info' => :'Object',
44
- :'releases' => :'Object',
45
- :'urls' => :'Object'
43
+ :'info' => :'AnyType',
44
+ :'releases' => :'AnyType',
45
+ :'urls' => :'AnyType'
46
46
  }
47
47
  end
48
48
 
@@ -42,6 +42,8 @@ module PulpPythonClient
42
42
  # List of attributes with nullable: true
43
43
  def self.openapi_nullable
44
44
  Set.new([
45
+ :'session',
46
+ :'task_start_time'
45
47
  ])
46
48
  end
47
49
 
@@ -77,27 +79,17 @@ module PulpPythonClient
77
79
  # @return Array for valid properties with the reasons
78
80
  def list_invalid_properties
79
81
  invalid_properties = Array.new
80
- if @session.nil?
81
- invalid_properties.push('invalid value for "session", session cannot be nil.')
82
- end
83
-
84
82
  if @task.nil?
85
83
  invalid_properties.push('invalid value for "task", task cannot be nil.')
86
84
  end
87
85
 
88
- if @task_start_time.nil?
89
- invalid_properties.push('invalid value for "task_start_time", task_start_time cannot be nil.')
90
- end
91
-
92
86
  invalid_properties
93
87
  end
94
88
 
95
89
  # Check to see if the all the properties in the model are valid
96
90
  # @return true if the model is valid
97
91
  def valid?
98
- return false if @session.nil?
99
92
  return false if @task.nil?
100
- return false if @task_start_time.nil?
101
93
  true
102
94
  end
103
95
 
@@ -88,12 +88,22 @@ module PulpPythonClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpPythonClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpPythonClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpPythonClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpPythonClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpPythonClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -20,6 +20,9 @@ module PulpPythonClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
27
  attr_accessor :base_path
25
28
 
@@ -53,6 +56,7 @@ module PulpPythonClient
53
56
  {
54
57
  :'pulp_href' => :'pulp_href',
55
58
  :'pulp_created' => :'pulp_created',
59
+ :'pulp_last_updated' => :'pulp_last_updated',
56
60
  :'base_path' => :'base_path',
57
61
  :'base_url' => :'base_url',
58
62
  :'content_guard' => :'content_guard',
@@ -71,6 +75,7 @@ module PulpPythonClient
71
75
  {
72
76
  :'pulp_href' => :'String',
73
77
  :'pulp_created' => :'DateTime',
78
+ :'pulp_last_updated' => :'DateTime',
74
79
  :'base_path' => :'String',
75
80
  :'base_url' => :'String',
76
81
  :'content_guard' => :'String',
@@ -117,6 +122,10 @@ module PulpPythonClient
117
122
  self.pulp_created = attributes[:'pulp_created']
118
123
  end
119
124
 
125
+ if attributes.key?(:'pulp_last_updated')
126
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
127
+ end
128
+
120
129
  if attributes.key?(:'base_path')
121
130
  self.base_path = attributes[:'base_path']
122
131
  end
@@ -194,6 +203,7 @@ module PulpPythonClient
194
203
  self.class == o.class &&
195
204
  pulp_href == o.pulp_href &&
196
205
  pulp_created == o.pulp_created &&
206
+ pulp_last_updated == o.pulp_last_updated &&
197
207
  base_path == o.base_path &&
198
208
  base_url == o.base_url &&
199
209
  content_guard == o.content_guard &&
@@ -215,7 +225,7 @@ module PulpPythonClient
215
225
  # Calculates hash code according to all attributes.
216
226
  # @return [Integer] Hash code
217
227
  def hash
218
- [pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
228
+ [pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication, allow_uploads, remote].hash
219
229
  end
220
230
 
221
231
  # Builds the object from hash
@@ -151,14 +151,14 @@ module PulpPythonClient
151
151
  :'license' => :'String',
152
152
  :'requires_python' => :'String',
153
153
  :'project_url' => :'String',
154
- :'project_urls' => :'Object',
154
+ :'project_urls' => :'AnyType',
155
155
  :'platform' => :'String',
156
156
  :'supported_platform' => :'String',
157
- :'requires_dist' => :'Object',
158
- :'provides_dist' => :'Object',
159
- :'obsoletes_dist' => :'Object',
160
- :'requires_external' => :'Object',
161
- :'classifiers' => :'Object'
157
+ :'requires_dist' => :'AnyType',
158
+ :'provides_dist' => :'AnyType',
159
+ :'obsoletes_dist' => :'AnyType',
160
+ :'requires_external' => :'AnyType',
161
+ :'classifiers' => :'AnyType'
162
162
  }
163
163
  end
164
164
 
@@ -20,6 +20,9 @@ module PulpPythonClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # Artifact file representing the physical content
24
27
  attr_accessor :artifact
25
28
 
@@ -109,6 +112,7 @@ module PulpPythonClient
109
112
  {
110
113
  :'pulp_href' => :'pulp_href',
111
114
  :'pulp_created' => :'pulp_created',
115
+ :'pulp_last_updated' => :'pulp_last_updated',
112
116
  :'artifact' => :'artifact',
113
117
  :'filename' => :'filename',
114
118
  :'packagetype' => :'packagetype',
@@ -145,6 +149,7 @@ module PulpPythonClient
145
149
  {
146
150
  :'pulp_href' => :'String',
147
151
  :'pulp_created' => :'DateTime',
152
+ :'pulp_last_updated' => :'DateTime',
148
153
  :'artifact' => :'String',
149
154
  :'filename' => :'String',
150
155
  :'packagetype' => :'String',
@@ -165,14 +170,14 @@ module PulpPythonClient
165
170
  :'license' => :'String',
166
171
  :'requires_python' => :'String',
167
172
  :'project_url' => :'String',
168
- :'project_urls' => :'Object',
173
+ :'project_urls' => :'AnyType',
169
174
  :'platform' => :'String',
170
175
  :'supported_platform' => :'String',
171
- :'requires_dist' => :'Object',
172
- :'provides_dist' => :'Object',
173
- :'obsoletes_dist' => :'Object',
174
- :'requires_external' => :'Object',
175
- :'classifiers' => :'Object'
176
+ :'requires_dist' => :'AnyType',
177
+ :'provides_dist' => :'AnyType',
178
+ :'obsoletes_dist' => :'AnyType',
179
+ :'requires_external' => :'AnyType',
180
+ :'classifiers' => :'AnyType'
176
181
  }
177
182
  end
178
183
 
@@ -205,6 +210,10 @@ module PulpPythonClient
205
210
  self.pulp_created = attributes[:'pulp_created']
206
211
  end
207
212
 
213
+ if attributes.key?(:'pulp_last_updated')
214
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
215
+ end
216
+
208
217
  if attributes.key?(:'artifact')
209
218
  self.artifact = attributes[:'artifact']
210
219
  end
@@ -340,6 +349,7 @@ module PulpPythonClient
340
349
  self.class == o.class &&
341
350
  pulp_href == o.pulp_href &&
342
351
  pulp_created == o.pulp_created &&
352
+ pulp_last_updated == o.pulp_last_updated &&
343
353
  artifact == o.artifact &&
344
354
  filename == o.filename &&
345
355
  packagetype == o.packagetype &&
@@ -379,7 +389,7 @@ module PulpPythonClient
379
389
  # Calculates hash code according to all attributes.
380
390
  # @return [Integer] Hash code
381
391
  def hash
382
- [pulp_href, pulp_created, artifact, filename, packagetype, name, version, sha256, metadata_version, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
392
+ [pulp_href, pulp_created, pulp_last_updated, artifact, filename, packagetype, name, version, sha256, metadata_version, summary, description, description_content_type, keywords, home_page, download_url, author, author_email, maintainer, maintainer_email, license, requires_python, project_url, project_urls, platform, supported_platform, requires_dist, provides_dist, obsoletes_dist, requires_external, classifiers].hash
383
393
  end
384
394
 
385
395
  # Builds the object from hash
@@ -20,6 +20,9 @@ module PulpPythonClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  attr_accessor :repository_version
24
27
 
25
28
  # A URI of the repository to be published.
@@ -33,6 +36,7 @@ module PulpPythonClient
33
36
  {
34
37
  :'pulp_href' => :'pulp_href',
35
38
  :'pulp_created' => :'pulp_created',
39
+ :'pulp_last_updated' => :'pulp_last_updated',
36
40
  :'repository_version' => :'repository_version',
37
41
  :'repository' => :'repository',
38
42
  :'distributions' => :'distributions'
@@ -44,6 +48,7 @@ module PulpPythonClient
44
48
  {
45
49
  :'pulp_href' => :'String',
46
50
  :'pulp_created' => :'DateTime',
51
+ :'pulp_last_updated' => :'DateTime',
47
52
  :'repository_version' => :'String',
48
53
  :'repository' => :'String',
49
54
  :'distributions' => :'Array<String>'
@@ -79,6 +84,10 @@ module PulpPythonClient
79
84
  self.pulp_created = attributes[:'pulp_created']
80
85
  end
81
86
 
87
+ if attributes.key?(:'pulp_last_updated')
88
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
89
+ end
90
+
82
91
  if attributes.key?(:'repository_version')
83
92
  self.repository_version = attributes[:'repository_version']
84
93
  end
@@ -114,6 +123,7 @@ module PulpPythonClient
114
123
  self.class == o.class &&
115
124
  pulp_href == o.pulp_href &&
116
125
  pulp_created == o.pulp_created &&
126
+ pulp_last_updated == o.pulp_last_updated &&
117
127
  repository_version == o.repository_version &&
118
128
  repository == o.repository &&
119
129
  distributions == o.distributions
@@ -128,7 +138,7 @@ module PulpPythonClient
128
138
  # Calculates hash code according to all attributes.
129
139
  # @return [Integer] Hash code
130
140
  def hash
131
- [pulp_href, pulp_created, repository_version, repository, distributions].hash
141
+ [pulp_href, pulp_created, pulp_last_updated, repository_version, repository, distributions].hash
132
142
  end
133
143
 
134
144
  # Builds the object from hash