pulp_ansible_client 0.29.9 → 0.30.1

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 (75) 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 +4 -4
  6. data/docs/AnsibleGitRemote.md +26 -26
  7. data/docs/AnsibleGitRemoteResponse.md +24 -24
  8. data/docs/AnsibleRepositorySyncURL.md +1 -1
  9. data/docs/AnsibleRole.md +4 -4
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionSummaryResponse.md +1 -1
  12. data/docs/ContentCollectionDeprecationsApi.md +4 -0
  13. data/docs/ContentCollectionMarksApi.md +4 -0
  14. data/docs/ContentCollectionSignaturesApi.md +4 -0
  15. data/docs/ContentCollectionVersionsApi.md +12 -8
  16. data/docs/ContentNamespacesApi.md +4 -0
  17. data/docs/ContentRolesApi.md +4 -0
  18. data/docs/PatchedansibleCollectionRemote.md +3 -1
  19. data/docs/PatchedansibleGitRemote.md +26 -26
  20. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -0
  21. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -0
  22. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -0
  23. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -0
  24. data/docs/RemotesCollectionApi.md +2 -2
  25. data/docs/RemotesGitApi.md +2 -2
  26. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +6 -0
  27. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +6 -0
  28. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +6 -0
  29. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +18 -12
  30. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +6 -0
  31. data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -0
  32. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -0
  33. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -0
  34. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -0
  35. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -0
  36. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
  37. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
  38. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
  39. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +20 -20
  40. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +227 -227
  41. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +158 -158
  42. data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +1 -1
  43. data/lib/pulp_ansible_client/models/ansible_role.rb +18 -18
  44. data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
  45. data/lib/pulp_ansible_client/models/collection_summary_response.rb +1 -1
  46. data/lib/pulp_ansible_client/models/nested_role.rb +1 -1
  47. data/lib/pulp_ansible_client/models/nested_role_response.rb +1 -1
  48. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
  49. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
  50. data/lib/pulp_ansible_client/models/repository.rb +1 -1
  51. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
  52. data/lib/pulp_ansible_client/models/repository_response.rb +1 -1
  53. data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
  54. data/lib/pulp_ansible_client/version.rb +1 -1
  55. data/spec/api/content_collection_deprecations_api_spec.rb +2 -0
  56. data/spec/api/content_collection_marks_api_spec.rb +2 -0
  57. data/spec/api/content_collection_signatures_api_spec.rb +2 -0
  58. data/spec/api/content_collection_versions_api_spec.rb +6 -4
  59. data/spec/api/content_namespaces_api_spec.rb +2 -0
  60. data/spec/api/content_roles_api_spec.rb +2 -0
  61. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -0
  62. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -0
  63. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -0
  64. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -0
  65. data/spec/api/remotes_collection_api_spec.rb +1 -1
  66. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  67. data/spec/models/ansible_collection_remote_spec.rb +6 -0
  68. data/spec/models/ansible_collection_version_response_spec.rb +6 -6
  69. data/spec/models/ansible_git_remote_response_spec.rb +20 -20
  70. data/spec/models/ansible_git_remote_spec.rb +18 -18
  71. data/spec/models/ansible_role_response_spec.rb +6 -6
  72. data/spec/models/ansible_role_spec.rb +4 -4
  73. data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
  74. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  75. metadata +125 -125
@@ -19,6 +19,11 @@ module PulpAnsibleClient
19
19
  # Artifact file representing the physical content
20
20
  attr_accessor :artifact
21
21
 
22
+ # The Pulp Resource Name (PRN).
23
+ attr_accessor :prn
24
+
25
+ attr_accessor :pulp_href
26
+
22
27
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
28
  attr_accessor :pulp_labels
24
29
 
@@ -30,11 +35,6 @@ module PulpAnsibleClient
30
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.
31
36
  attr_accessor :pulp_last_updated
32
37
 
33
- # The Pulp Resource Name (PRN).
34
- attr_accessor :prn
35
-
36
- attr_accessor :pulp_href
37
-
38
38
  attr_accessor :version
39
39
 
40
40
  attr_accessor :name
@@ -45,12 +45,12 @@ module PulpAnsibleClient
45
45
  def self.attribute_map
46
46
  {
47
47
  :'artifact' => :'artifact',
48
+ :'prn' => :'prn',
49
+ :'pulp_href' => :'pulp_href',
48
50
  :'pulp_labels' => :'pulp_labels',
49
51
  :'pulp_created' => :'pulp_created',
50
52
  :'vuln_report' => :'vuln_report',
51
53
  :'pulp_last_updated' => :'pulp_last_updated',
52
- :'prn' => :'prn',
53
- :'pulp_href' => :'pulp_href',
54
54
  :'version' => :'version',
55
55
  :'name' => :'name',
56
56
  :'namespace' => :'namespace'
@@ -66,12 +66,12 @@ module PulpAnsibleClient
66
66
  def self.openapi_types
67
67
  {
68
68
  :'artifact' => :'String',
69
+ :'prn' => :'String',
70
+ :'pulp_href' => :'String',
69
71
  :'pulp_labels' => :'Hash<String, String>',
70
72
  :'pulp_created' => :'Time',
71
73
  :'vuln_report' => :'String',
72
74
  :'pulp_last_updated' => :'Time',
73
- :'prn' => :'String',
74
- :'pulp_href' => :'String',
75
75
  :'version' => :'String',
76
76
  :'name' => :'String',
77
77
  :'namespace' => :'String'
@@ -105,6 +105,14 @@ module PulpAnsibleClient
105
105
  self.artifact = nil
106
106
  end
107
107
 
108
+ if attributes.key?(:'prn')
109
+ self.prn = attributes[:'prn']
110
+ end
111
+
112
+ if attributes.key?(:'pulp_href')
113
+ self.pulp_href = attributes[:'pulp_href']
114
+ end
115
+
108
116
  if attributes.key?(:'pulp_labels')
109
117
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
118
  self.pulp_labels = value
@@ -123,14 +131,6 @@ module PulpAnsibleClient
123
131
  self.pulp_last_updated = attributes[:'pulp_last_updated']
124
132
  end
125
133
 
126
- if attributes.key?(:'prn')
127
- self.prn = attributes[:'prn']
128
- end
129
-
130
- if attributes.key?(:'pulp_href')
131
- self.pulp_href = attributes[:'pulp_href']
132
- end
133
-
134
134
  if attributes.key?(:'version')
135
135
  self.version = attributes[:'version']
136
136
  else
@@ -191,12 +191,12 @@ module PulpAnsibleClient
191
191
  return true if self.equal?(o)
192
192
  self.class == o.class &&
193
193
  artifact == o.artifact &&
194
+ prn == o.prn &&
195
+ pulp_href == o.pulp_href &&
194
196
  pulp_labels == o.pulp_labels &&
195
197
  pulp_created == o.pulp_created &&
196
198
  vuln_report == o.vuln_report &&
197
199
  pulp_last_updated == o.pulp_last_updated &&
198
- prn == o.prn &&
199
- pulp_href == o.pulp_href &&
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
- [artifact, pulp_labels, pulp_created, vuln_report, pulp_last_updated, prn, pulp_href, version, name, namespace].hash
214
+ [artifact, prn, pulp_href, pulp_labels, pulp_created, vuln_report, pulp_last_updated, version, name, namespace].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash
@@ -33,7 +33,7 @@ module PulpAnsibleClient
33
33
  # Timestamp of creation.
34
34
  attr_accessor :pulp_created
35
35
 
36
- # A JSON field with data about the contents.
36
+ # A JSON field with data about the contents. (Deliberately left empty in summary view.)
37
37
  attr_accessor :contents
38
38
 
39
39
  # A dict declaring Collections that this collection requires to be installed for it to be usable.
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpAnsibleClient
17
- # Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.
17
+ # Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
18
18
  class NestedRole
19
19
  attr_accessor :users
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpAnsibleClient
17
- # Serializer to add/remove object roles to/from users/groups. This is used in conjunction with ``pulpcore.app.viewsets.base.RolesMixin`` and requires the underlying object to be passed as ``content_object`` in the context.
17
+ # Serializer to add/remove object roles to/from users/groups. This is used in conjunction with `pulpcore.app.viewsets.base.RolesMixin` and requires the underlying object to be passed as `content_object` in the context.
18
18
  class NestedRoleResponse
19
19
  attr_accessor :users
20
20
 
@@ -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