pulp_ansible_client 0.28.0 → 0.28.2

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