Skip to content

Commit 4df136a

Browse files
fix(registryinstance/v1): update registryinstance/v1 SDK (#367)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 25a934e commit 4df136a

4 files changed

Lines changed: 23 additions & 4 deletions

File tree

.openapi/registry-instance.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,13 @@
679679
"Admin"
680680
],
681681
"parameters": [
682+
{
683+
"in": "header",
684+
"name": "Accept",
685+
"schema": {
686+
"type": "string"
687+
}
688+
},
682689
{
683690
"name": "forBrowser",
684691
"description": "Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content.",

packages/registry-instance-sdk/api/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,13 @@ paths:
988988
description: Exports registry data as a ZIP archive.
989989
operationId: exportData
990990
parameters:
991+
- explode: false
992+
in: header
993+
name: Accept
994+
required: false
995+
schema:
996+
type: string
997+
style: simple
991998
- description: Indicates if the operation is done for a browser. If true, the
992999
response will be a JSON payload with a property called `href`. This `href`
9931000
will be a single-use, naked download link suitable for use by a web browser

packages/registry-instance-sdk/docs/AdminApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ No authorization required
157157

158158
## exportData
159159

160-
> File exportData(forBrowser)
160+
> File exportData(accept, forBrowser)
161161
162162
Export registry data
163163

@@ -179,9 +179,10 @@ public class Example {
179179
defaultClient.setBasePath("http://localhost");
180180

181181
AdminApi apiInstance = new AdminApi(defaultClient);
182+
String accept = "accept_example"; // String |
182183
Boolean forBrowser = true; // Boolean | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content.
183184
try {
184-
File result = apiInstance.exportData(forBrowser);
185+
File result = apiInstance.exportData(accept, forBrowser);
185186
System.out.println(result);
186187
} catch (ApiException e) {
187188
System.err.println("Exception when calling AdminApi#exportData");
@@ -199,6 +200,7 @@ public class Example {
199200

200201
Name | Type | Description | Notes
201202
------------- | ------------- | ------------- | -------------
203+
**accept** | **String**| | [optional]
202204
**forBrowser** | **Boolean**| Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called &#x60;href&#x60;. This &#x60;href&#x60; will be a single-use, naked download link suitable for use by a web browser to download the content. | [optional]
203205

204206
### Return type

packages/registry-instance-sdk/src/main/java/com/openshift/cloud/api/registry/instance/AdminApi.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,12 @@ public void deleteRoleMapping(String principalId) throws ApiException {
129129
/**
130130
* Export registry data
131131
* Exports registry data as a ZIP archive.
132+
* @param accept (optional)
132133
* @param forBrowser Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called &#x60;href&#x60;. This &#x60;href&#x60; will be a single-use, naked download link suitable for use by a web browser to download the content. (optional)
133134
* @return a {@code File}
134135
* @throws ApiException if fails to make API call
135136
*/
136-
public File exportData(Boolean forBrowser) throws ApiException {
137+
public File exportData(String accept, Boolean forBrowser) throws ApiException {
137138
Object localVarPostBody = null;
138139

139140
// create path and map variables
@@ -147,7 +148,9 @@ public File exportData(Boolean forBrowser) throws ApiException {
147148

148149
localVarQueryParams.addAll(apiClient.parameterToPairs("", "forBrowser", forBrowser));
149150

150-
151+
if (accept != null)
152+
localVarHeaderParams.put("Accept", apiClient.parameterToString(accept));
153+
151154

152155

153156
final String[] localVarAccepts = {

0 commit comments

Comments
 (0)