pulp_ansible_client 0.28.10 → 0.29.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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleAnsibleDistribution.md +3 -5
- data/docs/AnsibleAnsibleDistributionResponse.md +4 -12
- data/docs/AnsibleCollectionVersionResponse.md +16 -8
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +30 -30
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +8 -8
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleAnsibleDistribution.md +3 -5
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -62
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +81 -39
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +155 -155
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +39 -39
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +223 -223
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -28
- data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/ansible_collection_version_response_spec.rb +31 -7
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +7 -7
- data/spec/models/ansible_role_spec.rb +3 -3
- data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +122 -122
|
@@ -16,25 +16,25 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRoleResponse
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
|
-
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
|
-
attr_accessor :pulp_labels
|
|
24
|
-
|
|
25
19
|
attr_accessor :pulp_href
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
attr_accessor :vuln_report
|
|
22
|
+
|
|
23
|
+
# Timestamp of creation.
|
|
24
|
+
attr_accessor :pulp_created
|
|
29
25
|
|
|
30
26
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
31
27
|
attr_accessor :pulp_last_updated
|
|
32
28
|
|
|
33
|
-
attr_accessor :vuln_report
|
|
34
|
-
|
|
35
29
|
# Artifact file representing the physical content
|
|
36
30
|
attr_accessor :artifact
|
|
37
31
|
|
|
32
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
33
|
+
attr_accessor :pulp_labels
|
|
34
|
+
|
|
35
|
+
# The Pulp Resource Name (PRN).
|
|
36
|
+
attr_accessor :prn
|
|
37
|
+
|
|
38
38
|
attr_accessor :version
|
|
39
39
|
|
|
40
40
|
attr_accessor :name
|
|
@@ -44,13 +44,13 @@ module PulpAnsibleClient
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'pulp_created' => :'pulp_created',
|
|
48
|
-
:'pulp_labels' => :'pulp_labels',
|
|
49
47
|
:'pulp_href' => :'pulp_href',
|
|
50
|
-
:'prn' => :'prn',
|
|
51
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
52
48
|
:'vuln_report' => :'vuln_report',
|
|
49
|
+
:'pulp_created' => :'pulp_created',
|
|
50
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
53
51
|
:'artifact' => :'artifact',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
|
+
:'prn' => :'prn',
|
|
54
54
|
:'version' => :'version',
|
|
55
55
|
:'name' => :'name',
|
|
56
56
|
:'namespace' => :'namespace'
|
|
@@ -65,13 +65,13 @@ module PulpAnsibleClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'pulp_created' => :'Time',
|
|
69
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
70
68
|
:'pulp_href' => :'String',
|
|
71
|
-
:'prn' => :'String',
|
|
72
|
-
:'pulp_last_updated' => :'Time',
|
|
73
69
|
:'vuln_report' => :'String',
|
|
70
|
+
:'pulp_created' => :'Time',
|
|
71
|
+
:'pulp_last_updated' => :'Time',
|
|
74
72
|
:'artifact' => :'String',
|
|
73
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
74
|
+
:'prn' => :'String',
|
|
75
75
|
:'version' => :'String',
|
|
76
76
|
:'name' => :'String',
|
|
77
77
|
:'namespace' => :'String'
|
|
@@ -99,30 +99,20 @@ module PulpAnsibleClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'pulp_created')
|
|
103
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'pulp_labels')
|
|
107
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
108
|
-
self.pulp_labels = value
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
102
|
if attributes.key?(:'pulp_href')
|
|
113
103
|
self.pulp_href = attributes[:'pulp_href']
|
|
114
104
|
end
|
|
115
105
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
106
|
+
if attributes.key?(:'vuln_report')
|
|
107
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
118
108
|
end
|
|
119
109
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
self.
|
|
110
|
+
if attributes.key?(:'pulp_created')
|
|
111
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
122
112
|
end
|
|
123
113
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
114
|
+
if attributes.key?(:'pulp_last_updated')
|
|
115
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
126
116
|
end
|
|
127
117
|
|
|
128
118
|
if attributes.key?(:'artifact')
|
|
@@ -131,6 +121,16 @@ module PulpAnsibleClient
|
|
|
131
121
|
self.artifact = nil
|
|
132
122
|
end
|
|
133
123
|
|
|
124
|
+
if attributes.key?(:'pulp_labels')
|
|
125
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
|
+
self.pulp_labels = value
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'prn')
|
|
131
|
+
self.prn = attributes[:'prn']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
134
|
if attributes.key?(:'version')
|
|
135
135
|
self.version = attributes[:'version']
|
|
136
136
|
else
|
|
@@ -190,13 +190,13 @@ module PulpAnsibleClient
|
|
|
190
190
|
def ==(o)
|
|
191
191
|
return true if self.equal?(o)
|
|
192
192
|
self.class == o.class &&
|
|
193
|
-
pulp_created == o.pulp_created &&
|
|
194
|
-
pulp_labels == o.pulp_labels &&
|
|
195
193
|
pulp_href == o.pulp_href &&
|
|
196
|
-
prn == o.prn &&
|
|
197
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
198
194
|
vuln_report == o.vuln_report &&
|
|
195
|
+
pulp_created == o.pulp_created &&
|
|
196
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
199
197
|
artifact == o.artifact &&
|
|
198
|
+
pulp_labels == o.pulp_labels &&
|
|
199
|
+
prn == o.prn &&
|
|
200
200
|
version == o.version &&
|
|
201
201
|
name == o.name &&
|
|
202
202
|
namespace == o.namespace
|
|
@@ -211,7 +211,7 @@ module PulpAnsibleClient
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Integer] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[
|
|
214
|
+
[pulp_href, vuln_report, pulp_created, pulp_last_updated, artifact, pulp_labels, prn, version, name, namespace].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# Builds the object from hash
|
|
@@ -22,11 +22,6 @@ module PulpAnsibleClient
|
|
|
22
22
|
# An optional content-guard.
|
|
23
23
|
attr_accessor :content_guard
|
|
24
24
|
|
|
25
|
-
# Whether this distribution should be shown in the content app.
|
|
26
|
-
attr_accessor :hidden
|
|
27
|
-
|
|
28
|
-
attr_accessor :pulp_labels
|
|
29
|
-
|
|
30
25
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
31
26
|
attr_accessor :name
|
|
32
27
|
|
|
@@ -36,16 +31,17 @@ module PulpAnsibleClient
|
|
|
36
31
|
# RepositoryVersion to be served
|
|
37
32
|
attr_accessor :repository_version
|
|
38
33
|
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
|
+
|
|
39
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
37
|
def self.attribute_map
|
|
41
38
|
{
|
|
42
39
|
:'base_path' => :'base_path',
|
|
43
40
|
:'content_guard' => :'content_guard',
|
|
44
|
-
:'hidden' => :'hidden',
|
|
45
|
-
:'pulp_labels' => :'pulp_labels',
|
|
46
41
|
:'name' => :'name',
|
|
47
42
|
:'repository' => :'repository',
|
|
48
|
-
:'repository_version' => :'repository_version'
|
|
43
|
+
:'repository_version' => :'repository_version',
|
|
44
|
+
:'pulp_labels' => :'pulp_labels'
|
|
49
45
|
}
|
|
50
46
|
end
|
|
51
47
|
|
|
@@ -59,11 +55,10 @@ module PulpAnsibleClient
|
|
|
59
55
|
{
|
|
60
56
|
:'base_path' => :'String',
|
|
61
57
|
:'content_guard' => :'String',
|
|
62
|
-
:'hidden' => :'Boolean',
|
|
63
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
64
58
|
:'name' => :'String',
|
|
65
59
|
:'repository' => :'String',
|
|
66
|
-
:'repository_version' => :'String'
|
|
60
|
+
:'repository_version' => :'String',
|
|
61
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
67
62
|
}
|
|
68
63
|
end
|
|
69
64
|
|
|
@@ -72,7 +67,7 @@ module PulpAnsibleClient
|
|
|
72
67
|
Set.new([
|
|
73
68
|
:'content_guard',
|
|
74
69
|
:'repository',
|
|
75
|
-
:'repository_version'
|
|
70
|
+
:'repository_version',
|
|
76
71
|
])
|
|
77
72
|
end
|
|
78
73
|
|
|
@@ -99,18 +94,6 @@ module PulpAnsibleClient
|
|
|
99
94
|
self.content_guard = attributes[:'content_guard']
|
|
100
95
|
end
|
|
101
96
|
|
|
102
|
-
if attributes.key?(:'hidden')
|
|
103
|
-
self.hidden = attributes[:'hidden']
|
|
104
|
-
else
|
|
105
|
-
self.hidden = false
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'pulp_labels')
|
|
109
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
110
|
-
self.pulp_labels = value
|
|
111
|
-
end
|
|
112
|
-
end
|
|
113
|
-
|
|
114
97
|
if attributes.key?(:'name')
|
|
115
98
|
self.name = attributes[:'name']
|
|
116
99
|
end
|
|
@@ -122,6 +105,12 @@ module PulpAnsibleClient
|
|
|
122
105
|
if attributes.key?(:'repository_version')
|
|
123
106
|
self.repository_version = attributes[:'repository_version']
|
|
124
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'pulp_labels')
|
|
110
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
111
|
+
self.pulp_labels = value
|
|
112
|
+
end
|
|
113
|
+
end
|
|
125
114
|
end
|
|
126
115
|
|
|
127
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -184,11 +173,10 @@ module PulpAnsibleClient
|
|
|
184
173
|
self.class == o.class &&
|
|
185
174
|
base_path == o.base_path &&
|
|
186
175
|
content_guard == o.content_guard &&
|
|
187
|
-
hidden == o.hidden &&
|
|
188
|
-
pulp_labels == o.pulp_labels &&
|
|
189
176
|
name == o.name &&
|
|
190
177
|
repository == o.repository &&
|
|
191
|
-
repository_version == o.repository_version
|
|
178
|
+
repository_version == o.repository_version &&
|
|
179
|
+
pulp_labels == o.pulp_labels
|
|
192
180
|
end
|
|
193
181
|
|
|
194
182
|
# @see the `==` method
|
|
@@ -200,7 +188,7 @@ module PulpAnsibleClient
|
|
|
200
188
|
# Calculates hash code according to all attributes.
|
|
201
189
|
# @return [Integer] Hash code
|
|
202
190
|
def hash
|
|
203
|
-
[base_path, content_guard,
|
|
191
|
+
[base_path, content_guard, name, repository, repository_version, pulp_labels].hash
|
|
204
192
|
end
|
|
205
193
|
|
|
206
194
|
# Builds the object from hash
|