pulp_hugging_face_client 0.0.1 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/HuggingFaceHuggingFaceContentResponse.md +2 -0
- data/docs/HuggingFaceHuggingFaceRemoteResponse.md +1 -1
- data/docs/RepositoriesHuggingFaceVersionsApi.md +2 -2
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_hugging_face_client/api/repositories_hugging_face_versions_api.rb +3 -3
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_content_response.rb +10 -1
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote.rb +0 -15
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote_response.rb +0 -15
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository.rb +0 -15
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository_response.rb +0 -15
- data/lib/pulp_hugging_face_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_content_response_list.rb +0 -2
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_distribution_response_list.rb +0 -2
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_publication_response_list.rb +0 -2
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_remote_response_list.rb +0 -2
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_repository_response_list.rb +0 -2
- data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_remote.rb +0 -15
- data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_repository.rb +0 -15
- data/lib/pulp_hugging_face_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_hugging_face_client/version.rb +1 -1
- data/spec/api/repositories_hugging_face_versions_api_spec.rb +1 -1
- data/spec/models/hugging_face_hugging_face_content_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +27 -27
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f56343615d450acd592e9585d315015ff90dea3ef855c047087ba26928d0e87
|
|
4
|
+
data.tar.gz: 9a6d0d0f7c3331a1a92924854f850fbdef1780905de622d0953a78ff6591ff5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3bff07eaf663f0ede8ca6473edf23db66a6b215aa186c5e05be96600ee8ffb53ac11f76c717a5e8bece0bacc85b3a052fa1501f1a6bb3374887b065e8ee2134
|
|
7
|
+
data.tar.gz: 31159572243a0b6f5adf82f0707ac7793726e43b4b97fe8bfb29bdd7c8df70aca0f88b08858c8d4a9eeb5686c0c81c53fd5fae5b48946936c64dd30cd8aa579e
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.0
|
|
10
|
+
- Package version: 0.1.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_hugging_face_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_hugging_face_client-0.0.
|
|
28
|
+
gem install ./pulp_hugging_face_client-0.1.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_hugging_face_client-0.0.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_hugging_face_client-0.1.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_hugging_face_client', '~> 0.0
|
|
37
|
+
gem 'pulp_hugging_face_client', '~> 0.1.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
10
10
|
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
11
11
|
| **pulp_labels** | **Hash<String, String>** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
|
|
12
|
+
| **vuln_report** | **String** | | [optional][readonly] |
|
|
12
13
|
| **artifact** | **String** | Artifact file representing the physical content | |
|
|
13
14
|
| **relative_path** | **String** | The relative path within the repository | |
|
|
14
15
|
| **repo_id** | **String** | The Hugging Face repository ID (e.g., 'microsoft/DialoGPT-medium') | |
|
|
@@ -29,6 +30,7 @@ instance = PulpHuggingFaceClient::HuggingFaceHuggingFaceContentResponse.new(
|
|
|
29
30
|
pulp_created: null,
|
|
30
31
|
pulp_last_updated: null,
|
|
31
32
|
pulp_labels: null,
|
|
33
|
+
vuln_report: null,
|
|
32
34
|
artifact: null,
|
|
33
35
|
relative_path: null,
|
|
34
36
|
repo_id: null,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional] |
|
|
25
25
|
| **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional] |
|
|
26
26
|
| **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional] |
|
|
27
|
-
| **hidden_fields** | [**Array<HuggingFaceHuggingFaceRemoteResponseHiddenFieldsInner>**](HuggingFaceHuggingFaceRemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional]
|
|
27
|
+
| **hidden_fields** | [**Array<HuggingFaceHuggingFaceRemoteResponseHiddenFieldsInner>**](HuggingFaceHuggingFaceRemoteResponseHiddenFieldsInner.md) | List of hidden (write only) fields | [optional] |
|
|
28
28
|
| **hf_hub_url** | **String** | Base URL for Hugging Face Hub | [optional][default to 'https://huggingface.co'] |
|
|
29
29
|
| **hf_token** | **String** | Hugging Face authentication token for private repositories | [optional] |
|
|
30
30
|
|
|
@@ -118,7 +118,7 @@ opts = {
|
|
|
118
118
|
number__lte: 56, # Integer | Filter results where number is less than or equal to value
|
|
119
119
|
number__range: [37], # Array<Integer> | Filter results where number is between two comma separated values
|
|
120
120
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
121
|
-
ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
121
|
+
ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
122
122
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
123
123
|
pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
|
|
124
124
|
pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
|
|
@@ -176,7 +176,7 @@ end
|
|
|
176
176
|
| **number__lte** | **Integer** | Filter results where number is less than or equal to value | [optional] |
|
|
177
177
|
| **number__range** | [**Array<Integer>**](Integer.md) | Filter results where number is between two comma separated values | [optional] |
|
|
178
178
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
179
|
-
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
179
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
180
180
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
181
181
|
| **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
|
|
182
182
|
| **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **repository** | **String** | | [optional][readonly] |
|
|
13
13
|
| **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional] |
|
|
14
14
|
| **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional][readonly] |
|
|
15
|
+
| **vuln_report** | **String** | | [optional][readonly] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,7 +27,8 @@ instance = PulpHuggingFaceClient::RepositoryVersionResponse.new(
|
|
|
26
27
|
number: null,
|
|
27
28
|
repository: null,
|
|
28
29
|
base_version: null,
|
|
29
|
-
content_summary: null
|
|
30
|
+
content_summary: null,
|
|
31
|
+
vuln_report: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -100,7 +100,7 @@ module PulpHuggingFaceClient
|
|
|
100
100
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
101
101
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
102
102
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
103
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
103
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
104
104
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
105
105
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
|
106
106
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
@@ -134,7 +134,7 @@ module PulpHuggingFaceClient
|
|
|
134
134
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
135
135
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
136
136
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
137
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
137
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
138
138
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
139
139
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
|
140
140
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
@@ -156,7 +156,7 @@ module PulpHuggingFaceClient
|
|
|
156
156
|
if @api_client.config.client_side_validation && hugging_face_hugging_face_repository_href.nil?
|
|
157
157
|
fail ArgumentError, "Missing the required parameter 'hugging_face_hugging_face_repository_href' when calling RepositoriesHuggingFaceVersionsApi.list"
|
|
158
158
|
end
|
|
159
|
-
allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
|
159
|
+
allowable_values = ["-complete", "-content_ids", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "content_ids", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
|
160
160
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
161
161
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
162
162
|
end
|
|
@@ -30,6 +30,8 @@ module PulpHuggingFaceClient
|
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
31
|
attr_accessor :pulp_labels
|
|
32
32
|
|
|
33
|
+
attr_accessor :vuln_report
|
|
34
|
+
|
|
33
35
|
# Artifact file representing the physical content
|
|
34
36
|
attr_accessor :artifact
|
|
35
37
|
|
|
@@ -84,6 +86,7 @@ module PulpHuggingFaceClient
|
|
|
84
86
|
:'pulp_created' => :'pulp_created',
|
|
85
87
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
88
|
:'pulp_labels' => :'pulp_labels',
|
|
89
|
+
:'vuln_report' => :'vuln_report',
|
|
87
90
|
:'artifact' => :'artifact',
|
|
88
91
|
:'relative_path' => :'relative_path',
|
|
89
92
|
:'repo_id' => :'repo_id',
|
|
@@ -108,6 +111,7 @@ module PulpHuggingFaceClient
|
|
|
108
111
|
:'pulp_created' => :'Time',
|
|
109
112
|
:'pulp_last_updated' => :'Time',
|
|
110
113
|
:'pulp_labels' => :'Hash<String, String>',
|
|
114
|
+
:'vuln_report' => :'String',
|
|
111
115
|
:'artifact' => :'String',
|
|
112
116
|
:'relative_path' => :'String',
|
|
113
117
|
:'repo_id' => :'String',
|
|
@@ -165,6 +169,10 @@ module PulpHuggingFaceClient
|
|
|
165
169
|
end
|
|
166
170
|
end
|
|
167
171
|
|
|
172
|
+
if attributes.key?(:'vuln_report')
|
|
173
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
174
|
+
end
|
|
175
|
+
|
|
168
176
|
if attributes.key?(:'artifact')
|
|
169
177
|
self.artifact = attributes[:'artifact']
|
|
170
178
|
else
|
|
@@ -246,6 +254,7 @@ module PulpHuggingFaceClient
|
|
|
246
254
|
pulp_created == o.pulp_created &&
|
|
247
255
|
pulp_last_updated == o.pulp_last_updated &&
|
|
248
256
|
pulp_labels == o.pulp_labels &&
|
|
257
|
+
vuln_report == o.vuln_report &&
|
|
249
258
|
artifact == o.artifact &&
|
|
250
259
|
relative_path == o.relative_path &&
|
|
251
260
|
repo_id == o.repo_id &&
|
|
@@ -265,7 +274,7 @@ module PulpHuggingFaceClient
|
|
|
265
274
|
# Calculates hash code according to all attributes.
|
|
266
275
|
# @return [Integer] Hash code
|
|
267
276
|
def hash
|
|
268
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, repo_id, repo_type, revision, size, etag, last_modified].hash
|
|
277
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, repo_id, repo_type, revision, size, etag, last_modified].hash
|
|
269
278
|
end
|
|
270
279
|
|
|
271
280
|
# Builds the object from hash
|
|
@@ -362,10 +362,6 @@ module PulpHuggingFaceClient
|
|
|
362
362
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
363
363
|
end
|
|
364
364
|
|
|
365
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
366
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
367
|
-
end
|
|
368
|
-
|
|
369
365
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
370
366
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
371
367
|
end
|
|
@@ -405,7 +401,6 @@ module PulpHuggingFaceClient
|
|
|
405
401
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
406
402
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
407
403
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
408
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
409
404
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
410
405
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
411
406
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
@@ -522,16 +517,6 @@ module PulpHuggingFaceClient
|
|
|
522
517
|
@password = password
|
|
523
518
|
end
|
|
524
519
|
|
|
525
|
-
# Custom attribute writer method with validation
|
|
526
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
527
|
-
def download_concurrency=(download_concurrency)
|
|
528
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
529
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
530
|
-
end
|
|
531
|
-
|
|
532
|
-
@download_concurrency = download_concurrency
|
|
533
|
-
end
|
|
534
|
-
|
|
535
520
|
# Custom attribute writer method with validation
|
|
536
521
|
# @param [Object] total_timeout Value to be assigned
|
|
537
522
|
def total_timeout=(total_timeout)
|
|
@@ -318,10 +318,6 @@ module PulpHuggingFaceClient
|
|
|
318
318
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
319
319
|
end
|
|
320
320
|
|
|
321
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
322
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
323
|
-
end
|
|
324
|
-
|
|
325
321
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
326
322
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
327
323
|
end
|
|
@@ -347,7 +343,6 @@ module PulpHuggingFaceClient
|
|
|
347
343
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
348
344
|
return false if @name.nil?
|
|
349
345
|
return false if @url.nil?
|
|
350
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
351
346
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
352
347
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
353
348
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
@@ -355,16 +350,6 @@ module PulpHuggingFaceClient
|
|
|
355
350
|
true
|
|
356
351
|
end
|
|
357
352
|
|
|
358
|
-
# Custom attribute writer method with validation
|
|
359
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
360
|
-
def download_concurrency=(download_concurrency)
|
|
361
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
362
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
@download_concurrency = download_concurrency
|
|
366
|
-
end
|
|
367
|
-
|
|
368
353
|
# Custom attribute writer method with validation
|
|
369
354
|
# @param [Object] total_timeout Value to be assigned
|
|
370
355
|
def total_timeout=(total_timeout)
|
|
@@ -123,10 +123,6 @@ module PulpHuggingFaceClient
|
|
|
123
123
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
127
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
128
|
-
end
|
|
129
|
-
|
|
130
126
|
invalid_properties
|
|
131
127
|
end
|
|
132
128
|
|
|
@@ -137,7 +133,6 @@ module PulpHuggingFaceClient
|
|
|
137
133
|
return false if @name.nil?
|
|
138
134
|
return false if @name.to_s.length < 1
|
|
139
135
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
140
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
141
136
|
true
|
|
142
137
|
end
|
|
143
138
|
|
|
@@ -165,16 +160,6 @@ module PulpHuggingFaceClient
|
|
|
165
160
|
@description = description
|
|
166
161
|
end
|
|
167
162
|
|
|
168
|
-
# Custom attribute writer method with validation
|
|
169
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
170
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
171
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
172
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
@retain_repo_versions = retain_repo_versions
|
|
176
|
-
end
|
|
177
|
-
|
|
178
163
|
# Checks equality by comparing each attribute.
|
|
179
164
|
# @param [Object] Object to be compared
|
|
180
165
|
def ==(o)
|
|
@@ -166,10 +166,6 @@ module PulpHuggingFaceClient
|
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
171
|
-
end
|
|
172
|
-
|
|
173
169
|
invalid_properties
|
|
174
170
|
end
|
|
175
171
|
|
|
@@ -178,20 +174,9 @@ module PulpHuggingFaceClient
|
|
|
178
174
|
def valid?
|
|
179
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
180
176
|
return false if @name.nil?
|
|
181
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
182
177
|
true
|
|
183
178
|
end
|
|
184
179
|
|
|
185
|
-
# Custom attribute writer method with validation
|
|
186
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
187
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
188
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
189
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
@retain_repo_versions = retain_repo_versions
|
|
193
|
-
end
|
|
194
|
-
|
|
195
180
|
# Checks equality by comparing each attribute.
|
|
196
181
|
# @param [Object] Object to be compared
|
|
197
182
|
def ==(o)
|
|
@@ -350,10 +350,6 @@ module PulpHuggingFaceClient
|
|
|
350
350
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
351
351
|
end
|
|
352
352
|
|
|
353
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
354
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
355
|
-
end
|
|
356
|
-
|
|
357
353
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
358
354
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
359
355
|
end
|
|
@@ -391,7 +387,6 @@ module PulpHuggingFaceClient
|
|
|
391
387
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
392
388
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
393
389
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
394
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
395
390
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
396
391
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
397
392
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
@@ -508,16 +503,6 @@ module PulpHuggingFaceClient
|
|
|
508
503
|
@password = password
|
|
509
504
|
end
|
|
510
505
|
|
|
511
|
-
# Custom attribute writer method with validation
|
|
512
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
513
|
-
def download_concurrency=(download_concurrency)
|
|
514
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
515
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
516
|
-
end
|
|
517
|
-
|
|
518
|
-
@download_concurrency = download_concurrency
|
|
519
|
-
end
|
|
520
|
-
|
|
521
506
|
# Custom attribute writer method with validation
|
|
522
507
|
# @param [Object] total_timeout Value to be assigned
|
|
523
508
|
def total_timeout=(total_timeout)
|
|
@@ -117,10 +117,6 @@ module PulpHuggingFaceClient
|
|
|
117
117
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
121
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
122
|
-
end
|
|
123
|
-
|
|
124
120
|
invalid_properties
|
|
125
121
|
end
|
|
126
122
|
|
|
@@ -130,7 +126,6 @@ module PulpHuggingFaceClient
|
|
|
130
126
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
127
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
132
128
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
133
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
134
129
|
true
|
|
135
130
|
end
|
|
136
131
|
|
|
@@ -158,16 +153,6 @@ module PulpHuggingFaceClient
|
|
|
158
153
|
@description = description
|
|
159
154
|
end
|
|
160
155
|
|
|
161
|
-
# Custom attribute writer method with validation
|
|
162
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
163
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
164
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
165
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
@retain_repo_versions = retain_repo_versions
|
|
169
|
-
end
|
|
170
|
-
|
|
171
156
|
# Checks equality by comparing each attribute.
|
|
172
157
|
# @param [Object] Object to be compared
|
|
173
158
|
def ==(o)
|
|
@@ -37,6 +37,8 @@ module PulpHuggingFaceClient
|
|
|
37
37
|
# Various count summaries of the content in the version and the HREF to view them.
|
|
38
38
|
attr_accessor :content_summary
|
|
39
39
|
|
|
40
|
+
attr_accessor :vuln_report
|
|
41
|
+
|
|
40
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
43
|
def self.attribute_map
|
|
42
44
|
{
|
|
@@ -47,7 +49,8 @@ module PulpHuggingFaceClient
|
|
|
47
49
|
:'number' => :'number',
|
|
48
50
|
:'repository' => :'repository',
|
|
49
51
|
:'base_version' => :'base_version',
|
|
50
|
-
:'content_summary' => :'content_summary'
|
|
52
|
+
:'content_summary' => :'content_summary',
|
|
53
|
+
:'vuln_report' => :'vuln_report'
|
|
51
54
|
}
|
|
52
55
|
end
|
|
53
56
|
|
|
@@ -66,7 +69,8 @@ module PulpHuggingFaceClient
|
|
|
66
69
|
:'number' => :'Integer',
|
|
67
70
|
:'repository' => :'String',
|
|
68
71
|
:'base_version' => :'String',
|
|
69
|
-
:'content_summary' => :'ContentSummaryResponse'
|
|
72
|
+
:'content_summary' => :'ContentSummaryResponse',
|
|
73
|
+
:'vuln_report' => :'String'
|
|
70
74
|
}
|
|
71
75
|
end
|
|
72
76
|
|
|
@@ -122,6 +126,10 @@ module PulpHuggingFaceClient
|
|
|
122
126
|
if attributes.key?(:'content_summary')
|
|
123
127
|
self.content_summary = attributes[:'content_summary']
|
|
124
128
|
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'vuln_report')
|
|
131
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
132
|
+
end
|
|
125
133
|
end
|
|
126
134
|
|
|
127
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -151,7 +159,8 @@ module PulpHuggingFaceClient
|
|
|
151
159
|
number == o.number &&
|
|
152
160
|
repository == o.repository &&
|
|
153
161
|
base_version == o.base_version &&
|
|
154
|
-
content_summary == o.content_summary
|
|
162
|
+
content_summary == o.content_summary &&
|
|
163
|
+
vuln_report == o.vuln_report
|
|
155
164
|
end
|
|
156
165
|
|
|
157
166
|
# @see the `==` method
|
|
@@ -163,7 +172,7 @@ module PulpHuggingFaceClient
|
|
|
163
172
|
# Calculates hash code according to all attributes.
|
|
164
173
|
# @return [Integer] Hash code
|
|
165
174
|
def hash
|
|
166
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
|
175
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary, vuln_report].hash
|
|
167
176
|
end
|
|
168
177
|
|
|
169
178
|
# Builds the object from hash
|
|
@@ -61,7 +61,7 @@ describe 'RepositoriesHuggingFaceVersionsApi' do
|
|
|
61
61
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
62
62
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
63
63
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
64
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
64
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
65
65
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
66
66
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
|
67
67
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
@@ -57,6 +57,12 @@ describe PulpHuggingFaceClient::HuggingFaceHuggingFaceContentResponse do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "vuln_report"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
60
66
|
describe 'test attribute "artifact"' do
|
|
61
67
|
it 'should work' do
|
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -75,4 +75,10 @@ describe PulpHuggingFaceClient::RepositoryVersionResponse do
|
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
describe 'test attribute "vuln_report"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
78
84
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_hugging_face_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -233,42 +233,42 @@ signing_key:
|
|
|
233
233
|
specification_version: 4
|
|
234
234
|
summary: Pulp 3 API Ruby Gem
|
|
235
235
|
test_files:
|
|
236
|
-
- spec/api/
|
|
236
|
+
- spec/api/repositories_hugging_face_versions_api_spec.rb
|
|
237
237
|
- spec/api/repositories_hugging_face_api_spec.rb
|
|
238
238
|
- spec/api/content_hugging_face_api_spec.rb
|
|
239
|
-
- spec/api/remotes_hugging_face_api_spec.rb
|
|
240
|
-
- spec/api/repositories_hugging_face_versions_api_spec.rb
|
|
241
239
|
- spec/api/publications_hugging_face_api_spec.rb
|
|
242
|
-
- spec/
|
|
243
|
-
- spec/
|
|
240
|
+
- spec/api/remotes_hugging_face_api_spec.rb
|
|
241
|
+
- spec/api/distributions_hugging_face_api_spec.rb
|
|
242
|
+
- spec/models/paginatedhugging_face_hugging_face_remote_response_list_spec.rb
|
|
243
|
+
- spec/models/paginatedhugging_face_hugging_face_distribution_response_list_spec.rb
|
|
244
|
+
- spec/models/repo_type_enum_spec.rb
|
|
245
|
+
- spec/models/hugging_face_hugging_face_distribution_spec.rb
|
|
246
|
+
- spec/models/hugging_face_hugging_face_remote_response_hidden_fields_inner_spec.rb
|
|
247
|
+
- spec/models/set_label_response_spec.rb
|
|
248
|
+
- spec/models/repository_version_response_spec.rb
|
|
244
249
|
- spec/models/hugging_face_hugging_face_distribution_response_spec.rb
|
|
245
|
-
- spec/models/
|
|
246
|
-
- spec/models/content_summary_response_spec.rb
|
|
247
|
-
- spec/models/hugging_face_hugging_face_repository_response_spec.rb
|
|
250
|
+
- spec/models/paginatedhugging_face_hugging_face_repository_response_list_spec.rb
|
|
248
251
|
- spec/models/patchedhugging_face_hugging_face_remote_spec.rb
|
|
249
|
-
- spec/models/
|
|
252
|
+
- spec/models/async_operation_response_spec.rb
|
|
253
|
+
- spec/models/set_label_spec.rb
|
|
254
|
+
- spec/models/unset_label_response_spec.rb
|
|
250
255
|
- spec/models/policy_enum_spec.rb
|
|
251
|
-
- spec/models/paginatedhugging_face_hugging_face_remote_response_list_spec.rb
|
|
252
256
|
- spec/models/paginatedhugging_face_hugging_face_publication_response_list_spec.rb
|
|
253
|
-
- spec/models/
|
|
257
|
+
- spec/models/paginatedhugging_face_hugging_face_content_response_list_spec.rb
|
|
258
|
+
- spec/models/content_summary_response_spec.rb
|
|
254
259
|
- spec/models/hugging_face_hugging_face_publication_spec.rb
|
|
255
|
-
- spec/models/repair_spec.rb
|
|
256
|
-
- spec/models/paginatedhugging_face_hugging_face_distribution_response_list_spec.rb
|
|
257
|
-
- spec/models/hugging_face_hugging_face_content_response_spec.rb
|
|
258
|
-
- spec/models/repository_add_remove_content_spec.rb
|
|
259
|
-
- spec/models/unset_label_response_spec.rb
|
|
260
|
-
- spec/models/repo_type_enum_spec.rb
|
|
261
|
-
- spec/models/hugging_face_hugging_face_remote_spec.rb
|
|
262
|
-
- spec/models/set_label_spec.rb
|
|
263
260
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
264
|
-
- spec/models/
|
|
265
|
-
- spec/models/
|
|
266
|
-
- spec/models/set_label_response_spec.rb
|
|
261
|
+
- spec/models/repository_add_remove_content_spec.rb
|
|
262
|
+
- spec/models/hugging_face_hugging_face_publication_response_spec.rb
|
|
267
263
|
- spec/models/hugging_face_hugging_face_remote_response_spec.rb
|
|
268
264
|
- spec/models/repository_sync_url_spec.rb
|
|
265
|
+
- spec/models/patchedhugging_face_hugging_face_repository_spec.rb
|
|
266
|
+
- spec/models/repair_spec.rb
|
|
267
|
+
- spec/models/hugging_face_hugging_face_remote_spec.rb
|
|
268
|
+
- spec/models/hugging_face_hugging_face_repository_response_spec.rb
|
|
269
|
+
- spec/models/unset_label_spec.rb
|
|
269
270
|
- spec/models/patchedhugging_face_hugging_face_distribution_spec.rb
|
|
270
|
-
- spec/models/
|
|
271
|
-
- spec/models/
|
|
272
|
-
- spec/models/paginatedhugging_face_hugging_face_content_response_list_spec.rb
|
|
271
|
+
- spec/models/hugging_face_hugging_face_repository_spec.rb
|
|
272
|
+
- spec/models/hugging_face_hugging_face_content_response_spec.rb
|
|
273
273
|
- spec/models/hugging_face_hugging_face_content_spec.rb
|
|
274
274
|
- spec/spec_helper.rb
|