pulp_ansible_client 0.29.6 → 0.29.7

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