pulp_ansible_client 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -21
  3. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  4. data/docs/AnsibleCollectionsApi.md +43 -43
  5. data/docs/AnsibleRoleResponse.md +3 -3
  6. data/docs/CollectionVersionDocsResponse.md +17 -0
  7. data/docs/GalaxyCollectionListApi.md +7 -9
  8. data/docs/GalaxyDetailApi.md +5 -5
  9. data/docs/PulpAnsibleApiApi.md +5 -5
  10. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -5
  11. data/docs/PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.md +67 -0
  12. data/docs/RoleListApi.md +5 -5
  13. data/docs/V1RolesApi.md +5 -5
  14. data/docs/V2CollectionsApi.md +26 -26
  15. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +70 -70
  16. data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +9 -12
  17. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  18. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  19. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +9 -9
  20. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb +106 -0
  21. data/lib/pulp_ansible_client/api/role_list_api.rb +6 -6
  22. data/lib/pulp_ansible_client/api/v1_roles_api.rb +6 -6
  23. data/lib/pulp_ansible_client/api/v2_collections_api.rb +43 -43
  24. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +0 -44
  25. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -54
  26. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  27. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +0 -68
  28. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +212 -0
  29. data/lib/pulp_ansible_client/version.rb +1 -1
  30. data/lib/pulp_ansible_client.rb +2 -0
  31. data/spec/api/ansible_collections_api_spec.rb +16 -16
  32. data/spec/api/galaxy_collection_list_api_spec.rb +3 -4
  33. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  34. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  35. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +2 -2
  36. data/spec/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb +51 -0
  37. data/spec/api/role_list_api_spec.rb +2 -2
  38. data/spec/api/v1_roles_api_spec.rb +2 -2
  39. data/spec/api/v2_collections_api_spec.rb +12 -12
  40. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  41. data/spec/models/ansible_role_response_spec.rb +3 -3
  42. data/spec/models/collection_version_docs_response_spec.rb +41 -0
  43. metadata +10 -2
@@ -139,26 +139,6 @@ module PulpAnsibleClient
139
139
  # @return Array for valid properties with the reasons
140
140
  def list_invalid_properties
141
141
  invalid_properties = Array.new
142
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
143
- if !@documentation.nil? && @documentation !~ pattern
144
- invalid_properties.push("invalid value for \"documentation\", must conform to the pattern #{pattern}.")
145
- end
146
-
147
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
148
- if !@homepage.nil? && @homepage !~ pattern
149
- invalid_properties.push("invalid value for \"homepage\", must conform to the pattern #{pattern}.")
150
- end
151
-
152
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
153
- if !@issues.nil? && @issues !~ pattern
154
- invalid_properties.push("invalid value for \"issues\", must conform to the pattern #{pattern}.")
155
- end
156
-
157
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
158
- if !@repository.nil? && @repository !~ pattern
159
- invalid_properties.push("invalid value for \"repository\", must conform to the pattern #{pattern}.")
160
- end
161
-
162
142
  if @tags.nil?
163
143
  invalid_properties.push('invalid value for "tags", tags cannot be nil.')
164
144
  end
@@ -169,58 +149,10 @@ module PulpAnsibleClient
169
149
  # Check to see if the all the properties in the model are valid
170
150
  # @return true if the model is valid
171
151
  def valid?
172
- return false if !@documentation.nil? && @documentation !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
173
- return false if !@homepage.nil? && @homepage !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
174
- return false if !@issues.nil? && @issues !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
175
- return false if !@repository.nil? && @repository !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
176
152
  return false if @tags.nil?
177
153
  true
178
154
  end
179
155
 
180
- # Custom attribute writer method with validation
181
- # @param [Object] documentation Value to be assigned
182
- def documentation=(documentation)
183
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
184
- if !documentation.nil? && documentation !~ pattern
185
- fail ArgumentError, "invalid value for \"documentation\", must conform to the pattern #{pattern}."
186
- end
187
-
188
- @documentation = documentation
189
- end
190
-
191
- # Custom attribute writer method with validation
192
- # @param [Object] homepage Value to be assigned
193
- def homepage=(homepage)
194
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
195
- if !homepage.nil? && homepage !~ pattern
196
- fail ArgumentError, "invalid value for \"homepage\", must conform to the pattern #{pattern}."
197
- end
198
-
199
- @homepage = homepage
200
- end
201
-
202
- # Custom attribute writer method with validation
203
- # @param [Object] issues Value to be assigned
204
- def issues=(issues)
205
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
206
- if !issues.nil? && issues !~ pattern
207
- fail ArgumentError, "invalid value for \"issues\", must conform to the pattern #{pattern}."
208
- end
209
-
210
- @issues = issues
211
- end
212
-
213
- # Custom attribute writer method with validation
214
- # @param [Object] repository Value to be assigned
215
- def repository=(repository)
216
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
217
- if !repository.nil? && repository !~ pattern
218
- fail ArgumentError, "invalid value for \"repository\", must conform to the pattern #{pattern}."
219
- end
220
-
221
- @repository = repository
222
- end
223
-
224
156
  # Checks equality by comparing each attribute.
225
157
  # @param [Object] Object to be compared
226
158
  def ==(o)
@@ -0,0 +1,212 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ # A serializer to display the docs_blob of a CollectionVersion.
17
+ class CollectionVersionDocsResponse
18
+ attr_accessor :docs_blob
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'docs_blob' => :'docs_blob'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.openapi_types
29
+ {
30
+ :'docs_blob' => :'Object'
31
+ }
32
+ end
33
+
34
+ # List of attributes with nullable: true
35
+ def self.openapi_nullable
36
+ Set.new([
37
+ ])
38
+ end
39
+
40
+ # Initializes the object
41
+ # @param [Hash] attributes Model attributes in the form of hash
42
+ def initialize(attributes = {})
43
+ if (!attributes.is_a?(Hash))
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionVersionDocsResponse` initialize method"
45
+ end
46
+
47
+ # check to see if the attribute exists and convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}) { |(k, v), h|
49
+ if (!self.class.attribute_map.key?(k.to_sym))
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionVersionDocsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ end
52
+ h[k.to_sym] = v
53
+ }
54
+
55
+ if attributes.key?(:'docs_blob')
56
+ self.docs_blob = attributes[:'docs_blob']
57
+ end
58
+ end
59
+
60
+ # Show invalid properties with the reasons. Usually used together with valid?
61
+ # @return Array for valid properties with the reasons
62
+ def list_invalid_properties
63
+ invalid_properties = Array.new
64
+ if @docs_blob.nil?
65
+ invalid_properties.push('invalid value for "docs_blob", docs_blob cannot be nil.')
66
+ end
67
+
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ return false if @docs_blob.nil?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ docs_blob == o.docs_blob
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [docs_blob].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if type =~ /\AArray<(.*)>/i
112
+ # check to ensure the input is an array given that the attribute
113
+ # is documented as an array but the input is not
114
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
115
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ end
117
+ elsif !attributes[self.class.attribute_map[key]].nil?
118
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
119
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end
211
+ end
212
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpAnsibleClient
14
- VERSION = '0.2.0'
14
+ VERSION = '0.3.0'
15
15
  end
@@ -44,6 +44,7 @@ require 'pulp_ansible_client/models/collection_ref'
44
44
  require 'pulp_ansible_client/models/collection_ref_response'
45
45
  require 'pulp_ansible_client/models/collection_response'
46
46
  require 'pulp_ansible_client/models/collection_version'
47
+ require 'pulp_ansible_client/models/collection_version_docs_response'
47
48
  require 'pulp_ansible_client/models/collection_version_response'
48
49
  require 'pulp_ansible_client/models/content_summary'
49
50
  require 'pulp_ansible_client/models/content_summary_response'
@@ -91,6 +92,7 @@ require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api'
91
92
  require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api'
92
93
  require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api'
93
94
  require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api'
95
+ require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api'
94
96
  require 'pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api'
95
97
  require 'pulp_ansible_client/api/pulp_ansible_tags_api'
96
98
  require 'pulp_ansible_client/api/remotes_collection_api'
@@ -32,22 +32,6 @@ describe 'AnsibleCollectionsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Upload a collection
37
- # Create an artifact and trigger an asynchronous task to create Collection content from it.
38
- # @param file The Collection tarball.
39
- # @param [Hash] opts the optional parameters
40
- # @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
41
- # @option opts [String] :expected_namespace The expected &#39;namespace&#39; of the Collection to be verified against the metadata during import.
42
- # @option opts [String] :expected_name The expected &#39;name&#39; of the Collection to be verified against the metadata during import.
43
- # @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
44
- # @return [AsyncOperationResponse]
45
- describe 'create test' do
46
- it 'should work' do
47
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
- end
49
- end
50
-
51
35
  # unit tests for list
52
36
  # List collections
53
37
  # Viewset for Ansible Collections.
@@ -66,4 +50,20 @@ describe 'AnsibleCollectionsApi' do
66
50
  end
67
51
  end
68
52
 
53
+ # unit tests for upload_collection
54
+ # Upload a collection
55
+ # Create an artifact and trigger an asynchronous task to create Collection content from it.
56
+ # @param file The Collection tarball.
57
+ # @param [Hash] opts the optional parameters
58
+ # @option opts [String] :sha256 An optional sha256 checksum of the uploaded file.
59
+ # @option opts [String] :expected_namespace The expected &#39;namespace&#39; of the Collection to be verified against the metadata during import.
60
+ # @option opts [String] :expected_name The expected &#39;name&#39; of the Collection to be verified against the metadata during import.
61
+ # @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
62
+ # @return [AsyncOperationResponse]
63
+ describe 'upload_collection test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
69
  end
@@ -32,16 +32,15 @@ describe 'GalaxyCollectionListApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for list
35
+ # unit tests for get
36
36
  # APIView for Collections by namespace/name.
37
37
  # @param ansible_collection_version_href
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [Integer] :limit Number of results to return per page.
40
- # @option opts [Integer] :offset The initial index from which to return the results.
39
+ # @option opts [Integer] :page A page number within the paginated result set.
41
40
  # @option opts [String] :fields A list of fields to include in the response.
42
41
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
43
42
  # @return [InlineResponse20012]
44
- describe 'list test' do
43
+ describe 'get test' do
45
44
  it 'should work' do
46
45
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
46
  end
@@ -32,14 +32,14 @@ describe 'GalaxyDetailApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for read
35
+ # unit tests for get
36
36
  # Get the detail view of a Collection.
37
37
  # @param ansible_collection_href
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :fields A list of fields to include in the response.
40
40
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
41
41
  # @return [GalaxyCollectionResponse]
42
- describe 'read test' do
42
+ describe 'get test' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
45
  end
@@ -32,14 +32,14 @@ describe 'PulpAnsibleApiApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for read
35
+ # unit tests for get
36
36
  # Return a response to the \&quot;GET\&quot; action.
37
37
  # @param path
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :fields A list of fields to include in the response.
40
40
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
41
41
  # @return [nil]
42
- describe 'read test' do
42
+ describe 'get test' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
45
  end
@@ -32,7 +32,7 @@ describe 'PulpAnsibleGalaxyApiV2VersionsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for read
35
+ # unit tests for get
36
36
  # Return a response to the \&quot;GET\&quot; action.
37
37
  # @param name
38
38
  # @param namespace
@@ -42,7 +42,7 @@ describe 'PulpAnsibleGalaxyApiV2VersionsApi' do
42
42
  # @option opts [String] :fields A list of fields to include in the response.
43
43
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
44
44
  # @return [nil]
45
- describe 'read test' do
45
+ describe 'get test' do
46
46
  it 'should work' do
47
47
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
48
  end
@@ -0,0 +1,51 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi' do
30
+ it 'should create an instance of PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi' do
31
+ expect(@api_instance).to be_instance_of(PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for read
36
+ # Returns a CollectionVersion object.
37
+ # @param name
38
+ # @param namespace
39
+ # @param path
40
+ # @param version
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :fields A list of fields to include in the response.
43
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
44
+ # @return [CollectionVersionDocsResponse]
45
+ describe 'read test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ end
@@ -32,7 +32,7 @@ describe 'RoleListApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for list
35
+ # unit tests for get
36
36
  # APIView for Role Versions.
37
37
  # @param ansible_role_href
38
38
  # @param [Hash] opts the optional parameters
@@ -41,7 +41,7 @@ describe 'RoleListApi' do
41
41
  # @option opts [String] :fields A list of fields to include in the response.
42
42
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
43
43
  # @return [InlineResponse20010]
44
- describe 'list test' do
44
+ describe 'get test' do
45
45
  it 'should work' do
46
46
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
47
  end
@@ -32,7 +32,7 @@ describe 'V1RolesApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for list
35
+ # unit tests for get
36
36
  # APIView for Roles.
37
37
  # @param ansible_role_href
38
38
  # @param [Hash] opts the optional parameters
@@ -41,7 +41,7 @@ describe 'V1RolesApi' do
41
41
  # @option opts [String] :fields A list of fields to include in the response.
42
42
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
43
43
  # @return [InlineResponse2009]
44
- describe 'list test' do
44
+ describe 'get test' do
45
45
  it 'should work' do
46
46
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
47
  end
@@ -32,27 +32,27 @@ describe 'V2CollectionsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create
36
- # Queues a task that creates a new Collection from an uploaded artifact.
35
+ # unit tests for get
36
+ # View for Collection models.
37
37
  # @param ansible_collection_href
38
- # @param galaxy_collection
39
38
  # @param [Hash] opts the optional parameters
40
- # @return [GalaxyCollectionResponse]
41
- describe 'create test' do
39
+ # @option opts [Integer] :page A page number within the paginated result set.
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
+ # @return [InlineResponse20011]
43
+ describe 'get test' do
42
44
  it 'should work' do
43
45
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
46
  end
45
47
  end
46
48
 
47
- # unit tests for list
48
- # View for Collection models.
49
+ # unit tests for post
50
+ # Queues a task that creates a new Collection from an uploaded artifact.
49
51
  # @param ansible_collection_href
52
+ # @param galaxy_collection
50
53
  # @param [Hash] opts the optional parameters
51
- # @option opts [Integer] :page A page number within the paginated result set.
52
- # @option opts [String] :fields A list of fields to include in the response.
53
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
54
- # @return [InlineResponse20011]
55
- describe 'list test' do
54
+ # @return [GalaxyCollectionResponse]
55
+ describe 'post test' do
56
56
  it 'should work' do
57
57
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
58
  end
@@ -32,19 +32,19 @@ describe 'AnsibleCollectionVersionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "pulp_href"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_created"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_href"' do
47
+ describe 'test attribute "pulp_created"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -32,19 +32,19 @@ describe 'AnsibleRoleResponse' do
32
32
  expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleRoleResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "artifact"' do
35
+ describe 'test attribute "pulp_href"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_created"' do
41
+ describe 'test attribute "artifact"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_href"' do
47
+ describe 'test attribute "pulp_created"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpAnsibleClient::CollectionVersionDocsResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'CollectionVersionDocsResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpAnsibleClient::CollectionVersionDocsResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CollectionVersionDocsResponse' do
31
+ it 'should create an instance of CollectionVersionDocsResponse' do
32
+ expect(@instance).to be_instance_of(PulpAnsibleClient::CollectionVersionDocsResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "docs_blob"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end