ionoscloud-container-registry 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +70 -0
  4. data/LICENSE +201 -0
  5. data/README.md +54 -0
  6. data/Rakefile +10 -0
  7. data/docs/api/LocationsApi.md +78 -0
  8. data/docs/api/NamesApi.md +82 -0
  9. data/docs/api/RegistriesApi.md +470 -0
  10. data/docs/api/RepositoriesApi.md +84 -0
  11. data/docs/api/TokensApi.md +478 -0
  12. data/docs/models/ApiErrorMessage.md +20 -0
  13. data/docs/models/ApiErrorResponse.md +20 -0
  14. data/docs/models/ApiResourceMetadata.md +30 -0
  15. data/docs/models/Credentials.md +20 -0
  16. data/docs/models/Day.md +15 -0
  17. data/docs/models/Location.md +18 -0
  18. data/docs/models/LocationsResponse.md +24 -0
  19. data/docs/models/PaginationLinks.md +22 -0
  20. data/docs/models/PatchRegistryInput.md +18 -0
  21. data/docs/models/PatchTokenInput.md +22 -0
  22. data/docs/models/PostRegistryInput.md +18 -0
  23. data/docs/models/PostRegistryOutput.md +26 -0
  24. data/docs/models/PostRegistryProperties.md +22 -0
  25. data/docs/models/PostTokenInput.md +18 -0
  26. data/docs/models/PostTokenOutput.md +26 -0
  27. data/docs/models/PostTokenProperties.md +24 -0
  28. data/docs/models/PutRegistryInput.md +18 -0
  29. data/docs/models/PutRegistryOutput.md +26 -0
  30. data/docs/models/PutTokenInput.md +18 -0
  31. data/docs/models/PutTokenOutput.md +26 -0
  32. data/docs/models/RegistriesResponse.md +30 -0
  33. data/docs/models/RegistryProperties.md +26 -0
  34. data/docs/models/RegistryResponse.md +26 -0
  35. data/docs/models/Scope.md +22 -0
  36. data/docs/models/StorageUsage.md +20 -0
  37. data/docs/models/TokenProperties.md +26 -0
  38. data/docs/models/TokenResponse.md +26 -0
  39. data/docs/models/TokensResponse.md +34 -0
  40. data/docs/models/WeeklySchedule.md +20 -0
  41. data/docs/summary.md +44 -0
  42. data/git_push.sh +56 -0
  43. data/ionoscloud-container-registry.gemspec +38 -0
  44. data/lib/ionoscloud-container-registry/api/locations_api.rb +77 -0
  45. data/lib/ionoscloud-container-registry/api/names_api.rb +90 -0
  46. data/lib/ionoscloud-container-registry/api/registries_api.rb +439 -0
  47. data/lib/ionoscloud-container-registry/api/repositories_api.rb +99 -0
  48. data/lib/ionoscloud-container-registry/api/tokens_api.rb +500 -0
  49. data/lib/ionoscloud-container-registry/api_client.rb +471 -0
  50. data/lib/ionoscloud-container-registry/api_error.rb +57 -0
  51. data/lib/ionoscloud-container-registry/configuration.rb +276 -0
  52. data/lib/ionoscloud-container-registry/models/api_error_message.rb +237 -0
  53. data/lib/ionoscloud-container-registry/models/api_error_response.rb +233 -0
  54. data/lib/ionoscloud-container-registry/models/api_resource_metadata.rb +293 -0
  55. data/lib/ionoscloud-container-registry/models/credentials.rb +237 -0
  56. data/lib/ionoscloud-container-registry/models/day.rb +42 -0
  57. data/lib/ionoscloud-container-registry/models/location.rb +218 -0
  58. data/lib/ionoscloud-container-registry/models/locations_response.rb +246 -0
  59. data/lib/ionoscloud-container-registry/models/pagination_links.rb +251 -0
  60. data/lib/ionoscloud-container-registry/models/patch_registry_input.rb +219 -0
  61. data/lib/ionoscloud-container-registry/models/patch_token_input.rb +272 -0
  62. data/lib/ionoscloud-container-registry/models/post_registry_input.rb +223 -0
  63. data/lib/ionoscloud-container-registry/models/post_registry_output.rb +256 -0
  64. data/lib/ionoscloud-container-registry/models/post_registry_properties.rb +268 -0
  65. data/lib/ionoscloud-container-registry/models/post_token_input.rb +223 -0
  66. data/lib/ionoscloud-container-registry/models/post_token_output.rb +256 -0
  67. data/lib/ionoscloud-container-registry/models/post_token_properties.rb +316 -0
  68. data/lib/ionoscloud-container-registry/models/put_registry_input.rb +223 -0
  69. data/lib/ionoscloud-container-registry/models/put_registry_output.rb +256 -0
  70. data/lib/ionoscloud-container-registry/models/put_token_input.rb +223 -0
  71. data/lib/ionoscloud-container-registry/models/put_token_output.rb +256 -0
  72. data/lib/ionoscloud-container-registry/models/registries_response.rb +288 -0
  73. data/lib/ionoscloud-container-registry/models/registry_properties.rb +287 -0
  74. data/lib/ionoscloud-container-registry/models/registry_response.rb +256 -0
  75. data/lib/ionoscloud-container-registry/models/scope.rb +247 -0
  76. data/lib/ionoscloud-container-registry/models/storage_usage.rb +229 -0
  77. data/lib/ionoscloud-container-registry/models/token_properties.rb +326 -0
  78. data/lib/ionoscloud-container-registry/models/token_response.rb +256 -0
  79. data/lib/ionoscloud-container-registry/models/tokens_response.rb +316 -0
  80. data/lib/ionoscloud-container-registry/models/weekly_schedule.rb +234 -0
  81. data/lib/ionoscloud-container-registry/version.rb +15 -0
  82. data/lib/ionoscloud-container-registry.rb +73 -0
  83. data/spec/api_client_spec.rb +226 -0
  84. data/spec/configuration_spec.rb +42 -0
  85. data/spec/spec_helper.rb +111 -0
  86. metadata +173 -0
@@ -0,0 +1,470 @@
1
+ # RegistriesApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/containerregistries*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**registries_delete**](RegistriesApi.md#registries_delete) | **DELETE** /registries/{registryId} | Delete registry |
8
+ | [**registries_find_by_id**](RegistriesApi.md#registries_find_by_id) | **GET** /registries/{registryId} | Get a registry |
9
+ | [**registries_get**](RegistriesApi.md#registries_get) | **GET** /registries | List all container registries |
10
+ | [**registries_patch**](RegistriesApi.md#registries_patch) | **PATCH** /registries/{registryId} | Update the properties of a registry |
11
+ | [**registries_post**](RegistriesApi.md#registries_post) | **POST** /registries | Create container registry |
12
+ | [**registries_put**](RegistriesApi.md#registries_put) | **PUT** /registries/{registryId} | Create or replace a container registry |
13
+
14
+
15
+ ## registries_delete
16
+
17
+ > registries_delete(registry_id)
18
+
19
+ Delete registry
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'ionoscloud-container-registry'
26
+ # setup authorization
27
+ IonoscloudContainerRegistry.configure do |config|
28
+ # Configure HTTP basic authorization: basicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+
32
+ # Configure API key authorization: tokenAuth
33
+ config.api_key['Authorization'] = 'YOUR API KEY'
34
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
+ # config.api_key_prefix['Authorization'] = 'Bearer'
36
+ end
37
+
38
+ api_instance = IonoscloudContainerRegistry::RegistriesApi.new
39
+ registry_id = TODO # String | The unique ID of the registry
40
+
41
+ begin
42
+ # Delete registry
43
+ api_instance.registries_delete(registry_id)
44
+ rescue IonoscloudContainerRegistry::ApiError => e
45
+ puts "Error when calling RegistriesApi->registries_delete: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the registries_delete_with_http_info variant
50
+
51
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
52
+
53
+ > <Array(nil, Integer, Hash)> registries_delete_with_http_info(registry_id)
54
+
55
+ ```ruby
56
+ begin
57
+ # Delete registry
58
+ data, status_code, headers = api_instance.registries_delete_with_http_info(registry_id)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => nil
62
+ rescue IonoscloudContainerRegistry::ApiError => e
63
+ puts "Error when calling RegistriesApi->registries_delete_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
72
+
73
+ ### Return type
74
+
75
+ nil (empty response body)
76
+
77
+ ### Authorization
78
+
79
+ basicAuth, tokenAuth
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: application/json
85
+
86
+
87
+ ## registries_find_by_id
88
+
89
+ > <RegistryResponse> registries_find_by_id(registry_id)
90
+
91
+ Get a registry
92
+
93
+ Get all information for a specific container registry
94
+
95
+ ### Examples
96
+
97
+ ```ruby
98
+ require 'time'
99
+ require 'ionoscloud-container-registry'
100
+ # setup authorization
101
+ IonoscloudContainerRegistry.configure do |config|
102
+ # Configure HTTP basic authorization: basicAuth
103
+ config.username = 'YOUR USERNAME'
104
+ config.password = 'YOUR PASSWORD'
105
+
106
+ # Configure API key authorization: tokenAuth
107
+ config.api_key['Authorization'] = 'YOUR API KEY'
108
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
109
+ # config.api_key_prefix['Authorization'] = 'Bearer'
110
+ end
111
+
112
+ api_instance = IonoscloudContainerRegistry::RegistriesApi.new
113
+ registry_id = TODO # String | The unique ID of the registry
114
+
115
+ begin
116
+ # Get a registry
117
+ result = api_instance.registries_find_by_id(registry_id)
118
+ p result
119
+ rescue IonoscloudContainerRegistry::ApiError => e
120
+ puts "Error when calling RegistriesApi->registries_find_by_id: #{e}"
121
+ end
122
+ ```
123
+
124
+ #### Using the registries_find_by_id_with_http_info variant
125
+
126
+ This returns an Array which contains the response data, status code and headers.
127
+
128
+ > <Array(<RegistryResponse>, Integer, Hash)> registries_find_by_id_with_http_info(registry_id)
129
+
130
+ ```ruby
131
+ begin
132
+ # Get a registry
133
+ data, status_code, headers = api_instance.registries_find_by_id_with_http_info(registry_id)
134
+ p status_code # => 2xx
135
+ p headers # => { ... }
136
+ p data # => <RegistryResponse>
137
+ rescue IonoscloudContainerRegistry::ApiError => e
138
+ puts "Error when calling RegistriesApi->registries_find_by_id_with_http_info: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ | Name | Type | Description | Notes |
145
+ | ---- | ---- | ----------- | ----- |
146
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
147
+
148
+ ### Return type
149
+
150
+ [**RegistryResponse**](RegistryResponse.md)
151
+
152
+ ### Authorization
153
+
154
+ basicAuth, tokenAuth
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
162
+ ## registries_get
163
+
164
+ > <RegistriesResponse> registries_get(opts)
165
+
166
+ List all container registries
167
+
168
+ List all managed container registries for your account
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'ionoscloud-container-registry'
175
+ # setup authorization
176
+ IonoscloudContainerRegistry.configure do |config|
177
+ # Configure HTTP basic authorization: basicAuth
178
+ config.username = 'YOUR USERNAME'
179
+ config.password = 'YOUR PASSWORD'
180
+
181
+ # Configure API key authorization: tokenAuth
182
+ config.api_key['Authorization'] = 'YOUR API KEY'
183
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
184
+ # config.api_key_prefix['Authorization'] = 'Bearer'
185
+ end
186
+
187
+ api_instance = IonoscloudContainerRegistry::RegistriesApi.new
188
+ opts = {
189
+ filter_name: 'my-registry', # String | The registry name to search for
190
+ limit: 'limit_example', # String | The maximum number of elements to return (used together with nextPageToken for pagination)
191
+ next_page_token: 'next_page_token_example' # String | The next page from the complete list of elements (used together with limit for pagination)
192
+ }
193
+
194
+ begin
195
+ # List all container registries
196
+ result = api_instance.registries_get(opts)
197
+ p result
198
+ rescue IonoscloudContainerRegistry::ApiError => e
199
+ puts "Error when calling RegistriesApi->registries_get: #{e}"
200
+ end
201
+ ```
202
+
203
+ #### Using the registries_get_with_http_info variant
204
+
205
+ This returns an Array which contains the response data, status code and headers.
206
+
207
+ > <Array(<RegistriesResponse>, Integer, Hash)> registries_get_with_http_info(opts)
208
+
209
+ ```ruby
210
+ begin
211
+ # List all container registries
212
+ data, status_code, headers = api_instance.registries_get_with_http_info(opts)
213
+ p status_code # => 2xx
214
+ p headers # => { ... }
215
+ p data # => <RegistriesResponse>
216
+ rescue IonoscloudContainerRegistry::ApiError => e
217
+ puts "Error when calling RegistriesApi->registries_get_with_http_info: #{e}"
218
+ end
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+ | Name | Type | Description | Notes |
224
+ | ---- | ---- | ----------- | ----- |
225
+ | **filter_name** | **String** | The registry name to search for | [optional] |
226
+ | **limit** | **String** | The maximum number of elements to return (used together with nextPageToken for pagination) | [optional][default to &#39;100&#39;] |
227
+ | **next_page_token** | **String** | The next page from the complete list of elements (used together with limit for pagination) | [optional] |
228
+
229
+ ### Return type
230
+
231
+ [**RegistriesResponse**](RegistriesResponse.md)
232
+
233
+ ### Authorization
234
+
235
+ basicAuth, tokenAuth
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: Not defined
240
+ - **Accept**: application/json
241
+
242
+
243
+ ## registries_patch
244
+
245
+ > <RegistryResponse> registries_patch(registry_id, patch_registry_input)
246
+
247
+ Update the properties of a registry
248
+
249
+ Update the properties of a registry - \"garbageCollectionSchedule\" time and days of the week for runs
250
+
251
+ ### Examples
252
+
253
+ ```ruby
254
+ require 'time'
255
+ require 'ionoscloud-container-registry'
256
+ # setup authorization
257
+ IonoscloudContainerRegistry.configure do |config|
258
+ # Configure HTTP basic authorization: basicAuth
259
+ config.username = 'YOUR USERNAME'
260
+ config.password = 'YOUR PASSWORD'
261
+
262
+ # Configure API key authorization: tokenAuth
263
+ config.api_key['Authorization'] = 'YOUR API KEY'
264
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
265
+ # config.api_key_prefix['Authorization'] = 'Bearer'
266
+ end
267
+
268
+ api_instance = IonoscloudContainerRegistry::RegistriesApi.new
269
+ registry_id = TODO # String | The unique ID of the registry
270
+ patch_registry_input = IonoscloudContainerRegistry::PatchRegistryInput.new # PatchRegistryInput |
271
+
272
+ begin
273
+ # Update the properties of a registry
274
+ result = api_instance.registries_patch(registry_id, patch_registry_input)
275
+ p result
276
+ rescue IonoscloudContainerRegistry::ApiError => e
277
+ puts "Error when calling RegistriesApi->registries_patch: #{e}"
278
+ end
279
+ ```
280
+
281
+ #### Using the registries_patch_with_http_info variant
282
+
283
+ This returns an Array which contains the response data, status code and headers.
284
+
285
+ > <Array(<RegistryResponse>, Integer, Hash)> registries_patch_with_http_info(registry_id, patch_registry_input)
286
+
287
+ ```ruby
288
+ begin
289
+ # Update the properties of a registry
290
+ data, status_code, headers = api_instance.registries_patch_with_http_info(registry_id, patch_registry_input)
291
+ p status_code # => 2xx
292
+ p headers # => { ... }
293
+ p data # => <RegistryResponse>
294
+ rescue IonoscloudContainerRegistry::ApiError => e
295
+ puts "Error when calling RegistriesApi->registries_patch_with_http_info: #{e}"
296
+ end
297
+ ```
298
+
299
+ ### Parameters
300
+
301
+ | Name | Type | Description | Notes |
302
+ | ---- | ---- | ----------- | ----- |
303
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
304
+ | **patch_registry_input** | [**PatchRegistryInput**](PatchRegistryInput.md) | | |
305
+
306
+ ### Return type
307
+
308
+ [**RegistryResponse**](RegistryResponse.md)
309
+
310
+ ### Authorization
311
+
312
+ basicAuth, tokenAuth
313
+
314
+ ### HTTP request headers
315
+
316
+ - **Content-Type**: application/json
317
+ - **Accept**: application/json
318
+
319
+
320
+ ## registries_post
321
+
322
+ > <PostRegistryOutput> registries_post(post_registry_input)
323
+
324
+ Create container registry
325
+
326
+ Create a registry to hold container images or OCI compliant artifacts - \"name\" must have passed validation - \"location\" must be one of the available location IDs - \"garbageCollectionSchedule\" time and days of the week for runs
327
+
328
+ ### Examples
329
+
330
+ ```ruby
331
+ require 'time'
332
+ require 'ionoscloud-container-registry'
333
+ # setup authorization
334
+ IonoscloudContainerRegistry.configure do |config|
335
+ # Configure HTTP basic authorization: basicAuth
336
+ config.username = 'YOUR USERNAME'
337
+ config.password = 'YOUR PASSWORD'
338
+
339
+ # Configure API key authorization: tokenAuth
340
+ config.api_key['Authorization'] = 'YOUR API KEY'
341
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
342
+ # config.api_key_prefix['Authorization'] = 'Bearer'
343
+ end
344
+
345
+ api_instance = IonoscloudContainerRegistry::RegistriesApi.new
346
+ post_registry_input = IonoscloudContainerRegistry::PostRegistryInput.new({properties: IonoscloudContainerRegistry::PostRegistryProperties.new({location: 'de/txl', name: 'my-registry'})}) # PostRegistryInput |
347
+
348
+ begin
349
+ # Create container registry
350
+ result = api_instance.registries_post(post_registry_input)
351
+ p result
352
+ rescue IonoscloudContainerRegistry::ApiError => e
353
+ puts "Error when calling RegistriesApi->registries_post: #{e}"
354
+ end
355
+ ```
356
+
357
+ #### Using the registries_post_with_http_info variant
358
+
359
+ This returns an Array which contains the response data, status code and headers.
360
+
361
+ > <Array(<PostRegistryOutput>, Integer, Hash)> registries_post_with_http_info(post_registry_input)
362
+
363
+ ```ruby
364
+ begin
365
+ # Create container registry
366
+ data, status_code, headers = api_instance.registries_post_with_http_info(post_registry_input)
367
+ p status_code # => 2xx
368
+ p headers # => { ... }
369
+ p data # => <PostRegistryOutput>
370
+ rescue IonoscloudContainerRegistry::ApiError => e
371
+ puts "Error when calling RegistriesApi->registries_post_with_http_info: #{e}"
372
+ end
373
+ ```
374
+
375
+ ### Parameters
376
+
377
+ | Name | Type | Description | Notes |
378
+ | ---- | ---- | ----------- | ----- |
379
+ | **post_registry_input** | [**PostRegistryInput**](PostRegistryInput.md) | | |
380
+
381
+ ### Return type
382
+
383
+ [**PostRegistryOutput**](PostRegistryOutput.md)
384
+
385
+ ### Authorization
386
+
387
+ basicAuth, tokenAuth
388
+
389
+ ### HTTP request headers
390
+
391
+ - **Content-Type**: application/json
392
+ - **Accept**: application/json
393
+
394
+
395
+ ## registries_put
396
+
397
+ > <PutRegistryOutput> registries_put(registry_id, put_registry_input)
398
+
399
+ Create or replace a container registry
400
+
401
+ Create/replace a registry to hold container images or OCI compliant artifacts **On create** - \"name\" must have passed validation - \"location\" must be one of the available location IDs **On update** - \"name\" cannot be changed - \"location\" cannot be changed **On create or update** - \"garbageCollectionSchedule\": time and days of the week for runs
402
+
403
+ ### Examples
404
+
405
+ ```ruby
406
+ require 'time'
407
+ require 'ionoscloud-container-registry'
408
+ # setup authorization
409
+ IonoscloudContainerRegistry.configure do |config|
410
+ # Configure HTTP basic authorization: basicAuth
411
+ config.username = 'YOUR USERNAME'
412
+ config.password = 'YOUR PASSWORD'
413
+
414
+ # Configure API key authorization: tokenAuth
415
+ config.api_key['Authorization'] = 'YOUR API KEY'
416
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
417
+ # config.api_key_prefix['Authorization'] = 'Bearer'
418
+ end
419
+
420
+ api_instance = IonoscloudContainerRegistry::RegistriesApi.new
421
+ registry_id = TODO # String | The unique ID of the registry
422
+ put_registry_input = IonoscloudContainerRegistry::PutRegistryInput.new({properties: IonoscloudContainerRegistry::PostRegistryProperties.new({location: 'de/txl', name: 'my-registry'})}) # PutRegistryInput |
423
+
424
+ begin
425
+ # Create or replace a container registry
426
+ result = api_instance.registries_put(registry_id, put_registry_input)
427
+ p result
428
+ rescue IonoscloudContainerRegistry::ApiError => e
429
+ puts "Error when calling RegistriesApi->registries_put: #{e}"
430
+ end
431
+ ```
432
+
433
+ #### Using the registries_put_with_http_info variant
434
+
435
+ This returns an Array which contains the response data, status code and headers.
436
+
437
+ > <Array(<PutRegistryOutput>, Integer, Hash)> registries_put_with_http_info(registry_id, put_registry_input)
438
+
439
+ ```ruby
440
+ begin
441
+ # Create or replace a container registry
442
+ data, status_code, headers = api_instance.registries_put_with_http_info(registry_id, put_registry_input)
443
+ p status_code # => 2xx
444
+ p headers # => { ... }
445
+ p data # => <PutRegistryOutput>
446
+ rescue IonoscloudContainerRegistry::ApiError => e
447
+ puts "Error when calling RegistriesApi->registries_put_with_http_info: #{e}"
448
+ end
449
+ ```
450
+
451
+ ### Parameters
452
+
453
+ | Name | Type | Description | Notes |
454
+ | ---- | ---- | ----------- | ----- |
455
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
456
+ | **put_registry_input** | [**PutRegistryInput**](PutRegistryInput.md) | | |
457
+
458
+ ### Return type
459
+
460
+ [**PutRegistryOutput**](PutRegistryOutput.md)
461
+
462
+ ### Authorization
463
+
464
+ basicAuth, tokenAuth
465
+
466
+ ### HTTP request headers
467
+
468
+ - **Content-Type**: application/json
469
+ - **Accept**: application/json
470
+
@@ -0,0 +1,84 @@
1
+ # RepositoriesApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/containerregistries*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**registries_repositories_delete**](RepositoriesApi.md#registries_repositories_delete) | **DELETE** /registries/{registryId}/repositories/{name} | Delete repository |
8
+
9
+
10
+ ## registries_repositories_delete
11
+
12
+ > registries_repositories_delete(registry_id, name)
13
+
14
+ Delete repository
15
+
16
+ Delete all repository contents The registry V2 API allows manifests and blobs to be deleted individually but it is not possible to remove an entire repository. This operation is provided for convenience
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'ionoscloud-container-registry'
23
+ # setup authorization
24
+ IonoscloudContainerRegistry.configure do |config|
25
+ # Configure HTTP basic authorization: basicAuth
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+
29
+ # Configure API key authorization: tokenAuth
30
+ config.api_key['Authorization'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ # config.api_key_prefix['Authorization'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = IonoscloudContainerRegistry::RepositoriesApi.new
36
+ registry_id = TODO # String | The unique ID of the registry
37
+ name = 'ubuntu' # String | The name of the repository
38
+
39
+ begin
40
+ # Delete repository
41
+ api_instance.registries_repositories_delete(registry_id, name)
42
+ rescue IonoscloudContainerRegistry::ApiError => e
43
+ puts "Error when calling RepositoriesApi->registries_repositories_delete: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the registries_repositories_delete_with_http_info variant
48
+
49
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
50
+
51
+ > <Array(nil, Integer, Hash)> registries_repositories_delete_with_http_info(registry_id, name)
52
+
53
+ ```ruby
54
+ begin
55
+ # Delete repository
56
+ data, status_code, headers = api_instance.registries_repositories_delete_with_http_info(registry_id, name)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => nil
60
+ rescue IonoscloudContainerRegistry::ApiError => e
61
+ puts "Error when calling RepositoriesApi->registries_repositories_delete_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ | Name | Type | Description | Notes |
68
+ | ---- | ---- | ----------- | ----- |
69
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
70
+ | **name** | **String** | The name of the repository | |
71
+
72
+ ### Return type
73
+
74
+ nil (empty response body)
75
+
76
+ ### Authorization
77
+
78
+ basicAuth, tokenAuth
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: Not defined
83
+ - **Accept**: Not defined
84
+