Skip to content

Commit 5cef8e8

Browse files
committed
feat: registry management SDK's updates
1 parent d547d71 commit 5cef8e8

39 files changed

Lines changed: 2395 additions & 597 deletions

packages/registry-management-sdk/README.md

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# registry-management-sdk
22

3-
Service Registry Service - Fleet Manager - v0
3+
Service Registry Fleet Manager
44

55
- API version: 0.0.1
66

7-
- Build date: 2021-06-15T20:20:22.661697619-04:00[America/New_York]
8-
9-
Main entry point for the system, responsible for all sorts of management operations for the whole service of managed service registry.
7+
Managed Service Registry cloud.redhat.com API Management API that lets you create new registry instances. Registry is a datastore for standard event schemas and API designs. Service Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Registry is an Managed version of upstream project called Apicurio Registry. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility.
108

9+
For more information, please visit [https://cloud.redhat.com/beta/application-services/streams/](https://cloud.redhat.com/beta/application-services/streams/)
1110

1211
*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*
1312

@@ -77,19 +76,25 @@ Please follow the [installation](#installation) instruction and execute the foll
7776
import com.openshift.cloud.api.srs.invoker.*;
7877
import com.openshift.cloud.api.srs.invoker.auth.*;
7978
import com.openshift.cloud.api.srs.models.*;
80-
import com.openshift.cloud.api.srs.InfoApi;
79+
import com.openshift.cloud.api.srs.RegistriesApi;
8180

82-
public class InfoApiExample {
81+
public class RegistriesApiExample {
8382

8483
public static void main(String[] args) {
8584
ApiClient defaultClient = Configuration.getDefaultApiClient();
86-
defaultClient.setBasePath("http://localhost");
85+
defaultClient.setBasePath("https://api.openshift.com");
8786

88-
InfoApi apiInstance = new InfoApi(defaultClient);
87+
// Configure HTTP bearer authorization: Bearer
88+
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
89+
Bearer.setBearerToken("BEARER TOKEN");
90+
91+
RegistriesApi apiInstance = new RegistriesApi(defaultClient);
92+
RegistryCreate registryCreate = new RegistryCreate(); // RegistryCreate | A new `Registry` to be created.
8993
try {
90-
apiInstance.getSchema();
94+
Registry result = apiInstance.createRegistry(registryCreate);
95+
System.out.println(result);
9196
} catch (ApiException e) {
92-
System.err.println("Exception when calling InfoApi#getSchema");
97+
System.err.println("Exception when calling RegistriesApi#createRegistry");
9398
System.err.println("Status code: " + e.getCode());
9499
System.err.println("Reason: " + e.getResponseBody());
95100
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -102,36 +107,45 @@ public class InfoApiExample {
102107

103108
## Documentation for API Endpoints
104109

105-
All URIs are relative to *http://localhost*
110+
All URIs are relative to *https://api.openshift.com*
106111

107112
Class | Method | HTTP request | Description
108113
------------ | ------------- | ------------- | -------------
109-
*InfoApi* | [**getSchema**](docs/InfoApi.md#getSchema) | **GET** /api/serviceregistry_mgmt/v1 | Get the OpenAPI schema for version 1 of this REST API.
110-
*RegistriesApi* | [**createRegistry**](docs/RegistriesApi.md#createRegistry) | **POST** /api/serviceregistry_mgmt/v1/registries | Create a Registry.
111-
*RegistriesApi* | [**deleteRegistry**](docs/RegistriesApi.md#deleteRegistry) | **DELETE** /api/serviceregistry_mgmt/v1/registries/{registryId} | Delete a Registry
114+
*RegistriesApi* | [**createRegistry**](docs/RegistriesApi.md#createRegistry) | **POST** /api/serviceregistry_mgmt/v1/registries | Create a new Registry instance
115+
*RegistriesApi* | [**deleteRegistry**](docs/RegistriesApi.md#deleteRegistry) | **DELETE** /api/serviceregistry_mgmt/v1/{id} | Delete a Registry
112116
*RegistriesApi* | [**getRegistries**](docs/RegistriesApi.md#getRegistries) | **GET** /api/serviceregistry_mgmt/v1/registries | Get the list of all registries.
113-
*RegistriesApi* | [**getRegistry**](docs/RegistriesApi.md#getRegistry) | **GET** /api/serviceregistry_mgmt/v1/registries/{registryId} | Get a Registry
117+
*RegistriesApi* | [**getRegistry**](docs/RegistriesApi.md#getRegistry) | **GET** /api/serviceregistry_mgmt/v1/{id} | Get a Registry
114118

115119

116120
## Documentation for Models
117121

118-
- [ErrorInfo1](docs/ErrorInfo1.md)
122+
- [Error](docs/Error.md)
123+
- [ErrorAllOf](docs/ErrorAllOf.md)
124+
- [ErrorList](docs/ErrorList.md)
125+
- [ErrorListAllOf](docs/ErrorListAllOf.md)
126+
- [ObjectReference](docs/ObjectReference.md)
119127
- [Registry](docs/Registry.md)
120128
- [RegistryCreate](docs/RegistryCreate.md)
121-
- [RegistryStatus](docs/RegistryStatus.md)
129+
- [RegistryRestList](docs/RegistryRestList.md)
130+
- [RegistryRestListAllOf](docs/RegistryRestListAllOf.md)
122131
- [RegistryStatusValue](docs/RegistryStatusValue.md)
132+
- [RootTypeForRegistry](docs/RootTypeForRegistry.md)
123133

124134

125135
## Documentation for Authorization
126136

127-
All endpoints do not require authorization.
128137
Authentication schemes defined for the API:
138+
### Bearer
139+
140+
141+
- **Type**: HTTP basic authentication
142+
129143

130144
## Recommendation
131145

132146
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
133147

134148
## Author
135149

136-
150+
rhosak-eval-support@redhat.com
137151

0 commit comments

Comments
 (0)