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,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
 
@@ -22,9 +22,6 @@ module PulpAnsibleClient
22
22
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
23
  attr_accessor :base_path
24
24
 
25
- # The URL for accessing the publication as defined by this distribution.
26
- attr_accessor :base_url
27
-
28
25
  # An optional content-guard.
29
26
  attr_accessor :content_guard
30
27
 
@@ -37,17 +34,20 @@ module PulpAnsibleClient
37
34
  # RepositoryVersion to be served
38
35
  attr_accessor :repository_version
39
36
 
37
+ # The URL of a mazer content source.
38
+ attr_accessor :mazer_url
39
+
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
43
  :'_href' => :'_href',
44
44
  :'_created' => :'_created',
45
45
  :'base_path' => :'base_path',
46
- :'base_url' => :'base_url',
47
46
  :'content_guard' => :'content_guard',
48
47
  :'name' => :'name',
49
48
  :'repository' => :'repository',
50
- :'repository_version' => :'repository_version'
49
+ :'repository_version' => :'repository_version',
50
+ :'mazer_url' => :'mazer_url'
51
51
  }
52
52
  end
53
53
 
@@ -57,11 +57,11 @@ module PulpAnsibleClient
57
57
  :'_href' => :'String',
58
58
  :'_created' => :'DateTime',
59
59
  :'base_path' => :'String',
60
- :'base_url' => :'String',
61
60
  :'content_guard' => :'String',
62
61
  :'name' => :'String',
63
62
  :'repository' => :'String',
64
- :'repository_version' => :'String'
63
+ :'repository_version' => :'String',
64
+ :'mazer_url' => :'String'
65
65
  }
66
66
  end
67
67
 
@@ -92,10 +92,6 @@ module PulpAnsibleClient
92
92
  self.base_path = attributes[:'base_path']
93
93
  end
94
94
 
95
- if attributes.key?(:'base_url')
96
- self.base_url = attributes[:'base_url']
97
- end
98
-
99
95
  if attributes.key?(:'content_guard')
100
96
  self.content_guard = attributes[:'content_guard']
101
97
  end
@@ -111,6 +107,10 @@ module PulpAnsibleClient
111
107
  if attributes.key?(:'repository_version')
112
108
  self.repository_version = attributes[:'repository_version']
113
109
  end
110
+
111
+ if attributes.key?(:'mazer_url')
112
+ self.mazer_url = attributes[:'mazer_url']
113
+ end
114
114
  end
115
115
 
116
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,10 +129,6 @@ module PulpAnsibleClient
129
129
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
130
130
  end
131
131
 
132
- if !@base_url.nil? && @base_url.to_s.length < 1
133
- invalid_properties.push('invalid value for "base_url", the character length must be great than or equal to 1.')
134
- end
135
-
136
132
  if @name.nil?
137
133
  invalid_properties.push('invalid value for "name", name cannot be nil.')
138
134
  end
@@ -154,7 +150,6 @@ module PulpAnsibleClient
154
150
  return false if @base_path.nil?
155
151
  return false if @base_path.to_s.length > 255
156
152
  return false if @base_path.to_s.length < 1
157
- return false if !@base_url.nil? && @base_url.to_s.length < 1
158
153
  return false if @name.nil?
159
154
  return false if @name.to_s.length > 255
160
155
  return false if @name.to_s.length < 1
@@ -179,16 +174,6 @@ module PulpAnsibleClient
179
174
  @base_path = base_path
180
175
  end
181
176
 
182
- # Custom attribute writer method with validation
183
- # @param [Object] base_url Value to be assigned
184
- def base_url=(base_url)
185
- if !base_url.nil? && base_url.to_s.length < 1
186
- fail ArgumentError, 'invalid value for "base_url", the character length must be great than or equal to 1.'
187
- end
188
-
189
- @base_url = base_url
190
- end
191
-
192
177
  # Custom attribute writer method with validation
193
178
  # @param [Object] name Value to be assigned
194
179
  def name=(name)
@@ -215,11 +200,11 @@ module PulpAnsibleClient
215
200
  _href == o._href &&
216
201
  _created == o._created &&
217
202
  base_path == o.base_path &&
218
- base_url == o.base_url &&
219
203
  content_guard == o.content_guard &&
220
204
  name == o.name &&
221
205
  repository == o.repository &&
222
- repository_version == o.repository_version
206
+ repository_version == o.repository_version &&
207
+ mazer_url == o.mazer_url
223
208
  end
224
209
 
225
210
  # @see the `==` method
@@ -231,7 +216,7 @@ module PulpAnsibleClient
231
216
  # Calculates hash code according to all attributes.
232
217
  # @return [Integer] Hash code
233
218
  def hash
234
- [_href, _created, base_path, base_url, content_guard, name, repository, repository_version].hash
219
+ [_href, _created, base_path, content_guard, name, repository, repository_version, mazer_url].hash
235
220
  end
236
221
 
237
222
  # Builds the object from hash
@@ -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
 
@@ -57,8 +57,6 @@ module PulpAnsibleClient
57
57
  # The policy to use when downloading content.
58
58
  attr_accessor :policy
59
59
 
60
- attr_accessor :whitelist
61
-
62
60
  class EnumAttributeValidator
63
61
  attr_reader :datatype
64
62
  attr_reader :allowable_values
@@ -98,8 +96,7 @@ module PulpAnsibleClient
98
96
  :'password' => :'password',
99
97
  :'_last_updated' => :'_last_updated',
100
98
  :'download_concurrency' => :'download_concurrency',
101
- :'policy' => :'policy',
102
- :'whitelist' => :'whitelist'
99
+ :'policy' => :'policy'
103
100
  }
104
101
  end
105
102
 
@@ -120,8 +117,7 @@ module PulpAnsibleClient
120
117
  :'password' => :'String',
121
118
  :'_last_updated' => :'DateTime',
122
119
  :'download_concurrency' => :'Integer',
123
- :'policy' => :'String',
124
- :'whitelist' => :'String'
120
+ :'policy' => :'String'
125
121
  }
126
122
  end
127
123
 
@@ -201,10 +197,6 @@ module PulpAnsibleClient
201
197
  else
202
198
  self.policy = 'immediate'
203
199
  end
204
-
205
- if attributes.key?(:'whitelist')
206
- self.whitelist = attributes[:'whitelist']
207
- end
208
200
  end
209
201
 
210
202
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -259,14 +251,6 @@ module PulpAnsibleClient
259
251
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
252
  end
261
253
 
262
- if @whitelist.nil?
263
- invalid_properties.push('invalid value for "whitelist", whitelist cannot be nil.')
264
- end
265
-
266
- if @whitelist.to_s.length < 1
267
- invalid_properties.push('invalid value for "whitelist", the character length must be great than or equal to 1.')
268
- end
269
-
270
254
  invalid_properties
271
255
  end
272
256
 
@@ -287,8 +271,6 @@ module PulpAnsibleClient
287
271
  return false if !@download_concurrency.nil? && @download_concurrency < 1
288
272
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
289
273
  return false unless policy_validator.valid?(@policy)
290
- return false if @whitelist.nil?
291
- return false if @whitelist.to_s.length < 1
292
274
  true
293
275
  end
294
276
 
@@ -410,20 +392,6 @@ module PulpAnsibleClient
410
392
  @policy = policy
411
393
  end
412
394
 
413
- # Custom attribute writer method with validation
414
- # @param [Object] whitelist Value to be assigned
415
- def whitelist=(whitelist)
416
- if whitelist.nil?
417
- fail ArgumentError, 'whitelist cannot be nil'
418
- end
419
-
420
- if whitelist.to_s.length < 1
421
- fail ArgumentError, 'invalid value for "whitelist", the character length must be great than or equal to 1.'
422
- end
423
-
424
- @whitelist = whitelist
425
- end
426
-
427
395
  # Checks equality by comparing each attribute.
428
396
  # @param [Object] Object to be compared
429
397
  def ==(o)
@@ -443,8 +411,7 @@ module PulpAnsibleClient
443
411
  password == o.password &&
444
412
  _last_updated == o._last_updated &&
445
413
  download_concurrency == o.download_concurrency &&
446
- policy == o.policy &&
447
- whitelist == o.whitelist
414
+ policy == o.policy
448
415
  end
449
416
 
450
417
  # @see the `==` method
@@ -456,7 +423,7 @@ module PulpAnsibleClient
456
423
  # Calculates hash code according to all attributes.
457
424
  # @return [Integer] Hash code
458
425
  def hash
459
- [_href, _created, _type, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy, whitelist].hash
426
+ [_href, _created, _type, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy].hash
460
427
  end
461
428
 
462
429
  # Builds the object from hash