diff --git a/go.mod b/go.mod index c11a58206..c3c5f7383 100644 --- a/go.mod +++ b/go.mod @@ -41,12 +41,12 @@ require ( require ( github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/accountmgmt/apiv1/client v0.0.0-20230216114230-4ff0373de47f - github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230220160753-3c2c52e7e98a - github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230220160753-3c2c52e7e98a + github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230222114134-d97c4c88765b + github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230222114134-d97c4c88765b github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkamgmt v0.0.0-20230220160753-3c2c52e7e98a - github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230220160753-3c2c52e7e98a - github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230220160753-3c2c52e7e98a - github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230220160753-3c2c52e7e98a + github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230222114134-d97c4c88765b + github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230222114134-d97c4c88765b + github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230222114134-d97c4c88765b ) require ( @@ -96,7 +96,7 @@ require ( github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.26.0 // indirect github.com/prometheus/procfs v0.6.0 // indirect - github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.1.0 // indirect + github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.2.0 // indirect github.com/rivo/uniseg v0.2.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 // indirect diff --git a/go.sum b/go.sum index 09a78d2b5..fbad42e22 100644 --- a/go.sum +++ b/go.sum @@ -691,22 +691,23 @@ github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4O github.com/prometheus/procfs v0.6.0 h1:mxy4L2jP6qMonqmq+aTtOx1ifVWUgG/TAmntgbh3xv4= github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.1.0 h1:bl64y8lVc+rcda483ZvJr+GjuhsQQhkrzUiDfzPjB4Q= github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.1.0/go.mod h1:JPNDOitDoHoHk5ZPRjfOxHQhE4Br0WtiyV8m43E0rso= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.2.0 h1:N2FoVU7tD8S94+xmgYDOfbLJpZz4o6bVoub7D/jFWC4= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.2.0/go.mod h1:JPNDOitDoHoHk5ZPRjfOxHQhE4Br0WtiyV8m43E0rso= github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/accountmgmt/apiv1/client v0.0.0-20230216114230-4ff0373de47f h1:jXUB35TstK4p1JkhMTU0xGRsoNlnwffv4qX9E3LRMck= github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/accountmgmt/apiv1/client v0.0.0-20230216114230-4ff0373de47f/go.mod h1:I2ayTdtOFVLwyASlzvbnKaz23v9c/GiJazXek2k1yUg= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230220160753-3c2c52e7e98a h1:8viwGaF7yMMYX1RJTkH7DUkhuND9b2v0LaPcrIoYWs0= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230220160753-3c2c52e7e98a/go.mod h1:gK7/wdWr89PXSQbJ/KlaBVMdspFkDboi8yQqVuM5Ke0= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230220160753-3c2c52e7e98a h1:k2wz3MgCKzTbOSvhSRD0hXjgfgMzarRZP528kCpcH1E= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230220160753-3c2c52e7e98a/go.mod h1:eJWRq/utm2rgeF/CVTeiMdlUAlEoYE5P3/13KAJyaL8= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230222114134-d97c4c88765b h1:ZbZfNu6+bP2Im8ZIhC3d7yE/SthmuTc5tpvoYBHh8kM= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230222114134-d97c4c88765b/go.mod h1:gK7/wdWr89PXSQbJ/KlaBVMdspFkDboi8yQqVuM5Ke0= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230222114134-d97c4c88765b h1:XL00la+2TXfgI5NibnqlM/2y44FrQv7N/XKqgPYxSqU= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230222114134-d97c4c88765b/go.mod h1:eJWRq/utm2rgeF/CVTeiMdlUAlEoYE5P3/13KAJyaL8= github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkamgmt v0.0.0-20230220160753-3c2c52e7e98a h1:LhFKr0iCPdEUSaIzrl+2Y6CXqV5fkfUktwCDnH2wdeQ= github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkamgmt v0.0.0-20230220160753-3c2c52e7e98a/go.mod h1:AHZLQfBqzwY+uDWfo577AipCpnFPG4GNXTnXyWeFKD4= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230220160753-3c2c52e7e98a h1:VMkueGJm/lHF0SmNUrUYqrwQzquahX3ZkjUdOll2j+4= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230220160753-3c2c52e7e98a/go.mod h1:Pvw6KeJUK9tdvCHkDIoXcWUyjxWc3Nn//Eax2mcbMJ0= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230220160753-3c2c52e7e98a h1:t0a5qZfNfRjw2fKlyzM878cZOGIpfjLHKJ9jw3y61Ak= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230220160753-3c2c52e7e98a/go.mod h1:T20A1WmLYXFpA5QntaAF1B44uj9geAgUbTco0qIX7kY= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230220160753-3c2c52e7e98a h1:tkIWnEabTTum0iB2mPVAJVdPES296Qo5qPxeBZnzwBY= -github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230220160753-3c2c52e7e98a/go.mod h1:9UjE86bWDvSfAwSAqweZPRNEAjAgI0ZvKYMIoz06qd0= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230222114134-d97c4c88765b h1:fz4sahm2HQq5dJV7M8LUldosM2RAXzVthn6pUEBSeFM= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230222114134-d97c4c88765b/go.mod h1:Pvw6KeJUK9tdvCHkDIoXcWUyjxWc3Nn//Eax2mcbMJ0= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230222114134-d97c4c88765b h1:tYahCNjxLYtikqnhIdbGyEP+zZ2bkEtxnpJQhN0Se6s= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230222114134-d97c4c88765b/go.mod h1:T20A1WmLYXFpA5QntaAF1B44uj9geAgUbTco0qIX7kY= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230222114134-d97c4c88765b h1:+4KWvTNPiEaz7f8Nncbkyag9MEO9u22d2ijrojAwP1c= +github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230222114134-d97c4c88765b/go.mod h1:9UjE86bWDvSfAwSAqweZPRNEAjAgI0ZvKYMIoz06qd0= github.com/redhat-developer/service-binding-operator v0.9.0 h1:CS+eEtzu/PtWuyvYQFQpZXd6ukSuFtN+U0EKKtTsvlA= github.com/redhat-developer/service-binding-operator v0.9.0/go.mod h1:D415gZQiz5Q8zyRbmrNrlieb6Xp73oFtCb+nCuTL6GA= github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= diff --git a/pkg/cmd/registry/create/create.go b/pkg/cmd/registry/create/create.go index 987b9897c..1e88014e8 100644 --- a/pkg/cmd/registry/create/create.go +++ b/pkg/cmd/registry/create/create.go @@ -197,6 +197,9 @@ func handleErrors(err error, opts *options) error { if srsmgmtv1errors.IsAPIError(err, srsmgmtv1errors.ERROR_7) { return opts.localizer.MustLocalizeError("registry.cmd.create.error.limitreached") } + if srsmgmtv1errors.IsAPIError(err, srsmgmtv1errors.ERROR_9) { + return opts.localizer.MustLocalizeError("registry.cmd.create.error.name.alreadyExists", localize.NewEntry("Name", opts.name)) + } if srsmgmtv1errors.IsAPIError(err, srsmgmtv1errors.ERROR_13) { return opts.localizer.MustLocalizeError("registry.cmd.create.error.trial.limitreached") } diff --git a/pkg/core/localize/locales/en/cmd/registry_crud.en.toml b/pkg/core/localize/locales/en/cmd/registry_crud.en.toml index 9cf1a42e3..77ad32ed8 100644 --- a/pkg/core/localize/locales/en/cmd/registry_crud.en.toml +++ b/pkg/core/localize/locales/en/cmd/registry_crud.en.toml @@ -146,6 +146,8 @@ one = ''' Instance cannot be created. We have reached global the limit of service registry instances. ''' +[registry.cmd.create.error.name.alreadyExists] +one = 'Instance with name "{{.Name}}" already exists' [registry.cmd.create.flag.use.description] one = 'Set the new Service Registry instance to the current instance' diff --git a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_default.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_default.go index e7d724289..78eb12e20 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_default.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go index 37dda4c38..fba74895f 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_errors.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go index 881cbfd40..dcb2a7f6c 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/api_registries.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/client.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/client.go index 0dd83f305..95accc846 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/client.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/configuration.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/configuration.go index f975c1840..a84ca95f3 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/configuration.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_abstract_list.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_abstract_list.go index 0b62665c9..d67e811aa 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_abstract_list.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_empty.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_empty.go new file mode 100644 index 000000000..31cc8bc79 --- /dev/null +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error.go index c557dfe6a..24393cf8d 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_all_of.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_all_of.go new file mode 100644 index 000000000..a52eb0e95 --- /dev/null +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go index 6787ed4fb..8b3f8faed 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go index c3243cdbb..156601332 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_error_list_all_of.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_list.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_list.go index a4aabc8a4..482fc1906 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_list.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_list_all_of.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_list_all_of.go index 3ee86cb9a..8c0a68995 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_list_all_of.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go index 8b20c55d5..c487bca7b 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_object_reference.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go index 698776c90..aa1a84d96 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go index 39b12f6fd..6b3e16dfd 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_create.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go index b8936255d..12ce94dd5 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_instance_type_value.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go index da921131a..5ff75caa3 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go index 71f52a889..b7dd4ae18 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_list_all_of.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go index a5394842b..c6ec050f8 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_registry_status_value.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go index 278e861a8..50cfb6953 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_root_type_for_registry.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go index c4108c222..d2775fff8 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/model_service_status.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/response.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/response.go index bb53c4b0d..a54094fef 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/response.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/utils.go b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/utils.go index eaf32c3aa..eacc3fed6 100644 --- a/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client/utils.go +++ b/vendor/github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/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 */ diff --git a/vendor/modules.txt b/vendor/modules.txt index d72f79ccc..f18aebdb8 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -221,18 +221,18 @@ github.com/prometheus/common/model github.com/prometheus/procfs github.com/prometheus/procfs/internal/fs github.com/prometheus/procfs/internal/util -# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.1.0 +# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go v0.2.0 ## explicit; go 1.15 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/core # github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/accountmgmt/apiv1/client v0.0.0-20230216114230-4ff0373de47f ## explicit; go 1.13 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/accountmgmt/apiv1/client -# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230220160753-3c2c52e7e98a +# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt v0.0.0-20230222114134-d97c4c88765b ## explicit; go 1.15 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt/apiv1 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt/apiv1/client github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/connectormgmt/apiv1/error -# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230220160753-3c2c52e7e98a +# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance v0.0.0-20230222114134-d97c4c88765b ## explicit; go 1.15 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance/apiv1 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainstance/apiv1/client @@ -241,16 +241,16 @@ github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkainsta github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkamgmt/apiv1 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkamgmt/apiv1/client github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/kafkamgmt/apiv1/error -# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230220160753-3c2c52e7e98a +# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance v0.0.0-20230222114134-d97c4c88765b ## explicit; go 1.15 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance/apiv1internal github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registryinstance/apiv1internal/client -# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230220160753-3c2c52e7e98a +# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt v0.0.0-20230222114134-d97c4c88765b ## explicit; go 1.15 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/client github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/registrymgmt/apiv1/error -# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230220160753-3c2c52e7e98a +# github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt v0.0.0-20230222114134-d97c4c88765b ## explicit; go 1.15 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt/apiv1 github.com/redhat-developer/app-services-sdk-core/app-services-sdk-go/serviceaccountmgmt/apiv1/client