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,359 @@
1
+ # PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**delete**](RepositoriesHuggingFaceVersionsApi.md#delete) | **DELETE** {hugging_face_hugging_face_repository_version_href} | Delete a repository version |
8
+ | [**list**](RepositoriesHuggingFaceVersionsApi.md#list) | **GET** {hugging_face_hugging_face_repository_href}versions/ | List repository versions |
9
+ | [**read**](RepositoriesHuggingFaceVersionsApi.md#read) | **GET** {hugging_face_hugging_face_repository_version_href} | Inspect a repository version |
10
+ | [**repair**](RepositoriesHuggingFaceVersionsApi.md#repair) | **POST** {hugging_face_hugging_face_repository_version_href}repair/ | |
11
+
12
+
13
+ ## delete
14
+
15
+ > <AsyncOperationResponse> delete(hugging_face_hugging_face_repository_version_href, opts)
16
+
17
+ Delete a repository version
18
+
19
+ Trigger an asynchronous task to delete a repository version.
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'pulp_hugging_face_client'
26
+ # setup authorization
27
+ PulpHuggingFaceClient.configure do |config|
28
+ # Configure HTTP basic authorization: basicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi.new
34
+ hugging_face_hugging_face_repository_version_href = 'hugging_face_hugging_face_repository_version_href_example' # String |
35
+ opts = {
36
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
37
+ }
38
+
39
+ begin
40
+ # Delete a repository version
41
+ result = api_instance.delete(hugging_face_hugging_face_repository_version_href, opts)
42
+ p result
43
+ rescue PulpHuggingFaceClient::ApiError => e
44
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->delete: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the delete_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(hugging_face_hugging_face_repository_version_href, opts)
53
+
54
+ ```ruby
55
+ begin
56
+ # Delete a repository version
57
+ data, status_code, headers = api_instance.delete_with_http_info(hugging_face_hugging_face_repository_version_href, opts)
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => <AsyncOperationResponse>
61
+ rescue PulpHuggingFaceClient::ApiError => e
62
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->delete_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ | Name | Type | Description | Notes |
69
+ | ---- | ---- | ----------- | ----- |
70
+ | **hugging_face_hugging_face_repository_version_href** | **String** | | |
71
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
72
+
73
+ ### Return type
74
+
75
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
76
+
77
+ ### Authorization
78
+
79
+ [basicAuth](../README.md#basicAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: application/json
85
+
86
+
87
+ ## list
88
+
89
+ > <PaginatedRepositoryVersionResponseList> list(hugging_face_hugging_face_repository_href, opts)
90
+
91
+ List repository versions
92
+
93
+ A ViewSet for a HuggingFaceRepositoryVersion represents a single HuggingFace repository version.
94
+
95
+ ### Examples
96
+
97
+ ```ruby
98
+ require 'time'
99
+ require 'pulp_hugging_face_client'
100
+ # setup authorization
101
+ PulpHuggingFaceClient.configure do |config|
102
+ # Configure HTTP basic authorization: basicAuth
103
+ config.username = 'YOUR USERNAME'
104
+ config.password = 'YOUR PASSWORD'
105
+ end
106
+
107
+ api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi.new
108
+ hugging_face_hugging_face_repository_href = 'hugging_face_hugging_face_repository_href_example' # String |
109
+ opts = {
110
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
111
+ content: 'content_example', # String | Content Unit referenced by HREF/PRN
112
+ content__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
113
+ limit: 56, # Integer | Number of results to return per page.
114
+ number: 56, # Integer | Filter results where number matches value
115
+ number__gt: 56, # Integer | Filter results where number is greater than value
116
+ number__gte: 56, # Integer | Filter results where number is greater than or equal to value
117
+ number__lt: 56, # Integer | Filter results where number is less than value
118
+ number__lte: 56, # Integer | Filter results where number is less than or equal to value
119
+ number__range: [37], # Array<Integer> | Filter results where number is between two comma separated values
120
+ offset: 56, # Integer | The initial index from which to return the results.
121
+ ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
122
+ prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
123
+ pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
124
+ pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
125
+ pulp_created__gte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than or equal to value
126
+ pulp_created__isnull: true, # Boolean | Filter results where pulp_created has a null value
127
+ pulp_created__lt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is less than value
128
+ pulp_created__lte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is less than or equal to value
129
+ pulp_created__range: [Time.now], # Array<Time> | Filter results where pulp_created is between two comma separated values
130
+ pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
131
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
132
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
133
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
134
+ }
135
+
136
+ begin
137
+ # List repository versions
138
+ result = api_instance.list(hugging_face_hugging_face_repository_href, opts)
139
+ p result
140
+ rescue PulpHuggingFaceClient::ApiError => e
141
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->list: #{e}"
142
+ end
143
+ ```
144
+
145
+ #### Using the list_with_http_info variant
146
+
147
+ This returns an Array which contains the response data, status code and headers.
148
+
149
+ > <Array(<PaginatedRepositoryVersionResponseList>, Integer, Hash)> list_with_http_info(hugging_face_hugging_face_repository_href, opts)
150
+
151
+ ```ruby
152
+ begin
153
+ # List repository versions
154
+ data, status_code, headers = api_instance.list_with_http_info(hugging_face_hugging_face_repository_href, opts)
155
+ p status_code # => 2xx
156
+ p headers # => { ... }
157
+ p data # => <PaginatedRepositoryVersionResponseList>
158
+ rescue PulpHuggingFaceClient::ApiError => e
159
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->list_with_http_info: #{e}"
160
+ end
161
+ ```
162
+
163
+ ### Parameters
164
+
165
+ | Name | Type | Description | Notes |
166
+ | ---- | ---- | ----------- | ----- |
167
+ | **hugging_face_hugging_face_repository_href** | **String** | | |
168
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
169
+ | **content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
170
+ | **content__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
171
+ | **limit** | **Integer** | Number of results to return per page. | [optional] |
172
+ | **number** | **Integer** | Filter results where number matches value | [optional] |
173
+ | **number__gt** | **Integer** | Filter results where number is greater than value | [optional] |
174
+ | **number__gte** | **Integer** | Filter results where number is greater than or equal to value | [optional] |
175
+ | **number__lt** | **Integer** | Filter results where number is less than value | [optional] |
176
+ | **number__lte** | **Integer** | Filter results where number is less than or equal to value | [optional] |
177
+ | **number__range** | [**Array&lt;Integer&gt;**](Integer.md) | Filter results where number is between two comma separated values | [optional] |
178
+ | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
179
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | 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) | [optional] |
180
+ | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
181
+ | **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
182
+ | **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
183
+ | **pulp_created__gte** | **Time** | Filter results where pulp_created is greater than or equal to value | [optional] |
184
+ | **pulp_created__isnull** | **Boolean** | Filter results where pulp_created has a null value | [optional] |
185
+ | **pulp_created__lt** | **Time** | Filter results where pulp_created is less than value | [optional] |
186
+ | **pulp_created__lte** | **Time** | Filter results where pulp_created is less than or equal to value | [optional] |
187
+ | **pulp_created__range** | [**Array&lt;Time&gt;**](Time.md) | Filter results where pulp_created is between two comma separated values | [optional] |
188
+ | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
189
+ | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
190
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
191
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
192
+
193
+ ### Return type
194
+
195
+ [**PaginatedRepositoryVersionResponseList**](PaginatedRepositoryVersionResponseList.md)
196
+
197
+ ### Authorization
198
+
199
+ [basicAuth](../README.md#basicAuth)
200
+
201
+ ### HTTP request headers
202
+
203
+ - **Content-Type**: Not defined
204
+ - **Accept**: application/json
205
+
206
+
207
+ ## read
208
+
209
+ > <RepositoryVersionResponse> read(hugging_face_hugging_face_repository_version_href, opts)
210
+
211
+ Inspect a repository version
212
+
213
+ A ViewSet for a HuggingFaceRepositoryVersion represents a single HuggingFace repository version.
214
+
215
+ ### Examples
216
+
217
+ ```ruby
218
+ require 'time'
219
+ require 'pulp_hugging_face_client'
220
+ # setup authorization
221
+ PulpHuggingFaceClient.configure do |config|
222
+ # Configure HTTP basic authorization: basicAuth
223
+ config.username = 'YOUR USERNAME'
224
+ config.password = 'YOUR PASSWORD'
225
+ end
226
+
227
+ api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi.new
228
+ hugging_face_hugging_face_repository_version_href = 'hugging_face_hugging_face_repository_version_href_example' # String |
229
+ opts = {
230
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
231
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
232
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
233
+ }
234
+
235
+ begin
236
+ # Inspect a repository version
237
+ result = api_instance.read(hugging_face_hugging_face_repository_version_href, opts)
238
+ p result
239
+ rescue PulpHuggingFaceClient::ApiError => e
240
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->read: #{e}"
241
+ end
242
+ ```
243
+
244
+ #### Using the read_with_http_info variant
245
+
246
+ This returns an Array which contains the response data, status code and headers.
247
+
248
+ > <Array(<RepositoryVersionResponse>, Integer, Hash)> read_with_http_info(hugging_face_hugging_face_repository_version_href, opts)
249
+
250
+ ```ruby
251
+ begin
252
+ # Inspect a repository version
253
+ data, status_code, headers = api_instance.read_with_http_info(hugging_face_hugging_face_repository_version_href, opts)
254
+ p status_code # => 2xx
255
+ p headers # => { ... }
256
+ p data # => <RepositoryVersionResponse>
257
+ rescue PulpHuggingFaceClient::ApiError => e
258
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->read_with_http_info: #{e}"
259
+ end
260
+ ```
261
+
262
+ ### Parameters
263
+
264
+ | Name | Type | Description | Notes |
265
+ | ---- | ---- | ----------- | ----- |
266
+ | **hugging_face_hugging_face_repository_version_href** | **String** | | |
267
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
268
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
269
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
270
+
271
+ ### Return type
272
+
273
+ [**RepositoryVersionResponse**](RepositoryVersionResponse.md)
274
+
275
+ ### Authorization
276
+
277
+ [basicAuth](../README.md#basicAuth)
278
+
279
+ ### HTTP request headers
280
+
281
+ - **Content-Type**: Not defined
282
+ - **Accept**: application/json
283
+
284
+
285
+ ## repair
286
+
287
+ > <AsyncOperationResponse> repair(hugging_face_hugging_face_repository_version_href, repair, opts)
288
+
289
+
290
+
291
+ Trigger an asynchronous task to repair a repository version.
292
+
293
+ ### Examples
294
+
295
+ ```ruby
296
+ require 'time'
297
+ require 'pulp_hugging_face_client'
298
+ # setup authorization
299
+ PulpHuggingFaceClient.configure do |config|
300
+ # Configure HTTP basic authorization: basicAuth
301
+ config.username = 'YOUR USERNAME'
302
+ config.password = 'YOUR PASSWORD'
303
+ end
304
+
305
+ api_instance = PulpHuggingFaceClient::RepositoriesHuggingFaceVersionsApi.new
306
+ hugging_face_hugging_face_repository_version_href = 'hugging_face_hugging_face_repository_version_href_example' # String |
307
+ repair = PulpHuggingFaceClient::Repair.new # Repair |
308
+ opts = {
309
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
310
+ }
311
+
312
+ begin
313
+
314
+ result = api_instance.repair(hugging_face_hugging_face_repository_version_href, repair, opts)
315
+ p result
316
+ rescue PulpHuggingFaceClient::ApiError => e
317
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->repair: #{e}"
318
+ end
319
+ ```
320
+
321
+ #### Using the repair_with_http_info variant
322
+
323
+ This returns an Array which contains the response data, status code and headers.
324
+
325
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> repair_with_http_info(hugging_face_hugging_face_repository_version_href, repair, opts)
326
+
327
+ ```ruby
328
+ begin
329
+
330
+ data, status_code, headers = api_instance.repair_with_http_info(hugging_face_hugging_face_repository_version_href, repair, opts)
331
+ p status_code # => 2xx
332
+ p headers # => { ... }
333
+ p data # => <AsyncOperationResponse>
334
+ rescue PulpHuggingFaceClient::ApiError => e
335
+ puts "Error when calling RepositoriesHuggingFaceVersionsApi->repair_with_http_info: #{e}"
336
+ end
337
+ ```
338
+
339
+ ### Parameters
340
+
341
+ | Name | Type | Description | Notes |
342
+ | ---- | ---- | ----------- | ----- |
343
+ | **hugging_face_hugging_face_repository_version_href** | **String** | | |
344
+ | **repair** | [**Repair**](Repair.md) | | |
345
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
346
+
347
+ ### Return type
348
+
349
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
350
+
351
+ ### Authorization
352
+
353
+ [basicAuth](../README.md#basicAuth)
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
358
+ - **Accept**: application/json
359
+
@@ -0,0 +1,22 @@
1
+ # PulpHuggingFaceClient::RepositoryAddRemoveContent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **add_content_units** | **Array&lt;String&gt;** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional] |
8
+ | **remove_content_units** | **Array&lt;String&gt;** | A list of content units to remove from the latest repository version. You may also specify &#39;*&#39; as an entry to remove all content. This content is removed before add_content_units are added. | [optional] |
9
+ | **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'pulp_hugging_face_client'
15
+
16
+ instance = PulpHuggingFaceClient::RepositoryAddRemoveContent.new(
17
+ add_content_units: null,
18
+ remove_content_units: null,
19
+ base_version: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # PulpHuggingFaceClient::RepositorySyncURL
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional] |
8
+ | **mirror** | **Boolean** | If &#x60;&#x60;True&#x60;&#x60;, synchronization will remove all content that is not present in the remote repository. If &#x60;&#x60;False&#x60;&#x60;, sync will be additive only. | [optional][default to false] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pulp_hugging_face_client'
14
+
15
+ instance = PulpHuggingFaceClient::RepositorySyncURL.new(
16
+ remote: null,
17
+ mirror: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,32 @@
1
+ # PulpHuggingFaceClient::RepositoryVersionResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pulp_href** | **String** | | [optional][readonly] |
8
+ | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
9
+ | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
+ | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
11
+ | **number** | **Integer** | | [optional][readonly] |
12
+ | **repository** | **String** | | [optional][readonly] |
13
+ | **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional] |
14
+ | **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional][readonly] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'pulp_hugging_face_client'
20
+
21
+ instance = PulpHuggingFaceClient::RepositoryVersionResponse.new(
22
+ pulp_href: null,
23
+ prn: null,
24
+ pulp_created: null,
25
+ pulp_last_updated: null,
26
+ number: null,
27
+ repository: null,
28
+ base_version: null,
29
+ content_summary: null
30
+ )
31
+ ```
32
+
data/docs/SetLabel.md ADDED
@@ -0,0 +1,20 @@
1
+ # PulpHuggingFaceClient::SetLabel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | | |
8
+ | **value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pulp_hugging_face_client'
14
+
15
+ instance = PulpHuggingFaceClient::SetLabel.new(
16
+ key: null,
17
+ value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # PulpHuggingFaceClient::SetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | | |
8
+ | **value** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pulp_hugging_face_client'
14
+
15
+ instance = PulpHuggingFaceClient::SetLabelResponse.new(
16
+ key: null,
17
+ value: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # PulpHuggingFaceClient::UnsetLabel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'pulp_hugging_face_client'
13
+
14
+ instance = PulpHuggingFaceClient::UnsetLabel.new(
15
+ key: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # PulpHuggingFaceClient::UnsetLabelResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | | |
8
+ | **value** | **String** | | [optional][readonly] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'pulp_hugging_face_client'
14
+
15
+ instance = PulpHuggingFaceClient::UnsetLabelResponse.new(
16
+ key: null,
17
+ value: null
18
+ )
19
+ ```
20
+