pulp_ansible_client 0.29.8 → 0.29.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/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +30 -30
- data/docs/AnsibleRole.md +4 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionSignaturesApi.md +2 -0
- data/docs/ContentCollectionVersionsApi.md +8 -6
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/RemotesGitApi.md +2 -2
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -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_collection_deprecated.rb +11 -1
- 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 +29 -29
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +251 -251
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +183 -183
- data/lib/pulp_ansible_client/models/ansible_role.rb +21 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +29 -29
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +242 -242
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_collection_versions_api_spec.rb +4 -3
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +5 -5
- 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 +5 -5
- data/spec/models/ansible_role_spec.rb +8 -2
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +121 -121
|
@@ -19,6 +19,9 @@ module PulpAnsibleClient
|
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
|
20
20
|
attr_accessor :repository
|
|
21
21
|
|
|
22
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
23
|
+
attr_accessor :overwrite
|
|
24
|
+
|
|
22
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
26
|
attr_accessor :pulp_labels
|
|
24
27
|
|
|
@@ -32,6 +35,7 @@ module PulpAnsibleClient
|
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'repository' => :'repository',
|
|
38
|
+
:'overwrite' => :'overwrite',
|
|
35
39
|
:'pulp_labels' => :'pulp_labels',
|
|
36
40
|
:'name' => :'name',
|
|
37
41
|
:'namespace' => :'namespace'
|
|
@@ -47,6 +51,7 @@ module PulpAnsibleClient
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'repository' => :'String',
|
|
54
|
+
:'overwrite' => :'Boolean',
|
|
50
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
51
56
|
:'name' => :'String',
|
|
52
57
|
:'namespace' => :'String'
|
|
@@ -78,6 +83,10 @@ module PulpAnsibleClient
|
|
|
78
83
|
self.repository = attributes[:'repository']
|
|
79
84
|
end
|
|
80
85
|
|
|
86
|
+
if attributes.key?(:'overwrite')
|
|
87
|
+
self.overwrite = attributes[:'overwrite']
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
if attributes.key?(:'pulp_labels')
|
|
82
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
83
92
|
self.pulp_labels = value
|
|
@@ -166,6 +175,7 @@ module PulpAnsibleClient
|
|
|
166
175
|
return true if self.equal?(o)
|
|
167
176
|
self.class == o.class &&
|
|
168
177
|
repository == o.repository &&
|
|
178
|
+
overwrite == o.overwrite &&
|
|
169
179
|
pulp_labels == o.pulp_labels &&
|
|
170
180
|
name == o.name &&
|
|
171
181
|
namespace == o.namespace
|
|
@@ -180,7 +190,7 @@ module PulpAnsibleClient
|
|
|
180
190
|
# Calculates hash code according to all attributes.
|
|
181
191
|
# @return [Integer] Hash code
|
|
182
192
|
def hash
|
|
183
|
-
[repository, pulp_labels, name, namespace].hash
|
|
193
|
+
[repository, overwrite, pulp_labels, name, namespace].hash
|
|
184
194
|
end
|
|
185
195
|
|
|
186
196
|
# Builds the object from hash
|
|
@@ -139,7 +139,7 @@ module PulpAnsibleClient
|
|
|
139
139
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
142
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
143
143
|
if @name !~ pattern
|
|
144
144
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
|
145
145
|
end
|
|
@@ -166,7 +166,7 @@ module PulpAnsibleClient
|
|
|
166
166
|
return false if @name.nil?
|
|
167
167
|
return false if @name.to_s.length > 64
|
|
168
168
|
return false if @name.to_s.length < 3
|
|
169
|
-
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]
|
|
169
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
170
170
|
return false if !@company.nil? && @company.to_s.length > 64
|
|
171
171
|
return false if !@email.nil? && @email.to_s.length > 256
|
|
172
172
|
return false if !@description.nil? && @description.to_s.length > 256
|
|
@@ -188,7 +188,7 @@ module PulpAnsibleClient
|
|
|
188
188
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
189
189
|
end
|
|
190
190
|
|
|
191
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
191
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
192
192
|
if name !~ pattern
|
|
193
193
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
194
194
|
end
|
|
@@ -164,7 +164,7 @@ module PulpAnsibleClient
|
|
|
164
164
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
167
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
168
168
|
if @name !~ pattern
|
|
169
169
|
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
|
170
170
|
end
|
|
@@ -195,7 +195,7 @@ module PulpAnsibleClient
|
|
|
195
195
|
return false if @name.nil?
|
|
196
196
|
return false if @name.to_s.length > 64
|
|
197
197
|
return false if @name.to_s.length < 3
|
|
198
|
-
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]
|
|
198
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
199
199
|
return false if !@company.nil? && @company.to_s.length > 64
|
|
200
200
|
return false if !@email.nil? && @email.to_s.length > 256
|
|
201
201
|
return false if !@description.nil? && @description.to_s.length > 256
|
|
@@ -218,7 +218,7 @@ module PulpAnsibleClient
|
|
|
218
218
|
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
-
pattern = Regexp.new(/^(?!.*__)[a-z]
|
|
221
|
+
pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
|
|
222
222
|
if name !~ pattern
|
|
223
223
|
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
|
224
224
|
end
|
|
@@ -16,23 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for CollectionVersion Content.
|
|
18
18
|
class AnsibleCollectionVersionResponse
|
|
19
|
-
attr_accessor :vuln_report
|
|
20
|
-
|
|
21
19
|
# Artifact file representing the physical content
|
|
22
20
|
attr_accessor :artifact
|
|
23
21
|
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
|
+
attr_accessor :pulp_labels
|
|
24
|
+
|
|
24
25
|
# Timestamp of creation.
|
|
25
26
|
attr_accessor :pulp_created
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
attr_accessor :prn
|
|
29
|
-
|
|
30
|
-
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
|
-
attr_accessor :pulp_labels
|
|
28
|
+
attr_accessor :vuln_report
|
|
32
29
|
|
|
33
30
|
# 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.
|
|
34
31
|
attr_accessor :pulp_last_updated
|
|
35
32
|
|
|
33
|
+
# The Pulp Resource Name (PRN).
|
|
34
|
+
attr_accessor :prn
|
|
35
|
+
|
|
36
36
|
attr_accessor :pulp_href
|
|
37
37
|
|
|
38
38
|
# The SHA-256 checksum if available.
|
|
@@ -97,12 +97,12 @@ module PulpAnsibleClient
|
|
|
97
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
98
98
|
def self.attribute_map
|
|
99
99
|
{
|
|
100
|
-
:'vuln_report' => :'vuln_report',
|
|
101
100
|
:'artifact' => :'artifact',
|
|
102
|
-
:'pulp_created' => :'pulp_created',
|
|
103
|
-
:'prn' => :'prn',
|
|
104
101
|
:'pulp_labels' => :'pulp_labels',
|
|
102
|
+
:'pulp_created' => :'pulp_created',
|
|
103
|
+
:'vuln_report' => :'vuln_report',
|
|
105
104
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
105
|
+
:'prn' => :'prn',
|
|
106
106
|
:'pulp_href' => :'pulp_href',
|
|
107
107
|
:'sha256' => :'sha256',
|
|
108
108
|
:'md5' => :'md5',
|
|
@@ -135,12 +135,12 @@ module PulpAnsibleClient
|
|
|
135
135
|
# Attribute type mapping.
|
|
136
136
|
def self.openapi_types
|
|
137
137
|
{
|
|
138
|
-
:'vuln_report' => :'String',
|
|
139
138
|
:'artifact' => :'String',
|
|
140
|
-
:'pulp_created' => :'Time',
|
|
141
|
-
:'prn' => :'String',
|
|
142
139
|
:'pulp_labels' => :'Hash<String, String>',
|
|
140
|
+
:'pulp_created' => :'Time',
|
|
141
|
+
:'vuln_report' => :'String',
|
|
143
142
|
:'pulp_last_updated' => :'Time',
|
|
143
|
+
:'prn' => :'String',
|
|
144
144
|
:'pulp_href' => :'String',
|
|
145
145
|
:'sha256' => :'String',
|
|
146
146
|
:'md5' => :'String',
|
|
@@ -187,32 +187,32 @@ module PulpAnsibleClient
|
|
|
187
187
|
h[k.to_sym] = v
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
if attributes.key?(:'vuln_report')
|
|
191
|
-
self.vuln_report = attributes[:'vuln_report']
|
|
192
|
-
end
|
|
193
|
-
|
|
194
190
|
if attributes.key?(:'artifact')
|
|
195
191
|
self.artifact = attributes[:'artifact']
|
|
196
192
|
end
|
|
197
193
|
|
|
198
|
-
if attributes.key?(:'pulp_created')
|
|
199
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
if attributes.key?(:'prn')
|
|
203
|
-
self.prn = attributes[:'prn']
|
|
204
|
-
end
|
|
205
|
-
|
|
206
194
|
if attributes.key?(:'pulp_labels')
|
|
207
195
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
208
196
|
self.pulp_labels = value
|
|
209
197
|
end
|
|
210
198
|
end
|
|
211
199
|
|
|
200
|
+
if attributes.key?(:'pulp_created')
|
|
201
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'vuln_report')
|
|
205
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
206
|
+
end
|
|
207
|
+
|
|
212
208
|
if attributes.key?(:'pulp_last_updated')
|
|
213
209
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
214
210
|
end
|
|
215
211
|
|
|
212
|
+
if attributes.key?(:'prn')
|
|
213
|
+
self.prn = attributes[:'prn']
|
|
214
|
+
end
|
|
215
|
+
|
|
216
216
|
if attributes.key?(:'pulp_href')
|
|
217
217
|
self.pulp_href = attributes[:'pulp_href']
|
|
218
218
|
end
|
|
@@ -472,12 +472,12 @@ module PulpAnsibleClient
|
|
|
472
472
|
def ==(o)
|
|
473
473
|
return true if self.equal?(o)
|
|
474
474
|
self.class == o.class &&
|
|
475
|
-
vuln_report == o.vuln_report &&
|
|
476
475
|
artifact == o.artifact &&
|
|
477
|
-
pulp_created == o.pulp_created &&
|
|
478
|
-
prn == o.prn &&
|
|
479
476
|
pulp_labels == o.pulp_labels &&
|
|
477
|
+
pulp_created == o.pulp_created &&
|
|
478
|
+
vuln_report == o.vuln_report &&
|
|
480
479
|
pulp_last_updated == o.pulp_last_updated &&
|
|
480
|
+
prn == o.prn &&
|
|
481
481
|
pulp_href == o.pulp_href &&
|
|
482
482
|
sha256 == o.sha256 &&
|
|
483
483
|
md5 == o.md5 &&
|
|
@@ -510,7 +510,7 @@ module PulpAnsibleClient
|
|
|
510
510
|
# Calculates hash code according to all attributes.
|
|
511
511
|
# @return [Integer] Hash code
|
|
512
512
|
def hash
|
|
513
|
-
[
|
|
513
|
+
[artifact, pulp_labels, pulp_created, vuln_report, pulp_last_updated, prn, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, dependencies, description, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
|
514
514
|
end
|
|
515
515
|
|
|
516
516
|
# Builds the object from hash
|