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,831 @@
|
|
1
|
+
# PulpHuggingFaceClient::RepositoriesHuggingFaceApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create**](RepositoriesHuggingFaceApi.md#create) | **POST** /pulp/api/v3/repositories/hugging_face/hugging-face/ | Create a hugging face repository |
|
8
|
+
| [**delete**](RepositoriesHuggingFaceApi.md#delete) | **DELETE** {hugging_face_hugging_face_repository_href} | Delete a hugging face repository |
|
9
|
+
| [**list**](RepositoriesHuggingFaceApi.md#list) | **GET** /pulp/api/v3/repositories/hugging_face/hugging-face/ | List hugging face repositorys |
|
10
|
+
| [**modify**](RepositoriesHuggingFaceApi.md#modify) | **POST** {hugging_face_hugging_face_repository_href}modify/ | Modify Repository Content |
|
11
|
+
| [**partial_update**](RepositoriesHuggingFaceApi.md#partial_update) | **PATCH** {hugging_face_hugging_face_repository_href} | Update a hugging face repository |
|
12
|
+
| [**read**](RepositoriesHuggingFaceApi.md#read) | **GET** {hugging_face_hugging_face_repository_href} | Inspect a hugging face repository |
|
13
|
+
| [**set_label**](RepositoriesHuggingFaceApi.md#set_label) | **POST** {hugging_face_hugging_face_repository_href}set_label/ | Set a label |
|
14
|
+
| [**sync**](RepositoriesHuggingFaceApi.md#sync) | **POST** {hugging_face_hugging_face_repository_href}sync/ | Sync from remote |
|
15
|
+
| [**unset_label**](RepositoriesHuggingFaceApi.md#unset_label) | **POST** {hugging_face_hugging_face_repository_href}unset_label/ | Unset a label |
|
16
|
+
| [**update**](RepositoriesHuggingFaceApi.md#update) | **PUT** {hugging_face_hugging_face_repository_href} | Update a hugging face repository |
|
17
|
+
|
18
|
+
|
19
|
+
## create
|
20
|
+
|
21
|
+
> <HuggingFaceHuggingFaceRepositoryResponse> create(hugging_face_hugging_face_repository, opts)
|
22
|
+
|
23
|
+
Create a hugging face repository
|
24
|
+
|
25
|
+
A ViewSet for HuggingFaceRepository. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
26
|
+
|
27
|
+
### Examples
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'time'
|
31
|
+
require 'pulp_hugging_face_client'
|
32
|
+
# setup authorization
|
33
|
+
PulpHuggingFaceClient.configure do |config|
|
34
|
+
# Configure HTTP basic authorization: basicAuth
|
35
|
+
config.username = 'YOUR USERNAME'
|
36
|
+
config.password = 'YOUR PASSWORD'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
40
|
+
hugging_face_hugging_face_repository = PulpHuggingFaceClient::HuggingFaceHuggingFaceRepository.new({name: 'name_example'}) # HuggingFaceHuggingFaceRepository |
|
41
|
+
opts = {
|
42
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
# Create a hugging face repository
|
47
|
+
result = api_instance.create(hugging_face_hugging_face_repository, opts)
|
48
|
+
p result
|
49
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
50
|
+
puts "Error when calling RepositoriesHuggingFaceApi->create: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
#### Using the create_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<HuggingFaceHuggingFaceRepositoryResponse>, Integer, Hash)> create_with_http_info(hugging_face_hugging_face_repository, opts)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Create a hugging face repository
|
63
|
+
data, status_code, headers = api_instance.create_with_http_info(hugging_face_hugging_face_repository, opts)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <HuggingFaceHuggingFaceRepositoryResponse>
|
67
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
68
|
+
puts "Error when calling RepositoriesHuggingFaceApi->create_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
71
|
+
|
72
|
+
### Parameters
|
73
|
+
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **hugging_face_hugging_face_repository** | [**HuggingFaceHuggingFaceRepository**](HuggingFaceHuggingFaceRepository.md) | | |
|
77
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
78
|
+
|
79
|
+
### Return type
|
80
|
+
|
81
|
+
[**HuggingFaceHuggingFaceRepositoryResponse**](HuggingFaceHuggingFaceRepositoryResponse.md)
|
82
|
+
|
83
|
+
### Authorization
|
84
|
+
|
85
|
+
[basicAuth](../README.md#basicAuth)
|
86
|
+
|
87
|
+
### HTTP request headers
|
88
|
+
|
89
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
90
|
+
- **Accept**: application/json
|
91
|
+
|
92
|
+
|
93
|
+
## delete
|
94
|
+
|
95
|
+
> <AsyncOperationResponse> delete(hugging_face_hugging_face_repository_href, opts)
|
96
|
+
|
97
|
+
Delete a hugging face repository
|
98
|
+
|
99
|
+
Trigger an asynchronous delete task
|
100
|
+
|
101
|
+
### Examples
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
require 'time'
|
105
|
+
require 'pulp_hugging_face_client'
|
106
|
+
# setup authorization
|
107
|
+
PulpHuggingFaceClient.configure do |config|
|
108
|
+
# Configure HTTP basic authorization: basicAuth
|
109
|
+
config.username = 'YOUR USERNAME'
|
110
|
+
config.password = 'YOUR PASSWORD'
|
111
|
+
end
|
112
|
+
|
113
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
114
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
115
|
+
opts = {
|
116
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
117
|
+
}
|
118
|
+
|
119
|
+
begin
|
120
|
+
# Delete a hugging face repository
|
121
|
+
result = api_instance.delete(hugging_face_hugging_face_repository_href, opts)
|
122
|
+
p result
|
123
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
124
|
+
puts "Error when calling RepositoriesHuggingFaceApi->delete: #{e}"
|
125
|
+
end
|
126
|
+
```
|
127
|
+
|
128
|
+
#### Using the delete_with_http_info variant
|
129
|
+
|
130
|
+
This returns an Array which contains the response data, status code and headers.
|
131
|
+
|
132
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(hugging_face_hugging_face_repository_href, opts)
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
begin
|
136
|
+
# Delete a hugging face repository
|
137
|
+
data, status_code, headers = api_instance.delete_with_http_info(hugging_face_hugging_face_repository_href, opts)
|
138
|
+
p status_code # => 2xx
|
139
|
+
p headers # => { ... }
|
140
|
+
p data # => <AsyncOperationResponse>
|
141
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
142
|
+
puts "Error when calling RepositoriesHuggingFaceApi->delete_with_http_info: #{e}"
|
143
|
+
end
|
144
|
+
```
|
145
|
+
|
146
|
+
### Parameters
|
147
|
+
|
148
|
+
| Name | Type | Description | Notes |
|
149
|
+
| ---- | ---- | ----------- | ----- |
|
150
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
151
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
152
|
+
|
153
|
+
### Return type
|
154
|
+
|
155
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
156
|
+
|
157
|
+
### Authorization
|
158
|
+
|
159
|
+
[basicAuth](../README.md#basicAuth)
|
160
|
+
|
161
|
+
### HTTP request headers
|
162
|
+
|
163
|
+
- **Content-Type**: Not defined
|
164
|
+
- **Accept**: application/json
|
165
|
+
|
166
|
+
|
167
|
+
## list
|
168
|
+
|
169
|
+
> <PaginatedhuggingFaceHuggingFaceRepositoryResponseList> list(opts)
|
170
|
+
|
171
|
+
List hugging face repositorys
|
172
|
+
|
173
|
+
A ViewSet for HuggingFaceRepository. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
174
|
+
|
175
|
+
### Examples
|
176
|
+
|
177
|
+
```ruby
|
178
|
+
require 'time'
|
179
|
+
require 'pulp_hugging_face_client'
|
180
|
+
# setup authorization
|
181
|
+
PulpHuggingFaceClient.configure do |config|
|
182
|
+
# Configure HTTP basic authorization: basicAuth
|
183
|
+
config.username = 'YOUR USERNAME'
|
184
|
+
config.password = 'YOUR PASSWORD'
|
185
|
+
end
|
186
|
+
|
187
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
188
|
+
opts = {
|
189
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
190
|
+
latest_with_content: 'latest_with_content_example', # String | Content Unit referenced by HREF/PRN
|
191
|
+
limit: 56, # Integer | Number of results to return per page.
|
192
|
+
name: 'name_example', # String | Filter results where name matches value
|
193
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
194
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
195
|
+
name__iexact: 'name__iexact_example', # String | Filter results where name matches value
|
196
|
+
name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
197
|
+
name__iregex: 'name__iregex_example', # String | Filter results where name matches regex value
|
198
|
+
name__istartswith: 'name__istartswith_example', # String | Filter results where name starts with value
|
199
|
+
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
200
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
201
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
202
|
+
ordering: ['-description'], # 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) * `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)
|
203
|
+
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
204
|
+
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
205
|
+
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
206
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
207
|
+
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
208
|
+
remote: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Foreign Key referenced by HREF
|
209
|
+
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
210
|
+
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
211
|
+
retain_repo_versions__gte: 56, # Integer | Filter results where retain_repo_versions is greater than or equal to value
|
212
|
+
retain_repo_versions__isnull: true, # Boolean | Filter results where retain_repo_versions has a null value
|
213
|
+
retain_repo_versions__lt: 56, # Integer | Filter results where retain_repo_versions is less than value
|
214
|
+
retain_repo_versions__lte: 56, # Integer | Filter results where retain_repo_versions is less than or equal to value
|
215
|
+
retain_repo_versions__ne: 56, # Integer | Filter results where retain_repo_versions not equal to value
|
216
|
+
retain_repo_versions__range: [37], # Array<Integer> | Filter results where retain_repo_versions is between two comma separated values
|
217
|
+
with_content: 'with_content_example', # String | Content Unit referenced by HREF/PRN
|
218
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
219
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
220
|
+
}
|
221
|
+
|
222
|
+
begin
|
223
|
+
# List hugging face repositorys
|
224
|
+
result = api_instance.list(opts)
|
225
|
+
p result
|
226
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
227
|
+
puts "Error when calling RepositoriesHuggingFaceApi->list: #{e}"
|
228
|
+
end
|
229
|
+
```
|
230
|
+
|
231
|
+
#### Using the list_with_http_info variant
|
232
|
+
|
233
|
+
This returns an Array which contains the response data, status code and headers.
|
234
|
+
|
235
|
+
> <Array(<PaginatedhuggingFaceHuggingFaceRepositoryResponseList>, Integer, Hash)> list_with_http_info(opts)
|
236
|
+
|
237
|
+
```ruby
|
238
|
+
begin
|
239
|
+
# List hugging face repositorys
|
240
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
241
|
+
p status_code # => 2xx
|
242
|
+
p headers # => { ... }
|
243
|
+
p data # => <PaginatedhuggingFaceHuggingFaceRepositoryResponseList>
|
244
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
245
|
+
puts "Error when calling RepositoriesHuggingFaceApi->list_with_http_info: #{e}"
|
246
|
+
end
|
247
|
+
```
|
248
|
+
|
249
|
+
### Parameters
|
250
|
+
|
251
|
+
| Name | Type | Description | Notes |
|
252
|
+
| ---- | ---- | ----------- | ----- |
|
253
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
254
|
+
| **latest_with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
255
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
256
|
+
| **name** | **String** | Filter results where name matches value | [optional] |
|
257
|
+
| **name__contains** | **String** | Filter results where name contains value | [optional] |
|
258
|
+
| **name__icontains** | **String** | Filter results where name contains value | [optional] |
|
259
|
+
| **name__iexact** | **String** | Filter results where name matches value | [optional] |
|
260
|
+
| **name__in** | [**Array<String>**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
|
261
|
+
| **name__iregex** | **String** | Filter results where name matches regex value | [optional] |
|
262
|
+
| **name__istartswith** | **String** | Filter results where name starts with value | [optional] |
|
263
|
+
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
264
|
+
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
265
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
266
|
+
| **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) * `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) | [optional] |
|
267
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
268
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
269
|
+
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
270
|
+
| **pulp_label_select** | **String** | Filter labels by search string | [optional] |
|
271
|
+
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
272
|
+
| **remote** | **String** | Foreign Key referenced by HREF | [optional] |
|
273
|
+
| **retain_repo_versions** | **Integer** | Filter results where retain_repo_versions matches value | [optional] |
|
274
|
+
| **retain_repo_versions__gt** | **Integer** | Filter results where retain_repo_versions is greater than value | [optional] |
|
275
|
+
| **retain_repo_versions__gte** | **Integer** | Filter results where retain_repo_versions is greater than or equal to value | [optional] |
|
276
|
+
| **retain_repo_versions__isnull** | **Boolean** | Filter results where retain_repo_versions has a null value | [optional] |
|
277
|
+
| **retain_repo_versions__lt** | **Integer** | Filter results where retain_repo_versions is less than value | [optional] |
|
278
|
+
| **retain_repo_versions__lte** | **Integer** | Filter results where retain_repo_versions is less than or equal to value | [optional] |
|
279
|
+
| **retain_repo_versions__ne** | **Integer** | Filter results where retain_repo_versions not equal to value | [optional] |
|
280
|
+
| **retain_repo_versions__range** | [**Array<Integer>**](Integer.md) | Filter results where retain_repo_versions is between two comma separated values | [optional] |
|
281
|
+
| **with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
|
282
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
283
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
284
|
+
|
285
|
+
### Return type
|
286
|
+
|
287
|
+
[**PaginatedhuggingFaceHuggingFaceRepositoryResponseList**](PaginatedhuggingFaceHuggingFaceRepositoryResponseList.md)
|
288
|
+
|
289
|
+
### Authorization
|
290
|
+
|
291
|
+
[basicAuth](../README.md#basicAuth)
|
292
|
+
|
293
|
+
### HTTP request headers
|
294
|
+
|
295
|
+
- **Content-Type**: Not defined
|
296
|
+
- **Accept**: application/json
|
297
|
+
|
298
|
+
|
299
|
+
## modify
|
300
|
+
|
301
|
+
> <AsyncOperationResponse> modify(hugging_face_hugging_face_repository_href, repository_add_remove_content, opts)
|
302
|
+
|
303
|
+
Modify Repository Content
|
304
|
+
|
305
|
+
Trigger an asynchronous task to create a new repository version.
|
306
|
+
|
307
|
+
### Examples
|
308
|
+
|
309
|
+
```ruby
|
310
|
+
require 'time'
|
311
|
+
require 'pulp_hugging_face_client'
|
312
|
+
# setup authorization
|
313
|
+
PulpHuggingFaceClient.configure do |config|
|
314
|
+
# Configure HTTP basic authorization: basicAuth
|
315
|
+
config.username = 'YOUR USERNAME'
|
316
|
+
config.password = 'YOUR PASSWORD'
|
317
|
+
end
|
318
|
+
|
319
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
320
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
321
|
+
repository_add_remove_content = PulpHuggingFaceClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
322
|
+
opts = {
|
323
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
324
|
+
}
|
325
|
+
|
326
|
+
begin
|
327
|
+
# Modify Repository Content
|
328
|
+
result = api_instance.modify(hugging_face_hugging_face_repository_href, repository_add_remove_content, opts)
|
329
|
+
p result
|
330
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
331
|
+
puts "Error when calling RepositoriesHuggingFaceApi->modify: #{e}"
|
332
|
+
end
|
333
|
+
```
|
334
|
+
|
335
|
+
#### Using the modify_with_http_info variant
|
336
|
+
|
337
|
+
This returns an Array which contains the response data, status code and headers.
|
338
|
+
|
339
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> modify_with_http_info(hugging_face_hugging_face_repository_href, repository_add_remove_content, opts)
|
340
|
+
|
341
|
+
```ruby
|
342
|
+
begin
|
343
|
+
# Modify Repository Content
|
344
|
+
data, status_code, headers = api_instance.modify_with_http_info(hugging_face_hugging_face_repository_href, repository_add_remove_content, opts)
|
345
|
+
p status_code # => 2xx
|
346
|
+
p headers # => { ... }
|
347
|
+
p data # => <AsyncOperationResponse>
|
348
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
349
|
+
puts "Error when calling RepositoriesHuggingFaceApi->modify_with_http_info: #{e}"
|
350
|
+
end
|
351
|
+
```
|
352
|
+
|
353
|
+
### Parameters
|
354
|
+
|
355
|
+
| Name | Type | Description | Notes |
|
356
|
+
| ---- | ---- | ----------- | ----- |
|
357
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
358
|
+
| **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md) | | |
|
359
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
360
|
+
|
361
|
+
### Return type
|
362
|
+
|
363
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
364
|
+
|
365
|
+
### Authorization
|
366
|
+
|
367
|
+
[basicAuth](../README.md#basicAuth)
|
368
|
+
|
369
|
+
### HTTP request headers
|
370
|
+
|
371
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
372
|
+
- **Accept**: application/json
|
373
|
+
|
374
|
+
|
375
|
+
## partial_update
|
376
|
+
|
377
|
+
> <AsyncOperationResponse> partial_update(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
378
|
+
|
379
|
+
Update a hugging face repository
|
380
|
+
|
381
|
+
Trigger an asynchronous partial update task
|
382
|
+
|
383
|
+
### Examples
|
384
|
+
|
385
|
+
```ruby
|
386
|
+
require 'time'
|
387
|
+
require 'pulp_hugging_face_client'
|
388
|
+
# setup authorization
|
389
|
+
PulpHuggingFaceClient.configure do |config|
|
390
|
+
# Configure HTTP basic authorization: basicAuth
|
391
|
+
config.username = 'YOUR USERNAME'
|
392
|
+
config.password = 'YOUR PASSWORD'
|
393
|
+
end
|
394
|
+
|
395
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
396
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
397
|
+
patchedhugging_face_hugging_face_repository = PulpHuggingFaceClient::PatchedhuggingFaceHuggingFaceRepository.new # PatchedhuggingFaceHuggingFaceRepository |
|
398
|
+
opts = {
|
399
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
400
|
+
}
|
401
|
+
|
402
|
+
begin
|
403
|
+
# Update a hugging face repository
|
404
|
+
result = api_instance.partial_update(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
405
|
+
p result
|
406
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
407
|
+
puts "Error when calling RepositoriesHuggingFaceApi->partial_update: #{e}"
|
408
|
+
end
|
409
|
+
```
|
410
|
+
|
411
|
+
#### Using the partial_update_with_http_info variant
|
412
|
+
|
413
|
+
This returns an Array which contains the response data, status code and headers.
|
414
|
+
|
415
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(hugging_face_hugging_face_repository_href, patchedhugging_face_hugging_face_repository, opts)
|
416
|
+
|
417
|
+
```ruby
|
418
|
+
begin
|
419
|
+
# Update a hugging face repository
|
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
|
+
p status_code # => 2xx
|
422
|
+
p headers # => { ... }
|
423
|
+
p data # => <AsyncOperationResponse>
|
424
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
425
|
+
puts "Error when calling RepositoriesHuggingFaceApi->partial_update_with_http_info: #{e}"
|
426
|
+
end
|
427
|
+
```
|
428
|
+
|
429
|
+
### Parameters
|
430
|
+
|
431
|
+
| Name | Type | Description | Notes |
|
432
|
+
| ---- | ---- | ----------- | ----- |
|
433
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
434
|
+
| **patchedhugging_face_hugging_face_repository** | [**PatchedhuggingFaceHuggingFaceRepository**](PatchedhuggingFaceHuggingFaceRepository.md) | | |
|
435
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
436
|
+
|
437
|
+
### Return type
|
438
|
+
|
439
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
440
|
+
|
441
|
+
### Authorization
|
442
|
+
|
443
|
+
[basicAuth](../README.md#basicAuth)
|
444
|
+
|
445
|
+
### HTTP request headers
|
446
|
+
|
447
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
448
|
+
- **Accept**: application/json
|
449
|
+
|
450
|
+
|
451
|
+
## read
|
452
|
+
|
453
|
+
> <HuggingFaceHuggingFaceRepositoryResponse> read(hugging_face_hugging_face_repository_href, opts)
|
454
|
+
|
455
|
+
Inspect a hugging face repository
|
456
|
+
|
457
|
+
A ViewSet for HuggingFaceRepository. Similar to the HuggingFaceContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
458
|
+
|
459
|
+
### Examples
|
460
|
+
|
461
|
+
```ruby
|
462
|
+
require 'time'
|
463
|
+
require 'pulp_hugging_face_client'
|
464
|
+
# setup authorization
|
465
|
+
PulpHuggingFaceClient.configure do |config|
|
466
|
+
# Configure HTTP basic authorization: basicAuth
|
467
|
+
config.username = 'YOUR USERNAME'
|
468
|
+
config.password = 'YOUR PASSWORD'
|
469
|
+
end
|
470
|
+
|
471
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
472
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
473
|
+
opts = {
|
474
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
475
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
476
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
477
|
+
}
|
478
|
+
|
479
|
+
begin
|
480
|
+
# Inspect a hugging face repository
|
481
|
+
result = api_instance.read(hugging_face_hugging_face_repository_href, opts)
|
482
|
+
p result
|
483
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
484
|
+
puts "Error when calling RepositoriesHuggingFaceApi->read: #{e}"
|
485
|
+
end
|
486
|
+
```
|
487
|
+
|
488
|
+
#### Using the read_with_http_info variant
|
489
|
+
|
490
|
+
This returns an Array which contains the response data, status code and headers.
|
491
|
+
|
492
|
+
> <Array(<HuggingFaceHuggingFaceRepositoryResponse>, Integer, Hash)> read_with_http_info(hugging_face_hugging_face_repository_href, opts)
|
493
|
+
|
494
|
+
```ruby
|
495
|
+
begin
|
496
|
+
# Inspect a hugging face repository
|
497
|
+
data, status_code, headers = api_instance.read_with_http_info(hugging_face_hugging_face_repository_href, opts)
|
498
|
+
p status_code # => 2xx
|
499
|
+
p headers # => { ... }
|
500
|
+
p data # => <HuggingFaceHuggingFaceRepositoryResponse>
|
501
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
502
|
+
puts "Error when calling RepositoriesHuggingFaceApi->read_with_http_info: #{e}"
|
503
|
+
end
|
504
|
+
```
|
505
|
+
|
506
|
+
### Parameters
|
507
|
+
|
508
|
+
| Name | Type | Description | Notes |
|
509
|
+
| ---- | ---- | ----------- | ----- |
|
510
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
511
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
512
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
513
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
514
|
+
|
515
|
+
### Return type
|
516
|
+
|
517
|
+
[**HuggingFaceHuggingFaceRepositoryResponse**](HuggingFaceHuggingFaceRepositoryResponse.md)
|
518
|
+
|
519
|
+
### Authorization
|
520
|
+
|
521
|
+
[basicAuth](../README.md#basicAuth)
|
522
|
+
|
523
|
+
### HTTP request headers
|
524
|
+
|
525
|
+
- **Content-Type**: Not defined
|
526
|
+
- **Accept**: application/json
|
527
|
+
|
528
|
+
|
529
|
+
## set_label
|
530
|
+
|
531
|
+
> <SetLabelResponse> set_label(hugging_face_hugging_face_repository_href, set_label, opts)
|
532
|
+
|
533
|
+
Set a label
|
534
|
+
|
535
|
+
Set a single pulp_label on the object to a specific value or null.
|
536
|
+
|
537
|
+
### Examples
|
538
|
+
|
539
|
+
```ruby
|
540
|
+
require 'time'
|
541
|
+
require 'pulp_hugging_face_client'
|
542
|
+
# setup authorization
|
543
|
+
PulpHuggingFaceClient.configure do |config|
|
544
|
+
# Configure HTTP basic authorization: basicAuth
|
545
|
+
config.username = 'YOUR USERNAME'
|
546
|
+
config.password = 'YOUR PASSWORD'
|
547
|
+
end
|
548
|
+
|
549
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
550
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
551
|
+
set_label = PulpHuggingFaceClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
|
552
|
+
opts = {
|
553
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
554
|
+
}
|
555
|
+
|
556
|
+
begin
|
557
|
+
# Set a label
|
558
|
+
result = api_instance.set_label(hugging_face_hugging_face_repository_href, set_label, opts)
|
559
|
+
p result
|
560
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
561
|
+
puts "Error when calling RepositoriesHuggingFaceApi->set_label: #{e}"
|
562
|
+
end
|
563
|
+
```
|
564
|
+
|
565
|
+
#### Using the set_label_with_http_info variant
|
566
|
+
|
567
|
+
This returns an Array which contains the response data, status code and headers.
|
568
|
+
|
569
|
+
> <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(hugging_face_hugging_face_repository_href, set_label, opts)
|
570
|
+
|
571
|
+
```ruby
|
572
|
+
begin
|
573
|
+
# Set a label
|
574
|
+
data, status_code, headers = api_instance.set_label_with_http_info(hugging_face_hugging_face_repository_href, set_label, opts)
|
575
|
+
p status_code # => 2xx
|
576
|
+
p headers # => { ... }
|
577
|
+
p data # => <SetLabelResponse>
|
578
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
579
|
+
puts "Error when calling RepositoriesHuggingFaceApi->set_label_with_http_info: #{e}"
|
580
|
+
end
|
581
|
+
```
|
582
|
+
|
583
|
+
### Parameters
|
584
|
+
|
585
|
+
| Name | Type | Description | Notes |
|
586
|
+
| ---- | ---- | ----------- | ----- |
|
587
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
588
|
+
| **set_label** | [**SetLabel**](SetLabel.md) | | |
|
589
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
590
|
+
|
591
|
+
### Return type
|
592
|
+
|
593
|
+
[**SetLabelResponse**](SetLabelResponse.md)
|
594
|
+
|
595
|
+
### Authorization
|
596
|
+
|
597
|
+
[basicAuth](../README.md#basicAuth)
|
598
|
+
|
599
|
+
### HTTP request headers
|
600
|
+
|
601
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
602
|
+
- **Accept**: application/json
|
603
|
+
|
604
|
+
|
605
|
+
## sync
|
606
|
+
|
607
|
+
> <AsyncOperationResponse> sync(hugging_face_hugging_face_repository_href, repository_sync_url, opts)
|
608
|
+
|
609
|
+
Sync from remote
|
610
|
+
|
611
|
+
Trigger an asynchronous task to sync content.
|
612
|
+
|
613
|
+
### Examples
|
614
|
+
|
615
|
+
```ruby
|
616
|
+
require 'time'
|
617
|
+
require 'pulp_hugging_face_client'
|
618
|
+
# setup authorization
|
619
|
+
PulpHuggingFaceClient.configure do |config|
|
620
|
+
# Configure HTTP basic authorization: basicAuth
|
621
|
+
config.username = 'YOUR USERNAME'
|
622
|
+
config.password = 'YOUR PASSWORD'
|
623
|
+
end
|
624
|
+
|
625
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
626
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
627
|
+
repository_sync_url = PulpHuggingFaceClient::RepositorySyncURL.new # RepositorySyncURL |
|
628
|
+
opts = {
|
629
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
630
|
+
}
|
631
|
+
|
632
|
+
begin
|
633
|
+
# Sync from remote
|
634
|
+
result = api_instance.sync(hugging_face_hugging_face_repository_href, repository_sync_url, opts)
|
635
|
+
p result
|
636
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
637
|
+
puts "Error when calling RepositoriesHuggingFaceApi->sync: #{e}"
|
638
|
+
end
|
639
|
+
```
|
640
|
+
|
641
|
+
#### Using the sync_with_http_info variant
|
642
|
+
|
643
|
+
This returns an Array which contains the response data, status code and headers.
|
644
|
+
|
645
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> sync_with_http_info(hugging_face_hugging_face_repository_href, repository_sync_url, opts)
|
646
|
+
|
647
|
+
```ruby
|
648
|
+
begin
|
649
|
+
# Sync from remote
|
650
|
+
data, status_code, headers = api_instance.sync_with_http_info(hugging_face_hugging_face_repository_href, repository_sync_url, opts)
|
651
|
+
p status_code # => 2xx
|
652
|
+
p headers # => { ... }
|
653
|
+
p data # => <AsyncOperationResponse>
|
654
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
655
|
+
puts "Error when calling RepositoriesHuggingFaceApi->sync_with_http_info: #{e}"
|
656
|
+
end
|
657
|
+
```
|
658
|
+
|
659
|
+
### Parameters
|
660
|
+
|
661
|
+
| Name | Type | Description | Notes |
|
662
|
+
| ---- | ---- | ----------- | ----- |
|
663
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
664
|
+
| **repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md) | | |
|
665
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
666
|
+
|
667
|
+
### Return type
|
668
|
+
|
669
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
670
|
+
|
671
|
+
### Authorization
|
672
|
+
|
673
|
+
[basicAuth](../README.md#basicAuth)
|
674
|
+
|
675
|
+
### HTTP request headers
|
676
|
+
|
677
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
678
|
+
- **Accept**: application/json
|
679
|
+
|
680
|
+
|
681
|
+
## unset_label
|
682
|
+
|
683
|
+
> <UnsetLabelResponse> unset_label(hugging_face_hugging_face_repository_href, unset_label, opts)
|
684
|
+
|
685
|
+
Unset a label
|
686
|
+
|
687
|
+
Unset a single pulp_label on the object.
|
688
|
+
|
689
|
+
### Examples
|
690
|
+
|
691
|
+
```ruby
|
692
|
+
require 'time'
|
693
|
+
require 'pulp_hugging_face_client'
|
694
|
+
# setup authorization
|
695
|
+
PulpHuggingFaceClient.configure do |config|
|
696
|
+
# Configure HTTP basic authorization: basicAuth
|
697
|
+
config.username = 'YOUR USERNAME'
|
698
|
+
config.password = 'YOUR PASSWORD'
|
699
|
+
end
|
700
|
+
|
701
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
702
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
703
|
+
unset_label = PulpHuggingFaceClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
|
704
|
+
opts = {
|
705
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
706
|
+
}
|
707
|
+
|
708
|
+
begin
|
709
|
+
# Unset a label
|
710
|
+
result = api_instance.unset_label(hugging_face_hugging_face_repository_href, unset_label, opts)
|
711
|
+
p result
|
712
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
713
|
+
puts "Error when calling RepositoriesHuggingFaceApi->unset_label: #{e}"
|
714
|
+
end
|
715
|
+
```
|
716
|
+
|
717
|
+
#### Using the unset_label_with_http_info variant
|
718
|
+
|
719
|
+
This returns an Array which contains the response data, status code and headers.
|
720
|
+
|
721
|
+
> <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(hugging_face_hugging_face_repository_href, unset_label, opts)
|
722
|
+
|
723
|
+
```ruby
|
724
|
+
begin
|
725
|
+
# Unset a label
|
726
|
+
data, status_code, headers = api_instance.unset_label_with_http_info(hugging_face_hugging_face_repository_href, unset_label, opts)
|
727
|
+
p status_code # => 2xx
|
728
|
+
p headers # => { ... }
|
729
|
+
p data # => <UnsetLabelResponse>
|
730
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
731
|
+
puts "Error when calling RepositoriesHuggingFaceApi->unset_label_with_http_info: #{e}"
|
732
|
+
end
|
733
|
+
```
|
734
|
+
|
735
|
+
### Parameters
|
736
|
+
|
737
|
+
| Name | Type | Description | Notes |
|
738
|
+
| ---- | ---- | ----------- | ----- |
|
739
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
740
|
+
| **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
|
741
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
742
|
+
|
743
|
+
### Return type
|
744
|
+
|
745
|
+
[**UnsetLabelResponse**](UnsetLabelResponse.md)
|
746
|
+
|
747
|
+
### Authorization
|
748
|
+
|
749
|
+
[basicAuth](../README.md#basicAuth)
|
750
|
+
|
751
|
+
### HTTP request headers
|
752
|
+
|
753
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
754
|
+
- **Accept**: application/json
|
755
|
+
|
756
|
+
|
757
|
+
## update
|
758
|
+
|
759
|
+
> <AsyncOperationResponse> update(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
760
|
+
|
761
|
+
Update a hugging face repository
|
762
|
+
|
763
|
+
Trigger an asynchronous update task
|
764
|
+
|
765
|
+
### Examples
|
766
|
+
|
767
|
+
```ruby
|
768
|
+
require 'time'
|
769
|
+
require 'pulp_hugging_face_client'
|
770
|
+
# setup authorization
|
771
|
+
PulpHuggingFaceClient.configure do |config|
|
772
|
+
# Configure HTTP basic authorization: basicAuth
|
773
|
+
config.username = 'YOUR USERNAME'
|
774
|
+
config.password = 'YOUR PASSWORD'
|
775
|
+
end
|
776
|
+
|
777
|
+
api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceApi.new
|
778
|
+
hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
|
779
|
+
hugging_face_hugging_face_repository = PulpHuggingFaceClient::HuggingFaceHuggingFaceRepository.new({name: 'name_example'}) # HuggingFaceHuggingFaceRepository |
|
780
|
+
opts = {
|
781
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
782
|
+
}
|
783
|
+
|
784
|
+
begin
|
785
|
+
# Update a hugging face repository
|
786
|
+
result = api_instance.update(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
787
|
+
p result
|
788
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
789
|
+
puts "Error when calling RepositoriesHuggingFaceApi->update: #{e}"
|
790
|
+
end
|
791
|
+
```
|
792
|
+
|
793
|
+
#### Using the update_with_http_info variant
|
794
|
+
|
795
|
+
This returns an Array which contains the response data, status code and headers.
|
796
|
+
|
797
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
798
|
+
|
799
|
+
```ruby
|
800
|
+
begin
|
801
|
+
# Update a hugging face repository
|
802
|
+
data, status_code, headers = api_instance.update_with_http_info(hugging_face_hugging_face_repository_href, hugging_face_hugging_face_repository, opts)
|
803
|
+
p status_code # => 2xx
|
804
|
+
p headers # => { ... }
|
805
|
+
p data # => <AsyncOperationResponse>
|
806
|
+
rescue PulpHuggingFaceClient::ApiError => e
|
807
|
+
puts "Error when calling RepositoriesHuggingFaceApi->update_with_http_info: #{e}"
|
808
|
+
end
|
809
|
+
```
|
810
|
+
|
811
|
+
### Parameters
|
812
|
+
|
813
|
+
| Name | Type | Description | Notes |
|
814
|
+
| ---- | ---- | ----------- | ----- |
|
815
|
+
| **hugging_face_hugging_face_repository_href** | **String** | | |
|
816
|
+
| **hugging_face_hugging_face_repository** | [**HuggingFaceHuggingFaceRepository**](HuggingFaceHuggingFaceRepository.md) | | |
|
817
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
818
|
+
|
819
|
+
### Return type
|
820
|
+
|
821
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
822
|
+
|
823
|
+
### Authorization
|
824
|
+
|
825
|
+
[basicAuth](../README.md#basicAuth)
|
826
|
+
|
827
|
+
### HTTP request headers
|
828
|
+
|
829
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
830
|
+
- **Accept**: application/json
|
831
|
+
|