pulp_ansible_client 0.6.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/docs/AnsibleAnsibleRepository.md +6 -2
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
  5. data/docs/AnsibleCollectionRemote.md +4 -0
  6. data/docs/AnsibleCollectionRemoteResponse.md +4 -0
  7. data/docs/AnsibleCollectionVersion.md +7 -1
  8. data/docs/AnsibleCollectionVersionResponse.md +10 -4
  9. data/docs/{RepositorySyncURL.md → AnsibleRepositorySyncURL.md} +5 -3
  10. data/docs/AnsibleRoleRemote.md +5 -1
  11. data/docs/AnsibleRoleRemoteResponse.md +5 -1
  12. data/docs/AnsibleRoleResponse.md +3 -3
  13. data/docs/CollectionResponse.md +1 -1
  14. data/docs/CollectionVersionResponse.md +6 -0
  15. data/docs/DistributionsAnsibleApi.md +8 -0
  16. data/docs/PatchedansibleAnsibleRepository.md +6 -2
  17. data/docs/PatchedansibleCollectionRemote.md +4 -0
  18. data/docs/PatchedansibleRoleRemote.md +5 -1
  19. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -4
  20. data/docs/PulpAnsibleGalaxyApiV3AllApi.md +138 -0
  21. data/docs/PulpAnsibleGalaxyV3Api.md +61 -0
  22. data/docs/RemotesCollectionApi.md +8 -0
  23. data/docs/RemotesRoleApi.md +8 -0
  24. data/docs/{PatchedCollection.md → RepoMetadataResponse.md} +3 -3
  25. data/docs/RepositoriesAnsibleApi.md +12 -4
  26. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +12 -0
  27. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +12 -9
  28. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +190 -0
  29. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +88 -0
  30. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +12 -0
  31. data/lib/pulp_ansible_client/api/remotes_role_api.rb +12 -0
  32. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +21 -9
  33. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +25 -5
  34. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +25 -5
  35. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +21 -1
  36. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +21 -1
  37. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +60 -4
  38. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +69 -13
  39. data/lib/pulp_ansible_client/models/{repository_sync_url.rb → ansible_repository_sync_url.rb} +20 -8
  40. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +25 -5
  41. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +25 -5
  42. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  43. data/lib/pulp_ansible_client/models/collection_response.rb +0 -5
  44. data/lib/pulp_ansible_client/models/collection_version_response.rb +56 -1
  45. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +25 -5
  46. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +21 -1
  47. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +25 -5
  48. data/lib/pulp_ansible_client/models/{patched_collection.rb → repo_metadata_response.rb} +16 -11
  49. data/lib/pulp_ansible_client/version.rb +1 -1
  50. data/lib/pulp_ansible_client.rb +4 -2
  51. data/spec/api/distributions_ansible_api_spec.rb +4 -0
  52. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -1
  53. data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +73 -0
  54. data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +48 -0
  55. data/spec/api/remotes_collection_api_spec.rb +4 -0
  56. data/spec/api/remotes_role_api_spec.rb +4 -0
  57. data/spec/api/repositories_ansible_api_spec.rb +5 -1
  58. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  59. data/spec/models/ansible_ansible_repository_spec.rb +12 -0
  60. data/spec/models/ansible_collection_remote_response_spec.rb +12 -0
  61. data/spec/models/ansible_collection_remote_spec.rb +12 -0
  62. data/spec/models/ansible_collection_version_response_spec.rb +21 -3
  63. data/spec/models/ansible_collection_version_spec.rb +18 -0
  64. data/spec/models/{repository_sync_url_spec.rb → ansible_repository_sync_url_spec.rb} +12 -6
  65. data/spec/models/ansible_role_remote_response_spec.rb +12 -0
  66. data/spec/models/ansible_role_remote_spec.rb +12 -0
  67. data/spec/models/ansible_role_response_spec.rb +3 -3
  68. data/spec/models/collection_version_response_spec.rb +18 -0
  69. data/spec/models/patchedansible_ansible_repository_spec.rb +12 -0
  70. data/spec/models/patchedansible_collection_remote_spec.rb +12 -0
  71. data/spec/models/patchedansible_role_remote_spec.rb +12 -0
  72. data/spec/models/{patched_collection_spec.rb → repo_metadata_response_spec.rb} +7 -7
  73. metadata +18 -10
@@ -36,6 +36,12 @@ module PulpAnsibleClient
36
36
  # A JSON field holding the various documentation blobs in the collection.
37
37
  attr_accessor :docs_blob
38
38
 
39
+ # A JSON field holding MANIFEST.json data.
40
+ attr_accessor :manifest
41
+
42
+ # A JSON field holding FILES.json data.
43
+ attr_accessor :files
44
+
39
45
  # The URL to any online docs.
40
46
  attr_accessor :documentation
41
47
 
@@ -60,6 +66,9 @@ module PulpAnsibleClient
60
66
  # The version of the collection.
61
67
  attr_accessor :version
62
68
 
69
+ # The version of Ansible required to use the collection. Multiple versions can be separated with a comma.
70
+ attr_accessor :requires_ansible
71
+
63
72
  # Attribute mapping from ruby-style variable name to JSON key.
64
73
  def self.attribute_map
65
74
  {
@@ -70,6 +79,8 @@ module PulpAnsibleClient
70
79
  :'dependencies' => :'dependencies',
71
80
  :'description' => :'description',
72
81
  :'docs_blob' => :'docs_blob',
82
+ :'manifest' => :'manifest',
83
+ :'files' => :'files',
73
84
  :'documentation' => :'documentation',
74
85
  :'homepage' => :'homepage',
75
86
  :'issues' => :'issues',
@@ -77,7 +88,8 @@ module PulpAnsibleClient
77
88
  :'name' => :'name',
78
89
  :'namespace' => :'namespace',
79
90
  :'repository' => :'repository',
80
- :'version' => :'version'
91
+ :'version' => :'version',
92
+ :'requires_ansible' => :'requires_ansible'
81
93
  }
82
94
  end
83
95
 
@@ -91,6 +103,8 @@ module PulpAnsibleClient
91
103
  :'dependencies' => :'Object',
92
104
  :'description' => :'String',
93
105
  :'docs_blob' => :'Object',
106
+ :'manifest' => :'Object',
107
+ :'files' => :'Object',
94
108
  :'documentation' => :'String',
95
109
  :'homepage' => :'String',
96
110
  :'issues' => :'String',
@@ -98,13 +112,15 @@ module PulpAnsibleClient
98
112
  :'name' => :'String',
99
113
  :'namespace' => :'String',
100
114
  :'repository' => :'String',
101
- :'version' => :'String'
115
+ :'version' => :'String',
116
+ :'requires_ansible' => :'String'
102
117
  }
103
118
  end
104
119
 
105
120
  # List of attributes with nullable: true
106
121
  def self.openapi_nullable
107
122
  Set.new([
123
+ :'requires_ansible'
108
124
  ])
109
125
  end
110
126
 
@@ -155,6 +171,14 @@ module PulpAnsibleClient
155
171
  self.docs_blob = attributes[:'docs_blob']
156
172
  end
157
173
 
174
+ if attributes.key?(:'manifest')
175
+ self.manifest = attributes[:'manifest']
176
+ end
177
+
178
+ if attributes.key?(:'files')
179
+ self.files = attributes[:'files']
180
+ end
181
+
158
182
  if attributes.key?(:'documentation')
159
183
  self.documentation = attributes[:'documentation']
160
184
  end
@@ -188,6 +212,10 @@ module PulpAnsibleClient
188
212
  if attributes.key?(:'version')
189
213
  self.version = attributes[:'version']
190
214
  end
215
+
216
+ if attributes.key?(:'requires_ansible')
217
+ self.requires_ansible = attributes[:'requires_ansible']
218
+ end
191
219
  end
192
220
 
193
221
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -222,6 +250,14 @@ module PulpAnsibleClient
222
250
  invalid_properties.push('invalid value for "docs_blob", docs_blob cannot be nil.')
223
251
  end
224
252
 
253
+ if @manifest.nil?
254
+ invalid_properties.push('invalid value for "manifest", manifest cannot be nil.')
255
+ end
256
+
257
+ if @files.nil?
258
+ invalid_properties.push('invalid value for "files", files cannot be nil.')
259
+ end
260
+
225
261
  if @documentation.nil?
226
262
  invalid_properties.push('invalid value for "documentation", documentation cannot be nil.')
227
263
  end
@@ -282,6 +318,10 @@ module PulpAnsibleClient
282
318
  invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 32.')
283
319
  end
284
320
 
321
+ if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
322
+ invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
323
+ end
324
+
285
325
  invalid_properties
286
326
  end
287
327
 
@@ -295,6 +335,8 @@ module PulpAnsibleClient
295
335
  return false if @dependencies.nil?
296
336
  return false if @description.nil?
297
337
  return false if @docs_blob.nil?
338
+ return false if @manifest.nil?
339
+ return false if @files.nil?
298
340
  return false if @documentation.nil?
299
341
  return false if @documentation.to_s.length > 2000
300
342
  return false if @homepage.nil?
@@ -310,6 +352,7 @@ module PulpAnsibleClient
310
352
  return false if @repository.to_s.length > 2000
311
353
  return false if @version.nil?
312
354
  return false if @version.to_s.length > 32
355
+ return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
313
356
  true
314
357
  end
315
358
 
@@ -411,6 +454,16 @@ module PulpAnsibleClient
411
454
  @version = version
412
455
  end
413
456
 
457
+ # Custom attribute writer method with validation
458
+ # @param [Object] requires_ansible Value to be assigned
459
+ def requires_ansible=(requires_ansible)
460
+ if !requires_ansible.nil? && requires_ansible.to_s.length > 255
461
+ fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
462
+ end
463
+
464
+ @requires_ansible = requires_ansible
465
+ end
466
+
414
467
  # Checks equality by comparing each attribute.
415
468
  # @param [Object] Object to be compared
416
469
  def ==(o)
@@ -423,6 +476,8 @@ module PulpAnsibleClient
423
476
  dependencies == o.dependencies &&
424
477
  description == o.description &&
425
478
  docs_blob == o.docs_blob &&
479
+ manifest == o.manifest &&
480
+ files == o.files &&
426
481
  documentation == o.documentation &&
427
482
  homepage == o.homepage &&
428
483
  issues == o.issues &&
@@ -430,7 +485,8 @@ module PulpAnsibleClient
430
485
  name == o.name &&
431
486
  namespace == o.namespace &&
432
487
  repository == o.repository &&
433
- version == o.version
488
+ version == o.version &&
489
+ requires_ansible == o.requires_ansible
434
490
  end
435
491
 
436
492
  # @see the `==` method
@@ -442,7 +498,7 @@ module PulpAnsibleClient
442
498
  # Calculates hash code according to all attributes.
443
499
  # @return [Integer] Hash code
444
500
  def hash
445
- [artifact, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, version].hash
501
+ [artifact, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, version, requires_ansible].hash
446
502
  end
447
503
 
448
504
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Artifact file representing the physical content
19
21
  attr_accessor :artifact
20
22
 
21
23
  # Timestamp of creation.
22
24
  attr_accessor :pulp_created
23
25
 
24
- attr_accessor :pulp_href
25
-
26
26
  # The MD5 checksum if available.
27
27
  attr_accessor :md5
28
28
 
@@ -59,6 +59,12 @@ module PulpAnsibleClient
59
59
  # A JSON field holding the various documentation blobs in the collection.
60
60
  attr_accessor :docs_blob
61
61
 
62
+ # A JSON field holding MANIFEST.json data.
63
+ attr_accessor :manifest
64
+
65
+ # A JSON field holding FILES.json data.
66
+ attr_accessor :files
67
+
62
68
  # The URL to any online docs.
63
69
  attr_accessor :documentation
64
70
 
@@ -85,12 +91,15 @@ module PulpAnsibleClient
85
91
  # The version of the collection.
86
92
  attr_accessor :version
87
93
 
94
+ # The version of Ansible required to use the collection. Multiple versions can be separated with a comma.
95
+ attr_accessor :requires_ansible
96
+
88
97
  # Attribute mapping from ruby-style variable name to JSON key.
89
98
  def self.attribute_map
90
99
  {
100
+ :'pulp_href' => :'pulp_href',
91
101
  :'artifact' => :'artifact',
92
102
  :'pulp_created' => :'pulp_created',
93
- :'pulp_href' => :'pulp_href',
94
103
  :'md5' => :'md5',
95
104
  :'sha1' => :'sha1',
96
105
  :'sha224' => :'sha224',
@@ -103,6 +112,8 @@ module PulpAnsibleClient
103
112
  :'dependencies' => :'dependencies',
104
113
  :'description' => :'description',
105
114
  :'docs_blob' => :'docs_blob',
115
+ :'manifest' => :'manifest',
116
+ :'files' => :'files',
106
117
  :'documentation' => :'documentation',
107
118
  :'homepage' => :'homepage',
108
119
  :'issues' => :'issues',
@@ -111,16 +122,17 @@ module PulpAnsibleClient
111
122
  :'namespace' => :'namespace',
112
123
  :'repository' => :'repository',
113
124
  :'tags' => :'tags',
114
- :'version' => :'version'
125
+ :'version' => :'version',
126
+ :'requires_ansible' => :'requires_ansible'
115
127
  }
116
128
  end
117
129
 
118
130
  # Attribute type mapping.
119
131
  def self.openapi_types
120
132
  {
133
+ :'pulp_href' => :'String',
121
134
  :'artifact' => :'String',
122
135
  :'pulp_created' => :'DateTime',
123
- :'pulp_href' => :'String',
124
136
  :'md5' => :'String',
125
137
  :'sha1' => :'String',
126
138
  :'sha224' => :'String',
@@ -133,6 +145,8 @@ module PulpAnsibleClient
133
145
  :'dependencies' => :'Object',
134
146
  :'description' => :'String',
135
147
  :'docs_blob' => :'Object',
148
+ :'manifest' => :'Object',
149
+ :'files' => :'Object',
136
150
  :'documentation' => :'String',
137
151
  :'homepage' => :'String',
138
152
  :'issues' => :'String',
@@ -141,13 +155,15 @@ module PulpAnsibleClient
141
155
  :'namespace' => :'String',
142
156
  :'repository' => :'String',
143
157
  :'tags' => :'Array<AnsibleTagResponse>',
144
- :'version' => :'String'
158
+ :'version' => :'String',
159
+ :'requires_ansible' => :'String'
145
160
  }
146
161
  end
147
162
 
148
163
  # List of attributes with nullable: true
149
164
  def self.openapi_nullable
150
165
  Set.new([
166
+ :'requires_ansible'
151
167
  ])
152
168
  end
153
169
 
@@ -166,6 +182,10 @@ module PulpAnsibleClient
166
182
  h[k.to_sym] = v
167
183
  }
168
184
 
185
+ if attributes.key?(:'pulp_href')
186
+ self.pulp_href = attributes[:'pulp_href']
187
+ end
188
+
169
189
  if attributes.key?(:'artifact')
170
190
  self.artifact = attributes[:'artifact']
171
191
  end
@@ -174,10 +194,6 @@ module PulpAnsibleClient
174
194
  self.pulp_created = attributes[:'pulp_created']
175
195
  end
176
196
 
177
- if attributes.key?(:'pulp_href')
178
- self.pulp_href = attributes[:'pulp_href']
179
- end
180
-
181
197
  if attributes.key?(:'md5')
182
198
  self.md5 = attributes[:'md5']
183
199
  end
@@ -230,6 +246,14 @@ module PulpAnsibleClient
230
246
  self.docs_blob = attributes[:'docs_blob']
231
247
  end
232
248
 
249
+ if attributes.key?(:'manifest')
250
+ self.manifest = attributes[:'manifest']
251
+ end
252
+
253
+ if attributes.key?(:'files')
254
+ self.files = attributes[:'files']
255
+ end
256
+
233
257
  if attributes.key?(:'documentation')
234
258
  self.documentation = attributes[:'documentation']
235
259
  end
@@ -269,6 +293,10 @@ module PulpAnsibleClient
269
293
  if attributes.key?(:'version')
270
294
  self.version = attributes[:'version']
271
295
  end
296
+
297
+ if attributes.key?(:'requires_ansible')
298
+ self.requires_ansible = attributes[:'requires_ansible']
299
+ end
272
300
  end
273
301
 
274
302
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -303,6 +331,14 @@ module PulpAnsibleClient
303
331
  invalid_properties.push('invalid value for "docs_blob", docs_blob cannot be nil.')
304
332
  end
305
333
 
334
+ if @manifest.nil?
335
+ invalid_properties.push('invalid value for "manifest", manifest cannot be nil.')
336
+ end
337
+
338
+ if @files.nil?
339
+ invalid_properties.push('invalid value for "files", files cannot be nil.')
340
+ end
341
+
306
342
  if @documentation.nil?
307
343
  invalid_properties.push('invalid value for "documentation", documentation cannot be nil.')
308
344
  end
@@ -363,6 +399,10 @@ module PulpAnsibleClient
363
399
  invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 32.')
364
400
  end
365
401
 
402
+ if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
403
+ invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
404
+ end
405
+
366
406
  invalid_properties
367
407
  end
368
408
 
@@ -376,6 +416,8 @@ module PulpAnsibleClient
376
416
  return false if @dependencies.nil?
377
417
  return false if @description.nil?
378
418
  return false if @docs_blob.nil?
419
+ return false if @manifest.nil?
420
+ return false if @files.nil?
379
421
  return false if @documentation.nil?
380
422
  return false if @documentation.to_s.length > 2000
381
423
  return false if @homepage.nil?
@@ -391,6 +433,7 @@ module PulpAnsibleClient
391
433
  return false if @repository.to_s.length > 2000
392
434
  return false if @version.nil?
393
435
  return false if @version.to_s.length > 32
436
+ return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
394
437
  true
395
438
  end
396
439
 
@@ -492,14 +535,24 @@ module PulpAnsibleClient
492
535
  @version = version
493
536
  end
494
537
 
538
+ # Custom attribute writer method with validation
539
+ # @param [Object] requires_ansible Value to be assigned
540
+ def requires_ansible=(requires_ansible)
541
+ if !requires_ansible.nil? && requires_ansible.to_s.length > 255
542
+ fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
543
+ end
544
+
545
+ @requires_ansible = requires_ansible
546
+ end
547
+
495
548
  # Checks equality by comparing each attribute.
496
549
  # @param [Object] Object to be compared
497
550
  def ==(o)
498
551
  return true if self.equal?(o)
499
552
  self.class == o.class &&
553
+ pulp_href == o.pulp_href &&
500
554
  artifact == o.artifact &&
501
555
  pulp_created == o.pulp_created &&
502
- pulp_href == o.pulp_href &&
503
556
  md5 == o.md5 &&
504
557
  sha1 == o.sha1 &&
505
558
  sha224 == o.sha224 &&
@@ -512,6 +565,8 @@ module PulpAnsibleClient
512
565
  dependencies == o.dependencies &&
513
566
  description == o.description &&
514
567
  docs_blob == o.docs_blob &&
568
+ manifest == o.manifest &&
569
+ files == o.files &&
515
570
  documentation == o.documentation &&
516
571
  homepage == o.homepage &&
517
572
  issues == o.issues &&
@@ -520,7 +575,8 @@ module PulpAnsibleClient
520
575
  namespace == o.namespace &&
521
576
  repository == o.repository &&
522
577
  tags == o.tags &&
523
- version == o.version
578
+ version == o.version &&
579
+ requires_ansible == o.requires_ansible
524
580
  end
525
581
 
526
582
  # @see the `==` method
@@ -532,7 +588,7 @@ module PulpAnsibleClient
532
588
  # Calculates hash code according to all attributes.
533
589
  # @return [Integer] Hash code
534
590
  def hash
535
- [artifact, pulp_created, pulp_href, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, tags, version].hash
591
+ [pulp_href, artifact, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, repository, tags, version, requires_ansible].hash
536
592
  end
537
593
 
538
594
  # Builds the object from hash
@@ -13,19 +13,23 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # A mixin for validating unknown serializers' fields.
17
- class RepositorySyncURL
16
+ # Serializer for Ansible Repository Sync URL.
17
+ class AnsibleRepositorySyncURL
18
18
  # A remote to sync from. This will override a remote set on repository.
19
19
  attr_accessor :remote
20
20
 
21
21
  # If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only.
22
22
  attr_accessor :mirror
23
23
 
24
+ # Whether to optimize sync or not.
25
+ attr_accessor :optimize
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'remote' => :'remote',
28
- :'mirror' => :'mirror'
31
+ :'mirror' => :'mirror',
32
+ :'optimize' => :'optimize'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module PulpAnsibleClient
33
37
  def self.openapi_types
34
38
  {
35
39
  :'remote' => :'String',
36
- :'mirror' => :'Boolean'
40
+ :'mirror' => :'Boolean',
41
+ :'optimize' => :'Boolean'
37
42
  }
38
43
  end
39
44
 
@@ -47,13 +52,13 @@ module PulpAnsibleClient
47
52
  # @param [Hash] attributes Model attributes in the form of hash
48
53
  def initialize(attributes = {})
49
54
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::RepositorySyncURL` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleRepositorySyncURL` initialize method"
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
54
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
60
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::RepositorySyncURL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleRepositorySyncURL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
62
  end
58
63
  h[k.to_sym] = v
59
64
  }
@@ -67,6 +72,12 @@ module PulpAnsibleClient
67
72
  else
68
73
  self.mirror = false
69
74
  end
75
+
76
+ if attributes.key?(:'optimize')
77
+ self.optimize = attributes[:'optimize']
78
+ else
79
+ self.optimize = true
80
+ end
70
81
  end
71
82
 
72
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +99,8 @@ module PulpAnsibleClient
88
99
  return true if self.equal?(o)
89
100
  self.class == o.class &&
90
101
  remote == o.remote &&
91
- mirror == o.mirror
102
+ mirror == o.mirror &&
103
+ optimize == o.optimize
92
104
  end
93
105
 
94
106
  # @see the `==` method
@@ -100,7 +112,7 @@ module PulpAnsibleClient
100
112
  # Calculates hash code according to all attributes.
101
113
  # @return [Integer] Hash code
102
114
  def hash
103
- [remote, mirror].hash
115
+ [remote, mirror, optimize].hash
104
116
  end
105
117
 
106
118
  # Builds the object from hash
@@ -42,6 +42,8 @@ module PulpAnsibleClient
42
42
  # The password to be used for authentication when syncing.
43
43
  attr_accessor :password
44
44
 
45
+ attr_accessor :pulp_labels
46
+
45
47
  # Total number of simultaneous connections.
46
48
  attr_accessor :download_concurrency
47
49
 
@@ -60,6 +62,9 @@ module PulpAnsibleClient
60
62
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
63
  attr_accessor :sock_read_timeout
62
64
 
65
+ # Limits total download rate in requests per second
66
+ attr_accessor :rate_limit
67
+
63
68
  # Attribute mapping from ruby-style variable name to JSON key.
64
69
  def self.attribute_map
65
70
  {
@@ -72,12 +77,14 @@ module PulpAnsibleClient
72
77
  :'proxy_url' => :'proxy_url',
73
78
  :'username' => :'username',
74
79
  :'password' => :'password',
80
+ :'pulp_labels' => :'pulp_labels',
75
81
  :'download_concurrency' => :'download_concurrency',
76
82
  :'policy' => :'policy',
77
83
  :'total_timeout' => :'total_timeout',
78
84
  :'connect_timeout' => :'connect_timeout',
79
85
  :'sock_connect_timeout' => :'sock_connect_timeout',
80
- :'sock_read_timeout' => :'sock_read_timeout'
86
+ :'sock_read_timeout' => :'sock_read_timeout',
87
+ :'rate_limit' => :'rate_limit'
81
88
  }
82
89
  end
83
90
 
@@ -93,12 +100,14 @@ module PulpAnsibleClient
93
100
  :'proxy_url' => :'String',
94
101
  :'username' => :'String',
95
102
  :'password' => :'String',
103
+ :'pulp_labels' => :'Object',
96
104
  :'download_concurrency' => :'Integer',
97
105
  :'policy' => :'PolicyEnum',
98
106
  :'total_timeout' => :'Float',
99
107
  :'connect_timeout' => :'Float',
100
108
  :'sock_connect_timeout' => :'Float',
101
- :'sock_read_timeout' => :'Float'
109
+ :'sock_read_timeout' => :'Float',
110
+ :'rate_limit' => :'Integer'
102
111
  }
103
112
  end
104
113
 
@@ -114,7 +123,8 @@ module PulpAnsibleClient
114
123
  :'total_timeout',
115
124
  :'connect_timeout',
116
125
  :'sock_connect_timeout',
117
- :'sock_read_timeout'
126
+ :'sock_read_timeout',
127
+ :'rate_limit'
118
128
  ])
119
129
  end
120
130
 
@@ -169,6 +179,10 @@ module PulpAnsibleClient
169
179
  self.password = attributes[:'password']
170
180
  end
171
181
 
182
+ if attributes.key?(:'pulp_labels')
183
+ self.pulp_labels = attributes[:'pulp_labels']
184
+ end
185
+
172
186
  if attributes.key?(:'download_concurrency')
173
187
  self.download_concurrency = attributes[:'download_concurrency']
174
188
  end
@@ -192,6 +206,10 @@ module PulpAnsibleClient
192
206
  if attributes.key?(:'sock_read_timeout')
193
207
  self.sock_read_timeout = attributes[:'sock_read_timeout']
194
208
  end
209
+
210
+ if attributes.key?(:'rate_limit')
211
+ self.rate_limit = attributes[:'rate_limit']
212
+ end
195
213
  end
196
214
 
197
215
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -306,12 +324,14 @@ module PulpAnsibleClient
306
324
  proxy_url == o.proxy_url &&
307
325
  username == o.username &&
308
326
  password == o.password &&
327
+ pulp_labels == o.pulp_labels &&
309
328
  download_concurrency == o.download_concurrency &&
310
329
  policy == o.policy &&
311
330
  total_timeout == o.total_timeout &&
312
331
  connect_timeout == o.connect_timeout &&
313
332
  sock_connect_timeout == o.sock_connect_timeout &&
314
- sock_read_timeout == o.sock_read_timeout
333
+ sock_read_timeout == o.sock_read_timeout &&
334
+ rate_limit == o.rate_limit
315
335
  end
316
336
 
317
337
  # @see the `==` method
@@ -323,7 +343,7 @@ module PulpAnsibleClient
323
343
  # Calculates hash code according to all attributes.
324
344
  # @return [Integer] Hash code
325
345
  def hash
326
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
346
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
327
347
  end
328
348
 
329
349
  # Builds the object from hash