pulpcore_client 3.5.0 → 3.6.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 (239) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +88 -44
  3. data/docs/AccessPoliciesApi.md +244 -0
  4. data/docs/AccessPolicy.md +21 -0
  5. data/docs/AccessPolicyResponse.md +25 -0
  6. data/docs/Artifact.md +2 -6
  7. data/docs/ArtifactResponse.md +35 -0
  8. data/docs/ArtifactsApi.md +40 -34
  9. data/docs/{ContentAppStatus.md → ContentAppStatusResponse.md} +2 -2
  10. data/docs/{DatabaseConnection.md → DatabaseConnectionResponse.md} +2 -2
  11. data/docs/ExportersCoreExportsApi.md +33 -33
  12. data/docs/ExportersPulpApi.md +51 -51
  13. data/docs/Group.md +17 -0
  14. data/docs/{GroupProgressReport.md → GroupProgressReportResponse.md} +2 -2
  15. data/docs/GroupResponse.md +21 -0
  16. data/docs/GroupUser.md +17 -0
  17. data/docs/GroupUserResponse.md +19 -0
  18. data/docs/GroupsApi.md +351 -0
  19. data/docs/GroupsModelPermissionsApi.md +128 -0
  20. data/docs/GroupsObjectPermissionsApi.md +247 -0
  21. data/docs/GroupsUsersApi.md +183 -0
  22. data/docs/{Import.md → ImportResponse.md} +2 -2
  23. data/docs/ImportersCoreImportsApi.md +33 -33
  24. data/docs/ImportersPulpApi.md +51 -51
  25. data/docs/InlineResponse200.md +3 -3
  26. data/docs/InlineResponse2001.md +3 -3
  27. data/docs/InlineResponse20010.md +23 -0
  28. data/docs/InlineResponse20011.md +23 -0
  29. data/docs/InlineResponse20012.md +23 -0
  30. data/docs/InlineResponse20013.md +23 -0
  31. data/docs/InlineResponse20014.md +23 -0
  32. data/docs/InlineResponse2002.md +3 -3
  33. data/docs/InlineResponse2003.md +3 -3
  34. data/docs/InlineResponse2004.md +3 -3
  35. data/docs/InlineResponse2005.md +3 -3
  36. data/docs/InlineResponse2006.md +3 -3
  37. data/docs/InlineResponse2007.md +3 -3
  38. data/docs/InlineResponse2008.md +3 -3
  39. data/docs/InlineResponse2009.md +3 -3
  40. data/docs/OrphansApi.md +2 -2
  41. data/docs/PatchedAccessPolicy.md +21 -0
  42. data/docs/PatchedGroup.md +17 -0
  43. data/docs/PatchedPulpExporter.md +23 -0
  44. data/docs/PatchedPulpImporter.md +19 -0
  45. data/docs/{TaskCancel.md → PatchedTaskCancel.md} +3 -3
  46. data/docs/PermissionResponse.md +23 -0
  47. data/docs/{ProgressReport.md → ProgressReportResponse.md} +2 -2
  48. data/docs/PulpExport.md +11 -11
  49. data/docs/PulpExportResponse.md +27 -0
  50. data/docs/PulpExporter.md +1 -5
  51. data/docs/PulpExporterResponse.md +27 -0
  52. data/docs/PulpImport.md +4 -2
  53. data/docs/PulpImporter.md +2 -6
  54. data/docs/PulpImporterResponse.md +23 -0
  55. data/docs/{RedisConnection.md → RedisConnectionResponse.md} +2 -2
  56. data/docs/{SigningService.md → SigningServiceResponse.md} +2 -2
  57. data/docs/SigningServicesApi.md +14 -14
  58. data/docs/StatusApi.md +8 -22
  59. data/docs/StatusResponse.md +27 -0
  60. data/docs/{Storage.md → StorageResponse.md} +2 -2
  61. data/docs/{TaskGroup.md → TaskGroupResponse.md} +3 -3
  62. data/docs/TaskGroupsApi.md +16 -12
  63. data/docs/{Task.md → TaskResponse.md} +5 -7
  64. data/docs/TasksApi.md +144 -88
  65. data/docs/Upload.md +1 -7
  66. data/docs/UploadChunk.md +2 -6
  67. data/docs/UploadChunkResponse.md +19 -0
  68. data/docs/{UploadDetail.md → UploadDetailResponse.md} +3 -3
  69. data/docs/UploadResponse.md +23 -0
  70. data/docs/UploadsApi.md +42 -40
  71. data/docs/UserGroupResponse.md +19 -0
  72. data/docs/UserResponse.md +35 -0
  73. data/docs/UsersApi.md +191 -0
  74. data/docs/{Version.md → VersionResponse.md} +2 -2
  75. data/docs/{Worker.md → WorkerResponse.md} +2 -2
  76. data/docs/WorkersApi.md +36 -32
  77. data/lib/pulpcore_client/api/access_policies_api.rb +301 -0
  78. data/lib/pulpcore_client/api/artifacts_api.rb +47 -65
  79. data/lib/pulpcore_client/api/exporters_core_exports_api.rb +51 -51
  80. data/lib/pulpcore_client/api/exporters_pulp_api.rb +71 -71
  81. data/lib/pulpcore_client/api/groups_api.rb +425 -0
  82. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +161 -0
  83. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +295 -0
  84. data/lib/pulpcore_client/api/groups_users_api.rb +229 -0
  85. data/lib/pulpcore_client/api/importers_core_imports_api.rb +51 -51
  86. data/lib/pulpcore_client/api/importers_pulp_api.rb +71 -71
  87. data/lib/pulpcore_client/api/orphans_api.rb +3 -3
  88. data/lib/pulpcore_client/api/signing_services_api.rb +18 -18
  89. data/lib/pulpcore_client/api/status_api.rb +11 -17
  90. data/lib/pulpcore_client/api/task_groups_api.rb +19 -15
  91. data/lib/pulpcore_client/api/tasks_api.rb +203 -125
  92. data/lib/pulpcore_client/api/uploads_api.rb +60 -66
  93. data/lib/pulpcore_client/api/users_api.rb +227 -0
  94. data/lib/pulpcore_client/api/workers_api.rb +46 -42
  95. data/lib/pulpcore_client/api_client.rb +2 -2
  96. data/lib/pulpcore_client/api_error.rb +2 -2
  97. data/lib/pulpcore_client/configuration.rb +3 -3
  98. data/lib/pulpcore_client/models/access_policy.rb +247 -0
  99. data/lib/pulpcore_client/models/access_policy_response.rb +266 -0
  100. data/lib/pulpcore_client/models/artifact.rb +8 -111
  101. data/lib/pulpcore_client/models/artifact_response.rb +308 -0
  102. data/lib/pulpcore_client/models/async_operation_response.rb +3 -2
  103. data/lib/pulpcore_client/models/{content_app_status.rb → content_app_status_response.rb} +6 -21
  104. data/lib/pulpcore_client/models/{database_connection.rb → database_connection_response.rb} +6 -6
  105. data/lib/pulpcore_client/models/group.rb +232 -0
  106. data/lib/pulpcore_client/models/{group_progress_report.rb → group_progress_report_response.rb} +6 -50
  107. data/lib/pulpcore_client/models/group_response.rb +250 -0
  108. data/lib/pulpcore_client/models/group_user.rb +232 -0
  109. data/lib/pulpcore_client/models/group_user_response.rb +241 -0
  110. data/lib/pulpcore_client/models/{import.rb → import_response.rb} +6 -5
  111. data/lib/pulpcore_client/models/inline_response200.rb +3 -13
  112. data/lib/pulpcore_client/models/inline_response2001.rb +3 -13
  113. data/lib/pulpcore_client/models/inline_response20010.rb +237 -0
  114. data/lib/pulpcore_client/models/inline_response20011.rb +237 -0
  115. data/lib/pulpcore_client/models/inline_response20012.rb +237 -0
  116. data/lib/pulpcore_client/models/inline_response20013.rb +237 -0
  117. data/lib/pulpcore_client/models/inline_response20014.rb +237 -0
  118. data/lib/pulpcore_client/models/inline_response2002.rb +3 -13
  119. data/lib/pulpcore_client/models/inline_response2003.rb +3 -13
  120. data/lib/pulpcore_client/models/inline_response2004.rb +3 -13
  121. data/lib/pulpcore_client/models/inline_response2005.rb +3 -13
  122. data/lib/pulpcore_client/models/inline_response2006.rb +3 -13
  123. data/lib/pulpcore_client/models/inline_response2007.rb +3 -13
  124. data/lib/pulpcore_client/models/inline_response2008.rb +3 -13
  125. data/lib/pulpcore_client/models/inline_response2009.rb +3 -13
  126. data/lib/pulpcore_client/models/patched_access_policy.rb +232 -0
  127. data/lib/pulpcore_client/models/patched_group.rb +223 -0
  128. data/lib/pulpcore_client/models/patched_pulp_exporter.rb +240 -0
  129. data/lib/pulpcore_client/models/patched_pulp_importer.rb +218 -0
  130. data/lib/pulpcore_client/models/{task_cancel.rb → patched_task_cancel.rb} +6 -29
  131. data/lib/pulpcore_client/models/permission_response.rb +235 -0
  132. data/lib/pulpcore_client/models/{progress_report.rb → progress_report_response.rb} +6 -65
  133. data/lib/pulpcore_client/models/pulp_export.rb +50 -42
  134. data/lib/pulpcore_client/models/pulp_export_response.rb +260 -0
  135. data/lib/pulpcore_client/models/pulp_exporter.rb +4 -60
  136. data/lib/pulpcore_client/models/pulp_exporter_response.rb +274 -0
  137. data/lib/pulpcore_client/models/pulp_import.rb +17 -30
  138. data/lib/pulpcore_client/models/pulp_importer.rb +6 -45
  139. data/lib/pulpcore_client/models/pulp_importer_response.rb +242 -0
  140. data/lib/pulpcore_client/models/{redis_connection.rb → redis_connection_response.rb} +6 -6
  141. data/lib/pulpcore_client/models/{signing_service.rb → signing_service_response.rb} +6 -43
  142. data/lib/pulpcore_client/models/{status.rb → status_response.rb} +15 -11
  143. data/lib/pulpcore_client/models/{storage.rb → storage_response.rb} +6 -6
  144. data/lib/pulpcore_client/models/{task_group.rb → task_group_response.rb} +7 -25
  145. data/lib/pulpcore_client/models/{task.rb → task_response.rb} +13 -59
  146. data/lib/pulpcore_client/models/upload.rb +7 -35
  147. data/lib/pulpcore_client/models/upload_chunk.rb +11 -39
  148. data/lib/pulpcore_client/models/upload_chunk_response.rb +215 -0
  149. data/lib/pulpcore_client/models/upload_commit.rb +2 -21
  150. data/lib/pulpcore_client/models/{upload_detail.rb → upload_detail_response.rb} +7 -6
  151. data/lib/pulpcore_client/models/upload_response.rb +242 -0
  152. data/lib/pulpcore_client/models/user_group_response.rb +241 -0
  153. data/lib/pulpcore_client/models/user_response.rb +378 -0
  154. data/lib/pulpcore_client/models/{version.rb → version_response.rb} +6 -44
  155. data/lib/pulpcore_client/models/{worker.rb → worker_response.rb} +6 -21
  156. data/lib/pulpcore_client/version.rb +3 -3
  157. data/lib/pulpcore_client.rb +47 -17
  158. data/pulpcore_client.gemspec +4 -4
  159. data/spec/api/access_policies_api_spec.rb +91 -0
  160. data/spec/api/artifacts_api_spec.rb +18 -15
  161. data/spec/api/exporters_core_exports_api_spec.rb +10 -10
  162. data/spec/api/exporters_pulp_api_spec.rb +18 -18
  163. data/spec/api/groups_api_spec.rb +115 -0
  164. data/spec/api/groups_model_permissions_api_spec.rb +64 -0
  165. data/spec/api/groups_object_permissions_api_spec.rb +92 -0
  166. data/spec/api/groups_users_api_spec.rb +77 -0
  167. data/spec/api/importers_core_imports_api_spec.rb +10 -10
  168. data/spec/api/importers_pulp_api_spec.rb +18 -18
  169. data/spec/api/orphans_api_spec.rb +2 -2
  170. data/spec/api/signing_services_api_spec.rb +7 -7
  171. data/spec/api/status_api_spec.rb +5 -7
  172. data/spec/api/task_groups_api_spec.rb +8 -6
  173. data/spec/api/tasks_api_spec.rb +69 -42
  174. data/spec/api/uploads_api_spec.rb +14 -13
  175. data/spec/api/users_api_spec.rb +78 -0
  176. data/spec/api/workers_api_spec.rb +18 -16
  177. data/spec/api_client_spec.rb +2 -2
  178. data/spec/configuration_spec.rb +2 -2
  179. data/spec/models/access_policy_response_spec.rb +65 -0
  180. data/spec/models/access_policy_spec.rb +53 -0
  181. data/spec/models/artifact_response_spec.rb +95 -0
  182. data/spec/models/artifact_spec.rb +2 -14
  183. data/spec/models/async_operation_response_spec.rb +2 -2
  184. data/spec/models/{content_app_status_spec.rb → content_app_status_response_spec.rb} +8 -8
  185. data/spec/models/{database_connection_spec.rb → database_connection_response_spec.rb} +8 -8
  186. data/spec/models/{group_progress_report_spec.rb → group_progress_report_response_spec.rb} +8 -8
  187. data/spec/models/group_response_spec.rb +53 -0
  188. data/spec/models/group_spec.rb +41 -0
  189. data/spec/models/group_user_response_spec.rb +47 -0
  190. data/spec/models/group_user_spec.rb +41 -0
  191. data/spec/models/{import_spec.rb → import_response_spec.rb} +8 -8
  192. data/spec/models/inline_response20010_spec.rb +59 -0
  193. data/spec/models/inline_response20011_spec.rb +59 -0
  194. data/spec/models/inline_response20012_spec.rb +59 -0
  195. data/spec/models/inline_response20013_spec.rb +59 -0
  196. data/spec/models/inline_response20014_spec.rb +59 -0
  197. data/spec/models/inline_response2001_spec.rb +2 -2
  198. data/spec/models/inline_response2002_spec.rb +2 -2
  199. data/spec/models/inline_response2003_spec.rb +2 -2
  200. data/spec/models/inline_response2004_spec.rb +2 -2
  201. data/spec/models/inline_response2005_spec.rb +2 -2
  202. data/spec/models/inline_response2006_spec.rb +2 -2
  203. data/spec/models/inline_response2007_spec.rb +2 -2
  204. data/spec/models/inline_response2008_spec.rb +2 -2
  205. data/spec/models/inline_response2009_spec.rb +2 -2
  206. data/spec/models/inline_response200_spec.rb +2 -2
  207. data/spec/models/patched_access_policy_spec.rb +53 -0
  208. data/spec/models/patched_group_spec.rb +41 -0
  209. data/spec/models/patched_pulp_exporter_spec.rb +59 -0
  210. data/spec/models/patched_pulp_importer_spec.rb +47 -0
  211. data/spec/models/{task_cancel_spec.rb → patched_task_cancel_spec.rb} +8 -8
  212. data/spec/models/permission_response_spec.rb +59 -0
  213. data/spec/models/{progress_report_spec.rb → progress_report_response_spec.rb} +8 -8
  214. data/spec/models/pulp_export_response_spec.rb +71 -0
  215. data/spec/models/pulp_export_spec.rb +8 -8
  216. data/spec/models/pulp_exporter_response_spec.rb +71 -0
  217. data/spec/models/pulp_exporter_spec.rb +2 -14
  218. data/spec/models/pulp_import_spec.rb +8 -2
  219. data/spec/models/pulp_importer_response_spec.rb +59 -0
  220. data/spec/models/pulp_importer_spec.rb +2 -14
  221. data/spec/models/{redis_connection_spec.rb → redis_connection_response_spec.rb} +8 -8
  222. data/spec/models/{signing_service_spec.rb → signing_service_response_spec.rb} +8 -8
  223. data/spec/models/{status_spec.rb → status_response_spec.rb} +8 -8
  224. data/spec/models/{storage_spec.rb → storage_response_spec.rb} +8 -8
  225. data/spec/models/{task_group_spec.rb → task_group_response_spec.rb} +8 -8
  226. data/spec/models/{task_spec.rb → task_response_spec.rb} +8 -14
  227. data/spec/models/upload_chunk_response_spec.rb +47 -0
  228. data/spec/models/upload_chunk_spec.rb +2 -14
  229. data/spec/models/upload_commit_spec.rb +2 -2
  230. data/spec/models/{upload_detail_spec.rb → upload_detail_response_spec.rb} +8 -8
  231. data/spec/models/upload_response_spec.rb +59 -0
  232. data/spec/models/upload_spec.rb +2 -20
  233. data/spec/models/user_group_response_spec.rb +47 -0
  234. data/spec/models/user_response_spec.rb +95 -0
  235. data/spec/models/{version_spec.rb → version_response_spec.rb} +8 -8
  236. data/spec/models/{worker_spec.rb → worker_response_spec.rb} +8 -8
  237. data/spec/spec_helper.rb +2 -2
  238. metadata +204 -84
  239. data/docs/Status.md +0 -27
@@ -0,0 +1,378 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ # Serializer for User.
17
+ class UserResponse
18
+ attr_accessor :pulp_href
19
+
20
+ attr_accessor :id
21
+
22
+ # Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
23
+ attr_accessor :username
24
+
25
+ # First name
26
+ attr_accessor :first_name
27
+
28
+ # Last name
29
+ attr_accessor :last_name
30
+
31
+ # Email address
32
+ attr_accessor :email
33
+
34
+ # Designates whether the user can log into this admin site.
35
+ attr_accessor :is_staff
36
+
37
+ # Designates whether this user should be treated as active.
38
+ attr_accessor :is_active
39
+
40
+ # Date joined
41
+ attr_accessor :date_joined
42
+
43
+ attr_accessor :groups
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'pulp_href' => :'pulp_href',
49
+ :'id' => :'id',
50
+ :'username' => :'username',
51
+ :'first_name' => :'first_name',
52
+ :'last_name' => :'last_name',
53
+ :'email' => :'email',
54
+ :'is_staff' => :'is_staff',
55
+ :'is_active' => :'is_active',
56
+ :'date_joined' => :'date_joined',
57
+ :'groups' => :'groups'
58
+ }
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.openapi_types
63
+ {
64
+ :'pulp_href' => :'String',
65
+ :'id' => :'Integer',
66
+ :'username' => :'String',
67
+ :'first_name' => :'String',
68
+ :'last_name' => :'String',
69
+ :'email' => :'String',
70
+ :'is_staff' => :'Boolean',
71
+ :'is_active' => :'Boolean',
72
+ :'date_joined' => :'DateTime',
73
+ :'groups' => :'Array<UserGroupResponse>'
74
+ }
75
+ end
76
+
77
+ # List of attributes with nullable: true
78
+ def self.openapi_nullable
79
+ Set.new([
80
+ ])
81
+ end
82
+
83
+ # Initializes the object
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ def initialize(attributes = {})
86
+ if (!attributes.is_a?(Hash))
87
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::UserResponse` initialize method"
88
+ end
89
+
90
+ # check to see if the attribute exists and convert string to symbol for hash key
91
+ attributes = attributes.each_with_object({}) { |(k, v), h|
92
+ if (!self.class.attribute_map.key?(k.to_sym))
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::UserResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
94
+ end
95
+ h[k.to_sym] = v
96
+ }
97
+
98
+ if attributes.key?(:'pulp_href')
99
+ self.pulp_href = attributes[:'pulp_href']
100
+ end
101
+
102
+ if attributes.key?(:'id')
103
+ self.id = attributes[:'id']
104
+ end
105
+
106
+ if attributes.key?(:'username')
107
+ self.username = attributes[:'username']
108
+ end
109
+
110
+ if attributes.key?(:'first_name')
111
+ self.first_name = attributes[:'first_name']
112
+ end
113
+
114
+ if attributes.key?(:'last_name')
115
+ self.last_name = attributes[:'last_name']
116
+ end
117
+
118
+ if attributes.key?(:'email')
119
+ self.email = attributes[:'email']
120
+ end
121
+
122
+ if attributes.key?(:'is_staff')
123
+ self.is_staff = attributes[:'is_staff']
124
+ else
125
+ self.is_staff = false
126
+ end
127
+
128
+ if attributes.key?(:'is_active')
129
+ self.is_active = attributes[:'is_active']
130
+ else
131
+ self.is_active = true
132
+ end
133
+
134
+ if attributes.key?(:'date_joined')
135
+ self.date_joined = attributes[:'date_joined']
136
+ end
137
+
138
+ if attributes.key?(:'groups')
139
+ if (value = attributes[:'groups']).is_a?(Array)
140
+ self.groups = value
141
+ end
142
+ end
143
+ end
144
+
145
+ # Show invalid properties with the reasons. Usually used together with valid?
146
+ # @return Array for valid properties with the reasons
147
+ def list_invalid_properties
148
+ invalid_properties = Array.new
149
+ if @username.nil?
150
+ invalid_properties.push('invalid value for "username", username cannot be nil.')
151
+ end
152
+
153
+ if @username.to_s.length > 150
154
+ invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 150.')
155
+ end
156
+
157
+ if @first_name.nil?
158
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
159
+ end
160
+
161
+ if @first_name.to_s.length > 150
162
+ invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 150.')
163
+ end
164
+
165
+ if @last_name.nil?
166
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
167
+ end
168
+
169
+ if @last_name.to_s.length > 150
170
+ invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 150.')
171
+ end
172
+
173
+ if @email.nil?
174
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
175
+ end
176
+
177
+ invalid_properties
178
+ end
179
+
180
+ # Check to see if the all the properties in the model are valid
181
+ # @return true if the model is valid
182
+ def valid?
183
+ return false if @username.nil?
184
+ return false if @username.to_s.length > 150
185
+ return false if @first_name.nil?
186
+ return false if @first_name.to_s.length > 150
187
+ return false if @last_name.nil?
188
+ return false if @last_name.to_s.length > 150
189
+ return false if @email.nil?
190
+ true
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] username Value to be assigned
195
+ def username=(username)
196
+ if username.nil?
197
+ fail ArgumentError, 'username cannot be nil'
198
+ end
199
+
200
+ if username.to_s.length > 150
201
+ fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 150.'
202
+ end
203
+
204
+ @username = username
205
+ end
206
+
207
+ # Custom attribute writer method with validation
208
+ # @param [Object] first_name Value to be assigned
209
+ def first_name=(first_name)
210
+ if first_name.nil?
211
+ fail ArgumentError, 'first_name cannot be nil'
212
+ end
213
+
214
+ if first_name.to_s.length > 150
215
+ fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 150.'
216
+ end
217
+
218
+ @first_name = first_name
219
+ end
220
+
221
+ # Custom attribute writer method with validation
222
+ # @param [Object] last_name Value to be assigned
223
+ def last_name=(last_name)
224
+ if last_name.nil?
225
+ fail ArgumentError, 'last_name cannot be nil'
226
+ end
227
+
228
+ if last_name.to_s.length > 150
229
+ fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 150.'
230
+ end
231
+
232
+ @last_name = last_name
233
+ end
234
+
235
+ # Checks equality by comparing each attribute.
236
+ # @param [Object] Object to be compared
237
+ def ==(o)
238
+ return true if self.equal?(o)
239
+ self.class == o.class &&
240
+ pulp_href == o.pulp_href &&
241
+ id == o.id &&
242
+ username == o.username &&
243
+ first_name == o.first_name &&
244
+ last_name == o.last_name &&
245
+ email == o.email &&
246
+ is_staff == o.is_staff &&
247
+ is_active == o.is_active &&
248
+ date_joined == o.date_joined &&
249
+ groups == o.groups
250
+ end
251
+
252
+ # @see the `==` method
253
+ # @param [Object] Object to be compared
254
+ def eql?(o)
255
+ self == o
256
+ end
257
+
258
+ # Calculates hash code according to all attributes.
259
+ # @return [Integer] Hash code
260
+ def hash
261
+ [pulp_href, id, username, first_name, last_name, email, is_staff, is_active, date_joined, groups].hash
262
+ end
263
+
264
+ # Builds the object from hash
265
+ # @param [Hash] attributes Model attributes in the form of hash
266
+ # @return [Object] Returns the model itself
267
+ def self.build_from_hash(attributes)
268
+ new.build_from_hash(attributes)
269
+ end
270
+
271
+ # Builds the object from hash
272
+ # @param [Hash] attributes Model attributes in the form of hash
273
+ # @return [Object] Returns the model itself
274
+ def build_from_hash(attributes)
275
+ return nil unless attributes.is_a?(Hash)
276
+ self.class.openapi_types.each_pair do |key, type|
277
+ if type =~ /\AArray<(.*)>/i
278
+ # check to ensure the input is an array given that the attribute
279
+ # is documented as an array but the input is not
280
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
281
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
282
+ end
283
+ elsif !attributes[self.class.attribute_map[key]].nil?
284
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
285
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
286
+ end
287
+
288
+ self
289
+ end
290
+
291
+ # Deserializes the data based on type
292
+ # @param string type Data type
293
+ # @param string value Value to be deserialized
294
+ # @return [Object] Deserialized data
295
+ def _deserialize(type, value)
296
+ case type.to_sym
297
+ when :DateTime
298
+ DateTime.parse(value)
299
+ when :Date
300
+ Date.parse(value)
301
+ when :String
302
+ value.to_s
303
+ when :Integer
304
+ value.to_i
305
+ when :Float
306
+ value.to_f
307
+ when :Boolean
308
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
309
+ true
310
+ else
311
+ false
312
+ end
313
+ when :Object
314
+ # generic object (usually a Hash), return directly
315
+ value
316
+ when /\AArray<(?<inner_type>.+)>\z/
317
+ inner_type = Regexp.last_match[:inner_type]
318
+ value.map { |v| _deserialize(inner_type, v) }
319
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
320
+ k_type = Regexp.last_match[:k_type]
321
+ v_type = Regexp.last_match[:v_type]
322
+ {}.tap do |hash|
323
+ value.each do |k, v|
324
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
325
+ end
326
+ end
327
+ else # model
328
+ PulpcoreClient.const_get(type).build_from_hash(value)
329
+ end
330
+ end
331
+
332
+ # Returns the string representation of the object
333
+ # @return [String] String presentation of the object
334
+ def to_s
335
+ to_hash.to_s
336
+ end
337
+
338
+ # to_body is an alias to to_hash (backward compatibility)
339
+ # @return [Hash] Returns the object in the form of hash
340
+ def to_body
341
+ to_hash
342
+ end
343
+
344
+ # Returns the object in the form of hash
345
+ # @return [Hash] Returns the object in the form of hash
346
+ def to_hash
347
+ hash = {}
348
+ self.class.attribute_map.each_pair do |attr, param|
349
+ value = self.send(attr)
350
+ if value.nil?
351
+ is_nullable = self.class.openapi_nullable.include?(attr)
352
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
353
+ end
354
+
355
+ hash[param] = _to_hash(value)
356
+ end
357
+ hash
358
+ end
359
+
360
+ # Outputs non-array value in the form of hash
361
+ # For object, use to_hash. Otherwise, just return the value
362
+ # @param [Object] value Any valid value
363
+ # @return [Hash] Returns the value in the form of hash
364
+ def _to_hash(value)
365
+ if value.is_a?(Array)
366
+ value.compact.map { |v| _to_hash(v) }
367
+ elsif value.is_a?(Hash)
368
+ {}.tap do |hash|
369
+ value.each { |k, v| hash[k] = _to_hash(v) }
370
+ end
371
+ elsif value.respond_to? :to_hash
372
+ value.to_hash
373
+ else
374
+ value
375
+ end
376
+ end
377
+ end
378
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,8 +13,8 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpcoreClient
16
- # Version information of Pulp components
17
- class Version
16
+ # Serializer for the version information of Pulp components
17
+ class VersionResponse
18
18
  # Name of a versioned component of Pulp
19
19
  attr_accessor :component
20
20
 
@@ -47,13 +47,13 @@ module PulpcoreClient
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Version` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::VersionResponse` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Version`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::VersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -75,18 +75,10 @@ module PulpcoreClient
75
75
  invalid_properties.push('invalid value for "component", component cannot be nil.')
76
76
  end
77
77
 
78
- if @component.to_s.length < 1
79
- invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
80
- end
81
-
82
78
  if @version.nil?
83
79
  invalid_properties.push('invalid value for "version", version cannot be nil.')
84
80
  end
85
81
 
86
- if @version.to_s.length < 1
87
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
88
- end
89
-
90
82
  invalid_properties
91
83
  end
92
84
 
@@ -94,40 +86,10 @@ module PulpcoreClient
94
86
  # @return true if the model is valid
95
87
  def valid?
96
88
  return false if @component.nil?
97
- return false if @component.to_s.length < 1
98
89
  return false if @version.nil?
99
- return false if @version.to_s.length < 1
100
90
  true
101
91
  end
102
92
 
103
- # Custom attribute writer method with validation
104
- # @param [Object] component Value to be assigned
105
- def component=(component)
106
- if component.nil?
107
- fail ArgumentError, 'component cannot be nil'
108
- end
109
-
110
- if component.to_s.length < 1
111
- fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
112
- end
113
-
114
- @component = component
115
- end
116
-
117
- # Custom attribute writer method with validation
118
- # @param [Object] version Value to be assigned
119
- def version=(version)
120
- if version.nil?
121
- fail ArgumentError, 'version cannot be nil'
122
- end
123
-
124
- if version.to_s.length < 1
125
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
126
- end
127
-
128
- @version = version
129
- end
130
-
131
93
  # Checks equality by comparing each attribute.
132
94
  # @param [Object] Object to be compared
133
95
  def ==(o)
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,8 +13,8 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpcoreClient
16
- # List of online workers known to the application. An online worker is actively heartbeating and can respond to new work
17
- class Worker
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 WorkerResponse
18
18
  attr_accessor :pulp_href
19
19
 
20
20
  # Timestamp of creation.
@@ -56,13 +56,13 @@ module PulpcoreClient
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
58
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Worker` initialize method"
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::WorkerResponse` initialize method"
60
60
  end
61
61
 
62
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
64
  if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Worker`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::WorkerResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
66
  end
67
67
  h[k.to_sym] = v
68
68
  }
@@ -88,30 +88,15 @@ module PulpcoreClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if !@name.nil? && @name.to_s.length < 1
92
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
93
- end
94
-
95
91
  invalid_properties
96
92
  end
97
93
 
98
94
  # Check to see if the all the properties in the model are valid
99
95
  # @return true if the model is valid
100
96
  def valid?
101
- return false if !@name.nil? && @name.to_s.length < 1
102
97
  true
103
98
  end
104
99
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] name Value to be assigned
107
- def name=(name)
108
- if !name.nil? && name.to_s.length < 1
109
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
110
- end
111
-
112
- @name = name
113
- end
114
-
115
100
  # Checks equality by comparing each attribute.
116
101
  # @param [Object] Object to be compared
117
102
  def ==(o)
@@ -1,15 +1,15 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.5.0'
14
+ VERSION = '3.6.0'
15
15
  end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -17,14 +17,26 @@ require 'pulpcore_client/version'
17
17
  require 'pulpcore_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'pulpcore_client/models/access_policy'
21
+ require 'pulpcore_client/models/access_policy_response'
20
22
  require 'pulpcore_client/models/artifact'
23
+ require 'pulpcore_client/models/artifact_response'
21
24
  require 'pulpcore_client/models/async_operation_response'
22
- require 'pulpcore_client/models/content_app_status'
23
- require 'pulpcore_client/models/database_connection'
24
- require 'pulpcore_client/models/group_progress_report'
25
- require 'pulpcore_client/models/import'
25
+ require 'pulpcore_client/models/content_app_status_response'
26
+ require 'pulpcore_client/models/database_connection_response'
27
+ require 'pulpcore_client/models/group'
28
+ require 'pulpcore_client/models/group_progress_report_response'
29
+ require 'pulpcore_client/models/group_response'
30
+ require 'pulpcore_client/models/group_user'
31
+ require 'pulpcore_client/models/group_user_response'
32
+ require 'pulpcore_client/models/import_response'
26
33
  require 'pulpcore_client/models/inline_response200'
27
34
  require 'pulpcore_client/models/inline_response2001'
35
+ require 'pulpcore_client/models/inline_response20010'
36
+ require 'pulpcore_client/models/inline_response20011'
37
+ require 'pulpcore_client/models/inline_response20012'
38
+ require 'pulpcore_client/models/inline_response20013'
39
+ require 'pulpcore_client/models/inline_response20014'
28
40
  require 'pulpcore_client/models/inline_response2002'
29
41
  require 'pulpcore_client/models/inline_response2003'
30
42
  require 'pulpcore_client/models/inline_response2004'
@@ -33,29 +45,46 @@ require 'pulpcore_client/models/inline_response2006'
33
45
  require 'pulpcore_client/models/inline_response2007'
34
46
  require 'pulpcore_client/models/inline_response2008'
35
47
  require 'pulpcore_client/models/inline_response2009'
36
- require 'pulpcore_client/models/progress_report'
48
+ require 'pulpcore_client/models/patched_access_policy'
49
+ require 'pulpcore_client/models/patched_group'
50
+ require 'pulpcore_client/models/patched_pulp_exporter'
51
+ require 'pulpcore_client/models/patched_pulp_importer'
52
+ require 'pulpcore_client/models/patched_task_cancel'
53
+ require 'pulpcore_client/models/permission_response'
54
+ require 'pulpcore_client/models/progress_report_response'
37
55
  require 'pulpcore_client/models/pulp_export'
56
+ require 'pulpcore_client/models/pulp_export_response'
38
57
  require 'pulpcore_client/models/pulp_exporter'
58
+ require 'pulpcore_client/models/pulp_exporter_response'
39
59
  require 'pulpcore_client/models/pulp_import'
40
60
  require 'pulpcore_client/models/pulp_importer'
41
- require 'pulpcore_client/models/redis_connection'
42
- require 'pulpcore_client/models/signing_service'
43
- require 'pulpcore_client/models/status'
44
- require 'pulpcore_client/models/storage'
45
- require 'pulpcore_client/models/task'
46
- require 'pulpcore_client/models/task_cancel'
47
- require 'pulpcore_client/models/task_group'
61
+ require 'pulpcore_client/models/pulp_importer_response'
62
+ require 'pulpcore_client/models/redis_connection_response'
63
+ require 'pulpcore_client/models/signing_service_response'
64
+ require 'pulpcore_client/models/status_response'
65
+ require 'pulpcore_client/models/storage_response'
66
+ require 'pulpcore_client/models/task_group_response'
67
+ require 'pulpcore_client/models/task_response'
48
68
  require 'pulpcore_client/models/upload'
49
69
  require 'pulpcore_client/models/upload_chunk'
70
+ require 'pulpcore_client/models/upload_chunk_response'
50
71
  require 'pulpcore_client/models/upload_commit'
51
- require 'pulpcore_client/models/upload_detail'
52
- require 'pulpcore_client/models/version'
53
- require 'pulpcore_client/models/worker'
72
+ require 'pulpcore_client/models/upload_detail_response'
73
+ require 'pulpcore_client/models/upload_response'
74
+ require 'pulpcore_client/models/user_group_response'
75
+ require 'pulpcore_client/models/user_response'
76
+ require 'pulpcore_client/models/version_response'
77
+ require 'pulpcore_client/models/worker_response'
54
78
 
55
79
  # APIs
80
+ require 'pulpcore_client/api/access_policies_api'
56
81
  require 'pulpcore_client/api/artifacts_api'
57
82
  require 'pulpcore_client/api/exporters_core_exports_api'
58
83
  require 'pulpcore_client/api/exporters_pulp_api'
84
+ require 'pulpcore_client/api/groups_api'
85
+ require 'pulpcore_client/api/groups_model_permissions_api'
86
+ require 'pulpcore_client/api/groups_object_permissions_api'
87
+ require 'pulpcore_client/api/groups_users_api'
59
88
  require 'pulpcore_client/api/importers_core_imports_api'
60
89
  require 'pulpcore_client/api/importers_pulp_api'
61
90
  require 'pulpcore_client/api/orphans_api'
@@ -64,6 +93,7 @@ require 'pulpcore_client/api/status_api'
64
93
  require 'pulpcore_client/api/task_groups_api'
65
94
  require 'pulpcore_client/api/tasks_api'
66
95
  require 'pulpcore_client/api/uploads_api'
96
+ require 'pulpcore_client/api/users_api'
67
97
  require 'pulpcore_client/api/workers_api'
68
98
 
69
99
  module PulpcoreClient