pulp_ansible_client 0.29.6 → 0.29.7
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/AnsibleAnsibleRepository.md +2 -0
- data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +8 -8
- data/docs/AnsibleGitRemote.md +24 -24
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRoleResponse.md +8 -8
- data/docs/ContentCollectionVersionsApi.md +8 -8
- data/docs/PatchedansibleAnsibleRepository.md +2 -0
- data/docs/PatchedansibleGitRemote.md +24 -24
- data/docs/RepositoriesAnsibleApi.md +18 -2
- data/docs/Repository.md +2 -0
- data/docs/RepositoryResponse.md +2 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +27 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +27 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +27 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +35 -35
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +241 -241
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +35 -35
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +27 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +231 -231
- data/lib/pulp_ansible_client/models/repository.rb +27 -1
- data/lib/pulp_ansible_client/models/repository_response.rb +27 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +4 -4
- data/spec/api/repositories_ansible_api_spec.rb +9 -1
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/repository_response_spec.rb +6 -0
- data/spec/models/repository_spec.rb +6 -0
- metadata +126 -126
|
@@ -27,6 +27,9 @@ module PulpAnsibleClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -45,6 +48,7 @@ module PulpAnsibleClient
|
|
|
45
48
|
:'name' => :'name',
|
|
46
49
|
:'description' => :'description',
|
|
47
50
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
51
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
48
52
|
:'remote' => :'remote',
|
|
49
53
|
:'last_synced_metadata_time' => :'last_synced_metadata_time',
|
|
50
54
|
:'gpgkey' => :'gpgkey',
|
|
@@ -64,6 +68,7 @@ module PulpAnsibleClient
|
|
|
64
68
|
:'name' => :'String',
|
|
65
69
|
:'description' => :'String',
|
|
66
70
|
:'retain_repo_versions' => :'Integer',
|
|
71
|
+
:'retain_checkpoints' => :'Integer',
|
|
67
72
|
:'remote' => :'String',
|
|
68
73
|
:'last_synced_metadata_time' => :'Time',
|
|
69
74
|
:'gpgkey' => :'String',
|
|
@@ -76,6 +81,7 @@ module PulpAnsibleClient
|
|
|
76
81
|
Set.new([
|
|
77
82
|
:'description',
|
|
78
83
|
:'retain_repo_versions',
|
|
84
|
+
:'retain_checkpoints',
|
|
79
85
|
:'remote',
|
|
80
86
|
:'last_synced_metadata_time',
|
|
81
87
|
:'gpgkey',
|
|
@@ -115,6 +121,10 @@ module PulpAnsibleClient
|
|
|
115
121
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
116
122
|
end
|
|
117
123
|
|
|
124
|
+
if attributes.key?(:'retain_checkpoints')
|
|
125
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
126
|
+
end
|
|
127
|
+
|
|
118
128
|
if attributes.key?(:'remote')
|
|
119
129
|
self.remote = attributes[:'remote']
|
|
120
130
|
end
|
|
@@ -149,6 +159,10 @@ module PulpAnsibleClient
|
|
|
149
159
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
150
160
|
end
|
|
151
161
|
|
|
162
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
163
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
164
|
+
end
|
|
165
|
+
|
|
152
166
|
if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
|
153
167
|
invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
|
|
154
168
|
end
|
|
@@ -163,6 +177,7 @@ module PulpAnsibleClient
|
|
|
163
177
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
164
178
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
165
179
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
166
181
|
return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
|
|
167
182
|
true
|
|
168
183
|
end
|
|
@@ -201,6 +216,16 @@ module PulpAnsibleClient
|
|
|
201
216
|
@retain_repo_versions = retain_repo_versions
|
|
202
217
|
end
|
|
203
218
|
|
|
219
|
+
# Custom attribute writer method with validation
|
|
220
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
221
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
222
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
223
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
@retain_checkpoints = retain_checkpoints
|
|
227
|
+
end
|
|
228
|
+
|
|
204
229
|
# Custom attribute writer method with validation
|
|
205
230
|
# @param [Object] gpgkey Value to be assigned
|
|
206
231
|
def gpgkey=(gpgkey)
|
|
@@ -220,6 +245,7 @@ module PulpAnsibleClient
|
|
|
220
245
|
name == o.name &&
|
|
221
246
|
description == o.description &&
|
|
222
247
|
retain_repo_versions == o.retain_repo_versions &&
|
|
248
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
223
249
|
remote == o.remote &&
|
|
224
250
|
last_synced_metadata_time == o.last_synced_metadata_time &&
|
|
225
251
|
gpgkey == o.gpgkey &&
|
|
@@ -235,7 +261,7 @@ module PulpAnsibleClient
|
|
|
235
261
|
# Calculates hash code according to all attributes.
|
|
236
262
|
# @return [Integer] Hash code
|
|
237
263
|
def hash
|
|
238
|
-
[pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time, gpgkey, private].hash
|
|
264
|
+
[pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, last_synced_metadata_time, gpgkey, private].hash
|
|
239
265
|
end
|
|
240
266
|
|
|
241
267
|
# Builds the object from hash
|