pulp_ansible_client 0.11.0.dev1636859743 → 0.11.0.dev1637205359

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +3 -3
  4. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  5. data/docs/AnsibleGitRemote.md +23 -21
  6. data/docs/AnsibleGitRemoteResponse.md +23 -21
  7. data/docs/AnsibleRoleResponse.md +4 -4
  8. data/docs/CollectionVersionResponse.md +4 -0
  9. data/docs/ContentCollectionVersionsApi.md +3 -3
  10. data/docs/PatchedansibleGitRemote.md +23 -21
  11. data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
  12. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  13. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  14. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -19
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +140 -130
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +139 -129
  17. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  18. data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
  19. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +130 -120
  20. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  23. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  24. data/spec/models/ansible_collection_version_spec.rb +2 -2
  25. data/spec/models/ansible_git_remote_response_spec.rb +22 -16
  26. data/spec/models/ansible_git_remote_spec.rb +22 -16
  27. data/spec/models/ansible_role_response_spec.rb +2 -2
  28. data/spec/models/collection_version_response_spec.rb +12 -0
  29. data/spec/models/patchedansible_git_remote_spec.rb +22 -16
  30. data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
  31. metadata +2 -2
@@ -15,8 +15,8 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemote
18
- # Total number of simultaneous connections. If not set then the default value will be used.
19
- attr_accessor :download_concurrency
18
+ # Limits total download rate in requests per second
19
+ attr_accessor :rate_limit
20
20
 
21
21
  # The password to be used for authentication when syncing.
22
22
  attr_accessor :password
@@ -24,11 +24,17 @@ module PulpAnsibleClient
24
24
  # A PEM encoded private key used for authentication.
25
25
  attr_accessor :client_key
26
26
 
27
- # Limits total download rate in requests per second
28
- attr_accessor :rate_limit
27
+ # The password to authenticte to the proxy.
28
+ attr_accessor :proxy_password
29
29
 
30
- # A unique name for this remote.
31
- attr_accessor :name
30
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
+ attr_accessor :max_retries
32
+
33
+ # 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.
34
+ attr_accessor :sock_connect_timeout
35
+
36
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
37
+ attr_accessor :ca_cert
32
38
 
33
39
  # The proxy URL. Format: scheme://host:port
34
40
  attr_accessor :proxy_url
@@ -39,14 +45,8 @@ module PulpAnsibleClient
39
45
  # 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.
40
46
  attr_accessor :sock_read_timeout
41
47
 
42
- # The username to authenticte to the proxy.
43
- attr_accessor :proxy_username
44
-
45
- # 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.
46
- attr_accessor :sock_connect_timeout
47
-
48
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
49
- attr_accessor :ca_cert
48
+ # A PEM encoded client certificate used for authentication.
49
+ attr_accessor :client_cert
50
50
 
51
51
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
52
52
  attr_accessor :total_timeout
@@ -54,8 +54,17 @@ module PulpAnsibleClient
54
54
  # Headers for aiohttp.Clientsession
55
55
  attr_accessor :headers
56
56
 
57
- # The password to authenticte to the proxy.
58
- attr_accessor :proxy_password
57
+ # The username to authenticte to the proxy.
58
+ attr_accessor :proxy_username
59
+
60
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
61
+ attr_accessor :connect_timeout
62
+
63
+ # A unique name for this remote.
64
+ attr_accessor :name
65
+
66
+ # Total number of simultaneous connections. If not set then the default value will be used.
67
+ attr_accessor :download_concurrency
59
68
 
60
69
  attr_accessor :pulp_labels
61
70
 
@@ -65,90 +74,86 @@ module PulpAnsibleClient
65
74
  # The URL of an external content source.
66
75
  attr_accessor :url
67
76
 
68
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
69
- attr_accessor :max_retries
70
-
71
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
72
- attr_accessor :connect_timeout
73
-
74
- # A PEM encoded client certificate used for authentication.
75
- attr_accessor :client_cert
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
  {
83
- :'download_concurrency' => :'download_concurrency',
86
+ :'rate_limit' => :'rate_limit',
84
87
  :'password' => :'password',
85
88
  :'client_key' => :'client_key',
86
- :'rate_limit' => :'rate_limit',
87
- :'name' => :'name',
89
+ :'proxy_password' => :'proxy_password',
90
+ :'max_retries' => :'max_retries',
91
+ :'sock_connect_timeout' => :'sock_connect_timeout',
92
+ :'ca_cert' => :'ca_cert',
88
93
  :'proxy_url' => :'proxy_url',
89
94
  :'username' => :'username',
90
95
  :'sock_read_timeout' => :'sock_read_timeout',
91
- :'proxy_username' => :'proxy_username',
92
- :'sock_connect_timeout' => :'sock_connect_timeout',
93
- :'ca_cert' => :'ca_cert',
96
+ :'client_cert' => :'client_cert',
94
97
  :'total_timeout' => :'total_timeout',
95
98
  :'headers' => :'headers',
96
- :'proxy_password' => :'proxy_password',
99
+ :'proxy_username' => :'proxy_username',
100
+ :'connect_timeout' => :'connect_timeout',
101
+ :'name' => :'name',
102
+ :'download_concurrency' => :'download_concurrency',
97
103
  :'pulp_labels' => :'pulp_labels',
98
104
  :'tls_validation' => :'tls_validation',
99
105
  :'url' => :'url',
100
- :'max_retries' => :'max_retries',
101
- :'connect_timeout' => :'connect_timeout',
102
- :'client_cert' => :'client_cert',
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
  {
110
- :'download_concurrency' => :'Integer',
114
+ :'rate_limit' => :'Integer',
111
115
  :'password' => :'String',
112
116
  :'client_key' => :'String',
113
- :'rate_limit' => :'Integer',
114
- :'name' => :'String',
117
+ :'proxy_password' => :'String',
118
+ :'max_retries' => :'Integer',
119
+ :'sock_connect_timeout' => :'Float',
120
+ :'ca_cert' => :'String',
115
121
  :'proxy_url' => :'String',
116
122
  :'username' => :'String',
117
123
  :'sock_read_timeout' => :'Float',
118
- :'proxy_username' => :'String',
119
- :'sock_connect_timeout' => :'Float',
120
- :'ca_cert' => :'String',
124
+ :'client_cert' => :'String',
121
125
  :'total_timeout' => :'Float',
122
126
  :'headers' => :'Array<Object>',
123
- :'proxy_password' => :'String',
127
+ :'proxy_username' => :'String',
128
+ :'connect_timeout' => :'Float',
129
+ :'name' => :'String',
130
+ :'download_concurrency' => :'Integer',
124
131
  :'pulp_labels' => :'Object',
125
132
  :'tls_validation' => :'Boolean',
126
133
  :'url' => :'String',
127
- :'max_retries' => :'Integer',
128
- :'connect_timeout' => :'Float',
129
- :'client_cert' => :'String',
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
- :'download_concurrency',
142
+ :'rate_limit',
138
143
  :'password',
139
144
  :'client_key',
140
- :'rate_limit',
145
+ :'proxy_password',
146
+ :'max_retries',
147
+ :'sock_connect_timeout',
148
+ :'ca_cert',
141
149
  :'proxy_url',
142
150
  :'username',
143
151
  :'sock_read_timeout',
144
- :'proxy_username',
145
- :'sock_connect_timeout',
146
- :'ca_cert',
152
+ :'client_cert',
147
153
  :'total_timeout',
148
- :'proxy_password',
149
- :'max_retries',
154
+ :'proxy_username',
150
155
  :'connect_timeout',
151
- :'client_cert',
156
+ :'download_concurrency',
152
157
  ])
153
158
  end
154
159
 
@@ -167,8 +172,8 @@ module PulpAnsibleClient
167
172
  h[k.to_sym] = v
168
173
  }
169
174
 
170
- if attributes.key?(:'download_concurrency')
171
- self.download_concurrency = attributes[:'download_concurrency']
175
+ if attributes.key?(:'rate_limit')
176
+ self.rate_limit = attributes[:'rate_limit']
172
177
  end
173
178
 
174
179
  if attributes.key?(:'password')
@@ -179,12 +184,20 @@ module PulpAnsibleClient
179
184
  self.client_key = attributes[:'client_key']
180
185
  end
181
186
 
182
- if attributes.key?(:'rate_limit')
183
- self.rate_limit = attributes[:'rate_limit']
187
+ if attributes.key?(:'proxy_password')
188
+ self.proxy_password = attributes[:'proxy_password']
184
189
  end
185
190
 
186
- if attributes.key?(:'name')
187
- self.name = attributes[:'name']
191
+ if attributes.key?(:'max_retries')
192
+ self.max_retries = attributes[:'max_retries']
193
+ end
194
+
195
+ if attributes.key?(:'sock_connect_timeout')
196
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
197
+ end
198
+
199
+ if attributes.key?(:'ca_cert')
200
+ self.ca_cert = attributes[:'ca_cert']
188
201
  end
189
202
 
190
203
  if attributes.key?(:'proxy_url')
@@ -199,16 +212,8 @@ module PulpAnsibleClient
199
212
  self.sock_read_timeout = attributes[:'sock_read_timeout']
200
213
  end
201
214
 
202
- if attributes.key?(:'proxy_username')
203
- self.proxy_username = attributes[:'proxy_username']
204
- end
205
-
206
- if attributes.key?(:'sock_connect_timeout')
207
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
208
- end
209
-
210
- if attributes.key?(:'ca_cert')
211
- self.ca_cert = attributes[:'ca_cert']
215
+ if attributes.key?(:'client_cert')
216
+ self.client_cert = attributes[:'client_cert']
212
217
  end
213
218
 
214
219
  if attributes.key?(:'total_timeout')
@@ -221,95 +226,99 @@ module PulpAnsibleClient
221
226
  end
222
227
  end
223
228
 
224
- if attributes.key?(:'proxy_password')
225
- self.proxy_password = attributes[:'proxy_password']
229
+ if attributes.key?(:'proxy_username')
230
+ self.proxy_username = attributes[:'proxy_username']
226
231
  end
227
232
 
228
- if attributes.key?(:'pulp_labels')
229
- self.pulp_labels = attributes[:'pulp_labels']
233
+ if attributes.key?(:'connect_timeout')
234
+ self.connect_timeout = attributes[:'connect_timeout']
230
235
  end
231
236
 
232
- if attributes.key?(:'tls_validation')
233
- self.tls_validation = attributes[:'tls_validation']
237
+ if attributes.key?(:'name')
238
+ self.name = attributes[:'name']
234
239
  end
235
240
 
236
- if attributes.key?(:'url')
237
- self.url = attributes[:'url']
241
+ if attributes.key?(:'download_concurrency')
242
+ self.download_concurrency = attributes[:'download_concurrency']
238
243
  end
239
244
 
240
- if attributes.key?(:'max_retries')
241
- self.max_retries = attributes[:'max_retries']
245
+ if attributes.key?(:'pulp_labels')
246
+ self.pulp_labels = attributes[:'pulp_labels']
242
247
  end
243
248
 
244
- if attributes.key?(:'connect_timeout')
245
- self.connect_timeout = attributes[:'connect_timeout']
249
+ if attributes.key?(:'tls_validation')
250
+ self.tls_validation = attributes[:'tls_validation']
246
251
  end
247
252
 
248
- if attributes.key?(:'client_cert')
249
- self.client_cert = attributes[:'client_cert']
253
+ if attributes.key?(:'url')
254
+ self.url = attributes[:'url']
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 !@download_concurrency.nil? && @download_concurrency < 1
262
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
263
- end
264
-
265
- if @name.nil?
266
- invalid_properties.push('invalid value for "name", name cannot be nil.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
267
272
  end
268
273
 
269
274
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
270
275
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
271
276
  end
272
277
 
273
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
274
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
275
- end
276
-
277
278
  if !@total_timeout.nil? && @total_timeout < 0.0
278
279
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
279
280
  end
280
281
 
281
- if @url.nil?
282
- invalid_properties.push('invalid value for "url", url cannot be nil.')
283
- end
284
-
285
282
  if !@connect_timeout.nil? && @connect_timeout < 0.0
286
283
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
287
284
  end
288
285
 
286
+ if @name.nil?
287
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
288
+ end
289
+
290
+ if !@download_concurrency.nil? && @download_concurrency < 1
291
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
292
+ end
293
+
294
+ if @url.nil?
295
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
296
+ end
297
+
289
298
  invalid_properties
290
299
  end
291
300
 
292
301
  # Check to see if the all the properties in the model are valid
293
302
  # @return true if the model is valid
294
303
  def valid?
295
- return false if !@download_concurrency.nil? && @download_concurrency < 1
296
- return false if @name.nil?
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
304
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
305
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
299
306
  return false if !@total_timeout.nil? && @total_timeout < 0.0
300
- return false if @url.nil?
301
307
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
308
+ return false if @name.nil?
309
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
310
+ return false if @url.nil?
302
311
  true
303
312
  end
304
313
 
305
314
  # Custom attribute writer method with validation
306
- # @param [Object] download_concurrency Value to be assigned
307
- def download_concurrency=(download_concurrency)
308
- if !download_concurrency.nil? && download_concurrency < 1
309
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
315
+ # @param [Object] sock_connect_timeout Value to be assigned
316
+ def sock_connect_timeout=(sock_connect_timeout)
317
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
318
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
310
319
  end
311
320
 
312
- @download_concurrency = download_concurrency
321
+ @sock_connect_timeout = sock_connect_timeout
313
322
  end
314
323
 
315
324
  # Custom attribute writer method with validation
@@ -322,16 +331,6 @@ module PulpAnsibleClient
322
331
  @sock_read_timeout = sock_read_timeout
323
332
  end
324
333
 
325
- # Custom attribute writer method with validation
326
- # @param [Object] sock_connect_timeout Value to be assigned
327
- def sock_connect_timeout=(sock_connect_timeout)
328
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
329
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
330
- end
331
-
332
- @sock_connect_timeout = sock_connect_timeout
333
- end
334
-
335
334
  # Custom attribute writer method with validation
336
335
  # @param [Object] total_timeout Value to be assigned
337
336
  def total_timeout=(total_timeout)
@@ -352,32 +351,43 @@ module PulpAnsibleClient
352
351
  @connect_timeout = connect_timeout
353
352
  end
354
353
 
354
+ # Custom attribute writer method with validation
355
+ # @param [Object] download_concurrency Value to be assigned
356
+ def download_concurrency=(download_concurrency)
357
+ if !download_concurrency.nil? && download_concurrency < 1
358
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
359
+ end
360
+
361
+ @download_concurrency = download_concurrency
362
+ end
363
+
355
364
  # Checks equality by comparing each attribute.
356
365
  # @param [Object] Object to be compared
357
366
  def ==(o)
358
367
  return true if self.equal?(o)
359
368
  self.class == o.class &&
360
- download_concurrency == o.download_concurrency &&
369
+ rate_limit == o.rate_limit &&
361
370
  password == o.password &&
362
371
  client_key == o.client_key &&
363
- rate_limit == o.rate_limit &&
364
- name == o.name &&
372
+ proxy_password == o.proxy_password &&
373
+ max_retries == o.max_retries &&
374
+ sock_connect_timeout == o.sock_connect_timeout &&
375
+ ca_cert == o.ca_cert &&
365
376
  proxy_url == o.proxy_url &&
366
377
  username == o.username &&
367
378
  sock_read_timeout == o.sock_read_timeout &&
368
- proxy_username == o.proxy_username &&
369
- sock_connect_timeout == o.sock_connect_timeout &&
370
- ca_cert == o.ca_cert &&
379
+ client_cert == o.client_cert &&
371
380
  total_timeout == o.total_timeout &&
372
381
  headers == o.headers &&
373
- proxy_password == o.proxy_password &&
382
+ proxy_username == o.proxy_username &&
383
+ connect_timeout == o.connect_timeout &&
384
+ name == o.name &&
385
+ download_concurrency == o.download_concurrency &&
374
386
  pulp_labels == o.pulp_labels &&
375
387
  tls_validation == o.tls_validation &&
376
388
  url == o.url &&
377
- max_retries == o.max_retries &&
378
- connect_timeout == o.connect_timeout &&
379
- client_cert == o.client_cert &&
380
- metadata_only == o.metadata_only
389
+ metadata_only == o.metadata_only &&
390
+ git_ref == o.git_ref
381
391
  end
382
392
 
383
393
  # @see the `==` method
@@ -389,7 +399,7 @@ module PulpAnsibleClient
389
399
  # Calculates hash code according to all attributes.
390
400
  # @return [Integer] Hash code
391
401
  def hash
392
- [download_concurrency, password, client_key, rate_limit, name, proxy_url, username, sock_read_timeout, proxy_username, sock_connect_timeout, ca_cert, total_timeout, headers, proxy_password, pulp_labels, tls_validation, url, max_retries, connect_timeout, client_cert, metadata_only].hash
402
+ [rate_limit, password, client_key, proxy_password, max_retries, sock_connect_timeout, ca_cert, proxy_url, username, sock_read_timeout, client_cert, total_timeout, headers, proxy_username, connect_timeout, name, download_concurrency, pulp_labels, tls_validation, url, metadata_only, git_ref].hash
393
403
  end
394
404
 
395
405
  # Builds the object from hash