Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(smartevents-mgmt/v1): automated SDK update #386

Merged
merged 1 commit into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions .openapi/smartevents_mgmt_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,64 +187,6 @@ paths:
$ref: '#/components/schemas/ErrorsList'
security:
- bearer: []
put:
tags:
- Bridges
summary: Update a Bridge instance
description: Update a Bridge instance for the authenticated user.
operationId: BridgesAPI_updateBridge
parameters:
- name: bridgeId
in: path
required: true
schema:
minLength: 1
type: string
nullable: false
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BridgeRequest'
responses:
"202":
description: Accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/BridgeResponse'
"400":
description: Bad request.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
"401":
description: Unauthorized.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
"403":
description: Forbidden.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
"404":
description: Not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
"500":
description: Internal error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
security:
- bearer: []
delete:
tags:
- Bridges
Expand Down
1 change: 0 additions & 1 deletion packages/smartevents-management-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ Class | Method | HTTP request | Description
*BridgesApi* | [**bridgesAPIDeleteBridge**](docs/BridgesApi.md#bridgesAPIDeleteBridge) | **DELETE** /api/smartevents_mgmt/v2/bridges/{bridgeId} | Delete a Bridge instance
*BridgesApi* | [**bridgesAPIGetBridge**](docs/BridgesApi.md#bridgesAPIGetBridge) | **GET** /api/smartevents_mgmt/v2/bridges/{bridgeId} | Get a Bridge instance
*BridgesApi* | [**bridgesAPIGetBridges**](docs/BridgesApi.md#bridgesAPIGetBridges) | **GET** /api/smartevents_mgmt/v2/bridges | Get the list of Bridge instances
*BridgesApi* | [**bridgesAPIUpdateBridge**](docs/BridgesApi.md#bridgesAPIUpdateBridge) | **PUT** /api/smartevents_mgmt/v2/bridges/{bridgeId} | Update a Bridge instance
*CloudProvidersApi* | [**cloudProviderAPIGetCloudProvider**](docs/CloudProvidersApi.md#cloudProviderAPIGetCloudProvider) | **GET** /api/smartevents_mgmt/v2/cloud_providers/{id} | Get Cloud Provider.
*CloudProvidersApi* | [**cloudProviderAPIListCloudProviderRegions**](docs/CloudProvidersApi.md#cloudProviderAPIListCloudProviderRegions) | **GET** /api/smartevents_mgmt/v2/cloud_providers/{id}/regions | List Supported Cloud Regions.
*CloudProvidersApi* | [**cloudProviderAPIListCloudProviders**](docs/CloudProvidersApi.md#cloudProviderAPIListCloudProviders) | **GET** /api/smartevents_mgmt/v2/cloud_providers | List Supported Cloud Providers.
Expand Down
62 changes: 0 additions & 62 deletions packages/smartevents-management-sdk/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,68 +246,6 @@ paths:
tags:
- Bridges
x-accepts: application/json
put:
description: Update a Bridge instance for the authenticated user.
operationId: BridgesAPI_updateBridge
parameters:
- explode: false
in: path
name: bridgeId
required: true
schema:
minLength: 1
nullable: false
type: string
style: simple
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BridgeRequest'
responses:
"202":
content:
application/json:
schema:
$ref: '#/components/schemas/BridgeResponse'
description: Accepted.
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
description: Bad request.
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
description: Unauthorized.
"403":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
description: Forbidden.
"404":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
description: Not found.
"500":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorsList'
description: Internal error.
security:
- bearer: []
summary: Update a Bridge instance
tags:
- Bridges
x-contentType: application/json
x-accepts: application/json
/api/smartevents_mgmt/v2/bridges/{bridgeId}/processors:
get:
description: Get the list of Processors of a Bridge instance for the authenticated
Expand Down
79 changes: 0 additions & 79 deletions packages/smartevents-management-sdk/docs/BridgesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Method | HTTP request | Description
[**bridgesAPIDeleteBridge**](BridgesApi.md#bridgesAPIDeleteBridge) | **DELETE** /api/smartevents_mgmt/v2/bridges/{bridgeId} | Delete a Bridge instance
[**bridgesAPIGetBridge**](BridgesApi.md#bridgesAPIGetBridge) | **GET** /api/smartevents_mgmt/v2/bridges/{bridgeId} | Get a Bridge instance
[**bridgesAPIGetBridges**](BridgesApi.md#bridgesAPIGetBridges) | **GET** /api/smartevents_mgmt/v2/bridges | Get the list of Bridge instances
[**bridgesAPIUpdateBridge**](BridgesApi.md#bridgesAPIUpdateBridge) | **PUT** /api/smartevents_mgmt/v2/bridges/{bridgeId} | Update a Bridge instance



Expand Down Expand Up @@ -320,81 +319,3 @@ Name | Type | Description | Notes
| **404** | Not found. | - |
| **500** | Internal error. | - |


## bridgesAPIUpdateBridge

> BridgeResponse bridgesAPIUpdateBridge(bridgeId, bridgeRequest)

Update a Bridge instance

Update a Bridge instance for the authenticated user.

### Example

```java
// Import classes:
import com.openshift.cloud.api.smartevents.invoker.ApiClient;
import com.openshift.cloud.api.smartevents.invoker.ApiException;
import com.openshift.cloud.api.smartevents.invoker.Configuration;
import com.openshift.cloud.api.smartevents.invoker.auth.*;
import com.openshift.cloud.api.smartevents.invoker.models.*;
import com.openshift.cloud.api.smartevents.BridgesApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.stage.openshift.com");

// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");

BridgesApi apiInstance = new BridgesApi(defaultClient);
String bridgeId = "bridgeId_example"; // String |
BridgeRequest bridgeRequest = new BridgeRequest(); // BridgeRequest |
try {
BridgeResponse result = apiInstance.bridgesAPIUpdateBridge(bridgeId, bridgeRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BridgesApi#bridgesAPIUpdateBridge");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**bridgeId** | **String**| |
**bridgeRequest** | [**BridgeRequest**](BridgeRequest.md)| | [optional]

### Return type

[**BridgeResponse**](BridgeResponse.md)

### Authorization

[bearer](../README.md#bearer)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **202** | Accepted. | - |
| **400** | Bad request. | - |
| **401** | Unauthorized. | - |
| **403** | Forbidden. | - |
| **404** | Not found. | - |
| **500** | Internal error. | - |

Original file line number Diff line number Diff line change
Expand Up @@ -209,49 +209,4 @@ public BridgeListResponse bridgesAPIGetBridges(String name, Integer page, Intege
GenericType<BridgeListResponse> localVarReturnType = new GenericType<BridgeListResponse>() {};
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Update a Bridge instance
* Update a Bridge instance for the authenticated user.
* @param bridgeId (required)
* @param bridgeRequest (optional)
* @return a {@code BridgeResponse}
* @throws ApiException if fails to make API call
*/
public BridgeResponse bridgesAPIUpdateBridge(String bridgeId, BridgeRequest bridgeRequest) throws ApiException {
Object localVarPostBody = bridgeRequest;

// verify the required parameter 'bridgeId' is set
if (bridgeId == null) {
throw new ApiException(400, "Missing the required parameter 'bridgeId' when calling bridgesAPIUpdateBridge");
}

// create path and map variables
String localVarPath = "/api/smartevents_mgmt/v2/bridges/{bridgeId}".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "bridgeId" + "\\}", apiClient.escapeString(bridgeId.toString()));

// query params
List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();





final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

String[] localVarAuthNames = new String[] { "bearer" };

GenericType<BridgeResponse> localVarReturnType = new GenericType<BridgeResponse>() {};
return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}