pulp_hugging_face_client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +176 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +18 -0
- data/docs/ContentHuggingFaceApi.md +424 -0
- data/docs/ContentSummaryResponse.md +22 -0
- data/docs/DistributionsHuggingFaceApi.md +671 -0
- data/docs/HuggingFaceHuggingFaceContent.md +36 -0
- data/docs/HuggingFaceHuggingFaceContentResponse.md +42 -0
- data/docs/HuggingFaceHuggingFaceDistribution.md +32 -0
- data/docs/HuggingFaceHuggingFaceDistributionResponse.md +44 -0
- data/docs/HuggingFaceHuggingFacePublication.md +20 -0
- data/docs/HuggingFaceHuggingFacePublicationResponse.md +28 -0
- data/docs/HuggingFaceHuggingFaceRemote.md +62 -0
- data/docs/HuggingFaceHuggingFaceRemoteResponse.md +62 -0
- data/docs/HuggingFaceHuggingFaceRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/HuggingFaceHuggingFaceRepository.md +26 -0
- data/docs/HuggingFaceHuggingFaceRepositoryResponse.md +38 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +24 -0
- data/docs/PaginatedhuggingFaceHuggingFaceContentResponseList.md +24 -0
- data/docs/PaginatedhuggingFaceHuggingFaceDistributionResponseList.md +24 -0
- data/docs/PaginatedhuggingFaceHuggingFacePublicationResponseList.md +24 -0
- data/docs/PaginatedhuggingFaceHuggingFaceRemoteResponseList.md +24 -0
- data/docs/PaginatedhuggingFaceHuggingFaceRepositoryResponseList.md +24 -0
- data/docs/PatchedhuggingFaceHuggingFaceDistribution.md +32 -0
- data/docs/PatchedhuggingFaceHuggingFaceRemote.md +62 -0
- data/docs/PatchedhuggingFaceHuggingFaceRepository.md +26 -0
- data/docs/PolicyEnum.md +15 -0
- data/docs/PublicationsHuggingFaceApi.md +350 -0
- data/docs/RemotesHuggingFaceApi.md +669 -0
- data/docs/Repair.md +18 -0
- data/docs/RepoTypeEnum.md +15 -0
- data/docs/RepositoriesHuggingFaceApi.md +831 -0
- data/docs/RepositoriesHuggingFaceVersionsApi.md +359 -0
- data/docs/RepositoryAddRemoveContent.md +22 -0
- data/docs/RepositorySyncURL.md +20 -0
- data/docs/RepositoryVersionResponse.md +32 -0
- data/docs/SetLabel.md +20 -0
- data/docs/SetLabelResponse.md +20 -0
- data/docs/UnsetLabel.md +18 -0
- data/docs/UnsetLabelResponse.md +20 -0
- data/lib/pulp_hugging_face_client/api/content_hugging_face_api.rb +441 -0
- data/lib/pulp_hugging_face_client/api/distributions_hugging_face_api.rb +684 -0
- data/lib/pulp_hugging_face_client/api/publications_hugging_face_api.rb +356 -0
- data/lib/pulp_hugging_face_client/api/remotes_hugging_face_api.rb +681 -0
- data/lib/pulp_hugging_face_client/api/repositories_hugging_face_api.rb +847 -0
- data/lib/pulp_hugging_face_client/api/repositories_hugging_face_versions_api.rb +374 -0
- data/lib/pulp_hugging_face_client/api_client.rb +438 -0
- data/lib/pulp_hugging_face_client/api_error.rb +58 -0
- data/lib/pulp_hugging_face_client/configuration.rb +392 -0
- data/lib/pulp_hugging_face_client/models/async_operation_response.rb +223 -0
- data/lib/pulp_hugging_face_client/models/content_summary_response.rb +260 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_content.rb +428 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_content_response.rb +385 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_distribution.rb +345 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_distribution_response.rb +366 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_publication.rb +225 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_publication_response.rb +264 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote.rb +745 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote_response.rb +564 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote_response_hidden_fields_inner.rb +237 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository.rb +316 -0
- data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository_response.rb +339 -0
- data/lib/pulp_hugging_face_client/models/paginated_repository_version_response_list.rb +259 -0
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_content_response_list.rb +259 -0
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_distribution_response_list.rb +259 -0
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_publication_response_list.rb +259 -0
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_remote_response_list.rb +259 -0
- data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_repository_response_list.rb +259 -0
- data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_distribution.rb +331 -0
- data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_remote.rb +731 -0
- data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_repository.rb +309 -0
- data/lib/pulp_hugging_face_client/models/policy_enum.rb +41 -0
- data/lib/pulp_hugging_face_client/models/repair.rb +217 -0
- data/lib/pulp_hugging_face_client/models/repo_type_enum.rb +41 -0
- data/lib/pulp_hugging_face_client/models/repository_add_remove_content.rb +240 -0
- data/lib/pulp_hugging_face_client/models/repository_sync_url.rb +228 -0
- data/lib/pulp_hugging_face_client/models/repository_version_response.rb +283 -0
- data/lib/pulp_hugging_face_client/models/set_label.rb +264 -0
- data/lib/pulp_hugging_face_client/models/set_label_response.rb +255 -0
- data/lib/pulp_hugging_face_client/models/unset_label.rb +252 -0
- data/lib/pulp_hugging_face_client/models/unset_label_response.rb +252 -0
- data/lib/pulp_hugging_face_client/version.rb +15 -0
- data/lib/pulp_hugging_face_client.rb +77 -0
- data/pulp_hugging_face_client.gemspec +41 -0
- data/spec/api/content_hugging_face_api_spec.rb +121 -0
- data/spec/api/distributions_hugging_face_api_spec.rb +171 -0
- data/spec/api/publications_hugging_face_api_spec.rb +109 -0
- data/spec/api/remotes_hugging_face_api_spec.rb +170 -0
- data/spec/api/repositories_hugging_face_api_spec.rb +202 -0
- data/spec/api/repositories_hugging_face_versions_api_spec.rb +112 -0
- data/spec/models/async_operation_response_spec.rb +36 -0
- data/spec/models/content_summary_response_spec.rb +48 -0
- data/spec/models/hugging_face_hugging_face_content_response_spec.rb +108 -0
- data/spec/models/hugging_face_hugging_face_content_spec.rb +90 -0
- data/spec/models/hugging_face_hugging_face_distribution_response_spec.rb +114 -0
- data/spec/models/hugging_face_hugging_face_distribution_spec.rb +78 -0
- data/spec/models/hugging_face_hugging_face_publication_response_spec.rb +66 -0
- data/spec/models/hugging_face_hugging_face_publication_spec.rb +42 -0
- data/spec/models/hugging_face_hugging_face_remote_response_hidden_fields_inner_spec.rb +42 -0
- data/spec/models/hugging_face_hugging_face_remote_response_spec.rb +168 -0
- data/spec/models/hugging_face_hugging_face_remote_spec.rb +168 -0
- data/spec/models/hugging_face_hugging_face_repository_response_spec.rb +96 -0
- data/spec/models/hugging_face_hugging_face_repository_spec.rb +60 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +54 -0
- data/spec/models/paginatedhugging_face_hugging_face_content_response_list_spec.rb +54 -0
- data/spec/models/paginatedhugging_face_hugging_face_distribution_response_list_spec.rb +54 -0
- data/spec/models/paginatedhugging_face_hugging_face_publication_response_list_spec.rb +54 -0
- data/spec/models/paginatedhugging_face_hugging_face_remote_response_list_spec.rb +54 -0
- data/spec/models/paginatedhugging_face_hugging_face_repository_response_list_spec.rb +54 -0
- data/spec/models/patchedhugging_face_hugging_face_distribution_spec.rb +78 -0
- data/spec/models/patchedhugging_face_hugging_face_remote_spec.rb +168 -0
- data/spec/models/patchedhugging_face_hugging_face_repository_spec.rb +60 -0
- data/spec/models/policy_enum_spec.rb +30 -0
- data/spec/models/repair_spec.rb +36 -0
- data/spec/models/repo_type_enum_spec.rb +30 -0
- data/spec/models/repository_add_remove_content_spec.rb +48 -0
- data/spec/models/repository_sync_url_spec.rb +42 -0
- data/spec/models/repository_version_response_spec.rb +78 -0
- data/spec/models/set_label_response_spec.rb +42 -0
- data/spec/models/set_label_spec.rb +42 -0
- data/spec/models/unset_label_response_spec.rb +42 -0
- data/spec/models/unset_label_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- metadata +274 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpHuggingFaceClient::PublicationsHuggingFaceApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PublicationsHuggingFaceApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpHuggingFaceClient::PublicationsHuggingFaceApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PublicationsHuggingFaceApi' do
|
30
|
+
it 'should create an instance of PublicationsHuggingFaceApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpHuggingFaceClient::PublicationsHuggingFaceApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a hugging face publication
|
37
|
+
# Trigger an asynchronous task to publish content
|
38
|
+
# @param hugging_face_hugging_face_publication
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
41
|
+
# @return [AsyncOperationResponse]
|
42
|
+
describe 'create test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete
|
49
|
+
# Delete a hugging face publication
|
50
|
+
# A ViewSet for HuggingFacePublication. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
51
|
+
# @param hugging_face_hugging_face_publication_href
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
54
|
+
# @return [nil]
|
55
|
+
describe 'delete test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for list
|
62
|
+
# List hugging face publications
|
63
|
+
# A ViewSet for HuggingFacePublication. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
66
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
67
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
68
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
69
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
70
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
71
|
+
# @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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
72
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
73
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
74
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
75
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
76
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
77
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
78
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
79
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
80
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
81
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
82
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
83
|
+
# @option opts [String] :repository Repository referenced by HREF/PRN
|
84
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
85
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
86
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
87
|
+
# @return [PaginatedhuggingFaceHuggingFacePublicationResponseList]
|
88
|
+
describe 'list test' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# unit tests for read
|
95
|
+
# Inspect a hugging face publication
|
96
|
+
# A ViewSet for HuggingFacePublication. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
97
|
+
# @param hugging_face_hugging_face_publication_href
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
100
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
101
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
102
|
+
# @return [HuggingFaceHuggingFacePublicationResponse]
|
103
|
+
describe 'read test' do
|
104
|
+
it 'should work' do
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
@@ -0,0 +1,170 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpHuggingFaceClient::RemotesHuggingFaceApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RemotesHuggingFaceApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpHuggingFaceClient::RemotesHuggingFaceApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RemotesHuggingFaceApi' do
|
30
|
+
it 'should create an instance of RemotesHuggingFaceApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpHuggingFaceClient::RemotesHuggingFaceApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a hugging face remote
|
37
|
+
# A ViewSet for HuggingFaceRemote. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
38
|
+
# @param hugging_face_hugging_face_remote
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
41
|
+
# @return [HuggingFaceHuggingFaceRemoteResponse]
|
42
|
+
describe 'create test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete
|
49
|
+
# Delete a hugging face remote
|
50
|
+
# Trigger an asynchronous delete task
|
51
|
+
# @param hugging_face_hugging_face_remote_href
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
54
|
+
# @return [AsyncOperationResponse]
|
55
|
+
describe 'delete test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for list
|
62
|
+
# List hugging face remotes
|
63
|
+
# A ViewSet for HuggingFaceRemote. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
66
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
67
|
+
# @option opts [String] :name Filter results where name matches value
|
68
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
69
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
70
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
71
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
73
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
74
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
75
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
76
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
77
|
+
# @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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
78
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
79
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
80
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
81
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
82
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
83
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
84
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
85
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
86
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
87
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
88
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
89
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
90
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
91
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
92
|
+
# @return [PaginatedhuggingFaceHuggingFaceRemoteResponseList]
|
93
|
+
describe 'list test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# unit tests for partial_update
|
100
|
+
# Update a hugging face remote
|
101
|
+
# Trigger an asynchronous partial update task
|
102
|
+
# @param hugging_face_hugging_face_remote_href
|
103
|
+
# @param patchedhugging_face_hugging_face_remote
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
106
|
+
# @return [AsyncOperationResponse]
|
107
|
+
describe 'partial_update test' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
# unit tests for read
|
114
|
+
# Inspect a hugging face remote
|
115
|
+
# A ViewSet for HuggingFaceRemote. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
116
|
+
# @param hugging_face_hugging_face_remote_href
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
119
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
120
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
121
|
+
# @return [HuggingFaceHuggingFaceRemoteResponse]
|
122
|
+
describe 'read test' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# unit tests for set_label
|
129
|
+
# Set a label
|
130
|
+
# Set a single pulp_label on the object to a specific value or null.
|
131
|
+
# @param hugging_face_hugging_face_remote_href
|
132
|
+
# @param set_label
|
133
|
+
# @param [Hash] opts the optional parameters
|
134
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
135
|
+
# @return [SetLabelResponse]
|
136
|
+
describe 'set_label test' do
|
137
|
+
it 'should work' do
|
138
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# unit tests for unset_label
|
143
|
+
# Unset a label
|
144
|
+
# Unset a single pulp_label on the object.
|
145
|
+
# @param hugging_face_hugging_face_remote_href
|
146
|
+
# @param unset_label
|
147
|
+
# @param [Hash] opts the optional parameters
|
148
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
149
|
+
# @return [UnsetLabelResponse]
|
150
|
+
describe 'unset_label test' do
|
151
|
+
it 'should work' do
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# unit tests for update
|
157
|
+
# Update a hugging face remote
|
158
|
+
# Trigger an asynchronous update task
|
159
|
+
# @param hugging_face_hugging_face_remote_href
|
160
|
+
# @param hugging_face_hugging_face_remote
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
163
|
+
# @return [AsyncOperationResponse]
|
164
|
+
describe 'update test' do
|
165
|
+
it 'should work' do
|
166
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
end
|
@@ -0,0 +1,202 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpHuggingFaceClient::RepositoriesHuggingFaceApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepositoriesHuggingFaceApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepositoriesHuggingFaceApi' do
|
30
|
+
it 'should create an instance of RepositoriesHuggingFaceApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpHuggingFaceClient::RepositoriesHuggingFaceApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a hugging face repository
|
37
|
+
# A ViewSet for HuggingFaceRepository. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
38
|
+
# @param hugging_face_hugging_face_repository
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
41
|
+
# @return [HuggingFaceHuggingFaceRepositoryResponse]
|
42
|
+
describe 'create test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete
|
49
|
+
# Delete a hugging face repository
|
50
|
+
# Trigger an asynchronous delete task
|
51
|
+
# @param hugging_face_hugging_face_repository_href
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
54
|
+
# @return [AsyncOperationResponse]
|
55
|
+
describe 'delete test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for list
|
62
|
+
# List hugging face repositorys
|
63
|
+
# A ViewSet for HuggingFaceRepository. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
66
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
67
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
68
|
+
# @option opts [String] :name Filter results where name matches value
|
69
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
70
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
71
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
72
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
73
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
74
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
75
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
76
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
77
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
78
|
+
# @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) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
79
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
80
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
81
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
82
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
83
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
84
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
85
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
86
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
87
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
88
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
89
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
90
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
91
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
92
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
93
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
94
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
95
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
96
|
+
# @return [PaginatedhuggingFaceHuggingFaceRepositoryResponseList]
|
97
|
+
describe 'list test' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# unit tests for modify
|
104
|
+
# Modify Repository Content
|
105
|
+
# Trigger an asynchronous task to create a new repository version.
|
106
|
+
# @param hugging_face_hugging_face_repository_href
|
107
|
+
# @param repository_add_remove_content
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
110
|
+
# @return [AsyncOperationResponse]
|
111
|
+
describe 'modify test' do
|
112
|
+
it 'should work' do
|
113
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# unit tests for partial_update
|
118
|
+
# Update a hugging face repository
|
119
|
+
# Trigger an asynchronous partial update task
|
120
|
+
# @param hugging_face_hugging_face_repository_href
|
121
|
+
# @param patchedhugging_face_hugging_face_repository
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
124
|
+
# @return [AsyncOperationResponse]
|
125
|
+
describe 'partial_update test' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# unit tests for read
|
132
|
+
# Inspect a hugging face repository
|
133
|
+
# A ViewSet for HuggingFaceRepository. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
134
|
+
# @param hugging_face_hugging_face_repository_href
|
135
|
+
# @param [Hash] opts the optional parameters
|
136
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
137
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
138
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
139
|
+
# @return [HuggingFaceHuggingFaceRepositoryResponse]
|
140
|
+
describe 'read test' do
|
141
|
+
it 'should work' do
|
142
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# unit tests for set_label
|
147
|
+
# Set a label
|
148
|
+
# Set a single pulp_label on the object to a specific value or null.
|
149
|
+
# @param hugging_face_hugging_face_repository_href
|
150
|
+
# @param set_label
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
153
|
+
# @return [SetLabelResponse]
|
154
|
+
describe 'set_label test' do
|
155
|
+
it 'should work' do
|
156
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# unit tests for sync
|
161
|
+
# Sync from remote
|
162
|
+
# Trigger an asynchronous task to sync content.
|
163
|
+
# @param hugging_face_hugging_face_repository_href
|
164
|
+
# @param repository_sync_url
|
165
|
+
# @param [Hash] opts the optional parameters
|
166
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
167
|
+
# @return [AsyncOperationResponse]
|
168
|
+
describe 'sync test' do
|
169
|
+
it 'should work' do
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
# unit tests for unset_label
|
175
|
+
# Unset a label
|
176
|
+
# Unset a single pulp_label on the object.
|
177
|
+
# @param hugging_face_hugging_face_repository_href
|
178
|
+
# @param unset_label
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
181
|
+
# @return [UnsetLabelResponse]
|
182
|
+
describe 'unset_label test' do
|
183
|
+
it 'should work' do
|
184
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# unit tests for update
|
189
|
+
# Update a hugging face repository
|
190
|
+
# Trigger an asynchronous update task
|
191
|
+
# @param hugging_face_hugging_face_repository_href
|
192
|
+
# @param hugging_face_hugging_face_repository
|
193
|
+
# @param [Hash] opts the optional parameters
|
194
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
195
|
+
# @return [AsyncOperationResponse]
|
196
|
+
describe 'update test' do
|
197
|
+
it 'should work' do
|
198
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RepositoriesHuggingFaceVersionsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RepositoriesHuggingFaceVersionsApi' do
|
30
|
+
it 'should create an instance of RepositoriesHuggingFaceVersionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete
|
36
|
+
# Delete a repository version
|
37
|
+
# Trigger an asynchronous task to delete a repository version.
|
38
|
+
# @param hugging_face_hugging_face_repository_version_href
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
41
|
+
# @return [AsyncOperationResponse]
|
42
|
+
describe 'delete test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for list
|
49
|
+
# List repository versions
|
50
|
+
# A ViewSet for a HuggingFaceRepositoryVersion represents a single HuggingFace repository version.
|
51
|
+
# @param hugging_face_hugging_face_repository_href
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
54
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
55
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
56
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
57
|
+
# @option opts [Integer] :number Filter results where number matches value
|
58
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
59
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
60
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
61
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
62
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
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)
|
65
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
66
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
67
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
68
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
69
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
70
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
71
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
72
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
73
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
74
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
75
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
76
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
77
|
+
# @return [PaginatedRepositoryVersionResponseList]
|
78
|
+
describe 'list test' 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
|
+
|
84
|
+
# unit tests for read
|
85
|
+
# Inspect a repository version
|
86
|
+
# A ViewSet for a HuggingFaceRepositoryVersion represents a single HuggingFace repository version.
|
87
|
+
# @param hugging_face_hugging_face_repository_version_href
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
90
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
91
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
92
|
+
# @return [RepositoryVersionResponse]
|
93
|
+
describe 'read test' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# unit tests for repair
|
100
|
+
# Trigger an asynchronous task to repair a repository version.
|
101
|
+
# @param hugging_face_hugging_face_repository_version_href
|
102
|
+
# @param repair
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
105
|
+
# @return [AsyncOperationResponse]
|
106
|
+
describe 'repair test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpHuggingFaceClient::AsyncOperationResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PulpHuggingFaceClient::AsyncOperationResponse do
|
21
|
+
let(:instance) { PulpHuggingFaceClient::AsyncOperationResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AsyncOperationResponse' do
|
24
|
+
it 'should create an instance of AsyncOperationResponse' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(PulpHuggingFaceClient::AsyncOperationResponse)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "task"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|