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.
Files changed (126) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +176 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +18 -0
  6. data/docs/ContentHuggingFaceApi.md +424 -0
  7. data/docs/ContentSummaryResponse.md +22 -0
  8. data/docs/DistributionsHuggingFaceApi.md +671 -0
  9. data/docs/HuggingFaceHuggingFaceContent.md +36 -0
  10. data/docs/HuggingFaceHuggingFaceContentResponse.md +42 -0
  11. data/docs/HuggingFaceHuggingFaceDistribution.md +32 -0
  12. data/docs/HuggingFaceHuggingFaceDistributionResponse.md +44 -0
  13. data/docs/HuggingFaceHuggingFacePublication.md +20 -0
  14. data/docs/HuggingFaceHuggingFacePublicationResponse.md +28 -0
  15. data/docs/HuggingFaceHuggingFaceRemote.md +62 -0
  16. data/docs/HuggingFaceHuggingFaceRemoteResponse.md +62 -0
  17. data/docs/HuggingFaceHuggingFaceRemoteResponseHiddenFieldsInner.md +20 -0
  18. data/docs/HuggingFaceHuggingFaceRepository.md +26 -0
  19. data/docs/HuggingFaceHuggingFaceRepositoryResponse.md +38 -0
  20. data/docs/PaginatedRepositoryVersionResponseList.md +24 -0
  21. data/docs/PaginatedhuggingFaceHuggingFaceContentResponseList.md +24 -0
  22. data/docs/PaginatedhuggingFaceHuggingFaceDistributionResponseList.md +24 -0
  23. data/docs/PaginatedhuggingFaceHuggingFacePublicationResponseList.md +24 -0
  24. data/docs/PaginatedhuggingFaceHuggingFaceRemoteResponseList.md +24 -0
  25. data/docs/PaginatedhuggingFaceHuggingFaceRepositoryResponseList.md +24 -0
  26. data/docs/PatchedhuggingFaceHuggingFaceDistribution.md +32 -0
  27. data/docs/PatchedhuggingFaceHuggingFaceRemote.md +62 -0
  28. data/docs/PatchedhuggingFaceHuggingFaceRepository.md +26 -0
  29. data/docs/PolicyEnum.md +15 -0
  30. data/docs/PublicationsHuggingFaceApi.md +350 -0
  31. data/docs/RemotesHuggingFaceApi.md +669 -0
  32. data/docs/Repair.md +18 -0
  33. data/docs/RepoTypeEnum.md +15 -0
  34. data/docs/RepositoriesHuggingFaceApi.md +831 -0
  35. data/docs/RepositoriesHuggingFaceVersionsApi.md +359 -0
  36. data/docs/RepositoryAddRemoveContent.md +22 -0
  37. data/docs/RepositorySyncURL.md +20 -0
  38. data/docs/RepositoryVersionResponse.md +32 -0
  39. data/docs/SetLabel.md +20 -0
  40. data/docs/SetLabelResponse.md +20 -0
  41. data/docs/UnsetLabel.md +18 -0
  42. data/docs/UnsetLabelResponse.md +20 -0
  43. data/lib/pulp_hugging_face_client/api/content_hugging_face_api.rb +441 -0
  44. data/lib/pulp_hugging_face_client/api/distributions_hugging_face_api.rb +684 -0
  45. data/lib/pulp_hugging_face_client/api/publications_hugging_face_api.rb +356 -0
  46. data/lib/pulp_hugging_face_client/api/remotes_hugging_face_api.rb +681 -0
  47. data/lib/pulp_hugging_face_client/api/repositories_hugging_face_api.rb +847 -0
  48. data/lib/pulp_hugging_face_client/api/repositories_hugging_face_versions_api.rb +374 -0
  49. data/lib/pulp_hugging_face_client/api_client.rb +438 -0
  50. data/lib/pulp_hugging_face_client/api_error.rb +58 -0
  51. data/lib/pulp_hugging_face_client/configuration.rb +392 -0
  52. data/lib/pulp_hugging_face_client/models/async_operation_response.rb +223 -0
  53. data/lib/pulp_hugging_face_client/models/content_summary_response.rb +260 -0
  54. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_content.rb +428 -0
  55. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_content_response.rb +385 -0
  56. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_distribution.rb +345 -0
  57. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_distribution_response.rb +366 -0
  58. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_publication.rb +225 -0
  59. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_publication_response.rb +264 -0
  60. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote.rb +745 -0
  61. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote_response.rb +564 -0
  62. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_remote_response_hidden_fields_inner.rb +237 -0
  63. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository.rb +316 -0
  64. data/lib/pulp_hugging_face_client/models/hugging_face_hugging_face_repository_response.rb +339 -0
  65. data/lib/pulp_hugging_face_client/models/paginated_repository_version_response_list.rb +259 -0
  66. data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_content_response_list.rb +259 -0
  67. data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_distribution_response_list.rb +259 -0
  68. data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_publication_response_list.rb +259 -0
  69. data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_remote_response_list.rb +259 -0
  70. data/lib/pulp_hugging_face_client/models/paginatedhugging_face_hugging_face_repository_response_list.rb +259 -0
  71. data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_distribution.rb +331 -0
  72. data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_remote.rb +731 -0
  73. data/lib/pulp_hugging_face_client/models/patchedhugging_face_hugging_face_repository.rb +309 -0
  74. data/lib/pulp_hugging_face_client/models/policy_enum.rb +41 -0
  75. data/lib/pulp_hugging_face_client/models/repair.rb +217 -0
  76. data/lib/pulp_hugging_face_client/models/repo_type_enum.rb +41 -0
  77. data/lib/pulp_hugging_face_client/models/repository_add_remove_content.rb +240 -0
  78. data/lib/pulp_hugging_face_client/models/repository_sync_url.rb +228 -0
  79. data/lib/pulp_hugging_face_client/models/repository_version_response.rb +283 -0
  80. data/lib/pulp_hugging_face_client/models/set_label.rb +264 -0
  81. data/lib/pulp_hugging_face_client/models/set_label_response.rb +255 -0
  82. data/lib/pulp_hugging_face_client/models/unset_label.rb +252 -0
  83. data/lib/pulp_hugging_face_client/models/unset_label_response.rb +252 -0
  84. data/lib/pulp_hugging_face_client/version.rb +15 -0
  85. data/lib/pulp_hugging_face_client.rb +77 -0
  86. data/pulp_hugging_face_client.gemspec +41 -0
  87. data/spec/api/content_hugging_face_api_spec.rb +121 -0
  88. data/spec/api/distributions_hugging_face_api_spec.rb +171 -0
  89. data/spec/api/publications_hugging_face_api_spec.rb +109 -0
  90. data/spec/api/remotes_hugging_face_api_spec.rb +170 -0
  91. data/spec/api/repositories_hugging_face_api_spec.rb +202 -0
  92. data/spec/api/repositories_hugging_face_versions_api_spec.rb +112 -0
  93. data/spec/models/async_operation_response_spec.rb +36 -0
  94. data/spec/models/content_summary_response_spec.rb +48 -0
  95. data/spec/models/hugging_face_hugging_face_content_response_spec.rb +108 -0
  96. data/spec/models/hugging_face_hugging_face_content_spec.rb +90 -0
  97. data/spec/models/hugging_face_hugging_face_distribution_response_spec.rb +114 -0
  98. data/spec/models/hugging_face_hugging_face_distribution_spec.rb +78 -0
  99. data/spec/models/hugging_face_hugging_face_publication_response_spec.rb +66 -0
  100. data/spec/models/hugging_face_hugging_face_publication_spec.rb +42 -0
  101. data/spec/models/hugging_face_hugging_face_remote_response_hidden_fields_inner_spec.rb +42 -0
  102. data/spec/models/hugging_face_hugging_face_remote_response_spec.rb +168 -0
  103. data/spec/models/hugging_face_hugging_face_remote_spec.rb +168 -0
  104. data/spec/models/hugging_face_hugging_face_repository_response_spec.rb +96 -0
  105. data/spec/models/hugging_face_hugging_face_repository_spec.rb +60 -0
  106. data/spec/models/paginated_repository_version_response_list_spec.rb +54 -0
  107. data/spec/models/paginatedhugging_face_hugging_face_content_response_list_spec.rb +54 -0
  108. data/spec/models/paginatedhugging_face_hugging_face_distribution_response_list_spec.rb +54 -0
  109. data/spec/models/paginatedhugging_face_hugging_face_publication_response_list_spec.rb +54 -0
  110. data/spec/models/paginatedhugging_face_hugging_face_remote_response_list_spec.rb +54 -0
  111. data/spec/models/paginatedhugging_face_hugging_face_repository_response_list_spec.rb +54 -0
  112. data/spec/models/patchedhugging_face_hugging_face_distribution_spec.rb +78 -0
  113. data/spec/models/patchedhugging_face_hugging_face_remote_spec.rb +168 -0
  114. data/spec/models/patchedhugging_face_hugging_face_repository_spec.rb +60 -0
  115. data/spec/models/policy_enum_spec.rb +30 -0
  116. data/spec/models/repair_spec.rb +36 -0
  117. data/spec/models/repo_type_enum_spec.rb +30 -0
  118. data/spec/models/repository_add_remove_content_spec.rb +48 -0
  119. data/spec/models/repository_sync_url_spec.rb +42 -0
  120. data/spec/models/repository_version_response_spec.rb +78 -0
  121. data/spec/models/set_label_response_spec.rb +42 -0
  122. data/spec/models/set_label_spec.rb +42 -0
  123. data/spec/models/unset_label_response_spec.rb +42 -0
  124. data/spec/models/unset_label_spec.rb +36 -0
  125. data/spec/spec_helper.rb +111 -0
  126. 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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