pulp_cookbook_client 0.1.0b9
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 +162 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentCookbooksApi.md +208 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/CookbookCookbookDistribution.md +27 -0
- data/docs/CookbookCookbookDistributionResponse.md +33 -0
- data/docs/CookbookCookbookPackageContent.md +25 -0
- data/docs/CookbookCookbookPackageContentResponse.md +29 -0
- data/docs/CookbookCookbookPublication.md +19 -0
- data/docs/CookbookCookbookPublicationResponse.md +25 -0
- data/docs/CookbookCookbookRemote.md +59 -0
- data/docs/CookbookCookbookRemoteResponse.md +55 -0
- data/docs/CookbookCookbookRepository.md +25 -0
- data/docs/CookbookCookbookRepositoryResponse.md +33 -0
- data/docs/DistributionsCookbookApi.md +372 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedcookbookCookbookDistributionResponseList.md +23 -0
- data/docs/PaginatedcookbookCookbookPackageContentResponseList.md +23 -0
- data/docs/PaginatedcookbookCookbookPublicationResponseList.md +23 -0
- data/docs/PaginatedcookbookCookbookRemoteResponseList.md +23 -0
- data/docs/PaginatedcookbookCookbookRepositoryResponseList.md +23 -0
- data/docs/PatchedcookbookCookbookDistribution.md +27 -0
- data/docs/PatchedcookbookCookbookRemote.md +59 -0
- data/docs/PatchedcookbookCookbookRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsCookbookApi.md +257 -0
- data/docs/RemotesCookbookApi.md +376 -0
- data/docs/RepositoriesCookbookApi.md +475 -0
- data/docs/RepositoriesCookbookVersionsApi.md +271 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersion.md +17 -0
- data/docs/RepositoryVersionResponse.md +27 -0
- data/git_push.sh +58 -0
- data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +264 -0
- data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +457 -0
- data/lib/pulp_cookbook_client/api/publications_cookbook_api.rb +312 -0
- data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +463 -0
- data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +583 -0
- data/lib/pulp_cookbook_client/api/repositories_cookbook_versions_api.rb +339 -0
- data/lib/pulp_cookbook_client/api_client.rb +406 -0
- data/lib/pulp_cookbook_client/api_error.rb +57 -0
- data/lib/pulp_cookbook_client/configuration.rb +250 -0
- data/lib/pulp_cookbook_client/models/async_operation_response.rb +213 -0
- data/lib/pulp_cookbook_client/models/content_summary.rb +246 -0
- data/lib/pulp_cookbook_client/models/content_summary_response.rb +246 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution.rb +308 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution_response.rb +299 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +287 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content_response.rb +272 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_publication.rb +217 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_publication_response.rb +248 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote.rb +677 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote_response.rb +493 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository.rb +304 -0
- data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository_response.rb +307 -0
- data/lib/pulp_cookbook_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_distribution_response_list.rb +237 -0
- data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_package_content_response_list.rb +237 -0
- data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_publication_response_list.rb +237 -0
- data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_remote_response_list.rb +237 -0
- data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_repository_response_list.rb +237 -0
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_distribution.rb +290 -0
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_remote.rb +659 -0
- data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_repository.rb +295 -0
- data/lib/pulp_cookbook_client/models/policy_enum.rb +37 -0
- data/lib/pulp_cookbook_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulp_cookbook_client/models/repository_sync_url.rb +220 -0
- data/lib/pulp_cookbook_client/models/repository_version.rb +208 -0
- data/lib/pulp_cookbook_client/models/repository_version_response.rb +255 -0
- data/lib/pulp_cookbook_client/version.rb +15 -0
- data/lib/pulp_cookbook_client.rb +72 -0
- data/pulp_cookbook_client.gemspec +39 -0
- data/spec/api/content_cookbooks_api_spec.rb +87 -0
- data/spec/api/distributions_cookbook_api_spec.rb +125 -0
- data/spec/api/publications_cookbook_api_spec.rb +98 -0
- data/spec/api/remotes_cookbook_api_spec.rb +127 -0
- data/spec/api/repositories_cookbook_api_spec.rb +146 -0
- data/spec/api/repositories_cookbook_versions_api_spec.rb +104 -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/content_summary_spec.rb +53 -0
- data/spec/models/cookbook_cookbook_distribution_response_spec.rb +89 -0
- data/spec/models/cookbook_cookbook_distribution_spec.rb +71 -0
- data/spec/models/cookbook_cookbook_package_content_response_spec.rb +77 -0
- data/spec/models/cookbook_cookbook_package_content_spec.rb +65 -0
- data/spec/models/cookbook_cookbook_publication_response_spec.rb +65 -0
- data/spec/models/cookbook_cookbook_publication_spec.rb +47 -0
- data/spec/models/cookbook_cookbook_remote_response_spec.rb +155 -0
- data/spec/models/cookbook_cookbook_remote_spec.rb +167 -0
- data/spec/models/cookbook_cookbook_repository_response_spec.rb +89 -0
- data/spec/models/cookbook_cookbook_repository_spec.rb +65 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/paginatedcookbook_cookbook_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedcookbook_cookbook_package_content_response_list_spec.rb +59 -0
- data/spec/models/paginatedcookbook_cookbook_publication_response_list_spec.rb +59 -0
- data/spec/models/paginatedcookbook_cookbook_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedcookbook_cookbook_repository_response_list_spec.rb +59 -0
- data/spec/models/patchedcookbook_cookbook_distribution_spec.rb +71 -0
- data/spec/models/patchedcookbook_cookbook_remote_spec.rb +167 -0
- data/spec/models/patchedcookbook_cookbook_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -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/models/repository_version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +251 -0
@@ -0,0 +1,376 @@
|
|
1
|
+
# PulpCookbookClient::RemotesCookbookApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](RemotesCookbookApi.md#create) | **POST** /pulp/api/v3/remotes/cookbook/cookbook/ | Create a cookbook remote
|
8
|
+
[**delete**](RemotesCookbookApi.md#delete) | **DELETE** {cookbook_cookbook_remote_href} | Delete a cookbook remote
|
9
|
+
[**list**](RemotesCookbookApi.md#list) | **GET** /pulp/api/v3/remotes/cookbook/cookbook/ | List cookbook remotes
|
10
|
+
[**partial_update**](RemotesCookbookApi.md#partial_update) | **PATCH** {cookbook_cookbook_remote_href} | Update a cookbook remote
|
11
|
+
[**read**](RemotesCookbookApi.md#read) | **GET** {cookbook_cookbook_remote_href} | Inspect a cookbook remote
|
12
|
+
[**update**](RemotesCookbookApi.md#update) | **PUT** {cookbook_cookbook_remote_href} | Update a cookbook remote
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
## create
|
17
|
+
|
18
|
+
> CookbookCookbookRemoteResponse create(cookbook_cookbook_remote)
|
19
|
+
|
20
|
+
Create a cookbook remote
|
21
|
+
|
22
|
+
Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
|
23
|
+
|
24
|
+
### Example
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
# load the gem
|
28
|
+
require 'pulp_cookbook_client'
|
29
|
+
# setup authorization
|
30
|
+
PulpCookbookClient.configure do |config|
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
32
|
+
config.username = 'YOUR USERNAME'
|
33
|
+
config.password = 'YOUR PASSWORD'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = PulpCookbookClient::RemotesCookbookApi.new
|
37
|
+
cookbook_cookbook_remote = PulpCookbookClient::CookbookCookbookRemote.new # CookbookCookbookRemote |
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Create a cookbook remote
|
41
|
+
result = api_instance.create(cookbook_cookbook_remote)
|
42
|
+
p result
|
43
|
+
rescue PulpCookbookClient::ApiError => e
|
44
|
+
puts "Exception when calling RemotesCookbookApi->create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**cookbook_cookbook_remote** | [**CookbookCookbookRemote**](CookbookCookbookRemote.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**CookbookCookbookRemoteResponse**](CookbookCookbookRemoteResponse.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> AsyncOperationResponse delete(cookbook_cookbook_remote_href)
|
72
|
+
|
73
|
+
Delete a cookbook remote
|
74
|
+
|
75
|
+
Trigger an asynchronous delete task
|
76
|
+
|
77
|
+
### Example
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'pulp_cookbook_client'
|
82
|
+
# setup authorization
|
83
|
+
PulpCookbookClient.configure do |config|
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpCookbookClient::RemotesCookbookApi.new
|
90
|
+
cookbook_cookbook_remote_href = 'cookbook_cookbook_remote_href_example' # String |
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a cookbook remote
|
94
|
+
result = api_instance.delete(cookbook_cookbook_remote_href)
|
95
|
+
p result
|
96
|
+
rescue PulpCookbookClient::ApiError => e
|
97
|
+
puts "Exception when calling RemotesCookbookApi->delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**cookbook_cookbook_remote_href** | **String**| |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[basicAuth](../README.md#basicAuth)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
## list
|
123
|
+
|
124
|
+
> PaginatedcookbookCookbookRemoteResponseList list(opts)
|
125
|
+
|
126
|
+
List cookbook remotes
|
127
|
+
|
128
|
+
Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
|
129
|
+
|
130
|
+
### Example
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
# load the gem
|
134
|
+
require 'pulp_cookbook_client'
|
135
|
+
# setup authorization
|
136
|
+
PulpCookbookClient.configure do |config|
|
137
|
+
# Configure HTTP basic authorization: basicAuth
|
138
|
+
config.username = 'YOUR USERNAME'
|
139
|
+
config.password = 'YOUR PASSWORD'
|
140
|
+
end
|
141
|
+
|
142
|
+
api_instance = PulpCookbookClient::RemotesCookbookApi.new
|
143
|
+
opts = {
|
144
|
+
limit: 56, # Integer | Number of results to return per page.
|
145
|
+
name: 'name_example', # String |
|
146
|
+
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
147
|
+
name__icontains: 'name__icontains_example', # String | Filter results where name contains value
|
148
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
149
|
+
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
150
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
151
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
152
|
+
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
153
|
+
pulp_last_updated: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | ISO 8601 formatted dates are supported
|
154
|
+
pulp_last_updated__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than value
|
155
|
+
pulp_last_updated__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is greater than or equal to value
|
156
|
+
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
157
|
+
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
158
|
+
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
159
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
160
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
161
|
+
}
|
162
|
+
|
163
|
+
begin
|
164
|
+
#List cookbook remotes
|
165
|
+
result = api_instance.list(opts)
|
166
|
+
p result
|
167
|
+
rescue PulpCookbookClient::ApiError => e
|
168
|
+
puts "Exception when calling RemotesCookbookApi->list: #{e}"
|
169
|
+
end
|
170
|
+
```
|
171
|
+
|
172
|
+
### Parameters
|
173
|
+
|
174
|
+
|
175
|
+
Name | Type | Description | Notes
|
176
|
+
------------- | ------------- | ------------- | -------------
|
177
|
+
**limit** | **Integer**| Number of results to return per page. | [optional]
|
178
|
+
**name** | **String**| | [optional]
|
179
|
+
**name__contains** | **String**| Filter results where name contains value | [optional]
|
180
|
+
**name__icontains** | **String**| Filter results where name contains value | [optional]
|
181
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
182
|
+
**name__startswith** | **String**| Filter results where name starts with value | [optional]
|
183
|
+
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
184
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
185
|
+
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
186
|
+
**pulp_last_updated** | **DateTime**| ISO 8601 formatted dates are supported | [optional]
|
187
|
+
**pulp_last_updated__gt** | **DateTime**| Filter results where pulp_last_updated is greater than value | [optional]
|
188
|
+
**pulp_last_updated__gte** | **DateTime**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
189
|
+
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
190
|
+
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
191
|
+
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
192
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
193
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
194
|
+
|
195
|
+
### Return type
|
196
|
+
|
197
|
+
[**PaginatedcookbookCookbookRemoteResponseList**](PaginatedcookbookCookbookRemoteResponseList.md)
|
198
|
+
|
199
|
+
### Authorization
|
200
|
+
|
201
|
+
[basicAuth](../README.md#basicAuth)
|
202
|
+
|
203
|
+
### HTTP request headers
|
204
|
+
|
205
|
+
- **Content-Type**: Not defined
|
206
|
+
- **Accept**: application/json
|
207
|
+
|
208
|
+
|
209
|
+
## partial_update
|
210
|
+
|
211
|
+
> AsyncOperationResponse partial_update(cookbook_cookbook_remote_href, patchedcookbook_cookbook_remote)
|
212
|
+
|
213
|
+
Update a cookbook remote
|
214
|
+
|
215
|
+
Trigger an asynchronous partial update task
|
216
|
+
|
217
|
+
### Example
|
218
|
+
|
219
|
+
```ruby
|
220
|
+
# load the gem
|
221
|
+
require 'pulp_cookbook_client'
|
222
|
+
# setup authorization
|
223
|
+
PulpCookbookClient.configure do |config|
|
224
|
+
# Configure HTTP basic authorization: basicAuth
|
225
|
+
config.username = 'YOUR USERNAME'
|
226
|
+
config.password = 'YOUR PASSWORD'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = PulpCookbookClient::RemotesCookbookApi.new
|
230
|
+
cookbook_cookbook_remote_href = 'cookbook_cookbook_remote_href_example' # String |
|
231
|
+
patchedcookbook_cookbook_remote = PulpCookbookClient::PatchedcookbookCookbookRemote.new # PatchedcookbookCookbookRemote |
|
232
|
+
|
233
|
+
begin
|
234
|
+
#Update a cookbook remote
|
235
|
+
result = api_instance.partial_update(cookbook_cookbook_remote_href, patchedcookbook_cookbook_remote)
|
236
|
+
p result
|
237
|
+
rescue PulpCookbookClient::ApiError => e
|
238
|
+
puts "Exception when calling RemotesCookbookApi->partial_update: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
### Parameters
|
243
|
+
|
244
|
+
|
245
|
+
Name | Type | Description | Notes
|
246
|
+
------------- | ------------- | ------------- | -------------
|
247
|
+
**cookbook_cookbook_remote_href** | **String**| |
|
248
|
+
**patchedcookbook_cookbook_remote** | [**PatchedcookbookCookbookRemote**](PatchedcookbookCookbookRemote.md)| |
|
249
|
+
|
250
|
+
### Return type
|
251
|
+
|
252
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
253
|
+
|
254
|
+
### Authorization
|
255
|
+
|
256
|
+
[basicAuth](../README.md#basicAuth)
|
257
|
+
|
258
|
+
### HTTP request headers
|
259
|
+
|
260
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
261
|
+
- **Accept**: application/json
|
262
|
+
|
263
|
+
|
264
|
+
## read
|
265
|
+
|
266
|
+
> CookbookCookbookRemoteResponse read(cookbook_cookbook_remote_href, opts)
|
267
|
+
|
268
|
+
Inspect a cookbook remote
|
269
|
+
|
270
|
+
Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
|
271
|
+
|
272
|
+
### Example
|
273
|
+
|
274
|
+
```ruby
|
275
|
+
# load the gem
|
276
|
+
require 'pulp_cookbook_client'
|
277
|
+
# setup authorization
|
278
|
+
PulpCookbookClient.configure do |config|
|
279
|
+
# Configure HTTP basic authorization: basicAuth
|
280
|
+
config.username = 'YOUR USERNAME'
|
281
|
+
config.password = 'YOUR PASSWORD'
|
282
|
+
end
|
283
|
+
|
284
|
+
api_instance = PulpCookbookClient::RemotesCookbookApi.new
|
285
|
+
cookbook_cookbook_remote_href = 'cookbook_cookbook_remote_href_example' # String |
|
286
|
+
opts = {
|
287
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
288
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
289
|
+
}
|
290
|
+
|
291
|
+
begin
|
292
|
+
#Inspect a cookbook remote
|
293
|
+
result = api_instance.read(cookbook_cookbook_remote_href, opts)
|
294
|
+
p result
|
295
|
+
rescue PulpCookbookClient::ApiError => e
|
296
|
+
puts "Exception when calling RemotesCookbookApi->read: #{e}"
|
297
|
+
end
|
298
|
+
```
|
299
|
+
|
300
|
+
### Parameters
|
301
|
+
|
302
|
+
|
303
|
+
Name | Type | Description | Notes
|
304
|
+
------------- | ------------- | ------------- | -------------
|
305
|
+
**cookbook_cookbook_remote_href** | **String**| |
|
306
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
307
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
308
|
+
|
309
|
+
### Return type
|
310
|
+
|
311
|
+
[**CookbookCookbookRemoteResponse**](CookbookCookbookRemoteResponse.md)
|
312
|
+
|
313
|
+
### Authorization
|
314
|
+
|
315
|
+
[basicAuth](../README.md#basicAuth)
|
316
|
+
|
317
|
+
### HTTP request headers
|
318
|
+
|
319
|
+
- **Content-Type**: Not defined
|
320
|
+
- **Accept**: application/json
|
321
|
+
|
322
|
+
|
323
|
+
## update
|
324
|
+
|
325
|
+
> AsyncOperationResponse update(cookbook_cookbook_remote_href, cookbook_cookbook_remote)
|
326
|
+
|
327
|
+
Update a cookbook remote
|
328
|
+
|
329
|
+
Trigger an asynchronous update task
|
330
|
+
|
331
|
+
### Example
|
332
|
+
|
333
|
+
```ruby
|
334
|
+
# load the gem
|
335
|
+
require 'pulp_cookbook_client'
|
336
|
+
# setup authorization
|
337
|
+
PulpCookbookClient.configure do |config|
|
338
|
+
# Configure HTTP basic authorization: basicAuth
|
339
|
+
config.username = 'YOUR USERNAME'
|
340
|
+
config.password = 'YOUR PASSWORD'
|
341
|
+
end
|
342
|
+
|
343
|
+
api_instance = PulpCookbookClient::RemotesCookbookApi.new
|
344
|
+
cookbook_cookbook_remote_href = 'cookbook_cookbook_remote_href_example' # String |
|
345
|
+
cookbook_cookbook_remote = PulpCookbookClient::CookbookCookbookRemote.new # CookbookCookbookRemote |
|
346
|
+
|
347
|
+
begin
|
348
|
+
#Update a cookbook remote
|
349
|
+
result = api_instance.update(cookbook_cookbook_remote_href, cookbook_cookbook_remote)
|
350
|
+
p result
|
351
|
+
rescue PulpCookbookClient::ApiError => e
|
352
|
+
puts "Exception when calling RemotesCookbookApi->update: #{e}"
|
353
|
+
end
|
354
|
+
```
|
355
|
+
|
356
|
+
### Parameters
|
357
|
+
|
358
|
+
|
359
|
+
Name | Type | Description | Notes
|
360
|
+
------------- | ------------- | ------------- | -------------
|
361
|
+
**cookbook_cookbook_remote_href** | **String**| |
|
362
|
+
**cookbook_cookbook_remote** | [**CookbookCookbookRemote**](CookbookCookbookRemote.md)| |
|
363
|
+
|
364
|
+
### Return type
|
365
|
+
|
366
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
367
|
+
|
368
|
+
### Authorization
|
369
|
+
|
370
|
+
[basicAuth](../README.md#basicAuth)
|
371
|
+
|
372
|
+
### HTTP request headers
|
373
|
+
|
374
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
375
|
+
- **Accept**: application/json
|
376
|
+
|