pulp_ansible_client 0.22.7 → 0.22.9
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 +5 -3
- data/docs/AnsibleAnsibleDistributionResponse.md +12 -4
- data/docs/AnsibleCollectionVersion.md +6 -6
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +30 -30
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +8 -8
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleAnsibleDistribution.md +5 -3
- data/docs/PatchedansibleGitRemote.md +30 -30
- 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 +28 -16
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +62 -20
- 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.rb +25 -25
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +24 -24
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +259 -259
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +165 -165
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -28
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +28 -16
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +250 -250
- 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 +28 -4
- data/spec/models/ansible_ansible_distribution_spec.rb +10 -4
- data/spec/models/ansible_collection_version_response_spec.rb +5 -5
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +4 -4
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +10 -4
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +128 -128
|
@@ -66,7 +66,7 @@ module PulpAnsibleClient
|
|
|
66
66
|
fail ArgumentError, 'invalid value for "name" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, the character length must be great than or equal to 3.'
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
69
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
70
70
|
if @api_client.config.client_side_validation && name !~ pattern
|
|
71
71
|
fail ArgumentError, "invalid value for 'name' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.create, must conform to the pattern #{pattern}."
|
|
72
72
|
end
|
|
@@ -397,7 +397,7 @@ module PulpAnsibleClient
|
|
|
397
397
|
fail ArgumentError, 'invalid value for "opts[:"name"]" when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, the character length must be great than or equal to 3.'
|
|
398
398
|
end
|
|
399
399
|
|
|
400
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
400
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
401
401
|
if @api_client.config.client_side_validation && !opts[:'name'].nil? && opts[:'name'] !~ pattern
|
|
402
402
|
fail ArgumentError, "invalid value for 'opts[:\"name\"]' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.partial_update, must conform to the pattern #{pattern}."
|
|
403
403
|
end
|
|
@@ -21,6 +21,11 @@ module PulpAnsibleClient
|
|
|
21
21
|
# An optional content-guard.
|
|
22
22
|
attr_accessor :content_guard
|
|
23
23
|
|
|
24
|
+
# Whether this distribution should be shown in the content app.
|
|
25
|
+
attr_accessor :hidden
|
|
26
|
+
|
|
27
|
+
attr_accessor :pulp_labels
|
|
28
|
+
|
|
24
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
30
|
attr_accessor :name
|
|
26
31
|
|
|
@@ -30,17 +35,16 @@ module PulpAnsibleClient
|
|
|
30
35
|
# RepositoryVersion to be served
|
|
31
36
|
attr_accessor :repository_version
|
|
32
37
|
|
|
33
|
-
attr_accessor :pulp_labels
|
|
34
|
-
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
38
41
|
:'base_path' => :'base_path',
|
|
39
42
|
:'content_guard' => :'content_guard',
|
|
43
|
+
:'hidden' => :'hidden',
|
|
44
|
+
:'pulp_labels' => :'pulp_labels',
|
|
40
45
|
:'name' => :'name',
|
|
41
46
|
:'repository' => :'repository',
|
|
42
|
-
:'repository_version' => :'repository_version'
|
|
43
|
-
:'pulp_labels' => :'pulp_labels'
|
|
47
|
+
:'repository_version' => :'repository_version'
|
|
44
48
|
}
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -49,10 +53,11 @@ module PulpAnsibleClient
|
|
|
49
53
|
{
|
|
50
54
|
:'base_path' => :'String',
|
|
51
55
|
:'content_guard' => :'String',
|
|
56
|
+
:'hidden' => :'Boolean',
|
|
57
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
52
58
|
:'name' => :'String',
|
|
53
59
|
:'repository' => :'String',
|
|
54
|
-
:'repository_version' => :'String'
|
|
55
|
-
:'pulp_labels' => :'Hash<String, String>'
|
|
60
|
+
:'repository_version' => :'String'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
|
|
@@ -61,7 +66,7 @@ module PulpAnsibleClient
|
|
|
61
66
|
Set.new([
|
|
62
67
|
:'content_guard',
|
|
63
68
|
:'repository',
|
|
64
|
-
:'repository_version'
|
|
69
|
+
:'repository_version'
|
|
65
70
|
])
|
|
66
71
|
end
|
|
67
72
|
|
|
@@ -88,6 +93,18 @@ module PulpAnsibleClient
|
|
|
88
93
|
self.content_guard = attributes[:'content_guard']
|
|
89
94
|
end
|
|
90
95
|
|
|
96
|
+
if attributes.key?(:'hidden')
|
|
97
|
+
self.hidden = attributes[:'hidden']
|
|
98
|
+
else
|
|
99
|
+
self.hidden = false
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'pulp_labels')
|
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
104
|
+
self.pulp_labels = value
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
91
108
|
if attributes.key?(:'name')
|
|
92
109
|
self.name = attributes[:'name']
|
|
93
110
|
end
|
|
@@ -99,12 +116,6 @@ module PulpAnsibleClient
|
|
|
99
116
|
if attributes.key?(:'repository_version')
|
|
100
117
|
self.repository_version = attributes[:'repository_version']
|
|
101
118
|
end
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'pulp_labels')
|
|
104
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
105
|
-
self.pulp_labels = value
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
119
|
end
|
|
109
120
|
|
|
110
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -175,10 +186,11 @@ module PulpAnsibleClient
|
|
|
175
186
|
self.class == o.class &&
|
|
176
187
|
base_path == o.base_path &&
|
|
177
188
|
content_guard == o.content_guard &&
|
|
189
|
+
hidden == o.hidden &&
|
|
190
|
+
pulp_labels == o.pulp_labels &&
|
|
178
191
|
name == o.name &&
|
|
179
192
|
repository == o.repository &&
|
|
180
|
-
repository_version == o.repository_version
|
|
181
|
-
pulp_labels == o.pulp_labels
|
|
193
|
+
repository_version == o.repository_version
|
|
182
194
|
end
|
|
183
195
|
|
|
184
196
|
# @see the `==` method
|
|
@@ -190,7 +202,7 @@ module PulpAnsibleClient
|
|
|
190
202
|
# Calculates hash code according to all attributes.
|
|
191
203
|
# @return [Integer] Hash code
|
|
192
204
|
def hash
|
|
193
|
-
[base_path, content_guard, name, repository, repository_version
|
|
205
|
+
[base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
|
|
194
206
|
end
|
|
195
207
|
|
|
196
208
|
# Builds the object from hash
|
|
@@ -17,41 +17,57 @@ module PulpAnsibleClient
|
|
|
17
17
|
class AnsibleAnsibleDistributionResponse
|
|
18
18
|
attr_accessor :pulp_href
|
|
19
19
|
|
|
20
|
+
# The Pulp Resource Name (PRN).
|
|
21
|
+
attr_accessor :prn
|
|
22
|
+
|
|
20
23
|
# Timestamp of creation.
|
|
21
24
|
attr_accessor :pulp_created
|
|
22
25
|
|
|
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.
|
|
27
|
+
attr_accessor :pulp_last_updated
|
|
28
|
+
|
|
23
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
24
30
|
attr_accessor :base_path
|
|
25
31
|
|
|
26
32
|
# An optional content-guard.
|
|
27
33
|
attr_accessor :content_guard
|
|
28
34
|
|
|
35
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
36
|
+
attr_accessor :no_content_change_since
|
|
37
|
+
|
|
38
|
+
# Whether this distribution should be shown in the content app.
|
|
39
|
+
attr_accessor :hidden
|
|
40
|
+
|
|
41
|
+
attr_accessor :pulp_labels
|
|
42
|
+
|
|
29
43
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
44
|
attr_accessor :name
|
|
31
45
|
|
|
32
46
|
# The latest RepositoryVersion for this Repository will be served.
|
|
33
47
|
attr_accessor :repository
|
|
34
48
|
|
|
35
|
-
# RepositoryVersion to be served
|
|
36
|
-
attr_accessor :repository_version
|
|
37
|
-
|
|
38
49
|
# The URL of a Collection content source.
|
|
39
50
|
attr_accessor :client_url
|
|
40
51
|
|
|
41
|
-
|
|
52
|
+
# RepositoryVersion to be served
|
|
53
|
+
attr_accessor :repository_version
|
|
42
54
|
|
|
43
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
56
|
def self.attribute_map
|
|
45
57
|
{
|
|
46
58
|
:'pulp_href' => :'pulp_href',
|
|
59
|
+
:'prn' => :'prn',
|
|
47
60
|
:'pulp_created' => :'pulp_created',
|
|
61
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
48
62
|
:'base_path' => :'base_path',
|
|
49
63
|
:'content_guard' => :'content_guard',
|
|
64
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
65
|
+
:'hidden' => :'hidden',
|
|
66
|
+
:'pulp_labels' => :'pulp_labels',
|
|
50
67
|
:'name' => :'name',
|
|
51
68
|
:'repository' => :'repository',
|
|
52
|
-
:'repository_version' => :'repository_version',
|
|
53
69
|
:'client_url' => :'client_url',
|
|
54
|
-
:'
|
|
70
|
+
:'repository_version' => :'repository_version'
|
|
55
71
|
}
|
|
56
72
|
end
|
|
57
73
|
|
|
@@ -59,14 +75,18 @@ module PulpAnsibleClient
|
|
|
59
75
|
def self.openapi_types
|
|
60
76
|
{
|
|
61
77
|
:'pulp_href' => :'String',
|
|
78
|
+
:'prn' => :'String',
|
|
62
79
|
:'pulp_created' => :'DateTime',
|
|
80
|
+
:'pulp_last_updated' => :'DateTime',
|
|
63
81
|
:'base_path' => :'String',
|
|
64
82
|
:'content_guard' => :'String',
|
|
83
|
+
:'no_content_change_since' => :'String',
|
|
84
|
+
:'hidden' => :'Boolean',
|
|
85
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
65
86
|
:'name' => :'String',
|
|
66
87
|
:'repository' => :'String',
|
|
67
|
-
:'repository_version' => :'String',
|
|
68
88
|
:'client_url' => :'String',
|
|
69
|
-
:'
|
|
89
|
+
:'repository_version' => :'String'
|
|
70
90
|
}
|
|
71
91
|
end
|
|
72
92
|
|
|
@@ -75,7 +95,7 @@ module PulpAnsibleClient
|
|
|
75
95
|
Set.new([
|
|
76
96
|
:'content_guard',
|
|
77
97
|
:'repository',
|
|
78
|
-
:'repository_version'
|
|
98
|
+
:'repository_version'
|
|
79
99
|
])
|
|
80
100
|
end
|
|
81
101
|
|
|
@@ -98,10 +118,18 @@ module PulpAnsibleClient
|
|
|
98
118
|
self.pulp_href = attributes[:'pulp_href']
|
|
99
119
|
end
|
|
100
120
|
|
|
121
|
+
if attributes.key?(:'prn')
|
|
122
|
+
self.prn = attributes[:'prn']
|
|
123
|
+
end
|
|
124
|
+
|
|
101
125
|
if attributes.key?(:'pulp_created')
|
|
102
126
|
self.pulp_created = attributes[:'pulp_created']
|
|
103
127
|
end
|
|
104
128
|
|
|
129
|
+
if attributes.key?(:'pulp_last_updated')
|
|
130
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
131
|
+
end
|
|
132
|
+
|
|
105
133
|
if attributes.key?(:'base_path')
|
|
106
134
|
self.base_path = attributes[:'base_path']
|
|
107
135
|
end
|
|
@@ -110,6 +138,22 @@ module PulpAnsibleClient
|
|
|
110
138
|
self.content_guard = attributes[:'content_guard']
|
|
111
139
|
end
|
|
112
140
|
|
|
141
|
+
if attributes.key?(:'no_content_change_since')
|
|
142
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'hidden')
|
|
146
|
+
self.hidden = attributes[:'hidden']
|
|
147
|
+
else
|
|
148
|
+
self.hidden = false
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'pulp_labels')
|
|
152
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
153
|
+
self.pulp_labels = value
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
113
157
|
if attributes.key?(:'name')
|
|
114
158
|
self.name = attributes[:'name']
|
|
115
159
|
end
|
|
@@ -118,18 +162,12 @@ module PulpAnsibleClient
|
|
|
118
162
|
self.repository = attributes[:'repository']
|
|
119
163
|
end
|
|
120
164
|
|
|
121
|
-
if attributes.key?(:'repository_version')
|
|
122
|
-
self.repository_version = attributes[:'repository_version']
|
|
123
|
-
end
|
|
124
|
-
|
|
125
165
|
if attributes.key?(:'client_url')
|
|
126
166
|
self.client_url = attributes[:'client_url']
|
|
127
167
|
end
|
|
128
168
|
|
|
129
|
-
if attributes.key?(:'
|
|
130
|
-
|
|
131
|
-
self.pulp_labels = value
|
|
132
|
-
end
|
|
169
|
+
if attributes.key?(:'repository_version')
|
|
170
|
+
self.repository_version = attributes[:'repository_version']
|
|
133
171
|
end
|
|
134
172
|
end
|
|
135
173
|
|
|
@@ -162,14 +200,18 @@ module PulpAnsibleClient
|
|
|
162
200
|
return true if self.equal?(o)
|
|
163
201
|
self.class == o.class &&
|
|
164
202
|
pulp_href == o.pulp_href &&
|
|
203
|
+
prn == o.prn &&
|
|
165
204
|
pulp_created == o.pulp_created &&
|
|
205
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
166
206
|
base_path == o.base_path &&
|
|
167
207
|
content_guard == o.content_guard &&
|
|
208
|
+
no_content_change_since == o.no_content_change_since &&
|
|
209
|
+
hidden == o.hidden &&
|
|
210
|
+
pulp_labels == o.pulp_labels &&
|
|
168
211
|
name == o.name &&
|
|
169
212
|
repository == o.repository &&
|
|
170
|
-
repository_version == o.repository_version &&
|
|
171
213
|
client_url == o.client_url &&
|
|
172
|
-
|
|
214
|
+
repository_version == o.repository_version
|
|
173
215
|
end
|
|
174
216
|
|
|
175
217
|
# @see the `==` method
|
|
@@ -181,7 +223,7 @@ module PulpAnsibleClient
|
|
|
181
223
|
# Calculates hash code according to all attributes.
|
|
182
224
|
# @return [Integer] Hash code
|
|
183
225
|
def hash
|
|
184
|
-
[pulp_href, pulp_created, base_path, content_guard, name, repository,
|
|
226
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, client_url, repository_version].hash
|
|
185
227
|
end
|
|
186
228
|
|
|
187
229
|
# Builds the object from hash
|
|
@@ -130,7 +130,7 @@ module PulpAnsibleClient
|
|
|
130
130
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
133
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
134
134
|
if @name !~ pattern
|
|
135
135
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
|
136
136
|
end
|
|
@@ -156,7 +156,7 @@ module PulpAnsibleClient
|
|
|
156
156
|
return false if @name.nil?
|
|
157
157
|
return false if @name.to_s.length > 64
|
|
158
158
|
return false if @name.to_s.length < 3
|
|
159
|
-
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]
|
|
159
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
160
160
|
return false if !@company.nil? && @company.to_s.length > 64
|
|
161
161
|
return false if !@email.nil? && @email.to_s.length > 256
|
|
162
162
|
return false if !@description.nil? && @description.to_s.length > 256
|
|
@@ -178,7 +178,7 @@ module PulpAnsibleClient
|
|
|
178
178
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
179
179
|
end
|
|
180
180
|
|
|
181
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
181
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
182
182
|
if name !~ pattern
|
|
183
183
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
184
184
|
end
|
|
@@ -155,7 +155,7 @@ module PulpAnsibleClient
|
|
|
155
155
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
158
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
159
159
|
if @name !~ pattern
|
|
160
160
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
|
161
161
|
end
|
|
@@ -185,7 +185,7 @@ module PulpAnsibleClient
|
|
|
185
185
|
return false if @name.nil?
|
|
186
186
|
return false if @name.to_s.length > 64
|
|
187
187
|
return false if @name.to_s.length < 3
|
|
188
|
-
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]
|
|
188
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
189
189
|
return false if !@company.nil? && @company.to_s.length > 64
|
|
190
190
|
return false if !@email.nil? && @email.to_s.length > 256
|
|
191
191
|
return false if !@description.nil? && @description.to_s.length > 256
|
|
@@ -208,7 +208,7 @@ module PulpAnsibleClient
|
|
|
208
208
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
209
209
|
end
|
|
210
210
|
|
|
211
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
211
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
212
212
|
if name !~ pattern
|
|
213
213
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
214
214
|
end
|
|
@@ -15,20 +15,20 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for CollectionVersion Content.
|
|
17
17
|
class AnsibleCollectionVersion
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# Artifact file representing the physical content
|
|
19
|
+
attr_accessor :artifact
|
|
20
20
|
|
|
21
21
|
# An uncommitted upload that may be turned into the content unit.
|
|
22
22
|
attr_accessor :upload
|
|
23
23
|
|
|
24
|
+
# A url that Pulp can download and turn into the content unit.
|
|
25
|
+
attr_accessor :file_url
|
|
26
|
+
|
|
24
27
|
# A URI of a repository the new content unit should be associated with.
|
|
25
28
|
attr_accessor :repository
|
|
26
29
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
29
|
-
|
|
30
|
-
# A url that Pulp can download and turn into the content unit.
|
|
31
|
-
attr_accessor :file_url
|
|
30
|
+
# An uploaded file that may be turned into the content unit.
|
|
31
|
+
attr_accessor :file
|
|
32
32
|
|
|
33
33
|
# The name of the collection.
|
|
34
34
|
attr_accessor :expected_name
|
|
@@ -42,11 +42,11 @@ module PulpAnsibleClient
|
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
-
:'file' => :'file',
|
|
46
|
-
:'upload' => :'upload',
|
|
47
|
-
:'repository' => :'repository',
|
|
48
45
|
:'artifact' => :'artifact',
|
|
46
|
+
:'upload' => :'upload',
|
|
49
47
|
:'file_url' => :'file_url',
|
|
48
|
+
:'repository' => :'repository',
|
|
49
|
+
:'file' => :'file',
|
|
50
50
|
:'expected_name' => :'expected_name',
|
|
51
51
|
:'expected_namespace' => :'expected_namespace',
|
|
52
52
|
:'expected_version' => :'expected_version'
|
|
@@ -56,11 +56,11 @@ module PulpAnsibleClient
|
|
|
56
56
|
# Attribute type mapping.
|
|
57
57
|
def self.openapi_types
|
|
58
58
|
{
|
|
59
|
-
:'file' => :'File',
|
|
60
|
-
:'upload' => :'String',
|
|
61
|
-
:'repository' => :'String',
|
|
62
59
|
:'artifact' => :'String',
|
|
60
|
+
:'upload' => :'String',
|
|
63
61
|
:'file_url' => :'String',
|
|
62
|
+
:'repository' => :'String',
|
|
63
|
+
:'file' => :'File',
|
|
64
64
|
:'expected_name' => :'String',
|
|
65
65
|
:'expected_namespace' => :'String',
|
|
66
66
|
:'expected_version' => :'String'
|
|
@@ -88,24 +88,24 @@ module PulpAnsibleClient
|
|
|
88
88
|
h[k.to_sym] = v
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
if attributes.key?(:'
|
|
92
|
-
self.
|
|
91
|
+
if attributes.key?(:'artifact')
|
|
92
|
+
self.artifact = attributes[:'artifact']
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
if attributes.key?(:'upload')
|
|
96
96
|
self.upload = attributes[:'upload']
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
if attributes.key?(:'
|
|
100
|
-
self.
|
|
99
|
+
if attributes.key?(:'file_url')
|
|
100
|
+
self.file_url = attributes[:'file_url']
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
if attributes.key?(:'
|
|
104
|
-
self.
|
|
103
|
+
if attributes.key?(:'repository')
|
|
104
|
+
self.repository = attributes[:'repository']
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
-
if attributes.key?(:'
|
|
108
|
-
self.
|
|
107
|
+
if attributes.key?(:'file')
|
|
108
|
+
self.file = attributes[:'file']
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
if attributes.key?(:'expected_name')
|
|
@@ -226,11 +226,11 @@ module PulpAnsibleClient
|
|
|
226
226
|
def ==(o)
|
|
227
227
|
return true if self.equal?(o)
|
|
228
228
|
self.class == o.class &&
|
|
229
|
-
file == o.file &&
|
|
230
|
-
upload == o.upload &&
|
|
231
|
-
repository == o.repository &&
|
|
232
229
|
artifact == o.artifact &&
|
|
230
|
+
upload == o.upload &&
|
|
233
231
|
file_url == o.file_url &&
|
|
232
|
+
repository == o.repository &&
|
|
233
|
+
file == o.file &&
|
|
234
234
|
expected_name == o.expected_name &&
|
|
235
235
|
expected_namespace == o.expected_namespace &&
|
|
236
236
|
expected_version == o.expected_version
|
|
@@ -245,7 +245,7 @@ module PulpAnsibleClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[
|
|
248
|
+
[artifact, upload, file_url, repository, file, expected_name, expected_namespace, expected_version].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -15,7 +15,11 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for CollectionVersion Content.
|
|
17
17
|
class AnsibleCollectionVersionResponse
|
|
18
|
-
|
|
18
|
+
# The Pulp Resource Name (PRN).
|
|
19
|
+
attr_accessor :prn
|
|
20
|
+
|
|
21
|
+
# 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.
|
|
22
|
+
attr_accessor :pulp_last_updated
|
|
19
23
|
|
|
20
24
|
# Timestamp of creation.
|
|
21
25
|
attr_accessor :pulp_created
|
|
@@ -23,11 +27,7 @@ module PulpAnsibleClient
|
|
|
23
27
|
# Artifact file representing the physical content
|
|
24
28
|
attr_accessor :artifact
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
attr_accessor :pulp_last_updated
|
|
28
|
-
|
|
29
|
-
# The Pulp Resource Name (PRN).
|
|
30
|
-
attr_accessor :prn
|
|
30
|
+
attr_accessor :pulp_href
|
|
31
31
|
|
|
32
32
|
# The SHA-256 checksum if available.
|
|
33
33
|
attr_accessor :sha256
|
|
@@ -103,11 +103,11 @@ module PulpAnsibleClient
|
|
|
103
103
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
104
104
|
def self.attribute_map
|
|
105
105
|
{
|
|
106
|
-
:'
|
|
106
|
+
:'prn' => :'prn',
|
|
107
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
107
108
|
:'pulp_created' => :'pulp_created',
|
|
108
109
|
:'artifact' => :'artifact',
|
|
109
|
-
:'
|
|
110
|
-
:'prn' => :'prn',
|
|
110
|
+
:'pulp_href' => :'pulp_href',
|
|
111
111
|
:'sha256' => :'sha256',
|
|
112
112
|
:'md5' => :'md5',
|
|
113
113
|
:'sha1' => :'sha1',
|
|
@@ -138,11 +138,11 @@ module PulpAnsibleClient
|
|
|
138
138
|
# Attribute type mapping.
|
|
139
139
|
def self.openapi_types
|
|
140
140
|
{
|
|
141
|
-
:'
|
|
141
|
+
:'prn' => :'String',
|
|
142
|
+
:'pulp_last_updated' => :'DateTime',
|
|
142
143
|
:'pulp_created' => :'DateTime',
|
|
143
144
|
:'artifact' => :'String',
|
|
144
|
-
:'
|
|
145
|
-
:'prn' => :'String',
|
|
145
|
+
:'pulp_href' => :'String',
|
|
146
146
|
:'sha256' => :'String',
|
|
147
147
|
:'md5' => :'String',
|
|
148
148
|
:'sha1' => :'String',
|
|
@@ -192,8 +192,12 @@ module PulpAnsibleClient
|
|
|
192
192
|
h[k.to_sym] = v
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
195
|
+
if attributes.key?(:'prn')
|
|
196
|
+
self.prn = attributes[:'prn']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'pulp_last_updated')
|
|
200
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
197
201
|
end
|
|
198
202
|
|
|
199
203
|
if attributes.key?(:'pulp_created')
|
|
@@ -204,12 +208,8 @@ module PulpAnsibleClient
|
|
|
204
208
|
self.artifact = attributes[:'artifact']
|
|
205
209
|
end
|
|
206
210
|
|
|
207
|
-
if attributes.key?(:'
|
|
208
|
-
self.
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
if attributes.key?(:'prn')
|
|
212
|
-
self.prn = attributes[:'prn']
|
|
211
|
+
if attributes.key?(:'pulp_href')
|
|
212
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
if attributes.key?(:'sha256')
|
|
@@ -453,11 +453,11 @@ module PulpAnsibleClient
|
|
|
453
453
|
def ==(o)
|
|
454
454
|
return true if self.equal?(o)
|
|
455
455
|
self.class == o.class &&
|
|
456
|
-
|
|
456
|
+
prn == o.prn &&
|
|
457
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
457
458
|
pulp_created == o.pulp_created &&
|
|
458
459
|
artifact == o.artifact &&
|
|
459
|
-
|
|
460
|
-
prn == o.prn &&
|
|
460
|
+
pulp_href == o.pulp_href &&
|
|
461
461
|
sha256 == o.sha256 &&
|
|
462
462
|
md5 == o.md5 &&
|
|
463
463
|
sha1 == o.sha1 &&
|
|
@@ -493,7 +493,7 @@ module PulpAnsibleClient
|
|
|
493
493
|
# Calculates hash code according to all attributes.
|
|
494
494
|
# @return [Integer] Hash code
|
|
495
495
|
def hash
|
|
496
|
-
[
|
|
496
|
+
[prn, pulp_last_updated, pulp_created, artifact, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
|
497
497
|
end
|
|
498
498
|
|
|
499
499
|
# Builds the object from hash
|