pulp_ansible_client 0.27.0 → 0.27.1

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