pulp_ansible_client 0.13.0 → 0.13.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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/AnsibleAnsibleRepository.md +1 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  5. data/docs/AnsibleCollectionVersion.md +3 -3
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +24 -24
  8. data/docs/ContentCollectionVersionsApi.md +3 -3
  9. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  10. data/docs/PatchedansibleGitRemote.md +26 -26
  11. data/docs/Repair.md +17 -0
  12. data/docs/RepositoriesAnsibleVersionsApi.md +4 -4
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  14. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +9 -9
  15. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -1
  16. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -1
  17. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  18. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +220 -220
  19. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +128 -128
  20. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -1
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
  22. data/lib/pulp_ansible_client/models/{repository_version.rb → repair.rb} +13 -12
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/lib/pulp_ansible_client.rb +1 -3
  25. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  26. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  27. data/spec/models/ansible_collection_version_spec.rb +2 -2
  28. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  29. data/spec/models/ansible_git_remote_spec.rb +19 -19
  30. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  31. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  32. metadata +102 -110
  33. data/docs/ContentSummary.md +0 -21
  34. data/docs/KeyringEnum.md +0 -16
  35. data/docs/RepositoryVersion.md +0 -17
  36. data/lib/pulp_ansible_client/models/content_summary.rb +0 -246
  37. data/lib/pulp_ansible_client/models/keyring_enum.rb +0 -40
  38. data/spec/models/content_summary_spec.rb +0 -53
  39. data/spec/models/keyring_enum_spec.rb +0 -35
@@ -15,64 +15,64 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class PatchedansibleGitRemote
18
- # If True, TLS peer validation must be performed.
19
- attr_accessor :tls_validation
18
+ # The proxy URL. Format: scheme://host:port
19
+ attr_accessor :proxy_url
20
20
 
21
- # The password to authenticte to the proxy.
22
- attr_accessor :proxy_password
21
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
22
+ attr_accessor :total_timeout
23
+
24
+ # A unique name for this remote.
25
+ attr_accessor :name
26
+
27
+ # Headers for aiohttp.Clientsession
28
+ attr_accessor :headers
23
29
 
24
30
  attr_accessor :pulp_labels
25
31
 
26
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
27
- attr_accessor :max_retries
32
+ # A PEM encoded client certificate used for authentication.
33
+ attr_accessor :client_cert
28
34
 
29
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
30
- attr_accessor :total_timeout
35
+ # 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.
36
+ attr_accessor :sock_connect_timeout
31
37
 
32
- # The proxy URL. Format: scheme://host:port
33
- attr_accessor :proxy_url
38
+ # 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.
39
+ attr_accessor :sock_read_timeout
40
+
41
+ # The password to authenticte to the proxy.
42
+ attr_accessor :proxy_password
43
+
44
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
45
+ attr_accessor :max_retries
34
46
 
35
47
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
48
  attr_accessor :ca_cert
37
49
 
50
+ # If True, TLS peer validation must be performed.
51
+ attr_accessor :tls_validation
52
+
38
53
  # A PEM encoded private key used for authentication.
39
54
  attr_accessor :client_key
40
55
 
41
- # Limits requests per second for each concurrent downloader
42
- attr_accessor :rate_limit
43
-
44
- # 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.
45
- attr_accessor :sock_connect_timeout
46
-
47
- # Headers for aiohttp.Clientsession
48
- attr_accessor :headers
56
+ # Total number of simultaneous connections. If not set then the default value will be used.
57
+ attr_accessor :download_concurrency
49
58
 
50
59
  # The username to be used for authentication when syncing.
51
60
  attr_accessor :username
52
61
 
53
- # Total number of simultaneous connections. If not set then the default value will be used.
54
- attr_accessor :download_concurrency
62
+ # Limits requests per second for each concurrent downloader
63
+ attr_accessor :rate_limit
55
64
 
56
- # The password to be used for authentication when syncing.
57
- attr_accessor :password
65
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
66
+ attr_accessor :connect_timeout
58
67
 
59
68
  # The username to authenticte to the proxy.
60
69
  attr_accessor :proxy_username
61
70
 
62
- # 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.
63
- attr_accessor :sock_read_timeout
64
-
65
- # A PEM encoded client certificate used for authentication.
66
- attr_accessor :client_cert
67
-
68
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
- attr_accessor :connect_timeout
70
-
71
71
  # The URL of an external content source.
72
72
  attr_accessor :url
73
73
 
74
- # A unique name for this remote.
75
- attr_accessor :name
74
+ # The password to be used for authentication when syncing.
75
+ attr_accessor :password
76
76
 
77
77
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
78
78
  attr_accessor :metadata_only
@@ -83,26 +83,26 @@ module PulpAnsibleClient
83
83
  # Attribute mapping from ruby-style variable name to JSON key.
84
84
  def self.attribute_map
85
85
  {
86
- :'tls_validation' => :'tls_validation',
87
- :'proxy_password' => :'proxy_password',
86
+ :'proxy_url' => :'proxy_url',
87
+ :'total_timeout' => :'total_timeout',
88
+ :'name' => :'name',
89
+ :'headers' => :'headers',
88
90
  :'pulp_labels' => :'pulp_labels',
91
+ :'client_cert' => :'client_cert',
92
+ :'sock_connect_timeout' => :'sock_connect_timeout',
93
+ :'sock_read_timeout' => :'sock_read_timeout',
94
+ :'proxy_password' => :'proxy_password',
89
95
  :'max_retries' => :'max_retries',
90
- :'total_timeout' => :'total_timeout',
91
- :'proxy_url' => :'proxy_url',
92
96
  :'ca_cert' => :'ca_cert',
97
+ :'tls_validation' => :'tls_validation',
93
98
  :'client_key' => :'client_key',
94
- :'rate_limit' => :'rate_limit',
95
- :'sock_connect_timeout' => :'sock_connect_timeout',
96
- :'headers' => :'headers',
97
- :'username' => :'username',
98
99
  :'download_concurrency' => :'download_concurrency',
99
- :'password' => :'password',
100
- :'proxy_username' => :'proxy_username',
101
- :'sock_read_timeout' => :'sock_read_timeout',
102
- :'client_cert' => :'client_cert',
100
+ :'username' => :'username',
101
+ :'rate_limit' => :'rate_limit',
103
102
  :'connect_timeout' => :'connect_timeout',
103
+ :'proxy_username' => :'proxy_username',
104
104
  :'url' => :'url',
105
- :'name' => :'name',
105
+ :'password' => :'password',
106
106
  :'metadata_only' => :'metadata_only',
107
107
  :'git_ref' => :'git_ref'
108
108
  }
@@ -111,26 +111,26 @@ module PulpAnsibleClient
111
111
  # Attribute type mapping.
112
112
  def self.openapi_types
113
113
  {
114
- :'tls_validation' => :'Boolean',
115
- :'proxy_password' => :'String',
114
+ :'proxy_url' => :'String',
115
+ :'total_timeout' => :'Float',
116
+ :'name' => :'String',
117
+ :'headers' => :'Array<Object>',
116
118
  :'pulp_labels' => :'Object',
119
+ :'client_cert' => :'String',
120
+ :'sock_connect_timeout' => :'Float',
121
+ :'sock_read_timeout' => :'Float',
122
+ :'proxy_password' => :'String',
117
123
  :'max_retries' => :'Integer',
118
- :'total_timeout' => :'Float',
119
- :'proxy_url' => :'String',
120
124
  :'ca_cert' => :'String',
125
+ :'tls_validation' => :'Boolean',
121
126
  :'client_key' => :'String',
122
- :'rate_limit' => :'Integer',
123
- :'sock_connect_timeout' => :'Float',
124
- :'headers' => :'Array<Object>',
125
- :'username' => :'String',
126
127
  :'download_concurrency' => :'Integer',
127
- :'password' => :'String',
128
- :'proxy_username' => :'String',
129
- :'sock_read_timeout' => :'Float',
130
- :'client_cert' => :'String',
128
+ :'username' => :'String',
129
+ :'rate_limit' => :'Integer',
131
130
  :'connect_timeout' => :'Float',
131
+ :'proxy_username' => :'String',
132
132
  :'url' => :'String',
133
- :'name' => :'String',
133
+ :'password' => :'String',
134
134
  :'metadata_only' => :'Boolean',
135
135
  :'git_ref' => :'String'
136
136
  }
@@ -139,21 +139,21 @@ module PulpAnsibleClient
139
139
  # List of attributes with nullable: true
140
140
  def self.openapi_nullable
141
141
  Set.new([
142
+ :'proxy_url',
143
+ :'total_timeout',
144
+ :'client_cert',
145
+ :'sock_connect_timeout',
146
+ :'sock_read_timeout',
142
147
  :'proxy_password',
143
148
  :'max_retries',
144
- :'total_timeout',
145
- :'proxy_url',
146
149
  :'ca_cert',
147
150
  :'client_key',
148
- :'rate_limit',
149
- :'sock_connect_timeout',
150
- :'username',
151
151
  :'download_concurrency',
152
- :'password',
153
- :'proxy_username',
154
- :'sock_read_timeout',
155
- :'client_cert',
152
+ :'username',
153
+ :'rate_limit',
156
154
  :'connect_timeout',
155
+ :'proxy_username',
156
+ :'password',
157
157
  ])
158
158
  end
159
159
 
@@ -172,86 +172,86 @@ module PulpAnsibleClient
172
172
  h[k.to_sym] = v
173
173
  }
174
174
 
175
- if attributes.key?(:'tls_validation')
176
- self.tls_validation = attributes[:'tls_validation']
177
- end
178
-
179
- if attributes.key?(:'proxy_password')
180
- self.proxy_password = attributes[:'proxy_password']
181
- end
182
-
183
- if attributes.key?(:'pulp_labels')
184
- self.pulp_labels = attributes[:'pulp_labels']
185
- end
186
-
187
- if attributes.key?(:'max_retries')
188
- self.max_retries = attributes[:'max_retries']
175
+ if attributes.key?(:'proxy_url')
176
+ self.proxy_url = attributes[:'proxy_url']
189
177
  end
190
178
 
191
179
  if attributes.key?(:'total_timeout')
192
180
  self.total_timeout = attributes[:'total_timeout']
193
181
  end
194
182
 
195
- if attributes.key?(:'proxy_url')
196
- self.proxy_url = attributes[:'proxy_url']
183
+ if attributes.key?(:'name')
184
+ self.name = attributes[:'name']
197
185
  end
198
186
 
199
- if attributes.key?(:'ca_cert')
200
- self.ca_cert = attributes[:'ca_cert']
187
+ if attributes.key?(:'headers')
188
+ if (value = attributes[:'headers']).is_a?(Array)
189
+ self.headers = value
190
+ end
201
191
  end
202
192
 
203
- if attributes.key?(:'client_key')
204
- self.client_key = attributes[:'client_key']
193
+ if attributes.key?(:'pulp_labels')
194
+ self.pulp_labels = attributes[:'pulp_labels']
205
195
  end
206
196
 
207
- if attributes.key?(:'rate_limit')
208
- self.rate_limit = attributes[:'rate_limit']
197
+ if attributes.key?(:'client_cert')
198
+ self.client_cert = attributes[:'client_cert']
209
199
  end
210
200
 
211
201
  if attributes.key?(:'sock_connect_timeout')
212
202
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
213
203
  end
214
204
 
215
- if attributes.key?(:'headers')
216
- if (value = attributes[:'headers']).is_a?(Array)
217
- self.headers = value
218
- end
205
+ if attributes.key?(:'sock_read_timeout')
206
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
219
207
  end
220
208
 
221
- if attributes.key?(:'username')
222
- self.username = attributes[:'username']
209
+ if attributes.key?(:'proxy_password')
210
+ self.proxy_password = attributes[:'proxy_password']
223
211
  end
224
212
 
225
- if attributes.key?(:'download_concurrency')
226
- self.download_concurrency = attributes[:'download_concurrency']
213
+ if attributes.key?(:'max_retries')
214
+ self.max_retries = attributes[:'max_retries']
227
215
  end
228
216
 
229
- if attributes.key?(:'password')
230
- self.password = attributes[:'password']
217
+ if attributes.key?(:'ca_cert')
218
+ self.ca_cert = attributes[:'ca_cert']
231
219
  end
232
220
 
233
- if attributes.key?(:'proxy_username')
234
- self.proxy_username = attributes[:'proxy_username']
221
+ if attributes.key?(:'tls_validation')
222
+ self.tls_validation = attributes[:'tls_validation']
235
223
  end
236
224
 
237
- if attributes.key?(:'sock_read_timeout')
238
- self.sock_read_timeout = attributes[:'sock_read_timeout']
225
+ if attributes.key?(:'client_key')
226
+ self.client_key = attributes[:'client_key']
239
227
  end
240
228
 
241
- if attributes.key?(:'client_cert')
242
- self.client_cert = attributes[:'client_cert']
229
+ if attributes.key?(:'download_concurrency')
230
+ self.download_concurrency = attributes[:'download_concurrency']
231
+ end
232
+
233
+ if attributes.key?(:'username')
234
+ self.username = attributes[:'username']
235
+ end
236
+
237
+ if attributes.key?(:'rate_limit')
238
+ self.rate_limit = attributes[:'rate_limit']
243
239
  end
244
240
 
245
241
  if attributes.key?(:'connect_timeout')
246
242
  self.connect_timeout = attributes[:'connect_timeout']
247
243
  end
248
244
 
245
+ if attributes.key?(:'proxy_username')
246
+ self.proxy_username = attributes[:'proxy_username']
247
+ end
248
+
249
249
  if attributes.key?(:'url')
250
250
  self.url = attributes[:'url']
251
251
  end
252
252
 
253
- if attributes.key?(:'name')
254
- self.name = attributes[:'name']
253
+ if attributes.key?(:'password')
254
+ self.password = attributes[:'password']
255
255
  end
256
256
 
257
257
  if attributes.key?(:'metadata_only')
@@ -267,64 +267,64 @@ module PulpAnsibleClient
267
267
  # @return Array for valid properties with the reasons
268
268
  def list_invalid_properties
269
269
  invalid_properties = Array.new
270
- if !@proxy_password.nil? && @proxy_password.to_s.length < 1
271
- invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
270
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
271
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
272
272
  end
273
273
 
274
274
  if !@total_timeout.nil? && @total_timeout < 0.0
275
275
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
276
276
  end
277
277
 
278
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
279
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
280
- end
281
-
282
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
283
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
278
+ if !@name.nil? && @name.to_s.length < 1
279
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
284
280
  end
285
281
 
286
- if !@client_key.nil? && @client_key.to_s.length < 1
287
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
282
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
283
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
288
284
  end
289
285
 
290
286
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
291
287
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
292
288
  end
293
289
 
294
- if !@username.nil? && @username.to_s.length < 1
295
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
290
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
291
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
296
292
  end
297
293
 
298
- if !@download_concurrency.nil? && @download_concurrency < 1
299
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
294
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
295
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
300
296
  end
301
297
 
302
- if !@password.nil? && @password.to_s.length < 1
303
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
298
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
299
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
304
300
  end
305
301
 
306
- if !@proxy_username.nil? && @proxy_username.to_s.length < 1
307
- invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
302
+ if !@client_key.nil? && @client_key.to_s.length < 1
303
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
308
304
  end
309
305
 
310
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
311
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
306
+ if !@download_concurrency.nil? && @download_concurrency < 1
307
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
312
308
  end
313
309
 
314
- if !@client_cert.nil? && @client_cert.to_s.length < 1
315
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
310
+ if !@username.nil? && @username.to_s.length < 1
311
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
316
312
  end
317
313
 
318
314
  if !@connect_timeout.nil? && @connect_timeout < 0.0
319
315
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
320
316
  end
321
317
 
318
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
319
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
320
+ end
321
+
322
322
  if !@url.nil? && @url.to_s.length < 1
323
323
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
324
324
  end
325
325
 
326
- if !@name.nil? && @name.to_s.length < 1
327
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
326
+ if !@password.nil? && @password.to_s.length < 1
327
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
328
328
  end
329
329
 
330
330
  if !@git_ref.nil? && @git_ref.to_s.length < 1
@@ -337,33 +337,33 @@ module PulpAnsibleClient
337
337
  # Check to see if the all the properties in the model are valid
338
338
  # @return true if the model is valid
339
339
  def valid?
340
- return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
341
- return false if !@total_timeout.nil? && @total_timeout < 0.0
342
340
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
341
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
342
+ return false if !@name.nil? && @name.to_s.length < 1
343
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
344
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
345
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
346
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
343
347
  return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
344
348
  return false if !@client_key.nil? && @client_key.to_s.length < 1
345
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
346
- return false if !@username.nil? && @username.to_s.length < 1
347
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
348
- return false if !@password.nil? && @password.to_s.length < 1
349
- return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
350
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
351
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
350
+ return false if !@username.nil? && @username.to_s.length < 1
352
351
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
353
353
  return false if !@url.nil? && @url.to_s.length < 1
354
- return false if !@name.nil? && @name.to_s.length < 1
354
+ return false if !@password.nil? && @password.to_s.length < 1
355
355
  return false if !@git_ref.nil? && @git_ref.to_s.length < 1
356
356
  true
357
357
  end
358
358
 
359
359
  # Custom attribute writer method with validation
360
- # @param [Object] proxy_password Value to be assigned
361
- def proxy_password=(proxy_password)
362
- if !proxy_password.nil? && proxy_password.to_s.length < 1
363
- fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
360
+ # @param [Object] proxy_url Value to be assigned
361
+ def proxy_url=(proxy_url)
362
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
364
364
  end
365
365
 
366
- @proxy_password = proxy_password
366
+ @proxy_url = proxy_url
367
367
  end
368
368
 
369
369
  # Custom attribute writer method with validation
@@ -377,33 +377,23 @@ module PulpAnsibleClient
377
377
  end
378
378
 
379
379
  # Custom attribute writer method with validation
380
- # @param [Object] proxy_url Value to be assigned
381
- def proxy_url=(proxy_url)
382
- if !proxy_url.nil? && proxy_url.to_s.length < 1
383
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
384
- end
385
-
386
- @proxy_url = proxy_url
387
- end
388
-
389
- # Custom attribute writer method with validation
390
- # @param [Object] ca_cert Value to be assigned
391
- def ca_cert=(ca_cert)
392
- if !ca_cert.nil? && ca_cert.to_s.length < 1
393
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
380
+ # @param [Object] name Value to be assigned
381
+ def name=(name)
382
+ if !name.nil? && name.to_s.length < 1
383
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
394
384
  end
395
385
 
396
- @ca_cert = ca_cert
386
+ @name = name
397
387
  end
398
388
 
399
389
  # Custom attribute writer method with validation
400
- # @param [Object] client_key Value to be assigned
401
- def client_key=(client_key)
402
- if !client_key.nil? && client_key.to_s.length < 1
403
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
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.'
404
394
  end
405
395
 
406
- @client_key = client_key
396
+ @client_cert = client_cert
407
397
  end
408
398
 
409
399
  # Custom attribute writer method with validation
@@ -417,63 +407,63 @@ module PulpAnsibleClient
417
407
  end
418
408
 
419
409
  # Custom attribute writer method with validation
420
- # @param [Object] username Value to be assigned
421
- def username=(username)
422
- if !username.nil? && username.to_s.length < 1
423
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
410
+ # @param [Object] sock_read_timeout Value to be assigned
411
+ def sock_read_timeout=(sock_read_timeout)
412
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
413
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
424
414
  end
425
415
 
426
- @username = username
416
+ @sock_read_timeout = sock_read_timeout
427
417
  end
428
418
 
429
419
  # Custom attribute writer method with validation
430
- # @param [Object] download_concurrency Value to be assigned
431
- def download_concurrency=(download_concurrency)
432
- if !download_concurrency.nil? && download_concurrency < 1
433
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
420
+ # @param [Object] proxy_password Value to be assigned
421
+ def proxy_password=(proxy_password)
422
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
423
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
434
424
  end
435
425
 
436
- @download_concurrency = download_concurrency
426
+ @proxy_password = proxy_password
437
427
  end
438
428
 
439
429
  # Custom attribute writer method with validation
440
- # @param [Object] password Value to be assigned
441
- def password=(password)
442
- if !password.nil? && password.to_s.length < 1
443
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
430
+ # @param [Object] ca_cert Value to be assigned
431
+ def ca_cert=(ca_cert)
432
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
433
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
444
434
  end
445
435
 
446
- @password = password
436
+ @ca_cert = ca_cert
447
437
  end
448
438
 
449
439
  # Custom attribute writer method with validation
450
- # @param [Object] proxy_username Value to be assigned
451
- def proxy_username=(proxy_username)
452
- if !proxy_username.nil? && proxy_username.to_s.length < 1
453
- fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
440
+ # @param [Object] client_key Value to be assigned
441
+ def client_key=(client_key)
442
+ if !client_key.nil? && client_key.to_s.length < 1
443
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
454
444
  end
455
445
 
456
- @proxy_username = proxy_username
446
+ @client_key = client_key
457
447
  end
458
448
 
459
449
  # Custom attribute writer method with validation
460
- # @param [Object] sock_read_timeout Value to be assigned
461
- def sock_read_timeout=(sock_read_timeout)
462
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
463
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
450
+ # @param [Object] download_concurrency Value to be assigned
451
+ def download_concurrency=(download_concurrency)
452
+ if !download_concurrency.nil? && download_concurrency < 1
453
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
464
454
  end
465
455
 
466
- @sock_read_timeout = sock_read_timeout
456
+ @download_concurrency = download_concurrency
467
457
  end
468
458
 
469
459
  # Custom attribute writer method with validation
470
- # @param [Object] client_cert Value to be assigned
471
- def client_cert=(client_cert)
472
- if !client_cert.nil? && client_cert.to_s.length < 1
473
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
460
+ # @param [Object] username Value to be assigned
461
+ def username=(username)
462
+ if !username.nil? && username.to_s.length < 1
463
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
474
464
  end
475
465
 
476
- @client_cert = client_cert
466
+ @username = username
477
467
  end
478
468
 
479
469
  # Custom attribute writer method with validation
@@ -486,6 +476,16 @@ module PulpAnsibleClient
486
476
  @connect_timeout = connect_timeout
487
477
  end
488
478
 
479
+ # Custom attribute writer method with validation
480
+ # @param [Object] proxy_username Value to be assigned
481
+ def proxy_username=(proxy_username)
482
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
483
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
484
+ end
485
+
486
+ @proxy_username = proxy_username
487
+ end
488
+
489
489
  # Custom attribute writer method with validation
490
490
  # @param [Object] url Value to be assigned
491
491
  def url=(url)
@@ -497,13 +497,13 @@ module PulpAnsibleClient
497
497
  end
498
498
 
499
499
  # Custom attribute writer method with validation
500
- # @param [Object] name Value to be assigned
501
- def name=(name)
502
- if !name.nil? && name.to_s.length < 1
503
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
500
+ # @param [Object] password Value to be assigned
501
+ def password=(password)
502
+ if !password.nil? && password.to_s.length < 1
503
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
504
504
  end
505
505
 
506
- @name = name
506
+ @password = password
507
507
  end
508
508
 
509
509
  # Custom attribute writer method with validation
@@ -521,26 +521,26 @@ module PulpAnsibleClient
521
521
  def ==(o)
522
522
  return true if self.equal?(o)
523
523
  self.class == o.class &&
524
- tls_validation == o.tls_validation &&
525
- proxy_password == o.proxy_password &&
524
+ proxy_url == o.proxy_url &&
525
+ total_timeout == o.total_timeout &&
526
+ name == o.name &&
527
+ headers == o.headers &&
526
528
  pulp_labels == o.pulp_labels &&
529
+ client_cert == o.client_cert &&
530
+ sock_connect_timeout == o.sock_connect_timeout &&
531
+ sock_read_timeout == o.sock_read_timeout &&
532
+ proxy_password == o.proxy_password &&
527
533
  max_retries == o.max_retries &&
528
- total_timeout == o.total_timeout &&
529
- proxy_url == o.proxy_url &&
530
534
  ca_cert == o.ca_cert &&
535
+ tls_validation == o.tls_validation &&
531
536
  client_key == o.client_key &&
532
- rate_limit == o.rate_limit &&
533
- sock_connect_timeout == o.sock_connect_timeout &&
534
- headers == o.headers &&
535
- username == o.username &&
536
537
  download_concurrency == o.download_concurrency &&
537
- password == o.password &&
538
- proxy_username == o.proxy_username &&
539
- sock_read_timeout == o.sock_read_timeout &&
540
- client_cert == o.client_cert &&
538
+ username == o.username &&
539
+ rate_limit == o.rate_limit &&
541
540
  connect_timeout == o.connect_timeout &&
541
+ proxy_username == o.proxy_username &&
542
542
  url == o.url &&
543
- name == o.name &&
543
+ password == o.password &&
544
544
  metadata_only == o.metadata_only &&
545
545
  git_ref == o.git_ref
546
546
  end
@@ -554,7 +554,7 @@ module PulpAnsibleClient
554
554
  # Calculates hash code according to all attributes.
555
555
  # @return [Integer] Hash code
556
556
  def hash
557
- [tls_validation, proxy_password, pulp_labels, max_retries, total_timeout, proxy_url, ca_cert, client_key, rate_limit, sock_connect_timeout, headers, username, download_concurrency, password, proxy_username, sock_read_timeout, client_cert, connect_timeout, url, name, metadata_only, git_ref].hash
557
+ [proxy_url, total_timeout, name, headers, pulp_labels, client_cert, sock_connect_timeout, sock_read_timeout, proxy_password, max_retries, ca_cert, tls_validation, client_key, download_concurrency, username, rate_limit, connect_timeout, proxy_username, url, password, metadata_only, git_ref].hash
558
558
  end
559
559
 
560
560
  # Builds the object from hash