pulp_ansible_client 0.29.8 → 0.29.10

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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
  4. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  5. data/docs/AnsibleGitRemote.md +30 -30
  6. data/docs/AnsibleGitRemoteResponse.md +30 -30
  7. data/docs/AnsibleRole.md +4 -2
  8. data/docs/AnsibleRoleResponse.md +6 -6
  9. data/docs/ContentCollectionSignaturesApi.md +2 -0
  10. data/docs/ContentCollectionVersionsApi.md +10 -8
  11. data/docs/PatchedansibleGitRemote.md +30 -30
  12. data/docs/RepositoryAddRemoveContent.md +3 -1
  13. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  14. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +15 -12
  15. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  16. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  17. data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +11 -1
  18. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  19. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  20. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +26 -26
  21. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +257 -257
  22. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +163 -163
  23. data/lib/pulp_ansible_client/models/ansible_role.rb +18 -8
  24. data/lib/pulp_ansible_client/models/ansible_role_response.rb +26 -26
  25. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +248 -248
  26. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +16 -4
  27. data/lib/pulp_ansible_client/version.rb +1 -1
  28. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  29. data/spec/api/content_collection_versions_api_spec.rb +5 -4
  30. data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
  31. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  32. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  33. data/spec/models/ansible_git_remote_spec.rb +19 -19
  34. data/spec/models/ansible_role_response_spec.rb +5 -5
  35. data/spec/models/ansible_role_spec.rb +7 -1
  36. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  37. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  38. metadata +120 -120
@@ -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]+[0-9a-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]+[0-9a-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]+[0-9a-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]+[0-9a-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]+[0-9a-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]+[0-9a-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,24 +16,24 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for CollectionVersion Content.
18
18
  class AnsibleCollectionVersionResponse
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
19
22
  attr_accessor :vuln_report
20
23
 
21
24
  # Artifact file representing the physical content
22
25
  attr_accessor :artifact
23
26
 
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
27
  # The Pulp Resource Name (PRN).
28
28
  attr_accessor :prn
29
29
 
30
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
- attr_accessor :pulp_labels
30
+ attr_accessor :pulp_href
32
31
 
33
32
  # 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
33
  attr_accessor :pulp_last_updated
35
34
 
36
- attr_accessor :pulp_href
35
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
36
+ attr_accessor :pulp_labels
37
37
 
38
38
  # The SHA-256 checksum if available.
39
39
  attr_accessor :sha256
@@ -97,13 +97,13 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
+ :'pulp_created' => :'pulp_created',
100
101
  :'vuln_report' => :'vuln_report',
101
102
  :'artifact' => :'artifact',
102
- :'pulp_created' => :'pulp_created',
103
103
  :'prn' => :'prn',
104
- :'pulp_labels' => :'pulp_labels',
105
- :'pulp_last_updated' => :'pulp_last_updated',
106
104
  :'pulp_href' => :'pulp_href',
105
+ :'pulp_last_updated' => :'pulp_last_updated',
106
+ :'pulp_labels' => :'pulp_labels',
107
107
  :'sha256' => :'sha256',
108
108
  :'md5' => :'md5',
109
109
  :'sha1' => :'sha1',
@@ -135,13 +135,13 @@ module PulpAnsibleClient
135
135
  # Attribute type mapping.
136
136
  def self.openapi_types
137
137
  {
138
+ :'pulp_created' => :'Time',
138
139
  :'vuln_report' => :'String',
139
140
  :'artifact' => :'String',
140
- :'pulp_created' => :'Time',
141
141
  :'prn' => :'String',
142
- :'pulp_labels' => :'Hash<String, String>',
143
- :'pulp_last_updated' => :'Time',
144
142
  :'pulp_href' => :'String',
143
+ :'pulp_last_updated' => :'Time',
144
+ :'pulp_labels' => :'Hash<String, String>',
145
145
  :'sha256' => :'String',
146
146
  :'md5' => :'String',
147
147
  :'sha1' => :'String',
@@ -187,6 +187,10 @@ module PulpAnsibleClient
187
187
  h[k.to_sym] = v
188
188
  }
189
189
 
190
+ if attributes.key?(:'pulp_created')
191
+ self.pulp_created = attributes[:'pulp_created']
192
+ end
193
+
190
194
  if attributes.key?(:'vuln_report')
191
195
  self.vuln_report = attributes[:'vuln_report']
192
196
  end
@@ -195,26 +199,22 @@ module PulpAnsibleClient
195
199
  self.artifact = attributes[:'artifact']
196
200
  end
197
201
 
198
- if attributes.key?(:'pulp_created')
199
- self.pulp_created = attributes[:'pulp_created']
200
- end
201
-
202
202
  if attributes.key?(:'prn')
203
203
  self.prn = attributes[:'prn']
204
204
  end
205
205
 
206
- if attributes.key?(:'pulp_labels')
207
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
208
- self.pulp_labels = value
209
- end
206
+ if attributes.key?(:'pulp_href')
207
+ self.pulp_href = attributes[:'pulp_href']
210
208
  end
211
209
 
212
210
  if attributes.key?(:'pulp_last_updated')
213
211
  self.pulp_last_updated = attributes[:'pulp_last_updated']
214
212
  end
215
213
 
216
- if attributes.key?(:'pulp_href')
217
- self.pulp_href = attributes[:'pulp_href']
214
+ if attributes.key?(:'pulp_labels')
215
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
216
+ self.pulp_labels = value
217
+ end
218
218
  end
219
219
 
220
220
  if attributes.key?(:'sha256')
@@ -472,13 +472,13 @@ module PulpAnsibleClient
472
472
  def ==(o)
473
473
  return true if self.equal?(o)
474
474
  self.class == o.class &&
475
+ pulp_created == o.pulp_created &&
475
476
  vuln_report == o.vuln_report &&
476
477
  artifact == o.artifact &&
477
- pulp_created == o.pulp_created &&
478
478
  prn == o.prn &&
479
- pulp_labels == o.pulp_labels &&
480
- pulp_last_updated == o.pulp_last_updated &&
481
479
  pulp_href == o.pulp_href &&
480
+ pulp_last_updated == o.pulp_last_updated &&
481
+ pulp_labels == o.pulp_labels &&
482
482
  sha256 == o.sha256 &&
483
483
  md5 == o.md5 &&
484
484
  sha1 == o.sha1 &&
@@ -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
- [vuln_report, artifact, pulp_created, prn, pulp_labels, pulp_last_updated, 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
513
+ [pulp_created, vuln_report, artifact, prn, pulp_href, pulp_last_updated, pulp_labels, 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