pulp_ansible_client 0.5.0 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +8 -0
  4. data/docs/AnsibleCollectionRemoteResponse.md +8 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  6. data/docs/AnsibleRoleRemote.md +9 -1
  7. data/docs/AnsibleRoleRemoteResponse.md +9 -1
  8. data/docs/AnsibleRoleResponse.md +2 -2
  9. data/docs/PatchedansibleCollectionRemote.md +8 -0
  10. data/docs/PatchedansibleRoleRemote.md +9 -1
  11. data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
  12. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +4 -4
  13. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +105 -1
  14. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +105 -1
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  16. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +108 -4
  17. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +108 -4
  18. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  19. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +105 -1
  20. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +108 -4
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/repositories_ansible_versions_api_spec.rb +2 -2
  23. data/spec/models/ansible_collection_remote_response_spec.rb +24 -0
  24. data/spec/models/ansible_collection_remote_spec.rb +24 -0
  25. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  26. data/spec/models/ansible_role_remote_response_spec.rb +24 -0
  27. data/spec/models/ansible_role_remote_spec.rb +24 -0
  28. data/spec/models/ansible_role_response_spec.rb +2 -2
  29. data/spec/models/patchedansible_collection_remote_spec.rb +24 -0
  30. data/spec/models/patchedansible_role_remote_spec.rb +24 -0
  31. metadata +63 -63
@@ -48,6 +48,18 @@ module PulpAnsibleClient
48
48
  # The policy to use when downloading content.
49
49
  attr_accessor :policy
50
50
 
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
52
+ attr_accessor :total_timeout
53
+
54
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
55
+ attr_accessor :connect_timeout
56
+
57
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
+ attr_accessor :sock_read_timeout
62
+
51
63
  # The string version of Collection requirements yaml.
52
64
  attr_accessor :requirements_file
53
65
 
@@ -71,6 +83,10 @@ module PulpAnsibleClient
71
83
  :'password' => :'password',
72
84
  :'download_concurrency' => :'download_concurrency',
73
85
  :'policy' => :'policy',
86
+ :'total_timeout' => :'total_timeout',
87
+ :'connect_timeout' => :'connect_timeout',
88
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
+ :'sock_read_timeout' => :'sock_read_timeout',
74
90
  :'requirements_file' => :'requirements_file',
75
91
  :'auth_url' => :'auth_url',
76
92
  :'token' => :'token'
@@ -91,6 +107,10 @@ module PulpAnsibleClient
91
107
  :'password' => :'String',
92
108
  :'download_concurrency' => :'Integer',
93
109
  :'policy' => :'PolicyEnum',
110
+ :'total_timeout' => :'Float',
111
+ :'connect_timeout' => :'Float',
112
+ :'sock_connect_timeout' => :'Float',
113
+ :'sock_read_timeout' => :'Float',
94
114
  :'requirements_file' => :'String',
95
115
  :'auth_url' => :'String',
96
116
  :'token' => :'String'
@@ -106,6 +126,10 @@ module PulpAnsibleClient
106
126
  :'proxy_url',
107
127
  :'username',
108
128
  :'password',
129
+ :'total_timeout',
130
+ :'connect_timeout',
131
+ :'sock_connect_timeout',
132
+ :'sock_read_timeout',
109
133
  :'requirements_file',
110
134
  :'auth_url',
111
135
  :'token'
@@ -171,6 +195,22 @@ module PulpAnsibleClient
171
195
  self.policy = attributes[:'policy']
172
196
  end
173
197
 
198
+ if attributes.key?(:'total_timeout')
199
+ self.total_timeout = attributes[:'total_timeout']
200
+ end
201
+
202
+ if attributes.key?(:'connect_timeout')
203
+ self.connect_timeout = attributes[:'connect_timeout']
204
+ end
205
+
206
+ if attributes.key?(:'sock_connect_timeout')
207
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
208
+ end
209
+
210
+ if attributes.key?(:'sock_read_timeout')
211
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
212
+ end
213
+
174
214
  if attributes.key?(:'requirements_file')
175
215
  self.requirements_file = attributes[:'requirements_file']
176
216
  end
@@ -192,6 +232,22 @@ module PulpAnsibleClient
192
232
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
193
233
  end
194
234
 
235
+ if !@total_timeout.nil? && @total_timeout < 0.0
236
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
237
+ end
238
+
239
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
240
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
241
+ end
242
+
243
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
244
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
245
+ end
246
+
247
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
248
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
249
+ end
250
+
195
251
  if !@auth_url.nil? && @auth_url.to_s.length > 255
196
252
  invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
197
253
  end
@@ -207,6 +263,10 @@ module PulpAnsibleClient
207
263
  # @return true if the model is valid
208
264
  def valid?
209
265
  return false if !@download_concurrency.nil? && @download_concurrency < 1
266
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
267
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
268
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
269
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
210
270
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
211
271
  return false if !@token.nil? && @token.to_s.length > 2000
212
272
  true
@@ -222,6 +282,46 @@ module PulpAnsibleClient
222
282
  @download_concurrency = download_concurrency
223
283
  end
224
284
 
285
+ # Custom attribute writer method with validation
286
+ # @param [Object] total_timeout Value to be assigned
287
+ def total_timeout=(total_timeout)
288
+ if !total_timeout.nil? && total_timeout < 0.0
289
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
290
+ end
291
+
292
+ @total_timeout = total_timeout
293
+ end
294
+
295
+ # Custom attribute writer method with validation
296
+ # @param [Object] connect_timeout Value to be assigned
297
+ def connect_timeout=(connect_timeout)
298
+ if !connect_timeout.nil? && connect_timeout < 0.0
299
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
300
+ end
301
+
302
+ @connect_timeout = connect_timeout
303
+ end
304
+
305
+ # Custom attribute writer method with validation
306
+ # @param [Object] sock_connect_timeout Value to be assigned
307
+ def sock_connect_timeout=(sock_connect_timeout)
308
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
309
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
310
+ end
311
+
312
+ @sock_connect_timeout = sock_connect_timeout
313
+ end
314
+
315
+ # Custom attribute writer method with validation
316
+ # @param [Object] sock_read_timeout Value to be assigned
317
+ def sock_read_timeout=(sock_read_timeout)
318
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
319
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
320
+ end
321
+
322
+ @sock_read_timeout = sock_read_timeout
323
+ end
324
+
225
325
  # Custom attribute writer method with validation
226
326
  # @param [Object] auth_url Value to be assigned
227
327
  def auth_url=(auth_url)
@@ -258,6 +358,10 @@ module PulpAnsibleClient
258
358
  password == o.password &&
259
359
  download_concurrency == o.download_concurrency &&
260
360
  policy == o.policy &&
361
+ total_timeout == o.total_timeout &&
362
+ connect_timeout == o.connect_timeout &&
363
+ sock_connect_timeout == o.sock_connect_timeout &&
364
+ sock_read_timeout == o.sock_read_timeout &&
261
365
  requirements_file == o.requirements_file &&
262
366
  auth_url == o.auth_url &&
263
367
  token == o.token
@@ -272,7 +376,7 @@ module PulpAnsibleClient
272
376
  # Calculates hash code according to all attributes.
273
377
  # @return [Integer] Hash code
274
378
  def hash
275
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, requirements_file, auth_url, token].hash
379
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, requirements_file, auth_url, token].hash
276
380
  end
277
381
 
278
382
  # Builds the object from hash
@@ -48,6 +48,18 @@ module PulpAnsibleClient
48
48
  # The policy to use when downloading content.
49
49
  attr_accessor :policy
50
50
 
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
52
+ attr_accessor :total_timeout
53
+
54
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
55
+ attr_accessor :connect_timeout
56
+
57
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
+ attr_accessor :sock_read_timeout
62
+
51
63
  # Attribute mapping from ruby-style variable name to JSON key.
52
64
  def self.attribute_map
53
65
  {
@@ -61,7 +73,11 @@ module PulpAnsibleClient
61
73
  :'username' => :'username',
62
74
  :'password' => :'password',
63
75
  :'download_concurrency' => :'download_concurrency',
64
- :'policy' => :'policy'
76
+ :'policy' => :'policy',
77
+ :'total_timeout' => :'total_timeout',
78
+ :'connect_timeout' => :'connect_timeout',
79
+ :'sock_connect_timeout' => :'sock_connect_timeout',
80
+ :'sock_read_timeout' => :'sock_read_timeout'
65
81
  }
66
82
  end
67
83
 
@@ -78,7 +94,11 @@ module PulpAnsibleClient
78
94
  :'username' => :'String',
79
95
  :'password' => :'String',
80
96
  :'download_concurrency' => :'Integer',
81
- :'policy' => :'PolicyEnum'
97
+ :'policy' => :'PolicyEnum',
98
+ :'total_timeout' => :'Float',
99
+ :'connect_timeout' => :'Float',
100
+ :'sock_connect_timeout' => :'Float',
101
+ :'sock_read_timeout' => :'Float'
82
102
  }
83
103
  end
84
104
 
@@ -91,6 +111,10 @@ module PulpAnsibleClient
91
111
  :'proxy_url',
92
112
  :'username',
93
113
  :'password',
114
+ :'total_timeout',
115
+ :'connect_timeout',
116
+ :'sock_connect_timeout',
117
+ :'sock_read_timeout'
94
118
  ])
95
119
  end
96
120
 
@@ -152,6 +176,22 @@ module PulpAnsibleClient
152
176
  if attributes.key?(:'policy')
153
177
  self.policy = attributes[:'policy']
154
178
  end
179
+
180
+ if attributes.key?(:'total_timeout')
181
+ self.total_timeout = attributes[:'total_timeout']
182
+ end
183
+
184
+ if attributes.key?(:'connect_timeout')
185
+ self.connect_timeout = attributes[:'connect_timeout']
186
+ end
187
+
188
+ if attributes.key?(:'sock_connect_timeout')
189
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
190
+ end
191
+
192
+ if attributes.key?(:'sock_read_timeout')
193
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
194
+ end
155
195
  end
156
196
 
157
197
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -162,6 +202,22 @@ module PulpAnsibleClient
162
202
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
163
203
  end
164
204
 
205
+ if !@total_timeout.nil? && @total_timeout < 0.0
206
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
207
+ end
208
+
209
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
210
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
211
+ end
212
+
213
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
214
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
215
+ end
216
+
217
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
218
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
219
+ end
220
+
165
221
  invalid_properties
166
222
  end
167
223
 
@@ -169,6 +225,10 @@ module PulpAnsibleClient
169
225
  # @return true if the model is valid
170
226
  def valid?
171
227
  return false if !@download_concurrency.nil? && @download_concurrency < 1
228
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
229
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
230
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
231
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
172
232
  true
173
233
  end
174
234
 
@@ -182,6 +242,46 @@ module PulpAnsibleClient
182
242
  @download_concurrency = download_concurrency
183
243
  end
184
244
 
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] total_timeout Value to be assigned
247
+ def total_timeout=(total_timeout)
248
+ if !total_timeout.nil? && total_timeout < 0.0
249
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
250
+ end
251
+
252
+ @total_timeout = total_timeout
253
+ end
254
+
255
+ # Custom attribute writer method with validation
256
+ # @param [Object] connect_timeout Value to be assigned
257
+ def connect_timeout=(connect_timeout)
258
+ if !connect_timeout.nil? && connect_timeout < 0.0
259
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
260
+ end
261
+
262
+ @connect_timeout = connect_timeout
263
+ end
264
+
265
+ # Custom attribute writer method with validation
266
+ # @param [Object] sock_connect_timeout Value to be assigned
267
+ def sock_connect_timeout=(sock_connect_timeout)
268
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
269
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
270
+ end
271
+
272
+ @sock_connect_timeout = sock_connect_timeout
273
+ end
274
+
275
+ # Custom attribute writer method with validation
276
+ # @param [Object] sock_read_timeout Value to be assigned
277
+ def sock_read_timeout=(sock_read_timeout)
278
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
279
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
280
+ end
281
+
282
+ @sock_read_timeout = sock_read_timeout
283
+ end
284
+
185
285
  # Checks equality by comparing each attribute.
186
286
  # @param [Object] Object to be compared
187
287
  def ==(o)
@@ -197,7 +297,11 @@ module PulpAnsibleClient
197
297
  username == o.username &&
198
298
  password == o.password &&
199
299
  download_concurrency == o.download_concurrency &&
200
- policy == o.policy
300
+ policy == o.policy &&
301
+ total_timeout == o.total_timeout &&
302
+ connect_timeout == o.connect_timeout &&
303
+ sock_connect_timeout == o.sock_connect_timeout &&
304
+ sock_read_timeout == o.sock_read_timeout
201
305
  end
202
306
 
203
307
  # @see the `==` method
@@ -209,7 +313,7 @@ module PulpAnsibleClient
209
313
  # Calculates hash code according to all attributes.
210
314
  # @return [Integer] Hash code
211
315
  def hash
212
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy].hash
316
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
213
317
  end
214
318
 
215
319
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.5.0'
14
+ VERSION = '0.5.5'
15
15
  end
@@ -34,7 +34,7 @@ describe 'RepositoriesAnsibleVersionsApi' do
34
34
 
35
35
  # unit tests for delete
36
36
  # Delete a repository version
37
- # Trigger an asynchronous task to delete a repositroy version.
37
+ # Trigger an asynchronous task to delete a repository version.
38
38
  # @param ansible_ansible_repository_version_href
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [AsyncOperationResponse]
@@ -90,7 +90,7 @@ describe 'RepositoriesAnsibleVersionsApi' do
90
90
  end
91
91
 
92
92
  # unit tests for repair
93
- # Trigger an asynchronous task to repair a repositroy version.
93
+ # Trigger an asynchronous task to repair a repository version.
94
94
  # @param ansible_ansible_repository_version_href
95
95
  # @param repository_version
96
96
  # @param [Hash] opts the optional parameters
@@ -116,6 +116,30 @@ describe 'AnsibleCollectionRemoteResponse' do
116
116
  end
117
117
  end
118
118
 
119
+ describe 'test attribute "total_timeout"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ describe 'test attribute "connect_timeout"' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ describe 'test attribute "sock_connect_timeout"' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
137
+ describe 'test attribute "sock_read_timeout"' do
138
+ it 'should work' do
139
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
+ end
141
+ end
142
+
119
143
  describe 'test attribute "requirements_file"' do
120
144
  it 'should work' do
121
145
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -98,6 +98,30 @@ describe 'AnsibleCollectionRemote' do
98
98
  end
99
99
  end
100
100
 
101
+ describe 'test attribute "total_timeout"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ describe 'test attribute "connect_timeout"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ describe 'test attribute "sock_connect_timeout"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "sock_read_timeout"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
101
125
  describe 'test attribute "requirements_file"' do
102
126
  it 'should work' do
103
127
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,13 +38,13 @@ describe 'AnsibleCollectionVersionResponse' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_created"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "artifact"' do
47
+ describe 'test attribute "pulp_created"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end