pulp_ansible_client 0.13.0 → 0.13.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/AnsibleAnsibleRepository.md +1 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  5. data/docs/AnsibleGitRemote.md +28 -28
  6. data/docs/AnsibleGitRemoteResponse.md +24 -24
  7. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  8. data/docs/PatchedansibleGitRemote.md +28 -28
  9. data/docs/Repair.md +17 -0
  10. data/docs/RepositoriesAnsibleVersionsApi.md +4 -4
  11. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +9 -9
  12. data/lib/pulp_ansible_client/api_client.rb +1 -1
  13. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -1
  14. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -1
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +221 -221
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +133 -133
  17. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -1
  18. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +219 -219
  19. data/lib/pulp_ansible_client/models/{repository_version.rb → repair.rb} +13 -12
  20. data/lib/pulp_ansible_client/version.rb +1 -1
  21. data/lib/pulp_ansible_client.rb +1 -3
  22. data/pulp_ansible_client.gemspec +3 -3
  23. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  24. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  25. data/spec/models/ansible_git_remote_spec.rb +17 -17
  26. data/spec/models/patchedansible_git_remote_spec.rb +17 -17
  27. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  28. metadata +110 -119
  29. data/docs/ContentSummary.md +0 -21
  30. data/docs/KeyringEnum.md +0 -16
  31. data/docs/RepositoryVersion.md +0 -17
  32. data/git_push.sh +0 -58
  33. data/lib/pulp_ansible_client/models/content_summary.rb +0 -246
  34. data/lib/pulp_ansible_client/models/keyring_enum.rb +0 -40
  35. data/spec/models/content_summary_spec.rb +0 -53
  36. data/spec/models/keyring_enum_spec.rb +0 -35
@@ -15,57 +15,57 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # If True, TLS peer validation must be performed.
19
- attr_accessor :tls_validation
20
-
21
- # Timestamp of creation.
22
- attr_accessor :pulp_created
23
-
24
- attr_accessor :pulp_labels
18
+ # 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.
19
+ attr_accessor :sock_read_timeout
25
20
 
26
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
27
- attr_accessor :max_retries
21
+ # The proxy URL. Format: scheme://host:port
22
+ attr_accessor :proxy_url
28
23
 
29
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.
30
25
  attr_accessor :total_timeout
31
26
 
32
- # The proxy URL. Format: scheme://host:port
33
- attr_accessor :proxy_url
27
+ # A unique name for this remote.
28
+ attr_accessor :name
34
29
 
35
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
31
  attr_accessor :ca_cert
37
32
 
38
- # Limits requests per second for each concurrent downloader
39
- attr_accessor :rate_limit
33
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
34
+ attr_accessor :max_retries
40
35
 
41
36
  # 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.
42
37
  attr_accessor :sock_connect_timeout
43
38
 
44
- # Headers for aiohttp.Clientsession
45
- attr_accessor :headers
39
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
+ attr_accessor :connect_timeout
41
+
42
+ # The URL of an external content source.
43
+ attr_accessor :url
46
44
 
47
45
  # Total number of simultaneous connections. If not set then the default value will be used.
48
46
  attr_accessor :download_concurrency
49
47
 
50
- attr_accessor :pulp_href
48
+ # Timestamp of creation.
49
+ attr_accessor :pulp_created
51
50
 
52
- # Timestamp of the most recent update of the remote.
53
- attr_accessor :pulp_last_updated
51
+ attr_accessor :pulp_href
54
52
 
55
- # 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.
56
- attr_accessor :sock_read_timeout
53
+ attr_accessor :pulp_labels
57
54
 
58
55
  # A PEM encoded client certificate used for authentication.
59
56
  attr_accessor :client_cert
60
57
 
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
- attr_accessor :connect_timeout
58
+ # Limits requests per second for each concurrent downloader
59
+ attr_accessor :rate_limit
63
60
 
64
- # The URL of an external content source.
65
- attr_accessor :url
61
+ # Headers for aiohttp.Clientsession
62
+ attr_accessor :headers
66
63
 
67
- # A unique name for this remote.
68
- attr_accessor :name
64
+ # If True, TLS peer validation must be performed.
65
+ attr_accessor :tls_validation
66
+
67
+ # Timestamp of the most recent update of the remote.
68
+ attr_accessor :pulp_last_updated
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
- :'tls_validation' => :'tls_validation',
80
- :'pulp_created' => :'pulp_created',
81
- :'pulp_labels' => :'pulp_labels',
82
- :'max_retries' => :'max_retries',
83
- :'total_timeout' => :'total_timeout',
79
+ :'sock_read_timeout' => :'sock_read_timeout',
84
80
  :'proxy_url' => :'proxy_url',
81
+ :'total_timeout' => :'total_timeout',
82
+ :'name' => :'name',
85
83
  :'ca_cert' => :'ca_cert',
86
- :'rate_limit' => :'rate_limit',
84
+ :'max_retries' => :'max_retries',
87
85
  :'sock_connect_timeout' => :'sock_connect_timeout',
88
- :'headers' => :'headers',
86
+ :'connect_timeout' => :'connect_timeout',
87
+ :'url' => :'url',
89
88
  :'download_concurrency' => :'download_concurrency',
89
+ :'pulp_created' => :'pulp_created',
90
90
  :'pulp_href' => :'pulp_href',
91
- :'pulp_last_updated' => :'pulp_last_updated',
92
- :'sock_read_timeout' => :'sock_read_timeout',
91
+ :'pulp_labels' => :'pulp_labels',
93
92
  :'client_cert' => :'client_cert',
94
- :'connect_timeout' => :'connect_timeout',
95
- :'url' => :'url',
96
- :'name' => :'name',
93
+ :'rate_limit' => :'rate_limit',
94
+ :'headers' => :'headers',
95
+ :'tls_validation' => :'tls_validation',
96
+ :'pulp_last_updated' => :'pulp_last_updated',
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
- :'tls_validation' => :'Boolean',
106
- :'pulp_created' => :'DateTime',
107
- :'pulp_labels' => :'Object',
108
- :'max_retries' => :'Integer',
109
- :'total_timeout' => :'Float',
105
+ :'sock_read_timeout' => :'Float',
110
106
  :'proxy_url' => :'String',
107
+ :'total_timeout' => :'Float',
108
+ :'name' => :'String',
111
109
  :'ca_cert' => :'String',
112
- :'rate_limit' => :'Integer',
110
+ :'max_retries' => :'Integer',
113
111
  :'sock_connect_timeout' => :'Float',
114
- :'headers' => :'Array<Object>',
112
+ :'connect_timeout' => :'Float',
113
+ :'url' => :'String',
115
114
  :'download_concurrency' => :'Integer',
115
+ :'pulp_created' => :'DateTime',
116
116
  :'pulp_href' => :'String',
117
- :'pulp_last_updated' => :'DateTime',
118
- :'sock_read_timeout' => :'Float',
117
+ :'pulp_labels' => :'Object',
119
118
  :'client_cert' => :'String',
120
- :'connect_timeout' => :'Float',
121
- :'url' => :'String',
122
- :'name' => :'String',
119
+ :'rate_limit' => :'Integer',
120
+ :'headers' => :'Array<Object>',
121
+ :'tls_validation' => :'Boolean',
122
+ :'pulp_last_updated' => :'DateTime',
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
- :'max_retries',
132
- :'total_timeout',
131
+ :'sock_read_timeout',
133
132
  :'proxy_url',
133
+ :'total_timeout',
134
134
  :'ca_cert',
135
- :'rate_limit',
135
+ :'max_retries',
136
136
  :'sock_connect_timeout',
137
+ :'connect_timeout',
137
138
  :'download_concurrency',
138
- :'sock_read_timeout',
139
139
  :'client_cert',
140
- :'connect_timeout',
140
+ :'rate_limit',
141
141
  ])
142
142
  end
143
143
 
@@ -156,78 +156,78 @@ module PulpAnsibleClient
156
156
  h[k.to_sym] = v
157
157
  }
158
158
 
159
- if attributes.key?(:'tls_validation')
160
- self.tls_validation = attributes[:'tls_validation']
161
- end
162
-
163
- if attributes.key?(:'pulp_created')
164
- self.pulp_created = attributes[:'pulp_created']
165
- end
166
-
167
- if attributes.key?(:'pulp_labels')
168
- self.pulp_labels = attributes[:'pulp_labels']
159
+ if attributes.key?(:'sock_read_timeout')
160
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
169
161
  end
170
162
 
171
- if attributes.key?(:'max_retries')
172
- self.max_retries = attributes[:'max_retries']
163
+ if attributes.key?(:'proxy_url')
164
+ self.proxy_url = attributes[:'proxy_url']
173
165
  end
174
166
 
175
167
  if attributes.key?(:'total_timeout')
176
168
  self.total_timeout = attributes[:'total_timeout']
177
169
  end
178
170
 
179
- if attributes.key?(:'proxy_url')
180
- self.proxy_url = attributes[:'proxy_url']
171
+ if attributes.key?(:'name')
172
+ self.name = attributes[:'name']
181
173
  end
182
174
 
183
175
  if attributes.key?(:'ca_cert')
184
176
  self.ca_cert = attributes[:'ca_cert']
185
177
  end
186
178
 
187
- if attributes.key?(:'rate_limit')
188
- self.rate_limit = attributes[:'rate_limit']
179
+ if attributes.key?(:'max_retries')
180
+ self.max_retries = attributes[:'max_retries']
189
181
  end
190
182
 
191
183
  if attributes.key?(:'sock_connect_timeout')
192
184
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
193
185
  end
194
186
 
195
- if attributes.key?(:'headers')
196
- if (value = attributes[:'headers']).is_a?(Array)
197
- self.headers = value
198
- end
187
+ if attributes.key?(:'connect_timeout')
188
+ self.connect_timeout = attributes[:'connect_timeout']
189
+ end
190
+
191
+ if attributes.key?(:'url')
192
+ self.url = attributes[:'url']
199
193
  end
200
194
 
201
195
  if attributes.key?(:'download_concurrency')
202
196
  self.download_concurrency = attributes[:'download_concurrency']
203
197
  end
204
198
 
205
- if attributes.key?(:'pulp_href')
206
- self.pulp_href = attributes[:'pulp_href']
199
+ if attributes.key?(:'pulp_created')
200
+ self.pulp_created = attributes[:'pulp_created']
207
201
  end
208
202
 
209
- if attributes.key?(:'pulp_last_updated')
210
- self.pulp_last_updated = attributes[:'pulp_last_updated']
203
+ if attributes.key?(:'pulp_href')
204
+ self.pulp_href = attributes[:'pulp_href']
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?(:'pulp_labels')
208
+ self.pulp_labels = attributes[:'pulp_labels']
215
209
  end
216
210
 
217
211
  if attributes.key?(:'client_cert')
218
212
  self.client_cert = attributes[:'client_cert']
219
213
  end
220
214
 
221
- if attributes.key?(:'connect_timeout')
222
- self.connect_timeout = attributes[:'connect_timeout']
215
+ if attributes.key?(:'rate_limit')
216
+ self.rate_limit = attributes[:'rate_limit']
223
217
  end
224
218
 
225
- if attributes.key?(:'url')
226
- self.url = attributes[:'url']
219
+ if attributes.key?(:'headers')
220
+ if (value = attributes[:'headers']).is_a?(Array)
221
+ self.headers = value
222
+ end
227
223
  end
228
224
 
229
- if attributes.key?(:'name')
230
- self.name = attributes[:'name']
225
+ if attributes.key?(:'tls_validation')
226
+ self.tls_validation = attributes[:'tls_validation']
227
+ end
228
+
229
+ if attributes.key?(:'pulp_last_updated')
230
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
231
231
  end
232
232
 
233
233
  if attributes.key?(:'metadata_only')
@@ -243,20 +243,20 @@ 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 !@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.')
246
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
247
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
248
248
  end
249
249
 
250
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
251
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
250
+ if !@total_timeout.nil? && @total_timeout < 0.0
251
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
252
252
  end
253
253
 
254
- if !@download_concurrency.nil? && @download_concurrency < 1
255
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
254
+ if @name.nil?
255
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
256
256
  end
257
257
 
258
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
259
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
258
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
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
262
  if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -267,8 +267,8 @@ module PulpAnsibleClient
267
267
  invalid_properties.push('invalid value for "url", url cannot be nil.')
268
268
  end
269
269
 
270
- if @name.nil?
271
- invalid_properties.push('invalid value for "name", name cannot be nil.')
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,16 +277,26 @@ 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 !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
280
281
  return false if !@total_timeout.nil? && @total_timeout < 0.0
282
+ return false if @name.nil?
281
283
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
282
- return false if !@download_concurrency.nil? && @download_concurrency < 1
283
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
284
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
285
285
  return false if @url.nil?
286
- return false if @name.nil?
286
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
287
287
  true
288
288
  end
289
289
 
290
+ # Custom attribute writer method with validation
291
+ # @param [Object] sock_read_timeout Value to be assigned
292
+ def sock_read_timeout=(sock_read_timeout)
293
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
294
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
295
+ end
296
+
297
+ @sock_read_timeout = sock_read_timeout
298
+ end
299
+
290
300
  # Custom attribute writer method with validation
291
301
  # @param [Object] total_timeout Value to be assigned
292
302
  def total_timeout=(total_timeout)
@@ -307,26 +317,6 @@ module PulpAnsibleClient
307
317
  @sock_connect_timeout = sock_connect_timeout
308
318
  end
309
319
 
310
- # Custom attribute writer method with validation
311
- # @param [Object] download_concurrency Value to be assigned
312
- def download_concurrency=(download_concurrency)
313
- if !download_concurrency.nil? && download_concurrency < 1
314
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
315
- end
316
-
317
- @download_concurrency = download_concurrency
318
- end
319
-
320
- # Custom attribute writer method with validation
321
- # @param [Object] sock_read_timeout Value to be assigned
322
- def sock_read_timeout=(sock_read_timeout)
323
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
324
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
325
- end
326
-
327
- @sock_read_timeout = sock_read_timeout
328
- end
329
-
330
320
  # Custom attribute writer method with validation
331
321
  # @param [Object] connect_timeout Value to be assigned
332
322
  def connect_timeout=(connect_timeout)
@@ -337,29 +327,39 @@ module PulpAnsibleClient
337
327
  @connect_timeout = connect_timeout
338
328
  end
339
329
 
330
+ # Custom attribute writer method with validation
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
+ end
336
+
337
+ @download_concurrency = download_concurrency
338
+ end
339
+
340
340
  # Checks equality by comparing each attribute.
341
341
  # @param [Object] Object to be compared
342
342
  def ==(o)
343
343
  return true if self.equal?(o)
344
344
  self.class == o.class &&
345
- tls_validation == o.tls_validation &&
346
- pulp_created == o.pulp_created &&
347
- pulp_labels == o.pulp_labels &&
348
- max_retries == o.max_retries &&
349
- total_timeout == o.total_timeout &&
345
+ sock_read_timeout == o.sock_read_timeout &&
350
346
  proxy_url == o.proxy_url &&
347
+ total_timeout == o.total_timeout &&
348
+ name == o.name &&
351
349
  ca_cert == o.ca_cert &&
352
- rate_limit == o.rate_limit &&
350
+ max_retries == o.max_retries &&
353
351
  sock_connect_timeout == o.sock_connect_timeout &&
354
- headers == o.headers &&
352
+ connect_timeout == o.connect_timeout &&
353
+ url == o.url &&
355
354
  download_concurrency == o.download_concurrency &&
355
+ pulp_created == o.pulp_created &&
356
356
  pulp_href == o.pulp_href &&
357
- pulp_last_updated == o.pulp_last_updated &&
358
- sock_read_timeout == o.sock_read_timeout &&
357
+ pulp_labels == o.pulp_labels &&
359
358
  client_cert == o.client_cert &&
360
- connect_timeout == o.connect_timeout &&
361
- url == o.url &&
362
- name == o.name &&
359
+ rate_limit == o.rate_limit &&
360
+ headers == o.headers &&
361
+ tls_validation == o.tls_validation &&
362
+ pulp_last_updated == o.pulp_last_updated &&
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
- [tls_validation, pulp_created, pulp_labels, max_retries, total_timeout, proxy_url, ca_cert, rate_limit, sock_connect_timeout, headers, download_concurrency, pulp_href, pulp_last_updated, sock_read_timeout, client_cert, connect_timeout, url, name, metadata_only, git_ref].hash
376
+ [sock_read_timeout, proxy_url, total_timeout, name, ca_cert, max_retries, sock_connect_timeout, connect_timeout, url, download_concurrency, pulp_created, pulp_href, pulp_labels, client_cert, rate_limit, headers, tls_validation, pulp_last_updated, metadata_only, git_ref].hash
377
377
  end
378
378
 
379
379
  # Builds the object from hash
@@ -57,7 +57,7 @@ module PulpAnsibleClient
57
57
  :'retain_repo_versions' => :'Integer',
58
58
  :'remote' => :'String',
59
59
  :'last_synced_metadata_time' => :'DateTime',
60
- :'keyring' => :'KeyringEnum'
60
+ :'keyring' => :'String'
61
61
  }
62
62
  end
63
63
 
@@ -112,6 +112,8 @@ module PulpAnsibleClient
112
112
 
113
113
  if attributes.key?(:'keyring')
114
114
  self.keyring = attributes[:'keyring']
115
+ else
116
+ self.keyring = ''
115
117
  end
116
118
  end
117
119