pulp_hugging_face_client 0.2.2 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentHuggingFaceApi.md +6 -6
  4. data/docs/DistributionsHuggingFaceApi.md +4 -4
  5. data/docs/HuggingFaceHuggingFaceContent.md +2 -0
  6. data/docs/HuggingFaceHuggingFaceDistribution.md +2 -0
  7. data/docs/HuggingFaceHuggingFaceDistributionResponse.md +4 -0
  8. data/docs/HuggingFaceHuggingFaceRemote.md +6 -6
  9. data/docs/HuggingFaceHuggingFaceRemoteResponse.md +8 -8
  10. data/docs/HuggingFaceHuggingFaceRepository.md +2 -0
  11. data/docs/HuggingFaceHuggingFaceRepositoryResponse.md +2 -0
  12. data/docs/PatchedhuggingFaceHuggingFaceDistribution.md +2 -0
  13. data/docs/PatchedhuggingFaceHuggingFaceRemote.md +6 -6
  14. data/docs/PatchedhuggingFaceHuggingFaceRepository.md +2 -0
  15. data/docs/PublicationsHuggingFaceApi.md +2 -2
  16. data/docs/RepositoriesHuggingFaceApi.md +20 -4
  17. data/docs/RepositoryAddRemoveContent.md +3 -1
  18. data/lib/pulp_hugging_face_client/api/content_hugging_face_api.rb +6 -6
  19. data/lib/pulp_hugging_face_client/api/distributions_hugging_face_api.rb +4 -4
  20. data/lib/pulp_hugging_face_client/api/publications_hugging_face_api.rb +2 -2
  21. data/lib/pulp_hugging_face_client/api/repositories_hugging_face_api.rb +29 -5
  22. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_content.rb +11 -1
  23. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_distribution.rb +12 -1
  24. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_distribution_response.rb +22 -1
  25. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote.rb +48 -33
  26. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote_response.rb +60 -45
  27. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository.rb +42 -1
  28. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository_response.rb +42 -1
  29. data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_distribution.rb +12 -1
  30. data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_remote.rb +48 -33
  31. data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_repository.rb +42 -1
  32. data/lib/pulp_hugging_face_client/models/repository_add_remove_content.rb +16 -4
  33. data/lib/pulp_hugging_face_client/models/set_label.rb +0 -11
  34. data/lib/pulp_hugging_face_client/models/set_label_response.rb +0 -21
  35. data/lib/pulp_hugging_face_client/models/unset_label.rb +0 -11
  36. data/lib/pulp_hugging_face_client/models/unset_label_response.rb +0 -21
  37. data/lib/pulp_hugging_face_client/version.rb +1 -1
  38. data/spec/api/content_hugging_face_api_spec.rb +3 -3
  39. data/spec/api/distributions_hugging_face_api_spec.rb +2 -2
  40. data/spec/api/publications_hugging_face_api_spec.rb +1 -1
  41. data/spec/api/repositories_hugging_face_api_spec.rb +10 -2
  42. data/spec/models/hugging_face_hugging_face_content_spec.rb +6 -0
  43. data/spec/models/hugging_face_hugging_face_distribution_response_spec.rb +12 -0
  44. data/spec/models/hugging_face_hugging_face_distribution_spec.rb +6 -0
  45. data/spec/models/hugging_face_hugging_face_remote_response_spec.rb +10 -10
  46. data/spec/models/hugging_face_hugging_face_remote_spec.rb +17 -17
  47. data/spec/models/hugging_face_hugging_face_repository_response_spec.rb +6 -0
  48. data/spec/models/hugging_face_hugging_face_repository_spec.rb +6 -0
  49. data/spec/models/patchedhugging_face_hugging_face_distribution_spec.rb +6 -0
  50. data/spec/models/patchedhugging_face_hugging_face_remote_spec.rb +17 -17
  51. data/spec/models/patchedhugging_face_hugging_face_repository_spec.rb +6 -0
  52. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  53. metadata +30 -30
@@ -172,13 +172,21 @@ module PulpHuggingFaceClient
172
172
  # @option opts [String] :name__regex Filter results where name matches regex value
173
173
  # @option opts [String] :name__startswith Filter results where name starts with value
174
174
  # @option opts [Integer] :offset The initial index from which to return the results.
175
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
175
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
176
176
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
177
177
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
178
178
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
179
179
  # @option opts [String] :pulp_label_select Filter labels by search string
180
180
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
181
- # @option opts [String] :remote Foreign Key referenced by HREF
181
+ # @option opts [String] :remote
182
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
183
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
184
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
185
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
186
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
187
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
188
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
189
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
182
190
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
183
191
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
184
192
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -212,13 +220,21 @@ module PulpHuggingFaceClient
212
220
  # @option opts [String] :name__regex Filter results where name matches regex value
213
221
  # @option opts [String] :name__startswith Filter results where name starts with value
214
222
  # @option opts [Integer] :offset The initial index from which to return the results.
215
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
223
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
216
224
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
217
225
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
218
226
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
219
227
  # @option opts [String] :pulp_label_select Filter labels by search string
220
228
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
221
- # @option opts [String] :remote Foreign Key referenced by HREF
229
+ # @option opts [String] :remote
230
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
231
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
232
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
233
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
234
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
235
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
236
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
237
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
222
238
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
223
239
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
224
240
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -235,7 +251,7 @@ module PulpHuggingFaceClient
235
251
  if @api_client.config.debugging
236
252
  @api_client.config.logger.debug 'Calling API: RepositoriesHuggingFaceApi.list ...'
237
253
  end
238
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
254
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
239
255
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
240
256
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
241
257
  end
@@ -263,6 +279,14 @@ module PulpHuggingFaceClient
263
279
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
264
280
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
265
281
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
282
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
283
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
284
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
285
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
286
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
287
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
288
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
289
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
266
290
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
267
291
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
268
292
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -19,6 +19,9 @@ module PulpHuggingFaceClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -72,6 +75,7 @@ module PulpHuggingFaceClient
72
75
  def self.attribute_map
73
76
  {
74
77
  :'repository' => :'repository',
78
+ :'overwrite' => :'overwrite',
75
79
  :'pulp_labels' => :'pulp_labels',
76
80
  :'artifact' => :'artifact',
77
81
  :'relative_path' => :'relative_path',
@@ -93,6 +97,7 @@ module PulpHuggingFaceClient
93
97
  def self.openapi_types
94
98
  {
95
99
  :'repository' => :'String',
100
+ :'overwrite' => :'Boolean',
96
101
  :'pulp_labels' => :'Hash<String, String>',
97
102
  :'artifact' => :'String',
98
103
  :'relative_path' => :'String',
@@ -133,6 +138,10 @@ module PulpHuggingFaceClient
133
138
  self.repository = attributes[:'repository']
134
139
  end
135
140
 
141
+ if attributes.key?(:'overwrite')
142
+ self.overwrite = attributes[:'overwrite']
143
+ end
144
+
136
145
  if attributes.key?(:'pulp_labels')
137
146
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
138
147
  self.pulp_labels = value
@@ -288,6 +297,7 @@ module PulpHuggingFaceClient
288
297
  return true if self.equal?(o)
289
298
  self.class == o.class &&
290
299
  repository == o.repository &&
300
+ overwrite == o.overwrite &&
291
301
  pulp_labels == o.pulp_labels &&
292
302
  artifact == o.artifact &&
293
303
  relative_path == o.relative_path &&
@@ -308,7 +318,7 @@ module PulpHuggingFaceClient
308
318
  # Calculates hash code according to all attributes.
309
319
  # @return [Integer] Hash code
310
320
  def hash
311
- [repository, pulp_labels, artifact, relative_path, repo_id, repo_type, revision, size, etag, last_modified].hash
321
+ [repository, overwrite, pulp_labels, artifact, relative_path, repo_id, repo_type, revision, size, etag, last_modified].hash
312
322
  end
313
323
 
314
324
  # Builds the object from hash
@@ -33,6 +33,9 @@ module PulpHuggingFaceClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # RepositoryVersion to be served
37
+ attr_accessor :repository_version
38
+
36
39
  # Publication to be served
37
40
  attr_accessor :publication
38
41
 
@@ -48,6 +51,7 @@ module PulpHuggingFaceClient
48
51
  :'pulp_labels' => :'pulp_labels',
49
52
  :'name' => :'name',
50
53
  :'repository' => :'repository',
54
+ :'repository_version' => :'repository_version',
51
55
  :'publication' => :'publication',
52
56
  :'remote' => :'remote'
53
57
  }
@@ -67,6 +71,7 @@ module PulpHuggingFaceClient
67
71
  :'pulp_labels' => :'Hash<String, String>',
68
72
  :'name' => :'String',
69
73
  :'repository' => :'String',
74
+ :'repository_version' => :'String',
70
75
  :'publication' => :'String',
71
76
  :'remote' => :'String'
72
77
  }
@@ -77,6 +82,7 @@ module PulpHuggingFaceClient
77
82
  Set.new([
78
83
  :'content_guard',
79
84
  :'repository',
85
+ :'repository_version',
80
86
  :'publication',
81
87
  :'remote'
82
88
  ])
@@ -129,6 +135,10 @@ module PulpHuggingFaceClient
129
135
  self.repository = attributes[:'repository']
130
136
  end
131
137
 
138
+ if attributes.key?(:'repository_version')
139
+ self.repository_version = attributes[:'repository_version']
140
+ end
141
+
132
142
  if attributes.key?(:'publication')
133
143
  self.publication = attributes[:'publication']
134
144
  end
@@ -212,6 +222,7 @@ module PulpHuggingFaceClient
212
222
  pulp_labels == o.pulp_labels &&
213
223
  name == o.name &&
214
224
  repository == o.repository &&
225
+ repository_version == o.repository_version &&
215
226
  publication == o.publication &&
216
227
  remote == o.remote
217
228
  end
@@ -225,7 +236,7 @@ module PulpHuggingFaceClient
225
236
  # Calculates hash code according to all attributes.
226
237
  # @return [Integer] Hash code
227
238
  def hash
228
- [base_path, content_guard, hidden, pulp_labels, name, repository, publication, remote].hash
239
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, remote].hash
229
240
  end
230
241
 
231
242
  # Builds the object from hash
@@ -36,6 +36,9 @@ module PulpHuggingFaceClient
36
36
  # An optional content-guard.
37
37
  attr_accessor :content_guard
38
38
 
39
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
40
+ attr_accessor :content_guard_prn
41
+
39
42
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
43
  attr_accessor :no_content_change_since
41
44
 
@@ -50,6 +53,9 @@ module PulpHuggingFaceClient
50
53
  # The latest RepositoryVersion for this Repository will be served.
51
54
  attr_accessor :repository
52
55
 
56
+ # RepositoryVersion to be served
57
+ attr_accessor :repository_version
58
+
53
59
  # Publication to be served
54
60
  attr_accessor :publication
55
61
 
@@ -66,11 +72,13 @@ module PulpHuggingFaceClient
66
72
  :'base_path' => :'base_path',
67
73
  :'base_url' => :'base_url',
68
74
  :'content_guard' => :'content_guard',
75
+ :'content_guard_prn' => :'content_guard_prn',
69
76
  :'no_content_change_since' => :'no_content_change_since',
70
77
  :'hidden' => :'hidden',
71
78
  :'pulp_labels' => :'pulp_labels',
72
79
  :'name' => :'name',
73
80
  :'repository' => :'repository',
81
+ :'repository_version' => :'repository_version',
74
82
  :'publication' => :'publication',
75
83
  :'remote' => :'remote'
76
84
  }
@@ -91,11 +99,13 @@ module PulpHuggingFaceClient
91
99
  :'base_path' => :'String',
92
100
  :'base_url' => :'String',
93
101
  :'content_guard' => :'String',
102
+ :'content_guard_prn' => :'String',
94
103
  :'no_content_change_since' => :'String',
95
104
  :'hidden' => :'Boolean',
96
105
  :'pulp_labels' => :'Hash<String, String>',
97
106
  :'name' => :'String',
98
107
  :'repository' => :'String',
108
+ :'repository_version' => :'String',
99
109
  :'publication' => :'String',
100
110
  :'remote' => :'String'
101
111
  }
@@ -106,6 +116,7 @@ module PulpHuggingFaceClient
106
116
  Set.new([
107
117
  :'content_guard',
108
118
  :'repository',
119
+ :'repository_version',
109
120
  :'publication',
110
121
  :'remote'
111
122
  ])
@@ -156,6 +167,10 @@ module PulpHuggingFaceClient
156
167
  self.content_guard = attributes[:'content_guard']
157
168
  end
158
169
 
170
+ if attributes.key?(:'content_guard_prn')
171
+ self.content_guard_prn = attributes[:'content_guard_prn']
172
+ end
173
+
159
174
  if attributes.key?(:'no_content_change_since')
160
175
  self.no_content_change_since = attributes[:'no_content_change_since']
161
176
  end
@@ -182,6 +197,10 @@ module PulpHuggingFaceClient
182
197
  self.repository = attributes[:'repository']
183
198
  end
184
199
 
200
+ if attributes.key?(:'repository_version')
201
+ self.repository_version = attributes[:'repository_version']
202
+ end
203
+
185
204
  if attributes.key?(:'publication')
186
205
  self.publication = attributes[:'publication']
187
206
  end
@@ -228,11 +247,13 @@ module PulpHuggingFaceClient
228
247
  base_path == o.base_path &&
229
248
  base_url == o.base_url &&
230
249
  content_guard == o.content_guard &&
250
+ content_guard_prn == o.content_guard_prn &&
231
251
  no_content_change_since == o.no_content_change_since &&
232
252
  hidden == o.hidden &&
233
253
  pulp_labels == o.pulp_labels &&
234
254
  name == o.name &&
235
255
  repository == o.repository &&
256
+ repository_version == o.repository_version &&
236
257
  publication == o.publication &&
237
258
  remote == o.remote
238
259
  end
@@ -246,7 +267,7 @@ module PulpHuggingFaceClient
246
267
  # Calculates hash code according to all attributes.
247
268
  # @return [Integer] Hash code
248
269
  def hash
249
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, remote].hash
270
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version, publication, remote].hash
250
271
  end
251
272
 
252
273
  # Builds the object from hash
@@ -22,6 +22,11 @@ module PulpHuggingFaceClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' enables pull-through caching. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpHuggingFaceClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'on_demand' enables pull-through caching. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpHuggingFaceClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -111,6 +111,8 @@ module PulpHuggingFaceClient
111
111
  {
112
112
  :'name' => :'name',
113
113
  :'url' => :'url',
114
+ :'pulp_labels' => :'pulp_labels',
115
+ :'policy' => :'policy',
114
116
  :'ca_cert' => :'ca_cert',
115
117
  :'client_cert' => :'client_cert',
116
118
  :'client_key' => :'client_key',
@@ -120,15 +122,13 @@ module PulpHuggingFaceClient
120
122
  :'proxy_password' => :'proxy_password',
121
123
  :'username' => :'username',
122
124
  :'password' => :'password',
123
- :'pulp_labels' => :'pulp_labels',
124
- :'download_concurrency' => :'download_concurrency',
125
125
  :'max_retries' => :'max_retries',
126
- :'policy' => :'policy',
127
126
  :'total_timeout' => :'total_timeout',
128
127
  :'connect_timeout' => :'connect_timeout',
129
128
  :'sock_connect_timeout' => :'sock_connect_timeout',
130
129
  :'sock_read_timeout' => :'sock_read_timeout',
131
130
  :'headers' => :'headers',
131
+ :'download_concurrency' => :'download_concurrency',
132
132
  :'rate_limit' => :'rate_limit',
133
133
  :'hf_hub_url' => :'hf_hub_url',
134
134
  :'hf_token' => :'hf_token'
@@ -145,6 +145,8 @@ module PulpHuggingFaceClient
145
145
  {
146
146
  :'name' => :'String',
147
147
  :'url' => :'String',
148
+ :'pulp_labels' => :'Hash<String, String>',
149
+ :'policy' => :'PolicyEnum',
148
150
  :'ca_cert' => :'String',
149
151
  :'client_cert' => :'String',
150
152
  :'client_key' => :'String',
@@ -154,15 +156,13 @@ module PulpHuggingFaceClient
154
156
  :'proxy_password' => :'String',
155
157
  :'username' => :'String',
156
158
  :'password' => :'String',
157
- :'pulp_labels' => :'Hash<String, String>',
158
- :'download_concurrency' => :'Integer',
159
159
  :'max_retries' => :'Integer',
160
- :'policy' => :'PolicyEnum',
161
160
  :'total_timeout' => :'Float',
162
161
  :'connect_timeout' => :'Float',
163
162
  :'sock_connect_timeout' => :'Float',
164
163
  :'sock_read_timeout' => :'Float',
165
164
  :'headers' => :'Array<Object>',
165
+ :'download_concurrency' => :'Integer',
166
166
  :'rate_limit' => :'Integer',
167
167
  :'hf_hub_url' => :'String',
168
168
  :'hf_token' => :'String'
@@ -180,12 +180,12 @@ module PulpHuggingFaceClient
180
180
  :'proxy_password',
181
181
  :'username',
182
182
  :'password',
183
- :'download_concurrency',
184
183
  :'max_retries',
185
184
  :'total_timeout',
186
185
  :'connect_timeout',
187
186
  :'sock_connect_timeout',
188
187
  :'sock_read_timeout',
188
+ :'download_concurrency',
189
189
  :'rate_limit',
190
190
  :'hf_token'
191
191
  ])
@@ -218,6 +218,16 @@ module PulpHuggingFaceClient
218
218
  self.url = nil
219
219
  end
220
220
 
221
+ if attributes.key?(:'pulp_labels')
222
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
223
+ self.pulp_labels = value
224
+ end
225
+ end
226
+
227
+ if attributes.key?(:'policy')
228
+ self.policy = attributes[:'policy']
229
+ end
230
+
221
231
  if attributes.key?(:'ca_cert')
222
232
  self.ca_cert = attributes[:'ca_cert']
223
233
  end
@@ -254,24 +264,10 @@ module PulpHuggingFaceClient
254
264
  self.password = attributes[:'password']
255
265
  end
256
266
 
257
- if attributes.key?(:'pulp_labels')
258
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
259
- self.pulp_labels = value
260
- end
261
- end
262
-
263
- if attributes.key?(:'download_concurrency')
264
- self.download_concurrency = attributes[:'download_concurrency']
265
- end
266
-
267
267
  if attributes.key?(:'max_retries')
268
268
  self.max_retries = attributes[:'max_retries']
269
269
  end
270
270
 
271
- if attributes.key?(:'policy')
272
- self.policy = attributes[:'policy']
273
- end
274
-
275
271
  if attributes.key?(:'total_timeout')
276
272
  self.total_timeout = attributes[:'total_timeout']
277
273
  end
@@ -294,6 +290,10 @@ module PulpHuggingFaceClient
294
290
  end
295
291
  end
296
292
 
293
+ if attributes.key?(:'download_concurrency')
294
+ self.download_concurrency = attributes[:'download_concurrency']
295
+ end
296
+
297
297
  if attributes.key?(:'rate_limit')
298
298
  self.rate_limit = attributes[:'rate_limit']
299
299
  end
@@ -378,6 +378,10 @@ module PulpHuggingFaceClient
378
378
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
379
379
  end
380
380
 
381
+ if !@download_concurrency.nil? && @download_concurrency < 1
382
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
383
+ end
384
+
381
385
  if !@hf_hub_url.nil? && @hf_hub_url.to_s.length < 1
382
386
  invalid_properties.push('invalid value for "hf_hub_url", the character length must be great than or equal to 1.')
383
387
  end
@@ -405,6 +409,7 @@ module PulpHuggingFaceClient
405
409
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
406
410
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
407
411
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
412
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
408
413
  return false if !@hf_hub_url.nil? && @hf_hub_url.to_s.length < 1
409
414
  true
410
415
  end
@@ -557,6 +562,16 @@ module PulpHuggingFaceClient
557
562
  @sock_read_timeout = sock_read_timeout
558
563
  end
559
564
 
565
+ # Custom attribute writer method with validation
566
+ # @param [Object] download_concurrency Value to be assigned
567
+ def download_concurrency=(download_concurrency)
568
+ if !download_concurrency.nil? && download_concurrency < 1
569
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
570
+ end
571
+
572
+ @download_concurrency = download_concurrency
573
+ end
574
+
560
575
  # Custom attribute writer method with validation
561
576
  # @param [Object] hf_hub_url Value to be assigned
562
577
  def hf_hub_url=(hf_hub_url)
@@ -578,6 +593,8 @@ module PulpHuggingFaceClient
578
593
  self.class == o.class &&
579
594
  name == o.name &&
580
595
  url == o.url &&
596
+ pulp_labels == o.pulp_labels &&
597
+ policy == o.policy &&
581
598
  ca_cert == o.ca_cert &&
582
599
  client_cert == o.client_cert &&
583
600
  client_key == o.client_key &&
@@ -587,15 +604,13 @@ module PulpHuggingFaceClient
587
604
  proxy_password == o.proxy_password &&
588
605
  username == o.username &&
589
606
  password == o.password &&
590
- pulp_labels == o.pulp_labels &&
591
- download_concurrency == o.download_concurrency &&
592
607
  max_retries == o.max_retries &&
593
- policy == o.policy &&
594
608
  total_timeout == o.total_timeout &&
595
609
  connect_timeout == o.connect_timeout &&
596
610
  sock_connect_timeout == o.sock_connect_timeout &&
597
611
  sock_read_timeout == o.sock_read_timeout &&
598
612
  headers == o.headers &&
613
+ download_concurrency == o.download_concurrency &&
599
614
  rate_limit == o.rate_limit &&
600
615
  hf_hub_url == o.hf_hub_url &&
601
616
  hf_token == o.hf_token
@@ -610,7 +625,7 @@ module PulpHuggingFaceClient
610
625
  # Calculates hash code according to all attributes.
611
626
  # @return [Integer] Hash code
612
627
  def hash
613
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hf_hub_url, hf_token].hash
628
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit, hf_hub_url, hf_token].hash
614
629
  end
615
630
 
616
631
  # Builds the object from hash