pulp_ansible_client 0.20.4 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionVersionSignature.md +3 -1
  6. data/docs/AnsibleGitRemote.md +28 -28
  7. data/docs/AnsibleGitRemoteResponse.md +24 -24
  8. data/docs/ContentCollectionSignaturesApi.md +7 -5
  9. data/docs/ContentCollectionVersionsApi.md +6 -6
  10. data/docs/PatchedansibleGitRemote.md +28 -28
  11. data/docs/TagResponse.md +3 -1
  12. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +9 -10
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -8
  14. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +16 -16
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  16. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +12 -7
  17. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +241 -241
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +146 -146
  19. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +232 -232
  20. data/lib/pulp_ansible_client/models/tag_response.rb +13 -4
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/content_collection_signatures_api_spec.rb +2 -1
  23. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  24. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  25. data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
  26. data/spec/models/ansible_collection_version_spec.rb +2 -2
  27. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  28. data/spec/models/ansible_git_remote_spec.rb +20 -20
  29. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  30. data/spec/models/tag_response_spec.rb +6 -0
  31. metadata +133 -133
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
19
- attr_accessor :connect_timeout
18
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
19
+ attr_accessor :ca_cert
20
20
 
21
- attr_accessor :pulp_href
21
+ # Timestamp of the most recent update of the remote.
22
+ attr_accessor :pulp_last_updated
22
23
 
23
- # A PEM encoded client certificate used for authentication.
24
- attr_accessor :client_cert
24
+ # The URL of an external content source.
25
+ attr_accessor :url
25
26
 
26
- # The proxy URL. Format: scheme://host:port
27
- attr_accessor :proxy_url
27
+ # If True, TLS peer validation must be performed.
28
+ attr_accessor :tls_validation
28
29
 
29
- # A unique name for this remote.
30
- attr_accessor :name
30
+ attr_accessor :pulp_href
31
+
32
+ # 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.
33
+ attr_accessor :sock_read_timeout
31
34
 
32
35
  # Timestamp of creation.
33
36
  attr_accessor :pulp_created
34
37
 
35
- # The URL of an external content source.
36
- attr_accessor :url
37
-
38
- # Total number of simultaneous connections. If not set then the default value will be used.
39
- attr_accessor :download_concurrency
40
-
41
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
42
- attr_accessor :ca_cert
43
-
44
38
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
45
39
  attr_accessor :max_retries
46
40
 
41
+ # A unique name for this remote.
42
+ attr_accessor :name
43
+
47
44
  # Headers for aiohttp.Clientsession
48
45
  attr_accessor :headers
49
46
 
50
- attr_accessor :pulp_labels
51
-
52
47
  # Limits requests per second for each concurrent downloader
53
48
  attr_accessor :rate_limit
54
49
 
55
- # If True, TLS peer validation must be performed.
56
- attr_accessor :tls_validation
57
-
58
- # 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.
59
- attr_accessor :sock_read_timeout
60
-
61
- # Timestamp of the most recent update of the remote.
62
- attr_accessor :pulp_last_updated
50
+ # A PEM encoded client certificate used for authentication.
51
+ attr_accessor :client_cert
63
52
 
64
53
  # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
65
54
  attr_accessor :sock_connect_timeout
66
55
 
56
+ # List of hidden (write only) fields
57
+ attr_accessor :hidden_fields
58
+
59
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
+ attr_accessor :connect_timeout
61
+
67
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
68
63
  attr_accessor :total_timeout
69
64
 
70
- # List of hidden (write only) fields
71
- attr_accessor :hidden_fields
65
+ attr_accessor :pulp_labels
66
+
67
+ # The proxy URL. Format: scheme://host:port
68
+ attr_accessor :proxy_url
69
+
70
+ # Total number of simultaneous connections. If not set then the default value will be used.
71
+ attr_accessor :download_concurrency
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'connect_timeout' => :'connect_timeout',
82
+ :'ca_cert' => :'ca_cert',
83
+ :'pulp_last_updated' => :'pulp_last_updated',
84
+ :'url' => :'url',
85
+ :'tls_validation' => :'tls_validation',
83
86
  :'pulp_href' => :'pulp_href',
84
- :'client_cert' => :'client_cert',
85
- :'proxy_url' => :'proxy_url',
86
- :'name' => :'name',
87
+ :'sock_read_timeout' => :'sock_read_timeout',
87
88
  :'pulp_created' => :'pulp_created',
88
- :'url' => :'url',
89
- :'download_concurrency' => :'download_concurrency',
90
- :'ca_cert' => :'ca_cert',
91
89
  :'max_retries' => :'max_retries',
90
+ :'name' => :'name',
92
91
  :'headers' => :'headers',
93
- :'pulp_labels' => :'pulp_labels',
94
92
  :'rate_limit' => :'rate_limit',
95
- :'tls_validation' => :'tls_validation',
96
- :'sock_read_timeout' => :'sock_read_timeout',
97
- :'pulp_last_updated' => :'pulp_last_updated',
93
+ :'client_cert' => :'client_cert',
98
94
  :'sock_connect_timeout' => :'sock_connect_timeout',
99
- :'total_timeout' => :'total_timeout',
100
95
  :'hidden_fields' => :'hidden_fields',
96
+ :'connect_timeout' => :'connect_timeout',
97
+ :'total_timeout' => :'total_timeout',
98
+ :'pulp_labels' => :'pulp_labels',
99
+ :'proxy_url' => :'proxy_url',
100
+ :'download_concurrency' => :'download_concurrency',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'connect_timeout' => :'Float',
109
+ :'ca_cert' => :'String',
110
+ :'pulp_last_updated' => :'DateTime',
111
+ :'url' => :'String',
112
+ :'tls_validation' => :'Boolean',
110
113
  :'pulp_href' => :'String',
111
- :'client_cert' => :'String',
112
- :'proxy_url' => :'String',
113
- :'name' => :'String',
114
+ :'sock_read_timeout' => :'Float',
114
115
  :'pulp_created' => :'DateTime',
115
- :'url' => :'String',
116
- :'download_concurrency' => :'Integer',
117
- :'ca_cert' => :'String',
118
116
  :'max_retries' => :'Integer',
117
+ :'name' => :'String',
119
118
  :'headers' => :'Array<Object>',
120
- :'pulp_labels' => :'Hash<String, String>',
121
119
  :'rate_limit' => :'Integer',
122
- :'tls_validation' => :'Boolean',
123
- :'sock_read_timeout' => :'Float',
124
- :'pulp_last_updated' => :'DateTime',
120
+ :'client_cert' => :'String',
125
121
  :'sock_connect_timeout' => :'Float',
126
- :'total_timeout' => :'Float',
127
122
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
123
+ :'connect_timeout' => :'Float',
124
+ :'total_timeout' => :'Float',
125
+ :'pulp_labels' => :'Hash<String, String>',
126
+ :'proxy_url' => :'String',
127
+ :'download_concurrency' => :'Integer',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'connect_timeout',
137
- :'client_cert',
138
- :'proxy_url',
139
- :'download_concurrency',
140
136
  :'ca_cert',
137
+ :'sock_read_timeout',
141
138
  :'max_retries',
142
139
  :'rate_limit',
143
- :'sock_read_timeout',
140
+ :'client_cert',
144
141
  :'sock_connect_timeout',
142
+ :'connect_timeout',
145
143
  :'total_timeout',
144
+ :'proxy_url',
145
+ :'download_concurrency',
146
146
  ])
147
147
  end
148
148
 
@@ -161,88 +161,88 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'connect_timeout')
165
- self.connect_timeout = attributes[:'connect_timeout']
166
- end
167
-
168
- if attributes.key?(:'pulp_href')
169
- self.pulp_href = attributes[:'pulp_href']
170
- end
171
-
172
- if attributes.key?(:'client_cert')
173
- self.client_cert = attributes[:'client_cert']
164
+ if attributes.key?(:'ca_cert')
165
+ self.ca_cert = attributes[:'ca_cert']
174
166
  end
175
167
 
176
- if attributes.key?(:'proxy_url')
177
- self.proxy_url = attributes[:'proxy_url']
168
+ if attributes.key?(:'pulp_last_updated')
169
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
178
170
  end
179
171
 
180
- if attributes.key?(:'name')
181
- self.name = attributes[:'name']
172
+ if attributes.key?(:'url')
173
+ self.url = attributes[:'url']
182
174
  end
183
175
 
184
- if attributes.key?(:'pulp_created')
185
- self.pulp_created = attributes[:'pulp_created']
176
+ if attributes.key?(:'tls_validation')
177
+ self.tls_validation = attributes[:'tls_validation']
186
178
  end
187
179
 
188
- if attributes.key?(:'url')
189
- self.url = attributes[:'url']
180
+ if attributes.key?(:'pulp_href')
181
+ self.pulp_href = attributes[:'pulp_href']
190
182
  end
191
183
 
192
- if attributes.key?(:'download_concurrency')
193
- self.download_concurrency = attributes[:'download_concurrency']
184
+ if attributes.key?(:'sock_read_timeout')
185
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
194
186
  end
195
187
 
196
- if attributes.key?(:'ca_cert')
197
- self.ca_cert = attributes[:'ca_cert']
188
+ if attributes.key?(:'pulp_created')
189
+ self.pulp_created = attributes[:'pulp_created']
198
190
  end
199
191
 
200
192
  if attributes.key?(:'max_retries')
201
193
  self.max_retries = attributes[:'max_retries']
202
194
  end
203
195
 
196
+ if attributes.key?(:'name')
197
+ self.name = attributes[:'name']
198
+ end
199
+
204
200
  if attributes.key?(:'headers')
205
201
  if (value = attributes[:'headers']).is_a?(Array)
206
202
  self.headers = value
207
203
  end
208
204
  end
209
205
 
210
- if attributes.key?(:'pulp_labels')
211
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
- self.pulp_labels = value
213
- end
214
- end
215
-
216
206
  if attributes.key?(:'rate_limit')
217
207
  self.rate_limit = attributes[:'rate_limit']
218
208
  end
219
209
 
220
- if attributes.key?(:'tls_validation')
221
- self.tls_validation = attributes[:'tls_validation']
210
+ if attributes.key?(:'client_cert')
211
+ self.client_cert = attributes[:'client_cert']
222
212
  end
223
213
 
224
- if attributes.key?(:'sock_read_timeout')
225
- self.sock_read_timeout = attributes[:'sock_read_timeout']
214
+ if attributes.key?(:'sock_connect_timeout')
215
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
226
216
  end
227
217
 
228
- if attributes.key?(:'pulp_last_updated')
229
- self.pulp_last_updated = attributes[:'pulp_last_updated']
218
+ if attributes.key?(:'hidden_fields')
219
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
220
+ self.hidden_fields = value
221
+ end
230
222
  end
231
223
 
232
- if attributes.key?(:'sock_connect_timeout')
233
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
224
+ if attributes.key?(:'connect_timeout')
225
+ self.connect_timeout = attributes[:'connect_timeout']
234
226
  end
235
227
 
236
228
  if attributes.key?(:'total_timeout')
237
229
  self.total_timeout = attributes[:'total_timeout']
238
230
  end
239
231
 
240
- if attributes.key?(:'hidden_fields')
241
- if (value = attributes[:'hidden_fields']).is_a?(Array)
242
- self.hidden_fields = value
232
+ if attributes.key?(:'pulp_labels')
233
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
234
+ self.pulp_labels = value
243
235
  end
244
236
  end
245
237
 
238
+ if attributes.key?(:'proxy_url')
239
+ self.proxy_url = attributes[:'proxy_url']
240
+ end
241
+
242
+ if attributes.key?(:'download_concurrency')
243
+ self.download_concurrency = attributes[:'download_concurrency']
244
+ end
245
+
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -256,70 +256,50 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if !@connect_timeout.nil? && @connect_timeout < 0.0
260
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
261
- end
262
-
263
- if @name.nil?
264
- invalid_properties.push('invalid value for "name", name cannot be nil.')
265
- end
266
-
267
259
  if @url.nil?
268
260
  invalid_properties.push('invalid value for "url", url cannot be nil.')
269
261
  end
270
262
 
271
- if !@download_concurrency.nil? && @download_concurrency < 1
272
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
273
- end
274
-
275
263
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
276
264
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
277
265
  end
278
266
 
267
+ if @name.nil?
268
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
269
+ end
270
+
279
271
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
272
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
281
273
  end
282
274
 
275
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
276
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
277
+ end
278
+
283
279
  if !@total_timeout.nil? && @total_timeout < 0.0
284
280
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
285
281
  end
286
282
 
283
+ if !@download_concurrency.nil? && @download_concurrency < 1
284
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
285
+ end
286
+
287
287
  invalid_properties
288
288
  end
289
289
 
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
294
- return false if @name.nil?
295
293
  return false if @url.nil?
296
- return false if !@download_concurrency.nil? && @download_concurrency < 1
297
294
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
295
+ return false if @name.nil?
298
296
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
297
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
299
298
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
300
300
  true
301
301
  end
302
302
 
303
- # Custom attribute writer method with validation
304
- # @param [Object] connect_timeout Value to be assigned
305
- def connect_timeout=(connect_timeout)
306
- if !connect_timeout.nil? && connect_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
308
- end
309
-
310
- @connect_timeout = connect_timeout
311
- end
312
-
313
- # Custom attribute writer method with validation
314
- # @param [Object] download_concurrency Value to be assigned
315
- def download_concurrency=(download_concurrency)
316
- if !download_concurrency.nil? && download_concurrency < 1
317
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
318
- end
319
-
320
- @download_concurrency = download_concurrency
321
- end
322
-
323
303
  # Custom attribute writer method with validation
324
304
  # @param [Object] sock_read_timeout Value to be assigned
325
305
  def sock_read_timeout=(sock_read_timeout)
@@ -340,6 +320,16 @@ module PulpAnsibleClient
340
320
  @sock_connect_timeout = sock_connect_timeout
341
321
  end
342
322
 
323
+ # Custom attribute writer method with validation
324
+ # @param [Object] connect_timeout Value to be assigned
325
+ def connect_timeout=(connect_timeout)
326
+ if !connect_timeout.nil? && connect_timeout < 0.0
327
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
328
+ end
329
+
330
+ @connect_timeout = connect_timeout
331
+ end
332
+
343
333
  # Custom attribute writer method with validation
344
334
  # @param [Object] total_timeout Value to be assigned
345
335
  def total_timeout=(total_timeout)
@@ -350,30 +340,40 @@ module PulpAnsibleClient
350
340
  @total_timeout = total_timeout
351
341
  end
352
342
 
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] download_concurrency Value to be assigned
345
+ def download_concurrency=(download_concurrency)
346
+ if !download_concurrency.nil? && download_concurrency < 1
347
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
348
+ end
349
+
350
+ @download_concurrency = download_concurrency
351
+ end
352
+
353
353
  # Checks equality by comparing each attribute.
354
354
  # @param [Object] Object to be compared
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- connect_timeout == o.connect_timeout &&
358
+ ca_cert == o.ca_cert &&
359
+ pulp_last_updated == o.pulp_last_updated &&
360
+ url == o.url &&
361
+ tls_validation == o.tls_validation &&
359
362
  pulp_href == o.pulp_href &&
360
- client_cert == o.client_cert &&
361
- proxy_url == o.proxy_url &&
362
- name == o.name &&
363
+ sock_read_timeout == o.sock_read_timeout &&
363
364
  pulp_created == o.pulp_created &&
364
- url == o.url &&
365
- download_concurrency == o.download_concurrency &&
366
- ca_cert == o.ca_cert &&
367
365
  max_retries == o.max_retries &&
366
+ name == o.name &&
368
367
  headers == o.headers &&
369
- pulp_labels == o.pulp_labels &&
370
368
  rate_limit == o.rate_limit &&
371
- tls_validation == o.tls_validation &&
372
- sock_read_timeout == o.sock_read_timeout &&
373
- pulp_last_updated == o.pulp_last_updated &&
369
+ client_cert == o.client_cert &&
374
370
  sock_connect_timeout == o.sock_connect_timeout &&
375
- total_timeout == o.total_timeout &&
376
371
  hidden_fields == o.hidden_fields &&
372
+ connect_timeout == o.connect_timeout &&
373
+ total_timeout == o.total_timeout &&
374
+ pulp_labels == o.pulp_labels &&
375
+ proxy_url == o.proxy_url &&
376
+ download_concurrency == o.download_concurrency &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [connect_timeout, pulp_href, client_cert, proxy_url, name, pulp_created, url, download_concurrency, ca_cert, max_retries, headers, pulp_labels, rate_limit, tls_validation, sock_read_timeout, pulp_last_updated, sock_connect_timeout, total_timeout, hidden_fields, metadata_only, git_ref].hash
390
+ [ca_cert, pulp_last_updated, url, tls_validation, pulp_href, sock_read_timeout, pulp_created, max_retries, name, headers, rate_limit, client_cert, sock_connect_timeout, hidden_fields, connect_timeout, total_timeout, pulp_labels, proxy_url, download_concurrency, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash