pulp_gem_client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +160 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentGemApi.md +210 -0
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsGemApi.md +382 -0
- data/docs/GemGemContent.md +21 -0
- data/docs/GemGemContentResponse.md +35 -0
- data/docs/GemGemDistribution.md +31 -0
- data/docs/GemGemDistributionResponse.md +37 -0
- data/docs/GemGemPublication.md +19 -0
- data/docs/GemGemPublicationResponse.md +23 -0
- data/docs/GemGemRemote.md +63 -0
- data/docs/GemGemRemoteResponse.md +61 -0
- data/docs/GemGemRemoteResponseHiddenFields.md +19 -0
- data/docs/GemGemRepository.md +25 -0
- data/docs/GemGemRepositoryResponse.md +33 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedgemGemContentResponseList.md +23 -0
- data/docs/PaginatedgemGemDistributionResponseList.md +23 -0
- data/docs/PaginatedgemGemPublicationResponseList.md +23 -0
- data/docs/PaginatedgemGemRemoteResponseList.md +23 -0
- data/docs/PaginatedgemGemRepositoryResponseList.md +23 -0
- data/docs/PatchedgemGemDistribution.md +31 -0
- data/docs/PatchedgemGemRemote.md +63 -0
- data/docs/PatchedgemGemRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsGemApi.md +263 -0
- data/docs/RemotesGemApi.md +380 -0
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesGemApi.md +502 -0
- data/docs/RepositoriesGemVersionsApi.md +273 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersionResponse.md +27 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +259 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +476 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +325 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +473 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +628 -0
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +346 -0
- data/lib/pulp_gem_client/api_client.rb +403 -0
- data/lib/pulp_gem_client/api_error.rb +57 -0
- data/lib/pulp_gem_client/configuration.rb +251 -0
- data/lib/pulp_gem_client/models/async_operation_response.rb +213 -0
- data/lib/pulp_gem_client/models/content_summary_response.rb +246 -0
- data/lib/pulp_gem_client/models/gem_gem_content.rb +228 -0
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +303 -0
- data/lib/pulp_gem_client/models/gem_gem_distribution.rb +333 -0
- data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +324 -0
- data/lib/pulp_gem_client/models/gem_gem_publication.rb +217 -0
- data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +236 -0
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +704 -0
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +532 -0
- data/lib/pulp_gem_client/models/gem_gem_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +306 -0
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +309 -0
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +315 -0
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +686 -0
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +297 -0
- data/lib/pulp_gem_client/models/policy_enum.rb +37 -0
- data/lib/pulp_gem_client/models/repair.rb +209 -0
- data/lib/pulp_gem_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulp_gem_client/models/repository_sync_url.rb +220 -0
- data/lib/pulp_gem_client/models/repository_version_response.rb +255 -0
- data/lib/pulp_gem_client/version.rb +15 -0
- data/lib/pulp_gem_client.rb +72 -0
- data/pulp_gem_client.gemspec +39 -0
- data/spec/api/content_gem_api_spec.rb +88 -0
- data/spec/api/distributions_gem_api_spec.rb +130 -0
- data/spec/api/publications_gem_api_spec.rb +101 -0
- data/spec/api/remotes_gem_api_spec.rb +129 -0
- data/spec/api/repositories_gem_api_spec.rb +160 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +105 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/gem_gem_content_response_spec.rb +95 -0
- data/spec/models/gem_gem_content_spec.rb +53 -0
- data/spec/models/gem_gem_distribution_response_spec.rb +101 -0
- data/spec/models/gem_gem_distribution_spec.rb +83 -0
- data/spec/models/gem_gem_publication_response_spec.rb +59 -0
- data/spec/models/gem_gem_publication_spec.rb +47 -0
- data/spec/models/gem_gem_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/gem_gem_remote_response_spec.rb +173 -0
- data/spec/models/gem_gem_remote_spec.rb +179 -0
- data/spec/models/gem_gem_repository_response_spec.rb +89 -0
- data/spec/models/gem_gem_repository_spec.rb +65 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_content_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +59 -0
- data/spec/models/patchedgem_gem_distribution_spec.rb +83 -0
- data/spec/models/patchedgem_gem_remote_spec.rb +179 -0
- data/spec/models/patchedgem_gem_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repair_spec.rb +41 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_response_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +250 -0
@@ -0,0 +1,502 @@
|
|
1
|
+
# PulpGemClient::RepositoriesGemApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](RepositoriesGemApi.md#create) | **POST** /pulp/api/v3/repositories/gem/gem/ | Create a gem repository
|
8
|
+
[**delete**](RepositoriesGemApi.md#delete) | **DELETE** {gem_gem_repository_href} | Delete a gem repository
|
9
|
+
[**list**](RepositoriesGemApi.md#list) | **GET** /pulp/api/v3/repositories/gem/gem/ | List gem repositorys
|
10
|
+
[**modify**](RepositoriesGemApi.md#modify) | **POST** {gem_gem_repository_href}modify/ | Modify Repository Content
|
11
|
+
[**partial_update**](RepositoriesGemApi.md#partial_update) | **PATCH** {gem_gem_repository_href} | Update a gem repository
|
12
|
+
[**read**](RepositoriesGemApi.md#read) | **GET** {gem_gem_repository_href} | Inspect a gem repository
|
13
|
+
[**sync**](RepositoriesGemApi.md#sync) | **POST** {gem_gem_repository_href}sync/ | Sync from a remote
|
14
|
+
[**update**](RepositoriesGemApi.md#update) | **PUT** {gem_gem_repository_href} | Update a gem repository
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
## create
|
19
|
+
|
20
|
+
> GemGemRepositoryResponse create(gem_gem_repository)
|
21
|
+
|
22
|
+
Create a gem repository
|
23
|
+
|
24
|
+
A ViewSet for GemRepository.
|
25
|
+
|
26
|
+
### Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
# load the gem
|
30
|
+
require 'pulp_gem_client'
|
31
|
+
# setup authorization
|
32
|
+
PulpGemClient.configure do |config|
|
33
|
+
# Configure HTTP basic authorization: basicAuth
|
34
|
+
config.username = 'YOUR USERNAME'
|
35
|
+
config.password = 'YOUR PASSWORD'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
39
|
+
gem_gem_repository = PulpGemClient::GemGemRepository.new # GemGemRepository |
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Create a gem repository
|
43
|
+
result = api_instance.create(gem_gem_repository)
|
44
|
+
p result
|
45
|
+
rescue PulpGemClient::ApiError => e
|
46
|
+
puts "Exception when calling RepositoriesGemApi->create: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**gem_gem_repository** | [**GemGemRepository**](GemGemRepository.md)| |
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
[**GemGemRepositoryResponse**](GemGemRepositoryResponse.md)
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[basicAuth](../README.md#basicAuth)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
## delete
|
72
|
+
|
73
|
+
> AsyncOperationResponse delete(gem_gem_repository_href)
|
74
|
+
|
75
|
+
Delete a gem repository
|
76
|
+
|
77
|
+
Trigger an asynchronous delete task
|
78
|
+
|
79
|
+
### Example
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
# load the gem
|
83
|
+
require 'pulp_gem_client'
|
84
|
+
# setup authorization
|
85
|
+
PulpGemClient.configure do |config|
|
86
|
+
# Configure HTTP basic authorization: basicAuth
|
87
|
+
config.username = 'YOUR USERNAME'
|
88
|
+
config.password = 'YOUR PASSWORD'
|
89
|
+
end
|
90
|
+
|
91
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
92
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
93
|
+
|
94
|
+
begin
|
95
|
+
#Delete a gem repository
|
96
|
+
result = api_instance.delete(gem_gem_repository_href)
|
97
|
+
p result
|
98
|
+
rescue PulpGemClient::ApiError => e
|
99
|
+
puts "Exception when calling RepositoriesGemApi->delete: #{e}"
|
100
|
+
end
|
101
|
+
```
|
102
|
+
|
103
|
+
### Parameters
|
104
|
+
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**gem_gem_repository_href** | **String**| |
|
109
|
+
|
110
|
+
### Return type
|
111
|
+
|
112
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
113
|
+
|
114
|
+
### Authorization
|
115
|
+
|
116
|
+
[basicAuth](../README.md#basicAuth)
|
117
|
+
|
118
|
+
### HTTP request headers
|
119
|
+
|
120
|
+
- **Content-Type**: Not defined
|
121
|
+
- **Accept**: application/json
|
122
|
+
|
123
|
+
|
124
|
+
## list
|
125
|
+
|
126
|
+
> PaginatedgemGemRepositoryResponseList list(opts)
|
127
|
+
|
128
|
+
List gem repositorys
|
129
|
+
|
130
|
+
A ViewSet for GemRepository.
|
131
|
+
|
132
|
+
### Example
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
# load the gem
|
136
|
+
require 'pulp_gem_client'
|
137
|
+
# setup authorization
|
138
|
+
PulpGemClient.configure do |config|
|
139
|
+
# Configure HTTP basic authorization: basicAuth
|
140
|
+
config.username = 'YOUR USERNAME'
|
141
|
+
config.password = 'YOUR PASSWORD'
|
142
|
+
end
|
143
|
+
|
144
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
145
|
+
opts = {
|
146
|
+
latest_with_content: 'latest_with_content_example', # String | Content Unit referenced by HREF
|
147
|
+
limit: 56, # Integer | Number of results to return per page.
|
148
|
+
name: 'name_example', # String | Filter results where name matches value
|
149
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
150
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
151
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
152
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
153
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
154
|
+
ordering: ['ordering_example'], # 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)
|
155
|
+
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
156
|
+
pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
|
157
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
158
|
+
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
159
|
+
retain_repo_versions: 56, # Integer | Filter results where retain_repo_versions matches value
|
160
|
+
retain_repo_versions__gt: 56, # Integer | Filter results where retain_repo_versions is greater than value
|
161
|
+
retain_repo_versions__gte: 56, # Integer | Filter results where retain_repo_versions is greater than or equal to value
|
162
|
+
retain_repo_versions__isnull: true, # Boolean | Filter results where retain_repo_versions has a null value
|
163
|
+
retain_repo_versions__lt: 56, # Integer | Filter results where retain_repo_versions is less than value
|
164
|
+
retain_repo_versions__lte: 56, # Integer | Filter results where retain_repo_versions is less than or equal to value
|
165
|
+
retain_repo_versions__ne: 56, # Integer | Filter results where retain_repo_versions not equal to value
|
166
|
+
retain_repo_versions__range: [56], # Array<Integer> | Filter results where retain_repo_versions is between two comma separated values
|
167
|
+
with_content: 'with_content_example', # String | Content Unit referenced by HREF
|
168
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
169
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
170
|
+
}
|
171
|
+
|
172
|
+
begin
|
173
|
+
#List gem repositorys
|
174
|
+
result = api_instance.list(opts)
|
175
|
+
p result
|
176
|
+
rescue PulpGemClient::ApiError => e
|
177
|
+
puts "Exception when calling RepositoriesGemApi->list: #{e}"
|
178
|
+
end
|
179
|
+
```
|
180
|
+
|
181
|
+
### Parameters
|
182
|
+
|
183
|
+
|
184
|
+
Name | Type | Description | Notes
|
185
|
+
------------- | ------------- | ------------- | -------------
|
186
|
+
**latest_with_content** | **String**| Content Unit referenced by HREF | [optional]
|
187
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
188
|
+
**name** | **String**| Filter results where name matches value | [optional]
|
189
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
190
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
191
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
192
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
193
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
194
|
+
**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]
|
195
|
+
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
196
|
+
**pulp_id__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
197
|
+
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
198
|
+
**remote** | **String**| Foreign Key referenced by HREF | [optional]
|
199
|
+
**retain_repo_versions** | **Integer**| Filter results where retain_repo_versions matches value | [optional]
|
200
|
+
**retain_repo_versions__gt** | **Integer**| Filter results where retain_repo_versions is greater than value | [optional]
|
201
|
+
**retain_repo_versions__gte** | **Integer**| Filter results where retain_repo_versions is greater than or equal to value | [optional]
|
202
|
+
**retain_repo_versions__isnull** | **Boolean**| Filter results where retain_repo_versions has a null value | [optional]
|
203
|
+
**retain_repo_versions__lt** | **Integer**| Filter results where retain_repo_versions is less than value | [optional]
|
204
|
+
**retain_repo_versions__lte** | **Integer**| Filter results where retain_repo_versions is less than or equal to value | [optional]
|
205
|
+
**retain_repo_versions__ne** | **Integer**| Filter results where retain_repo_versions not equal to value | [optional]
|
206
|
+
**retain_repo_versions__range** | [**Array<Integer>**](Integer.md)| Filter results where retain_repo_versions is between two comma separated values | [optional]
|
207
|
+
**with_content** | **String**| Content Unit referenced by HREF | [optional]
|
208
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
209
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
210
|
+
|
211
|
+
### Return type
|
212
|
+
|
213
|
+
[**PaginatedgemGemRepositoryResponseList**](PaginatedgemGemRepositoryResponseList.md)
|
214
|
+
|
215
|
+
### Authorization
|
216
|
+
|
217
|
+
[basicAuth](../README.md#basicAuth)
|
218
|
+
|
219
|
+
### HTTP request headers
|
220
|
+
|
221
|
+
- **Content-Type**: Not defined
|
222
|
+
- **Accept**: application/json
|
223
|
+
|
224
|
+
|
225
|
+
## modify
|
226
|
+
|
227
|
+
> AsyncOperationResponse modify(gem_gem_repository_href, repository_add_remove_content)
|
228
|
+
|
229
|
+
Modify Repository Content
|
230
|
+
|
231
|
+
Trigger an asynchronous task to create a new repository version.
|
232
|
+
|
233
|
+
### Example
|
234
|
+
|
235
|
+
```ruby
|
236
|
+
# load the gem
|
237
|
+
require 'pulp_gem_client'
|
238
|
+
# setup authorization
|
239
|
+
PulpGemClient.configure do |config|
|
240
|
+
# Configure HTTP basic authorization: basicAuth
|
241
|
+
config.username = 'YOUR USERNAME'
|
242
|
+
config.password = 'YOUR PASSWORD'
|
243
|
+
end
|
244
|
+
|
245
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
246
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
247
|
+
repository_add_remove_content = PulpGemClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
248
|
+
|
249
|
+
begin
|
250
|
+
#Modify Repository Content
|
251
|
+
result = api_instance.modify(gem_gem_repository_href, repository_add_remove_content)
|
252
|
+
p result
|
253
|
+
rescue PulpGemClient::ApiError => e
|
254
|
+
puts "Exception when calling RepositoriesGemApi->modify: #{e}"
|
255
|
+
end
|
256
|
+
```
|
257
|
+
|
258
|
+
### Parameters
|
259
|
+
|
260
|
+
|
261
|
+
Name | Type | Description | Notes
|
262
|
+
------------- | ------------- | ------------- | -------------
|
263
|
+
**gem_gem_repository_href** | **String**| |
|
264
|
+
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
265
|
+
|
266
|
+
### Return type
|
267
|
+
|
268
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
269
|
+
|
270
|
+
### Authorization
|
271
|
+
|
272
|
+
[basicAuth](../README.md#basicAuth)
|
273
|
+
|
274
|
+
### HTTP request headers
|
275
|
+
|
276
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
277
|
+
- **Accept**: application/json
|
278
|
+
|
279
|
+
|
280
|
+
## partial_update
|
281
|
+
|
282
|
+
> AsyncOperationResponse partial_update(gem_gem_repository_href, patchedgem_gem_repository)
|
283
|
+
|
284
|
+
Update a gem repository
|
285
|
+
|
286
|
+
Trigger an asynchronous partial update task
|
287
|
+
|
288
|
+
### Example
|
289
|
+
|
290
|
+
```ruby
|
291
|
+
# load the gem
|
292
|
+
require 'pulp_gem_client'
|
293
|
+
# setup authorization
|
294
|
+
PulpGemClient.configure do |config|
|
295
|
+
# Configure HTTP basic authorization: basicAuth
|
296
|
+
config.username = 'YOUR USERNAME'
|
297
|
+
config.password = 'YOUR PASSWORD'
|
298
|
+
end
|
299
|
+
|
300
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
301
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
302
|
+
patchedgem_gem_repository = PulpGemClient::PatchedgemGemRepository.new # PatchedgemGemRepository |
|
303
|
+
|
304
|
+
begin
|
305
|
+
#Update a gem repository
|
306
|
+
result = api_instance.partial_update(gem_gem_repository_href, patchedgem_gem_repository)
|
307
|
+
p result
|
308
|
+
rescue PulpGemClient::ApiError => e
|
309
|
+
puts "Exception when calling RepositoriesGemApi->partial_update: #{e}"
|
310
|
+
end
|
311
|
+
```
|
312
|
+
|
313
|
+
### Parameters
|
314
|
+
|
315
|
+
|
316
|
+
Name | Type | Description | Notes
|
317
|
+
------------- | ------------- | ------------- | -------------
|
318
|
+
**gem_gem_repository_href** | **String**| |
|
319
|
+
**patchedgem_gem_repository** | [**PatchedgemGemRepository**](PatchedgemGemRepository.md)| |
|
320
|
+
|
321
|
+
### Return type
|
322
|
+
|
323
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
324
|
+
|
325
|
+
### Authorization
|
326
|
+
|
327
|
+
[basicAuth](../README.md#basicAuth)
|
328
|
+
|
329
|
+
### HTTP request headers
|
330
|
+
|
331
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
332
|
+
- **Accept**: application/json
|
333
|
+
|
334
|
+
|
335
|
+
## read
|
336
|
+
|
337
|
+
> GemGemRepositoryResponse read(gem_gem_repository_href, opts)
|
338
|
+
|
339
|
+
Inspect a gem repository
|
340
|
+
|
341
|
+
A ViewSet for GemRepository.
|
342
|
+
|
343
|
+
### Example
|
344
|
+
|
345
|
+
```ruby
|
346
|
+
# load the gem
|
347
|
+
require 'pulp_gem_client'
|
348
|
+
# setup authorization
|
349
|
+
PulpGemClient.configure do |config|
|
350
|
+
# Configure HTTP basic authorization: basicAuth
|
351
|
+
config.username = 'YOUR USERNAME'
|
352
|
+
config.password = 'YOUR PASSWORD'
|
353
|
+
end
|
354
|
+
|
355
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
356
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
357
|
+
opts = {
|
358
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
359
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
360
|
+
}
|
361
|
+
|
362
|
+
begin
|
363
|
+
#Inspect a gem repository
|
364
|
+
result = api_instance.read(gem_gem_repository_href, opts)
|
365
|
+
p result
|
366
|
+
rescue PulpGemClient::ApiError => e
|
367
|
+
puts "Exception when calling RepositoriesGemApi->read: #{e}"
|
368
|
+
end
|
369
|
+
```
|
370
|
+
|
371
|
+
### Parameters
|
372
|
+
|
373
|
+
|
374
|
+
Name | Type | Description | Notes
|
375
|
+
------------- | ------------- | ------------- | -------------
|
376
|
+
**gem_gem_repository_href** | **String**| |
|
377
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
378
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
379
|
+
|
380
|
+
### Return type
|
381
|
+
|
382
|
+
[**GemGemRepositoryResponse**](GemGemRepositoryResponse.md)
|
383
|
+
|
384
|
+
### Authorization
|
385
|
+
|
386
|
+
[basicAuth](../README.md#basicAuth)
|
387
|
+
|
388
|
+
### HTTP request headers
|
389
|
+
|
390
|
+
- **Content-Type**: Not defined
|
391
|
+
- **Accept**: application/json
|
392
|
+
|
393
|
+
|
394
|
+
## sync
|
395
|
+
|
396
|
+
> AsyncOperationResponse sync(gem_gem_repository_href, repository_sync_url)
|
397
|
+
|
398
|
+
Sync from a remote
|
399
|
+
|
400
|
+
Trigger an asynchronous task to sync gem content.
|
401
|
+
|
402
|
+
### Example
|
403
|
+
|
404
|
+
```ruby
|
405
|
+
# load the gem
|
406
|
+
require 'pulp_gem_client'
|
407
|
+
# setup authorization
|
408
|
+
PulpGemClient.configure do |config|
|
409
|
+
# Configure HTTP basic authorization: basicAuth
|
410
|
+
config.username = 'YOUR USERNAME'
|
411
|
+
config.password = 'YOUR PASSWORD'
|
412
|
+
end
|
413
|
+
|
414
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
415
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
416
|
+
repository_sync_url = PulpGemClient::RepositorySyncURL.new # RepositorySyncURL |
|
417
|
+
|
418
|
+
begin
|
419
|
+
#Sync from a remote
|
420
|
+
result = api_instance.sync(gem_gem_repository_href, repository_sync_url)
|
421
|
+
p result
|
422
|
+
rescue PulpGemClient::ApiError => e
|
423
|
+
puts "Exception when calling RepositoriesGemApi->sync: #{e}"
|
424
|
+
end
|
425
|
+
```
|
426
|
+
|
427
|
+
### Parameters
|
428
|
+
|
429
|
+
|
430
|
+
Name | Type | Description | Notes
|
431
|
+
------------- | ------------- | ------------- | -------------
|
432
|
+
**gem_gem_repository_href** | **String**| |
|
433
|
+
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
434
|
+
|
435
|
+
### Return type
|
436
|
+
|
437
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
438
|
+
|
439
|
+
### Authorization
|
440
|
+
|
441
|
+
[basicAuth](../README.md#basicAuth)
|
442
|
+
|
443
|
+
### HTTP request headers
|
444
|
+
|
445
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
446
|
+
- **Accept**: application/json
|
447
|
+
|
448
|
+
|
449
|
+
## update
|
450
|
+
|
451
|
+
> AsyncOperationResponse update(gem_gem_repository_href, gem_gem_repository)
|
452
|
+
|
453
|
+
Update a gem repository
|
454
|
+
|
455
|
+
Trigger an asynchronous update task
|
456
|
+
|
457
|
+
### Example
|
458
|
+
|
459
|
+
```ruby
|
460
|
+
# load the gem
|
461
|
+
require 'pulp_gem_client'
|
462
|
+
# setup authorization
|
463
|
+
PulpGemClient.configure do |config|
|
464
|
+
# Configure HTTP basic authorization: basicAuth
|
465
|
+
config.username = 'YOUR USERNAME'
|
466
|
+
config.password = 'YOUR PASSWORD'
|
467
|
+
end
|
468
|
+
|
469
|
+
api_instance = PulpGemClient::RepositoriesGemApi.new
|
470
|
+
gem_gem_repository_href = 'gem_gem_repository_href_example' # String |
|
471
|
+
gem_gem_repository = PulpGemClient::GemGemRepository.new # GemGemRepository |
|
472
|
+
|
473
|
+
begin
|
474
|
+
#Update a gem repository
|
475
|
+
result = api_instance.update(gem_gem_repository_href, gem_gem_repository)
|
476
|
+
p result
|
477
|
+
rescue PulpGemClient::ApiError => e
|
478
|
+
puts "Exception when calling RepositoriesGemApi->update: #{e}"
|
479
|
+
end
|
480
|
+
```
|
481
|
+
|
482
|
+
### Parameters
|
483
|
+
|
484
|
+
|
485
|
+
Name | Type | Description | Notes
|
486
|
+
------------- | ------------- | ------------- | -------------
|
487
|
+
**gem_gem_repository_href** | **String**| |
|
488
|
+
**gem_gem_repository** | [**GemGemRepository**](GemGemRepository.md)| |
|
489
|
+
|
490
|
+
### Return type
|
491
|
+
|
492
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
493
|
+
|
494
|
+
### Authorization
|
495
|
+
|
496
|
+
[basicAuth](../README.md#basicAuth)
|
497
|
+
|
498
|
+
### HTTP request headers
|
499
|
+
|
500
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
501
|
+
- **Accept**: application/json
|
502
|
+
|