diff --git a/registrymgmt/apiv1/client/.openapi-generator/FILES b/registrymgmt/apiv1/client/.openapi-generator/FILES index 1e87fa58..5831b8da 100644 --- a/registrymgmt/apiv1/client/.openapi-generator/FILES +++ b/registrymgmt/apiv1/client/.openapi-generator/FILES @@ -8,7 +8,9 @@ client.go configuration.go docs/AbstractList.md docs/DefaultApi.md +docs/Empty.md docs/Error.md +docs/ErrorAllOf.md docs/ErrorList.md docs/ErrorListAllOf.md docs/ErrorsApi.md @@ -25,7 +27,9 @@ docs/RegistryStatusValue.md docs/RootTypeForRegistry.md docs/ServiceStatus.md model_abstract_list.go +model_empty.go model_error.go +model_error_all_of.go model_error_list.go model_error_list_all_of.go model_list.go diff --git a/registrymgmt/apiv1/client/README.md b/registrymgmt/apiv1/client/README.md index 1abeae19..1419e1bf 100644 --- a/registrymgmt/apiv1/client/README.md +++ b/registrymgmt/apiv1/client/README.md @@ -5,7 +5,7 @@ Service Registry Management API is a REST API for managing Service Registry inst ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 0.0.6 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://console.redhat.com/application-services/service-registry/](https://console.redhat.com/application-services/service-registry/) @@ -91,7 +91,9 @@ Class | Method | HTTP request | Description ## Documentation For Models - [AbstractList](docs/AbstractList.md) + - [Empty](docs/Empty.md) - [Error](docs/Error.md) + - [ErrorAllOf](docs/ErrorAllOf.md) - [ErrorList](docs/ErrorList.md) - [ErrorListAllOf](docs/ErrorListAllOf.md) - [List](docs/List.md) diff --git a/registrymgmt/apiv1/client/api/openapi.yaml b/registrymgmt/apiv1/client/api/openapi.yaml index 6667b27b..f9792273 100644 --- a/registrymgmt/apiv1/client/api/openapi.yaml +++ b/registrymgmt/apiv1/client/api/openapi.yaml @@ -11,14 +11,14 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 title: Service Registry Management API - version: 0.0.6 + version: 1.0.0 servers: - description: Main (production) server url: https://api.openshift.com - description: Staging server url: https://api.stage.openshift.com - description: localhost - url: http://localhost:8000 + url: http://localhost:8081 - description: current domain url: / tags: @@ -86,7 +86,7 @@ paths: \ to see are returned.\n\nNote: If the query is invalid, an error is returned.\n" examples: search: - value: name = my-registry and status = AVAILABLE + value: name = example-registry and status = ready explode: true in: query name: search @@ -101,15 +101,24 @@ paths: schema: $ref: '#/components/schemas/RegistryList' description: A successful response. - "401": + "400": content: application/json: + examples: + "400Example": + $ref: '#/components/examples/400Example' + schema: + $ref: '#/components/schemas/Error' + description: Invalid request content or parameters. + "401": + content: + '*/*': examples: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid. + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. "403": content: application/json: @@ -118,7 +127,7 @@ paths: $ref: '#/components/examples/403Example' schema: $ref: '#/components/schemas/Error' - description: User is not authorized to access the service. + description: User is not authorized to perform the operation. "500": content: application/json: @@ -152,15 +161,24 @@ paths: instance is processed asynchronously. The user should verify the result of the operation by reading the `status` property of the created `Registry` instance. - "401": + "400": content: application/json: + examples: + "400Example": + $ref: '#/components/examples/400Example' + schema: + $ref: '#/components/schemas/Error' + description: Invalid request content or parameters. + "401": + content: + '*/*': examples: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid. + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. "403": content: application/json: @@ -169,7 +187,26 @@ paths: $ref: '#/components/examples/403Example' schema: $ref: '#/components/schemas/Error' - description: User is not authorized to access the service. + description: User is not authorized to perform the operation. + "409": + content: + application/json: + examples: + "409Example": + $ref: '#/components/examples/409Example' + schema: + $ref: '#/components/schemas/Error' + description: Registry with the given name already exists, limit on the number + of instances has been reached, or other precondition has not been met. + "415": + content: + application/json: + examples: + "415Example": + $ref: '#/components/examples/415Example' + schema: + $ref: '#/components/schemas/Error' + description: Unsupported media type. The server expects a JSON request. "500": content: application/json: @@ -179,6 +216,16 @@ paths: schema: $ref: '#/components/schemas/Error' description: Unexpected error occurred. + "503": + content: + application/json: + examples: + "503Example": + $ref: '#/components/examples/503Example' + schema: + $ref: '#/components/schemas/Error' + description: Service has temporary issues while processing your request, + please try again. security: - Bearer: [] tags: @@ -191,7 +238,7 @@ paths: or `rhoas` CLI.' operationId: deleteRegistry parameters: - - description: A unique identifier for a `Registry` instance. + - description: The id of the object you wish to interact with. explode: false in: path name: id @@ -204,13 +251,13 @@ paths: description: Successful response. "401": content: - application/json: + '*/*': examples: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. "403": content: application/json: @@ -219,7 +266,7 @@ paths: $ref: '#/components/examples/403Example' schema: $ref: '#/components/schemas/Error' - description: User is not authorized to access the service. + description: User is not authorized to perform the operation. "404": content: application/json: @@ -229,6 +276,15 @@ paths: schema: $ref: '#/components/schemas/Error' description: No Service Registry instance with the specified id exists + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred. security: - Bearer: [] summary: Delete a Registry instance @@ -239,7 +295,7 @@ paths: description: Gets the details of a single instance of a `Registry`. operationId: getRegistry parameters: - - description: A unique identifier for a `Registry` instance. + - description: The id of the object you wish to interact with. explode: false in: path name: id @@ -256,13 +312,13 @@ paths: description: Successful response - returns a single `Registry` instance. "401": content: - application/json: + '*/*': examples: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' - description: Auth token is invalid. + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. "403": content: application/json: @@ -271,7 +327,7 @@ paths: $ref: '#/components/examples/403Example' schema: $ref: '#/components/schemas/Error' - description: User is not authorized to access the service. + description: User is not authorized to perform the operation. "404": content: application/json: @@ -281,26 +337,34 @@ paths: schema: $ref: '#/components/schemas/Error' description: No Service Registry instance with specified id exists. + "500": + content: + application/json: + examples: + "500Example": + $ref: '#/components/examples/500Example' + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error occurred. security: - Bearer: [] summary: Get a Registry instance tags: - Registries /api/serviceregistry_mgmt/v1/errors/{id}: - description: Get information about a specific error type. This is not an instance - of a specific error. + description: Get information about a type of error. This is not an instance of + a specific error. get: description: Get information about a specific error type operationId: getError parameters: - - description: A unique identifier for an error type. + - description: The id of the object you wish to interact with. explode: false in: path name: id required: true schema: - minimum: 1 - type: integer + type: string style: simple responses: "200": @@ -309,6 +373,24 @@ paths: schema: $ref: '#/components/schemas/Error' description: Successful response - returns a single `Error`. + "401": + content: + '*/*': + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to perform the operation. "404": content: application/json: @@ -368,6 +450,33 @@ paths: schema: $ref: '#/components/schemas/ErrorList' description: A successful response. + "400": + content: + application/json: + examples: + "400Example": + $ref: '#/components/examples/400Example' + schema: + $ref: '#/components/schemas/Error' + description: Invalid request content or parameters. + "401": + content: + '*/*': + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to perform the operation. "500": content: application/json: @@ -376,7 +485,7 @@ paths: $ref: '#/components/examples/500Example' schema: $ref: '#/components/schemas/Error' - description: Unexpected error occurred + description: Unexpected error occurred. tags: - Errors /api/serviceregistry_mgmt/v1/status: @@ -392,6 +501,24 @@ paths: schema: $ref: '#/components/schemas/ServiceStatus' description: Successfully returned service status. + "401": + content: + '*/*': + examples: + "401Example": + $ref: '#/components/examples/401Example' + schema: + $ref: '#/components/schemas/Empty' + description: Authentication was not successful. Make sure the token is valid. + "403": + content: + application/json: + examples: + "403Example": + $ref: '#/components/examples/403Example' + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to perform the operation. "500": content: application/json: @@ -402,40 +529,69 @@ paths: - Bearer: [] components: examples: - "404Example": + "400Example": value: - id: "404" + id: "4" kind: Error - href: /api/managed-services-api/v1/errors/7 - code: MGD-SERV-API-7 - reason: The requested resource doesn't exist. + href: /api/serviceregistry_mgmt/v1/errors/4 + code: SRS-MGMT-4 + reason: Invalid request content or parameters. Make sure the request conforms + to the given JSON schema + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 "401Example": + value: "" + "403Example": value: - id: "11" + id: "15" kind: Error - href: /api/serviceregistry_mgmt/v1/errors/11 - code: CLOUD-SERV-API-11 - reason: 'Unable to verify JWT token: Required authorization token not found.' - operation_id: 1iY3UhEhwmXBpWPfI2lNekpd4ZD - "403Example": + href: /api/serviceregistry_mgmt/v1/errors/15 + code: SRS-MGMT-15 + reason: User is not authorized to perform the operation + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 + "404Example": value: - id: "4" + id: "2" kind: Error - href: /api/serviceregistry_mgmt/v1/errors/4 - code: MGD-SERV-API-4 - reason: User 'foo-bar' is not authorized to access the service. - operation_id: 1lY3UiEhznXBpWPfI2lNejpd4YC - "500Example": + href: /api/serviceregistry_mgmt/v1/errors/2 + code: SRS-MGMT-2 + reason: Registry with id='foo' not found + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 + "409Example": value: id: "9" kind: Error href: /api/serviceregistry_mgmt/v1/errors/9 - code: MGD-SERV-API-9 - reason: Unspecified error. - operation_id: 1ieELvF9jMQY6YghfM9gGRsHvEW + code: SRS-MGMT-9 + reason: Data conflict. Make sure a Registry with the given name does not already + exist + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 + "415Example": + value: + id: "10" + kind: Error + href: /api/serviceregistry_mgmt/v1/errors/10 + code: SRS-MGMT-10 + reason: Bad request format - unsupported media type + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 + "500Example": + value: + id: "1" + kind: Error + href: /api/serviceregistry_mgmt/v1/errors/1 + code: SRS-MGMT-1 + reason: Unspecified error + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 + "503Example": + value: + id: "1" + kind: Error + href: /api/serviceregistry_mgmt/v1/errors/1 + code: SRS-MGMT-1 + reason: Unspecified error + operation_id: af2e70cb-a688-4e5c-8c4b-76662a663c29 parameters: id: - description: The id of record. + description: The id of the object you wish to interact with. explode: false in: path name: id @@ -501,7 +657,7 @@ components: \ to see are returned.\n\nNote: If the query is invalid, an error is returned.\n" examples: search: - value: name = my-registry and status = AVAILABLE + value: name = example-registry and status = ready explode: true in: query name: search @@ -535,37 +691,29 @@ components: - $ref: '#/components/schemas/AbstractList' - $ref: '#/components/schemas/List_allOf' Error: - example: - reason: reason - code: code - kind: kind - operation_id: operation_id - id: id - href: href - properties: - reason: - type: string - operation_id: - type: string - id: - type: string - kind: - type: string - href: - type: string - code: - type: string - required: - - code - - href - - id - - kind - - reason - type: object + allOf: + - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/Error_allOf' RegistryList: allOf: - $ref: '#/components/schemas/AbstractList' - $ref: '#/components/schemas/RegistryList_allOf' + example: + kind: RegistryList + page: "1" + size: "1" + total: "1" + items: + - id: 5d8e5e39-6399-4273-9db5-7c0766aeb422 + kind: ServiceRegistry + href: /api/serviceregistry_mgmt/v1/registries/5d8e5e39-6399-4273-9db5-7c0766aeb422 + name: example-registry + status: ready + owner: example-user + browserUrl: http://localhost:8081/t/5d8e5e39-6399-4273-9db5-7c0766aeb422 + created_at: 2020-01-01T00:00:00Z + updated_at: 2022-01-01T00:00:00Z + instance_type: standard RegistryStatusValue: description: | "accepted": Registry status when accepted for processing. @@ -591,6 +739,8 @@ components: type: string RegistryInstanceTypeValue: description: | + Type of the Registry instance. This will determine functional and/or non-functional features provided by the instance. + "standard": Standard, full-featured Registry instance "eval": Evaluation (Trial) instance, provided for a limited time @@ -614,7 +764,7 @@ components: description: Information used to create a new Service Registry instance in a multi-tenant deployment. example: - name: my-registry + name: example-registry description: This Registry instance is for a development environment only. properties: name: @@ -650,6 +800,23 @@ components: allOf: - $ref: '#/components/schemas/ObjectReference' - $ref: '#/components/schemas/Root_type_for_Registry' + example: + id: 5d8e5e39-6399-4273-9db5-7c0766aeb422 + kind: ServiceRegistry + href: /api/serviceregistry_mgmt/v1/registries/5d8e5e39-6399-4273-9db5-7c0766aeb422 + name: example-registry + status: ready + owner: example-user + browserUrl: http://localhost:8081/t/5d8e5e39-6399-4273-9db5-7c0766aeb422 + created_at: 2020-01-01T00:00:00Z + updated_at: 2022-01-01T00:00:00Z + instance_type: standard + Empty: + description: Represents an empty response + enum: + - "" + title: Empty Response + type: string ErrorList_allOf: properties: items: @@ -668,24 +835,19 @@ components: required: - items type: object + Error_allOf: + properties: + reason: + type: string + operation_id: + type: string + code: + type: string + required: + - code + - reason + type: object RegistryList_allOf: - example: - kind: RegistryList - page: "1" - size: "1" - total: "1" - items: - - id: llmNteR4P7waRp5nJIReG - kind: serviceregistry - href: /api/serviceregistry_mgmt/v1/registries/llmNteR4P7waRp5nJIReG - name: sample-registry - status: ready - owner: some_id - registryUrl: https://somehost:433/t/12345 - browserUrl: https://someuihost:443/registries/12345 - created_at: 2020-01-01T00:00:00Z - updated_at: 2022-01-01T00:00:00Z - instance_type: standard properties: items: items: @@ -696,20 +858,7 @@ components: type: object Root_type_for_Registry: description: Service Registry instance in a multi-tenant deployment. - example: - id: "42" - name: my-registry - registryUrl: https://registry.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706 - browserUrl: https://registry-ui.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706 - status: provisioning - registryDeploymentId: 1 - owner: ownername - updated_at: 2022-01-01T00:00:00Z - created_at: 2020-01-01T00:00:00Z - instance_type: standard properties: - id: - type: string status: $ref: '#/components/schemas/RegistryStatusValue' registryUrl: @@ -741,7 +890,6 @@ components: $ref: '#/components/schemas/RegistryInstanceTypeValue' required: - created_at - - id - instance_type - name - owner diff --git a/registrymgmt/apiv1/client/api_default.go b/registrymgmt/apiv1/client/api_default.go index e7d72428..78eb12e2 100644 --- a/registrymgmt/apiv1/client/api_default.go +++ b/registrymgmt/apiv1/client/api_default.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -102,7 +102,7 @@ func (a *DefaultApiService) GetServiceStatusExecute(r ApiGetServiceStatusRequest } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "*/*"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -131,6 +131,26 @@ func (a *DefaultApiService) GetServiceStatusExecute(r ApiGetServiceStatusRequest body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 401 { + var v Empty + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/registrymgmt/apiv1/client/api_errors.go b/registrymgmt/apiv1/client/api_errors.go index 37dda4c3..fba74895 100644 --- a/registrymgmt/apiv1/client/api_errors.go +++ b/registrymgmt/apiv1/client/api_errors.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -31,10 +31,10 @@ type ErrorsApi interface { * GetError Method for GetError * Get information about a specific error type * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id A unique identifier for an error type. + * @param id The id of the object you wish to interact with. * @return ApiGetErrorRequest */ - GetError(ctx _context.Context, id int32) ApiGetErrorRequest + GetError(ctx _context.Context, id string) ApiGetErrorRequest /* * GetErrorExecute executes the request @@ -63,7 +63,7 @@ type ErrorsApiService service type ApiGetErrorRequest struct { ctx _context.Context ApiService ErrorsApi - id int32 + id string } @@ -75,10 +75,10 @@ func (r ApiGetErrorRequest) Execute() (Error, *_nethttp.Response, error) { * GetError Method for GetError * Get information about a specific error type * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id A unique identifier for an error type. + * @param id The id of the object you wish to interact with. * @return ApiGetErrorRequest */ -func (a *ErrorsApiService) GetError(ctx _context.Context, id int32) ApiGetErrorRequest { +func (a *ErrorsApiService) GetError(ctx _context.Context, id string) ApiGetErrorRequest { return ApiGetErrorRequest{ ApiService: a, ctx: ctx, @@ -111,9 +111,6 @@ func (a *ErrorsApiService) GetErrorExecute(r ApiGetErrorRequest) (Error, *_netht localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if r.id < 1 { - return localVarReturnValue, nil, reportError("id must be greater than 1") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -125,7 +122,7 @@ func (a *ErrorsApiService) GetErrorExecute(r ApiGetErrorRequest) (Error, *_netht } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "*/*"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -154,6 +151,26 @@ func (a *ErrorsApiService) GetErrorExecute(r ApiGetErrorRequest) (Error, *_netht body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 401 { + var v Empty + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 404 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -262,7 +279,7 @@ func (a *ErrorsApiService) GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, * } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "*/*"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -291,6 +308,36 @@ func (a *ErrorsApiService) GetErrorsExecute(r ApiGetErrorsRequest) (ErrorList, * body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Empty + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/registrymgmt/apiv1/client/api_registries.go b/registrymgmt/apiv1/client/api_registries.go index 881cbfd4..dcb2a7f6 100644 --- a/registrymgmt/apiv1/client/api_registries.go +++ b/registrymgmt/apiv1/client/api_registries.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -45,7 +45,7 @@ type RegistriesApi interface { * DeleteRegistry Delete a Registry instance * Deletes an existing `Registry` instance and all of the data that it stores. Important: Users should export the registry data before deleting the instance, e.g., using the Service Registry web console, core REST API, or `rhoas` CLI. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id A unique identifier for a `Registry` instance. + * @param id The id of the object you wish to interact with. * @return ApiDeleteRegistryRequest */ DeleteRegistry(ctx _context.Context, id string) ApiDeleteRegistryRequest @@ -73,7 +73,7 @@ type RegistriesApi interface { * GetRegistry Get a Registry instance * Gets the details of a single instance of a `Registry`. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id A unique identifier for a `Registry` instance. + * @param id The id of the object you wish to interact with. * @return ApiGetRegistryRequest */ GetRegistry(ctx _context.Context, id string) ApiGetRegistryRequest @@ -154,7 +154,7 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "*/*"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -185,7 +185,7 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 401 { + if localVarHTTPResponse.StatusCode == 400 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { @@ -195,6 +195,16 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Empty + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 403 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -205,6 +215,26 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 415 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -213,6 +243,16 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) return localVarReturnValue, localVarHTTPResponse, newErr } newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 503 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -244,7 +284,7 @@ func (r ApiDeleteRegistryRequest) Execute() (*_nethttp.Response, error) { * DeleteRegistry Delete a Registry instance * Deletes an existing `Registry` instance and all of the data that it stores. Important: Users should export the registry data before deleting the instance, e.g., using the Service Registry web console, core REST API, or `rhoas` CLI. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id A unique identifier for a `Registry` instance. + * @param id The id of the object you wish to interact with. * @return ApiDeleteRegistryRequest */ func (a *RegistriesApiService) DeleteRegistry(ctx _context.Context, id string) ApiDeleteRegistryRequest { @@ -289,7 +329,7 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"*/*", "application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -319,7 +359,7 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 401 { - var v Error + var v Empty err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -346,6 +386,16 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) return localVarHTTPResponse, newErr } newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.model = v } return localVarHTTPResponse, newErr } @@ -443,7 +493,7 @@ func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) ( } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "*/*"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -472,7 +522,7 @@ func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) ( body: localVarBody, error: localVarHTTPResponse.Status, } - if localVarHTTPResponse.StatusCode == 401 { + if localVarHTTPResponse.StatusCode == 400 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { @@ -482,6 +532,16 @@ func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) ( newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Empty + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 403 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -531,7 +591,7 @@ func (r ApiGetRegistryRequest) Execute() (Registry, *_nethttp.Response, error) { * GetRegistry Get a Registry instance * Gets the details of a single instance of a `Registry`. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id A unique identifier for a `Registry` instance. + * @param id The id of the object you wish to interact with. * @return ApiGetRegistryRequest */ func (a *RegistriesApiService) GetRegistry(ctx _context.Context, id string) ApiGetRegistryRequest { @@ -578,7 +638,7 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "*/*"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -608,7 +668,7 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 401 { - var v Error + var v Empty err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -635,6 +695,16 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi return localVarReturnValue, localVarHTTPResponse, newErr } newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/registrymgmt/apiv1/client/client.go b/registrymgmt/apiv1/client/client.go index 0dd83f30..95accc84 100644 --- a/registrymgmt/apiv1/client/client.go +++ b/registrymgmt/apiv1/client/client.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -42,7 +42,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the Service Registry Management API API v0.0.6 +// APIClient manages communication with the Service Registry Management API API v1.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/registrymgmt/apiv1/client/configuration.go b/registrymgmt/apiv1/client/configuration.go index f975c184..a84ca95f 100644 --- a/registrymgmt/apiv1/client/configuration.go +++ b/registrymgmt/apiv1/client/configuration.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -114,7 +114,7 @@ func NewConfiguration() *Configuration { Description: "Staging server", }, { - URL: "http://localhost:8000", + URL: "http://localhost:8081", Description: "localhost", }, { diff --git a/registrymgmt/apiv1/client/docs/DefaultApi.md b/registrymgmt/apiv1/client/docs/DefaultApi.md index c575fa51..ee64c11c 100644 --- a/registrymgmt/apiv1/client/docs/DefaultApi.md +++ b/registrymgmt/apiv1/client/docs/DefaultApi.md @@ -62,7 +62,7 @@ Other parameters are passed through a pointer to a apiGetServiceStatusRequest st ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) diff --git a/registrymgmt/apiv1/client/docs/Empty.md b/registrymgmt/apiv1/client/docs/Empty.md new file mode 100644 index 00000000..42c51189 --- /dev/null +++ b/registrymgmt/apiv1/client/docs/Empty.md @@ -0,0 +1,11 @@ +# Empty + +## Enum + + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registrymgmt/apiv1/client/docs/Error.md b/registrymgmt/apiv1/client/docs/Error.md index 112031e0..4162e98e 100644 --- a/registrymgmt/apiv1/client/docs/Error.md +++ b/registrymgmt/apiv1/client/docs/Error.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Reason** | **string** | | -**OperationId** | Pointer to **string** | | [optional] **Id** | **string** | | **Kind** | **string** | | **Href** | **string** | | +**Reason** | **string** | | +**OperationId** | Pointer to **string** | | [optional] **Code** | **string** | | ## Methods ### NewError -`func NewError(reason string, id string, kind string, href string, code string, ) *Error` +`func NewError(id string, kind string, href string, reason string, code string, ) *Error` NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, @@ -30,51 +30,6 @@ NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetReason - -`func (o *Error) GetReason() string` - -GetReason returns the Reason field if non-nil, zero value otherwise. - -### GetReasonOk - -`func (o *Error) GetReasonOk() (*string, bool)` - -GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReason - -`func (o *Error) SetReason(v string)` - -SetReason sets Reason field to given value. - - -### GetOperationId - -`func (o *Error) GetOperationId() string` - -GetOperationId returns the OperationId field if non-nil, zero value otherwise. - -### GetOperationIdOk - -`func (o *Error) GetOperationIdOk() (*string, bool)` - -GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOperationId - -`func (o *Error) SetOperationId(v string)` - -SetOperationId sets OperationId field to given value. - -### HasOperationId - -`func (o *Error) HasOperationId() bool` - -HasOperationId returns a boolean if a field has been set. - ### GetId `func (o *Error) GetId() string` @@ -135,6 +90,51 @@ and a boolean to check if the value has been set. SetHref sets Href field to given value. +### GetReason + +`func (o *Error) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Error) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Error) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetOperationId + +`func (o *Error) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *Error) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *Error) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *Error) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + ### GetCode `func (o *Error) GetCode() string` diff --git a/registrymgmt/apiv1/client/docs/ErrorAllOf.md b/registrymgmt/apiv1/client/docs/ErrorAllOf.md new file mode 100644 index 00000000..7eaef25e --- /dev/null +++ b/registrymgmt/apiv1/client/docs/ErrorAllOf.md @@ -0,0 +1,98 @@ +# ErrorAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reason** | **string** | | +**OperationId** | Pointer to **string** | | [optional] +**Code** | **string** | | + +## Methods + +### NewErrorAllOf + +`func NewErrorAllOf(reason string, code string, ) *ErrorAllOf` + +NewErrorAllOf instantiates a new ErrorAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewErrorAllOfWithDefaults + +`func NewErrorAllOfWithDefaults() *ErrorAllOf` + +NewErrorAllOfWithDefaults instantiates a new ErrorAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReason + +`func (o *ErrorAllOf) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ErrorAllOf) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ErrorAllOf) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetOperationId + +`func (o *ErrorAllOf) GetOperationId() string` + +GetOperationId returns the OperationId field if non-nil, zero value otherwise. + +### GetOperationIdOk + +`func (o *ErrorAllOf) GetOperationIdOk() (*string, bool)` + +GetOperationIdOk returns a tuple with the OperationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationId + +`func (o *ErrorAllOf) SetOperationId(v string)` + +SetOperationId sets OperationId field to given value. + +### HasOperationId + +`func (o *ErrorAllOf) HasOperationId() bool` + +HasOperationId returns a boolean if a field has been set. + +### GetCode + +`func (o *ErrorAllOf) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *ErrorAllOf) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *ErrorAllOf) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/registrymgmt/apiv1/client/docs/ErrorsApi.md b/registrymgmt/apiv1/client/docs/ErrorsApi.md index 7280e050..97f3cc46 100644 --- a/registrymgmt/apiv1/client/docs/ErrorsApi.md +++ b/registrymgmt/apiv1/client/docs/ErrorsApi.md @@ -30,7 +30,7 @@ import ( ) func main() { - id := int32(56) // int32 | A unique identifier for an error type. + id := "id_example" // string | The id of the object you wish to interact with. configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) @@ -50,7 +50,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique identifier for an error type. | +**id** | **string** | The id of the object you wish to interact with. | ### Other Parameters @@ -72,7 +72,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) @@ -140,7 +140,7 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) diff --git a/registrymgmt/apiv1/client/docs/RegistriesApi.md b/registrymgmt/apiv1/client/docs/RegistriesApi.md index 94f2de0f..446f1b21 100644 --- a/registrymgmt/apiv1/client/docs/RegistriesApi.md +++ b/registrymgmt/apiv1/client/docs/RegistriesApi.md @@ -70,7 +70,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json -- **Accept**: application/json +- **Accept**: application/json, */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) @@ -98,7 +98,7 @@ import ( ) func main() { - id := "id_example" // string | A unique identifier for a `Registry` instance. + id := "id_example" // string | The id of the object you wish to interact with. configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) @@ -116,7 +116,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | A unique identifier for a `Registry` instance. | +**id** | **string** | The id of the object you wish to interact with. | ### Other Parameters @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: */*, application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) @@ -169,7 +169,7 @@ func main() { page := int32(0) // int32 | Page index. (optional) size := int32(100) // int32 | Number of items in each page. (optional) orderBy := "name asc" // string | Specifies the order by criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of an SQL statement. Each query can be ordered by any of the request fields. For example, to retrieve all Registry instances ordered by their name: ```sql name asc ``` Or to retrieve all Registry instances ordered by their name _and_ created date: ```sql name asc, created_at asc ``` If the parameter isn't provided, or if the value is empty, the results are ordered by name. (optional) - search := "name = my-registry and status = AVAILABLE" // string | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement. Allowed fields in the search are: `name`, `status`. Allowed comparators are `=` or `LIKE`. Allowed joins are `AND` and `OR`, however there is a limit of max 10 joins in the search query. Examples: To retrieve a request with name equal `my-registry`, the value should be: ``` name = my-registry ``` To retrieve a request with its name starting with `my`, the value should be: ``` name like my%25 ``` If the parameter isn't provided, or if the value is empty, all the Registry instances that the user has permission to see are returned. Note: If the query is invalid, an error is returned. (optional) + search := "name = example-registry and status = ready" // string | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement. Allowed fields in the search are: `name`, `status`. Allowed comparators are `=` or `LIKE`. Allowed joins are `AND` and `OR`, however there is a limit of max 10 joins in the search query. Examples: To retrieve a request with name equal `my-registry`, the value should be: ``` name = my-registry ``` To retrieve a request with its name starting with `my`, the value should be: ``` name like my%25 ``` If the parameter isn't provided, or if the value is empty, all the Registry instances that the user has permission to see are returned. Note: If the query is invalid, an error is returned. (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) @@ -238,7 +238,7 @@ import ( ) func main() { - id := "id_example" // string | A unique identifier for a `Registry` instance. + id := "id_example" // string | The id of the object you wish to interact with. configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) @@ -258,7 +258,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | A unique identifier for a `Registry` instance. | +**id** | **string** | The id of the object you wish to interact with. | ### Other Parameters @@ -280,7 +280,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: application/json, */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) diff --git a/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md b/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md index 6f5b1de4..69ab154a 100644 --- a/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md +++ b/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | **Status** | [**RegistryStatusValue**](RegistryStatusValue.md) | | **RegistryUrl** | Pointer to **string** | | [optional] **BrowserUrl** | Pointer to **string** | | [optional] @@ -20,7 +19,7 @@ Name | Type | Description | Notes ### NewRootTypeForRegistry -`func NewRootTypeForRegistry(id string, status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue, ) *RootTypeForRegistry` +`func NewRootTypeForRegistry(status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue, ) *RootTypeForRegistry` NewRootTypeForRegistry instantiates a new RootTypeForRegistry object This constructor will assign default values to properties that have it defined, @@ -35,26 +34,6 @@ NewRootTypeForRegistryWithDefaults instantiates a new RootTypeForRegistry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetId - -`func (o *RootTypeForRegistry) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *RootTypeForRegistry) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *RootTypeForRegistry) SetId(v string)` - -SetId sets Id field to given value. - - ### GetStatus `func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue` diff --git a/registrymgmt/apiv1/client/model_abstract_list.go b/registrymgmt/apiv1/client/model_abstract_list.go index 0b62665c..d67e811a 100644 --- a/registrymgmt/apiv1/client/model_abstract_list.go +++ b/registrymgmt/apiv1/client/model_abstract_list.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_empty.go b/registrymgmt/apiv1/client/model_empty.go new file mode 100644 index 00000000..31cc8bc7 --- /dev/null +++ b/registrymgmt/apiv1/client/model_empty.go @@ -0,0 +1,109 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 1.0.0 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "fmt" +) + +// Empty Represents an empty response +type Empty string + +// List of Empty +const ( + EMPTY_EMPTY Empty = "" +) + +var allowedEmptyEnumValues = []Empty{ + "", +} + +func (v *Empty) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Empty(value) + for _, existing := range allowedEmptyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Empty", value) +} + +// NewEmptyFromValue returns a pointer to a valid Empty +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEmptyFromValue(v string) (*Empty, error) { + ev := Empty(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Empty: valid values are %v", v, allowedEmptyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Empty) IsValid() bool { + for _, existing := range allowedEmptyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Empty value +func (v Empty) Ptr() *Empty { + return &v +} + +type NullableEmpty struct { + value *Empty + isSet bool +} + +func (v NullableEmpty) Get() *Empty { + return v.value +} + +func (v *NullableEmpty) Set(val *Empty) { + v.value = val + v.isSet = true +} + +func (v NullableEmpty) IsSet() bool { + return v.isSet +} + +func (v *NullableEmpty) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEmpty(val *Empty) *NullableEmpty { + return &NullableEmpty{value: val, isSet: true} +} + +func (v NullableEmpty) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEmpty) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/registrymgmt/apiv1/client/model_error.go b/registrymgmt/apiv1/client/model_error.go index c557dfe6..24393cf8 100644 --- a/registrymgmt/apiv1/client/model_error.go +++ b/registrymgmt/apiv1/client/model_error.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -17,11 +17,11 @@ import ( // Error struct for Error type Error struct { - Reason string `json:"reason"` - OperationId *string `json:"operation_id,omitempty"` Id string `json:"id"` Kind string `json:"kind"` Href string `json:"href"` + Reason string `json:"reason"` + OperationId *string `json:"operation_id,omitempty"` Code string `json:"code"` } @@ -29,12 +29,12 @@ type Error struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewError(reason string, id string, kind string, href string, code string) *Error { +func NewError(id string, kind string, href string, reason string, code string) *Error { this := Error{} - this.Reason = reason this.Id = id this.Kind = kind this.Href = href + this.Reason = reason this.Code = code return &this } @@ -47,62 +47,6 @@ func NewErrorWithDefaults() *Error { return &this } -// GetReason returns the Reason field value -func (o *Error) GetReason() string { - if o == nil { - var ret string - return ret - } - - return o.Reason -} - -// GetReasonOk returns a tuple with the Reason field value -// and a boolean to check if the value has been set. -func (o *Error) GetReasonOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Reason, true -} - -// SetReason sets field value -func (o *Error) SetReason(v string) { - o.Reason = v -} - -// GetOperationId returns the OperationId field value if set, zero value otherwise. -func (o *Error) GetOperationId() string { - if o == nil || o.OperationId == nil { - var ret string - return ret - } - return *o.OperationId -} - -// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Error) GetOperationIdOk() (*string, bool) { - if o == nil || o.OperationId == nil { - return nil, false - } - return o.OperationId, true -} - -// HasOperationId returns a boolean if a field has been set. -func (o *Error) HasOperationId() bool { - if o != nil && o.OperationId != nil { - return true - } - - return false -} - -// SetOperationId gets a reference to the given string and assigns it to the OperationId field. -func (o *Error) SetOperationId(v string) { - o.OperationId = &v -} - // GetId returns the Id field value func (o *Error) GetId() string { if o == nil { @@ -175,6 +119,62 @@ func (o *Error) SetHref(v string) { o.Href = v } +// GetReason returns the Reason field value +func (o *Error) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *Error) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *Error) SetReason(v string) { + o.Reason = v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *Error) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *Error) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *Error) SetOperationId(v string) { + o.OperationId = &v +} + // GetCode returns the Code field value func (o *Error) GetCode() string { if o == nil { @@ -201,12 +201,6 @@ func (o *Error) SetCode(v string) { func (o Error) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if true { - toSerialize["reason"] = o.Reason - } - if o.OperationId != nil { - toSerialize["operation_id"] = o.OperationId - } if true { toSerialize["id"] = o.Id } @@ -216,6 +210,12 @@ func (o Error) MarshalJSON() ([]byte, error) { if true { toSerialize["href"] = o.Href } + if true { + toSerialize["reason"] = o.Reason + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } if true { toSerialize["code"] = o.Code } diff --git a/registrymgmt/apiv1/client/model_error_all_of.go b/registrymgmt/apiv1/client/model_error_all_of.go new file mode 100644 index 00000000..a52eb0e9 --- /dev/null +++ b/registrymgmt/apiv1/client/model_error_all_of.go @@ -0,0 +1,174 @@ +/* + * Service Registry Management API + * + * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. + * + * API version: 1.0.0 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" +) + +// ErrorAllOf struct for ErrorAllOf +type ErrorAllOf struct { + Reason string `json:"reason"` + OperationId *string `json:"operation_id,omitempty"` + Code string `json:"code"` +} + +// NewErrorAllOf instantiates a new ErrorAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorAllOf(reason string, code string) *ErrorAllOf { + this := ErrorAllOf{} + this.Reason = reason + this.Code = code + return &this +} + +// NewErrorAllOfWithDefaults instantiates a new ErrorAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorAllOfWithDefaults() *ErrorAllOf { + this := ErrorAllOf{} + return &this +} + +// GetReason returns the Reason field value +func (o *ErrorAllOf) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *ErrorAllOf) SetReason(v string) { + o.Reason = v +} + +// GetOperationId returns the OperationId field value if set, zero value otherwise. +func (o *ErrorAllOf) GetOperationId() string { + if o == nil || o.OperationId == nil { + var ret string + return ret + } + return *o.OperationId +} + +// GetOperationIdOk returns a tuple with the OperationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetOperationIdOk() (*string, bool) { + if o == nil || o.OperationId == nil { + return nil, false + } + return o.OperationId, true +} + +// HasOperationId returns a boolean if a field has been set. +func (o *ErrorAllOf) HasOperationId() bool { + if o != nil && o.OperationId != nil { + return true + } + + return false +} + +// SetOperationId gets a reference to the given string and assigns it to the OperationId field. +func (o *ErrorAllOf) SetOperationId(v string) { + o.OperationId = &v +} + +// GetCode returns the Code field value +func (o *ErrorAllOf) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *ErrorAllOf) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *ErrorAllOf) SetCode(v string) { + o.Code = v +} + +func (o ErrorAllOf) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["reason"] = o.Reason + } + if o.OperationId != nil { + toSerialize["operation_id"] = o.OperationId + } + if true { + toSerialize["code"] = o.Code + } + return json.Marshal(toSerialize) +} + +type NullableErrorAllOf struct { + value *ErrorAllOf + isSet bool +} + +func (v NullableErrorAllOf) Get() *ErrorAllOf { + return v.value +} + +func (v *NullableErrorAllOf) Set(val *ErrorAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableErrorAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorAllOf(val *ErrorAllOf) *NullableErrorAllOf { + return &NullableErrorAllOf{value: val, isSet: true} +} + +func (v NullableErrorAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/registrymgmt/apiv1/client/model_error_list.go b/registrymgmt/apiv1/client/model_error_list.go index 6787ed4f..8b3f8fae 100644 --- a/registrymgmt/apiv1/client/model_error_list.go +++ b/registrymgmt/apiv1/client/model_error_list.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_error_list_all_of.go b/registrymgmt/apiv1/client/model_error_list_all_of.go index c3243cdb..15660133 100644 --- a/registrymgmt/apiv1/client/model_error_list_all_of.go +++ b/registrymgmt/apiv1/client/model_error_list_all_of.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_list.go b/registrymgmt/apiv1/client/model_list.go index a4aabc8a..482fc190 100644 --- a/registrymgmt/apiv1/client/model_list.go +++ b/registrymgmt/apiv1/client/model_list.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_list_all_of.go b/registrymgmt/apiv1/client/model_list_all_of.go index 3ee86cb9..8c0a6899 100644 --- a/registrymgmt/apiv1/client/model_list_all_of.go +++ b/registrymgmt/apiv1/client/model_list_all_of.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_object_reference.go b/registrymgmt/apiv1/client/model_object_reference.go index 8b20c55d..c487bca7 100644 --- a/registrymgmt/apiv1/client/model_object_reference.go +++ b/registrymgmt/apiv1/client/model_object_reference.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_registry.go b/registrymgmt/apiv1/client/model_registry.go index 698776c9..aa1a84d9 100644 --- a/registrymgmt/apiv1/client/model_registry.go +++ b/registrymgmt/apiv1/client/model_registry.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_registry_create.go b/registrymgmt/apiv1/client/model_registry_create.go index 39b12f6f..6b3e16df 100644 --- a/registrymgmt/apiv1/client/model_registry_create.go +++ b/registrymgmt/apiv1/client/model_registry_create.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_registry_instance_type_value.go b/registrymgmt/apiv1/client/model_registry_instance_type_value.go index b8936255..12ce94dd 100644 --- a/registrymgmt/apiv1/client/model_registry_instance_type_value.go +++ b/registrymgmt/apiv1/client/model_registry_instance_type_value.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -16,7 +16,7 @@ import ( "fmt" ) -// RegistryInstanceTypeValue \"standard\": Standard, full-featured Registry instance \"eval\": Evaluation (Trial) instance, provided for a limited time +// RegistryInstanceTypeValue Type of the Registry instance. This will determine functional and/or non-functional features provided by the instance. \"standard\": Standard, full-featured Registry instance \"eval\": Evaluation (Trial) instance, provided for a limited time type RegistryInstanceTypeValue string // List of RegistryInstanceTypeValue diff --git a/registrymgmt/apiv1/client/model_registry_list.go b/registrymgmt/apiv1/client/model_registry_list.go index da921131..5ff75caa 100644 --- a/registrymgmt/apiv1/client/model_registry_list.go +++ b/registrymgmt/apiv1/client/model_registry_list.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_registry_list_all_of.go b/registrymgmt/apiv1/client/model_registry_list_all_of.go index 71f52a88..b7dd4ae1 100644 --- a/registrymgmt/apiv1/client/model_registry_list_all_of.go +++ b/registrymgmt/apiv1/client/model_registry_list_all_of.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_registry_status_value.go b/registrymgmt/apiv1/client/model_registry_status_value.go index a5394842..c6ec050f 100644 --- a/registrymgmt/apiv1/client/model_registry_status_value.go +++ b/registrymgmt/apiv1/client/model_registry_status_value.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/model_root_type_for_registry.go b/registrymgmt/apiv1/client/model_root_type_for_registry.go index 278e861a..50cfb695 100644 --- a/registrymgmt/apiv1/client/model_root_type_for_registry.go +++ b/registrymgmt/apiv1/client/model_root_type_for_registry.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ @@ -18,7 +18,6 @@ import ( // RootTypeForRegistry Service Registry instance in a multi-tenant deployment. type RootTypeForRegistry struct { - Id string `json:"id"` Status RegistryStatusValue `json:"status"` RegistryUrl *string `json:"registryUrl,omitempty"` BrowserUrl *string `json:"browserUrl,omitempty"` @@ -41,9 +40,8 @@ type RootTypeForRegistry struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewRootTypeForRegistry(id string, status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue) *RootTypeForRegistry { +func NewRootTypeForRegistry(status RegistryStatusValue, name string, owner string, createdAt time.Time, updatedAt time.Time, instanceType RegistryInstanceTypeValue) *RootTypeForRegistry { this := RootTypeForRegistry{} - this.Id = id this.Status = status this.Name = name this.Owner = owner @@ -61,30 +59,6 @@ func NewRootTypeForRegistryWithDefaults() *RootTypeForRegistry { return &this } -// GetId returns the Id field value -func (o *RootTypeForRegistry) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *RootTypeForRegistry) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *RootTypeForRegistry) SetId(v string) { - o.Id = v -} - // GetStatus returns the Status field value func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue { if o == nil { @@ -359,9 +333,6 @@ func (o *RootTypeForRegistry) SetInstanceType(v RegistryInstanceTypeValue) { func (o RootTypeForRegistry) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} - if true { - toSerialize["id"] = o.Id - } if true { toSerialize["status"] = o.Status } diff --git a/registrymgmt/apiv1/client/model_service_status.go b/registrymgmt/apiv1/client/model_service_status.go index c4108c22..d2775fff 100644 --- a/registrymgmt/apiv1/client/model_service_status.go +++ b/registrymgmt/apiv1/client/model_service_status.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/response.go b/registrymgmt/apiv1/client/response.go index bb53c4b0..a54094fe 100644 --- a/registrymgmt/apiv1/client/response.go +++ b/registrymgmt/apiv1/client/response.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */ diff --git a/registrymgmt/apiv1/client/utils.go b/registrymgmt/apiv1/client/utils.go index eaf32c3a..eacc3fed 100644 --- a/registrymgmt/apiv1/client/utils.go +++ b/registrymgmt/apiv1/client/utils.go @@ -3,7 +3,7 @@ * * Service Registry Management API is a REST API for managing Service Registry instances. Service Registry is a datastore for event schemas and API designs, which is based on the open source Apicurio Registry project. * - * API version: 0.0.6 + * API version: 1.0.0 * Contact: rhosak-eval-support@redhat.com */