pulpcore_client 3.19.1 → 3.20.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 (219) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +93 -16
  3. data/docs/AccessPoliciesApi.md +2 -2
  4. data/docs/AccessPolicy.md +3 -1
  5. data/docs/AccessPolicyResponse.md +3 -1
  6. data/docs/AcsApi.md +417 -0
  7. data/docs/AlternateContentSource.md +23 -0
  8. data/docs/AlternateContentSourceResponse.md +27 -0
  9. data/docs/ArtifactsApi.md +2 -2
  10. data/docs/ContentApi.md +117 -3
  11. data/docs/ContentGuard.md +19 -0
  12. data/docs/ContentguardsApi.md +282 -3
  13. data/docs/ContentguardsContentRedirectApi.md +230 -2
  14. data/docs/ContentguardsRbacApi.md +2 -2
  15. data/docs/Distribution.md +25 -0
  16. data/docs/DistributionsApi.md +283 -3
  17. data/docs/Export.md +17 -0
  18. data/docs/ExportResponse.md +25 -0
  19. data/docs/Exporter.md +17 -0
  20. data/docs/ExporterResponse.md +21 -0
  21. data/docs/ExportersApi.md +362 -0
  22. data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
  23. data/docs/ExportersFilesystemApi.md +2 -2
  24. data/docs/ExportersFilesystemExportsApi.md +0 -2
  25. data/docs/ExportersPulpApi.md +2 -2
  26. data/docs/ExportersPulpExportsApi.md +0 -2
  27. data/docs/GroupRole.md +1 -1
  28. data/docs/GroupRoleResponse.md +6 -2
  29. data/docs/GroupsApi.md +2 -2
  30. data/docs/GroupsRolesApi.md +2 -2
  31. data/docs/GroupsUsersApi.md +0 -2
  32. data/docs/Import.md +19 -0
  33. data/docs/Importer.md +17 -0
  34. data/docs/ImporterResponse.md +21 -0
  35. data/docs/ImportersApi.md +361 -0
  36. data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
  37. data/docs/ImportersPulpApi.md +2 -2
  38. data/docs/ImportersPulpImportsApi.md +0 -2
  39. data/docs/MultipleArtifactContent.md +17 -0
  40. data/docs/OrphansCleanup.md +1 -1
  41. data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
  42. data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
  43. data/docs/PaginatedExporterResponseList.md +23 -0
  44. data/docs/PaginatedImporterResponseList.md +23 -0
  45. data/docs/PaginatedRemoteResponseList.md +23 -0
  46. data/docs/PatchedAccessPolicy.md +3 -1
  47. data/docs/PatchedAlternateContentSource.md +23 -0
  48. data/docs/PatchedContentGuard.md +19 -0
  49. data/docs/PatchedDistribution.md +25 -0
  50. data/docs/PatchedExporter.md +17 -0
  51. data/docs/PatchedImporter.md +17 -0
  52. data/docs/PatchedRemote.md +57 -0
  53. data/docs/PatchedRepository.md +25 -0
  54. data/docs/PolicyEnum.md +16 -0
  55. data/docs/PublicationsApi.md +117 -2
  56. data/docs/Remote.md +57 -0
  57. data/docs/RemoteResponse.md +53 -0
  58. data/docs/RemotesApi.md +376 -0
  59. data/docs/RepositoriesApi.md +283 -3
  60. data/docs/RepositoriesVersionsApi.md +271 -0
  61. data/docs/Repository.md +25 -0
  62. data/docs/RepositoryVersionsApi.md +2 -0
  63. data/docs/RolesApi.md +6 -2
  64. data/docs/SigningServicesApi.md +0 -2
  65. data/docs/TaskGroupsApi.md +2 -2
  66. data/docs/TaskSchedulesApi.md +2 -2
  67. data/docs/TasksApi.md +2 -2
  68. data/docs/UploadsApi.md +0 -2
  69. data/docs/UserRole.md +1 -1
  70. data/docs/UserRoleResponse.md +6 -2
  71. data/docs/UsersApi.md +2 -61
  72. data/docs/UsersRolesApi.md +2 -2
  73. data/docs/VersionResponse.md +3 -1
  74. data/docs/WorkersApi.md +2 -2
  75. data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
  76. data/lib/pulpcore_client/api/acs_api.rb +514 -0
  77. data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
  78. data/lib/pulpcore_client/api/content_api.rb +141 -5
  79. data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
  80. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
  81. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
  82. data/lib/pulpcore_client/api/distributions_api.rb +343 -5
  83. data/lib/pulpcore_client/api/exporters_api.rb +446 -0
  84. data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
  85. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
  86. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
  87. data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
  88. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
  89. data/lib/pulpcore_client/api/groups_api.rb +7 -3
  90. data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
  91. data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
  92. data/lib/pulpcore_client/api/importers_api.rb +444 -0
  93. data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
  94. data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
  95. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
  96. data/lib/pulpcore_client/api/publications_api.rb +138 -3
  97. data/lib/pulpcore_client/api/remotes_api.rb +467 -0
  98. data/lib/pulpcore_client/api/repositories_api.rb +343 -5
  99. data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
  100. data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
  101. data/lib/pulpcore_client/api/roles_api.rb +13 -3
  102. data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
  103. data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
  104. data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
  105. data/lib/pulpcore_client/api/tasks_api.rb +7 -3
  106. data/lib/pulpcore_client/api/uploads_api.rb +0 -3
  107. data/lib/pulpcore_client/api/users_api.rb +7 -69
  108. data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
  109. data/lib/pulpcore_client/api/workers_api.rb +7 -3
  110. data/lib/pulpcore_client/models/access_policy.rb +14 -4
  111. data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
  112. data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
  113. data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
  114. data/lib/pulpcore_client/models/content_guard.rb +258 -0
  115. data/lib/pulpcore_client/models/distribution.rb +297 -0
  116. data/lib/pulpcore_client/models/export.rb +209 -0
  117. data/lib/pulpcore_client/models/export_response.rb +250 -0
  118. data/lib/pulpcore_client/models/exporter.rb +232 -0
  119. data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
  120. data/lib/pulpcore_client/models/group_role.rb +1 -1
  121. data/lib/pulpcore_client/models/group_role_response.rb +26 -6
  122. data/lib/pulpcore_client/models/import.rb +228 -0
  123. data/lib/pulpcore_client/models/importer.rb +232 -0
  124. data/lib/pulpcore_client/models/importer_response.rb +232 -0
  125. data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
  126. data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
  127. data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
  128. data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
  129. data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
  130. data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
  131. data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
  132. data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
  133. data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
  134. data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
  135. data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
  136. data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
  137. data/lib/pulpcore_client/models/patched_importer.rb +223 -0
  138. data/lib/pulpcore_client/models/patched_remote.rb +649 -0
  139. data/lib/pulpcore_client/models/patched_repository.rb +295 -0
  140. data/lib/pulpcore_client/models/policy_enum.rb +36 -0
  141. data/lib/pulpcore_client/models/remote.rb +667 -0
  142. data/lib/pulpcore_client/models/remote_response.rb +483 -0
  143. data/lib/pulpcore_client/models/repository.rb +304 -0
  144. data/lib/pulpcore_client/models/user_role.rb +1 -1
  145. data/lib/pulpcore_client/models/user_role_response.rb +26 -6
  146. data/lib/pulpcore_client/models/version_response.rb +19 -4
  147. data/lib/pulpcore_client/version.rb +1 -1
  148. data/lib/pulpcore_client.rb +35 -4
  149. data/spec/api/access_policies_api_spec.rb +1 -1
  150. data/spec/api/acs_api_spec.rb +132 -0
  151. data/spec/api/artifacts_api_spec.rb +1 -1
  152. data/spec/api/content_api_spec.rb +28 -2
  153. data/spec/api/contentguards_api_spec.rb +66 -2
  154. data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
  155. data/spec/api/contentguards_rbac_api_spec.rb +1 -1
  156. data/spec/api/distributions_api_spec.rb +66 -2
  157. data/spec/api/exporters_api_spec.rb +120 -0
  158. data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
  159. data/spec/api/exporters_filesystem_api_spec.rb +1 -1
  160. data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
  161. data/spec/api/exporters_pulp_api_spec.rb +1 -1
  162. data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
  163. data/spec/api/groups_api_spec.rb +1 -1
  164. data/spec/api/groups_roles_api_spec.rb +1 -1
  165. data/spec/api/groups_users_api_spec.rb +0 -1
  166. data/spec/api/importers_api_spec.rb +120 -0
  167. data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
  168. data/spec/api/importers_pulp_api_spec.rb +1 -1
  169. data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
  170. data/spec/api/publications_api_spec.rb +28 -1
  171. data/spec/api/remotes_api_spec.rb +127 -0
  172. data/spec/api/repositories_api_spec.rb +66 -2
  173. data/spec/api/repositories_versions_api_spec.rb +104 -0
  174. data/spec/api/repository_versions_api_spec.rb +1 -0
  175. data/spec/api/roles_api_spec.rb +3 -1
  176. data/spec/api/signing_services_api_spec.rb +0 -1
  177. data/spec/api/task_groups_api_spec.rb +1 -1
  178. data/spec/api/task_schedules_api_spec.rb +1 -1
  179. data/spec/api/tasks_api_spec.rb +1 -1
  180. data/spec/api/uploads_api_spec.rb +0 -1
  181. data/spec/api/users_api_spec.rb +1 -14
  182. data/spec/api/users_roles_api_spec.rb +1 -1
  183. data/spec/api/workers_api_spec.rb +1 -1
  184. data/spec/models/access_policy_response_spec.rb +6 -0
  185. data/spec/models/access_policy_spec.rb +6 -0
  186. data/spec/models/alternate_content_source_response_spec.rb +71 -0
  187. data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
  188. data/spec/models/content_guard_spec.rb +47 -0
  189. data/spec/models/distribution_spec.rb +65 -0
  190. data/spec/models/export_response_spec.rb +65 -0
  191. data/spec/models/export_spec.rb +41 -0
  192. data/spec/models/exporter_response_spec.rb +53 -0
  193. data/spec/models/exporter_spec.rb +41 -0
  194. data/spec/models/group_role_response_spec.rb +12 -0
  195. data/spec/models/import_spec.rb +47 -0
  196. data/spec/models/importer_response_spec.rb +53 -0
  197. data/spec/models/importer_spec.rb +41 -0
  198. data/spec/models/multiple_artifact_content_spec.rb +41 -0
  199. data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
  200. data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
  201. data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
  202. data/spec/models/paginated_importer_response_list_spec.rb +59 -0
  203. data/spec/models/paginated_remote_response_list_spec.rb +59 -0
  204. data/spec/models/patched_access_policy_spec.rb +6 -0
  205. data/spec/models/patched_alternate_content_source_spec.rb +59 -0
  206. data/spec/models/patched_content_guard_spec.rb +47 -0
  207. data/spec/models/patched_distribution_spec.rb +65 -0
  208. data/spec/models/patched_exporter_spec.rb +41 -0
  209. data/spec/models/patched_importer_spec.rb +41 -0
  210. data/spec/models/patched_remote_spec.rb +161 -0
  211. data/spec/models/patched_repository_spec.rb +65 -0
  212. data/spec/models/policy_enum_spec.rb +35 -0
  213. data/spec/models/remote_response_spec.rb +149 -0
  214. data/spec/models/remote_spec.rb +161 -0
  215. data/spec/models/repository_spec.rb +65 -0
  216. data/spec/models/user_role_response_spec.rb +12 -0
  217. data/spec/models/version_response_spec.rb +6 -0
  218. metadata +263 -139
  219. data/docs/PermissionResponse.md +0 -23
@@ -0,0 +1,304 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class Repository
18
+ attr_accessor :pulp_labels
19
+
20
+ # A unique name for this repository.
21
+ attr_accessor :name
22
+
23
+ # An optional description.
24
+ attr_accessor :description
25
+
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retain_repo_versions
28
+
29
+ # An optional remote to use by default when syncing.
30
+ attr_accessor :remote
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'pulp_labels' => :'pulp_labels',
36
+ :'name' => :'name',
37
+ :'description' => :'description',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
39
+ :'remote' => :'remote'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'pulp_labels' => :'Object',
47
+ :'name' => :'String',
48
+ :'description' => :'String',
49
+ :'retain_repo_versions' => :'Integer',
50
+ :'remote' => :'String'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ :'description',
58
+ :'retain_repo_versions',
59
+ :'remote'
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Repository` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!self.class.attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Repository`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'pulp_labels')
79
+ self.pulp_labels = attributes[:'pulp_labels']
80
+ end
81
+
82
+ if attributes.key?(:'name')
83
+ self.name = attributes[:'name']
84
+ end
85
+
86
+ if attributes.key?(:'description')
87
+ self.description = attributes[:'description']
88
+ end
89
+
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
92
+ end
93
+
94
+ if attributes.key?(:'remote')
95
+ self.remote = attributes[:'remote']
96
+ end
97
+ end
98
+
99
+ # Show invalid properties with the reasons. Usually used together with valid?
100
+ # @return Array for valid properties with the reasons
101
+ def list_invalid_properties
102
+ invalid_properties = Array.new
103
+ if @name.nil?
104
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
105
+ end
106
+
107
+ if @name.to_s.length < 1
108
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@description.nil? && @description.to_s.length < 1
112
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
113
+ end
114
+
115
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
116
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
117
+ end
118
+
119
+ invalid_properties
120
+ end
121
+
122
+ # Check to see if the all the properties in the model are valid
123
+ # @return true if the model is valid
124
+ def valid?
125
+ return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
+ true
130
+ end
131
+
132
+ # Custom attribute writer method with validation
133
+ # @param [Object] name Value to be assigned
134
+ def name=(name)
135
+ if name.nil?
136
+ fail ArgumentError, 'name cannot be nil'
137
+ end
138
+
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
141
+ end
142
+
143
+ @name = name
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] description Value to be assigned
148
+ def description=(description)
149
+ if !description.nil? && description.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @description = description
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] retain_repo_versions Value to be assigned
158
+ def retain_repo_versions=(retain_repo_versions)
159
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
160
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
161
+ end
162
+
163
+ @retain_repo_versions = retain_repo_versions
164
+ end
165
+
166
+ # Checks equality by comparing each attribute.
167
+ # @param [Object] Object to be compared
168
+ def ==(o)
169
+ return true if self.equal?(o)
170
+ self.class == o.class &&
171
+ pulp_labels == o.pulp_labels &&
172
+ name == o.name &&
173
+ description == o.description &&
174
+ retain_repo_versions == o.retain_repo_versions &&
175
+ remote == o.remote
176
+ end
177
+
178
+ # @see the `==` method
179
+ # @param [Object] Object to be compared
180
+ def eql?(o)
181
+ self == o
182
+ end
183
+
184
+ # Calculates hash code according to all attributes.
185
+ # @return [Integer] Hash code
186
+ def hash
187
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
188
+ end
189
+
190
+ # Builds the object from hash
191
+ # @param [Hash] attributes Model attributes in the form of hash
192
+ # @return [Object] Returns the model itself
193
+ def self.build_from_hash(attributes)
194
+ new.build_from_hash(attributes)
195
+ end
196
+
197
+ # Builds the object from hash
198
+ # @param [Hash] attributes Model attributes in the form of hash
199
+ # @return [Object] Returns the model itself
200
+ def build_from_hash(attributes)
201
+ return nil unless attributes.is_a?(Hash)
202
+ self.class.openapi_types.each_pair do |key, type|
203
+ if type =~ /\AArray<(.*)>/i
204
+ # check to ensure the input is an array given that the attribute
205
+ # is documented as an array but the input is not
206
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
207
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ end
209
+ elsif !attributes[self.class.attribute_map[key]].nil?
210
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
211
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
212
+ end
213
+
214
+ self
215
+ end
216
+
217
+ # Deserializes the data based on type
218
+ # @param string type Data type
219
+ # @param string value Value to be deserialized
220
+ # @return [Object] Deserialized data
221
+ def _deserialize(type, value)
222
+ case type.to_sym
223
+ when :DateTime
224
+ DateTime.parse(value)
225
+ when :Date
226
+ Date.parse(value)
227
+ when :String
228
+ value.to_s
229
+ when :Integer
230
+ value.to_i
231
+ when :Float
232
+ value.to_f
233
+ when :Boolean
234
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
235
+ true
236
+ else
237
+ false
238
+ end
239
+ when :Object
240
+ # generic object (usually a Hash), return directly
241
+ value
242
+ when /\AArray<(?<inner_type>.+)>\z/
243
+ inner_type = Regexp.last_match[:inner_type]
244
+ value.map { |v| _deserialize(inner_type, v) }
245
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
246
+ k_type = Regexp.last_match[:k_type]
247
+ v_type = Regexp.last_match[:v_type]
248
+ {}.tap do |hash|
249
+ value.each do |k, v|
250
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
251
+ end
252
+ end
253
+ else # model
254
+ PulpcoreClient.const_get(type).build_from_hash(value)
255
+ end
256
+ end
257
+
258
+ # Returns the string representation of the object
259
+ # @return [String] String presentation of the object
260
+ def to_s
261
+ to_hash.to_s
262
+ end
263
+
264
+ # to_body is an alias to to_hash (backward compatibility)
265
+ # @return [Hash] Returns the object in the form of hash
266
+ def to_body
267
+ to_hash
268
+ end
269
+
270
+ # Returns the object in the form of hash
271
+ # @return [Hash] Returns the object in the form of hash
272
+ def to_hash
273
+ hash = {}
274
+ self.class.attribute_map.each_pair do |attr, param|
275
+ value = self.send(attr)
276
+ if value.nil?
277
+ is_nullable = self.class.openapi_nullable.include?(attr)
278
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
279
+ end
280
+
281
+ hash[param] = _to_hash(value)
282
+ end
283
+ hash
284
+ end
285
+
286
+ # Outputs non-array value in the form of hash
287
+ # For object, use to_hash. Otherwise, just return the value
288
+ # @param [Object] value Any valid value
289
+ # @return [Hash] Returns the value in the form of hash
290
+ def _to_hash(value)
291
+ if value.is_a?(Array)
292
+ value.compact.map { |v| _to_hash(v) }
293
+ elsif value.is_a?(Hash)
294
+ {}.tap do |hash|
295
+ value.each { |k, v| hash[k] = _to_hash(v) }
296
+ end
297
+ elsif value.respond_to? :to_hash
298
+ value.to_hash
299
+ else
300
+ value
301
+ end
302
+ end
303
+ end
304
+ end
@@ -17,7 +17,7 @@ module PulpcoreClient
17
17
  class UserRole
18
18
  attr_accessor :role
19
19
 
20
- # Optional pulp_href of the object the permissions are to be asserted on.
20
+ # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
21
21
  attr_accessor :content_object
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -22,16 +22,22 @@ module PulpcoreClient
22
22
 
23
23
  attr_accessor :role
24
24
 
25
- # Optional pulp_href of the object the permissions are to be asserted on.
25
+ # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level.
26
26
  attr_accessor :content_object
27
27
 
28
+ attr_accessor :description
29
+
30
+ attr_accessor :permissions
31
+
28
32
  # Attribute mapping from ruby-style variable name to JSON key.
29
33
  def self.attribute_map
30
34
  {
31
35
  :'pulp_href' => :'pulp_href',
32
36
  :'pulp_created' => :'pulp_created',
33
37
  :'role' => :'role',
34
- :'content_object' => :'content_object'
38
+ :'content_object' => :'content_object',
39
+ :'description' => :'description',
40
+ :'permissions' => :'permissions'
35
41
  }
36
42
  end
37
43
 
@@ -41,14 +47,16 @@ module PulpcoreClient
41
47
  :'pulp_href' => :'String',
42
48
  :'pulp_created' => :'DateTime',
43
49
  :'role' => :'String',
44
- :'content_object' => :'String'
50
+ :'content_object' => :'String',
51
+ :'description' => :'String',
52
+ :'permissions' => :'Array<String>'
45
53
  }
46
54
  end
47
55
 
48
56
  # List of attributes with nullable: true
49
57
  def self.openapi_nullable
50
58
  Set.new([
51
- :'content_object'
59
+ :'content_object',
52
60
  ])
53
61
  end
54
62
 
@@ -82,6 +90,16 @@ module PulpcoreClient
82
90
  if attributes.key?(:'content_object')
83
91
  self.content_object = attributes[:'content_object']
84
92
  end
93
+
94
+ if attributes.key?(:'description')
95
+ self.description = attributes[:'description']
96
+ end
97
+
98
+ if attributes.key?(:'permissions')
99
+ if (value = attributes[:'permissions']).is_a?(Array)
100
+ self.permissions = value
101
+ end
102
+ end
85
103
  end
86
104
 
87
105
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,7 +128,9 @@ module PulpcoreClient
110
128
  pulp_href == o.pulp_href &&
111
129
  pulp_created == o.pulp_created &&
112
130
  role == o.role &&
113
- content_object == o.content_object
131
+ content_object == o.content_object &&
132
+ description == o.description &&
133
+ permissions == o.permissions
114
134
  end
115
135
 
116
136
  # @see the `==` method
@@ -122,7 +142,7 @@ module PulpcoreClient
122
142
  # Calculates hash code according to all attributes.
123
143
  # @return [Integer] Hash code
124
144
  def hash
125
- [pulp_href, pulp_created, role, content_object].hash
145
+ [pulp_href, pulp_created, role, content_object, description, permissions].hash
126
146
  end
127
147
 
128
148
  # Builds the object from hash
@@ -21,11 +21,15 @@ module PulpcoreClient
21
21
  # Version of the component (e.g. 3.0.0)
22
22
  attr_accessor :version
23
23
 
24
+ # Python package name providing the component
25
+ attr_accessor :package
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'component' => :'component',
28
- :'version' => :'version'
31
+ :'version' => :'version',
32
+ :'package' => :'package'
29
33
  }
30
34
  end
31
35
 
@@ -33,7 +37,8 @@ module PulpcoreClient
33
37
  def self.openapi_types
34
38
  {
35
39
  :'component' => :'String',
36
- :'version' => :'String'
40
+ :'version' => :'String',
41
+ :'package' => :'String'
37
42
  }
38
43
  end
39
44
 
@@ -65,6 +70,10 @@ module PulpcoreClient
65
70
  if attributes.key?(:'version')
66
71
  self.version = attributes[:'version']
67
72
  end
73
+
74
+ if attributes.key?(:'package')
75
+ self.package = attributes[:'package']
76
+ end
68
77
  end
69
78
 
70
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -79,6 +88,10 @@ module PulpcoreClient
79
88
  invalid_properties.push('invalid value for "version", version cannot be nil.')
80
89
  end
81
90
 
91
+ if @package.nil?
92
+ invalid_properties.push('invalid value for "package", package cannot be nil.')
93
+ end
94
+
82
95
  invalid_properties
83
96
  end
84
97
 
@@ -87,6 +100,7 @@ module PulpcoreClient
87
100
  def valid?
88
101
  return false if @component.nil?
89
102
  return false if @version.nil?
103
+ return false if @package.nil?
90
104
  true
91
105
  end
92
106
 
@@ -96,7 +110,8 @@ module PulpcoreClient
96
110
  return true if self.equal?(o)
97
111
  self.class == o.class &&
98
112
  component == o.component &&
99
- version == o.version
113
+ version == o.version &&
114
+ package == o.package
100
115
  end
101
116
 
102
117
  # @see the `==` method
@@ -108,7 +123,7 @@ module PulpcoreClient
108
123
  # Calculates hash code according to all attributes.
109
124
  # @return [Integer] Hash code
110
125
  def hash
111
- [component, version].hash
126
+ [component, version, package].hash
112
127
  end
113
128
 
114
129
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.19.1'
14
+ VERSION = '3.20.0'
15
15
  end
@@ -19,17 +19,25 @@ require 'pulpcore_client/configuration'
19
19
  # Models
20
20
  require 'pulpcore_client/models/access_policy'
21
21
  require 'pulpcore_client/models/access_policy_response'
22
+ require 'pulpcore_client/models/alternate_content_source'
23
+ require 'pulpcore_client/models/alternate_content_source_response'
22
24
  require 'pulpcore_client/models/artifact'
23
25
  require 'pulpcore_client/models/artifact_response'
24
26
  require 'pulpcore_client/models/async_operation_response'
25
27
  require 'pulpcore_client/models/content_app_status_response'
28
+ require 'pulpcore_client/models/content_guard'
26
29
  require 'pulpcore_client/models/content_guard_response'
27
30
  require 'pulpcore_client/models/content_redirect_content_guard'
28
31
  require 'pulpcore_client/models/content_redirect_content_guard_response'
29
32
  require 'pulpcore_client/models/content_summary_response'
30
33
  require 'pulpcore_client/models/database_connection_response'
34
+ require 'pulpcore_client/models/distribution'
31
35
  require 'pulpcore_client/models/distribution_response'
32
36
  require 'pulpcore_client/models/evaluation_response'
37
+ require 'pulpcore_client/models/export'
38
+ require 'pulpcore_client/models/export_response'
39
+ require 'pulpcore_client/models/exporter'
40
+ require 'pulpcore_client/models/exporter_response'
33
41
  require 'pulpcore_client/models/filesystem_export'
34
42
  require 'pulpcore_client/models/filesystem_export_response'
35
43
  require 'pulpcore_client/models/filesystem_exporter'
@@ -41,9 +49,13 @@ require 'pulpcore_client/models/group_role'
41
49
  require 'pulpcore_client/models/group_role_response'
42
50
  require 'pulpcore_client/models/group_user'
43
51
  require 'pulpcore_client/models/group_user_response'
52
+ require 'pulpcore_client/models/import'
44
53
  require 'pulpcore_client/models/import_response'
54
+ require 'pulpcore_client/models/importer'
55
+ require 'pulpcore_client/models/importer_response'
45
56
  require 'pulpcore_client/models/method_enum'
46
57
  require 'pulpcore_client/models/minimal_task_response'
58
+ require 'pulpcore_client/models/multiple_artifact_content'
47
59
  require 'pulpcore_client/models/multiple_artifact_content_response'
48
60
  require 'pulpcore_client/models/my_permissions_response'
49
61
  require 'pulpcore_client/models/nested_role'
@@ -51,23 +63,27 @@ require 'pulpcore_client/models/nested_role_response'
51
63
  require 'pulpcore_client/models/object_roles_response'
52
64
  require 'pulpcore_client/models/orphans_cleanup'
53
65
  require 'pulpcore_client/models/paginated_access_policy_response_list'
66
+ require 'pulpcore_client/models/paginated_alternate_content_source_response_list'
54
67
  require 'pulpcore_client/models/paginated_artifact_response_list'
55
68
  require 'pulpcore_client/models/paginated_content_guard_response_list'
56
69
  require 'pulpcore_client/models/paginated_content_redirect_content_guard_response_list'
57
70
  require 'pulpcore_client/models/paginated_distribution_response_list'
71
+ require 'pulpcore_client/models/paginated_export_response_list'
72
+ require 'pulpcore_client/models/paginated_exporter_response_list'
58
73
  require 'pulpcore_client/models/paginated_filesystem_export_response_list'
59
74
  require 'pulpcore_client/models/paginated_filesystem_exporter_response_list'
60
75
  require 'pulpcore_client/models/paginated_group_response_list'
61
76
  require 'pulpcore_client/models/paginated_group_role_response_list'
62
77
  require 'pulpcore_client/models/paginated_group_user_response_list'
63
78
  require 'pulpcore_client/models/paginated_import_response_list'
79
+ require 'pulpcore_client/models/paginated_importer_response_list'
64
80
  require 'pulpcore_client/models/paginated_multiple_artifact_content_response_list'
65
- require 'pulpcore_client/models/paginated_permission_response_list'
66
81
  require 'pulpcore_client/models/paginated_publication_response_list'
67
82
  require 'pulpcore_client/models/paginated_pulp_export_response_list'
68
83
  require 'pulpcore_client/models/paginated_pulp_exporter_response_list'
69
84
  require 'pulpcore_client/models/paginated_pulp_importer_response_list'
70
85
  require 'pulpcore_client/models/paginated_rbac_content_guard_response_list'
86
+ require 'pulpcore_client/models/paginated_remote_response_list'
71
87
  require 'pulpcore_client/models/paginated_repository_response_list'
72
88
  require 'pulpcore_client/models/paginated_repository_version_response_list'
73
89
  require 'pulpcore_client/models/paginated_role_response_list'
@@ -80,16 +96,23 @@ require 'pulpcore_client/models/paginated_user_response_list'
80
96
  require 'pulpcore_client/models/paginated_user_role_response_list'
81
97
  require 'pulpcore_client/models/paginated_worker_response_list'
82
98
  require 'pulpcore_client/models/patched_access_policy'
99
+ require 'pulpcore_client/models/patched_alternate_content_source'
100
+ require 'pulpcore_client/models/patched_content_guard'
83
101
  require 'pulpcore_client/models/patched_content_redirect_content_guard'
102
+ require 'pulpcore_client/models/patched_distribution'
103
+ require 'pulpcore_client/models/patched_exporter'
84
104
  require 'pulpcore_client/models/patched_filesystem_exporter'
85
105
  require 'pulpcore_client/models/patched_group'
106
+ require 'pulpcore_client/models/patched_importer'
86
107
  require 'pulpcore_client/models/patched_pulp_exporter'
87
108
  require 'pulpcore_client/models/patched_pulp_importer'
88
109
  require 'pulpcore_client/models/patched_rbac_content_guard'
110
+ require 'pulpcore_client/models/patched_remote'
111
+ require 'pulpcore_client/models/patched_repository'
89
112
  require 'pulpcore_client/models/patched_role'
90
113
  require 'pulpcore_client/models/patched_task_cancel'
91
114
  require 'pulpcore_client/models/patched_user'
92
- require 'pulpcore_client/models/permission_response'
115
+ require 'pulpcore_client/models/policy_enum'
93
116
  require 'pulpcore_client/models/progress_report_response'
94
117
  require 'pulpcore_client/models/publication_response'
95
118
  require 'pulpcore_client/models/pulp_export'
@@ -106,7 +129,10 @@ require 'pulpcore_client/models/rbac_content_guard'
106
129
  require 'pulpcore_client/models/rbac_content_guard_response'
107
130
  require 'pulpcore_client/models/reclaim_space'
108
131
  require 'pulpcore_client/models/redis_connection_response'
132
+ require 'pulpcore_client/models/remote'
133
+ require 'pulpcore_client/models/remote_response'
109
134
  require 'pulpcore_client/models/repair'
135
+ require 'pulpcore_client/models/repository'
110
136
  require 'pulpcore_client/models/repository_response'
111
137
  require 'pulpcore_client/models/repository_version_response'
112
138
  require 'pulpcore_client/models/role'
@@ -136,30 +162,35 @@ require 'pulpcore_client/models/worker_response'
136
162
 
137
163
  # APIs
138
164
  require 'pulpcore_client/api/access_policies_api'
165
+ require 'pulpcore_client/api/acs_api'
139
166
  require 'pulpcore_client/api/artifacts_api'
140
167
  require 'pulpcore_client/api/content_api'
141
168
  require 'pulpcore_client/api/contentguards_api'
142
169
  require 'pulpcore_client/api/contentguards_content_redirect_api'
143
170
  require 'pulpcore_client/api/contentguards_rbac_api'
144
171
  require 'pulpcore_client/api/distributions_api'
172
+ require 'pulpcore_client/api/exporters_api'
173
+ require 'pulpcore_client/api/exporters_exports_api'
145
174
  require 'pulpcore_client/api/exporters_filesystem_api'
146
175
  require 'pulpcore_client/api/exporters_filesystem_exports_api'
147
176
  require 'pulpcore_client/api/exporters_pulp_api'
148
177
  require 'pulpcore_client/api/exporters_pulp_exports_api'
149
178
  require 'pulpcore_client/api/groups_api'
150
- require 'pulpcore_client/api/groups_model_permissions_api'
151
- require 'pulpcore_client/api/groups_object_permissions_api'
152
179
  require 'pulpcore_client/api/groups_roles_api'
153
180
  require 'pulpcore_client/api/groups_users_api'
181
+ require 'pulpcore_client/api/importers_api'
182
+ require 'pulpcore_client/api/importers_imports_api'
154
183
  require 'pulpcore_client/api/importers_pulp_api'
155
184
  require 'pulpcore_client/api/importers_pulp_import_check_api'
156
185
  require 'pulpcore_client/api/importers_pulp_imports_api'
157
186
  require 'pulpcore_client/api/orphans_api'
158
187
  require 'pulpcore_client/api/orphans_cleanup_api'
159
188
  require 'pulpcore_client/api/publications_api'
189
+ require 'pulpcore_client/api/remotes_api'
160
190
  require 'pulpcore_client/api/repair_api'
161
191
  require 'pulpcore_client/api/repositories_api'
162
192
  require 'pulpcore_client/api/repositories_reclaim_space_api'
193
+ require 'pulpcore_client/api/repositories_versions_api'
163
194
  require 'pulpcore_client/api/repository_versions_api'
164
195
  require 'pulpcore_client/api/roles_api'
165
196
  require 'pulpcore_client/api/signing_services_api'
@@ -39,7 +39,7 @@ describe 'AccessPoliciesApi' do
39
39
  # @option opts [Boolean] :customized
40
40
  # @option opts [Integer] :limit Number of results to return per page.
41
41
  # @option opts [Integer] :offset The initial index from which to return the results.
42
- # @option opts [String] :ordering Which field to use when ordering the results.
42
+ # @option opts [Array<String>] :ordering Ordering
43
43
  # @option opts [String] :viewset_name Filter results where viewset_name matches value
44
44
  # @option opts [String] :viewset_name__contains Filter results where viewset_name contains value
45
45
  # @option opts [String] :viewset_name__icontains Filter results where viewset_name contains value