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