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,478 @@
1
+ # TokensApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/containerregistries*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**registries_tokens_delete**](TokensApi.md#registries_tokens_delete) | **DELETE** /registries/{registryId}/tokens/{tokenId} | Delete token |
8
+ | [**registries_tokens_find_by_id**](TokensApi.md#registries_tokens_find_by_id) | **GET** /registries/{registryId}/tokens/{tokenId} | Get token information |
9
+ | [**registries_tokens_get**](TokensApi.md#registries_tokens_get) | **GET** /registries/{registryId}/tokens | List all tokens for the container registry |
10
+ | [**registries_tokens_patch**](TokensApi.md#registries_tokens_patch) | **PATCH** /registries/{registryId}/tokens/{tokenId} | Update token |
11
+ | [**registries_tokens_post**](TokensApi.md#registries_tokens_post) | **POST** /registries/{registryId}/tokens | Create token |
12
+ | [**registries_tokens_put**](TokensApi.md#registries_tokens_put) | **PUT** /registries/{registryId}/tokens/{tokenId} | Create or replace token |
13
+
14
+
15
+ ## registries_tokens_delete
16
+
17
+ > registries_tokens_delete(registry_id, token_id)
18
+
19
+ Delete token
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::TokensApi.new
39
+ registry_id = TODO # String | The unique ID of the registry
40
+ token_id = TODO # String | The unique ID of the token
41
+
42
+ begin
43
+ # Delete token
44
+ api_instance.registries_tokens_delete(registry_id, token_id)
45
+ rescue IonoscloudContainerRegistry::ApiError => e
46
+ puts "Error when calling TokensApi->registries_tokens_delete: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the registries_tokens_delete_with_http_info variant
51
+
52
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
53
+
54
+ > <Array(nil, Integer, Hash)> registries_tokens_delete_with_http_info(registry_id, token_id)
55
+
56
+ ```ruby
57
+ begin
58
+ # Delete token
59
+ data, status_code, headers = api_instance.registries_tokens_delete_with_http_info(registry_id, token_id)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => nil
63
+ rescue IonoscloudContainerRegistry::ApiError => e
64
+ puts "Error when calling TokensApi->registries_tokens_delete_with_http_info: #{e}"
65
+ end
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
73
+ | **token_id** | [**String**](.md) | The unique ID of the token | |
74
+
75
+ ### Return type
76
+
77
+ nil (empty response body)
78
+
79
+ ### Authorization
80
+
81
+ basicAuth, tokenAuth
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: Not defined
86
+ - **Accept**: application/json
87
+
88
+
89
+ ## registries_tokens_find_by_id
90
+
91
+ > <TokenResponse> registries_tokens_find_by_id(registry_id, token_id)
92
+
93
+ Get token information
94
+
95
+ Gets all information for a specific token used to access a container registry
96
+
97
+ ### Examples
98
+
99
+ ```ruby
100
+ require 'time'
101
+ require 'ionoscloud-container-registry'
102
+ # setup authorization
103
+ IonoscloudContainerRegistry.configure do |config|
104
+ # Configure HTTP basic authorization: basicAuth
105
+ config.username = 'YOUR USERNAME'
106
+ config.password = 'YOUR PASSWORD'
107
+
108
+ # Configure API key authorization: tokenAuth
109
+ config.api_key['Authorization'] = 'YOUR API KEY'
110
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
111
+ # config.api_key_prefix['Authorization'] = 'Bearer'
112
+ end
113
+
114
+ api_instance = IonoscloudContainerRegistry::TokensApi.new
115
+ registry_id = TODO # String | The unique ID of the registry
116
+ token_id = TODO # String | The unique ID of the token
117
+
118
+ begin
119
+ # Get token information
120
+ result = api_instance.registries_tokens_find_by_id(registry_id, token_id)
121
+ p result
122
+ rescue IonoscloudContainerRegistry::ApiError => e
123
+ puts "Error when calling TokensApi->registries_tokens_find_by_id: #{e}"
124
+ end
125
+ ```
126
+
127
+ #### Using the registries_tokens_find_by_id_with_http_info variant
128
+
129
+ This returns an Array which contains the response data, status code and headers.
130
+
131
+ > <Array(<TokenResponse>, Integer, Hash)> registries_tokens_find_by_id_with_http_info(registry_id, token_id)
132
+
133
+ ```ruby
134
+ begin
135
+ # Get token information
136
+ data, status_code, headers = api_instance.registries_tokens_find_by_id_with_http_info(registry_id, token_id)
137
+ p status_code # => 2xx
138
+ p headers # => { ... }
139
+ p data # => <TokenResponse>
140
+ rescue IonoscloudContainerRegistry::ApiError => e
141
+ puts "Error when calling TokensApi->registries_tokens_find_by_id_with_http_info: #{e}"
142
+ end
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ | Name | Type | Description | Notes |
148
+ | ---- | ---- | ----------- | ----- |
149
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
150
+ | **token_id** | [**String**](.md) | The unique ID of the token | |
151
+
152
+ ### Return type
153
+
154
+ [**TokenResponse**](TokenResponse.md)
155
+
156
+ ### Authorization
157
+
158
+ basicAuth, tokenAuth
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: application/json
164
+
165
+
166
+ ## registries_tokens_get
167
+
168
+ > <TokensResponse> registries_tokens_get(registry_id, opts)
169
+
170
+ List all tokens for the container registry
171
+
172
+ ### Examples
173
+
174
+ ```ruby
175
+ require 'time'
176
+ require 'ionoscloud-container-registry'
177
+ # setup authorization
178
+ IonoscloudContainerRegistry.configure do |config|
179
+ # Configure HTTP basic authorization: basicAuth
180
+ config.username = 'YOUR USERNAME'
181
+ config.password = 'YOUR PASSWORD'
182
+
183
+ # Configure API key authorization: tokenAuth
184
+ config.api_key['Authorization'] = 'YOUR API KEY'
185
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
186
+ # config.api_key_prefix['Authorization'] = 'Bearer'
187
+ end
188
+
189
+ api_instance = IonoscloudContainerRegistry::TokensApi.new
190
+ registry_id = TODO # String | The unique ID of the registry
191
+ opts = {
192
+ offset: 'offset_example', # String | The first element (from the complete list of the elements) to include in the response (used together with limit for pagination)
193
+ limit: 'limit_example' # String | The maximum number of elements to return (used together with offset for pagination)
194
+ }
195
+
196
+ begin
197
+ # List all tokens for the container registry
198
+ result = api_instance.registries_tokens_get(registry_id, opts)
199
+ p result
200
+ rescue IonoscloudContainerRegistry::ApiError => e
201
+ puts "Error when calling TokensApi->registries_tokens_get: #{e}"
202
+ end
203
+ ```
204
+
205
+ #### Using the registries_tokens_get_with_http_info variant
206
+
207
+ This returns an Array which contains the response data, status code and headers.
208
+
209
+ > <Array(<TokensResponse>, Integer, Hash)> registries_tokens_get_with_http_info(registry_id, opts)
210
+
211
+ ```ruby
212
+ begin
213
+ # List all tokens for the container registry
214
+ data, status_code, headers = api_instance.registries_tokens_get_with_http_info(registry_id, opts)
215
+ p status_code # => 2xx
216
+ p headers # => { ... }
217
+ p data # => <TokensResponse>
218
+ rescue IonoscloudContainerRegistry::ApiError => e
219
+ puts "Error when calling TokensApi->registries_tokens_get_with_http_info: #{e}"
220
+ end
221
+ ```
222
+
223
+ ### Parameters
224
+
225
+ | Name | Type | Description | Notes |
226
+ | ---- | ---- | ----------- | ----- |
227
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
228
+ | **offset** | **String** | The first element (from the complete list of the elements) to include in the response (used together with limit for pagination) | [optional][default to &#39;0&#39;] |
229
+ | **limit** | **String** | The maximum number of elements to return (used together with offset for pagination) | [optional][default to &#39;100&#39;] |
230
+
231
+ ### Return type
232
+
233
+ [**TokensResponse**](TokensResponse.md)
234
+
235
+ ### Authorization
236
+
237
+ basicAuth, tokenAuth
238
+
239
+ ### HTTP request headers
240
+
241
+ - **Content-Type**: Not defined
242
+ - **Accept**: application/json
243
+
244
+
245
+ ## registries_tokens_patch
246
+
247
+ > <TokenResponse> registries_tokens_patch(registry_id, token_id, patch_token_input)
248
+
249
+ Update token
250
+
251
+ Update token properties, for example: - change status to 'enabled' or 'disabled' - change expiry date
252
+
253
+ ### Examples
254
+
255
+ ```ruby
256
+ require 'time'
257
+ require 'ionoscloud-container-registry'
258
+ # setup authorization
259
+ IonoscloudContainerRegistry.configure do |config|
260
+ # Configure HTTP basic authorization: basicAuth
261
+ config.username = 'YOUR USERNAME'
262
+ config.password = 'YOUR PASSWORD'
263
+
264
+ # Configure API key authorization: tokenAuth
265
+ config.api_key['Authorization'] = 'YOUR API KEY'
266
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
267
+ # config.api_key_prefix['Authorization'] = 'Bearer'
268
+ end
269
+
270
+ api_instance = IonoscloudContainerRegistry::TokensApi.new
271
+ registry_id = TODO # String | The unique ID of the registry
272
+ token_id = TODO # String | The unique ID of the token
273
+ patch_token_input = IonoscloudContainerRegistry::PatchTokenInput.new # PatchTokenInput |
274
+
275
+ begin
276
+ # Update token
277
+ result = api_instance.registries_tokens_patch(registry_id, token_id, patch_token_input)
278
+ p result
279
+ rescue IonoscloudContainerRegistry::ApiError => e
280
+ puts "Error when calling TokensApi->registries_tokens_patch: #{e}"
281
+ end
282
+ ```
283
+
284
+ #### Using the registries_tokens_patch_with_http_info variant
285
+
286
+ This returns an Array which contains the response data, status code and headers.
287
+
288
+ > <Array(<TokenResponse>, Integer, Hash)> registries_tokens_patch_with_http_info(registry_id, token_id, patch_token_input)
289
+
290
+ ```ruby
291
+ begin
292
+ # Update token
293
+ data, status_code, headers = api_instance.registries_tokens_patch_with_http_info(registry_id, token_id, patch_token_input)
294
+ p status_code # => 2xx
295
+ p headers # => { ... }
296
+ p data # => <TokenResponse>
297
+ rescue IonoscloudContainerRegistry::ApiError => e
298
+ puts "Error when calling TokensApi->registries_tokens_patch_with_http_info: #{e}"
299
+ end
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+ | Name | Type | Description | Notes |
305
+ | ---- | ---- | ----------- | ----- |
306
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
307
+ | **token_id** | [**String**](.md) | The unique ID of the token | |
308
+ | **patch_token_input** | [**PatchTokenInput**](PatchTokenInput.md) | | |
309
+
310
+ ### Return type
311
+
312
+ [**TokenResponse**](TokenResponse.md)
313
+
314
+ ### Authorization
315
+
316
+ basicAuth, tokenAuth
317
+
318
+ ### HTTP request headers
319
+
320
+ - **Content-Type**: application/json
321
+ - **Accept**: application/json
322
+
323
+
324
+ ## registries_tokens_post
325
+
326
+ > <PostTokenOutput> registries_tokens_post(registry_id, post_token_input)
327
+
328
+ Create token
329
+
330
+ Create a token - password is only available once in the POST response
331
+
332
+ ### Examples
333
+
334
+ ```ruby
335
+ require 'time'
336
+ require 'ionoscloud-container-registry'
337
+ # setup authorization
338
+ IonoscloudContainerRegistry.configure do |config|
339
+ # Configure HTTP basic authorization: basicAuth
340
+ config.username = 'YOUR USERNAME'
341
+ config.password = 'YOUR PASSWORD'
342
+
343
+ # Configure API key authorization: tokenAuth
344
+ config.api_key['Authorization'] = 'YOUR API KEY'
345
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
346
+ # config.api_key_prefix['Authorization'] = 'Bearer'
347
+ end
348
+
349
+ api_instance = IonoscloudContainerRegistry::TokensApi.new
350
+ registry_id = TODO # String | The unique ID of the registry
351
+ post_token_input = IonoscloudContainerRegistry::PostTokenInput.new({properties: IonoscloudContainerRegistry::PostTokenProperties.new({name: 'push-token'})}) # PostTokenInput |
352
+
353
+ begin
354
+ # Create token
355
+ result = api_instance.registries_tokens_post(registry_id, post_token_input)
356
+ p result
357
+ rescue IonoscloudContainerRegistry::ApiError => e
358
+ puts "Error when calling TokensApi->registries_tokens_post: #{e}"
359
+ end
360
+ ```
361
+
362
+ #### Using the registries_tokens_post_with_http_info variant
363
+
364
+ This returns an Array which contains the response data, status code and headers.
365
+
366
+ > <Array(<PostTokenOutput>, Integer, Hash)> registries_tokens_post_with_http_info(registry_id, post_token_input)
367
+
368
+ ```ruby
369
+ begin
370
+ # Create token
371
+ data, status_code, headers = api_instance.registries_tokens_post_with_http_info(registry_id, post_token_input)
372
+ p status_code # => 2xx
373
+ p headers # => { ... }
374
+ p data # => <PostTokenOutput>
375
+ rescue IonoscloudContainerRegistry::ApiError => e
376
+ puts "Error when calling TokensApi->registries_tokens_post_with_http_info: #{e}"
377
+ end
378
+ ```
379
+
380
+ ### Parameters
381
+
382
+ | Name | Type | Description | Notes |
383
+ | ---- | ---- | ----------- | ----- |
384
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
385
+ | **post_token_input** | [**PostTokenInput**](PostTokenInput.md) | | |
386
+
387
+ ### Return type
388
+
389
+ [**PostTokenOutput**](PostTokenOutput.md)
390
+
391
+ ### Authorization
392
+
393
+ basicAuth, tokenAuth
394
+
395
+ ### HTTP request headers
396
+
397
+ - **Content-Type**: application/json
398
+ - **Accept**: application/json
399
+
400
+
401
+ ## registries_tokens_put
402
+
403
+ > <PutTokenOutput> registries_tokens_put(registry_id, token_id, put_token_input)
404
+
405
+ Create or replace token
406
+
407
+ Create/replace a token - password is only available once in the create response - \"name\" cannot be changed
408
+
409
+ ### Examples
410
+
411
+ ```ruby
412
+ require 'time'
413
+ require 'ionoscloud-container-registry'
414
+ # setup authorization
415
+ IonoscloudContainerRegistry.configure do |config|
416
+ # Configure HTTP basic authorization: basicAuth
417
+ config.username = 'YOUR USERNAME'
418
+ config.password = 'YOUR PASSWORD'
419
+
420
+ # Configure API key authorization: tokenAuth
421
+ config.api_key['Authorization'] = 'YOUR API KEY'
422
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
423
+ # config.api_key_prefix['Authorization'] = 'Bearer'
424
+ end
425
+
426
+ api_instance = IonoscloudContainerRegistry::TokensApi.new
427
+ registry_id = TODO # String | The unique ID of the registry
428
+ token_id = 'token_id_example' # String | The unique ID of the token
429
+ put_token_input = IonoscloudContainerRegistry::PutTokenInput.new({properties: IonoscloudContainerRegistry::PostTokenProperties.new({name: 'push-token'})}) # PutTokenInput |
430
+
431
+ begin
432
+ # Create or replace token
433
+ result = api_instance.registries_tokens_put(registry_id, token_id, put_token_input)
434
+ p result
435
+ rescue IonoscloudContainerRegistry::ApiError => e
436
+ puts "Error when calling TokensApi->registries_tokens_put: #{e}"
437
+ end
438
+ ```
439
+
440
+ #### Using the registries_tokens_put_with_http_info variant
441
+
442
+ This returns an Array which contains the response data, status code and headers.
443
+
444
+ > <Array(<PutTokenOutput>, Integer, Hash)> registries_tokens_put_with_http_info(registry_id, token_id, put_token_input)
445
+
446
+ ```ruby
447
+ begin
448
+ # Create or replace token
449
+ data, status_code, headers = api_instance.registries_tokens_put_with_http_info(registry_id, token_id, put_token_input)
450
+ p status_code # => 2xx
451
+ p headers # => { ... }
452
+ p data # => <PutTokenOutput>
453
+ rescue IonoscloudContainerRegistry::ApiError => e
454
+ puts "Error when calling TokensApi->registries_tokens_put_with_http_info: #{e}"
455
+ end
456
+ ```
457
+
458
+ ### Parameters
459
+
460
+ | Name | Type | Description | Notes |
461
+ | ---- | ---- | ----------- | ----- |
462
+ | **registry_id** | [**String**](.md) | The unique ID of the registry | |
463
+ | **token_id** | **String** | The unique ID of the token | |
464
+ | **put_token_input** | [**PutTokenInput**](PutTokenInput.md) | | |
465
+
466
+ ### Return type
467
+
468
+ [**PutTokenOutput**](PutTokenOutput.md)
469
+
470
+ ### Authorization
471
+
472
+ basicAuth, tokenAuth
473
+
474
+ ### HTTP request headers
475
+
476
+ - **Content-Type**: application/json
477
+ - **Accept**: application/json
478
+
@@ -0,0 +1,20 @@
1
+ # ApiErrorMessage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error_code** | **String** | | |
8
+ | **message** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-container-registry'
14
+
15
+ instance = IonoscloudContainerRegistry::ApiErrorMessage.new(
16
+ error_code: 123,
17
+ message: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # ApiErrorResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **http_status** | **Integer** | | |
8
+ | **messages** | [**Array&lt;ApiErrorMessage&gt;**](ApiErrorMessage.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-container-registry'
14
+
15
+ instance = IonoscloudContainerRegistry::ApiErrorResponse.new(
16
+ http_status: 400,
17
+ messages: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,30 @@
1
+ # ApiResourceMetadata
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_by** | **String** | | |
8
+ | **created_by_user_id** | **String** | | |
9
+ | **created_date** | **Time** | | |
10
+ | **last_modified_by** | **String** | | [optional] |
11
+ | **last_modified_by_user_id** | **String** | | [optional] |
12
+ | **last_modified_date** | **Time** | | [optional] |
13
+ | **state** | **String** | | |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ionoscloud-container-registry'
19
+
20
+ instance = IonoscloudContainerRegistry::ApiResourceMetadata.new(
21
+ created_by: null,
22
+ created_by_user_id: null,
23
+ created_date: null,
24
+ last_modified_by: null,
25
+ last_modified_by_user_id: null,
26
+ last_modified_date: null,
27
+ state: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,20 @@
1
+ # Credentials
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **password** | **String** | | |
8
+ | **username** | **String** | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-container-registry'
14
+
15
+ instance = IonoscloudContainerRegistry::Credentials.new(
16
+ password: ,
17
+ username: push-token
18
+ )
19
+ ```
20
+
@@ -0,0 +1,15 @@
1
+ # Day
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'ionoscloud-container-registry'
12
+
13
+ instance = IonoscloudContainerRegistry::Day.new()
14
+ ```
15
+
@@ -0,0 +1,18 @@
1
+ # Location
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-container-registry'
13
+
14
+ instance = IonoscloudContainerRegistry::Location.new(
15
+ id: de/txl
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # LocationsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **href** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **items** | [**Array&lt;Location&gt;**](Location.md) | | [optional] |
10
+ | **type** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud-container-registry'
16
+
17
+ instance = IonoscloudContainerRegistry::LocationsResponse.new(
18
+ href: null,
19
+ id: null,
20
+ items: null,
21
+ type: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # PaginationLinks
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_next** | **String** | | |
8
+ | **previous** | **String** | | |
9
+ | **_self** | **String** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-container-registry'
15
+
16
+ instance = IonoscloudContainerRegistry::PaginationLinks.new(
17
+ _next: null,
18
+ previous: null,
19
+ _self: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # PatchRegistryInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **garbage_collection_schedule** | [**WeeklySchedule**](WeeklySchedule.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-container-registry'
13
+
14
+ instance = IonoscloudContainerRegistry::PatchRegistryInput.new(
15
+ garbage_collection_schedule: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # PatchTokenInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **expiry_date** | **Time** | | [optional] |
8
+ | **scopes** | [**Array&lt;Scope&gt;**](Scope.md) | | [optional] |
9
+ | **status** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-container-registry'
15
+
16
+ instance = IonoscloudContainerRegistry::PatchTokenInput.new(
17
+ expiry_date: null,
18
+ scopes: null,
19
+ status: null
20
+ )
21
+ ```
22
+