pulp_ansible_client 0.2.0b1 → 0.2.0b2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -12
  3. data/docs/AnsibleDistribution.md +3 -3
  4. data/docs/CollectionRemote.md +1 -3
  5. data/docs/CollectionVersion.md +63 -0
  6. data/docs/ContentCollectionsApi.md +16 -14
  7. data/docs/{GalaxyCollection.md → GalaxyCollectionVersion.md} +2 -2
  8. data/docs/InlineResponse200.md +4 -4
  9. data/docs/InlineResponse2001.md +3 -3
  10. data/docs/InlineResponse2002.md +3 -3
  11. data/docs/InlineResponse2003.md +4 -4
  12. data/docs/InlineResponse2004.md +4 -4
  13. data/docs/InlineResponse2005.md +4 -4
  14. data/docs/InlineResponse2006.md +4 -4
  15. data/docs/InlineResponse2007.md +4 -4
  16. data/docs/InlineResponse2008.md +23 -0
  17. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +64 -6
  18. data/docs/PulpAnsibleGalaxyApiRolesApi.md +2 -2
  19. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +2 -2
  20. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +6 -6
  21. data/docs/PulpAnsibleTagsApi.md +66 -0
  22. data/docs/RemotesAnsibleApi.md +2 -2
  23. data/docs/RemotesCollectionApi.md +2 -2
  24. data/docs/Role.md +4 -4
  25. data/docs/Tag.md +17 -0
  26. data/docs/TagNested.md +17 -0
  27. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -2
  28. data/lib/pulp_ansible_client/api/content_collections_api.rb +19 -16
  29. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -3
  30. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -6
  31. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +3 -3
  32. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +79 -15
  33. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +6 -6
  34. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +6 -6
  35. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +14 -14
  36. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +84 -0
  37. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +10 -10
  38. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
  39. data/lib/pulp_ansible_client/api_client.rb +77 -62
  40. data/lib/pulp_ansible_client/api_error.rb +1 -1
  41. data/lib/pulp_ansible_client/configuration.rb +13 -21
  42. data/lib/pulp_ansible_client/models/ansible_distribution.rb +15 -30
  43. data/lib/pulp_ansible_client/models/ansible_remote.rb +1 -1
  44. data/lib/pulp_ansible_client/models/async_operation_response.rb +1 -1
  45. data/lib/pulp_ansible_client/models/collection_remote.rb +5 -38
  46. data/lib/pulp_ansible_client/models/{collection.rb → collection_version.rb} +314 -43
  47. data/lib/pulp_ansible_client/models/{galaxy_collection.rb → galaxy_collection_version.rb} +4 -4
  48. data/lib/pulp_ansible_client/models/galaxy_role.rb +1 -1
  49. data/lib/pulp_ansible_client/models/galaxy_role_version.rb +1 -1
  50. data/lib/pulp_ansible_client/models/inline_response200.rb +12 -12
  51. data/lib/pulp_ansible_client/models/inline_response2001.rb +11 -11
  52. data/lib/pulp_ansible_client/models/inline_response2002.rb +11 -11
  53. data/lib/pulp_ansible_client/models/inline_response2003.rb +12 -12
  54. data/lib/pulp_ansible_client/models/inline_response2004.rb +12 -12
  55. data/lib/pulp_ansible_client/models/inline_response2005.rb +12 -12
  56. data/lib/pulp_ansible_client/models/inline_response2006.rb +12 -12
  57. data/lib/pulp_ansible_client/models/inline_response2007.rb +12 -12
  58. data/lib/pulp_ansible_client/models/inline_response2008.rb +235 -0
  59. data/lib/pulp_ansible_client/models/repository_sync_url.rb +1 -1
  60. data/lib/pulp_ansible_client/models/role.rb +18 -18
  61. data/lib/pulp_ansible_client/models/tag.rb +211 -0
  62. data/lib/pulp_ansible_client/models/tag_nested.rb +212 -0
  63. data/lib/pulp_ansible_client/version.rb +2 -2
  64. data/lib/pulp_ansible_client.rb +7 -3
  65. data/pulp_ansible_client.gemspec +3 -9
  66. data/spec/api/ansible_collections_api_spec.rb +1 -1
  67. data/spec/api/content_collections_api_spec.rb +7 -6
  68. data/spec/api/content_roles_api_spec.rb +1 -1
  69. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  70. data/spec/api/pulp_ansible_api_api_spec.rb +1 -1
  71. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +16 -3
  72. data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +2 -2
  73. data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +2 -2
  74. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -3
  75. data/spec/api/pulp_ansible_tags_api_spec.rb +48 -0
  76. data/spec/api/remotes_ansible_api_spec.rb +2 -2
  77. data/spec/api/remotes_collection_api_spec.rb +2 -2
  78. data/spec/api_client_spec.rb +1 -39
  79. data/spec/configuration_spec.rb +1 -1
  80. data/spec/models/ansible_distribution_spec.rb +6 -6
  81. data/spec/models/ansible_remote_spec.rb +1 -1
  82. data/spec/models/async_operation_response_spec.rb +1 -1
  83. data/spec/models/collection_remote_spec.rb +1 -7
  84. data/spec/models/{collection_spec.rb → collection_version_spec.rb} +77 -11
  85. data/spec/models/{galaxy_collection_spec.rb → galaxy_collection_version_spec.rb} +7 -7
  86. data/spec/models/galaxy_role_spec.rb +1 -1
  87. data/spec/models/galaxy_role_version_spec.rb +1 -1
  88. data/spec/models/inline_response2001_spec.rb +4 -4
  89. data/spec/models/inline_response2002_spec.rb +4 -4
  90. data/spec/models/inline_response2003_spec.rb +4 -4
  91. data/spec/models/inline_response2004_spec.rb +4 -4
  92. data/spec/models/inline_response2005_spec.rb +4 -4
  93. data/spec/models/inline_response2006_spec.rb +4 -4
  94. data/spec/models/inline_response2007_spec.rb +4 -4
  95. data/spec/models/inline_response2008_spec.rb +59 -0
  96. data/spec/models/inline_response200_spec.rb +4 -4
  97. data/spec/models/repository_sync_url_spec.rb +1 -1
  98. data/spec/models/role_spec.rb +4 -4
  99. data/spec/models/tag_nested_spec.rb +41 -0
  100. data/spec/models/tag_spec.rb +41 -0
  101. data/spec/spec_helper.rb +1 -1
  102. metadata +30 -141
  103. data/Gemfile.lock +0 -79
  104. data/docs/Collection.md +0 -41
@@ -6,24 +6,24 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class Collection
17
- # Timestamp of creation.
18
- attr_accessor :_created
16
+ class CollectionVersion
17
+ attr_accessor :_href
19
18
 
20
19
  # Artifact file representing the physical content
21
20
  attr_accessor :_artifact
22
21
 
23
- attr_accessor :_href
24
-
25
22
  attr_accessor :_type
26
23
 
24
+ # Timestamp of creation.
25
+ attr_accessor :_created
26
+
27
27
  # The MD5 checksum if available.
28
28
  attr_accessor :md5
29
29
 
@@ -42,47 +42,104 @@ module PulpAnsibleClient
42
42
  # The SHA-512 checksum if available.
43
43
  attr_accessor :sha512
44
44
 
45
- attr_accessor :version
45
+ # A list of the CollectionVersion content's authors.
46
+ attr_accessor :authors
47
+
48
+ # A JSON field with data about the contents.
49
+ attr_accessor :contents
50
+
51
+ # A dict declaring Collections that this collection requires to be installed for it to be usable.
52
+ attr_accessor :dependencies
46
53
 
54
+ # A short summary description of the collection.
55
+ attr_accessor :description
56
+
57
+ # A JSON field holding the various documentation blobs in the collection.
58
+ attr_accessor :docs_blob
59
+
60
+ # The URL to any online docs.
61
+ attr_accessor :documentation
62
+
63
+ # The URL to the homepage of the collection/project.
64
+ attr_accessor :homepage
65
+
66
+ # The URL to the collection issue tracker.
67
+ attr_accessor :issues
68
+
69
+ # A list of licenses for content inside of a collection.
70
+ attr_accessor :license
71
+
72
+ # The name of the collection.
47
73
  attr_accessor :name
48
74
 
75
+ # The namespace of the collection.
49
76
  attr_accessor :namespace
50
77
 
78
+ # The URL of the originating SCM repository.
79
+ attr_accessor :repository
80
+
81
+ attr_accessor :tags
82
+
83
+ # The version of the collection.
84
+ attr_accessor :version
85
+
51
86
  # Attribute mapping from ruby-style variable name to JSON key.
52
87
  def self.attribute_map
53
88
  {
54
- :'_created' => :'_created',
55
- :'_artifact' => :'_artifact',
56
89
  :'_href' => :'_href',
90
+ :'_artifact' => :'_artifact',
57
91
  :'_type' => :'_type',
92
+ :'_created' => :'_created',
58
93
  :'md5' => :'md5',
59
94
  :'sha1' => :'sha1',
60
95
  :'sha224' => :'sha224',
61
96
  :'sha256' => :'sha256',
62
97
  :'sha384' => :'sha384',
63
98
  :'sha512' => :'sha512',
64
- :'version' => :'version',
99
+ :'authors' => :'authors',
100
+ :'contents' => :'contents',
101
+ :'dependencies' => :'dependencies',
102
+ :'description' => :'description',
103
+ :'docs_blob' => :'docs_blob',
104
+ :'documentation' => :'documentation',
105
+ :'homepage' => :'homepage',
106
+ :'issues' => :'issues',
107
+ :'license' => :'license',
65
108
  :'name' => :'name',
66
- :'namespace' => :'namespace'
109
+ :'namespace' => :'namespace',
110
+ :'repository' => :'repository',
111
+ :'tags' => :'tags',
112
+ :'version' => :'version'
67
113
  }
68
114
  end
69
115
 
70
116
  # Attribute type mapping.
71
117
  def self.openapi_types
72
118
  {
73
- :'_created' => :'DateTime',
74
- :'_artifact' => :'String',
75
119
  :'_href' => :'String',
120
+ :'_artifact' => :'String',
76
121
  :'_type' => :'String',
122
+ :'_created' => :'DateTime',
77
123
  :'md5' => :'String',
78
124
  :'sha1' => :'String',
79
125
  :'sha224' => :'String',
80
126
  :'sha256' => :'String',
81
127
  :'sha384' => :'String',
82
128
  :'sha512' => :'String',
83
- :'version' => :'String',
129
+ :'authors' => :'Array<String>',
130
+ :'contents' => :'String',
131
+ :'dependencies' => :'String',
132
+ :'description' => :'String',
133
+ :'docs_blob' => :'String',
134
+ :'documentation' => :'String',
135
+ :'homepage' => :'String',
136
+ :'issues' => :'String',
137
+ :'license' => :'Array<String>',
84
138
  :'name' => :'String',
85
- :'namespace' => :'String'
139
+ :'namespace' => :'String',
140
+ :'repository' => :'String',
141
+ :'tags' => :'Array<TagNested>',
142
+ :'version' => :'String'
86
143
  }
87
144
  end
88
145
 
@@ -90,33 +147,33 @@ module PulpAnsibleClient
90
147
  # @param [Hash] attributes Model attributes in the form of hash
91
148
  def initialize(attributes = {})
92
149
  if (!attributes.is_a?(Hash))
93
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::Collection` initialize method"
150
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionVersion` initialize method"
94
151
  end
95
152
 
96
153
  # check to see if the attribute exists and convert string to symbol for hash key
97
154
  attributes = attributes.each_with_object({}) { |(k, v), h|
98
155
  if (!self.class.attribute_map.key?(k.to_sym))
99
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::Collection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
156
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
100
157
  end
101
158
  h[k.to_sym] = v
102
159
  }
103
160
 
104
- if attributes.key?(:'_created')
105
- self._created = attributes[:'_created']
161
+ if attributes.key?(:'_href')
162
+ self._href = attributes[:'_href']
106
163
  end
107
164
 
108
165
  if attributes.key?(:'_artifact')
109
166
  self._artifact = attributes[:'_artifact']
110
167
  end
111
168
 
112
- if attributes.key?(:'_href')
113
- self._href = attributes[:'_href']
114
- end
115
-
116
169
  if attributes.key?(:'_type')
117
170
  self._type = attributes[:'_type']
118
171
  end
119
172
 
173
+ if attributes.key?(:'_created')
174
+ self._created = attributes[:'_created']
175
+ end
176
+
120
177
  if attributes.key?(:'md5')
121
178
  self.md5 = attributes[:'md5']
122
179
  end
@@ -141,8 +198,44 @@ module PulpAnsibleClient
141
198
  self.sha512 = attributes[:'sha512']
142
199
  end
143
200
 
144
- if attributes.key?(:'version')
145
- self.version = attributes[:'version']
201
+ if attributes.key?(:'authors')
202
+ if (value = attributes[:'authors']).is_a?(Array)
203
+ self.authors = value
204
+ end
205
+ end
206
+
207
+ if attributes.key?(:'contents')
208
+ self.contents = attributes[:'contents']
209
+ end
210
+
211
+ if attributes.key?(:'dependencies')
212
+ self.dependencies = attributes[:'dependencies']
213
+ end
214
+
215
+ if attributes.key?(:'description')
216
+ self.description = attributes[:'description']
217
+ end
218
+
219
+ if attributes.key?(:'docs_blob')
220
+ self.docs_blob = attributes[:'docs_blob']
221
+ end
222
+
223
+ if attributes.key?(:'documentation')
224
+ self.documentation = attributes[:'documentation']
225
+ end
226
+
227
+ if attributes.key?(:'homepage')
228
+ self.homepage = attributes[:'homepage']
229
+ end
230
+
231
+ if attributes.key?(:'issues')
232
+ self.issues = attributes[:'issues']
233
+ end
234
+
235
+ if attributes.key?(:'license')
236
+ if (value = attributes[:'license']).is_a?(Array)
237
+ self.license = value
238
+ end
146
239
  end
147
240
 
148
241
  if attributes.key?(:'name')
@@ -152,6 +245,20 @@ module PulpAnsibleClient
152
245
  if attributes.key?(:'namespace')
153
246
  self.namespace = attributes[:'namespace']
154
247
  end
248
+
249
+ if attributes.key?(:'repository')
250
+ self.repository = attributes[:'repository']
251
+ end
252
+
253
+ if attributes.key?(:'tags')
254
+ if (value = attributes[:'tags']).is_a?(Array)
255
+ self.tags = value
256
+ end
257
+ end
258
+
259
+ if attributes.key?(:'version')
260
+ self.version = attributes[:'version']
261
+ end
155
262
  end
156
263
 
157
264
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -190,18 +297,62 @@ module PulpAnsibleClient
190
297
  invalid_properties.push('invalid value for "sha512", the character length must be great than or equal to 1.')
191
298
  end
192
299
 
193
- if @version.nil?
194
- invalid_properties.push('invalid value for "version", version cannot be nil.')
300
+ if @authors.nil?
301
+ invalid_properties.push('invalid value for "authors", authors cannot be nil.')
195
302
  end
196
303
 
197
- if @version.to_s.length < 1
198
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
304
+ if @contents.nil?
305
+ invalid_properties.push('invalid value for "contents", contents cannot be nil.')
306
+ end
307
+
308
+ if @dependencies.nil?
309
+ invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.')
310
+ end
311
+
312
+ if @description.nil?
313
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
314
+ end
315
+
316
+ if @docs_blob.nil?
317
+ invalid_properties.push('invalid value for "docs_blob", docs_blob cannot be nil.')
318
+ end
319
+
320
+ if @documentation.nil?
321
+ invalid_properties.push('invalid value for "documentation", documentation cannot be nil.')
322
+ end
323
+
324
+ if @documentation.to_s.length > 128
325
+ invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 128.')
326
+ end
327
+
328
+ if @homepage.nil?
329
+ invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
330
+ end
331
+
332
+ if @homepage.to_s.length > 128
333
+ invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 128.')
334
+ end
335
+
336
+ if @issues.nil?
337
+ invalid_properties.push('invalid value for "issues", issues cannot be nil.')
338
+ end
339
+
340
+ if @issues.to_s.length > 128
341
+ invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 128.')
342
+ end
343
+
344
+ if @license.nil?
345
+ invalid_properties.push('invalid value for "license", license cannot be nil.')
199
346
  end
200
347
 
201
348
  if @name.nil?
202
349
  invalid_properties.push('invalid value for "name", name cannot be nil.')
203
350
  end
204
351
 
352
+ if @name.to_s.length > 32
353
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 32.')
354
+ end
355
+
205
356
  if @name.to_s.length < 1
206
357
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
207
358
  end
@@ -210,10 +361,34 @@ module PulpAnsibleClient
210
361
  invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
211
362
  end
212
363
 
364
+ if @namespace.to_s.length > 32
365
+ invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 32.')
366
+ end
367
+
213
368
  if @namespace.to_s.length < 1
214
369
  invalid_properties.push('invalid value for "namespace", the character length must be great than or equal to 1.')
215
370
  end
216
371
 
372
+ if @repository.nil?
373
+ invalid_properties.push('invalid value for "repository", repository cannot be nil.')
374
+ end
375
+
376
+ if @repository.to_s.length > 128
377
+ invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 128.')
378
+ end
379
+
380
+ if @version.nil?
381
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
382
+ end
383
+
384
+ if @version.to_s.length > 32
385
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 32.')
386
+ end
387
+
388
+ if @version.to_s.length < 1
389
+ invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
390
+ end
391
+
217
392
  invalid_properties
218
393
  end
219
394
 
@@ -228,12 +403,29 @@ module PulpAnsibleClient
228
403
  return false if !@sha256.nil? && @sha256.to_s.length < 1
229
404
  return false if !@sha384.nil? && @sha384.to_s.length < 1
230
405
  return false if !@sha512.nil? && @sha512.to_s.length < 1
231
- return false if @version.nil?
232
- return false if @version.to_s.length < 1
406
+ return false if @authors.nil?
407
+ return false if @contents.nil?
408
+ return false if @dependencies.nil?
409
+ return false if @description.nil?
410
+ return false if @docs_blob.nil?
411
+ return false if @documentation.nil?
412
+ return false if @documentation.to_s.length > 128
413
+ return false if @homepage.nil?
414
+ return false if @homepage.to_s.length > 128
415
+ return false if @issues.nil?
416
+ return false if @issues.to_s.length > 128
417
+ return false if @license.nil?
233
418
  return false if @name.nil?
419
+ return false if @name.to_s.length > 32
234
420
  return false if @name.to_s.length < 1
235
421
  return false if @namespace.nil?
422
+ return false if @namespace.to_s.length > 32
236
423
  return false if @namespace.to_s.length < 1
424
+ return false if @repository.nil?
425
+ return false if @repository.to_s.length > 128
426
+ return false if @version.nil?
427
+ return false if @version.to_s.length > 32
428
+ return false if @version.to_s.length < 1
237
429
  true
238
430
  end
239
431
 
@@ -308,17 +500,45 @@ module PulpAnsibleClient
308
500
  end
309
501
 
310
502
  # Custom attribute writer method with validation
311
- # @param [Object] version Value to be assigned
312
- def version=(version)
313
- if version.nil?
314
- fail ArgumentError, 'version cannot be nil'
503
+ # @param [Object] documentation Value to be assigned
504
+ def documentation=(documentation)
505
+ if documentation.nil?
506
+ fail ArgumentError, 'documentation cannot be nil'
315
507
  end
316
508
 
317
- if version.to_s.length < 1
318
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
509
+ if documentation.to_s.length > 128
510
+ fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 128.'
319
511
  end
320
512
 
321
- @version = version
513
+ @documentation = documentation
514
+ end
515
+
516
+ # Custom attribute writer method with validation
517
+ # @param [Object] homepage Value to be assigned
518
+ def homepage=(homepage)
519
+ if homepage.nil?
520
+ fail ArgumentError, 'homepage cannot be nil'
521
+ end
522
+
523
+ if homepage.to_s.length > 128
524
+ fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 128.'
525
+ end
526
+
527
+ @homepage = homepage
528
+ end
529
+
530
+ # Custom attribute writer method with validation
531
+ # @param [Object] issues Value to be assigned
532
+ def issues=(issues)
533
+ if issues.nil?
534
+ fail ArgumentError, 'issues cannot be nil'
535
+ end
536
+
537
+ if issues.to_s.length > 128
538
+ fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 128.'
539
+ end
540
+
541
+ @issues = issues
322
542
  end
323
543
 
324
544
  # Custom attribute writer method with validation
@@ -328,6 +548,10 @@ module PulpAnsibleClient
328
548
  fail ArgumentError, 'name cannot be nil'
329
549
  end
330
550
 
551
+ if name.to_s.length > 32
552
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 32.'
553
+ end
554
+
331
555
  if name.to_s.length < 1
332
556
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
333
557
  end
@@ -342,6 +566,10 @@ module PulpAnsibleClient
342
566
  fail ArgumentError, 'namespace cannot be nil'
343
567
  end
344
568
 
569
+ if namespace.to_s.length > 32
570
+ fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 32.'
571
+ end
572
+
345
573
  if namespace.to_s.length < 1
346
574
  fail ArgumentError, 'invalid value for "namespace", the character length must be great than or equal to 1.'
347
575
  end
@@ -349,24 +577,67 @@ module PulpAnsibleClient
349
577
  @namespace = namespace
350
578
  end
351
579
 
580
+ # Custom attribute writer method with validation
581
+ # @param [Object] repository Value to be assigned
582
+ def repository=(repository)
583
+ if repository.nil?
584
+ fail ArgumentError, 'repository cannot be nil'
585
+ end
586
+
587
+ if repository.to_s.length > 128
588
+ fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 128.'
589
+ end
590
+
591
+ @repository = repository
592
+ end
593
+
594
+ # Custom attribute writer method with validation
595
+ # @param [Object] version Value to be assigned
596
+ def version=(version)
597
+ if version.nil?
598
+ fail ArgumentError, 'version cannot be nil'
599
+ end
600
+
601
+ if version.to_s.length > 32
602
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 32.'
603
+ end
604
+
605
+ if version.to_s.length < 1
606
+ fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
607
+ end
608
+
609
+ @version = version
610
+ end
611
+
352
612
  # Checks equality by comparing each attribute.
353
613
  # @param [Object] Object to be compared
354
614
  def ==(o)
355
615
  return true if self.equal?(o)
356
616
  self.class == o.class &&
357
- _created == o._created &&
358
- _artifact == o._artifact &&
359
617
  _href == o._href &&
618
+ _artifact == o._artifact &&
360
619
  _type == o._type &&
620
+ _created == o._created &&
361
621
  md5 == o.md5 &&
362
622
  sha1 == o.sha1 &&
363
623
  sha224 == o.sha224 &&
364
624
  sha256 == o.sha256 &&
365
625
  sha384 == o.sha384 &&
366
626
  sha512 == o.sha512 &&
367
- version == o.version &&
627
+ authors == o.authors &&
628
+ contents == o.contents &&
629
+ dependencies == o.dependencies &&
630
+ description == o.description &&
631
+ docs_blob == o.docs_blob &&
632
+ documentation == o.documentation &&
633
+ homepage == o.homepage &&
634
+ issues == o.issues &&
635
+ license == o.license &&
368
636
  name == o.name &&
369
- namespace == o.namespace
637
+ namespace == o.namespace &&
638
+ repository == o.repository &&
639
+ tags == o.tags &&
640
+ version == o.version
370
641
  end
371
642
 
372
643
  # @see the `==` method
@@ -378,7 +649,7 @@ module PulpAnsibleClient
378
649
  # Calculates hash code according to all attributes.
379
650
  # @return [Integer] Hash code
380
651
  def hash
381
- [_created, _artifact, _href, _type, md5, sha1, sha224, sha256, sha384, sha512, version, name, namespace].hash
652
+ [_href, _artifact, _type, _created, md5, sha1, sha224, sha256, sha384, sha512, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, tags, version].hash
382
653
  end
383
654
 
384
655
  # Builds the object from hash
@@ -6,14 +6,14 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class GalaxyCollection
16
+ class GalaxyCollectionVersion
17
17
  attr_accessor :name
18
18
 
19
19
  attr_accessor :namespace
@@ -50,13 +50,13 @@ module PulpAnsibleClient
50
50
  # @param [Hash] attributes Model attributes in the form of hash
51
51
  def initialize(attributes = {})
52
52
  if (!attributes.is_a?(Hash))
53
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollection` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionVersion` initialize method"
54
54
  end
55
55
 
56
56
  # check to see if the attribute exists and convert string to symbol for hash key
57
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
58
58
  if (!self.class.attribute_map.key?(k.to_sym))
59
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollectionVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
60
  end
61
61
  h[k.to_sym] = v
62
62
  }
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -14,20 +14,20 @@ require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class InlineResponse200
17
+ attr_accessor :count
18
+
17
19
  attr_accessor :_next
18
20
 
19
21
  attr_accessor :previous
20
22
 
21
- attr_accessor :count
22
-
23
23
  attr_accessor :results
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
+ :'count' => :'count',
28
29
  :'_next' => :'next',
29
30
  :'previous' => :'previous',
30
- :'count' => :'count',
31
31
  :'results' => :'results'
32
32
  }
33
33
  end
@@ -35,10 +35,10 @@ module PulpAnsibleClient
35
35
  # Attribute type mapping.
36
36
  def self.openapi_types
37
37
  {
38
+ :'count' => :'Integer',
38
39
  :'_next' => :'String',
39
40
  :'previous' => :'String',
40
- :'count' => :'Integer',
41
- :'results' => :'Array<Collection>'
41
+ :'results' => :'Array<CollectionVersion>'
42
42
  }
43
43
  end
44
44
 
@@ -57,6 +57,10 @@ module PulpAnsibleClient
57
57
  h[k.to_sym] = v
58
58
  }
59
59
 
60
+ if attributes.key?(:'count')
61
+ self.count = attributes[:'count']
62
+ end
63
+
60
64
  if attributes.key?(:'_next')
61
65
  self._next = attributes[:'_next']
62
66
  end
@@ -65,10 +69,6 @@ module PulpAnsibleClient
65
69
  self.previous = attributes[:'previous']
66
70
  end
67
71
 
68
- if attributes.key?(:'count')
69
- self.count = attributes[:'count']
70
- end
71
-
72
72
  if attributes.key?(:'results')
73
73
  if (value = attributes[:'results']).is_a?(Array)
74
74
  self.results = value
@@ -104,9 +104,9 @@ module PulpAnsibleClient
104
104
  def ==(o)
105
105
  return true if self.equal?(o)
106
106
  self.class == o.class &&
107
+ count == o.count &&
107
108
  _next == o._next &&
108
109
  previous == o.previous &&
109
- count == o.count &&
110
110
  results == o.results
111
111
  end
112
112
 
@@ -119,7 +119,7 @@ module PulpAnsibleClient
119
119
  # Calculates hash code according to all attributes.
120
120
  # @return [Integer] Hash code
121
121
  def hash
122
- [_next, previous, count, results].hash
122
+ [count, _next, previous, results].hash
123
123
  end
124
124
 
125
125
  # Builds the object from hash