pulp_ansible_client 0.29.12 → 0.30.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +3 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +2 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +26 -26
  8. data/docs/AnsibleRole.md +2 -2
  9. data/docs/AnsibleRoleResponse.md +6 -6
  10. data/docs/ContentCollectionVersionsApi.md +6 -6
  11. data/docs/PatchedansibleCollectionRemote.md +3 -1
  12. data/docs/PatchedansibleGitRemote.md +26 -26
  13. data/docs/RemotesCollectionApi.md +2 -2
  14. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  15. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
  16. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
  17. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  18. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +26 -26
  19. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +228 -228
  20. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  21. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  22. data/lib/pulp_ansible_client/models/ansible_role_response.rb +26 -26
  23. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
  24. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +225 -225
  25. data/lib/pulp_ansible_client/version.rb +1 -1
  26. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  27. data/spec/api/remotes_collection_api_spec.rb +1 -1
  28. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  29. data/spec/models/ansible_collection_remote_spec.rb +6 -0
  30. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  31. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  32. data/spec/models/ansible_git_remote_spec.rb +18 -18
  33. data/spec/models/ansible_role_response_spec.rb +5 -5
  34. data/spec/models/ansible_role_spec.rb +3 -3
  35. data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
  36. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  37. metadata +127 -127
@@ -16,24 +16,24 @@ require 'time'
16
16
  module PulpAnsibleClient
17
17
  # A serializer for Role versions.
18
18
  class AnsibleRoleResponse
19
- # 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.
20
- attr_accessor :pulp_last_updated
21
-
22
19
  # Artifact file representing the physical content
23
20
  attr_accessor :artifact
24
21
 
25
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
- attr_accessor :pulp_labels
22
+ attr_accessor :pulp_href
27
23
 
28
24
  # Timestamp of creation.
29
25
  attr_accessor :pulp_created
30
26
 
27
+ # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
28
+ attr_accessor :pulp_labels
29
+
31
30
  # The Pulp Resource Name (PRN).
32
31
  attr_accessor :prn
33
32
 
34
33
  attr_accessor :vuln_report
35
34
 
36
- attr_accessor :pulp_href
35
+ # 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.
36
+ attr_accessor :pulp_last_updated
37
37
 
38
38
  attr_accessor :version
39
39
 
@@ -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_last_updated' => :'pulp_last_updated',
48
47
  :'artifact' => :'artifact',
49
- :'pulp_labels' => :'pulp_labels',
48
+ :'pulp_href' => :'pulp_href',
50
49
  :'pulp_created' => :'pulp_created',
50
+ :'pulp_labels' => :'pulp_labels',
51
51
  :'prn' => :'prn',
52
52
  :'vuln_report' => :'vuln_report',
53
- :'pulp_href' => :'pulp_href',
53
+ :'pulp_last_updated' => :'pulp_last_updated',
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_last_updated' => :'Time',
69
68
  :'artifact' => :'String',
70
- :'pulp_labels' => :'Hash<String, String>',
69
+ :'pulp_href' => :'String',
71
70
  :'pulp_created' => :'Time',
71
+ :'pulp_labels' => :'Hash<String, String>',
72
72
  :'prn' => :'String',
73
73
  :'vuln_report' => :'String',
74
- :'pulp_href' => :'String',
74
+ :'pulp_last_updated' => :'Time',
75
75
  :'version' => :'String',
76
76
  :'name' => :'String',
77
77
  :'namespace' => :'String'
@@ -99,26 +99,26 @@ module PulpAnsibleClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'pulp_last_updated')
103
- self.pulp_last_updated = attributes[:'pulp_last_updated']
104
- end
105
-
106
102
  if attributes.key?(:'artifact')
107
103
  self.artifact = attributes[:'artifact']
108
104
  else
109
105
  self.artifact = nil
110
106
  end
111
107
 
112
- if attributes.key?(:'pulp_labels')
113
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
- self.pulp_labels = value
115
- end
108
+ if attributes.key?(:'pulp_href')
109
+ self.pulp_href = attributes[:'pulp_href']
116
110
  end
117
111
 
118
112
  if attributes.key?(:'pulp_created')
119
113
  self.pulp_created = attributes[:'pulp_created']
120
114
  end
121
115
 
116
+ if attributes.key?(:'pulp_labels')
117
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
+ self.pulp_labels = value
119
+ end
120
+ end
121
+
122
122
  if attributes.key?(:'prn')
123
123
  self.prn = attributes[:'prn']
124
124
  end
@@ -127,8 +127,8 @@ module PulpAnsibleClient
127
127
  self.vuln_report = attributes[:'vuln_report']
128
128
  end
129
129
 
130
- if attributes.key?(:'pulp_href')
131
- self.pulp_href = attributes[:'pulp_href']
130
+ if attributes.key?(:'pulp_last_updated')
131
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
132
132
  end
133
133
 
134
134
  if attributes.key?(:'version')
@@ -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_last_updated == o.pulp_last_updated &&
194
193
  artifact == o.artifact &&
195
- pulp_labels == o.pulp_labels &&
194
+ pulp_href == o.pulp_href &&
196
195
  pulp_created == o.pulp_created &&
196
+ pulp_labels == o.pulp_labels &&
197
197
  prn == o.prn &&
198
198
  vuln_report == o.vuln_report &&
199
- pulp_href == o.pulp_href &&
199
+ pulp_last_updated == o.pulp_last_updated &&
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
- [pulp_last_updated, artifact, pulp_labels, pulp_created, prn, vuln_report, pulp_href, version, name, namespace].hash
214
+ [artifact, pulp_href, pulp_created, pulp_labels, prn, vuln_report, pulp_last_updated, version, name, namespace].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash
@@ -93,6 +93,9 @@ module PulpAnsibleClient
93
93
  # Sync only collections that have a signature
94
94
  attr_accessor :signed_only
95
95
 
96
+ # The number of highest versions of each collection to sync. Unset or null syncs all versions. 1 syncs only the highest version.
97
+ attr_accessor :sync_highest_versions
98
+
96
99
  class EnumAttributeValidator
97
100
  attr_reader :datatype
98
101
  attr_reader :allowable_values
@@ -143,7 +146,8 @@ module PulpAnsibleClient
143
146
  :'auth_url' => :'auth_url',
144
147
  :'token' => :'token',
145
148
  :'sync_dependencies' => :'sync_dependencies',
146
- :'signed_only' => :'signed_only'
149
+ :'signed_only' => :'signed_only',
150
+ :'sync_highest_versions' => :'sync_highest_versions'
147
151
  }
148
152
  end
149
153
 
@@ -180,7 +184,8 @@ module PulpAnsibleClient
180
184
  :'auth_url' => :'String',
181
185
  :'token' => :'String',
182
186
  :'sync_dependencies' => :'Boolean',
183
- :'signed_only' => :'Boolean'
187
+ :'signed_only' => :'Boolean',
188
+ :'sync_highest_versions' => :'Integer'
184
189
  }
185
190
  end
186
191
 
@@ -205,6 +210,7 @@ module PulpAnsibleClient
205
210
  :'requirements_file',
206
211
  :'auth_url',
207
212
  :'token',
213
+ :'sync_highest_versions'
208
214
  ])
209
215
  end
210
216
 
@@ -330,6 +336,10 @@ module PulpAnsibleClient
330
336
  if attributes.key?(:'signed_only')
331
337
  self.signed_only = attributes[:'signed_only']
332
338
  end
339
+
340
+ if attributes.key?(:'sync_highest_versions')
341
+ self.sync_highest_versions = attributes[:'sync_highest_versions']
342
+ end
333
343
  end
334
344
 
335
345
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -417,6 +427,10 @@ module PulpAnsibleClient
417
427
  invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
418
428
  end
419
429
 
430
+ if !@sync_highest_versions.nil? && @sync_highest_versions < 1
431
+ invalid_properties.push('invalid value for "sync_highest_versions", must be greater than or equal to 1.')
432
+ end
433
+
420
434
  invalid_properties
421
435
  end
422
436
 
@@ -444,6 +458,7 @@ module PulpAnsibleClient
444
458
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
445
459
  return false if !@token.nil? && @token.to_s.length > 2000
446
460
  return false if !@token.nil? && @token.to_s.length < 1
461
+ return false if !@sync_highest_versions.nil? && @sync_highest_versions < 1
447
462
  true
448
463
  end
449
464
 
@@ -643,6 +658,16 @@ module PulpAnsibleClient
643
658
  @token = token
644
659
  end
645
660
 
661
+ # Custom attribute writer method with validation
662
+ # @param [Object] sync_highest_versions Value to be assigned
663
+ def sync_highest_versions=(sync_highest_versions)
664
+ if !sync_highest_versions.nil? && sync_highest_versions < 1
665
+ fail ArgumentError, 'invalid value for "sync_highest_versions", must be greater than or equal to 1.'
666
+ end
667
+
668
+ @sync_highest_versions = sync_highest_versions
669
+ end
670
+
646
671
  # Checks equality by comparing each attribute.
647
672
  # @param [Object] Object to be compared
648
673
  def ==(o)
@@ -673,7 +698,8 @@ module PulpAnsibleClient
673
698
  auth_url == o.auth_url &&
674
699
  token == o.token &&
675
700
  sync_dependencies == o.sync_dependencies &&
676
- signed_only == o.signed_only
701
+ signed_only == o.signed_only &&
702
+ sync_highest_versions == o.sync_highest_versions
677
703
  end
678
704
 
679
705
  # @see the `==` method
@@ -685,7 +711,7 @@ module PulpAnsibleClient
685
711
  # Calculates hash code according to all attributes.
686
712
  # @return [Integer] Hash code
687
713
  def hash
688
- [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, token, sync_dependencies, signed_only].hash
714
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, requirements_file, auth_url, token, sync_dependencies, signed_only, sync_highest_versions].hash
689
715
  end
690
716
 
691
717
  # Builds the object from hash