pulp_ansible_client 0.13.0 → 0.13.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 (39) 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/AnsibleCollectionVersion.md +3 -3
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +24 -24
  8. data/docs/ContentCollectionVersionsApi.md +3 -3
  9. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  10. data/docs/PatchedansibleGitRemote.md +26 -26
  11. data/docs/Repair.md +17 -0
  12. data/docs/RepositoriesAnsibleVersionsApi.md +4 -4
  13. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  14. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +9 -9
  15. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -1
  16. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -1
  17. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  18. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +220 -220
  19. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +128 -128
  20. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -1
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
  22. data/lib/pulp_ansible_client/models/{repository_version.rb → repair.rb} +13 -12
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/lib/pulp_ansible_client.rb +1 -3
  25. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  26. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  27. data/spec/models/ansible_collection_version_spec.rb +2 -2
  28. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  29. data/spec/models/ansible_git_remote_spec.rb +19 -19
  30. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  31. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  32. metadata +102 -110
  33. data/docs/ContentSummary.md +0 -21
  34. data/docs/KeyringEnum.md +0 -16
  35. data/docs/RepositoryVersion.md +0 -17
  36. data/lib/pulp_ansible_client/models/content_summary.rb +0 -246
  37. data/lib/pulp_ansible_client/models/keyring_enum.rb +0 -40
  38. data/spec/models/content_summary_spec.rb +0 -53
  39. 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
25
-
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
18
+ # The proxy URL. Format: scheme://host:port
19
+ attr_accessor :proxy_url
28
20
 
29
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.
30
22
  attr_accessor :total_timeout
31
23
 
32
- # The proxy URL. Format: scheme://host:port
33
- attr_accessor :proxy_url
24
+ # A unique name for this remote.
25
+ attr_accessor :name
34
26
 
35
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
- attr_accessor :ca_cert
27
+ # Headers for aiohttp.Clientsession
28
+ attr_accessor :headers
37
29
 
38
- # Limits requests per second for each concurrent downloader
39
- attr_accessor :rate_limit
30
+ attr_accessor :pulp_labels
31
+
32
+ # A PEM encoded client certificate used for authentication.
33
+ attr_accessor :client_cert
40
34
 
41
35
  # 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
36
  attr_accessor :sock_connect_timeout
43
37
 
44
- # Headers for aiohttp.Clientsession
45
- attr_accessor :headers
46
-
47
- # Total number of simultaneous connections. If not set then the default value will be used.
48
- attr_accessor :download_concurrency
38
+ # 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.
39
+ attr_accessor :sock_read_timeout
49
40
 
50
41
  attr_accessor :pulp_href
51
42
 
52
- # Timestamp of the most recent update of the remote.
53
- attr_accessor :pulp_last_updated
43
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
44
+ attr_accessor :max_retries
54
45
 
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
46
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
47
+ attr_accessor :ca_cert
57
48
 
58
- # A PEM encoded client certificate used for authentication.
59
- attr_accessor :client_cert
49
+ # If True, TLS peer validation must be performed.
50
+ attr_accessor :tls_validation
51
+
52
+ # Total number of simultaneous connections. If not set then the default value will be used.
53
+ attr_accessor :download_concurrency
54
+
55
+ # Limits requests per second for each concurrent downloader
56
+ attr_accessor :rate_limit
60
57
 
61
58
  # 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
59
  attr_accessor :connect_timeout
63
60
 
61
+ # Timestamp of creation.
62
+ attr_accessor :pulp_created
63
+
64
64
  # The URL of an external content source.
65
65
  attr_accessor :url
66
66
 
67
- # A unique name for this remote.
68
- attr_accessor :name
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',
79
+ :'proxy_url' => :'proxy_url',
80
+ :'total_timeout' => :'total_timeout',
81
+ :'name' => :'name',
82
+ :'headers' => :'headers',
81
83
  :'pulp_labels' => :'pulp_labels',
84
+ :'client_cert' => :'client_cert',
85
+ :'sock_connect_timeout' => :'sock_connect_timeout',
86
+ :'sock_read_timeout' => :'sock_read_timeout',
87
+ :'pulp_href' => :'pulp_href',
82
88
  :'max_retries' => :'max_retries',
83
- :'total_timeout' => :'total_timeout',
84
- :'proxy_url' => :'proxy_url',
85
89
  :'ca_cert' => :'ca_cert',
86
- :'rate_limit' => :'rate_limit',
87
- :'sock_connect_timeout' => :'sock_connect_timeout',
88
- :'headers' => :'headers',
90
+ :'tls_validation' => :'tls_validation',
89
91
  :'download_concurrency' => :'download_concurrency',
90
- :'pulp_href' => :'pulp_href',
91
- :'pulp_last_updated' => :'pulp_last_updated',
92
- :'sock_read_timeout' => :'sock_read_timeout',
93
- :'client_cert' => :'client_cert',
92
+ :'rate_limit' => :'rate_limit',
94
93
  :'connect_timeout' => :'connect_timeout',
94
+ :'pulp_created' => :'pulp_created',
95
95
  :'url' => :'url',
96
- :'name' => :'name',
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',
105
+ :'proxy_url' => :'String',
106
+ :'total_timeout' => :'Float',
107
+ :'name' => :'String',
108
+ :'headers' => :'Array<Object>',
107
109
  :'pulp_labels' => :'Object',
110
+ :'client_cert' => :'String',
111
+ :'sock_connect_timeout' => :'Float',
112
+ :'sock_read_timeout' => :'Float',
113
+ :'pulp_href' => :'String',
108
114
  :'max_retries' => :'Integer',
109
- :'total_timeout' => :'Float',
110
- :'proxy_url' => :'String',
111
115
  :'ca_cert' => :'String',
112
- :'rate_limit' => :'Integer',
113
- :'sock_connect_timeout' => :'Float',
114
- :'headers' => :'Array<Object>',
116
+ :'tls_validation' => :'Boolean',
115
117
  :'download_concurrency' => :'Integer',
116
- :'pulp_href' => :'String',
117
- :'pulp_last_updated' => :'DateTime',
118
- :'sock_read_timeout' => :'Float',
119
- :'client_cert' => :'String',
118
+ :'rate_limit' => :'Integer',
120
119
  :'connect_timeout' => :'Float',
120
+ :'pulp_created' => :'DateTime',
121
121
  :'url' => :'String',
122
- :'name' => :'String',
122
+ :'pulp_last_updated' => :'DateTime',
123
123
  :'metadata_only' => :'Boolean',
124
124
  :'git_ref' => :'String'
125
125
  }
@@ -128,15 +128,15 @@ 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',
133
131
  :'proxy_url',
134
- :'ca_cert',
135
- :'rate_limit',
132
+ :'total_timeout',
133
+ :'client_cert',
136
134
  :'sock_connect_timeout',
137
- :'download_concurrency',
138
135
  :'sock_read_timeout',
139
- :'client_cert',
136
+ :'max_retries',
137
+ :'ca_cert',
138
+ :'download_concurrency',
139
+ :'rate_limit',
140
140
  :'connect_timeout',
141
141
  ])
142
142
  end
@@ -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']
169
- end
170
-
171
- if attributes.key?(:'max_retries')
172
- self.max_retries = attributes[:'max_retries']
159
+ if attributes.key?(:'proxy_url')
160
+ self.proxy_url = attributes[:'proxy_url']
173
161
  end
174
162
 
175
163
  if attributes.key?(:'total_timeout')
176
164
  self.total_timeout = attributes[:'total_timeout']
177
165
  end
178
166
 
179
- if attributes.key?(:'proxy_url')
180
- self.proxy_url = attributes[:'proxy_url']
167
+ if attributes.key?(:'name')
168
+ self.name = attributes[:'name']
181
169
  end
182
170
 
183
- if attributes.key?(:'ca_cert')
184
- self.ca_cert = attributes[:'ca_cert']
171
+ if attributes.key?(:'headers')
172
+ if (value = attributes[:'headers']).is_a?(Array)
173
+ self.headers = value
174
+ end
185
175
  end
186
176
 
187
- if attributes.key?(:'rate_limit')
188
- self.rate_limit = attributes[:'rate_limit']
177
+ if attributes.key?(:'pulp_labels')
178
+ self.pulp_labels = attributes[:'pulp_labels']
189
179
  end
190
180
 
191
- if attributes.key?(:'sock_connect_timeout')
192
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
181
+ if attributes.key?(:'client_cert')
182
+ self.client_cert = attributes[:'client_cert']
193
183
  end
194
184
 
195
- if attributes.key?(:'headers')
196
- if (value = attributes[:'headers']).is_a?(Array)
197
- self.headers = value
198
- end
185
+ if attributes.key?(:'sock_connect_timeout')
186
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
199
187
  end
200
188
 
201
- if attributes.key?(:'download_concurrency')
202
- self.download_concurrency = attributes[:'download_concurrency']
189
+ if attributes.key?(:'sock_read_timeout')
190
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
203
191
  end
204
192
 
205
193
  if attributes.key?(:'pulp_href')
206
194
  self.pulp_href = attributes[:'pulp_href']
207
195
  end
208
196
 
209
- if attributes.key?(:'pulp_last_updated')
210
- self.pulp_last_updated = attributes[:'pulp_last_updated']
197
+ if attributes.key?(:'max_retries')
198
+ self.max_retries = attributes[:'max_retries']
211
199
  end
212
200
 
213
- if attributes.key?(:'sock_read_timeout')
214
- self.sock_read_timeout = attributes[:'sock_read_timeout']
201
+ if attributes.key?(:'ca_cert')
202
+ self.ca_cert = attributes[:'ca_cert']
215
203
  end
216
204
 
217
- if attributes.key?(:'client_cert')
218
- self.client_cert = attributes[:'client_cert']
205
+ if attributes.key?(:'tls_validation')
206
+ self.tls_validation = attributes[:'tls_validation']
207
+ end
208
+
209
+ if attributes.key?(:'download_concurrency')
210
+ self.download_concurrency = attributes[:'download_concurrency']
211
+ end
212
+
213
+ if attributes.key?(:'rate_limit')
214
+ self.rate_limit = attributes[:'rate_limit']
219
215
  end
220
216
 
221
217
  if attributes.key?(:'connect_timeout')
222
218
  self.connect_timeout = attributes[:'connect_timeout']
223
219
  end
224
220
 
221
+ if attributes.key?(:'pulp_created')
222
+ self.pulp_created = attributes[:'pulp_created']
223
+ end
224
+
225
225
  if attributes.key?(:'url')
226
226
  self.url = attributes[:'url']
227
227
  end
228
228
 
229
- if attributes.key?(:'name')
230
- self.name = attributes[:'name']
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')
@@ -247,18 +247,22 @@ module PulpAnsibleClient
247
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 !@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 @name.nil?
251
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
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 !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
255
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
256
256
  end
257
257
 
258
258
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
259
259
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
260
260
  end
261
261
 
262
+ if !@download_concurrency.nil? && @download_concurrency < 1
263
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
264
+ end
265
+
262
266
  if !@connect_timeout.nil? && @connect_timeout < 0.0
263
267
  invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
264
268
  end
@@ -267,10 +271,6 @@ module PulpAnsibleClient
267
271
  invalid_properties.push('invalid value for "url", url cannot be nil.')
268
272
  end
269
273
 
270
- if @name.nil?
271
- invalid_properties.push('invalid value for "name", name cannot be nil.')
272
- end
273
-
274
274
  invalid_properties
275
275
  end
276
276
 
@@ -278,12 +278,12 @@ module PulpAnsibleClient
278
278
  # @return true if the model is valid
279
279
  def valid?
280
280
  return false if !@total_timeout.nil? && @total_timeout < 0.0
281
+ return false if @name.nil?
281
282
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
282
- return false if !@download_concurrency.nil? && @download_concurrency < 1
283
283
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
284
285
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
285
286
  return false if @url.nil?
286
- return false if @name.nil?
287
287
  true
288
288
  end
289
289
 
@@ -307,16 +307,6 @@ module PulpAnsibleClient
307
307
  @sock_connect_timeout = sock_connect_timeout
308
308
  end
309
309
 
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
310
  # Custom attribute writer method with validation
321
311
  # @param [Object] sock_read_timeout Value to be assigned
322
312
  def sock_read_timeout=(sock_read_timeout)
@@ -327,6 +317,16 @@ module PulpAnsibleClient
327
317
  @sock_read_timeout = sock_read_timeout
328
318
  end
329
319
 
320
+ # Custom attribute writer method with validation
321
+ # @param [Object] download_concurrency Value to be assigned
322
+ def download_concurrency=(download_concurrency)
323
+ if !download_concurrency.nil? && download_concurrency < 1
324
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
325
+ end
326
+
327
+ @download_concurrency = download_concurrency
328
+ end
329
+
330
330
  # Custom attribute writer method with validation
331
331
  # @param [Object] connect_timeout Value to be assigned
332
332
  def connect_timeout=(connect_timeout)
@@ -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
- tls_validation == o.tls_validation &&
346
- pulp_created == o.pulp_created &&
345
+ proxy_url == o.proxy_url &&
346
+ total_timeout == o.total_timeout &&
347
+ name == o.name &&
348
+ headers == o.headers &&
347
349
  pulp_labels == o.pulp_labels &&
350
+ client_cert == o.client_cert &&
351
+ sock_connect_timeout == o.sock_connect_timeout &&
352
+ sock_read_timeout == o.sock_read_timeout &&
353
+ pulp_href == o.pulp_href &&
348
354
  max_retries == o.max_retries &&
349
- total_timeout == o.total_timeout &&
350
- proxy_url == o.proxy_url &&
351
355
  ca_cert == o.ca_cert &&
352
- rate_limit == o.rate_limit &&
353
- sock_connect_timeout == o.sock_connect_timeout &&
354
- headers == o.headers &&
356
+ tls_validation == o.tls_validation &&
355
357
  download_concurrency == o.download_concurrency &&
356
- pulp_href == o.pulp_href &&
357
- pulp_last_updated == o.pulp_last_updated &&
358
- sock_read_timeout == o.sock_read_timeout &&
359
- client_cert == o.client_cert &&
358
+ rate_limit == o.rate_limit &&
360
359
  connect_timeout == o.connect_timeout &&
360
+ pulp_created == o.pulp_created &&
361
361
  url == o.url &&
362
- name == o.name &&
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
+ [proxy_url, total_timeout, name, headers, pulp_labels, client_cert, sock_connect_timeout, sock_read_timeout, pulp_href, max_retries, ca_cert, tls_validation, download_concurrency, rate_limit, connect_timeout, pulp_created, url, 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