pulp_ansible_client 0.20.2 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +23 -23
  7. data/docs/AnsibleGitRemoteResponse.md +24 -24
  8. data/docs/ContentCollectionSignaturesApi.md +7 -5
  9. data/docs/ContentCollectionVersionsApi.md +4 -4
  10. data/docs/PatchedansibleGitRemote.md +23 -23
  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 +6 -6
  14. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  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 +205 -205
  18. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
  19. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +204 -204
  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 +2 -2
  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 +4 -4
  27. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  28. data/spec/models/ansible_git_remote_spec.rb +18 -18
  29. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  30. data/spec/models/tag_response_spec.rb +6 -0
  31. metadata +135 -135
@@ -15,61 +15,61 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- attr_accessor :pulp_href
22
-
23
- # A PEM encoded client certificate used for authentication.
24
- attr_accessor :client_cert
18
+ # Timestamp of the most recent update of the remote.
19
+ attr_accessor :pulp_last_updated
25
20
 
26
- # Headers for aiohttp.Clientsession
27
- attr_accessor :headers
21
+ # If True, TLS peer validation must be performed.
22
+ attr_accessor :tls_validation
28
23
 
29
24
  # The proxy URL. Format: scheme://host:port
30
25
  attr_accessor :proxy_url
31
26
 
32
- # Timestamp of the most recent update of the remote.
33
- attr_accessor :pulp_last_updated
34
-
35
- # Limits requests per second for each concurrent downloader
36
- attr_accessor :rate_limit
27
+ # 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.
28
+ attr_accessor :sock_connect_timeout
37
29
 
38
30
  # List of hidden (write only) fields
39
31
  attr_accessor :hidden_fields
40
32
 
33
+ attr_accessor :pulp_labels
34
+
35
+ # Timestamp of creation.
36
+ attr_accessor :pulp_created
37
+
38
+ # Headers for aiohttp.Clientsession
39
+ attr_accessor :headers
40
+
41
+ # 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.
42
+ attr_accessor :sock_read_timeout
43
+
44
+ # A PEM encoded client certificate used for authentication.
45
+ attr_accessor :client_cert
46
+
41
47
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
42
48
  attr_accessor :max_retries
43
49
 
44
- # A unique name for this remote.
45
- attr_accessor :name
46
-
47
50
  # The URL of an external content source.
48
51
  attr_accessor :url
49
52
 
53
+ # Total number of simultaneous connections. If not set then the default value will be used.
54
+ attr_accessor :download_concurrency
55
+
50
56
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
51
57
  attr_accessor :ca_cert
52
58
 
53
- # 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.
54
- attr_accessor :sock_read_timeout
55
-
56
- # If True, TLS peer validation must be performed.
57
- attr_accessor :tls_validation
58
-
59
- attr_accessor :pulp_labels
59
+ attr_accessor :pulp_href
60
60
 
61
61
  # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
62
  attr_accessor :connect_timeout
63
63
 
64
- # 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
- attr_accessor :sock_connect_timeout
66
-
67
- # Total number of simultaneous connections. If not set then the default value will be used.
68
- attr_accessor :download_concurrency
64
+ # Limits requests per second for each concurrent downloader
65
+ attr_accessor :rate_limit
69
66
 
70
67
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
71
68
  attr_accessor :total_timeout
72
69
 
70
+ # A unique name for this remote.
71
+ attr_accessor :name
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
75
75
 
@@ -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
- :'pulp_created' => :'pulp_created',
83
- :'pulp_href' => :'pulp_href',
84
- :'client_cert' => :'client_cert',
85
- :'headers' => :'headers',
86
- :'proxy_url' => :'proxy_url',
87
82
  :'pulp_last_updated' => :'pulp_last_updated',
88
- :'rate_limit' => :'rate_limit',
83
+ :'tls_validation' => :'tls_validation',
84
+ :'proxy_url' => :'proxy_url',
85
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
86
  :'hidden_fields' => :'hidden_fields',
87
+ :'pulp_labels' => :'pulp_labels',
88
+ :'pulp_created' => :'pulp_created',
89
+ :'headers' => :'headers',
90
+ :'sock_read_timeout' => :'sock_read_timeout',
91
+ :'client_cert' => :'client_cert',
90
92
  :'max_retries' => :'max_retries',
91
- :'name' => :'name',
92
93
  :'url' => :'url',
94
+ :'download_concurrency' => :'download_concurrency',
93
95
  :'ca_cert' => :'ca_cert',
94
- :'sock_read_timeout' => :'sock_read_timeout',
95
- :'tls_validation' => :'tls_validation',
96
- :'pulp_labels' => :'pulp_labels',
96
+ :'pulp_href' => :'pulp_href',
97
97
  :'connect_timeout' => :'connect_timeout',
98
- :'sock_connect_timeout' => :'sock_connect_timeout',
99
- :'download_concurrency' => :'download_concurrency',
98
+ :'rate_limit' => :'rate_limit',
100
99
  :'total_timeout' => :'total_timeout',
100
+ :'name' => :'name',
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
- :'pulp_created' => :'DateTime',
110
- :'pulp_href' => :'String',
111
- :'client_cert' => :'String',
112
- :'headers' => :'Array<Object>',
113
- :'proxy_url' => :'String',
114
109
  :'pulp_last_updated' => :'DateTime',
115
- :'rate_limit' => :'Integer',
110
+ :'tls_validation' => :'Boolean',
111
+ :'proxy_url' => :'String',
112
+ :'sock_connect_timeout' => :'Float',
116
113
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
114
+ :'pulp_labels' => :'Hash<String, String>',
115
+ :'pulp_created' => :'DateTime',
116
+ :'headers' => :'Array<Object>',
117
+ :'sock_read_timeout' => :'Float',
118
+ :'client_cert' => :'String',
117
119
  :'max_retries' => :'Integer',
118
- :'name' => :'String',
119
120
  :'url' => :'String',
121
+ :'download_concurrency' => :'Integer',
120
122
  :'ca_cert' => :'String',
121
- :'sock_read_timeout' => :'Float',
122
- :'tls_validation' => :'Boolean',
123
- :'pulp_labels' => :'Hash<String, String>',
123
+ :'pulp_href' => :'String',
124
124
  :'connect_timeout' => :'Float',
125
- :'sock_connect_timeout' => :'Float',
126
- :'download_concurrency' => :'Integer',
125
+ :'rate_limit' => :'Integer',
127
126
  :'total_timeout' => :'Float',
127
+ :'name' => :'String',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,15 +133,15 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'client_cert',
137
136
  :'proxy_url',
138
- :'rate_limit',
137
+ :'sock_connect_timeout',
138
+ :'sock_read_timeout',
139
+ :'client_cert',
139
140
  :'max_retries',
141
+ :'download_concurrency',
140
142
  :'ca_cert',
141
- :'sock_read_timeout',
142
143
  :'connect_timeout',
143
- :'sock_connect_timeout',
144
- :'download_concurrency',
144
+ :'rate_limit',
145
145
  :'total_timeout',
146
146
  ])
147
147
  end
@@ -161,88 +161,88 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'pulp_created')
165
- self.pulp_created = attributes[:'pulp_created']
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
166
166
  end
167
167
 
168
- if attributes.key?(:'pulp_href')
169
- self.pulp_href = attributes[:'pulp_href']
168
+ if attributes.key?(:'tls_validation')
169
+ self.tls_validation = attributes[:'tls_validation']
170
170
  end
171
171
 
172
- if attributes.key?(:'client_cert')
173
- self.client_cert = attributes[:'client_cert']
172
+ if attributes.key?(:'proxy_url')
173
+ self.proxy_url = attributes[:'proxy_url']
174
174
  end
175
175
 
176
- if attributes.key?(:'headers')
177
- if (value = attributes[:'headers']).is_a?(Array)
178
- self.headers = value
179
- end
176
+ if attributes.key?(:'sock_connect_timeout')
177
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
180
178
  end
181
179
 
182
- if attributes.key?(:'proxy_url')
183
- self.proxy_url = attributes[:'proxy_url']
180
+ if attributes.key?(:'hidden_fields')
181
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
182
+ self.hidden_fields = value
183
+ end
184
184
  end
185
185
 
186
- if attributes.key?(:'pulp_last_updated')
187
- self.pulp_last_updated = attributes[:'pulp_last_updated']
186
+ if attributes.key?(:'pulp_labels')
187
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
188
+ self.pulp_labels = value
189
+ end
188
190
  end
189
191
 
190
- if attributes.key?(:'rate_limit')
191
- self.rate_limit = attributes[:'rate_limit']
192
+ if attributes.key?(:'pulp_created')
193
+ self.pulp_created = attributes[:'pulp_created']
192
194
  end
193
195
 
194
- if attributes.key?(:'hidden_fields')
195
- if (value = attributes[:'hidden_fields']).is_a?(Array)
196
- self.hidden_fields = value
196
+ if attributes.key?(:'headers')
197
+ if (value = attributes[:'headers']).is_a?(Array)
198
+ self.headers = value
197
199
  end
198
200
  end
199
201
 
200
- if attributes.key?(:'max_retries')
201
- self.max_retries = attributes[:'max_retries']
202
+ if attributes.key?(:'sock_read_timeout')
203
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
202
204
  end
203
205
 
204
- if attributes.key?(:'name')
205
- self.name = attributes[:'name']
206
+ if attributes.key?(:'client_cert')
207
+ self.client_cert = attributes[:'client_cert']
206
208
  end
207
209
 
208
- if attributes.key?(:'url')
209
- self.url = attributes[:'url']
210
+ if attributes.key?(:'max_retries')
211
+ self.max_retries = attributes[:'max_retries']
210
212
  end
211
213
 
212
- if attributes.key?(:'ca_cert')
213
- self.ca_cert = attributes[:'ca_cert']
214
+ if attributes.key?(:'url')
215
+ self.url = attributes[:'url']
214
216
  end
215
217
 
216
- if attributes.key?(:'sock_read_timeout')
217
- self.sock_read_timeout = attributes[:'sock_read_timeout']
218
+ if attributes.key?(:'download_concurrency')
219
+ self.download_concurrency = attributes[:'download_concurrency']
218
220
  end
219
221
 
220
- if attributes.key?(:'tls_validation')
221
- self.tls_validation = attributes[:'tls_validation']
222
+ if attributes.key?(:'ca_cert')
223
+ self.ca_cert = attributes[:'ca_cert']
222
224
  end
223
225
 
224
- if attributes.key?(:'pulp_labels')
225
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
226
- self.pulp_labels = value
227
- end
226
+ if attributes.key?(:'pulp_href')
227
+ self.pulp_href = attributes[:'pulp_href']
228
228
  end
229
229
 
230
230
  if attributes.key?(:'connect_timeout')
231
231
  self.connect_timeout = attributes[:'connect_timeout']
232
232
  end
233
233
 
234
- if attributes.key?(:'sock_connect_timeout')
235
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
236
- end
237
-
238
- if attributes.key?(:'download_concurrency')
239
- self.download_concurrency = attributes[:'download_concurrency']
234
+ if attributes.key?(:'rate_limit')
235
+ self.rate_limit = attributes[:'rate_limit']
240
236
  end
241
237
 
242
238
  if attributes.key?(:'total_timeout')
243
239
  self.total_timeout = attributes[:'total_timeout']
244
240
  end
245
241
 
242
+ if attributes.key?(:'name')
243
+ self.name = attributes[:'name']
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 @name.nil?
260
- invalid_properties.push('invalid value for "name", name cannot be nil.')
261
- end
262
-
263
- if @url.nil?
264
- invalid_properties.push('invalid value for "url", url cannot be nil.')
259
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
260
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
265
261
  end
266
262
 
267
263
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
268
264
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
269
265
  end
270
266
 
271
- if !@connect_timeout.nil? && @connect_timeout < 0.0
272
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
- end
274
-
275
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
276
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
267
+ if @url.nil?
268
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
277
269
  end
278
270
 
279
271
  if !@download_concurrency.nil? && @download_concurrency < 1
280
272
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
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 @name.nil?
284
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
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 @name.nil?
294
- return false if @url.nil?
295
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
293
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
295
+ return false if @url.nil?
298
296
  return false if !@download_concurrency.nil? && @download_concurrency < 1
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 @name.nil?
300
300
  true
301
301
  end
302
302
 
303
- # Custom attribute writer method with validation
304
- # @param [Object] sock_read_timeout Value to be assigned
305
- def sock_read_timeout=(sock_read_timeout)
306
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
308
- end
309
-
310
- @sock_read_timeout = sock_read_timeout
311
- end
312
-
313
- # Custom attribute writer method with validation
314
- # @param [Object] connect_timeout Value to be assigned
315
- def connect_timeout=(connect_timeout)
316
- if !connect_timeout.nil? && connect_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
318
- end
319
-
320
- @connect_timeout = connect_timeout
321
- end
322
-
323
303
  # Custom attribute writer method with validation
324
304
  # @param [Object] sock_connect_timeout Value to be assigned
325
305
  def sock_connect_timeout=(sock_connect_timeout)
@@ -330,6 +310,16 @@ module PulpAnsibleClient
330
310
  @sock_connect_timeout = sock_connect_timeout
331
311
  end
332
312
 
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] sock_read_timeout Value to be assigned
315
+ def sock_read_timeout=(sock_read_timeout)
316
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
318
+ end
319
+
320
+ @sock_read_timeout = sock_read_timeout
321
+ end
322
+
333
323
  # Custom attribute writer method with validation
334
324
  # @param [Object] download_concurrency Value to be assigned
335
325
  def download_concurrency=(download_concurrency)
@@ -340,6 +330,16 @@ module PulpAnsibleClient
340
330
  @download_concurrency = download_concurrency
341
331
  end
342
332
 
333
+ # Custom attribute writer method with validation
334
+ # @param [Object] connect_timeout Value to be assigned
335
+ def connect_timeout=(connect_timeout)
336
+ if !connect_timeout.nil? && connect_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
338
+ end
339
+
340
+ @connect_timeout = connect_timeout
341
+ end
342
+
343
343
  # Custom attribute writer method with validation
344
344
  # @param [Object] total_timeout Value to be assigned
345
345
  def total_timeout=(total_timeout)
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- pulp_created == o.pulp_created &&
359
- pulp_href == o.pulp_href &&
360
- client_cert == o.client_cert &&
361
- headers == o.headers &&
362
- proxy_url == o.proxy_url &&
363
358
  pulp_last_updated == o.pulp_last_updated &&
364
- rate_limit == o.rate_limit &&
359
+ tls_validation == o.tls_validation &&
360
+ proxy_url == o.proxy_url &&
361
+ sock_connect_timeout == o.sock_connect_timeout &&
365
362
  hidden_fields == o.hidden_fields &&
363
+ pulp_labels == o.pulp_labels &&
364
+ pulp_created == o.pulp_created &&
365
+ headers == o.headers &&
366
+ sock_read_timeout == o.sock_read_timeout &&
367
+ client_cert == o.client_cert &&
366
368
  max_retries == o.max_retries &&
367
- name == o.name &&
368
369
  url == o.url &&
370
+ download_concurrency == o.download_concurrency &&
369
371
  ca_cert == o.ca_cert &&
370
- sock_read_timeout == o.sock_read_timeout &&
371
- tls_validation == o.tls_validation &&
372
- pulp_labels == o.pulp_labels &&
372
+ pulp_href == o.pulp_href &&
373
373
  connect_timeout == o.connect_timeout &&
374
- sock_connect_timeout == o.sock_connect_timeout &&
375
- download_concurrency == o.download_concurrency &&
374
+ rate_limit == o.rate_limit &&
376
375
  total_timeout == o.total_timeout &&
376
+ name == o.name &&
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
- [pulp_created, pulp_href, client_cert, headers, proxy_url, pulp_last_updated, rate_limit, hidden_fields, max_retries, name, url, ca_cert, sock_read_timeout, tls_validation, pulp_labels, connect_timeout, sock_connect_timeout, download_concurrency, total_timeout, metadata_only, git_ref].hash
390
+ [pulp_last_updated, tls_validation, proxy_url, sock_connect_timeout, hidden_fields, pulp_labels, pulp_created, headers, sock_read_timeout, client_cert, max_retries, url, download_concurrency, ca_cert, pulp_href, connect_timeout, rate_limit, total_timeout, name, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash