pulp_ansible_client 0.2.0b3 → 0.2.0b5
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.
- checksums.yaml +4 -4
- data/README.md +14 -12
- data/docs/AnsibleCollectionsApi.md +18 -14
- data/docs/CollectionVersion.md +31 -21
- data/docs/ContentCollectionVersionsApi.md +21 -7
- data/docs/ContentRolesApi.md +19 -7
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +8 -22
- data/docs/Role.md +8 -4
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +34 -28
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +50 -15
- data/lib/pulp_ansible_client/api/content_roles_api.rb +51 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +9 -50
- data/lib/pulp_ansible_client/models/collection_version.rb +165 -169
- data/lib/pulp_ansible_client/models/role.rb +34 -19
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/ansible_collections_api_spec.rb +9 -7
- data/spec/api/content_collection_versions_api_spec.rb +9 -3
- data/spec/api/content_roles_api_spec.rb +8 -3
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -8
- data/spec/models/collection_version_spec.rb +35 -5
- data/spec/models/role_spec.rb +14 -2
- metadata +2 -2
@@ -14,16 +14,22 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
class Role
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# An uploaded file that should be turned into the artifact of the content unit.
|
18
|
+
attr_accessor :file
|
19
19
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :_created
|
22
22
|
|
23
|
-
|
23
|
+
# A URI of a repository the new content unit should be associated with.
|
24
|
+
attr_accessor :repository
|
24
25
|
|
25
26
|
attr_accessor :_href
|
26
27
|
|
28
|
+
attr_accessor :_type
|
29
|
+
|
30
|
+
# Artifact file representing the physical content
|
31
|
+
attr_accessor :artifact
|
32
|
+
|
27
33
|
attr_accessor :version
|
28
34
|
|
29
35
|
attr_accessor :name
|
@@ -33,10 +39,12 @@ module PulpAnsibleClient
|
|
33
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
40
|
def self.attribute_map
|
35
41
|
{
|
36
|
-
:'
|
42
|
+
:'file' => :'file',
|
37
43
|
:'_created' => :'_created',
|
38
|
-
:'
|
44
|
+
:'repository' => :'repository',
|
39
45
|
:'_href' => :'_href',
|
46
|
+
:'_type' => :'_type',
|
47
|
+
:'artifact' => :'artifact',
|
40
48
|
:'version' => :'version',
|
41
49
|
:'name' => :'name',
|
42
50
|
:'namespace' => :'namespace'
|
@@ -46,10 +54,12 @@ module PulpAnsibleClient
|
|
46
54
|
# Attribute type mapping.
|
47
55
|
def self.openapi_types
|
48
56
|
{
|
49
|
-
:'
|
57
|
+
:'file' => :'String',
|
50
58
|
:'_created' => :'DateTime',
|
51
|
-
:'
|
59
|
+
:'repository' => :'String',
|
52
60
|
:'_href' => :'String',
|
61
|
+
:'_type' => :'String',
|
62
|
+
:'artifact' => :'String',
|
53
63
|
:'version' => :'String',
|
54
64
|
:'name' => :'String',
|
55
65
|
:'namespace' => :'String'
|
@@ -71,22 +81,30 @@ module PulpAnsibleClient
|
|
71
81
|
h[k.to_sym] = v
|
72
82
|
}
|
73
83
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
84
|
+
if attributes.key?(:'file')
|
85
|
+
self.file = attributes[:'file']
|
76
86
|
end
|
77
87
|
|
78
88
|
if attributes.key?(:'_created')
|
79
89
|
self._created = attributes[:'_created']
|
80
90
|
end
|
81
91
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
92
|
+
if attributes.key?(:'repository')
|
93
|
+
self.repository = attributes[:'repository']
|
84
94
|
end
|
85
95
|
|
86
96
|
if attributes.key?(:'_href')
|
87
97
|
self._href = attributes[:'_href']
|
88
98
|
end
|
89
99
|
|
100
|
+
if attributes.key?(:'_type')
|
101
|
+
self._type = attributes[:'_type']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'artifact')
|
105
|
+
self.artifact = attributes[:'artifact']
|
106
|
+
end
|
107
|
+
|
90
108
|
if attributes.key?(:'version')
|
91
109
|
self.version = attributes[:'version']
|
92
110
|
end
|
@@ -104,10 +122,6 @@ module PulpAnsibleClient
|
|
104
122
|
# @return Array for valid properties with the reasons
|
105
123
|
def list_invalid_properties
|
106
124
|
invalid_properties = Array.new
|
107
|
-
if @artifact.nil?
|
108
|
-
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
125
|
if !@_type.nil? && @_type.to_s.length < 1
|
112
126
|
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
113
127
|
end
|
@@ -142,7 +156,6 @@ module PulpAnsibleClient
|
|
142
156
|
# Check to see if the all the properties in the model are valid
|
143
157
|
# @return true if the model is valid
|
144
158
|
def valid?
|
145
|
-
return false if @artifact.nil?
|
146
159
|
return false if !@_type.nil? && @_type.to_s.length < 1
|
147
160
|
return false if @version.nil?
|
148
161
|
return false if @version.to_s.length < 1
|
@@ -210,10 +223,12 @@ module PulpAnsibleClient
|
|
210
223
|
def ==(o)
|
211
224
|
return true if self.equal?(o)
|
212
225
|
self.class == o.class &&
|
213
|
-
|
226
|
+
file == o.file &&
|
214
227
|
_created == o._created &&
|
215
|
-
|
228
|
+
repository == o.repository &&
|
216
229
|
_href == o._href &&
|
230
|
+
_type == o._type &&
|
231
|
+
artifact == o.artifact &&
|
217
232
|
version == o.version &&
|
218
233
|
name == o.name &&
|
219
234
|
namespace == o.namespace
|
@@ -228,7 +243,7 @@ module PulpAnsibleClient
|
|
228
243
|
# Calculates hash code according to all attributes.
|
229
244
|
# @return [Integer] Hash code
|
230
245
|
def hash
|
231
|
-
[
|
246
|
+
[file, _created, repository, _href, _type, artifact, version, name, namespace].hash
|
232
247
|
end
|
233
248
|
|
234
249
|
# Builds the object from hash
|
@@ -32,17 +32,19 @@ describe 'AnsibleCollectionsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
#
|
37
|
-
#
|
38
|
-
# @param
|
35
|
+
# unit tests for create
|
36
|
+
# Create a collection version
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
+
# @param relative_path Path where the artifact is located relative to distributions base_path
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :
|
41
|
-
# @option opts [
|
40
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
41
|
+
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
42
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
43
|
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
44
|
+
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
43
45
|
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
44
46
|
# @return [AsyncOperationResponse]
|
45
|
-
describe '
|
47
|
+
describe 'create test' do
|
46
48
|
it 'should work' do
|
47
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
50
|
end
|
@@ -34,10 +34,16 @@ describe 'ContentCollectionVersionsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for create
|
36
36
|
# Create a collection version
|
37
|
-
#
|
38
|
-
# @param
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
+
# @param relative_path Path where the artifact is located relative to distributions base_path
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @
|
40
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
41
|
+
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
42
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
|
+
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
44
|
+
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
45
|
+
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
46
|
+
# @return [AsyncOperationResponse]
|
41
47
|
describe 'create test' do
|
42
48
|
it 'should work' do
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -34,10 +34,15 @@ describe 'ContentRolesApi' do
|
|
34
34
|
|
35
35
|
# unit tests for create
|
36
36
|
# Create a role
|
37
|
-
#
|
38
|
-
# @param
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
+
# @param version
|
39
|
+
# @param name
|
40
|
+
# @param namespace
|
39
41
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @
|
42
|
+
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
43
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
44
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
45
|
+
# @return [AsyncOperationResponse]
|
41
46
|
describe 'create test' do
|
42
47
|
it 'should work' do
|
43
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -33,16 +33,10 @@ describe 'PulpAnsibleGalaxyApiV3CollectionsApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for create
|
36
|
-
#
|
37
|
-
# Create an artifact and trigger an asynchronous task to create Collection content from it.
|
36
|
+
# ViewSet for CollectionVersions.
|
38
37
|
# @param path
|
39
|
-
# @param file The Collection tarball.
|
40
38
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @
|
42
|
-
# @option opts [String] :expected_namespace The expected 'namespace' of the Collection to be verified against the metadata during import.
|
43
|
-
# @option opts [String] :expected_name The expected 'name' of the Collection to be verified against the metadata during import.
|
44
|
-
# @option opts [String] :expected_version The expected version of the Collection to be verified against the metadata during import.
|
45
|
-
# @return [AsyncOperationResponse]
|
39
|
+
# @return [nil]
|
46
40
|
describe 'create test' do
|
47
41
|
it 'should work' do
|
48
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,7 +32,7 @@ describe 'CollectionVersion' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpAnsibleClient::CollectionVersion)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "_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
|
@@ -50,7 +50,25 @@ describe 'CollectionVersion' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "artifact"' 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 "relative_path"' 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 "file"' 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"' do
|
54
72
|
it 'should work' do
|
55
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
74
|
end
|
@@ -170,19 +188,31 @@ describe 'CollectionVersion' do
|
|
170
188
|
end
|
171
189
|
end
|
172
190
|
|
173
|
-
describe 'test attribute "
|
191
|
+
describe 'test attribute "tags"' do
|
174
192
|
it 'should work' do
|
175
193
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
194
|
end
|
177
195
|
end
|
178
196
|
|
179
|
-
describe 'test attribute "
|
197
|
+
describe 'test attribute "version"' do
|
180
198
|
it 'should work' do
|
181
199
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
182
200
|
end
|
183
201
|
end
|
184
202
|
|
185
|
-
describe 'test attribute "
|
203
|
+
describe 'test attribute "expected_name"' do
|
204
|
+
it 'should work' do
|
205
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
describe 'test attribute "expected_namespace"' do
|
210
|
+
it 'should work' do
|
211
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
describe 'test attribute "expected_version"' do
|
186
216
|
it 'should work' do
|
187
217
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
188
218
|
end
|
data/spec/models/role_spec.rb
CHANGED
@@ -32,7 +32,7 @@ describe 'Role' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpAnsibleClient::Role)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "file"' 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
|
@@ -44,7 +44,7 @@ describe 'Role' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "repository"' 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
|
@@ -56,6 +56,18 @@ describe 'Role' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe 'test attribute "_type"' 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 "artifact"' 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
|
+
|
59
71
|
describe 'test attribute "version"' do
|
60
72
|
it 'should work' do
|
61
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_ansible_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.0b5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|