pulp_ansible_client 0.18.1 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -7
  3. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  5. data/docs/AnsibleCollectionVersion.md +5 -5
  6. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  7. data/docs/AnsibleGitRemote.md +26 -26
  8. data/docs/AnsibleGitRemoteResponse.md +26 -26
  9. data/docs/AnsibleRole.md +3 -3
  10. data/docs/AnsibleRoleResponse.md +3 -3
  11. data/docs/CollectionNamespaceResponse.md +1 -1
  12. data/docs/CollectionResponse.md +5 -3
  13. data/docs/CollectionVersionListResponse.md +1 -1
  14. data/docs/CollectionVersionResponse.md +2 -2
  15. data/docs/CollectionVersionSignatureResponse.md +23 -0
  16. data/docs/ContentCollectionVersionsApi.md +6 -6
  17. data/docs/PatchedCollection.md +17 -0
  18. data/docs/PatchedansibleGitRemote.md +26 -26
  19. data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -4
  20. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -2
  21. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -4
  22. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -2
  23. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -4
  24. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -2
  25. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -4
  26. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -2
  27. data/docs/UnpaginatedCollectionVersionResponse.md +2 -2
  28. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  29. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -9
  30. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
  31. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -9
  32. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  33. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -9
  34. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
  35. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -9
  36. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  37. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
  38. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
  39. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  40. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  41. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +242 -242
  42. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
  43. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  44. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  45. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
  46. data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
  47. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +24 -0
  48. data/lib/pulp_ansible_client/models/collection_version_response.rb +33 -2
  49. data/lib/pulp_ansible_client/models/{task.rb → collection_version_signature_response.rb} +49 -56
  50. data/lib/pulp_ansible_client/models/{progress_report_response.rb → patched_collection.rb} +11 -63
  51. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +229 -229
  52. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +33 -2
  53. data/lib/pulp_ansible_client/version.rb +1 -1
  54. data/lib/pulp_ansible_client.rb +2 -3
  55. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  56. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -1
  57. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
  58. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -1
  59. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  60. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -1
  61. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
  62. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -1
  63. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  64. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  65. data/spec/models/ansible_collection_version_spec.rb +3 -3
  66. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  67. data/spec/models/ansible_git_remote_spec.rb +19 -19
  68. data/spec/models/ansible_role_response_spec.rb +3 -3
  69. data/spec/models/ansible_role_spec.rb +2 -2
  70. data/spec/models/collection_response_spec.rb +6 -0
  71. data/spec/models/{progress_report_response_spec.rb → collection_version_signature_response_spec.rb} +10 -22
  72. data/spec/models/{task_spec.rb → patched_collection_spec.rb} +7 -13
  73. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  74. metadata +10 -14
  75. data/docs/ProgressReportResponse.md +0 -27
  76. data/docs/Task.md +0 -19
  77. data/docs/TaskResponse.md +0 -47
  78. data/lib/pulp_ansible_client/models/task_response.rb +0 -376
  79. data/spec/models/task_response_spec.rb +0 -131
@@ -22,7 +22,6 @@ module PulpAnsibleClient
22
22
 
23
23
  attr_accessor :name
24
24
 
25
- # Get deprecated.
26
25
  attr_accessor :deprecated
27
26
 
28
27
  # Get a link to a collection versions list.
@@ -34,9 +33,11 @@ module PulpAnsibleClient
34
33
  # Get the timestamp of the lowest version CollectionVersion's created timestamp.
35
34
  attr_accessor :created_at
36
35
 
37
- # Get the timestamp of the highest version CollectionVersion's created timestamp.
36
+ # Get the timestamp of the latest version CollectionVersion's created timestamp.
38
37
  attr_accessor :updated_at
39
38
 
39
+ attr_accessor :download_count
40
+
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
41
42
  def self.attribute_map
42
43
  {
@@ -47,7 +48,8 @@ module PulpAnsibleClient
47
48
  :'versions_url' => :'versions_url',
48
49
  :'highest_version' => :'highest_version',
49
50
  :'created_at' => :'created_at',
50
- :'updated_at' => :'updated_at'
51
+ :'updated_at' => :'updated_at',
52
+ :'download_count' => :'download_count'
51
53
  }
52
54
  end
53
55
 
@@ -61,7 +63,8 @@ module PulpAnsibleClient
61
63
  :'versions_url' => :'String',
62
64
  :'highest_version' => :'Object',
63
65
  :'created_at' => :'DateTime',
64
- :'updated_at' => :'DateTime'
66
+ :'updated_at' => :'DateTime',
67
+ :'download_count' => :'String'
65
68
  }
66
69
  end
67
70
 
@@ -117,18 +120,27 @@ module PulpAnsibleClient
117
120
  if attributes.key?(:'updated_at')
118
121
  self.updated_at = attributes[:'updated_at']
119
122
  end
123
+
124
+ if attributes.key?(:'download_count')
125
+ self.download_count = attributes[:'download_count']
126
+ end
120
127
  end
121
128
 
122
129
  # Show invalid properties with the reasons. Usually used together with valid?
123
130
  # @return Array for valid properties with the reasons
124
131
  def list_invalid_properties
125
132
  invalid_properties = Array.new
133
+ if @deprecated.nil?
134
+ invalid_properties.push('invalid value for "deprecated", deprecated cannot be nil.')
135
+ end
136
+
126
137
  invalid_properties
127
138
  end
128
139
 
129
140
  # Check to see if the all the properties in the model are valid
130
141
  # @return true if the model is valid
131
142
  def valid?
143
+ return false if @deprecated.nil?
132
144
  true
133
145
  end
134
146
 
@@ -144,7 +156,8 @@ module PulpAnsibleClient
144
156
  versions_url == o.versions_url &&
145
157
  highest_version == o.highest_version &&
146
158
  created_at == o.created_at &&
147
- updated_at == o.updated_at
159
+ updated_at == o.updated_at &&
160
+ download_count == o.download_count
148
161
  end
149
162
 
150
163
  # @see the `==` method
@@ -156,7 +169,7 @@ module PulpAnsibleClient
156
169
  # Calculates hash code according to all attributes.
157
170
  # @return [Integer] Hash code
158
171
  def hash
159
- [href, namespace, name, deprecated, versions_url, highest_version, created_at, updated_at].hash
172
+ [href, namespace, name, deprecated, versions_url, highest_version, created_at, updated_at, download_count].hash
160
173
  end
161
174
 
162
175
  # Builds the object from hash
@@ -106,6 +106,14 @@ module PulpAnsibleClient
106
106
  # @return Array for valid properties with the reasons
107
107
  def list_invalid_properties
108
108
  invalid_properties = Array.new
109
+ if @version.nil?
110
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
111
+ end
112
+
113
+ if @version.to_s.length > 128
114
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
115
+ end
116
+
109
117
  if @created_at.nil?
110
118
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
119
  end
@@ -124,12 +132,28 @@ module PulpAnsibleClient
124
132
  # Check to see if the all the properties in the model are valid
125
133
  # @return true if the model is valid
126
134
  def valid?
135
+ return false if @version.nil?
136
+ return false if @version.to_s.length > 128
127
137
  return false if @created_at.nil?
128
138
  return false if @updated_at.nil?
129
139
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
130
140
  true
131
141
  end
132
142
 
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] version Value to be assigned
145
+ def version=(version)
146
+ if version.nil?
147
+ fail ArgumentError, 'version cannot be nil'
148
+ end
149
+
150
+ if version.to_s.length > 128
151
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
152
+ end
153
+
154
+ @version = version
155
+ end
156
+
133
157
  # Custom attribute writer method with validation
134
158
  # @param [Object] requires_ansible Value to be assigned
135
159
  def requires_ansible=(requires_ansible)
@@ -93,7 +93,7 @@ module PulpAnsibleClient
93
93
  :'download_url' => :'String',
94
94
  :'name' => :'String',
95
95
  :'namespace' => :'CollectionNamespaceResponse',
96
- :'signatures' => :'String',
96
+ :'signatures' => :'Array<CollectionVersionSignatureResponse>',
97
97
  :'metadata' => :'CollectionMetadataResponse',
98
98
  :'git_url' => :'String',
99
99
  :'git_commit_sha' => :'String',
@@ -171,7 +171,9 @@ module PulpAnsibleClient
171
171
  end
172
172
 
173
173
  if attributes.key?(:'signatures')
174
- self.signatures = attributes[:'signatures']
174
+ if (value = attributes[:'signatures']).is_a?(Array)
175
+ self.signatures = value
176
+ end
175
177
  end
176
178
 
177
179
  if attributes.key?(:'metadata')
@@ -199,6 +201,14 @@ module PulpAnsibleClient
199
201
  # @return Array for valid properties with the reasons
200
202
  def list_invalid_properties
201
203
  invalid_properties = Array.new
204
+ if @version.nil?
205
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
206
+ end
207
+
208
+ if @version.to_s.length > 128
209
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
210
+ end
211
+
202
212
  if @created_at.nil?
203
213
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
204
214
  end
@@ -211,18 +221,39 @@ module PulpAnsibleClient
211
221
  invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
212
222
  end
213
223
 
224
+ if @signatures.nil?
225
+ invalid_properties.push('invalid value for "signatures", signatures cannot be nil.')
226
+ end
227
+
214
228
  invalid_properties
215
229
  end
216
230
 
217
231
  # Check to see if the all the properties in the model are valid
218
232
  # @return true if the model is valid
219
233
  def valid?
234
+ return false if @version.nil?
235
+ return false if @version.to_s.length > 128
220
236
  return false if @created_at.nil?
221
237
  return false if @updated_at.nil?
222
238
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
239
+ return false if @signatures.nil?
223
240
  true
224
241
  end
225
242
 
243
+ # Custom attribute writer method with validation
244
+ # @param [Object] version Value to be assigned
245
+ def version=(version)
246
+ if version.nil?
247
+ fail ArgumentError, 'version cannot be nil'
248
+ end
249
+
250
+ if version.to_s.length > 128
251
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
252
+ end
253
+
254
+ @version = version
255
+ end
256
+
226
257
  # Custom attribute writer method with validation
227
258
  # @param [Object] requires_ansible Value to be assigned
228
259
  def requires_ansible=(requires_ansible)
@@ -13,33 +13,40 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class Task
18
- # The name of task.
19
- attr_accessor :name
16
+ # A serializer for the signatures on a Collection Version.
17
+ class CollectionVersionSignatureResponse
18
+ attr_accessor :signature
20
19
 
21
- # The logging correlation id associated with this task
22
- attr_accessor :logging_cid
20
+ attr_accessor :pubkey_fingerprint
21
+
22
+ attr_accessor :signing_service
23
+
24
+ attr_accessor :pulp_created
23
25
 
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
27
- :'name' => :'name',
28
- :'logging_cid' => :'logging_cid'
29
+ :'signature' => :'signature',
30
+ :'pubkey_fingerprint' => :'pubkey_fingerprint',
31
+ :'signing_service' => :'signing_service',
32
+ :'pulp_created' => :'pulp_created'
29
33
  }
30
34
  end
31
35
 
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
35
- :'name' => :'String',
36
- :'logging_cid' => :'String'
39
+ :'signature' => :'String',
40
+ :'pubkey_fingerprint' => :'String',
41
+ :'signing_service' => :'String',
42
+ :'pulp_created' => :'DateTime'
37
43
  }
38
44
  end
39
45
 
40
46
  # List of attributes with nullable: true
41
47
  def self.openapi_nullable
42
48
  Set.new([
49
+ :'signing_service',
43
50
  ])
44
51
  end
45
52
 
@@ -47,23 +54,31 @@ module PulpAnsibleClient
47
54
  # @param [Hash] attributes Model attributes in the form of hash
48
55
  def initialize(attributes = {})
49
56
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::Task` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionVersionSignatureResponse` initialize method"
51
58
  end
52
59
 
53
60
  # check to see if the attribute exists and convert string to symbol for hash key
54
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
62
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::Task`. 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 `PulpAnsibleClient::CollectionVersionSignatureResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
64
  end
58
65
  h[k.to_sym] = v
59
66
  }
60
67
 
61
- if attributes.key?(:'name')
62
- self.name = attributes[:'name']
68
+ if attributes.key?(:'signature')
69
+ self.signature = attributes[:'signature']
63
70
  end
64
71
 
65
- if attributes.key?(:'logging_cid')
66
- self.logging_cid = attributes[:'logging_cid']
72
+ if attributes.key?(:'pubkey_fingerprint')
73
+ self.pubkey_fingerprint = attributes[:'pubkey_fingerprint']
74
+ end
75
+
76
+ if attributes.key?(:'signing_service')
77
+ self.signing_service = attributes[:'signing_service']
78
+ end
79
+
80
+ if attributes.key?(:'pulp_created')
81
+ self.pulp_created = attributes[:'pulp_created']
67
82
  end
68
83
  end
69
84
 
@@ -71,20 +86,12 @@ module PulpAnsibleClient
71
86
  # @return Array for valid properties with the reasons
72
87
  def list_invalid_properties
73
88
  invalid_properties = Array.new
74
- if @name.nil?
75
- invalid_properties.push('invalid value for "name", name cannot be nil.')
76
- end
77
-
78
- if @name.to_s.length < 1
79
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
89
+ if @pubkey_fingerprint.nil?
90
+ invalid_properties.push('invalid value for "pubkey_fingerprint", pubkey_fingerprint cannot be nil.')
80
91
  end
81
92
 
82
- if @logging_cid.nil?
83
- invalid_properties.push('invalid value for "logging_cid", logging_cid cannot be nil.')
84
- end
85
-
86
- if @logging_cid.to_s.length < 1
87
- invalid_properties.push('invalid value for "logging_cid", the character length must be great than or equal to 1.')
93
+ if @pubkey_fingerprint.to_s.length > 64
94
+ invalid_properties.push('invalid value for "pubkey_fingerprint", the character length must be smaller than or equal to 64.')
88
95
  end
89
96
 
90
97
  invalid_properties
@@ -93,39 +100,23 @@ module PulpAnsibleClient
93
100
  # Check to see if the all the properties in the model are valid
94
101
  # @return true if the model is valid
95
102
  def valid?
96
- return false if @name.nil?
97
- return false if @name.to_s.length < 1
98
- return false if @logging_cid.nil?
99
- return false if @logging_cid.to_s.length < 1
103
+ return false if @pubkey_fingerprint.nil?
104
+ return false if @pubkey_fingerprint.to_s.length > 64
100
105
  true
101
106
  end
102
107
 
103
108
  # Custom attribute writer method with validation
104
- # @param [Object] name Value to be assigned
105
- def name=(name)
106
- if name.nil?
107
- fail ArgumentError, 'name cannot be nil'
108
- end
109
-
110
- if name.to_s.length < 1
111
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
112
- end
113
-
114
- @name = name
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] logging_cid Value to be assigned
119
- def logging_cid=(logging_cid)
120
- if logging_cid.nil?
121
- fail ArgumentError, 'logging_cid cannot be nil'
109
+ # @param [Object] pubkey_fingerprint Value to be assigned
110
+ def pubkey_fingerprint=(pubkey_fingerprint)
111
+ if pubkey_fingerprint.nil?
112
+ fail ArgumentError, 'pubkey_fingerprint cannot be nil'
122
113
  end
123
114
 
124
- if logging_cid.to_s.length < 1
125
- fail ArgumentError, 'invalid value for "logging_cid", the character length must be great than or equal to 1.'
115
+ if pubkey_fingerprint.to_s.length > 64
116
+ fail ArgumentError, 'invalid value for "pubkey_fingerprint", the character length must be smaller than or equal to 64.'
126
117
  end
127
118
 
128
- @logging_cid = logging_cid
119
+ @pubkey_fingerprint = pubkey_fingerprint
129
120
  end
130
121
 
131
122
  # Checks equality by comparing each attribute.
@@ -133,8 +124,10 @@ module PulpAnsibleClient
133
124
  def ==(o)
134
125
  return true if self.equal?(o)
135
126
  self.class == o.class &&
136
- name == o.name &&
137
- logging_cid == o.logging_cid
127
+ signature == o.signature &&
128
+ pubkey_fingerprint == o.pubkey_fingerprint &&
129
+ signing_service == o.signing_service &&
130
+ pulp_created == o.pulp_created
138
131
  end
139
132
 
140
133
  # @see the `==` method
@@ -146,7 +139,7 @@ module PulpAnsibleClient
146
139
  # Calculates hash code according to all attributes.
147
140
  # @return [Integer] Hash code
148
141
  def hash
149
- [name, logging_cid].hash
142
+ [signature, pubkey_fingerprint, signing_service, pulp_created].hash
150
143
  end
151
144
 
152
145
  # Builds the object from hash
@@ -13,54 +13,27 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class ProgressReportResponse
18
- # The message shown to the user for the progress report.
19
- attr_accessor :message
20
-
21
- # Identifies the type of progress report'.
22
- attr_accessor :code
23
-
24
- # The current state of the progress report. The possible values are: 'waiting', 'skipped', 'running', 'completed', 'failed', 'canceled' and 'canceling'. The default is 'waiting'.
25
- attr_accessor :state
26
-
27
- # The total count of items.
28
- attr_accessor :total
29
-
30
- # The count of items already processed. Defaults to 0.
31
- attr_accessor :done
32
-
33
- # The suffix to be shown with the progress report.
34
- attr_accessor :suffix
16
+ # A serializer for a Collection.
17
+ class PatchedCollection
18
+ attr_accessor :deprecated
35
19
 
36
20
  # Attribute mapping from ruby-style variable name to JSON key.
37
21
  def self.attribute_map
38
22
  {
39
- :'message' => :'message',
40
- :'code' => :'code',
41
- :'state' => :'state',
42
- :'total' => :'total',
43
- :'done' => :'done',
44
- :'suffix' => :'suffix'
23
+ :'deprecated' => :'deprecated'
45
24
  }
46
25
  end
47
26
 
48
27
  # Attribute type mapping.
49
28
  def self.openapi_types
50
29
  {
51
- :'message' => :'String',
52
- :'code' => :'String',
53
- :'state' => :'String',
54
- :'total' => :'Integer',
55
- :'done' => :'Integer',
56
- :'suffix' => :'String'
30
+ :'deprecated' => :'Boolean'
57
31
  }
58
32
  end
59
33
 
60
34
  # List of attributes with nullable: true
61
35
  def self.openapi_nullable
62
36
  Set.new([
63
- :'suffix'
64
37
  ])
65
38
  end
66
39
 
@@ -68,39 +41,19 @@ module PulpAnsibleClient
68
41
  # @param [Hash] attributes Model attributes in the form of hash
69
42
  def initialize(attributes = {})
70
43
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::ProgressReportResponse` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PatchedCollection` initialize method"
72
45
  end
73
46
 
74
47
  # check to see if the attribute exists and convert string to symbol for hash key
75
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
49
  if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::ProgressReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PatchedCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
51
  end
79
52
  h[k.to_sym] = v
80
53
  }
81
54
 
82
- if attributes.key?(:'message')
83
- self.message = attributes[:'message']
84
- end
85
-
86
- if attributes.key?(:'code')
87
- self.code = attributes[:'code']
88
- end
89
-
90
- if attributes.key?(:'state')
91
- self.state = attributes[:'state']
92
- end
93
-
94
- if attributes.key?(:'total')
95
- self.total = attributes[:'total']
96
- end
97
-
98
- if attributes.key?(:'done')
99
- self.done = attributes[:'done']
100
- end
101
-
102
- if attributes.key?(:'suffix')
103
- self.suffix = attributes[:'suffix']
55
+ if attributes.key?(:'deprecated')
56
+ self.deprecated = attributes[:'deprecated']
104
57
  end
105
58
  end
106
59
 
@@ -122,12 +75,7 @@ module PulpAnsibleClient
122
75
  def ==(o)
123
76
  return true if self.equal?(o)
124
77
  self.class == o.class &&
125
- message == o.message &&
126
- code == o.code &&
127
- state == o.state &&
128
- total == o.total &&
129
- done == o.done &&
130
- suffix == o.suffix
78
+ deprecated == o.deprecated
131
79
  end
132
80
 
133
81
  # @see the `==` method
@@ -139,7 +87,7 @@ module PulpAnsibleClient
139
87
  # Calculates hash code according to all attributes.
140
88
  # @return [Integer] Hash code
141
89
  def hash
142
- [message, code, state, total, done, suffix].hash
90
+ [deprecated].hash
143
91
  end
144
92
 
145
93
  # Builds the object from hash