pulp_ansible_client 0.2.0b12 → 0.2.0b13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -11
- data/docs/AnsibleAnsibleDistributionRead.md +31 -0
- data/docs/AnsibleAnsibleRemote.md +7 -3
- data/docs/AnsibleAnsibleRemoteRead.md +43 -0
- data/docs/AnsibleAnsibleRepositoryRead.md +27 -0
- data/docs/{AnsibleCollection.md → AnsibleCollectionRead.md} +2 -2
- data/docs/AnsibleCollectionRemote.md +7 -3
- data/docs/AnsibleCollectionRemoteRead.md +45 -0
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionRead.md +67 -0
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleRole.md +4 -4
- data/docs/AnsibleRoleRead.md +27 -0
- data/docs/{CollectionImportDetail.md → CollectionImportDetailRead.md} +2 -2
- data/docs/CollectionRead.md +31 -0
- data/docs/CollectionVersionRead.md +37 -0
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentRolesApi.md +5 -5
- data/docs/DistributionsAnsibleApi.md +3 -3
- data/docs/GalaxyCollectionRead.md +23 -0
- data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionRead.md} +2 -2
- data/docs/{GalaxyRole.md → GalaxyRoleRead.md} +2 -2
- data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionRead.md} +2 -2
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +5 -5
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +1 -1
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +3 -3
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesAnsibleApi.md +5 -5
- data/docs/RemotesCollectionApi.md +5 -5
- data/docs/RepositoriesAnsibleApi.md +10 -10
- data/docs/RepositoriesAnsibleVersionsApi.md +3 -3
- data/docs/RepositoryVersionRead.md +25 -0
- data/docs/{Tag.md → TagRead.md} +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -6
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -3
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +6 -6
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_read.rb +327 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_remote.rb +56 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_remote_read.rb +531 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_read.rb +294 -0
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +56 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_read.rb +557 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +35 -35
- data/lib/pulp_ansible_client/models/ansible_collection_version_read.rb +816 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_role_read.rb +330 -0
- data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/collection_read.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_version_read.rb +370 -0
- data/lib/pulp_ansible_client/models/galaxy_collection_read.rb +281 -0
- data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_read.rb} +3 -3
- data/lib/pulp_ansible_client/models/inline_response200.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20010.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20011.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20012.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response20013.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2007.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2008.rb +1 -1
- data/lib/pulp_ansible_client/models/inline_response2009.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version_read.rb +244 -0
- data/lib/pulp_ansible_client/models/{tag.rb → tag_read.rb} +3 -3
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +16 -6
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_roles_api_spec.rb +2 -2
- data/spec/api/distributions_ansible_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
- data/spec/api/remotes_ansible_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +2 -2
- data/spec/api/repositories_ansible_api_spec.rb +6 -6
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_distribution_read_spec.rb +83 -0
- data/spec/models/ansible_ansible_remote_read_spec.rb +123 -0
- data/spec/models/ansible_ansible_remote_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_read_spec.rb +71 -0
- data/spec/models/{ansible_collection_spec.rb → ansible_collection_read_spec.rb} +6 -6
- data/spec/models/ansible_collection_remote_read_spec.rb +129 -0
- data/spec/models/ansible_collection_remote_spec.rb +12 -0
- data/spec/models/ansible_collection_version_read_spec.rb +191 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_role_read_spec.rb +71 -0
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_read_spec.rb} +6 -6
- data/spec/models/collection_read_spec.rb +83 -0
- data/spec/models/collection_version_read_spec.rb +105 -0
- data/spec/models/galaxy_collection_read_spec.rb +59 -0
- data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_read_spec.rb} +6 -6
- data/spec/models/{galaxy_role_spec.rb → galaxy_role_read_spec.rb} +6 -6
- data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_read_spec.rb} +6 -6
- data/spec/models/repository_version_read_spec.rb +65 -0
- data/spec/models/{tag_spec.rb → tag_read_spec.rb} +6 -6
- metadata +66 -26
@@ -0,0 +1,244 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
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
|
+
class RepositoryVersionRead
|
17
|
+
attr_accessor :pulp_href
|
18
|
+
|
19
|
+
# Timestamp of creation.
|
20
|
+
attr_accessor :pulp_created
|
21
|
+
|
22
|
+
attr_accessor :number
|
23
|
+
|
24
|
+
# A repository version whose content was used as the initial set of content for this repository version
|
25
|
+
attr_accessor :base_version
|
26
|
+
|
27
|
+
attr_accessor :content_summary
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'pulp_href' => :'pulp_href',
|
33
|
+
:'pulp_created' => :'pulp_created',
|
34
|
+
:'number' => :'number',
|
35
|
+
:'base_version' => :'base_version',
|
36
|
+
:'content_summary' => :'content_summary'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'pulp_href' => :'String',
|
44
|
+
:'pulp_created' => :'DateTime',
|
45
|
+
:'number' => :'Integer',
|
46
|
+
:'base_version' => :'String',
|
47
|
+
:'content_summary' => :'ContentSummary'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::RepositoryVersionRead` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::RepositoryVersionRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'pulp_href')
|
73
|
+
self.pulp_href = attributes[:'pulp_href']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'pulp_created')
|
77
|
+
self.pulp_created = attributes[:'pulp_created']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.key?(:'number')
|
81
|
+
self.number = attributes[:'number']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'base_version')
|
85
|
+
self.base_version = attributes[:'base_version']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'content_summary')
|
89
|
+
self.content_summary = attributes[:'content_summary']
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properties with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
pulp_href == o.pulp_href &&
|
112
|
+
pulp_created == o.pulp_created &&
|
113
|
+
number == o.number &&
|
114
|
+
base_version == o.base_version &&
|
115
|
+
content_summary == o.content_summary
|
116
|
+
end
|
117
|
+
|
118
|
+
# @see the `==` method
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def eql?(o)
|
121
|
+
self == o
|
122
|
+
end
|
123
|
+
|
124
|
+
# Calculates hash code according to all attributes.
|
125
|
+
# @return [Integer] Hash code
|
126
|
+
def hash
|
127
|
+
[pulp_href, pulp_created, number, base_version, content_summary].hash
|
128
|
+
end
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def self.build_from_hash(attributes)
|
134
|
+
new.build_from_hash(attributes)
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def build_from_hash(attributes)
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
143
|
+
if type =~ /\AArray<(.*)>/i
|
144
|
+
# check to ensure the input is an array given that the attribute
|
145
|
+
# is documented as an array but the input is not
|
146
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
148
|
+
end
|
149
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
150
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
151
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
152
|
+
end
|
153
|
+
|
154
|
+
self
|
155
|
+
end
|
156
|
+
|
157
|
+
# Deserializes the data based on type
|
158
|
+
# @param string type Data type
|
159
|
+
# @param string value Value to be deserialized
|
160
|
+
# @return [Object] Deserialized data
|
161
|
+
def _deserialize(type, value)
|
162
|
+
case type.to_sym
|
163
|
+
when :DateTime
|
164
|
+
DateTime.parse(value)
|
165
|
+
when :Date
|
166
|
+
Date.parse(value)
|
167
|
+
when :String
|
168
|
+
value.to_s
|
169
|
+
when :Integer
|
170
|
+
value.to_i
|
171
|
+
when :Float
|
172
|
+
value.to_f
|
173
|
+
when :Boolean
|
174
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
175
|
+
true
|
176
|
+
else
|
177
|
+
false
|
178
|
+
end
|
179
|
+
when :Object
|
180
|
+
# generic object (usually a Hash), return directly
|
181
|
+
value
|
182
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
183
|
+
inner_type = Regexp.last_match[:inner_type]
|
184
|
+
value.map { |v| _deserialize(inner_type, v) }
|
185
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
186
|
+
k_type = Regexp.last_match[:k_type]
|
187
|
+
v_type = Regexp.last_match[:v_type]
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each do |k, v|
|
190
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
else # model
|
194
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the string representation of the object
|
199
|
+
# @return [String] String presentation of the object
|
200
|
+
def to_s
|
201
|
+
to_hash.to_s
|
202
|
+
end
|
203
|
+
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
206
|
+
def to_body
|
207
|
+
to_hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the object in the form of hash
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_hash
|
213
|
+
hash = {}
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
215
|
+
value = self.send(attr)
|
216
|
+
if value.nil?
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
219
|
+
end
|
220
|
+
|
221
|
+
hash[param] = _to_hash(value)
|
222
|
+
end
|
223
|
+
hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Outputs non-array value in the form of hash
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
228
|
+
# @param [Object] value Any valid value
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
230
|
+
def _to_hash(value)
|
231
|
+
if value.is_a?(Array)
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
233
|
+
elsif value.is_a?(Hash)
|
234
|
+
{}.tap do |hash|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
236
|
+
end
|
237
|
+
elsif value.respond_to? :to_hash
|
238
|
+
value.to_hash
|
239
|
+
else
|
240
|
+
value
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
class
|
16
|
+
class TagRead
|
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::
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::TagRead` 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::
|
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
|
50
50
|
end
|
51
51
|
h[k.to_sym] = v
|
52
52
|
}
|
data/lib/pulp_ansible_client.rb
CHANGED
@@ -18,25 +18,34 @@ 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'
|
21
22
|
require 'pulp_ansible_client/models/ansible_ansible_remote'
|
23
|
+
require 'pulp_ansible_client/models/ansible_ansible_remote_read'
|
22
24
|
require 'pulp_ansible_client/models/ansible_ansible_repository'
|
23
|
-
require 'pulp_ansible_client/models/
|
25
|
+
require 'pulp_ansible_client/models/ansible_ansible_repository_read'
|
26
|
+
require 'pulp_ansible_client/models/ansible_collection_read'
|
24
27
|
require 'pulp_ansible_client/models/ansible_collection_remote'
|
28
|
+
require 'pulp_ansible_client/models/ansible_collection_remote_read'
|
25
29
|
require 'pulp_ansible_client/models/ansible_collection_version'
|
30
|
+
require 'pulp_ansible_client/models/ansible_collection_version_read'
|
26
31
|
require 'pulp_ansible_client/models/ansible_role'
|
32
|
+
require 'pulp_ansible_client/models/ansible_role_read'
|
27
33
|
require 'pulp_ansible_client/models/ansible_tag'
|
28
34
|
require 'pulp_ansible_client/models/async_operation_response'
|
29
35
|
require 'pulp_ansible_client/models/collection'
|
30
|
-
require 'pulp_ansible_client/models/
|
36
|
+
require 'pulp_ansible_client/models/collection_import_detail_read'
|
31
37
|
require 'pulp_ansible_client/models/collection_metadata'
|
32
38
|
require 'pulp_ansible_client/models/collection_namespace'
|
39
|
+
require 'pulp_ansible_client/models/collection_read'
|
33
40
|
require 'pulp_ansible_client/models/collection_ref'
|
34
41
|
require 'pulp_ansible_client/models/collection_version'
|
42
|
+
require 'pulp_ansible_client/models/collection_version_read'
|
35
43
|
require 'pulp_ansible_client/models/content_summary'
|
36
44
|
require 'pulp_ansible_client/models/galaxy_collection'
|
37
|
-
require 'pulp_ansible_client/models/
|
38
|
-
require 'pulp_ansible_client/models/
|
39
|
-
require 'pulp_ansible_client/models/
|
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'
|
40
49
|
require 'pulp_ansible_client/models/inline_response200'
|
41
50
|
require 'pulp_ansible_client/models/inline_response2001'
|
42
51
|
require 'pulp_ansible_client/models/inline_response20010'
|
@@ -54,7 +63,8 @@ require 'pulp_ansible_client/models/inline_response2009'
|
|
54
63
|
require 'pulp_ansible_client/models/repository_add_remove_content'
|
55
64
|
require 'pulp_ansible_client/models/repository_sync_url'
|
56
65
|
require 'pulp_ansible_client/models/repository_version'
|
57
|
-
require 'pulp_ansible_client/models/
|
66
|
+
require 'pulp_ansible_client/models/repository_version_read'
|
67
|
+
require 'pulp_ansible_client/models/tag_read'
|
58
68
|
|
59
69
|
# APIs
|
60
70
|
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 [
|
40
|
+
# @return [AnsibleCollectionVersionRead]
|
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 [
|
81
|
+
# @return [AnsibleCollectionVersionRead]
|
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
|
@@ -37,7 +37,7 @@ describe 'ContentRolesApi' do
|
|
37
37
|
# ViewSet for Role.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [AnsibleRoleRead]
|
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
|
@@ -73,7 +73,7 @@ describe 'ContentRolesApi' do
|
|
73
73
|
# @param [Hash] opts the optional parameters
|
74
74
|
# @option opts [String] :fields A list of fields to include in the response.
|
75
75
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
76
|
-
# @return [
|
76
|
+
# @return [AnsibleRoleRead]
|
77
77
|
describe 'read test' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -98,7 +98,7 @@ describe 'DistributionsAnsibleApi' do
|
|
98
98
|
# @param [Hash] opts the optional parameters
|
99
99
|
# @option opts [String] :fields A list of fields to include in the response.
|
100
100
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
101
|
-
# @return [
|
101
|
+
# @return [AnsibleAnsibleDistributionRead]
|
102
102
|
describe 'read test' do
|
103
103
|
it 'should work' do
|
104
104
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,7 +37,7 @@ describe 'PulpAnsibleGalaxyApiCollectionsApi' do
|
|
37
37
|
# @param path
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [GalaxyCollectionRead]
|
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
|
@@ -79,7 +79,7 @@ describe 'PulpAnsibleGalaxyApiCollectionsApi' do
|
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
80
|
# @option opts [String] :fields A list of fields to include in the response.
|
81
81
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
82
|
-
# @return [
|
82
|
+
# @return [GalaxyCollectionRead]
|
83
83
|
describe 'read test' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -57,7 +57,7 @@ describe 'PulpAnsibleGalaxyApiV3CollectionsApi' do
|
|
57
57
|
# @option opts [String] :fields A list of fields to include in the response.
|
58
58
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
59
59
|
# @option opts [DateTime] :since Filter messages since a given timestamp
|
60
|
-
# @return [
|
60
|
+
# @return [CollectionImportDetailRead]
|
61
61
|
describe 'read test' do
|
62
62
|
it 'should work' do
|
63
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,7 +37,7 @@ describe 'RemotesAnsibleApi' do
|
|
37
37
|
# ViewSet for Ansible Remotes.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [AnsibleAnsibleRemoteRead]
|
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
|
@@ -100,7 +100,7 @@ describe 'RemotesAnsibleApi' do
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @option opts [String] :fields A list of fields to include in the response.
|
102
102
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
103
|
-
# @return [
|
103
|
+
# @return [AnsibleAnsibleRemoteRead]
|
104
104
|
describe 'read test' do
|
105
105
|
it 'should work' do
|
106
106
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,7 +37,7 @@ describe 'RemotesCollectionApi' do
|
|
37
37
|
# ViewSet for Collection Remotes.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [AnsibleCollectionRemoteRead]
|
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
|
@@ -100,7 +100,7 @@ describe 'RemotesCollectionApi' do
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @option opts [String] :fields A list of fields to include in the response.
|
102
102
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
103
|
-
# @return [
|
103
|
+
# @return [AnsibleCollectionRemoteRead]
|
104
104
|
describe 'read test' do
|
105
105
|
it 'should work' do
|
106
106
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,7 +37,7 @@ describe 'RepositoriesAnsibleApi' do
|
|
37
37
|
# ViewSet for Ansible Remotes.
|
38
38
|
# @param data
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [AnsibleAnsibleRepositoryRead]
|
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
|
@@ -46,7 +46,7 @@ describe 'RepositoriesAnsibleApi' do
|
|
46
46
|
|
47
47
|
# unit tests for delete
|
48
48
|
# Delete an ansible repository
|
49
|
-
# Trigger an asynchronous
|
49
|
+
# Trigger an asynchronous delete task
|
50
50
|
# @param ansible_repository_href URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [AsyncOperationResponse]
|
@@ -89,11 +89,11 @@ describe 'RepositoriesAnsibleApi' do
|
|
89
89
|
|
90
90
|
# unit tests for partial_update
|
91
91
|
# Partially update an ansible repository
|
92
|
-
#
|
92
|
+
# Trigger an asynchronous partial update task
|
93
93
|
# @param ansible_repository_href URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
94
94
|
# @param data
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
|
-
# @return [
|
96
|
+
# @return [AsyncOperationResponse]
|
97
97
|
describe 'partial_update test' do
|
98
98
|
it 'should work' do
|
99
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -107,7 +107,7 @@ describe 'RepositoriesAnsibleApi' do
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
108
108
|
# @option opts [String] :fields A list of fields to include in the response.
|
109
109
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
110
|
-
# @return [
|
110
|
+
# @return [AnsibleAnsibleRepositoryRead]
|
111
111
|
describe 'read test' do
|
112
112
|
it 'should work' do
|
113
113
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -128,7 +128,7 @@ describe 'RepositoriesAnsibleApi' do
|
|
128
128
|
|
129
129
|
# unit tests for update
|
130
130
|
# Update an ansible repository
|
131
|
-
# Trigger an asynchronous
|
131
|
+
# Trigger an asynchronous update task
|
132
132
|
# @param ansible_repository_href URI of Ansible Repository. e.g.: /pulp/api/v3/repositories/ansible/ansible/1/
|
133
133
|
# @param data
|
134
134
|
# @param [Hash] opts the optional parameters
|
@@ -81,7 +81,7 @@ describe 'RepositoriesAnsibleVersionsApi' do
|
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @option opts [String] :fields A list of fields to include in the response.
|
83
83
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
84
|
-
# @return [
|
84
|
+
# @return [RepositoryVersionRead]
|
85
85
|
describe 'read test' do
|
86
86
|
it 'should work' do
|
87
87
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpAnsibleClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("http://
|
21
|
+
# uri = URI.parse("http://pulp")
|
22
22
|
# PulpAnsibleClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpAnsibleClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("http://
|
31
|
+
# expect(config.base_url).to eq("http://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("http://
|
38
|
+
# expect(config.base_url).to eq("http://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
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::AnsibleAnsibleDistributionRead
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AnsibleAnsibleDistributionRead' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = PulpAnsibleClient::AnsibleAnsibleDistributionRead.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AnsibleAnsibleDistributionRead' do
|
31
|
+
it 'should create an instance of AnsibleAnsibleDistributionRead' do
|
32
|
+
expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleAnsibleDistributionRead)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "pulp_href"' 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
|
+
describe 'test attribute "pulp_created"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "base_path"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "content_guard"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "name"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "repository"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "repository_version"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "client_url"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|