pulpcore_client 3.0.0rc7 → 3.0.0rc8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -22
  3. data/docs/ArtifactsApi.md +4 -4
  4. data/docs/InlineResponse2001.md +1 -1
  5. data/docs/InlineResponse2002.md +1 -1
  6. data/docs/InlineResponse2003.md +1 -1
  7. data/docs/Status.md +3 -1
  8. data/docs/Storage.md +21 -0
  9. data/docs/TasksApi.md +2 -2
  10. data/docs/UploadsApi.md +2 -2
  11. data/docs/WorkersApi.md +2 -2
  12. data/lib/pulpcore_client/api/artifacts_api.rb +11 -7
  13. data/lib/pulpcore_client/api/orphans_api.rb +1 -1
  14. data/lib/pulpcore_client/api/status_api.rb +1 -1
  15. data/lib/pulpcore_client/api/tasks_api.rb +4 -4
  16. data/lib/pulpcore_client/api/uploads_api.rb +4 -4
  17. data/lib/pulpcore_client/api/workers_api.rb +4 -4
  18. data/lib/pulpcore_client/api_client.rb +1 -1
  19. data/lib/pulpcore_client/api_error.rb +1 -1
  20. data/lib/pulpcore_client/configuration.rb +1 -1
  21. data/lib/pulpcore_client/models/artifact.rb +18 -2
  22. data/lib/pulpcore_client/models/async_operation_response.rb +12 -2
  23. data/lib/pulpcore_client/models/content_app_status.rb +12 -2
  24. data/lib/pulpcore_client/models/database_connection.rb +12 -2
  25. data/lib/pulpcore_client/models/inline_response200.rb +14 -2
  26. data/lib/pulpcore_client/models/inline_response2001.rb +15 -3
  27. data/lib/pulpcore_client/models/inline_response2002.rb +15 -3
  28. data/lib/pulpcore_client/models/inline_response2003.rb +15 -3
  29. data/lib/pulpcore_client/models/progress_report.rb +13 -2
  30. data/lib/pulpcore_client/models/redis_connection.rb +12 -2
  31. data/lib/pulpcore_client/models/status.rb +25 -6
  32. data/lib/pulpcore_client/models/{inline_response2004.rb → storage.rb} +106 -41
  33. data/lib/pulpcore_client/models/task.rb +12 -2
  34. data/lib/pulpcore_client/models/task_cancel.rb +12 -2
  35. data/lib/pulpcore_client/models/upload.rb +12 -2
  36. data/lib/pulpcore_client/models/upload_chunk.rb +13 -2
  37. data/lib/pulpcore_client/models/upload_commit.rb +12 -2
  38. data/lib/pulpcore_client/models/upload_detail.rb +12 -2
  39. data/lib/pulpcore_client/models/version.rb +12 -2
  40. data/lib/pulpcore_client/models/worker.rb +12 -2
  41. data/lib/pulpcore_client/version.rb +2 -2
  42. data/lib/pulpcore_client.rb +2 -9
  43. data/pulpcore_client.gemspec +1 -1
  44. data/spec/api/artifacts_api_spec.rb +2 -2
  45. data/spec/api/orphans_api_spec.rb +1 -1
  46. data/spec/api/status_api_spec.rb +1 -1
  47. data/spec/api/tasks_api_spec.rb +2 -2
  48. data/spec/api/uploads_api_spec.rb +2 -2
  49. data/spec/api/workers_api_spec.rb +2 -2
  50. data/spec/api_client_spec.rb +1 -1
  51. data/spec/configuration_spec.rb +1 -1
  52. data/spec/models/artifact_spec.rb +1 -1
  53. data/spec/models/async_operation_response_spec.rb +1 -1
  54. data/spec/models/content_app_status_spec.rb +1 -1
  55. data/spec/models/database_connection_spec.rb +1 -1
  56. data/spec/models/inline_response2001_spec.rb +1 -1
  57. data/spec/models/inline_response2002_spec.rb +1 -1
  58. data/spec/models/inline_response2003_spec.rb +1 -1
  59. data/spec/models/inline_response200_spec.rb +1 -1
  60. data/spec/models/progress_report_spec.rb +1 -1
  61. data/spec/models/redis_connection_spec.rb +1 -1
  62. data/spec/models/status_spec.rb +7 -1
  63. data/spec/models/{content_summary_spec.rb → storage_spec.rb} +10 -10
  64. data/spec/models/task_cancel_spec.rb +1 -1
  65. data/spec/models/task_spec.rb +1 -1
  66. data/spec/models/upload_chunk_spec.rb +1 -1
  67. data/spec/models/upload_commit_spec.rb +1 -1
  68. data/spec/models/upload_detail_spec.rb +1 -1
  69. data/spec/models/upload_spec.rb +1 -1
  70. data/spec/models/version_spec.rb +1 -1
  71. data/spec/models/worker_spec.rb +1 -1
  72. data/spec/spec_helper.rb +1 -1
  73. metadata +6 -34
  74. data/docs/ContentSummary.md +0 -21
  75. data/docs/InlineResponse2004.md +0 -23
  76. data/docs/InlineResponse2005.md +0 -23
  77. data/docs/RepositoriesApi.md +0 -346
  78. data/docs/RepositoriesVersionsApi.md +0 -266
  79. data/docs/Repository.md +0 -29
  80. data/docs/RepositoryVersion.md +0 -25
  81. data/docs/RepositoryVersionCreate.md +0 -21
  82. data/lib/pulpcore_client/api/repositories_api.rb +0 -422
  83. data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -334
  84. data/lib/pulpcore_client/models/content_summary.rb +0 -236
  85. data/lib/pulpcore_client/models/inline_response2005.rb +0 -235
  86. data/lib/pulpcore_client/models/repository.rb +0 -293
  87. data/lib/pulpcore_client/models/repository_version.rb +0 -234
  88. data/lib/pulpcore_client/models/repository_version_create.rb +0 -221
  89. data/spec/api/repositories_api_spec.rb +0 -112
  90. data/spec/api/repositories_versions_api_spec.rb +0 -102
  91. data/spec/models/inline_response2004_spec.rb +0 -59
  92. data/spec/models/inline_response2005_spec.rb +0 -59
  93. data/spec/models/repository_spec.rb +0 -77
  94. data/spec/models/repository_version_create_spec.rb +0 -53
  95. data/spec/models/repository_version_spec.rb +0 -65
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulpcore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0rc7
4
+ version: 3.0.0rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-15 00:00:00.000000000 Z
11
+ date: 2019-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -78,24 +78,17 @@ files:
78
78
  - docs/ArtifactsApi.md
79
79
  - docs/AsyncOperationResponse.md
80
80
  - docs/ContentAppStatus.md
81
- - docs/ContentSummary.md
82
81
  - docs/DatabaseConnection.md
83
82
  - docs/InlineResponse200.md
84
83
  - docs/InlineResponse2001.md
85
84
  - docs/InlineResponse2002.md
86
85
  - docs/InlineResponse2003.md
87
- - docs/InlineResponse2004.md
88
- - docs/InlineResponse2005.md
89
86
  - docs/OrphansApi.md
90
87
  - docs/ProgressReport.md
91
88
  - docs/RedisConnection.md
92
- - docs/RepositoriesApi.md
93
- - docs/RepositoriesVersionsApi.md
94
- - docs/Repository.md
95
- - docs/RepositoryVersion.md
96
- - docs/RepositoryVersionCreate.md
97
89
  - docs/Status.md
98
90
  - docs/StatusApi.md
91
+ - docs/Storage.md
99
92
  - docs/Task.md
100
93
  - docs/TaskCancel.md
101
94
  - docs/TasksApi.md
@@ -111,8 +104,6 @@ files:
111
104
  - lib/pulpcore_client.rb
112
105
  - lib/pulpcore_client/api/artifacts_api.rb
113
106
  - lib/pulpcore_client/api/orphans_api.rb
114
- - lib/pulpcore_client/api/repositories_api.rb
115
- - lib/pulpcore_client/api/repositories_versions_api.rb
116
107
  - lib/pulpcore_client/api/status_api.rb
117
108
  - lib/pulpcore_client/api/tasks_api.rb
118
109
  - lib/pulpcore_client/api/uploads_api.rb
@@ -123,20 +114,15 @@ files:
123
114
  - lib/pulpcore_client/models/artifact.rb
124
115
  - lib/pulpcore_client/models/async_operation_response.rb
125
116
  - lib/pulpcore_client/models/content_app_status.rb
126
- - lib/pulpcore_client/models/content_summary.rb
127
117
  - lib/pulpcore_client/models/database_connection.rb
128
118
  - lib/pulpcore_client/models/inline_response200.rb
129
119
  - lib/pulpcore_client/models/inline_response2001.rb
130
120
  - lib/pulpcore_client/models/inline_response2002.rb
131
121
  - lib/pulpcore_client/models/inline_response2003.rb
132
- - lib/pulpcore_client/models/inline_response2004.rb
133
- - lib/pulpcore_client/models/inline_response2005.rb
134
122
  - lib/pulpcore_client/models/progress_report.rb
135
123
  - lib/pulpcore_client/models/redis_connection.rb
136
- - lib/pulpcore_client/models/repository.rb
137
- - lib/pulpcore_client/models/repository_version.rb
138
- - lib/pulpcore_client/models/repository_version_create.rb
139
124
  - lib/pulpcore_client/models/status.rb
125
+ - lib/pulpcore_client/models/storage.rb
140
126
  - lib/pulpcore_client/models/task.rb
141
127
  - lib/pulpcore_client/models/task_cancel.rb
142
128
  - lib/pulpcore_client/models/upload.rb
@@ -149,8 +135,6 @@ files:
149
135
  - pulpcore_client.gemspec
150
136
  - spec/api/artifacts_api_spec.rb
151
137
  - spec/api/orphans_api_spec.rb
152
- - spec/api/repositories_api_spec.rb
153
- - spec/api/repositories_versions_api_spec.rb
154
138
  - spec/api/status_api_spec.rb
155
139
  - spec/api/tasks_api_spec.rb
156
140
  - spec/api/uploads_api_spec.rb
@@ -160,20 +144,15 @@ files:
160
144
  - spec/models/artifact_spec.rb
161
145
  - spec/models/async_operation_response_spec.rb
162
146
  - spec/models/content_app_status_spec.rb
163
- - spec/models/content_summary_spec.rb
164
147
  - spec/models/database_connection_spec.rb
165
148
  - spec/models/inline_response2001_spec.rb
166
149
  - spec/models/inline_response2002_spec.rb
167
150
  - spec/models/inline_response2003_spec.rb
168
- - spec/models/inline_response2004_spec.rb
169
- - spec/models/inline_response2005_spec.rb
170
151
  - spec/models/inline_response200_spec.rb
171
152
  - spec/models/progress_report_spec.rb
172
153
  - spec/models/redis_connection_spec.rb
173
- - spec/models/repository_spec.rb
174
- - spec/models/repository_version_create_spec.rb
175
- - spec/models/repository_version_spec.rb
176
154
  - spec/models/status_spec.rb
155
+ - spec/models/storage_spec.rb
177
156
  - spec/models/task_cancel_spec.rb
178
157
  - spec/models/task_spec.rb
179
158
  - spec/models/upload_chunk_spec.rb
@@ -212,35 +191,28 @@ test_files:
212
191
  - spec/api/workers_api_spec.rb
213
192
  - spec/api/uploads_api_spec.rb
214
193
  - spec/api/tasks_api_spec.rb
215
- - spec/api/repositories_api_spec.rb
216
- - spec/api/repositories_versions_api_spec.rb
217
194
  - spec/api/status_api_spec.rb
218
195
  - spec/api/orphans_api_spec.rb
219
196
  - spec/api_client_spec.rb
220
197
  - spec/configuration_spec.rb
221
198
  - spec/models/inline_response2003_spec.rb
222
199
  - spec/models/database_connection_spec.rb
223
- - spec/models/repository_version_spec.rb
224
200
  - spec/models/inline_response2001_spec.rb
225
201
  - spec/models/task_cancel_spec.rb
226
202
  - spec/models/upload_detail_spec.rb
227
203
  - spec/models/inline_response2002_spec.rb
228
- - spec/models/inline_response2004_spec.rb
229
204
  - spec/models/status_spec.rb
230
205
  - spec/models/upload_commit_spec.rb
231
206
  - spec/models/redis_connection_spec.rb
232
207
  - spec/models/async_operation_response_spec.rb
233
- - spec/models/content_summary_spec.rb
234
208
  - spec/models/upload_chunk_spec.rb
209
+ - spec/models/storage_spec.rb
235
210
  - spec/models/progress_report_spec.rb
236
211
  - spec/models/upload_spec.rb
237
- - spec/models/repository_spec.rb
238
212
  - spec/models/version_spec.rb
239
213
  - spec/models/task_spec.rb
240
214
  - spec/models/worker_spec.rb
241
215
  - spec/models/content_app_status_spec.rb
242
216
  - spec/models/artifact_spec.rb
243
- - spec/models/repository_version_create_spec.rb
244
- - spec/models/inline_response2005_spec.rb
245
217
  - spec/models/inline_response200_spec.rb
246
218
  - spec/spec_helper.rb
@@ -1,21 +0,0 @@
1
- # PulpcoreClient::ContentSummary
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **added** | **Hash<String, Hash<String, String>>** | |
8
- **removed** | **Hash<String, Hash<String, String>>** | |
9
- **present** | **Hash<String, Hash<String, String>>** | |
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'PulpcoreClient'
15
-
16
- instance = PulpcoreClient::ContentSummary.new(added: null,
17
- removed: null,
18
- present: null)
19
- ```
20
-
21
-
@@ -1,23 +0,0 @@
1
- # PulpcoreClient::InlineResponse2004
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
8
- **_next** | **String** | | [optional]
9
- **previous** | **String** | | [optional]
10
- **results** | [**Array<Upload>**](Upload.md) | |
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'PulpcoreClient'
16
-
17
- instance = PulpcoreClient::InlineResponse2004.new(count: null,
18
- _next: null,
19
- previous: null,
20
- results: null)
21
- ```
22
-
23
-
@@ -1,23 +0,0 @@
1
- # PulpcoreClient::InlineResponse2005
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
8
- **_next** | **String** | | [optional]
9
- **previous** | **String** | | [optional]
10
- **results** | [**Array<Worker>**](Worker.md) | |
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'PulpcoreClient'
16
-
17
- instance = PulpcoreClient::InlineResponse2005.new(count: null,
18
- _next: null,
19
- previous: null,
20
- results: null)
21
- ```
22
-
23
-
@@ -1,346 +0,0 @@
1
- # PulpcoreClient::RepositoriesApi
2
-
3
- All URIs are relative to *http://localhost:24817*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create**](RepositoriesApi.md#create) | **POST** /pulp/api/v3/repositories/ | Create a repository
8
- [**delete**](RepositoriesApi.md#delete) | **DELETE** {repository_href} | Delete a repository
9
- [**list**](RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
10
- [**partial_update**](RepositoriesApi.md#partial_update) | **PATCH** {repository_href} | Partially update a repository
11
- [**read**](RepositoriesApi.md#read) | **GET** {repository_href} | Inspect a repository
12
- [**update**](RepositoriesApi.md#update) | **PUT** {repository_href} | Update a repository
13
-
14
-
15
-
16
- ## create
17
-
18
- > Repository create(data)
19
-
20
- Create a repository
21
-
22
- ### Example
23
-
24
- ```ruby
25
- # load the gem
26
- require 'pulpcore_client'
27
- # setup authorization
28
- PulpcoreClient.configure do |config|
29
- # Configure HTTP basic authorization: Basic
30
- config.username = 'YOUR USERNAME'
31
- config.password = 'YOUR PASSWORD'
32
- end
33
-
34
- api_instance = PulpcoreClient::RepositoriesApi.new
35
- data = PulpcoreClient::Repository.new # Repository |
36
-
37
- begin
38
- #Create a repository
39
- result = api_instance.create(data)
40
- p result
41
- rescue PulpcoreClient::ApiError => e
42
- puts "Exception when calling RepositoriesApi->create: #{e}"
43
- end
44
- ```
45
-
46
- ### Parameters
47
-
48
-
49
- Name | Type | Description | Notes
50
- ------------- | ------------- | ------------- | -------------
51
- **data** | [**Repository**](Repository.md)| |
52
-
53
- ### Return type
54
-
55
- [**Repository**](Repository.md)
56
-
57
- ### Authorization
58
-
59
- [Basic](../README.md#Basic)
60
-
61
- ### HTTP request headers
62
-
63
- - **Content-Type**: application/json
64
- - **Accept**: application/json
65
-
66
-
67
- ## delete
68
-
69
- > AsyncOperationResponse delete(repository_href)
70
-
71
- Delete a repository
72
-
73
- Trigger an asynchronous task to delete a repository.
74
-
75
- ### Example
76
-
77
- ```ruby
78
- # load the gem
79
- require 'pulpcore_client'
80
- # setup authorization
81
- PulpcoreClient.configure do |config|
82
- # Configure HTTP basic authorization: Basic
83
- config.username = 'YOUR USERNAME'
84
- config.password = 'YOUR PASSWORD'
85
- end
86
-
87
- api_instance = PulpcoreClient::RepositoriesApi.new
88
- repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
89
-
90
- begin
91
- #Delete a repository
92
- result = api_instance.delete(repository_href)
93
- p result
94
- rescue PulpcoreClient::ApiError => e
95
- puts "Exception when calling RepositoriesApi->delete: #{e}"
96
- end
97
- ```
98
-
99
- ### Parameters
100
-
101
-
102
- Name | Type | Description | Notes
103
- ------------- | ------------- | ------------- | -------------
104
- **repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
105
-
106
- ### Return type
107
-
108
- [**AsyncOperationResponse**](AsyncOperationResponse.md)
109
-
110
- ### Authorization
111
-
112
- [Basic](../README.md#Basic)
113
-
114
- ### HTTP request headers
115
-
116
- - **Content-Type**: Not defined
117
- - **Accept**: application/json
118
-
119
-
120
- ## list
121
-
122
- > InlineResponse2001 list(opts)
123
-
124
- List repositories
125
-
126
- ### Example
127
-
128
- ```ruby
129
- # load the gem
130
- require 'pulpcore_client'
131
- # setup authorization
132
- PulpcoreClient.configure do |config|
133
- # Configure HTTP basic authorization: Basic
134
- config.username = 'YOUR USERNAME'
135
- config.password = 'YOUR PASSWORD'
136
- end
137
-
138
- api_instance = PulpcoreClient::RepositoriesApi.new
139
- opts = {
140
- name: 'name_example', # String |
141
- name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
142
- limit: 56, # Integer | Number of results to return per page.
143
- offset: 56, # Integer | The initial index from which to return the results.
144
- fields: 'fields_example', # String | A list of fields to include in the response.
145
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
146
- }
147
-
148
- begin
149
- #List repositories
150
- result = api_instance.list(opts)
151
- p result
152
- rescue PulpcoreClient::ApiError => e
153
- puts "Exception when calling RepositoriesApi->list: #{e}"
154
- end
155
- ```
156
-
157
- ### Parameters
158
-
159
-
160
- Name | Type | Description | Notes
161
- ------------- | ------------- | ------------- | -------------
162
- **name** | **String**| | [optional]
163
- **name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
164
- **limit** | **Integer**| Number of results to return per page. | [optional]
165
- **offset** | **Integer**| The initial index from which to return the results. | [optional]
166
- **fields** | **String**| A list of fields to include in the response. | [optional]
167
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
168
-
169
- ### Return type
170
-
171
- [**InlineResponse2001**](InlineResponse2001.md)
172
-
173
- ### Authorization
174
-
175
- [Basic](../README.md#Basic)
176
-
177
- ### HTTP request headers
178
-
179
- - **Content-Type**: Not defined
180
- - **Accept**: application/json
181
-
182
-
183
- ## partial_update
184
-
185
- > Repository partial_update(repository_href, data)
186
-
187
- Partially update a repository
188
-
189
- ### Example
190
-
191
- ```ruby
192
- # load the gem
193
- require 'pulpcore_client'
194
- # setup authorization
195
- PulpcoreClient.configure do |config|
196
- # Configure HTTP basic authorization: Basic
197
- config.username = 'YOUR USERNAME'
198
- config.password = 'YOUR PASSWORD'
199
- end
200
-
201
- api_instance = PulpcoreClient::RepositoriesApi.new
202
- repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
203
- data = PulpcoreClient::Repository.new # Repository |
204
-
205
- begin
206
- #Partially update a repository
207
- result = api_instance.partial_update(repository_href, data)
208
- p result
209
- rescue PulpcoreClient::ApiError => e
210
- puts "Exception when calling RepositoriesApi->partial_update: #{e}"
211
- end
212
- ```
213
-
214
- ### Parameters
215
-
216
-
217
- Name | Type | Description | Notes
218
- ------------- | ------------- | ------------- | -------------
219
- **repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
220
- **data** | [**Repository**](Repository.md)| |
221
-
222
- ### Return type
223
-
224
- [**Repository**](Repository.md)
225
-
226
- ### Authorization
227
-
228
- [Basic](../README.md#Basic)
229
-
230
- ### HTTP request headers
231
-
232
- - **Content-Type**: application/json
233
- - **Accept**: application/json
234
-
235
-
236
- ## read
237
-
238
- > Repository read(repository_href, opts)
239
-
240
- Inspect a repository
241
-
242
- ### Example
243
-
244
- ```ruby
245
- # load the gem
246
- require 'pulpcore_client'
247
- # setup authorization
248
- PulpcoreClient.configure do |config|
249
- # Configure HTTP basic authorization: Basic
250
- config.username = 'YOUR USERNAME'
251
- config.password = 'YOUR PASSWORD'
252
- end
253
-
254
- api_instance = PulpcoreClient::RepositoriesApi.new
255
- repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
256
- opts = {
257
- fields: 'fields_example', # String | A list of fields to include in the response.
258
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
259
- }
260
-
261
- begin
262
- #Inspect a repository
263
- result = api_instance.read(repository_href, opts)
264
- p result
265
- rescue PulpcoreClient::ApiError => e
266
- puts "Exception when calling RepositoriesApi->read: #{e}"
267
- end
268
- ```
269
-
270
- ### Parameters
271
-
272
-
273
- Name | Type | Description | Notes
274
- ------------- | ------------- | ------------- | -------------
275
- **repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
276
- **fields** | **String**| A list of fields to include in the response. | [optional]
277
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
278
-
279
- ### Return type
280
-
281
- [**Repository**](Repository.md)
282
-
283
- ### Authorization
284
-
285
- [Basic](../README.md#Basic)
286
-
287
- ### HTTP request headers
288
-
289
- - **Content-Type**: Not defined
290
- - **Accept**: application/json
291
-
292
-
293
- ## update
294
-
295
- > AsyncOperationResponse update(repository_href, data)
296
-
297
- Update a repository
298
-
299
- Trigger an asynchronous task to updatea repository.
300
-
301
- ### Example
302
-
303
- ```ruby
304
- # load the gem
305
- require 'pulpcore_client'
306
- # setup authorization
307
- PulpcoreClient.configure do |config|
308
- # Configure HTTP basic authorization: Basic
309
- config.username = 'YOUR USERNAME'
310
- config.password = 'YOUR PASSWORD'
311
- end
312
-
313
- api_instance = PulpcoreClient::RepositoriesApi.new
314
- repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
315
- data = PulpcoreClient::Repository.new # Repository |
316
-
317
- begin
318
- #Update a repository
319
- result = api_instance.update(repository_href, data)
320
- p result
321
- rescue PulpcoreClient::ApiError => e
322
- puts "Exception when calling RepositoriesApi->update: #{e}"
323
- end
324
- ```
325
-
326
- ### Parameters
327
-
328
-
329
- Name | Type | Description | Notes
330
- ------------- | ------------- | ------------- | -------------
331
- **repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
332
- **data** | [**Repository**](Repository.md)| |
333
-
334
- ### Return type
335
-
336
- [**AsyncOperationResponse**](AsyncOperationResponse.md)
337
-
338
- ### Authorization
339
-
340
- [Basic](../README.md#Basic)
341
-
342
- ### HTTP request headers
343
-
344
- - **Content-Type**: application/json
345
- - **Accept**: application/json
346
-