pulp_ansible_client 0.14.2 → 0.15.0.dev1656650250

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