pulp_ansible_client 0.24.11 → 0.24.12

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  4. data/docs/AnsibleGitRemote.md +24 -24
  5. data/docs/AnsibleGitRemoteResponse.md +24 -24
  6. data/docs/AnsibleRole.md +2 -2
  7. data/docs/AnsibleRoleResponse.md +6 -6
  8. data/docs/ContentCollectionVersionsApi.md +4 -4
  9. data/docs/PatchedansibleGitRemote.md +24 -24
  10. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  11. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  12. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  13. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  14. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +27 -27
  16. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +216 -216
  17. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +129 -129
  18. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  19. data/lib/pulp_ansible_client/models/ansible_role_response.rb +27 -27
  20. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +212 -212
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  23. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  24. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  25. data/spec/models/ansible_git_remote_spec.rb +18 -18
  26. data/spec/models/ansible_role_response_spec.rb +6 -6
  27. data/spec/models/ansible_role_spec.rb +3 -3
  28. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  29. metadata +119 -119
@@ -16,64 +16,64 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Git Collection Remotes.
18
18
  class PatchedansibleGitRemote
19
+ # A PEM encoded client certificate used for authentication.
20
+ attr_accessor :client_cert
21
+
22
+ # A PEM encoded private key used for authentication.
23
+ attr_accessor :client_key
24
+
19
25
  # Headers for aiohttp.Clientsession
20
26
  attr_accessor :headers
21
27
 
28
+ # The URL of an external content source.
29
+ attr_accessor :url
30
+
31
+ # If True, TLS peer validation must be performed.
32
+ attr_accessor :tls_validation
33
+
22
34
  # 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.
23
35
  attr_accessor :sock_read_timeout
24
36
 
37
+ # A unique name for this remote.
38
+ attr_accessor :name
39
+
25
40
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
26
41
  attr_accessor :connect_timeout
27
42
 
43
+ # Total number of simultaneous connections. If not set then the default value will be used.
44
+ attr_accessor :download_concurrency
45
+
28
46
  # 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.
29
47
  attr_accessor :sock_connect_timeout
30
48
 
31
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
32
- attr_accessor :max_retries
33
-
34
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
35
- attr_accessor :total_timeout
36
-
37
49
  # Limits requests per second for each concurrent downloader
38
50
  attr_accessor :rate_limit
39
51
 
40
- # The URL of an external content source.
41
- attr_accessor :url
52
+ # The username to be used for authentication when syncing.
53
+ attr_accessor :username
42
54
 
43
- # Total number of simultaneous connections. If not set then the default value will be used.
44
- attr_accessor :download_concurrency
55
+ attr_accessor :pulp_labels
45
56
 
46
- # A unique name for this remote.
47
- attr_accessor :name
57
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
58
+ attr_accessor :total_timeout
59
+
60
+ # The proxy URL. Format: scheme://host:port
61
+ attr_accessor :proxy_url
48
62
 
49
63
  # The username to authenticte to the proxy.
50
64
  attr_accessor :proxy_username
51
65
 
52
- # A PEM encoded private key used for authentication.
53
- attr_accessor :client_key
54
-
55
66
  # The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
56
67
  attr_accessor :proxy_password
57
68
 
58
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
59
- attr_accessor :ca_cert
60
-
61
- attr_accessor :pulp_labels
62
-
63
- # If True, TLS peer validation must be performed.
64
- attr_accessor :tls_validation
65
-
66
- # The proxy URL. Format: scheme://host:port
67
- attr_accessor :proxy_url
68
-
69
- # A PEM encoded client certificate used for authentication.
70
- attr_accessor :client_cert
69
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
70
+ attr_accessor :max_retries
71
71
 
72
72
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
73
73
  attr_accessor :password
74
74
 
75
- # The username to be used for authentication when syncing.
76
- attr_accessor :username
75
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
76
+ attr_accessor :ca_cert
77
77
 
78
78
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
79
79
  attr_accessor :metadata_only
@@ -84,26 +84,26 @@ module PulpAnsibleClient
84
84
  # Attribute mapping from ruby-style variable name to JSON key.
85
85
  def self.attribute_map
86
86
  {
87
+ :'client_cert' => :'client_cert',
88
+ :'client_key' => :'client_key',
87
89
  :'headers' => :'headers',
90
+ :'url' => :'url',
91
+ :'tls_validation' => :'tls_validation',
88
92
  :'sock_read_timeout' => :'sock_read_timeout',
93
+ :'name' => :'name',
89
94
  :'connect_timeout' => :'connect_timeout',
95
+ :'download_concurrency' => :'download_concurrency',
90
96
  :'sock_connect_timeout' => :'sock_connect_timeout',
91
- :'max_retries' => :'max_retries',
92
- :'total_timeout' => :'total_timeout',
93
97
  :'rate_limit' => :'rate_limit',
94
- :'url' => :'url',
95
- :'download_concurrency' => :'download_concurrency',
96
- :'name' => :'name',
97
- :'proxy_username' => :'proxy_username',
98
- :'client_key' => :'client_key',
99
- :'proxy_password' => :'proxy_password',
100
- :'ca_cert' => :'ca_cert',
98
+ :'username' => :'username',
101
99
  :'pulp_labels' => :'pulp_labels',
102
- :'tls_validation' => :'tls_validation',
100
+ :'total_timeout' => :'total_timeout',
103
101
  :'proxy_url' => :'proxy_url',
104
- :'client_cert' => :'client_cert',
102
+ :'proxy_username' => :'proxy_username',
103
+ :'proxy_password' => :'proxy_password',
104
+ :'max_retries' => :'max_retries',
105
105
  :'password' => :'password',
106
- :'username' => :'username',
106
+ :'ca_cert' => :'ca_cert',
107
107
  :'metadata_only' => :'metadata_only',
108
108
  :'git_ref' => :'git_ref'
109
109
  }
@@ -117,26 +117,26 @@ module PulpAnsibleClient
117
117
  # Attribute type mapping.
118
118
  def self.openapi_types
119
119
  {
120
+ :'client_cert' => :'String',
121
+ :'client_key' => :'String',
120
122
  :'headers' => :'Array<Object>',
123
+ :'url' => :'String',
124
+ :'tls_validation' => :'Boolean',
121
125
  :'sock_read_timeout' => :'Float',
126
+ :'name' => :'String',
122
127
  :'connect_timeout' => :'Float',
128
+ :'download_concurrency' => :'Integer',
123
129
  :'sock_connect_timeout' => :'Float',
124
- :'max_retries' => :'Integer',
125
- :'total_timeout' => :'Float',
126
130
  :'rate_limit' => :'Integer',
127
- :'url' => :'String',
128
- :'download_concurrency' => :'Integer',
129
- :'name' => :'String',
130
- :'proxy_username' => :'String',
131
- :'client_key' => :'String',
132
- :'proxy_password' => :'String',
133
- :'ca_cert' => :'String',
131
+ :'username' => :'String',
134
132
  :'pulp_labels' => :'Hash<String, String>',
135
- :'tls_validation' => :'Boolean',
133
+ :'total_timeout' => :'Float',
136
134
  :'proxy_url' => :'String',
137
- :'client_cert' => :'String',
135
+ :'proxy_username' => :'String',
136
+ :'proxy_password' => :'String',
137
+ :'max_retries' => :'Integer',
138
138
  :'password' => :'String',
139
- :'username' => :'String',
139
+ :'ca_cert' => :'String',
140
140
  :'metadata_only' => :'Boolean',
141
141
  :'git_ref' => :'String'
142
142
  }
@@ -145,21 +145,21 @@ module PulpAnsibleClient
145
145
  # List of attributes with nullable: true
146
146
  def self.openapi_nullable
147
147
  Set.new([
148
+ :'client_cert',
149
+ :'client_key',
148
150
  :'sock_read_timeout',
149
151
  :'connect_timeout',
152
+ :'download_concurrency',
150
153
  :'sock_connect_timeout',
151
- :'max_retries',
152
- :'total_timeout',
153
154
  :'rate_limit',
154
- :'download_concurrency',
155
+ :'username',
156
+ :'total_timeout',
157
+ :'proxy_url',
155
158
  :'proxy_username',
156
- :'client_key',
157
159
  :'proxy_password',
158
- :'ca_cert',
159
- :'proxy_url',
160
- :'client_cert',
160
+ :'max_retries',
161
161
  :'password',
162
- :'username',
162
+ :'ca_cert',
163
163
  ])
164
164
  end
165
165
 
@@ -178,62 +178,54 @@ module PulpAnsibleClient
178
178
  h[k.to_sym] = v
179
179
  }
180
180
 
181
- if attributes.key?(:'headers')
182
- if (value = attributes[:'headers']).is_a?(Array)
183
- self.headers = value
184
- end
181
+ if attributes.key?(:'client_cert')
182
+ self.client_cert = attributes[:'client_cert']
185
183
  end
186
184
 
187
- if attributes.key?(:'sock_read_timeout')
188
- self.sock_read_timeout = attributes[:'sock_read_timeout']
185
+ if attributes.key?(:'client_key')
186
+ self.client_key = attributes[:'client_key']
189
187
  end
190
188
 
191
- if attributes.key?(:'connect_timeout')
192
- self.connect_timeout = attributes[:'connect_timeout']
189
+ if attributes.key?(:'headers')
190
+ if (value = attributes[:'headers']).is_a?(Array)
191
+ self.headers = value
192
+ end
193
193
  end
194
194
 
195
- if attributes.key?(:'sock_connect_timeout')
196
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
195
+ if attributes.key?(:'url')
196
+ self.url = attributes[:'url']
197
197
  end
198
198
 
199
- if attributes.key?(:'max_retries')
200
- self.max_retries = attributes[:'max_retries']
199
+ if attributes.key?(:'tls_validation')
200
+ self.tls_validation = attributes[:'tls_validation']
201
201
  end
202
202
 
203
- if attributes.key?(:'total_timeout')
204
- self.total_timeout = attributes[:'total_timeout']
203
+ if attributes.key?(:'sock_read_timeout')
204
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
205
205
  end
206
206
 
207
- if attributes.key?(:'rate_limit')
208
- self.rate_limit = attributes[:'rate_limit']
207
+ if attributes.key?(:'name')
208
+ self.name = attributes[:'name']
209
209
  end
210
210
 
211
- if attributes.key?(:'url')
212
- self.url = attributes[:'url']
211
+ if attributes.key?(:'connect_timeout')
212
+ self.connect_timeout = attributes[:'connect_timeout']
213
213
  end
214
214
 
215
215
  if attributes.key?(:'download_concurrency')
216
216
  self.download_concurrency = attributes[:'download_concurrency']
217
217
  end
218
218
 
219
- if attributes.key?(:'name')
220
- self.name = attributes[:'name']
221
- end
222
-
223
- if attributes.key?(:'proxy_username')
224
- self.proxy_username = attributes[:'proxy_username']
225
- end
226
-
227
- if attributes.key?(:'client_key')
228
- self.client_key = attributes[:'client_key']
219
+ if attributes.key?(:'sock_connect_timeout')
220
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
229
221
  end
230
222
 
231
- if attributes.key?(:'proxy_password')
232
- self.proxy_password = attributes[:'proxy_password']
223
+ if attributes.key?(:'rate_limit')
224
+ self.rate_limit = attributes[:'rate_limit']
233
225
  end
234
226
 
235
- if attributes.key?(:'ca_cert')
236
- self.ca_cert = attributes[:'ca_cert']
227
+ if attributes.key?(:'username')
228
+ self.username = attributes[:'username']
237
229
  end
238
230
 
239
231
  if attributes.key?(:'pulp_labels')
@@ -242,24 +234,32 @@ module PulpAnsibleClient
242
234
  end
243
235
  end
244
236
 
245
- if attributes.key?(:'tls_validation')
246
- self.tls_validation = attributes[:'tls_validation']
237
+ if attributes.key?(:'total_timeout')
238
+ self.total_timeout = attributes[:'total_timeout']
247
239
  end
248
240
 
249
241
  if attributes.key?(:'proxy_url')
250
242
  self.proxy_url = attributes[:'proxy_url']
251
243
  end
252
244
 
253
- if attributes.key?(:'client_cert')
254
- self.client_cert = attributes[:'client_cert']
245
+ if attributes.key?(:'proxy_username')
246
+ self.proxy_username = attributes[:'proxy_username']
247
+ end
248
+
249
+ if attributes.key?(:'proxy_password')
250
+ self.proxy_password = attributes[:'proxy_password']
251
+ end
252
+
253
+ if attributes.key?(:'max_retries')
254
+ self.max_retries = attributes[:'max_retries']
255
255
  end
256
256
 
257
257
  if attributes.key?(:'password')
258
258
  self.password = attributes[:'password']
259
259
  end
260
260
 
261
- if attributes.key?(:'username')
262
- self.username = attributes[:'username']
261
+ if attributes.key?(:'ca_cert')
262
+ self.ca_cert = attributes[:'ca_cert']
263
263
  end
264
264
 
265
265
  if attributes.key?(:'metadata_only')
@@ -276,64 +276,64 @@ module PulpAnsibleClient
276
276
  def list_invalid_properties
277
277
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
278
278
  invalid_properties = Array.new
279
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
281
- end
282
-
283
- if !@connect_timeout.nil? && @connect_timeout < 0.0
284
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
285
- end
286
-
287
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
288
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
280
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
289
281
  end
290
282
 
291
- if !@total_timeout.nil? && @total_timeout < 0.0
292
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
283
+ if !@client_key.nil? && @client_key.to_s.length < 1
284
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
293
285
  end
294
286
 
295
287
  if !@url.nil? && @url.to_s.length < 1
296
288
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
297
289
  end
298
290
 
299
- if !@download_concurrency.nil? && @download_concurrency < 1
300
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
291
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
292
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
301
293
  end
302
294
 
303
295
  if !@name.nil? && @name.to_s.length < 1
304
296
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
305
297
  end
306
298
 
307
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
308
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
299
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
300
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
309
301
  end
310
302
 
311
- if !@client_key.nil? && @client_key.to_s.length < 1
312
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
303
+ if !@download_concurrency.nil? && @download_concurrency < 1
304
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
305
  end
314
306
 
315
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
316
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
307
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
308
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
317
309
  end
318
310
 
319
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
320
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
311
+ if !@username.nil? && @username.to_s.length < 1
312
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
313
+ end
314
+
315
+ if !@total_timeout.nil? && @total_timeout < 0.0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
321
317
  end
322
318
 
323
319
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
324
320
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
325
321
  end
326
322
 
327
- if !@client_cert.nil? && @client_cert.to_s.length < 1
328
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
323
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
324
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
325
+ end
326
+
327
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
328
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
329
329
  end
330
330
 
331
331
  if !@password.nil? && @password.to_s.length < 1
332
332
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
333
333
  end
334
334
 
335
- if !@username.nil? && @username.to_s.length < 1
336
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
335
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
336
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
337
337
  end
338
338
 
339
339
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -347,63 +347,43 @@ module PulpAnsibleClient
347
347
  # @return true if the model is valid
348
348
  def valid?
349
349
  warn '[DEPRECATED] the `valid?` method is obsolete'
350
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
351
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
352
+ return false if !@url.nil? && @url.to_s.length < 1
350
353
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
354
+ return false if !@name.nil? && @name.to_s.length < 1
351
355
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
356
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
352
357
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
358
+ return false if !@username.nil? && @username.to_s.length < 1
353
359
  return false if !@total_timeout.nil? && @total_timeout < 0.0
354
- return false if !@url.nil? && @url.to_s.length < 1
355
- return false if !@download_concurrency.nil? && @download_concurrency < 1
356
- return false if !@name.nil? && @name.to_s.length < 1
360
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
357
361
  return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
358
- return false if !@client_key.nil? && @client_key.to_s.length < 1
359
362
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
360
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
361
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
362
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
363
363
  return false if !@password.nil? && @password.to_s.length < 1
364
- return false if !@username.nil? && @username.to_s.length < 1
364
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
365
365
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
366
366
  true
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
370
- # @param [Object] sock_read_timeout Value to be assigned
371
- def sock_read_timeout=(sock_read_timeout)
372
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
373
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
374
- end
375
-
376
- @sock_read_timeout = sock_read_timeout
377
- end
378
-
379
- # Custom attribute writer method with validation
380
- # @param [Object] connect_timeout Value to be assigned
381
- def connect_timeout=(connect_timeout)
382
- if !connect_timeout.nil? && connect_timeout < 0.0
383
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
384
- end
385
-
386
- @connect_timeout = connect_timeout
387
- end
388
-
389
- # Custom attribute writer method with validation
390
- # @param [Object] sock_connect_timeout Value to be assigned
391
- def sock_connect_timeout=(sock_connect_timeout)
392
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
393
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
370
+ # @param [Object] client_cert Value to be assigned
371
+ def client_cert=(client_cert)
372
+ if !client_cert.nil? && client_cert.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
394
374
  end
395
375
 
396
- @sock_connect_timeout = sock_connect_timeout
376
+ @client_cert = client_cert
397
377
  end
398
378
 
399
379
  # Custom attribute writer method with validation
400
- # @param [Object] total_timeout Value to be assigned
401
- def total_timeout=(total_timeout)
402
- if !total_timeout.nil? && total_timeout < 0.0
403
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
380
+ # @param [Object] client_key Value to be assigned
381
+ def client_key=(client_key)
382
+ if !client_key.nil? && client_key.to_s.length < 1
383
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
404
384
  end
405
385
 
406
- @total_timeout = total_timeout
386
+ @client_key = client_key
407
387
  end
408
388
 
409
389
  # Custom attribute writer method with validation
@@ -421,13 +401,13 @@ module PulpAnsibleClient
421
401
  end
422
402
 
423
403
  # Custom attribute writer method with validation
424
- # @param [Object] download_concurrency Value to be assigned
425
- def download_concurrency=(download_concurrency)
426
- if !download_concurrency.nil? && download_concurrency < 1
427
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
404
+ # @param [Object] sock_read_timeout Value to be assigned
405
+ def sock_read_timeout=(sock_read_timeout)
406
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
407
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
428
408
  end
429
409
 
430
- @download_concurrency = download_concurrency
410
+ @sock_read_timeout = sock_read_timeout
431
411
  end
432
412
 
433
413
  # Custom attribute writer method with validation
@@ -445,43 +425,53 @@ module PulpAnsibleClient
445
425
  end
446
426
 
447
427
  # Custom attribute writer method with validation
448
- # @param [Object] proxy_username Value to be assigned
449
- def proxy_username=(proxy_username)
450
- if !proxy_username.nil? && proxy_username.to_s.length < 1
451
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
428
+ # @param [Object] connect_timeout Value to be assigned
429
+ def connect_timeout=(connect_timeout)
430
+ if !connect_timeout.nil? && connect_timeout < 0.0
431
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
452
432
  end
453
433
 
454
- @proxy_username = proxy_username
434
+ @connect_timeout = connect_timeout
455
435
  end
456
436
 
457
437
  # Custom attribute writer method with validation
458
- # @param [Object] client_key Value to be assigned
459
- def client_key=(client_key)
460
- if !client_key.nil? && client_key.to_s.length < 1
461
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
438
+ # @param [Object] download_concurrency Value to be assigned
439
+ def download_concurrency=(download_concurrency)
440
+ if !download_concurrency.nil? && download_concurrency < 1
441
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
462
442
  end
463
443
 
464
- @client_key = client_key
444
+ @download_concurrency = download_concurrency
465
445
  end
466
446
 
467
447
  # Custom attribute writer method with validation
468
- # @param [Object] proxy_password Value to be assigned
469
- def proxy_password=(proxy_password)
470
- if !proxy_password.nil? && proxy_password.to_s.length < 1
471
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
448
+ # @param [Object] sock_connect_timeout Value to be assigned
449
+ def sock_connect_timeout=(sock_connect_timeout)
450
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
451
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
472
452
  end
473
453
 
474
- @proxy_password = proxy_password
454
+ @sock_connect_timeout = sock_connect_timeout
475
455
  end
476
456
 
477
457
  # Custom attribute writer method with validation
478
- # @param [Object] ca_cert Value to be assigned
479
- def ca_cert=(ca_cert)
480
- if !ca_cert.nil? && ca_cert.to_s.length < 1
481
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
458
+ # @param [Object] username Value to be assigned
459
+ def username=(username)
460
+ if !username.nil? && username.to_s.length < 1
461
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
482
462
  end
483
463
 
484
- @ca_cert = ca_cert
464
+ @username = username
465
+ end
466
+
467
+ # Custom attribute writer method with validation
468
+ # @param [Object] total_timeout Value to be assigned
469
+ def total_timeout=(total_timeout)
470
+ if !total_timeout.nil? && total_timeout < 0.0
471
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
472
+ end
473
+
474
+ @total_timeout = total_timeout
485
475
  end
486
476
 
487
477
  # Custom attribute writer method with validation
@@ -495,13 +485,23 @@ module PulpAnsibleClient
495
485
  end
496
486
 
497
487
  # Custom attribute writer method with validation
498
- # @param [Object] client_cert Value to be assigned
499
- def client_cert=(client_cert)
500
- if !client_cert.nil? && client_cert.to_s.length < 1
501
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
488
+ # @param [Object] proxy_username Value to be assigned
489
+ def proxy_username=(proxy_username)
490
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
491
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
502
492
  end
503
493
 
504
- @client_cert = client_cert
494
+ @proxy_username = proxy_username
495
+ end
496
+
497
+ # Custom attribute writer method with validation
498
+ # @param [Object] proxy_password Value to be assigned
499
+ def proxy_password=(proxy_password)
500
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
501
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
502
+ end
503
+
504
+ @proxy_password = proxy_password
505
505
  end
506
506
 
507
507
  # Custom attribute writer method with validation
@@ -515,13 +515,13 @@ module PulpAnsibleClient
515
515
  end
516
516
 
517
517
  # Custom attribute writer method with validation
518
- # @param [Object] username Value to be assigned
519
- def username=(username)
520
- if !username.nil? && username.to_s.length < 1
521
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
518
+ # @param [Object] ca_cert Value to be assigned
519
+ def ca_cert=(ca_cert)
520
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
521
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
522
522
  end
523
523
 
524
- @username = username
524
+ @ca_cert = ca_cert
525
525
  end
526
526
 
527
527
  # Custom attribute writer method with validation
@@ -543,26 +543,26 @@ module PulpAnsibleClient
543
543
  def ==(o)
544
544
  return true if self.equal?(o)
545
545
  self.class == o.class &&
546
+ client_cert == o.client_cert &&
547
+ client_key == o.client_key &&
546
548
  headers == o.headers &&
549
+ url == o.url &&
550
+ tls_validation == o.tls_validation &&
547
551
  sock_read_timeout == o.sock_read_timeout &&
552
+ name == o.name &&
548
553
  connect_timeout == o.connect_timeout &&
554
+ download_concurrency == o.download_concurrency &&
549
555
  sock_connect_timeout == o.sock_connect_timeout &&
550
- max_retries == o.max_retries &&
551
- total_timeout == o.total_timeout &&
552
556
  rate_limit == o.rate_limit &&
553
- url == o.url &&
554
- download_concurrency == o.download_concurrency &&
555
- name == o.name &&
556
- proxy_username == o.proxy_username &&
557
- client_key == o.client_key &&
558
- proxy_password == o.proxy_password &&
559
- ca_cert == o.ca_cert &&
557
+ username == o.username &&
560
558
  pulp_labels == o.pulp_labels &&
561
- tls_validation == o.tls_validation &&
559
+ total_timeout == o.total_timeout &&
562
560
  proxy_url == o.proxy_url &&
563
- client_cert == o.client_cert &&
561
+ proxy_username == o.proxy_username &&
562
+ proxy_password == o.proxy_password &&
563
+ max_retries == o.max_retries &&
564
564
  password == o.password &&
565
- username == o.username &&
565
+ ca_cert == o.ca_cert &&
566
566
  metadata_only == o.metadata_only &&
567
567
  git_ref == o.git_ref
568
568
  end
@@ -576,7 +576,7 @@ module PulpAnsibleClient
576
576
  # Calculates hash code according to all attributes.
577
577
  # @return [Integer] Hash code
578
578
  def hash
579
- [headers, sock_read_timeout, connect_timeout, sock_connect_timeout, max_retries, total_timeout, rate_limit, url, download_concurrency, name, proxy_username, client_key, proxy_password, ca_cert, pulp_labels, tls_validation, proxy_url, client_cert, password, username, metadata_only, git_ref].hash
579
+ [client_cert, client_key, headers, url, tls_validation, sock_read_timeout, name, connect_timeout, download_concurrency, sock_connect_timeout, rate_limit, username, pulp_labels, total_timeout, proxy_url, proxy_username, proxy_password, max_retries, password, ca_cert, metadata_only, git_ref].hash
580
580
  end
581
581
 
582
582
  # Builds the object from hash