pulp_ansible_client 0.17.3 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -4
  3. data/docs/AnsibleCollectionVersion.md +4 -4
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionVersionSignature.md +3 -3
  6. data/docs/AnsibleGitRemote.md +30 -30
  7. data/docs/AnsibleGitRemoteResponse.md +26 -26
  8. data/docs/AnsibleRole.md +2 -0
  9. data/docs/AnsibleRoleResponse.md +4 -4
  10. data/docs/CollectionNamespaceResponse.md +1 -1
  11. data/docs/CollectionResponse.md +5 -3
  12. data/docs/CollectionVersionResponse.md +1 -1
  13. data/docs/CollectionVersionSignatureResponse.md +23 -0
  14. data/docs/ContentCollectionVersionsApi.md +6 -6
  15. data/docs/DistributionsAnsibleApi.md +2 -2
  16. data/docs/PatchedCollection.md +17 -0
  17. data/docs/PatchedansibleGitRemote.md +30 -30
  18. data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -4
  19. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -2
  20. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -4
  21. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -2
  22. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -4
  23. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -2
  24. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -4
  25. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -2
  26. data/docs/RepositoriesAnsibleApi.md +4 -0
  27. data/docs/TaskResponse.md +2 -0
  28. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  29. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  30. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
  31. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -9
  32. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
  33. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -9
  34. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  35. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -9
  36. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
  37. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -9
  38. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  39. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +6 -0
  40. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
  41. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  42. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +11 -11
  43. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +245 -245
  44. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  45. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -1
  46. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  47. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
  48. data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
  49. data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
  50. data/lib/pulp_ansible_client/models/collection_version_signature_response.rb +259 -0
  51. data/lib/pulp_ansible_client/models/patched_collection.rb +207 -0
  52. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +241 -241
  53. data/lib/pulp_ansible_client/models/task_response.rb +11 -1
  54. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
  55. data/lib/pulp_ansible_client/version.rb +1 -1
  56. data/lib/pulp_ansible_client.rb +2 -0
  57. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  58. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  59. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -1
  60. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
  61. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -1
  62. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  63. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -1
  64. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
  65. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -1
  66. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  67. data/spec/api/repositories_ansible_api_spec.rb +2 -0
  68. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  69. data/spec/models/ansible_collection_version_signature_spec.rb +2 -2
  70. data/spec/models/ansible_collection_version_spec.rb +2 -2
  71. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  72. data/spec/models/ansible_git_remote_spec.rb +20 -20
  73. data/spec/models/ansible_role_response_spec.rb +2 -2
  74. data/spec/models/ansible_role_spec.rb +6 -0
  75. data/spec/models/collection_response_spec.rb +6 -0
  76. data/spec/models/collection_version_signature_response_spec.rb +59 -0
  77. data/spec/models/patched_collection_spec.rb +41 -0
  78. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  79. data/spec/models/task_response_spec.rb +6 -0
  80. metadata +138 -130
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # List of hidden (write only) fields
19
- attr_accessor :hidden_fields
20
-
21
- # Headers for aiohttp.Clientsession
22
- attr_accessor :headers
18
+ # Total number of simultaneous connections. If not set then the default value will be used.
19
+ attr_accessor :download_concurrency
23
20
 
24
21
  # A unique name for this remote.
25
22
  attr_accessor :name
26
23
 
27
- # The URL of an external content source.
28
- attr_accessor :url
29
-
30
24
  # Limits requests per second for each concurrent downloader
31
25
  attr_accessor :rate_limit
32
26
 
33
- # Timestamp of the most recent update of the remote.
34
- attr_accessor :pulp_last_updated
27
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
+ attr_accessor :ca_cert
35
29
 
36
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
37
- attr_accessor :max_retries
30
+ # The proxy URL. Format: scheme://host:port
31
+ attr_accessor :proxy_url
38
32
 
39
33
  attr_accessor :pulp_href
40
34
 
41
- # A PEM encoded client certificate used for authentication.
42
- attr_accessor :client_cert
35
+ # Timestamp of the most recent update of the remote.
36
+ attr_accessor :pulp_last_updated
43
37
 
44
- # Timestamp of creation.
45
- attr_accessor :pulp_created
38
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
39
+ attr_accessor :sock_connect_timeout
46
40
 
47
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
48
- attr_accessor :sock_read_timeout
41
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
42
+ attr_accessor :total_timeout
49
43
 
50
- attr_accessor :pulp_labels
44
+ # The URL of an external content source.
45
+ attr_accessor :url
51
46
 
52
- # The proxy URL. Format: scheme://host:port
53
- attr_accessor :proxy_url
47
+ # List of hidden (write only) fields
48
+ attr_accessor :hidden_fields
54
49
 
55
- # If True, TLS peer validation must be performed.
56
- attr_accessor :tls_validation
50
+ attr_accessor :pulp_labels
57
51
 
58
52
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
59
53
  attr_accessor :connect_timeout
60
54
 
61
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
- attr_accessor :total_timeout
55
+ # Timestamp of creation.
56
+ attr_accessor :pulp_created
63
57
 
64
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
65
- attr_accessor :sock_connect_timeout
58
+ # Headers for aiohttp.Clientsession
59
+ attr_accessor :headers
66
60
 
67
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
68
- attr_accessor :ca_cert
61
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
+ attr_accessor :sock_read_timeout
69
63
 
70
- # Total number of simultaneous connections. If not set then the default value will be used.
71
- attr_accessor :download_concurrency
64
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
65
+ attr_accessor :max_retries
66
+
67
+ # If True, TLS peer validation must be performed.
68
+ attr_accessor :tls_validation
69
+
70
+ # A PEM encoded client certificate used for authentication.
71
+ attr_accessor :client_cert
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'hidden_fields' => :'hidden_fields',
83
- :'headers' => :'headers',
82
+ :'download_concurrency' => :'download_concurrency',
84
83
  :'name' => :'name',
85
- :'url' => :'url',
86
84
  :'rate_limit' => :'rate_limit',
87
- :'pulp_last_updated' => :'pulp_last_updated',
88
- :'max_retries' => :'max_retries',
85
+ :'ca_cert' => :'ca_cert',
86
+ :'proxy_url' => :'proxy_url',
89
87
  :'pulp_href' => :'pulp_href',
90
- :'client_cert' => :'client_cert',
88
+ :'pulp_last_updated' => :'pulp_last_updated',
89
+ :'sock_connect_timeout' => :'sock_connect_timeout',
90
+ :'total_timeout' => :'total_timeout',
91
+ :'url' => :'url',
92
+ :'hidden_fields' => :'hidden_fields',
93
+ :'pulp_labels' => :'pulp_labels',
94
+ :'connect_timeout' => :'connect_timeout',
91
95
  :'pulp_created' => :'pulp_created',
96
+ :'headers' => :'headers',
92
97
  :'sock_read_timeout' => :'sock_read_timeout',
93
- :'pulp_labels' => :'pulp_labels',
94
- :'proxy_url' => :'proxy_url',
98
+ :'max_retries' => :'max_retries',
95
99
  :'tls_validation' => :'tls_validation',
96
- :'connect_timeout' => :'connect_timeout',
97
- :'total_timeout' => :'total_timeout',
98
- :'sock_connect_timeout' => :'sock_connect_timeout',
99
- :'ca_cert' => :'ca_cert',
100
- :'download_concurrency' => :'download_concurrency',
100
+ :'client_cert' => :'client_cert',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
110
- :'headers' => :'Array<Object>',
109
+ :'download_concurrency' => :'Integer',
111
110
  :'name' => :'String',
112
- :'url' => :'String',
113
111
  :'rate_limit' => :'Integer',
114
- :'pulp_last_updated' => :'DateTime',
115
- :'max_retries' => :'Integer',
112
+ :'ca_cert' => :'String',
113
+ :'proxy_url' => :'String',
116
114
  :'pulp_href' => :'String',
117
- :'client_cert' => :'String',
115
+ :'pulp_last_updated' => :'DateTime',
116
+ :'sock_connect_timeout' => :'Float',
117
+ :'total_timeout' => :'Float',
118
+ :'url' => :'String',
119
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
120
+ :'pulp_labels' => :'Hash<String, String>',
121
+ :'connect_timeout' => :'Float',
118
122
  :'pulp_created' => :'DateTime',
123
+ :'headers' => :'Array<Object>',
119
124
  :'sock_read_timeout' => :'Float',
120
- :'pulp_labels' => :'Hash<String, String>',
121
- :'proxy_url' => :'String',
125
+ :'max_retries' => :'Integer',
122
126
  :'tls_validation' => :'Boolean',
123
- :'connect_timeout' => :'Float',
124
- :'total_timeout' => :'Float',
125
- :'sock_connect_timeout' => :'Float',
126
- :'ca_cert' => :'String',
127
- :'download_concurrency' => :'Integer',
127
+ :'client_cert' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
+ :'download_concurrency',
136
137
  :'rate_limit',
137
- :'max_retries',
138
- :'client_cert',
139
- :'sock_read_timeout',
138
+ :'ca_cert',
140
139
  :'proxy_url',
141
- :'connect_timeout',
142
- :'total_timeout',
143
140
  :'sock_connect_timeout',
144
- :'ca_cert',
145
- :'download_concurrency',
141
+ :'total_timeout',
142
+ :'connect_timeout',
143
+ :'sock_read_timeout',
144
+ :'max_retries',
145
+ :'client_cert',
146
146
  ])
147
147
  end
148
148
 
@@ -161,52 +161,50 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'hidden_fields')
165
- if (value = attributes[:'hidden_fields']).is_a?(Array)
166
- self.hidden_fields = value
167
- end
168
- end
169
-
170
- if attributes.key?(:'headers')
171
- if (value = attributes[:'headers']).is_a?(Array)
172
- self.headers = value
173
- end
164
+ if attributes.key?(:'download_concurrency')
165
+ self.download_concurrency = attributes[:'download_concurrency']
174
166
  end
175
167
 
176
168
  if attributes.key?(:'name')
177
169
  self.name = attributes[:'name']
178
170
  end
179
171
 
180
- if attributes.key?(:'url')
181
- self.url = attributes[:'url']
182
- end
183
-
184
172
  if attributes.key?(:'rate_limit')
185
173
  self.rate_limit = attributes[:'rate_limit']
186
174
  end
187
175
 
188
- if attributes.key?(:'pulp_last_updated')
189
- self.pulp_last_updated = attributes[:'pulp_last_updated']
176
+ if attributes.key?(:'ca_cert')
177
+ self.ca_cert = attributes[:'ca_cert']
190
178
  end
191
179
 
192
- if attributes.key?(:'max_retries')
193
- self.max_retries = attributes[:'max_retries']
180
+ if attributes.key?(:'proxy_url')
181
+ self.proxy_url = attributes[:'proxy_url']
194
182
  end
195
183
 
196
184
  if attributes.key?(:'pulp_href')
197
185
  self.pulp_href = attributes[:'pulp_href']
198
186
  end
199
187
 
200
- if attributes.key?(:'client_cert')
201
- self.client_cert = attributes[:'client_cert']
188
+ if attributes.key?(:'pulp_last_updated')
189
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
202
190
  end
203
191
 
204
- if attributes.key?(:'pulp_created')
205
- self.pulp_created = attributes[:'pulp_created']
192
+ if attributes.key?(:'sock_connect_timeout')
193
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
206
194
  end
207
195
 
208
- if attributes.key?(:'sock_read_timeout')
209
- self.sock_read_timeout = attributes[:'sock_read_timeout']
196
+ if attributes.key?(:'total_timeout')
197
+ self.total_timeout = attributes[:'total_timeout']
198
+ end
199
+
200
+ if attributes.key?(:'url')
201
+ self.url = attributes[:'url']
202
+ end
203
+
204
+ if attributes.key?(:'hidden_fields')
205
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
206
+ self.hidden_fields = value
207
+ end
210
208
  end
211
209
 
212
210
  if attributes.key?(:'pulp_labels')
@@ -215,32 +213,34 @@ module PulpAnsibleClient
215
213
  end
216
214
  end
217
215
 
218
- if attributes.key?(:'proxy_url')
219
- self.proxy_url = attributes[:'proxy_url']
216
+ if attributes.key?(:'connect_timeout')
217
+ self.connect_timeout = attributes[:'connect_timeout']
220
218
  end
221
219
 
222
- if attributes.key?(:'tls_validation')
223
- self.tls_validation = attributes[:'tls_validation']
220
+ if attributes.key?(:'pulp_created')
221
+ self.pulp_created = attributes[:'pulp_created']
224
222
  end
225
223
 
226
- if attributes.key?(:'connect_timeout')
227
- self.connect_timeout = attributes[:'connect_timeout']
224
+ if attributes.key?(:'headers')
225
+ if (value = attributes[:'headers']).is_a?(Array)
226
+ self.headers = value
227
+ end
228
228
  end
229
229
 
230
- if attributes.key?(:'total_timeout')
231
- self.total_timeout = attributes[:'total_timeout']
230
+ if attributes.key?(:'sock_read_timeout')
231
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
232
232
  end
233
233
 
234
- if attributes.key?(:'sock_connect_timeout')
235
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
234
+ if attributes.key?(:'max_retries')
235
+ self.max_retries = attributes[:'max_retries']
236
236
  end
237
237
 
238
- if attributes.key?(:'ca_cert')
239
- self.ca_cert = attributes[:'ca_cert']
238
+ if attributes.key?(:'tls_validation')
239
+ self.tls_validation = attributes[:'tls_validation']
240
240
  end
241
241
 
242
- if attributes.key?(:'download_concurrency')
243
- self.download_concurrency = attributes[:'download_concurrency']
242
+ if attributes.key?(:'client_cert')
243
+ self.client_cert = attributes[:'client_cert']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,32 +256,32 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if @name.nil?
260
- invalid_properties.push('invalid value for "name", name cannot be nil.')
261
- end
262
-
263
- if @url.nil?
264
- invalid_properties.push('invalid value for "url", url cannot be nil.')
259
+ if !@download_concurrency.nil? && @download_concurrency < 1
260
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
265
261
  end
266
262
 
267
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
268
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
263
+ if @name.nil?
264
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
269
265
  end
270
266
 
271
- if !@connect_timeout.nil? && @connect_timeout < 0.0
272
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
267
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
273
269
  end
274
270
 
275
271
  if !@total_timeout.nil? && @total_timeout < 0.0
276
272
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
277
273
  end
278
274
 
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
275
+ if @url.nil?
276
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
281
277
  end
282
278
 
283
- if !@download_concurrency.nil? && @download_concurrency < 1
284
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
279
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
280
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
281
+ end
282
+
283
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,34 +290,34 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
293
294
  return false if @name.nil?
295
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
294
297
  return false if @url.nil?
295
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
298
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
- return false if !@total_timeout.nil? && @total_timeout < 0.0
298
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
- return false if !@download_concurrency.nil? && @download_concurrency < 1
299
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] sock_read_timeout Value to be assigned
305
- def sock_read_timeout=(sock_read_timeout)
306
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
304
+ # @param [Object] download_concurrency Value to be assigned
305
+ def download_concurrency=(download_concurrency)
306
+ if !download_concurrency.nil? && download_concurrency < 1
307
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
308
308
  end
309
309
 
310
- @sock_read_timeout = sock_read_timeout
310
+ @download_concurrency = download_concurrency
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] connect_timeout Value to be assigned
315
- def connect_timeout=(connect_timeout)
316
- if !connect_timeout.nil? && connect_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
314
+ # @param [Object] sock_connect_timeout Value to be assigned
315
+ def sock_connect_timeout=(sock_connect_timeout)
316
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
- @connect_timeout = connect_timeout
320
+ @sock_connect_timeout = sock_connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
@@ -331,23 +331,23 @@ module PulpAnsibleClient
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] sock_connect_timeout Value to be assigned
335
- def sock_connect_timeout=(sock_connect_timeout)
336
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
334
+ # @param [Object] connect_timeout Value to be assigned
335
+ def connect_timeout=(connect_timeout)
336
+ if !connect_timeout.nil? && connect_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
338
338
  end
339
339
 
340
- @sock_connect_timeout = sock_connect_timeout
340
+ @connect_timeout = connect_timeout
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] download_concurrency Value to be assigned
345
- def download_concurrency=(download_concurrency)
346
- if !download_concurrency.nil? && download_concurrency < 1
347
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
344
+ # @param [Object] sock_read_timeout Value to be assigned
345
+ def sock_read_timeout=(sock_read_timeout)
346
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
348
348
  end
349
349
 
350
- @download_concurrency = download_concurrency
350
+ @sock_read_timeout = sock_read_timeout
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- hidden_fields == o.hidden_fields &&
359
- headers == o.headers &&
358
+ download_concurrency == o.download_concurrency &&
360
359
  name == o.name &&
361
- url == o.url &&
362
360
  rate_limit == o.rate_limit &&
363
- pulp_last_updated == o.pulp_last_updated &&
364
- max_retries == o.max_retries &&
361
+ ca_cert == o.ca_cert &&
362
+ proxy_url == o.proxy_url &&
365
363
  pulp_href == o.pulp_href &&
366
- client_cert == o.client_cert &&
364
+ pulp_last_updated == o.pulp_last_updated &&
365
+ sock_connect_timeout == o.sock_connect_timeout &&
366
+ total_timeout == o.total_timeout &&
367
+ url == o.url &&
368
+ hidden_fields == o.hidden_fields &&
369
+ pulp_labels == o.pulp_labels &&
370
+ connect_timeout == o.connect_timeout &&
367
371
  pulp_created == o.pulp_created &&
372
+ headers == o.headers &&
368
373
  sock_read_timeout == o.sock_read_timeout &&
369
- pulp_labels == o.pulp_labels &&
370
- proxy_url == o.proxy_url &&
374
+ max_retries == o.max_retries &&
371
375
  tls_validation == o.tls_validation &&
372
- connect_timeout == o.connect_timeout &&
373
- total_timeout == o.total_timeout &&
374
- sock_connect_timeout == o.sock_connect_timeout &&
375
- ca_cert == o.ca_cert &&
376
- download_concurrency == o.download_concurrency &&
376
+ client_cert == o.client_cert &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [hidden_fields, headers, name, url, rate_limit, pulp_last_updated, max_retries, pulp_href, client_cert, pulp_created, sock_read_timeout, pulp_labels, proxy_url, tls_validation, connect_timeout, total_timeout, sock_connect_timeout, ca_cert, download_concurrency, metadata_only, git_ref].hash
390
+ [download_concurrency, name, rate_limit, ca_cert, proxy_url, pulp_href, pulp_last_updated, sock_connect_timeout, total_timeout, url, hidden_fields, pulp_labels, connect_timeout, pulp_created, headers, sock_read_timeout, max_retries, tls_validation, client_cert, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -18,6 +18,9 @@ module PulpAnsibleClient
18
18
  # Artifact file representing the physical content
19
19
  attr_accessor :artifact
20
20
 
21
+ # A URI of a repository the new content unit should be associated with.
22
+ attr_accessor :repository
23
+
21
24
  attr_accessor :version
22
25
 
23
26
  attr_accessor :name
@@ -28,6 +31,7 @@ module PulpAnsibleClient
28
31
  def self.attribute_map
29
32
  {
30
33
  :'artifact' => :'artifact',
34
+ :'repository' => :'repository',
31
35
  :'version' => :'version',
32
36
  :'name' => :'name',
33
37
  :'namespace' => :'namespace'
@@ -38,6 +42,7 @@ module PulpAnsibleClient
38
42
  def self.openapi_types
39
43
  {
40
44
  :'artifact' => :'String',
45
+ :'repository' => :'String',
41
46
  :'version' => :'String',
42
47
  :'name' => :'String',
43
48
  :'namespace' => :'String'
@@ -69,6 +74,10 @@ module PulpAnsibleClient
69
74
  self.artifact = attributes[:'artifact']
70
75
  end
71
76
 
77
+ if attributes.key?(:'repository')
78
+ self.repository = attributes[:'repository']
79
+ end
80
+
72
81
  if attributes.key?(:'version')
73
82
  self.version = attributes[:'version']
74
83
  end
@@ -178,6 +187,7 @@ module PulpAnsibleClient
178
187
  return true if self.equal?(o)
179
188
  self.class == o.class &&
180
189
  artifact == o.artifact &&
190
+ repository == o.repository &&
181
191
  version == o.version &&
182
192
  name == o.name &&
183
193
  namespace == o.namespace
@@ -192,7 +202,7 @@ module PulpAnsibleClient
192
202
  # Calculates hash code according to all attributes.
193
203
  # @return [Integer] Hash code
194
204
  def hash
195
- [artifact, version, name, namespace].hash
205
+ [artifact, repository, version, name, namespace].hash
196
206
  end
197
207
 
198
208
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- attr_accessor :pulp_href
18
+ # Artifact file representing the physical content
19
+ attr_accessor :artifact
19
20
 
20
21
  # Timestamp of creation.
21
22
  attr_accessor :pulp_created
22
23
 
23
- # Artifact file representing the physical content
24
- attr_accessor :artifact
24
+ attr_accessor :pulp_href
25
25
 
26
26
  attr_accessor :version
27
27
 
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'pulp_href' => :'pulp_href',
36
- :'pulp_created' => :'pulp_created',
37
35
  :'artifact' => :'artifact',
36
+ :'pulp_created' => :'pulp_created',
37
+ :'pulp_href' => :'pulp_href',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'pulp_href' => :'String',
48
- :'pulp_created' => :'DateTime',
49
47
  :'artifact' => :'String',
48
+ :'pulp_created' => :'DateTime',
49
+ :'pulp_href' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,16 +74,16 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'pulp_href')
78
- self.pulp_href = attributes[:'pulp_href']
77
+ if attributes.key?(:'artifact')
78
+ self.artifact = attributes[:'artifact']
79
79
  end
80
80
 
81
81
  if attributes.key?(:'pulp_created')
82
82
  self.pulp_created = attributes[:'pulp_created']
83
83
  end
84
84
 
85
- if attributes.key?(:'artifact')
86
- self.artifact = attributes[:'artifact']
85
+ if attributes.key?(:'pulp_href')
86
+ self.pulp_href = attributes[:'pulp_href']
87
87
  end
88
88
 
89
89
  if attributes.key?(:'version')
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- pulp_href == o.pulp_href &&
141
- pulp_created == o.pulp_created &&
142
140
  artifact == o.artifact &&
141
+ pulp_created == o.pulp_created &&
142
+ pulp_href == o.pulp_href &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [pulp_href, pulp_created, artifact, version, name, namespace].hash
157
+ [artifact, pulp_created, pulp_href, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -38,6 +38,7 @@ module PulpAnsibleClient
38
38
  # List of attributes with nullable: true
39
39
  def self.openapi_nullable
40
40
  Set.new([
41
+ :'metadata_sha256'
41
42
  ])
42
43
  end
43
44