pulpcore_client 3.21.32 → 3.22.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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +147 -143
  3. data/docs/AccessPoliciesApi.md +28 -28
  4. data/docs/ArtifactDistributionResponse.md +29 -0
  5. data/docs/ArtifactsApi.md +21 -21
  6. data/docs/ContentApi.md +6 -6
  7. data/docs/ContentSettingsResponse.md +19 -0
  8. data/docs/ContentguardsApi.md +8 -8
  9. data/docs/ContentguardsContentRedirectApi.md +53 -53
  10. data/docs/ContentguardsRbacApi.md +53 -53
  11. data/docs/DistributionResponse.md +1 -1
  12. data/docs/DistributionsApi.md +11 -11
  13. data/docs/DistributionsArtifactsApi.md +154 -0
  14. data/docs/ExportersFilesystemApi.md +33 -33
  15. data/docs/ExportersFilesystemExportsApi.md +21 -21
  16. data/docs/ExportersPulpApi.md +33 -33
  17. data/docs/ExportersPulpExportsApi.md +21 -21
  18. data/docs/FilesystemExport.md +1 -3
  19. data/docs/GroupsApi.md +51 -51
  20. data/docs/GroupsRolesApi.md +21 -21
  21. data/docs/GroupsUsersApi.md +16 -16
  22. data/docs/ImportersPulpApi.md +33 -33
  23. data/docs/ImportersPulpImportCheckApi.md +1 -1
  24. data/docs/ImportersPulpImportsApi.md +21 -21
  25. data/docs/OrphansApi.md +6 -6
  26. data/docs/OrphansCleanupApi.md +6 -6
  27. data/docs/PaginatedArtifactDistributionResponseList.md +23 -0
  28. data/docs/PublicationsApi.md +8 -8
  29. data/docs/RemoteResponse.md +4 -2
  30. data/docs/RemoteResponseHiddenFields.md +19 -0
  31. data/docs/RemotesApi.md +10 -10
  32. data/docs/RepairApi.md +6 -6
  33. data/docs/RepositoriesApi.md +9 -9
  34. data/docs/RepositoriesReclaimSpaceApi.md +6 -6
  35. data/docs/RepositoryResponse.md +1 -1
  36. data/docs/RepositoryVersionsApi.md +10 -10
  37. data/docs/RolesApi.md +31 -31
  38. data/docs/SigningServicesApi.md +15 -13
  39. data/docs/StatusApi.md +1 -1
  40. data/docs/StatusResponse.md +3 -1
  41. data/docs/TaskGroupsApi.md +11 -13
  42. data/docs/TaskSchedulesApi.md +35 -35
  43. data/docs/TasksApi.md +128 -114
  44. data/docs/UploadsApi.md +61 -51
  45. data/docs/UserResponse.md +3 -1
  46. data/docs/UsersApi.md +31 -31
  47. data/docs/UsersRolesApi.md +21 -21
  48. data/docs/WorkersApi.md +15 -15
  49. data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
  50. data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
  51. data/lib/pulpcore_client/api/content_api.rb +5 -5
  52. data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
  53. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
  54. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
  55. data/lib/pulpcore_client/api/distributions_api.rb +12 -12
  56. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
  57. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
  58. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
  59. data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
  60. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
  61. data/lib/pulpcore_client/api/groups_api.rb +64 -64
  62. data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
  63. data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
  64. data/lib/pulpcore_client/api/importers_pulp_api.rb +40 -40
  65. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
  66. data/lib/pulpcore_client/api/orphans_api.rb +5 -5
  67. data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
  68. data/lib/pulpcore_client/api/publications_api.rb +8 -8
  69. data/lib/pulpcore_client/api/remotes_api.rb +10 -10
  70. data/lib/pulpcore_client/api/repair_api.rb +6 -6
  71. data/lib/pulpcore_client/api/repositories_api.rb +8 -8
  72. data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
  73. data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
  74. data/lib/pulpcore_client/api/roles_api.rb +38 -38
  75. data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
  76. data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
  77. data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
  78. data/lib/pulpcore_client/api/tasks_api.rb +159 -138
  79. data/lib/pulpcore_client/api/uploads_api.rb +84 -65
  80. data/lib/pulpcore_client/api/users_api.rb +38 -38
  81. data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
  82. data/lib/pulpcore_client/api/workers_api.rb +16 -16
  83. data/lib/pulpcore_client/configuration.rb +3 -3
  84. data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
  85. data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
  86. data/lib/pulpcore_client/models/distribution_response.rb +4 -2
  87. data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
  88. data/lib/pulpcore_client/models/group_role.rb +19 -0
  89. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
  90. data/lib/pulpcore_client/models/remote_response.rb +41 -27
  91. data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
  92. data/lib/pulpcore_client/models/repository_response.rb +4 -2
  93. data/lib/pulpcore_client/models/status_response.rb +19 -4
  94. data/lib/pulpcore_client/models/user_response.rb +16 -4
  95. data/lib/pulpcore_client/models/user_role.rb +19 -0
  96. data/lib/pulpcore_client/version.rb +1 -1
  97. data/lib/pulpcore_client.rb +5 -2
  98. data/spec/api/access_policies_api_spec.rb +11 -11
  99. data/spec/api/artifacts_api_spec.rb +8 -8
  100. data/spec/api/content_api_spec.rb +2 -2
  101. data/spec/api/contentguards_api_spec.rb +3 -3
  102. data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
  103. data/spec/api/contentguards_rbac_api_spec.rb +21 -21
  104. data/spec/api/distributions_api_spec.rb +5 -5
  105. data/spec/api/distributions_artifacts_api_spec.rb +76 -0
  106. data/spec/api/exporters_filesystem_api_spec.rb +13 -13
  107. data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
  108. data/spec/api/exporters_pulp_api_spec.rb +13 -13
  109. data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
  110. data/spec/api/groups_api_spec.rb +20 -20
  111. data/spec/api/groups_roles_api_spec.rb +8 -8
  112. data/spec/api/groups_users_api_spec.rb +6 -6
  113. data/spec/api/importers_pulp_api_spec.rb +13 -13
  114. data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
  115. data/spec/api/orphans_api_spec.rb +2 -2
  116. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  117. data/spec/api/publications_api_spec.rb +3 -3
  118. data/spec/api/remotes_api_spec.rb +4 -4
  119. data/spec/api/repair_api_spec.rb +2 -2
  120. data/spec/api/repositories_api_spec.rb +3 -3
  121. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  122. data/spec/api/repository_versions_api_spec.rb +4 -4
  123. data/spec/api/roles_api_spec.rb +12 -12
  124. data/spec/api/signing_services_api_spec.rb +6 -5
  125. data/spec/api/task_groups_api_spec.rb +4 -5
  126. data/spec/api/task_schedules_api_spec.rb +14 -14
  127. data/spec/api/tasks_api_spec.rb +45 -38
  128. data/spec/api/uploads_api_spec.rb +25 -20
  129. data/spec/api/users_api_spec.rb +12 -12
  130. data/spec/api/users_roles_api_spec.rb +8 -8
  131. data/spec/api/workers_api_spec.rb +6 -6
  132. data/spec/configuration_spec.rb +3 -3
  133. data/spec/models/artifact_distribution_response_spec.rb +77 -0
  134. data/spec/models/content_settings_response_spec.rb +47 -0
  135. data/spec/models/filesystem_export_spec.rb +0 -6
  136. data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
  137. data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
  138. data/spec/models/remote_response_spec.rb +6 -0
  139. data/spec/models/status_response_spec.rb +6 -0
  140. data/spec/models/user_response_spec.rb +6 -0
  141. metadata +162 -150
  142. data/docs/DocsApiJsonApi.md +0 -61
  143. data/docs/DocsApiYamlApi.md +0 -61
  144. data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
  145. data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
  146. data/spec/api/docs_api_json_api_spec.rb +0 -48
  147. data/spec/api/docs_api_yaml_api_spec.rb +0 -48
@@ -70,6 +70,9 @@ module PulpcoreClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # List of hidden (write only) fields
74
+ attr_accessor :hidden_fields
75
+
73
76
  # Attribute mapping from ruby-style variable name to JSON key.
74
77
  def self.attribute_map
75
78
  {
@@ -91,7 +94,8 @@ module PulpcoreClient
91
94
  :'sock_connect_timeout' => :'sock_connect_timeout',
92
95
  :'sock_read_timeout' => :'sock_read_timeout',
93
96
  :'headers' => :'headers',
94
- :'rate_limit' => :'rate_limit'
97
+ :'rate_limit' => :'rate_limit',
98
+ :'hidden_fields' => :'hidden_fields'
95
99
  }
96
100
  end
97
101
 
@@ -106,7 +110,7 @@ module PulpcoreClient
106
110
  :'client_cert' => :'String',
107
111
  :'tls_validation' => :'Boolean',
108
112
  :'proxy_url' => :'String',
109
- :'pulp_labels' => :'Object',
113
+ :'pulp_labels' => :'Hash<String, String>',
110
114
  :'pulp_last_updated' => :'DateTime',
111
115
  :'download_concurrency' => :'Integer',
112
116
  :'max_retries' => :'Integer',
@@ -116,7 +120,8 @@ module PulpcoreClient
116
120
  :'sock_connect_timeout' => :'Float',
117
121
  :'sock_read_timeout' => :'Float',
118
122
  :'headers' => :'Array<Object>',
119
- :'rate_limit' => :'Integer'
123
+ :'rate_limit' => :'Integer',
124
+ :'hidden_fields' => :'Array<RemoteResponseHiddenFields>'
120
125
  }
121
126
  end
122
127
 
@@ -132,7 +137,7 @@ module PulpcoreClient
132
137
  :'connect_timeout',
133
138
  :'sock_connect_timeout',
134
139
  :'sock_read_timeout',
135
- :'rate_limit'
140
+ :'rate_limit',
136
141
  ])
137
142
  end
138
143
 
@@ -184,7 +189,9 @@ module PulpcoreClient
184
189
  end
185
190
 
186
191
  if attributes.key?(:'pulp_labels')
187
- self.pulp_labels = attributes[:'pulp_labels']
192
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
193
+ self.pulp_labels = value
194
+ end
188
195
  end
189
196
 
190
197
  if attributes.key?(:'pulp_last_updated')
@@ -228,6 +235,12 @@ module PulpcoreClient
228
235
  if attributes.key?(:'rate_limit')
229
236
  self.rate_limit = attributes[:'rate_limit']
230
237
  end
238
+
239
+ if attributes.key?(:'hidden_fields')
240
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
241
+ self.hidden_fields = value
242
+ end
243
+ end
231
244
  end
232
245
 
233
246
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -246,20 +259,20 @@ module PulpcoreClient
246
259
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
247
260
  end
248
261
 
249
- if !@total_timeout.nil? && @total_timeout < 0
250
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
262
+ if !@total_timeout.nil? && @total_timeout < 0.0
263
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
251
264
  end
252
265
 
253
- if !@connect_timeout.nil? && @connect_timeout < 0
254
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
266
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
267
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
255
268
  end
256
269
 
257
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
258
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
259
272
  end
260
273
 
261
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
262
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
274
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
275
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
263
276
  end
264
277
 
265
278
  invalid_properties
@@ -271,10 +284,10 @@ module PulpcoreClient
271
284
  return false if @name.nil?
272
285
  return false if @url.nil?
273
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
274
- return false if !@total_timeout.nil? && @total_timeout < 0
275
- return false if !@connect_timeout.nil? && @connect_timeout < 0
276
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
277
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
287
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
288
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
289
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
290
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
278
291
  true
279
292
  end
280
293
 
@@ -291,8 +304,8 @@ module PulpcoreClient
291
304
  # Custom attribute writer method with validation
292
305
  # @param [Object] total_timeout Value to be assigned
293
306
  def total_timeout=(total_timeout)
294
- if !total_timeout.nil? && total_timeout < 0
295
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
307
+ if !total_timeout.nil? && total_timeout < 0.0
308
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
296
309
  end
297
310
 
298
311
  @total_timeout = total_timeout
@@ -301,8 +314,8 @@ module PulpcoreClient
301
314
  # Custom attribute writer method with validation
302
315
  # @param [Object] connect_timeout Value to be assigned
303
316
  def connect_timeout=(connect_timeout)
304
- if !connect_timeout.nil? && connect_timeout < 0
305
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
317
+ if !connect_timeout.nil? && connect_timeout < 0.0
318
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
306
319
  end
307
320
 
308
321
  @connect_timeout = connect_timeout
@@ -311,8 +324,8 @@ module PulpcoreClient
311
324
  # Custom attribute writer method with validation
312
325
  # @param [Object] sock_connect_timeout Value to be assigned
313
326
  def sock_connect_timeout=(sock_connect_timeout)
314
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
315
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
327
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
328
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
316
329
  end
317
330
 
318
331
  @sock_connect_timeout = sock_connect_timeout
@@ -321,8 +334,8 @@ module PulpcoreClient
321
334
  # Custom attribute writer method with validation
322
335
  # @param [Object] sock_read_timeout Value to be assigned
323
336
  def sock_read_timeout=(sock_read_timeout)
324
- if !sock_read_timeout.nil? && sock_read_timeout < 0
325
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
337
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
338
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
326
339
  end
327
340
 
328
341
  @sock_read_timeout = sock_read_timeout
@@ -351,7 +364,8 @@ module PulpcoreClient
351
364
  sock_connect_timeout == o.sock_connect_timeout &&
352
365
  sock_read_timeout == o.sock_read_timeout &&
353
366
  headers == o.headers &&
354
- rate_limit == o.rate_limit
367
+ rate_limit == o.rate_limit &&
368
+ hidden_fields == o.hidden_fields
355
369
  end
356
370
 
357
371
  # @see the `==` method
@@ -363,7 +377,7 @@ module PulpcoreClient
363
377
  # Calculates hash code according to all attributes.
364
378
  # @return [Integer] Hash code
365
379
  def hash
366
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
380
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
367
381
  end
368
382
 
369
383
  # Builds the object from hash
@@ -0,0 +1,215 @@
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
+ class RemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::RemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::RemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpcoreClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -59,7 +59,7 @@ module PulpcoreClient
59
59
  :'pulp_href' => :'String',
60
60
  :'pulp_created' => :'DateTime',
61
61
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object',
62
+ :'pulp_labels' => :'Hash<String, String>',
63
63
  :'latest_version_href' => :'String',
64
64
  :'name' => :'String',
65
65
  :'description' => :'String',
@@ -105,7 +105,9 @@ module PulpcoreClient
105
105
  end
106
106
 
107
107
  if attributes.key?(:'pulp_labels')
108
- self.pulp_labels = attributes[:'pulp_labels']
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
109
111
  end
110
112
 
111
113
  if attributes.key?(:'latest_version_href')
@@ -33,6 +33,9 @@ module PulpcoreClient
33
33
  # Storage information
34
34
  attr_accessor :storage
35
35
 
36
+ # Content-app settings
37
+ attr_accessor :content_settings
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module PulpcoreClient
41
44
  :'online_content_apps' => :'online_content_apps',
42
45
  :'database_connection' => :'database_connection',
43
46
  :'redis_connection' => :'redis_connection',
44
- :'storage' => :'storage'
47
+ :'storage' => :'storage',
48
+ :'content_settings' => :'content_settings'
45
49
  }
46
50
  end
47
51
 
@@ -53,7 +57,8 @@ module PulpcoreClient
53
57
  :'online_content_apps' => :'Array<ContentAppStatusResponse>',
54
58
  :'database_connection' => :'DatabaseConnectionResponse',
55
59
  :'redis_connection' => :'RedisConnectionResponse',
56
- :'storage' => :'StorageResponse'
60
+ :'storage' => :'StorageResponse',
61
+ :'content_settings' => :'ContentSettingsResponse'
57
62
  }
58
63
  end
59
64
 
@@ -107,6 +112,10 @@ module PulpcoreClient
107
112
  if attributes.key?(:'storage')
108
113
  self.storage = attributes[:'storage']
109
114
  end
115
+
116
+ if attributes.key?(:'content_settings')
117
+ self.content_settings = attributes[:'content_settings']
118
+ end
110
119
  end
111
120
 
112
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -129,6 +138,10 @@ module PulpcoreClient
129
138
  invalid_properties.push('invalid value for "database_connection", database_connection cannot be nil.')
130
139
  end
131
140
 
141
+ if @content_settings.nil?
142
+ invalid_properties.push('invalid value for "content_settings", content_settings cannot be nil.')
143
+ end
144
+
132
145
  invalid_properties
133
146
  end
134
147
 
@@ -139,6 +152,7 @@ module PulpcoreClient
139
152
  return false if @online_workers.nil?
140
153
  return false if @online_content_apps.nil?
141
154
  return false if @database_connection.nil?
155
+ return false if @content_settings.nil?
142
156
  true
143
157
  end
144
158
 
@@ -152,7 +166,8 @@ module PulpcoreClient
152
166
  online_content_apps == o.online_content_apps &&
153
167
  database_connection == o.database_connection &&
154
168
  redis_connection == o.redis_connection &&
155
- storage == o.storage
169
+ storage == o.storage &&
170
+ content_settings == o.content_settings
156
171
  end
157
172
 
158
173
  # @see the `==` method
@@ -164,7 +179,7 @@ module PulpcoreClient
164
179
  # Calculates hash code according to all attributes.
165
180
  # @return [Integer] Hash code
166
181
  def hash
167
- [versions, online_workers, online_content_apps, database_connection, redis_connection, storage].hash
182
+ [versions, online_workers, online_content_apps, database_connection, redis_connection, storage, content_settings].hash
168
183
  end
169
184
 
170
185
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpcoreClient
42
42
 
43
43
  attr_accessor :groups
44
44
 
45
+ # List of hidden (write only) fields
46
+ attr_accessor :hidden_fields
47
+
45
48
  # Attribute mapping from ruby-style variable name to JSON key.
46
49
  def self.attribute_map
47
50
  {
@@ -54,7 +57,8 @@ module PulpcoreClient
54
57
  :'is_staff' => :'is_staff',
55
58
  :'is_active' => :'is_active',
56
59
  :'date_joined' => :'date_joined',
57
- :'groups' => :'groups'
60
+ :'groups' => :'groups',
61
+ :'hidden_fields' => :'hidden_fields'
58
62
  }
59
63
  end
60
64
 
@@ -70,7 +74,8 @@ module PulpcoreClient
70
74
  :'is_staff' => :'Boolean',
71
75
  :'is_active' => :'Boolean',
72
76
  :'date_joined' => :'DateTime',
73
- :'groups' => :'Array<UserGroupResponse>'
77
+ :'groups' => :'Array<UserGroupResponse>',
78
+ :'hidden_fields' => :'Array<RemoteResponseHiddenFields>'
74
79
  }
75
80
  end
76
81
 
@@ -140,6 +145,12 @@ module PulpcoreClient
140
145
  self.groups = value
141
146
  end
142
147
  end
148
+
149
+ if attributes.key?(:'hidden_fields')
150
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
151
+ self.hidden_fields = value
152
+ end
153
+ end
143
154
  end
144
155
 
145
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -223,7 +234,8 @@ module PulpcoreClient
223
234
  is_staff == o.is_staff &&
224
235
  is_active == o.is_active &&
225
236
  date_joined == o.date_joined &&
226
- groups == o.groups
237
+ groups == o.groups &&
238
+ hidden_fields == o.hidden_fields
227
239
  end
228
240
 
229
241
  # @see the `==` method
@@ -235,7 +247,7 @@ module PulpcoreClient
235
247
  # Calculates hash code according to all attributes.
236
248
  # @return [Integer] Hash code
237
249
  def hash
238
- [pulp_href, id, username, first_name, last_name, email, is_staff, is_active, date_joined, groups].hash
250
+ [pulp_href, id, username, first_name, last_name, email, is_staff, is_active, date_joined, groups, hidden_fields].hash
239
251
  end
240
252
 
241
253
  # Builds the object from hash
@@ -75,6 +75,10 @@ module PulpcoreClient
75
75
  invalid_properties.push('invalid value for "role", role cannot be nil.')
76
76
  end
77
77
 
78
+ if @role.to_s.length < 1
79
+ invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
80
+ end
81
+
78
82
  if @content_object.to_s.length < 1
79
83
  invalid_properties.push('invalid value for "content_object", the character length must be great than or equal to 1.')
80
84
  end
@@ -86,10 +90,25 @@ module PulpcoreClient
86
90
  # @return true if the model is valid
87
91
  def valid?
88
92
  return false if @role.nil?
93
+ return false if @role.to_s.length < 1
89
94
  return false if @content_object.to_s.length < 1
90
95
  true
91
96
  end
92
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] role Value to be assigned
100
+ def role=(role)
101
+ if role.nil?
102
+ fail ArgumentError, 'role cannot be nil'
103
+ end
104
+
105
+ if role.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @role = role
110
+ end
111
+
93
112
  # Custom attribute writer method with validation
94
113
  # @param [Object] content_object Value to be assigned
95
114
  def content_object=(content_object)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.21.32'
14
+ VERSION = '3.22.0'
15
15
  end
@@ -20,12 +20,14 @@ require 'pulpcore_client/configuration'
20
20
  require 'pulpcore_client/models/access_policy'
21
21
  require 'pulpcore_client/models/access_policy_response'
22
22
  require 'pulpcore_client/models/artifact'
23
+ require 'pulpcore_client/models/artifact_distribution_response'
23
24
  require 'pulpcore_client/models/artifact_response'
24
25
  require 'pulpcore_client/models/async_operation_response'
25
26
  require 'pulpcore_client/models/content_app_status_response'
26
27
  require 'pulpcore_client/models/content_guard_response'
27
28
  require 'pulpcore_client/models/content_redirect_content_guard'
28
29
  require 'pulpcore_client/models/content_redirect_content_guard_response'
30
+ require 'pulpcore_client/models/content_settings_response'
29
31
  require 'pulpcore_client/models/content_summary_response'
30
32
  require 'pulpcore_client/models/database_connection_response'
31
33
  require 'pulpcore_client/models/distribution_response'
@@ -51,6 +53,7 @@ require 'pulpcore_client/models/nested_role_response'
51
53
  require 'pulpcore_client/models/object_roles_response'
52
54
  require 'pulpcore_client/models/orphans_cleanup'
53
55
  require 'pulpcore_client/models/paginated_access_policy_response_list'
56
+ require 'pulpcore_client/models/paginated_artifact_distribution_response_list'
54
57
  require 'pulpcore_client/models/paginated_artifact_response_list'
55
58
  require 'pulpcore_client/models/paginated_content_guard_response_list'
56
59
  require 'pulpcore_client/models/paginated_content_redirect_content_guard_response_list'
@@ -107,6 +110,7 @@ require 'pulpcore_client/models/rbac_content_guard_response'
107
110
  require 'pulpcore_client/models/reclaim_space'
108
111
  require 'pulpcore_client/models/redis_connection_response'
109
112
  require 'pulpcore_client/models/remote_response'
113
+ require 'pulpcore_client/models/remote_response_hidden_fields'
110
114
  require 'pulpcore_client/models/repair'
111
115
  require 'pulpcore_client/models/repository_response'
112
116
  require 'pulpcore_client/models/repository_version_response'
@@ -143,8 +147,7 @@ require 'pulpcore_client/api/contentguards_api'
143
147
  require 'pulpcore_client/api/contentguards_content_redirect_api'
144
148
  require 'pulpcore_client/api/contentguards_rbac_api'
145
149
  require 'pulpcore_client/api/distributions_api'
146
- require 'pulpcore_client/api/docs_api_json_api'
147
- require 'pulpcore_client/api/docs_api_yaml_api'
150
+ require 'pulpcore_client/api/distributions_artifacts_api'
148
151
  require 'pulpcore_client/api/exporters_filesystem_api'
149
152
  require 'pulpcore_client/api/exporters_filesystem_exports_api'
150
153
  require 'pulpcore_client/api/exporters_pulp_api'