pulp_ansible_client 0.28.7 → 0.28.8

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