pulp_ansible_client 0.11.0.dev1636946173 → 0.11.0.dev1638328524

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.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

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