pulp_ansible_client 0.2.0b14 → 0.2.0b15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -20
  3. data/docs/{AnsibleCollectionRead.md → AnsibleCollection.md} +2 -2
  4. data/docs/AnsibleCollectionRemote.md +5 -1
  5. data/docs/AnsibleCollectionVersion.md +3 -3
  6. data/docs/AnsibleRole.md +3 -3
  7. data/docs/{CollectionImportDetailRead.md → CollectionImportDetail.md} +2 -2
  8. data/docs/ContentCollectionVersionsApi.md +4 -4
  9. data/docs/ContentRolesApi.md +4 -4
  10. data/docs/DistributionsAnsibleApi.md +2 -2
  11. data/docs/{GalaxyCollectionVersionRead.md → GalaxyCollectionVersion.md} +2 -2
  12. data/docs/{GalaxyRoleRead.md → GalaxyRole.md} +2 -2
  13. data/docs/{GalaxyRoleVersionRead.md → GalaxyRoleVersion.md} +2 -2
  14. data/docs/InlineResponse200.md +1 -1
  15. data/docs/InlineResponse2001.md +1 -1
  16. data/docs/InlineResponse20010.md +1 -1
  17. data/docs/InlineResponse20011.md +1 -1
  18. data/docs/InlineResponse20012.md +1 -1
  19. data/docs/InlineResponse20013.md +1 -1
  20. data/docs/InlineResponse2002.md +1 -1
  21. data/docs/InlineResponse2003.md +1 -1
  22. data/docs/InlineResponse2004.md +1 -1
  23. data/docs/InlineResponse2005.md +1 -1
  24. data/docs/InlineResponse2006.md +1 -1
  25. data/docs/InlineResponse2007.md +1 -1
  26. data/docs/InlineResponse2008.md +1 -1
  27. data/docs/InlineResponse2009.md +1 -1
  28. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +4 -4
  29. data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +2 -2
  30. data/docs/RemotesAnsibleApi.md +4 -4
  31. data/docs/RemotesCollectionApi.md +4 -4
  32. data/docs/RepositoriesAnsibleApi.md +4 -4
  33. data/docs/RepositoriesAnsibleVersionsApi.md +6 -4
  34. data/docs/{TagRead.md → Tag.md} +2 -2
  35. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  36. data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -6
  37. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
  38. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +6 -6
  39. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -3
  40. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +6 -6
  41. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +6 -6
  42. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +6 -6
  43. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +9 -6
  44. data/lib/pulp_ansible_client/models/{ansible_collection_read.rb → ansible_collection.rb} +3 -3
  45. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +75 -5
  46. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  47. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  48. data/lib/pulp_ansible_client/models/{collection_import_detail_read.rb → collection_import_detail.rb} +3 -3
  49. data/lib/pulp_ansible_client/models/{galaxy_collection_version_read.rb → galaxy_collection_version.rb} +3 -3
  50. data/lib/pulp_ansible_client/models/{galaxy_role_read.rb → galaxy_role.rb} +3 -3
  51. data/lib/pulp_ansible_client/models/{galaxy_role_version_read.rb → galaxy_role_version.rb} +3 -3
  52. data/lib/pulp_ansible_client/models/inline_response200.rb +1 -1
  53. data/lib/pulp_ansible_client/models/inline_response2001.rb +1 -1
  54. data/lib/pulp_ansible_client/models/inline_response20010.rb +1 -1
  55. data/lib/pulp_ansible_client/models/inline_response20011.rb +1 -1
  56. data/lib/pulp_ansible_client/models/inline_response20012.rb +1 -1
  57. data/lib/pulp_ansible_client/models/inline_response20013.rb +1 -1
  58. data/lib/pulp_ansible_client/models/inline_response2002.rb +1 -1
  59. data/lib/pulp_ansible_client/models/inline_response2003.rb +1 -1
  60. data/lib/pulp_ansible_client/models/inline_response2004.rb +1 -1
  61. data/lib/pulp_ansible_client/models/inline_response2005.rb +1 -1
  62. data/lib/pulp_ansible_client/models/inline_response2006.rb +1 -1
  63. data/lib/pulp_ansible_client/models/inline_response2007.rb +1 -1
  64. data/lib/pulp_ansible_client/models/inline_response2008.rb +1 -1
  65. data/lib/pulp_ansible_client/models/inline_response2009.rb +1 -1
  66. data/lib/pulp_ansible_client/models/{tag_read.rb → tag.rb} +3 -3
  67. data/lib/pulp_ansible_client/version.rb +1 -1
  68. data/lib/pulp_ansible_client.rb +6 -16
  69. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  70. data/spec/api/content_roles_api_spec.rb +2 -2
  71. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  72. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -2
  73. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
  74. data/spec/api/remotes_ansible_api_spec.rb +2 -2
  75. data/spec/api/remotes_collection_api_spec.rb +2 -2
  76. data/spec/api/repositories_ansible_api_spec.rb +2 -2
  77. data/spec/api/repositories_ansible_versions_api_spec.rb +3 -2
  78. data/spec/models/ansible_collection_remote_spec.rb +12 -0
  79. data/spec/models/{ansible_collection_read_spec.rb → ansible_collection_spec.rb} +6 -6
  80. data/spec/models/ansible_collection_version_spec.rb +3 -3
  81. data/spec/models/ansible_role_spec.rb +3 -3
  82. data/spec/models/{collection_import_detail_read_spec.rb → collection_import_detail_spec.rb} +6 -6
  83. data/spec/models/{galaxy_collection_version_read_spec.rb → galaxy_collection_version_spec.rb} +6 -6
  84. data/spec/models/{galaxy_role_read_spec.rb → galaxy_role_spec.rb} +6 -6
  85. data/spec/models/{galaxy_role_version_read_spec.rb → galaxy_role_version_spec.rb} +6 -6
  86. data/spec/models/{tag_read_spec.rb → tag_spec.rb} +6 -6
  87. metadata +26 -66
  88. data/docs/AnsibleAnsibleDistributionRead.md +0 -31
  89. data/docs/AnsibleAnsibleRemoteRead.md +0 -43
  90. data/docs/AnsibleAnsibleRepositoryRead.md +0 -27
  91. data/docs/AnsibleCollectionRemoteRead.md +0 -45
  92. data/docs/AnsibleCollectionVersionRead.md +0 -67
  93. data/docs/AnsibleRoleRead.md +0 -27
  94. data/docs/CollectionRead.md +0 -31
  95. data/docs/CollectionVersionRead.md +0 -37
  96. data/docs/GalaxyCollectionRead.md +0 -23
  97. data/docs/RepositoryVersionRead.md +0 -25
  98. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_read.rb +0 -327
  99. data/lib/pulp_ansible_client/models/ansible_ansible_remote_read.rb +0 -531
  100. data/lib/pulp_ansible_client/models/ansible_ansible_repository_read.rb +0 -294
  101. data/lib/pulp_ansible_client/models/ansible_collection_remote_read.rb +0 -557
  102. data/lib/pulp_ansible_client/models/ansible_collection_version_read.rb +0 -816
  103. data/lib/pulp_ansible_client/models/ansible_role_read.rb +0 -330
  104. data/lib/pulp_ansible_client/models/collection_read.rb +0 -314
  105. data/lib/pulp_ansible_client/models/collection_version_read.rb +0 -370
  106. data/lib/pulp_ansible_client/models/galaxy_collection_read.rb +0 -281
  107. data/lib/pulp_ansible_client/models/repository_version_read.rb +0 -244
  108. data/spec/models/ansible_ansible_distribution_read_spec.rb +0 -83
  109. data/spec/models/ansible_ansible_remote_read_spec.rb +0 -123
  110. data/spec/models/ansible_ansible_repository_read_spec.rb +0 -71
  111. data/spec/models/ansible_collection_remote_read_spec.rb +0 -129
  112. data/spec/models/ansible_collection_version_read_spec.rb +0 -191
  113. data/spec/models/ansible_role_read_spec.rb +0 -71
  114. data/spec/models/collection_read_spec.rb +0 -83
  115. data/spec/models/collection_version_read_spec.rb +0 -105
  116. data/spec/models/galaxy_collection_read_spec.rb +0 -59
  117. data/spec/models/repository_version_read_spec.rb +0 -65
@@ -58,6 +58,12 @@ module PulpAnsibleClient
58
58
  # The string version of Collection requirements yaml.
59
59
  attr_accessor :requirements_file
60
60
 
61
+ # The URL to receive a session token from, e.g. used with Automation Hub.
62
+ attr_accessor :auth_url
63
+
64
+ # The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details
65
+ attr_accessor :token
66
+
61
67
  class EnumAttributeValidator
62
68
  attr_reader :datatype
63
69
  attr_reader :allowable_values
@@ -97,7 +103,9 @@ module PulpAnsibleClient
97
103
  :'pulp_last_updated' => :'pulp_last_updated',
98
104
  :'download_concurrency' => :'download_concurrency',
99
105
  :'policy' => :'policy',
100
- :'requirements_file' => :'requirements_file'
106
+ :'requirements_file' => :'requirements_file',
107
+ :'auth_url' => :'auth_url',
108
+ :'token' => :'token'
101
109
  }
102
110
  end
103
111
 
@@ -118,7 +126,9 @@ module PulpAnsibleClient
118
126
  :'pulp_last_updated' => :'DateTime',
119
127
  :'download_concurrency' => :'Integer',
120
128
  :'policy' => :'String',
121
- :'requirements_file' => :'String'
129
+ :'requirements_file' => :'String',
130
+ :'auth_url' => :'String',
131
+ :'token' => :'String'
122
132
  }
123
133
  end
124
134
 
@@ -131,7 +141,9 @@ module PulpAnsibleClient
131
141
  :'proxy_url',
132
142
  :'username',
133
143
  :'password',
134
- :'requirements_file'
144
+ :'requirements_file',
145
+ :'auth_url',
146
+ :'token'
135
147
  ])
136
148
  end
137
149
 
@@ -211,6 +223,14 @@ module PulpAnsibleClient
211
223
  if attributes.key?(:'requirements_file')
212
224
  self.requirements_file = attributes[:'requirements_file']
213
225
  end
226
+
227
+ if attributes.key?(:'auth_url')
228
+ self.auth_url = attributes[:'auth_url']
229
+ end
230
+
231
+ if attributes.key?(:'token')
232
+ self.token = attributes[:'token']
233
+ end
214
234
  end
215
235
 
216
236
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -265,6 +285,22 @@ module PulpAnsibleClient
265
285
  invalid_properties.push('invalid value for "requirements_file", the character length must be great than or equal to 1.')
266
286
  end
267
287
 
288
+ if !@auth_url.nil? && @auth_url.to_s.length > 255
289
+ invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
290
+ end
291
+
292
+ if !@auth_url.nil? && @auth_url.to_s.length < 1
293
+ invalid_properties.push('invalid value for "auth_url", the character length must be great than or equal to 1.')
294
+ end
295
+
296
+ if !@token.nil? && @token.to_s.length > 2000
297
+ invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
298
+ end
299
+
300
+ if !@token.nil? && @token.to_s.length < 1
301
+ invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
302
+ end
303
+
268
304
  invalid_properties
269
305
  end
270
306
 
@@ -285,6 +321,10 @@ module PulpAnsibleClient
285
321
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
286
322
  return false unless policy_validator.valid?(@policy)
287
323
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
324
+ return false if !@auth_url.nil? && @auth_url.to_s.length > 255
325
+ return false if !@auth_url.nil? && @auth_url.to_s.length < 1
326
+ return false if !@token.nil? && @token.to_s.length > 2000
327
+ return false if !@token.nil? && @token.to_s.length < 1
288
328
  true
289
329
  end
290
330
 
@@ -406,6 +446,34 @@ module PulpAnsibleClient
406
446
  @requirements_file = requirements_file
407
447
  end
408
448
 
449
+ # Custom attribute writer method with validation
450
+ # @param [Object] auth_url Value to be assigned
451
+ def auth_url=(auth_url)
452
+ if !auth_url.nil? && auth_url.to_s.length > 255
453
+ fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
454
+ end
455
+
456
+ if !auth_url.nil? && auth_url.to_s.length < 1
457
+ fail ArgumentError, 'invalid value for "auth_url", the character length must be great than or equal to 1.'
458
+ end
459
+
460
+ @auth_url = auth_url
461
+ end
462
+
463
+ # Custom attribute writer method with validation
464
+ # @param [Object] token Value to be assigned
465
+ def token=(token)
466
+ if !token.nil? && token.to_s.length > 2000
467
+ fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
468
+ end
469
+
470
+ if !token.nil? && token.to_s.length < 1
471
+ fail ArgumentError, 'invalid value for "token", the character length must be great than or equal to 1.'
472
+ end
473
+
474
+ @token = token
475
+ end
476
+
409
477
  # Checks equality by comparing each attribute.
410
478
  # @param [Object] Object to be compared
411
479
  def ==(o)
@@ -425,7 +493,9 @@ module PulpAnsibleClient
425
493
  pulp_last_updated == o.pulp_last_updated &&
426
494
  download_concurrency == o.download_concurrency &&
427
495
  policy == o.policy &&
428
- requirements_file == o.requirements_file
496
+ requirements_file == o.requirements_file &&
497
+ auth_url == o.auth_url &&
498
+ token == o.token
429
499
  end
430
500
 
431
501
  # @see the `==` method
@@ -437,7 +507,7 @@ module PulpAnsibleClient
437
507
  # Calculates hash code according to all attributes.
438
508
  # @return [Integer] Hash code
439
509
  def hash
440
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, requirements_file].hash
510
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, requirements_file, auth_url, token].hash
441
511
  end
442
512
 
443
513
  # Builds the object from hash
@@ -14,14 +14,14 @@ require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class AnsibleCollectionVersion
17
+ # Timestamp of creation.
18
+ attr_accessor :pulp_created
19
+
17
20
  attr_accessor :pulp_href
18
21
 
19
22
  # Artifact file representing the physical content
20
23
  attr_accessor :artifact
21
24
 
22
- # Timestamp of creation.
23
- attr_accessor :pulp_created
24
-
25
25
  # The MD5 checksum if available.
26
26
  attr_accessor :md5
27
27
 
@@ -93,9 +93,9 @@ module PulpAnsibleClient
93
93
  # Attribute mapping from ruby-style variable name to JSON key.
94
94
  def self.attribute_map
95
95
  {
96
+ :'pulp_created' => :'pulp_created',
96
97
  :'pulp_href' => :'pulp_href',
97
98
  :'artifact' => :'artifact',
98
- :'pulp_created' => :'pulp_created',
99
99
  :'md5' => :'md5',
100
100
  :'sha1' => :'sha1',
101
101
  :'sha224' => :'sha224',
@@ -125,9 +125,9 @@ module PulpAnsibleClient
125
125
  # Attribute type mapping.
126
126
  def self.openapi_types
127
127
  {
128
+ :'pulp_created' => :'DateTime',
128
129
  :'pulp_href' => :'String',
129
130
  :'artifact' => :'String',
130
- :'pulp_created' => :'DateTime',
131
131
  :'md5' => :'String',
132
132
  :'sha1' => :'String',
133
133
  :'sha224' => :'String',
@@ -175,6 +175,10 @@ module PulpAnsibleClient
175
175
  h[k.to_sym] = v
176
176
  }
177
177
 
178
+ if attributes.key?(:'pulp_created')
179
+ self.pulp_created = attributes[:'pulp_created']
180
+ end
181
+
178
182
  if attributes.key?(:'pulp_href')
179
183
  self.pulp_href = attributes[:'pulp_href']
180
184
  end
@@ -183,10 +187,6 @@ module PulpAnsibleClient
183
187
  self.artifact = attributes[:'artifact']
184
188
  end
185
189
 
186
- if attributes.key?(:'pulp_created')
187
- self.pulp_created = attributes[:'pulp_created']
188
- end
189
-
190
190
  if attributes.key?(:'md5')
191
191
  self.md5 = attributes[:'md5']
192
192
  end
@@ -659,9 +659,9 @@ module PulpAnsibleClient
659
659
  def ==(o)
660
660
  return true if self.equal?(o)
661
661
  self.class == o.class &&
662
+ pulp_created == o.pulp_created &&
662
663
  pulp_href == o.pulp_href &&
663
664
  artifact == o.artifact &&
664
- pulp_created == o.pulp_created &&
665
665
  md5 == o.md5 &&
666
666
  sha1 == o.sha1 &&
667
667
  sha224 == o.sha224 &&
@@ -696,7 +696,7 @@ module PulpAnsibleClient
696
696
  # Calculates hash code according to all attributes.
697
697
  # @return [Integer] Hash code
698
698
  def hash
699
- [pulp_href, artifact, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, tags, version, deprecated].hash
699
+ [pulp_created, pulp_href, artifact, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, tags, version, deprecated].hash
700
700
  end
701
701
 
702
702
  # Builds the object from hash
@@ -14,14 +14,14 @@ require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
16
  class AnsibleRole
17
+ # Timestamp of creation.
18
+ attr_accessor :pulp_created
19
+
17
20
  attr_accessor :pulp_href
18
21
 
19
22
  # Artifact file representing the physical content
20
23
  attr_accessor :artifact
21
24
 
22
- # Timestamp of creation.
23
- attr_accessor :pulp_created
24
-
25
25
  attr_accessor :version
26
26
 
27
27
  attr_accessor :name
@@ -31,9 +31,9 @@ module PulpAnsibleClient
31
31
  # Attribute mapping from ruby-style variable name to JSON key.
32
32
  def self.attribute_map
33
33
  {
34
+ :'pulp_created' => :'pulp_created',
34
35
  :'pulp_href' => :'pulp_href',
35
36
  :'artifact' => :'artifact',
36
- :'pulp_created' => :'pulp_created',
37
37
  :'version' => :'version',
38
38
  :'name' => :'name',
39
39
  :'namespace' => :'namespace'
@@ -43,9 +43,9 @@ module PulpAnsibleClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'pulp_created' => :'DateTime',
46
47
  :'pulp_href' => :'String',
47
48
  :'artifact' => :'String',
48
- :'pulp_created' => :'DateTime',
49
49
  :'version' => :'String',
50
50
  :'name' => :'String',
51
51
  :'namespace' => :'String'
@@ -73,6 +73,10 @@ module PulpAnsibleClient
73
73
  h[k.to_sym] = v
74
74
  }
75
75
 
76
+ if attributes.key?(:'pulp_created')
77
+ self.pulp_created = attributes[:'pulp_created']
78
+ end
79
+
76
80
  if attributes.key?(:'pulp_href')
77
81
  self.pulp_href = attributes[:'pulp_href']
78
82
  end
@@ -81,10 +85,6 @@ module PulpAnsibleClient
81
85
  self.artifact = attributes[:'artifact']
82
86
  end
83
87
 
84
- if attributes.key?(:'pulp_created')
85
- self.pulp_created = attributes[:'pulp_created']
86
- end
87
-
88
88
  if attributes.key?(:'version')
89
89
  self.version = attributes[:'version']
90
90
  end
@@ -193,9 +193,9 @@ module PulpAnsibleClient
193
193
  def ==(o)
194
194
  return true if self.equal?(o)
195
195
  self.class == o.class &&
196
+ pulp_created == o.pulp_created &&
196
197
  pulp_href == o.pulp_href &&
197
198
  artifact == o.artifact &&
198
- pulp_created == o.pulp_created &&
199
199
  version == o.version &&
200
200
  name == o.name &&
201
201
  namespace == o.namespace
@@ -210,7 +210,7 @@ module PulpAnsibleClient
210
210
  # Calculates hash code according to all attributes.
211
211
  # @return [Integer] Hash code
212
212
  def hash
213
- [pulp_href, artifact, pulp_created, version, name, namespace].hash
213
+ [pulp_created, pulp_href, artifact, version, name, namespace].hash
214
214
  end
215
215
 
216
216
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class CollectionImportDetailRead
16
+ class CollectionImportDetail
17
17
  attr_accessor :id
18
18
 
19
19
  attr_accessor :state
@@ -68,13 +68,13 @@ module PulpAnsibleClient
68
68
  # @param [Hash] attributes Model attributes in the form of hash
69
69
  def initialize(attributes = {})
70
70
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionImportDetailRead` initialize method"
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionImportDetail` initialize method"
72
72
  end
73
73
 
74
74
  # check to see if the attribute exists and convert string to symbol for hash key
75
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
76
  if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionImportDetailRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionImportDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
78
  end
79
79
  h[k.to_sym] = v
80
80
  }
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class GalaxyCollectionVersionRead
16
+ class GalaxyCollectionVersion
17
17
  attr_accessor :version
18
18
 
19
19
  attr_accessor :href
@@ -60,13 +60,13 @@ module PulpAnsibleClient
60
60
  # @param [Hash] attributes Model attributes in the form of hash
61
61
  def initialize(attributes = {})
62
62
  if (!attributes.is_a?(Hash))
63
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionVersionRead` initialize method"
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyCollectionVersion` initialize method"
64
64
  end
65
65
 
66
66
  # check to see if the attribute exists and convert string to symbol for hash key
67
67
  attributes = attributes.each_with_object({}) { |(k, v), h|
68
68
  if (!self.class.attribute_map.key?(k.to_sym))
69
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyCollectionVersionRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ 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
70
70
  end
71
71
  h[k.to_sym] = v
72
72
  }
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class GalaxyRoleRead
16
+ class GalaxyRole
17
17
  attr_accessor :id
18
18
 
19
19
  attr_accessor :name
@@ -48,13 +48,13 @@ module PulpAnsibleClient
48
48
  # @param [Hash] attributes Model attributes in the form of hash
49
49
  def initialize(attributes = {})
50
50
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyRoleRead` initialize method"
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyRole` initialize method"
52
52
  end
53
53
 
54
54
  # check to see if the attribute exists and convert string to symbol for hash key
55
55
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyRoleRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyRole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
58
  end
59
59
  h[k.to_sym] = v
60
60
  }
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class GalaxyRoleVersionRead
16
+ class GalaxyRoleVersion
17
17
  attr_accessor :name
18
18
 
19
19
  attr_accessor :source
@@ -44,13 +44,13 @@ module PulpAnsibleClient
44
44
  # @param [Hash] attributes Model attributes in the form of hash
45
45
  def initialize(attributes = {})
46
46
  if (!attributes.is_a?(Hash))
47
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyRoleVersionRead` initialize method"
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::GalaxyRoleVersion` initialize method"
48
48
  end
49
49
 
50
50
  # check to see if the attribute exists and convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h|
52
52
  if (!self.class.attribute_map.key?(k.to_sym))
53
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyRoleVersionRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::GalaxyRoleVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
54
  end
55
55
  h[k.to_sym] = v
56
56
  }
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleCollectionRead>'
41
+ :'results' => :'Array<AnsibleCollection>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleCollectionVersionRead>'
41
+ :'results' => :'Array<AnsibleCollectionVersion>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GalaxyRoleVersionRead>'
41
+ :'results' => :'Array<GalaxyRoleVersion>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GalaxyCollectionRead>'
41
+ :'results' => :'Array<GalaxyCollection>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GalaxyCollectionVersionRead>'
41
+ :'results' => :'Array<GalaxyCollectionVersion>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<CollectionRead>'
41
+ :'results' => :'Array<Collection>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleRoleRead>'
41
+ :'results' => :'Array<AnsibleRole>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleAnsibleDistributionRead>'
41
+ :'results' => :'Array<AnsibleAnsibleDistribution>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<TagRead>'
41
+ :'results' => :'Array<Tag>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleAnsibleRemoteRead>'
41
+ :'results' => :'Array<AnsibleAnsibleRemote>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleCollectionRemoteRead>'
41
+ :'results' => :'Array<AnsibleCollectionRemote>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<AnsibleAnsibleRepositoryRead>'
41
+ :'results' => :'Array<AnsibleAnsibleRepository>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<RepositoryVersionRead>'
41
+ :'results' => :'Array<RepositoryVersion>'
42
42
  }
43
43
  end
44
44
 
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<GalaxyRoleRead>'
41
+ :'results' => :'Array<GalaxyRole>'
42
42
  }
43
43
  end
44
44
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class TagRead
16
+ class Tag
17
17
  attr_accessor :name
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -40,13 +40,13 @@ module PulpAnsibleClient
40
40
  # @param [Hash] attributes Model attributes in the form of hash
41
41
  def initialize(attributes = {})
42
42
  if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::TagRead` initialize method"
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::Tag` initialize method"
44
44
  end
45
45
 
46
46
  # check to see if the attribute exists and convert string to symbol for hash key
47
47
  attributes = attributes.each_with_object({}) { |(k, v), h|
48
48
  if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::TagRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::Tag`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
50
  end
51
51
  h[k.to_sym] = v
52
52
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.2.0b14'
14
+ VERSION = '0.2.0b15'
15
15
  end
@@ -18,34 +18,25 @@ require 'pulp_ansible_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pulp_ansible_client/models/ansible_ansible_distribution'
21
- require 'pulp_ansible_client/models/ansible_ansible_distribution_read'
22
21
  require 'pulp_ansible_client/models/ansible_ansible_remote'
23
- require 'pulp_ansible_client/models/ansible_ansible_remote_read'
24
22
  require 'pulp_ansible_client/models/ansible_ansible_repository'
25
- require 'pulp_ansible_client/models/ansible_ansible_repository_read'
26
- require 'pulp_ansible_client/models/ansible_collection_read'
23
+ require 'pulp_ansible_client/models/ansible_collection'
27
24
  require 'pulp_ansible_client/models/ansible_collection_remote'
28
- require 'pulp_ansible_client/models/ansible_collection_remote_read'
29
25
  require 'pulp_ansible_client/models/ansible_collection_version'
30
- require 'pulp_ansible_client/models/ansible_collection_version_read'
31
26
  require 'pulp_ansible_client/models/ansible_role'
32
- require 'pulp_ansible_client/models/ansible_role_read'
33
27
  require 'pulp_ansible_client/models/ansible_tag'
34
28
  require 'pulp_ansible_client/models/async_operation_response'
35
29
  require 'pulp_ansible_client/models/collection'
36
- require 'pulp_ansible_client/models/collection_import_detail_read'
30
+ require 'pulp_ansible_client/models/collection_import_detail'
37
31
  require 'pulp_ansible_client/models/collection_metadata'
38
32
  require 'pulp_ansible_client/models/collection_namespace'
39
- require 'pulp_ansible_client/models/collection_read'
40
33
  require 'pulp_ansible_client/models/collection_ref'
41
34
  require 'pulp_ansible_client/models/collection_version'
42
- require 'pulp_ansible_client/models/collection_version_read'
43
35
  require 'pulp_ansible_client/models/content_summary'
44
36
  require 'pulp_ansible_client/models/galaxy_collection'
45
- require 'pulp_ansible_client/models/galaxy_collection_read'
46
- require 'pulp_ansible_client/models/galaxy_collection_version_read'
47
- require 'pulp_ansible_client/models/galaxy_role_read'
48
- require 'pulp_ansible_client/models/galaxy_role_version_read'
37
+ require 'pulp_ansible_client/models/galaxy_collection_version'
38
+ require 'pulp_ansible_client/models/galaxy_role'
39
+ require 'pulp_ansible_client/models/galaxy_role_version'
49
40
  require 'pulp_ansible_client/models/inline_response200'
50
41
  require 'pulp_ansible_client/models/inline_response2001'
51
42
  require 'pulp_ansible_client/models/inline_response20010'
@@ -63,8 +54,7 @@ require 'pulp_ansible_client/models/inline_response2009'
63
54
  require 'pulp_ansible_client/models/repository_add_remove_content'
64
55
  require 'pulp_ansible_client/models/repository_sync_url'
65
56
  require 'pulp_ansible_client/models/repository_version'
66
- require 'pulp_ansible_client/models/repository_version_read'
67
- require 'pulp_ansible_client/models/tag_read'
57
+ require 'pulp_ansible_client/models/tag'
68
58
 
69
59
  # APIs
70
60
  require 'pulp_ansible_client/api/ansible_collections_api'
@@ -37,7 +37,7 @@ describe 'ContentCollectionVersionsApi' do
37
37
  # ViewSet for Ansible Collection.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [AnsibleCollectionVersionRead]
40
+ # @return [AnsibleCollectionVersion]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -78,7 +78,7 @@ describe 'ContentCollectionVersionsApi' do
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @option opts [String] :fields A list of fields to include in the response.
80
80
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
81
- # @return [AnsibleCollectionVersionRead]
81
+ # @return [AnsibleCollectionVersion]
82
82
  describe 'read test' do
83
83
  it 'should work' do
84
84
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers