pulp_hugging_face_client 0.0.1 → 0.2.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/DistributionsHuggingFaceApi.md +10 -10
- data/docs/HuggingFaceHuggingFaceContentResponse.md +2 -0
- data/docs/HuggingFaceHuggingFaceRemoteResponse.md +1 -1
- data/docs/RemotesHuggingFaceApi.md +10 -10
- data/docs/RepositoriesHuggingFaceApi.md +10 -10
- data/docs/RepositoriesHuggingFaceVersionsApi.md +2 -2
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_hugging_face_client/api/distributions_hugging_face_api.rb +10 -10
- data/lib/pulp_hugging_face_client/api/remotes_hugging_face_api.rb +10 -10
- data/lib/pulp_hugging_face_client/api/repositories_hugging_face_api.rb +10 -10
- 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/distributions_hugging_face_api_spec.rb +4 -4
- data/spec/api/remotes_hugging_face_api_spec.rb +4 -4
- data/spec/api/repositories_hugging_face_api_spec.rb +4 -4
- 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 +28 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3903ed242399fa4fc58ce047bf927a966ea7089c1a7ab343444b15e32e1128f0
|
|
4
|
+
data.tar.gz: 72c85c20f753922b0885c81bb8385d92e50ac683e0672f058c51376498b26620
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 128506e00d153fcc255944f80eaa930387e622b9bef5dad6c29179304aefbb854f3ea98beca9c264ef6737116996f415b9b5f3c87c68ca9341ae04a7dacad856
|
|
7
|
+
data.tar.gz: 81317a34830e6d0deb5c413490e7c05efa12be8f3bbed7888ff67e0f0a045607f6dab12adc52048fc89f013c45b445d6313ba711c3b4ac8ff3d8c1ee8d665f36
|
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.2.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.2.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.2.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.2.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -290,11 +290,11 @@ end
|
|
|
290
290
|
|
|
291
291
|
## partial_update
|
|
292
292
|
|
|
293
|
-
> <
|
|
293
|
+
> <HuggingFaceHuggingFaceDistributionResponse> partial_update(hugging_face_hugging_face_distribution_href, patchedhugging_face_hugging_face_distribution, opts)
|
|
294
294
|
|
|
295
295
|
Update a hugging face distribution
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
298
298
|
|
|
299
299
|
### Examples
|
|
300
300
|
|
|
@@ -328,7 +328,7 @@ end
|
|
|
328
328
|
|
|
329
329
|
This returns an Array which contains the response data, status code and headers.
|
|
330
330
|
|
|
331
|
-
> <Array(<
|
|
331
|
+
> <Array(<HuggingFaceHuggingFaceDistributionResponse>, Integer, Hash)> partial_update_with_http_info(hugging_face_hugging_face_distribution_href, patchedhugging_face_hugging_face_distribution, opts)
|
|
332
332
|
|
|
333
333
|
```ruby
|
|
334
334
|
begin
|
|
@@ -336,7 +336,7 @@ begin
|
|
|
336
336
|
data, status_code, headers = api_instance.partial_update_with_http_info(hugging_face_hugging_face_distribution_href, patchedhugging_face_hugging_face_distribution, opts)
|
|
337
337
|
p status_code # => 2xx
|
|
338
338
|
p headers # => { ... }
|
|
339
|
-
p data # => <
|
|
339
|
+
p data # => <HuggingFaceHuggingFaceDistributionResponse>
|
|
340
340
|
rescue PulpHuggingFaceClient::ApiError => e
|
|
341
341
|
puts "Error when calling DistributionsHuggingFaceApi->partial_update_with_http_info: #{e}"
|
|
342
342
|
end
|
|
@@ -352,7 +352,7 @@ end
|
|
|
352
352
|
|
|
353
353
|
### Return type
|
|
354
354
|
|
|
355
|
-
[**
|
|
355
|
+
[**HuggingFaceHuggingFaceDistributionResponse**](HuggingFaceHuggingFaceDistributionResponse.md)
|
|
356
356
|
|
|
357
357
|
### Authorization
|
|
358
358
|
|
|
@@ -596,11 +596,11 @@ end
|
|
|
596
596
|
|
|
597
597
|
## update
|
|
598
598
|
|
|
599
|
-
> <
|
|
599
|
+
> <HuggingFaceHuggingFaceDistributionResponse> update(hugging_face_hugging_face_distribution_href, hugging_face_hugging_face_distribution, opts)
|
|
600
600
|
|
|
601
601
|
Update a hugging face distribution
|
|
602
602
|
|
|
603
|
-
|
|
603
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
604
604
|
|
|
605
605
|
### Examples
|
|
606
606
|
|
|
@@ -634,7 +634,7 @@ end
|
|
|
634
634
|
|
|
635
635
|
This returns an Array which contains the response data, status code and headers.
|
|
636
636
|
|
|
637
|
-
> <Array(<
|
|
637
|
+
> <Array(<HuggingFaceHuggingFaceDistributionResponse>, Integer, Hash)> update_with_http_info(hugging_face_hugging_face_distribution_href, hugging_face_hugging_face_distribution, opts)
|
|
638
638
|
|
|
639
639
|
```ruby
|
|
640
640
|
begin
|
|
@@ -642,7 +642,7 @@ begin
|
|
|
642
642
|
data, status_code, headers = api_instance.update_with_http_info(hugging_face_hugging_face_distribution_href, hugging_face_hugging_face_distribution, opts)
|
|
643
643
|
p status_code # => 2xx
|
|
644
644
|
p headers # => { ... }
|
|
645
|
-
p data # => <
|
|
645
|
+
p data # => <HuggingFaceHuggingFaceDistributionResponse>
|
|
646
646
|
rescue PulpHuggingFaceClient::ApiError => e
|
|
647
647
|
puts "Error when calling DistributionsHuggingFaceApi->update_with_http_info: #{e}"
|
|
648
648
|
end
|
|
@@ -658,7 +658,7 @@ end
|
|
|
658
658
|
|
|
659
659
|
### Return type
|
|
660
660
|
|
|
661
|
-
[**
|
|
661
|
+
[**HuggingFaceHuggingFaceDistributionResponse**](HuggingFaceHuggingFaceDistributionResponse.md)
|
|
662
662
|
|
|
663
663
|
### Authorization
|
|
664
664
|
|
|
@@ -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
|
|
|
@@ -288,11 +288,11 @@ end
|
|
|
288
288
|
|
|
289
289
|
## partial_update
|
|
290
290
|
|
|
291
|
-
> <
|
|
291
|
+
> <HuggingFaceHuggingFaceRemoteResponse> partial_update(hugging_face_hugging_face_remote_href, patchedhugging_face_hugging_face_remote, opts)
|
|
292
292
|
|
|
293
293
|
Update a hugging face remote
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
296
296
|
|
|
297
297
|
### Examples
|
|
298
298
|
|
|
@@ -326,7 +326,7 @@ end
|
|
|
326
326
|
|
|
327
327
|
This returns an Array which contains the response data, status code and headers.
|
|
328
328
|
|
|
329
|
-
> <Array(<
|
|
329
|
+
> <Array(<HuggingFaceHuggingFaceRemoteResponse>, Integer, Hash)> partial_update_with_http_info(hugging_face_hugging_face_remote_href, patchedhugging_face_hugging_face_remote, opts)
|
|
330
330
|
|
|
331
331
|
```ruby
|
|
332
332
|
begin
|
|
@@ -334,7 +334,7 @@ begin
|
|
|
334
334
|
data, status_code, headers = api_instance.partial_update_with_http_info(hugging_face_hugging_face_remote_href, patchedhugging_face_hugging_face_remote, opts)
|
|
335
335
|
p status_code # => 2xx
|
|
336
336
|
p headers # => { ... }
|
|
337
|
-
p data # => <
|
|
337
|
+
p data # => <HuggingFaceHuggingFaceRemoteResponse>
|
|
338
338
|
rescue PulpHuggingFaceClient::ApiError => e
|
|
339
339
|
puts "Error when calling RemotesHuggingFaceApi->partial_update_with_http_info: #{e}"
|
|
340
340
|
end
|
|
@@ -350,7 +350,7 @@ end
|
|
|
350
350
|
|
|
351
351
|
### Return type
|
|
352
352
|
|
|
353
|
-
[**
|
|
353
|
+
[**HuggingFaceHuggingFaceRemoteResponse**](HuggingFaceHuggingFaceRemoteResponse.md)
|
|
354
354
|
|
|
355
355
|
### Authorization
|
|
356
356
|
|
|
@@ -594,11 +594,11 @@ end
|
|
|
594
594
|
|
|
595
595
|
## update
|
|
596
596
|
|
|
597
|
-
> <
|
|
597
|
+
> <HuggingFaceHuggingFaceRemoteResponse> update(hugging_face_hugging_face_remote_href, hugging_face_hugging_face_remote, opts)
|
|
598
598
|
|
|
599
599
|
Update a hugging face remote
|
|
600
600
|
|
|
601
|
-
|
|
601
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
602
602
|
|
|
603
603
|
### Examples
|
|
604
604
|
|
|
@@ -632,7 +632,7 @@ end
|
|
|
632
632
|
|
|
633
633
|
This returns an Array which contains the response data, status code and headers.
|
|
634
634
|
|
|
635
|
-
> <Array(<
|
|
635
|
+
> <Array(<HuggingFaceHuggingFaceRemoteResponse>, Integer, Hash)> update_with_http_info(hugging_face_hugging_face_remote_href, hugging_face_hugging_face_remote, opts)
|
|
636
636
|
|
|
637
637
|
```ruby
|
|
638
638
|
begin
|
|
@@ -640,7 +640,7 @@ begin
|
|
|
640
640
|
data, status_code, headers = api_instance.update_with_http_info(hugging_face_hugging_face_remote_href, hugging_face_hugging_face_remote, opts)
|
|
641
641
|
p status_code # => 2xx
|
|
642
642
|
p headers # => { ... }
|
|
643
|
-
p data # => <
|
|
643
|
+
p data # => <HuggingFaceHuggingFaceRemoteResponse>
|
|
644
644
|
rescue PulpHuggingFaceClient::ApiError => e
|
|
645
645
|
puts "Error when calling RemotesHuggingFaceApi->update_with_http_info: #{e}"
|
|
646
646
|
end
|
|
@@ -656,7 +656,7 @@ end
|
|
|
656
656
|
|
|
657
657
|
### Return type
|
|
658
658
|
|
|
659
|
-
[**
|
|
659
|
+
[**HuggingFaceHuggingFaceRemoteResponse**](HuggingFaceHuggingFaceRemoteResponse.md)
|
|
660
660
|
|
|
661
661
|
### Authorization
|
|
662
662
|
|
|
@@ -374,11 +374,11 @@ end
|
|
|
374
374
|
|
|
375
375
|
## partial_update
|
|
376
376
|
|
|
377
|
-
> <
|
|
377
|
+
> <HuggingFaceHuggingFaceRepositoryResponse> partial_update(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
|
378
378
|
|
|
379
379
|
Update a hugging face repository
|
|
380
380
|
|
|
381
|
-
|
|
381
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
382
382
|
|
|
383
383
|
### Examples
|
|
384
384
|
|
|
@@ -412,7 +412,7 @@ end
|
|
|
412
412
|
|
|
413
413
|
This returns an Array which contains the response data, status code and headers.
|
|
414
414
|
|
|
415
|
-
> <Array(<
|
|
415
|
+
> <Array(<HuggingFaceHuggingFaceRepositoryResponse>, Integer, Hash)> partial_update_with_http_info(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
|
416
416
|
|
|
417
417
|
```ruby
|
|
418
418
|
begin
|
|
@@ -420,7 +420,7 @@ begin
|
|
|
420
420
|
data, status_code, headers = api_instance.partial_update_with_http_info(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
|
421
421
|
p status_code # => 2xx
|
|
422
422
|
p headers # => { ... }
|
|
423
|
-
p data # => <
|
|
423
|
+
p data # => <HuggingFaceHuggingFaceRepositoryResponse>
|
|
424
424
|
rescue PulpHuggingFaceClient::ApiError => e
|
|
425
425
|
puts "Error when calling RepositoriesHuggingFaceApi->partial_update_with_http_info: #{e}"
|
|
426
426
|
end
|
|
@@ -436,7 +436,7 @@ end
|
|
|
436
436
|
|
|
437
437
|
### Return type
|
|
438
438
|
|
|
439
|
-
[**
|
|
439
|
+
[**HuggingFaceHuggingFaceRepositoryResponse**](HuggingFaceHuggingFaceRepositoryResponse.md)
|
|
440
440
|
|
|
441
441
|
### Authorization
|
|
442
442
|
|
|
@@ -756,11 +756,11 @@ end
|
|
|
756
756
|
|
|
757
757
|
## update
|
|
758
758
|
|
|
759
|
-
> <
|
|
759
|
+
> <HuggingFaceHuggingFaceRepositoryResponse> update(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
|
760
760
|
|
|
761
761
|
Update a hugging face repository
|
|
762
762
|
|
|
763
|
-
|
|
763
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
764
764
|
|
|
765
765
|
### Examples
|
|
766
766
|
|
|
@@ -794,7 +794,7 @@ end
|
|
|
794
794
|
|
|
795
795
|
This returns an Array which contains the response data, status code and headers.
|
|
796
796
|
|
|
797
|
-
> <Array(<
|
|
797
|
+
> <Array(<HuggingFaceHuggingFaceRepositoryResponse>, Integer, Hash)> update_with_http_info(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
|
798
798
|
|
|
799
799
|
```ruby
|
|
800
800
|
begin
|
|
@@ -802,7 +802,7 @@ begin
|
|
|
802
802
|
data, status_code, headers = api_instance.update_with_http_info(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
|
803
803
|
p status_code # => 2xx
|
|
804
804
|
p headers # => { ... }
|
|
805
|
-
p data # => <
|
|
805
|
+
p data # => <HuggingFaceHuggingFaceRepositoryResponse>
|
|
806
806
|
rescue PulpHuggingFaceClient::ApiError => e
|
|
807
807
|
puts "Error when calling RepositoriesHuggingFaceApi->update_with_http_info: #{e}"
|
|
808
808
|
end
|
|
@@ -818,7 +818,7 @@ end
|
|
|
818
818
|
|
|
819
819
|
### Return type
|
|
820
820
|
|
|
821
|
-
[**
|
|
821
|
+
[**HuggingFaceHuggingFaceRepositoryResponse**](HuggingFaceHuggingFaceRepositoryResponse.md)
|
|
822
822
|
|
|
823
823
|
### Authorization
|
|
824
824
|
|
|
@@ -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
|
|
|
@@ -302,24 +302,24 @@ module PulpHuggingFaceClient
|
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
# Update a hugging face distribution
|
|
305
|
-
#
|
|
305
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
306
306
|
# @param hugging_face_hugging_face_distribution_href [String]
|
|
307
307
|
# @param patchedhugging_face_hugging_face_distribution [PatchedhuggingFaceHuggingFaceDistribution]
|
|
308
308
|
# @param [Hash] opts the optional parameters
|
|
309
309
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
310
|
-
# @return [
|
|
310
|
+
# @return [HuggingFaceHuggingFaceDistributionResponse]
|
|
311
311
|
def partial_update(hugging_face_hugging_face_distribution_href, patchedhugging_face_hugging_face_distribution, opts = {})
|
|
312
312
|
data, _status_code, _headers = partial_update_with_http_info(hugging_face_hugging_face_distribution_href, patchedhugging_face_hugging_face_distribution, opts)
|
|
313
313
|
data
|
|
314
314
|
end
|
|
315
315
|
|
|
316
316
|
# Update a hugging face distribution
|
|
317
|
-
#
|
|
317
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
318
318
|
# @param hugging_face_hugging_face_distribution_href [String]
|
|
319
319
|
# @param patchedhugging_face_hugging_face_distribution [PatchedhuggingFaceHuggingFaceDistribution]
|
|
320
320
|
# @param [Hash] opts the optional parameters
|
|
321
321
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
322
|
-
# @return [Array<(
|
|
322
|
+
# @return [Array<(HuggingFaceHuggingFaceDistributionResponse, Integer, Hash)>] HuggingFaceHuggingFaceDistributionResponse data, response status code and response headers
|
|
323
323
|
def partial_update_with_http_info(hugging_face_hugging_face_distribution_href, patchedhugging_face_hugging_face_distribution, opts = {})
|
|
324
324
|
if @api_client.config.debugging
|
|
325
325
|
@api_client.config.logger.debug 'Calling API: DistributionsHuggingFaceApi.partial_update ...'
|
|
@@ -356,7 +356,7 @@ module PulpHuggingFaceClient
|
|
|
356
356
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedhugging_face_hugging_face_distribution)
|
|
357
357
|
|
|
358
358
|
# return_type
|
|
359
|
-
return_type = opts[:debug_return_type] || '
|
|
359
|
+
return_type = opts[:debug_return_type] || 'HuggingFaceHuggingFaceDistributionResponse'
|
|
360
360
|
|
|
361
361
|
# auth_names
|
|
362
362
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -605,24 +605,24 @@ module PulpHuggingFaceClient
|
|
|
605
605
|
end
|
|
606
606
|
|
|
607
607
|
# Update a hugging face distribution
|
|
608
|
-
#
|
|
608
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
609
609
|
# @param hugging_face_hugging_face_distribution_href [String]
|
|
610
610
|
# @param hugging_face_hugging_face_distribution [HuggingFaceHuggingFaceDistribution]
|
|
611
611
|
# @param [Hash] opts the optional parameters
|
|
612
612
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
613
|
-
# @return [
|
|
613
|
+
# @return [HuggingFaceHuggingFaceDistributionResponse]
|
|
614
614
|
def update(hugging_face_hugging_face_distribution_href, hugging_face_hugging_face_distribution, opts = {})
|
|
615
615
|
data, _status_code, _headers = update_with_http_info(hugging_face_hugging_face_distribution_href, hugging_face_hugging_face_distribution, opts)
|
|
616
616
|
data
|
|
617
617
|
end
|
|
618
618
|
|
|
619
619
|
# Update a hugging face distribution
|
|
620
|
-
#
|
|
620
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
621
621
|
# @param hugging_face_hugging_face_distribution_href [String]
|
|
622
622
|
# @param hugging_face_hugging_face_distribution [HuggingFaceHuggingFaceDistribution]
|
|
623
623
|
# @param [Hash] opts the optional parameters
|
|
624
624
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
625
|
-
# @return [Array<(
|
|
625
|
+
# @return [Array<(HuggingFaceHuggingFaceDistributionResponse, Integer, Hash)>] HuggingFaceHuggingFaceDistributionResponse data, response status code and response headers
|
|
626
626
|
def update_with_http_info(hugging_face_hugging_face_distribution_href, hugging_face_hugging_face_distribution, opts = {})
|
|
627
627
|
if @api_client.config.debugging
|
|
628
628
|
@api_client.config.logger.debug 'Calling API: DistributionsHuggingFaceApi.update ...'
|
|
@@ -659,7 +659,7 @@ module PulpHuggingFaceClient
|
|
|
659
659
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(hugging_face_hugging_face_distribution)
|
|
660
660
|
|
|
661
661
|
# return_type
|
|
662
|
-
return_type = opts[:debug_return_type] || '
|
|
662
|
+
return_type = opts[:debug_return_type] || 'HuggingFaceHuggingFaceDistributionResponse'
|
|
663
663
|
|
|
664
664
|
# auth_names
|
|
665
665
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -299,24 +299,24 @@ module PulpHuggingFaceClient
|
|
|
299
299
|
end
|
|
300
300
|
|
|
301
301
|
# Update a hugging face remote
|
|
302
|
-
#
|
|
302
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
303
303
|
# @param hugging_face_hugging_face_remote_href [String]
|
|
304
304
|
# @param patchedhugging_face_hugging_face_remote [PatchedhuggingFaceHuggingFaceRemote]
|
|
305
305
|
# @param [Hash] opts the optional parameters
|
|
306
306
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
307
|
-
# @return [
|
|
307
|
+
# @return [HuggingFaceHuggingFaceRemoteResponse]
|
|
308
308
|
def partial_update(hugging_face_hugging_face_remote_href, patchedhugging_face_hugging_face_remote, opts = {})
|
|
309
309
|
data, _status_code, _headers = partial_update_with_http_info(hugging_face_hugging_face_remote_href, patchedhugging_face_hugging_face_remote, opts)
|
|
310
310
|
data
|
|
311
311
|
end
|
|
312
312
|
|
|
313
313
|
# Update a hugging face remote
|
|
314
|
-
#
|
|
314
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
315
315
|
# @param hugging_face_hugging_face_remote_href [String]
|
|
316
316
|
# @param patchedhugging_face_hugging_face_remote [PatchedhuggingFaceHuggingFaceRemote]
|
|
317
317
|
# @param [Hash] opts the optional parameters
|
|
318
318
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
319
|
-
# @return [Array<(
|
|
319
|
+
# @return [Array<(HuggingFaceHuggingFaceRemoteResponse, Integer, Hash)>] HuggingFaceHuggingFaceRemoteResponse data, response status code and response headers
|
|
320
320
|
def partial_update_with_http_info(hugging_face_hugging_face_remote_href, patchedhugging_face_hugging_face_remote, opts = {})
|
|
321
321
|
if @api_client.config.debugging
|
|
322
322
|
@api_client.config.logger.debug 'Calling API: RemotesHuggingFaceApi.partial_update ...'
|
|
@@ -353,7 +353,7 @@ module PulpHuggingFaceClient
|
|
|
353
353
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedhugging_face_hugging_face_remote)
|
|
354
354
|
|
|
355
355
|
# return_type
|
|
356
|
-
return_type = opts[:debug_return_type] || '
|
|
356
|
+
return_type = opts[:debug_return_type] || 'HuggingFaceHuggingFaceRemoteResponse'
|
|
357
357
|
|
|
358
358
|
# auth_names
|
|
359
359
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -602,24 +602,24 @@ module PulpHuggingFaceClient
|
|
|
602
602
|
end
|
|
603
603
|
|
|
604
604
|
# Update a hugging face remote
|
|
605
|
-
#
|
|
605
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
606
606
|
# @param hugging_face_hugging_face_remote_href [String]
|
|
607
607
|
# @param hugging_face_hugging_face_remote [HuggingFaceHuggingFaceRemote]
|
|
608
608
|
# @param [Hash] opts the optional parameters
|
|
609
609
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
610
|
-
# @return [
|
|
610
|
+
# @return [HuggingFaceHuggingFaceRemoteResponse]
|
|
611
611
|
def update(hugging_face_hugging_face_remote_href, hugging_face_hugging_face_remote, opts = {})
|
|
612
612
|
data, _status_code, _headers = update_with_http_info(hugging_face_hugging_face_remote_href, hugging_face_hugging_face_remote, opts)
|
|
613
613
|
data
|
|
614
614
|
end
|
|
615
615
|
|
|
616
616
|
# Update a hugging face remote
|
|
617
|
-
#
|
|
617
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
618
618
|
# @param hugging_face_hugging_face_remote_href [String]
|
|
619
619
|
# @param hugging_face_hugging_face_remote [HuggingFaceHuggingFaceRemote]
|
|
620
620
|
# @param [Hash] opts the optional parameters
|
|
621
621
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
622
|
-
# @return [Array<(
|
|
622
|
+
# @return [Array<(HuggingFaceHuggingFaceRemoteResponse, Integer, Hash)>] HuggingFaceHuggingFaceRemoteResponse data, response status code and response headers
|
|
623
623
|
def update_with_http_info(hugging_face_hugging_face_remote_href, hugging_face_hugging_face_remote, opts = {})
|
|
624
624
|
if @api_client.config.debugging
|
|
625
625
|
@api_client.config.logger.debug 'Calling API: RemotesHuggingFaceApi.update ...'
|
|
@@ -656,7 +656,7 @@ module PulpHuggingFaceClient
|
|
|
656
656
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(hugging_face_hugging_face_remote)
|
|
657
657
|
|
|
658
658
|
# return_type
|
|
659
|
-
return_type = opts[:debug_return_type] || '
|
|
659
|
+
return_type = opts[:debug_return_type] || 'HuggingFaceHuggingFaceRemoteResponse'
|
|
660
660
|
|
|
661
661
|
# auth_names
|
|
662
662
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -388,24 +388,24 @@ module PulpHuggingFaceClient
|
|
|
388
388
|
end
|
|
389
389
|
|
|
390
390
|
# Update a hugging face repository
|
|
391
|
-
#
|
|
391
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
392
392
|
# @param hugging_face_hugging_face_repository_href [String]
|
|
393
393
|
# @param patchedhugging_face_hugging_face_repository [PatchedhuggingFaceHuggingFaceRepository]
|
|
394
394
|
# @param [Hash] opts the optional parameters
|
|
395
395
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
396
|
-
# @return [
|
|
396
|
+
# @return [HuggingFaceHuggingFaceRepositoryResponse]
|
|
397
397
|
def partial_update(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts = {})
|
|
398
398
|
data, _status_code, _headers = partial_update_with_http_info(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
|
399
399
|
data
|
|
400
400
|
end
|
|
401
401
|
|
|
402
402
|
# Update a hugging face repository
|
|
403
|
-
#
|
|
403
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
404
404
|
# @param hugging_face_hugging_face_repository_href [String]
|
|
405
405
|
# @param patchedhugging_face_hugging_face_repository [PatchedhuggingFaceHuggingFaceRepository]
|
|
406
406
|
# @param [Hash] opts the optional parameters
|
|
407
407
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
408
|
-
# @return [Array<(
|
|
408
|
+
# @return [Array<(HuggingFaceHuggingFaceRepositoryResponse, Integer, Hash)>] HuggingFaceHuggingFaceRepositoryResponse data, response status code and response headers
|
|
409
409
|
def partial_update_with_http_info(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts = {})
|
|
410
410
|
if @api_client.config.debugging
|
|
411
411
|
@api_client.config.logger.debug 'Calling API: RepositoriesHuggingFaceApi.partial_update ...'
|
|
@@ -442,7 +442,7 @@ module PulpHuggingFaceClient
|
|
|
442
442
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedhugging_face_hugging_face_repository)
|
|
443
443
|
|
|
444
444
|
# return_type
|
|
445
|
-
return_type = opts[:debug_return_type] || '
|
|
445
|
+
return_type = opts[:debug_return_type] || 'HuggingFaceHuggingFaceRepositoryResponse'
|
|
446
446
|
|
|
447
447
|
# auth_names
|
|
448
448
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -768,24 +768,24 @@ module PulpHuggingFaceClient
|
|
|
768
768
|
end
|
|
769
769
|
|
|
770
770
|
# Update a hugging face repository
|
|
771
|
-
#
|
|
771
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
772
772
|
# @param hugging_face_hugging_face_repository_href [String]
|
|
773
773
|
# @param hugging_face_hugging_face_repository [HuggingFaceHuggingFaceRepository]
|
|
774
774
|
# @param [Hash] opts the optional parameters
|
|
775
775
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
776
|
-
# @return [
|
|
776
|
+
# @return [HuggingFaceHuggingFaceRepositoryResponse]
|
|
777
777
|
def update(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts = {})
|
|
778
778
|
data, _status_code, _headers = update_with_http_info(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
|
779
779
|
data
|
|
780
780
|
end
|
|
781
781
|
|
|
782
782
|
# Update a hugging face repository
|
|
783
|
-
#
|
|
783
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
784
784
|
# @param hugging_face_hugging_face_repository_href [String]
|
|
785
785
|
# @param hugging_face_hugging_face_repository [HuggingFaceHuggingFaceRepository]
|
|
786
786
|
# @param [Hash] opts the optional parameters
|
|
787
787
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
788
|
-
# @return [Array<(
|
|
788
|
+
# @return [Array<(HuggingFaceHuggingFaceRepositoryResponse, Integer, Hash)>] HuggingFaceHuggingFaceRepositoryResponse data, response status code and response headers
|
|
789
789
|
def update_with_http_info(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts = {})
|
|
790
790
|
if @api_client.config.debugging
|
|
791
791
|
@api_client.config.logger.debug 'Calling API: RepositoriesHuggingFaceApi.update ...'
|
|
@@ -822,7 +822,7 @@ module PulpHuggingFaceClient
|
|
|
822
822
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(hugging_face_hugging_face_repository)
|
|
823
823
|
|
|
824
824
|
# return_type
|
|
825
|
-
return_type = opts[:debug_return_type] || '
|
|
825
|
+
return_type = opts[:debug_return_type] || 'HuggingFaceHuggingFaceRepositoryResponse'
|
|
826
826
|
|
|
827
827
|
# auth_names
|
|
828
828
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -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
|
|
@@ -99,12 +99,12 @@ describe 'DistributionsHuggingFaceApi' do
|
|
|
99
99
|
|
|
100
100
|
# unit tests for partial_update
|
|
101
101
|
# Update a hugging face distribution
|
|
102
|
-
#
|
|
102
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
103
103
|
# @param hugging_face_hugging_face_distribution_href
|
|
104
104
|
# @param patchedhugging_face_hugging_face_distribution
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
106
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
107
|
-
# @return [
|
|
107
|
+
# @return [HuggingFaceHuggingFaceDistributionResponse]
|
|
108
108
|
describe 'partial_update test' do
|
|
109
109
|
it 'should work' do
|
|
110
110
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -156,12 +156,12 @@ describe 'DistributionsHuggingFaceApi' do
|
|
|
156
156
|
|
|
157
157
|
# unit tests for update
|
|
158
158
|
# Update a hugging face distribution
|
|
159
|
-
#
|
|
159
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
160
160
|
# @param hugging_face_hugging_face_distribution_href
|
|
161
161
|
# @param hugging_face_hugging_face_distribution
|
|
162
162
|
# @param [Hash] opts the optional parameters
|
|
163
163
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
164
|
-
# @return [
|
|
164
|
+
# @return [HuggingFaceHuggingFaceDistributionResponse]
|
|
165
165
|
describe 'update test' do
|
|
166
166
|
it 'should work' do
|
|
167
167
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -98,12 +98,12 @@ describe 'RemotesHuggingFaceApi' do
|
|
|
98
98
|
|
|
99
99
|
# unit tests for partial_update
|
|
100
100
|
# Update a hugging face remote
|
|
101
|
-
#
|
|
101
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
102
102
|
# @param hugging_face_hugging_face_remote_href
|
|
103
103
|
# @param patchedhugging_face_hugging_face_remote
|
|
104
104
|
# @param [Hash] opts the optional parameters
|
|
105
105
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
106
|
-
# @return [
|
|
106
|
+
# @return [HuggingFaceHuggingFaceRemoteResponse]
|
|
107
107
|
describe 'partial_update test' do
|
|
108
108
|
it 'should work' do
|
|
109
109
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -155,12 +155,12 @@ describe 'RemotesHuggingFaceApi' do
|
|
|
155
155
|
|
|
156
156
|
# unit tests for update
|
|
157
157
|
# Update a hugging face remote
|
|
158
|
-
#
|
|
158
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
159
159
|
# @param hugging_face_hugging_face_remote_href
|
|
160
160
|
# @param hugging_face_hugging_face_remote
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
163
|
-
# @return [
|
|
163
|
+
# @return [HuggingFaceHuggingFaceRemoteResponse]
|
|
164
164
|
describe 'update test' do
|
|
165
165
|
it 'should work' do
|
|
166
166
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -116,12 +116,12 @@ describe 'RepositoriesHuggingFaceApi' do
|
|
|
116
116
|
|
|
117
117
|
# unit tests for partial_update
|
|
118
118
|
# Update a hugging face repository
|
|
119
|
-
#
|
|
119
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
120
120
|
# @param hugging_face_hugging_face_repository_href
|
|
121
121
|
# @param patchedhugging_face_hugging_face_repository
|
|
122
122
|
# @param [Hash] opts the optional parameters
|
|
123
123
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
124
|
-
# @return [
|
|
124
|
+
# @return [HuggingFaceHuggingFaceRepositoryResponse]
|
|
125
125
|
describe 'partial_update test' do
|
|
126
126
|
it 'should work' do
|
|
127
127
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -187,12 +187,12 @@ describe 'RepositoriesHuggingFaceApi' do
|
|
|
187
187
|
|
|
188
188
|
# unit tests for update
|
|
189
189
|
# Update a hugging face repository
|
|
190
|
-
#
|
|
190
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
191
191
|
# @param hugging_face_hugging_face_repository_href
|
|
192
192
|
# @param hugging_face_hugging_face_repository
|
|
193
193
|
# @param [Hash] opts the optional parameters
|
|
194
194
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
195
|
-
# @return [
|
|
195
|
+
# @return [HuggingFaceHuggingFaceRepositoryResponse]
|
|
196
196
|
describe 'update test' do
|
|
197
197
|
it 'should work' do
|
|
198
198
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -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.2.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:
|
|
11
|
+
date: 2026-01-20 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/distributions_hugging_face_api_spec.rb
|
|
237
236
|
- spec/api/repositories_hugging_face_api_spec.rb
|
|
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
237
|
- spec/api/publications_hugging_face_api_spec.rb
|
|
242
|
-
- spec/
|
|
243
|
-
- spec/
|
|
244
|
-
- spec/
|
|
245
|
-
- spec/
|
|
246
|
-
- spec/models/content_summary_response_spec.rb
|
|
247
|
-
- spec/models/hugging_face_hugging_face_repository_response_spec.rb
|
|
248
|
-
- spec/models/patchedhugging_face_hugging_face_remote_spec.rb
|
|
249
|
-
- spec/models/repository_version_response_spec.rb
|
|
250
|
-
- spec/models/policy_enum_spec.rb
|
|
251
|
-
- spec/models/paginatedhugging_face_hugging_face_remote_response_list_spec.rb
|
|
252
|
-
- spec/models/paginatedhugging_face_hugging_face_publication_response_list_spec.rb
|
|
253
|
-
- spec/models/async_operation_response_spec.rb
|
|
238
|
+
- spec/api/repositories_hugging_face_versions_api_spec.rb
|
|
239
|
+
- spec/api/remotes_hugging_face_api_spec.rb
|
|
240
|
+
- spec/api/content_hugging_face_api_spec.rb
|
|
241
|
+
- spec/api/distributions_hugging_face_api_spec.rb
|
|
254
242
|
- spec/models/hugging_face_hugging_face_publication_spec.rb
|
|
255
|
-
- spec/models/repair_spec.rb
|
|
256
243
|
- 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
244
|
- spec/models/unset_label_response_spec.rb
|
|
260
245
|
- spec/models/repo_type_enum_spec.rb
|
|
261
|
-
- spec/models/
|
|
246
|
+
- spec/models/repository_version_response_spec.rb
|
|
247
|
+
- spec/models/paginatedhugging_face_hugging_face_repository_response_list_spec.rb
|
|
248
|
+
- spec/models/patchedhugging_face_hugging_face_remote_spec.rb
|
|
249
|
+
- spec/models/paginatedhugging_face_hugging_face_publication_response_list_spec.rb
|
|
262
250
|
- spec/models/set_label_spec.rb
|
|
251
|
+
- spec/models/hugging_face_hugging_face_content_spec.rb
|
|
252
|
+
- spec/models/paginatedhugging_face_hugging_face_content_response_list_spec.rb
|
|
263
253
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
264
|
-
- spec/models/
|
|
265
|
-
- spec/models/
|
|
266
|
-
- spec/models/
|
|
254
|
+
- spec/models/repair_spec.rb
|
|
255
|
+
- spec/models/paginatedhugging_face_hugging_face_remote_response_list_spec.rb
|
|
256
|
+
- spec/models/async_operation_response_spec.rb
|
|
257
|
+
- spec/models/repository_add_remove_content_spec.rb
|
|
258
|
+
- spec/models/hugging_face_hugging_face_distribution_spec.rb
|
|
267
259
|
- spec/models/hugging_face_hugging_face_remote_response_spec.rb
|
|
260
|
+
- spec/models/hugging_face_hugging_face_content_response_spec.rb
|
|
261
|
+
- spec/models/hugging_face_hugging_face_repository_spec.rb
|
|
262
|
+
- spec/models/hugging_face_hugging_face_repository_response_spec.rb
|
|
268
263
|
- spec/models/repository_sync_url_spec.rb
|
|
269
264
|
- spec/models/patchedhugging_face_hugging_face_distribution_spec.rb
|
|
265
|
+
- spec/models/set_label_response_spec.rb
|
|
266
|
+
- spec/models/unset_label_spec.rb
|
|
267
|
+
- spec/models/policy_enum_spec.rb
|
|
268
|
+
- spec/models/hugging_face_hugging_face_distribution_response_spec.rb
|
|
269
|
+
- spec/models/patchedhugging_face_hugging_face_repository_spec.rb
|
|
270
|
+
- spec/models/content_summary_response_spec.rb
|
|
271
|
+
- spec/models/hugging_face_hugging_face_publication_response_spec.rb
|
|
270
272
|
- spec/models/hugging_face_hugging_face_remote_response_hidden_fields_inner_spec.rb
|
|
271
|
-
- spec/models/
|
|
272
|
-
- spec/models/paginatedhugging_face_hugging_face_content_response_list_spec.rb
|
|
273
|
-
- spec/models/hugging_face_hugging_face_content_spec.rb
|
|
273
|
+
- spec/models/hugging_face_hugging_face_remote_spec.rb
|
|
274
274
|
- spec/spec_helper.rb
|