diff --git a/kafkamgmt/apiv1/client/default_api_mock.go b/kafkamgmt/apiv1/client/default_api_mock.go deleted file mode 100644 index 190333a4..00000000 --- a/kafkamgmt/apiv1/client/default_api_mock.go +++ /dev/null @@ -1,922 +0,0 @@ -// Code generated by moq; DO NOT EDIT. -// github.com/matryer/moq - -package kafkamgmtclient - -import ( - _context "context" - _nethttp "net/http" - "sync" -) - -// Ensure, that DefaultApiMock does implement DefaultApi. -// If this is not the case, regenerate this file with moq. -var _ DefaultApi = &DefaultApiMock{} - -// DefaultApiMock is a mock implementation of DefaultApi. -// -// func TestSomethingThatUsesDefaultApi(t *testing.T) { -// -// // make and configure a mocked DefaultApi -// mockedDefaultApi := &DefaultApiMock{ -// CreateKafkaFunc: func(ctx _context.Context) ApiCreateKafkaRequest { -// panic("mock out the CreateKafka method") -// }, -// CreateKafkaExecuteFunc: func(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) { -// panic("mock out the CreateKafkaExecute method") -// }, -// DeleteKafkaByIdFunc: func(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest { -// panic("mock out the DeleteKafkaById method") -// }, -// DeleteKafkaByIdExecuteFunc: func(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) { -// panic("mock out the DeleteKafkaByIdExecute method") -// }, -// GetCloudProviderRegionsFunc: func(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest { -// panic("mock out the GetCloudProviderRegions method") -// }, -// GetCloudProviderRegionsExecuteFunc: func(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) { -// panic("mock out the GetCloudProviderRegionsExecute method") -// }, -// GetCloudProvidersFunc: func(ctx _context.Context) ApiGetCloudProvidersRequest { -// panic("mock out the GetCloudProviders method") -// }, -// GetCloudProvidersExecuteFunc: func(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) { -// panic("mock out the GetCloudProvidersExecute method") -// }, -// GetKafkaByIdFunc: func(ctx _context.Context, id string) ApiGetKafkaByIdRequest { -// panic("mock out the GetKafkaById method") -// }, -// GetKafkaByIdExecuteFunc: func(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { -// panic("mock out the GetKafkaByIdExecute method") -// }, -// GetKafkasFunc: func(ctx _context.Context) ApiGetKafkasRequest { -// panic("mock out the GetKafkas method") -// }, -// GetKafkasExecuteFunc: func(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) { -// panic("mock out the GetKafkasExecute method") -// }, -// GetMetricsByInstantQueryFunc: func(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest { -// panic("mock out the GetMetricsByInstantQuery method") -// }, -// GetMetricsByInstantQueryExecuteFunc: func(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) { -// panic("mock out the GetMetricsByInstantQueryExecute method") -// }, -// GetMetricsByRangeQueryFunc: func(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest { -// panic("mock out the GetMetricsByRangeQuery method") -// }, -// GetMetricsByRangeQueryExecuteFunc: func(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) { -// panic("mock out the GetMetricsByRangeQueryExecute method") -// }, -// GetServiceStatusFunc: func(ctx _context.Context) ApiGetServiceStatusRequest { -// panic("mock out the GetServiceStatus method") -// }, -// GetServiceStatusExecuteFunc: func(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) { -// panic("mock out the GetServiceStatusExecute method") -// }, -// GetVersionMetadataFunc: func(ctx _context.Context) ApiGetVersionMetadataRequest { -// panic("mock out the GetVersionMetadata method") -// }, -// GetVersionMetadataExecuteFunc: func(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) { -// panic("mock out the GetVersionMetadataExecute method") -// }, -// } -// -// // use mockedDefaultApi in code that requires DefaultApi -// // and then make assertions. -// -// } -type DefaultApiMock struct { - // CreateKafkaFunc mocks the CreateKafka method. - CreateKafkaFunc func(ctx _context.Context) ApiCreateKafkaRequest - - // CreateKafkaExecuteFunc mocks the CreateKafkaExecute method. - CreateKafkaExecuteFunc func(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) - - // DeleteKafkaByIdFunc mocks the DeleteKafkaById method. - DeleteKafkaByIdFunc func(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest - - // DeleteKafkaByIdExecuteFunc mocks the DeleteKafkaByIdExecute method. - DeleteKafkaByIdExecuteFunc func(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) - - // GetCloudProviderRegionsFunc mocks the GetCloudProviderRegions method. - GetCloudProviderRegionsFunc func(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest - - // GetCloudProviderRegionsExecuteFunc mocks the GetCloudProviderRegionsExecute method. - GetCloudProviderRegionsExecuteFunc func(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) - - // GetCloudProvidersFunc mocks the GetCloudProviders method. - GetCloudProvidersFunc func(ctx _context.Context) ApiGetCloudProvidersRequest - - // GetCloudProvidersExecuteFunc mocks the GetCloudProvidersExecute method. - GetCloudProvidersExecuteFunc func(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) - - // GetKafkaByIdFunc mocks the GetKafkaById method. - GetKafkaByIdFunc func(ctx _context.Context, id string) ApiGetKafkaByIdRequest - - // GetKafkaByIdExecuteFunc mocks the GetKafkaByIdExecute method. - GetKafkaByIdExecuteFunc func(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) - - // GetKafkasFunc mocks the GetKafkas method. - GetKafkasFunc func(ctx _context.Context) ApiGetKafkasRequest - - // GetKafkasExecuteFunc mocks the GetKafkasExecute method. - GetKafkasExecuteFunc func(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) - - // GetMetricsByInstantQueryFunc mocks the GetMetricsByInstantQuery method. - GetMetricsByInstantQueryFunc func(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest - - // GetMetricsByInstantQueryExecuteFunc mocks the GetMetricsByInstantQueryExecute method. - GetMetricsByInstantQueryExecuteFunc func(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) - - // GetMetricsByRangeQueryFunc mocks the GetMetricsByRangeQuery method. - GetMetricsByRangeQueryFunc func(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest - - // GetMetricsByRangeQueryExecuteFunc mocks the GetMetricsByRangeQueryExecute method. - GetMetricsByRangeQueryExecuteFunc func(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) - - // GetServiceStatusFunc mocks the GetServiceStatus method. - GetServiceStatusFunc func(ctx _context.Context) ApiGetServiceStatusRequest - - // GetServiceStatusExecuteFunc mocks the GetServiceStatusExecute method. - GetServiceStatusExecuteFunc func(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) - - // GetVersionMetadataFunc mocks the GetVersionMetadata method. - GetVersionMetadataFunc func(ctx _context.Context) ApiGetVersionMetadataRequest - - // GetVersionMetadataExecuteFunc mocks the GetVersionMetadataExecute method. - GetVersionMetadataExecuteFunc func(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) - - // calls tracks calls to the methods. - calls struct { - // CreateKafka holds details about calls to the CreateKafka method. - CreateKafka []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - } - // CreateKafkaExecute holds details about calls to the CreateKafkaExecute method. - CreateKafkaExecute []struct { - // R is the r argument value. - R ApiCreateKafkaRequest - } - // DeleteKafkaById holds details about calls to the DeleteKafkaById method. - DeleteKafkaById []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - // ID is the id argument value. - ID string - } - // DeleteKafkaByIdExecute holds details about calls to the DeleteKafkaByIdExecute method. - DeleteKafkaByIdExecute []struct { - // R is the r argument value. - R ApiDeleteKafkaByIdRequest - } - // GetCloudProviderRegions holds details about calls to the GetCloudProviderRegions method. - GetCloudProviderRegions []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - // ID is the id argument value. - ID string - } - // GetCloudProviderRegionsExecute holds details about calls to the GetCloudProviderRegionsExecute method. - GetCloudProviderRegionsExecute []struct { - // R is the r argument value. - R ApiGetCloudProviderRegionsRequest - } - // GetCloudProviders holds details about calls to the GetCloudProviders method. - GetCloudProviders []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - } - // GetCloudProvidersExecute holds details about calls to the GetCloudProvidersExecute method. - GetCloudProvidersExecute []struct { - // R is the r argument value. - R ApiGetCloudProvidersRequest - } - // GetKafkaById holds details about calls to the GetKafkaById method. - GetKafkaById []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - // ID is the id argument value. - ID string - } - // GetKafkaByIdExecute holds details about calls to the GetKafkaByIdExecute method. - GetKafkaByIdExecute []struct { - // R is the r argument value. - R ApiGetKafkaByIdRequest - } - // GetKafkas holds details about calls to the GetKafkas method. - GetKafkas []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - } - // GetKafkasExecute holds details about calls to the GetKafkasExecute method. - GetKafkasExecute []struct { - // R is the r argument value. - R ApiGetKafkasRequest - } - // GetMetricsByInstantQuery holds details about calls to the GetMetricsByInstantQuery method. - GetMetricsByInstantQuery []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - // ID is the id argument value. - ID string - } - // GetMetricsByInstantQueryExecute holds details about calls to the GetMetricsByInstantQueryExecute method. - GetMetricsByInstantQueryExecute []struct { - // R is the r argument value. - R ApiGetMetricsByInstantQueryRequest - } - // GetMetricsByRangeQuery holds details about calls to the GetMetricsByRangeQuery method. - GetMetricsByRangeQuery []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - // ID is the id argument value. - ID string - } - // GetMetricsByRangeQueryExecute holds details about calls to the GetMetricsByRangeQueryExecute method. - GetMetricsByRangeQueryExecute []struct { - // R is the r argument value. - R ApiGetMetricsByRangeQueryRequest - } - // GetServiceStatus holds details about calls to the GetServiceStatus method. - GetServiceStatus []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - } - // GetServiceStatusExecute holds details about calls to the GetServiceStatusExecute method. - GetServiceStatusExecute []struct { - // R is the r argument value. - R ApiGetServiceStatusRequest - } - // GetVersionMetadata holds details about calls to the GetVersionMetadata method. - GetVersionMetadata []struct { - // Ctx is the ctx argument value. - Ctx _context.Context - } - // GetVersionMetadataExecute holds details about calls to the GetVersionMetadataExecute method. - GetVersionMetadataExecute []struct { - // R is the r argument value. - R ApiGetVersionMetadataRequest - } - } - lockCreateKafka sync.RWMutex - lockCreateKafkaExecute sync.RWMutex - lockDeleteKafkaById sync.RWMutex - lockDeleteKafkaByIdExecute sync.RWMutex - lockGetCloudProviderRegions sync.RWMutex - lockGetCloudProviderRegionsExecute sync.RWMutex - lockGetCloudProviders sync.RWMutex - lockGetCloudProvidersExecute sync.RWMutex - lockGetKafkaById sync.RWMutex - lockGetKafkaByIdExecute sync.RWMutex - lockGetKafkas sync.RWMutex - lockGetKafkasExecute sync.RWMutex - lockGetMetricsByInstantQuery sync.RWMutex - lockGetMetricsByInstantQueryExecute sync.RWMutex - lockGetMetricsByRangeQuery sync.RWMutex - lockGetMetricsByRangeQueryExecute sync.RWMutex - lockGetServiceStatus sync.RWMutex - lockGetServiceStatusExecute sync.RWMutex - lockGetVersionMetadata sync.RWMutex - lockGetVersionMetadataExecute sync.RWMutex -} - -// CreateKafka calls CreateKafkaFunc. -func (mock *DefaultApiMock) CreateKafka(ctx _context.Context) ApiCreateKafkaRequest { - if mock.CreateKafkaFunc == nil { - panic("DefaultApiMock.CreateKafkaFunc: method is nil but DefaultApi.CreateKafka was just called") - } - callInfo := struct { - Ctx _context.Context - }{ - Ctx: ctx, - } - mock.lockCreateKafka.Lock() - mock.calls.CreateKafka = append(mock.calls.CreateKafka, callInfo) - mock.lockCreateKafka.Unlock() - return mock.CreateKafkaFunc(ctx) -} - -// CreateKafkaCalls gets all the calls that were made to CreateKafka. -// Check the length with: -// len(mockedDefaultApi.CreateKafkaCalls()) -func (mock *DefaultApiMock) CreateKafkaCalls() []struct { - Ctx _context.Context -} { - var calls []struct { - Ctx _context.Context - } - mock.lockCreateKafka.RLock() - calls = mock.calls.CreateKafka - mock.lockCreateKafka.RUnlock() - return calls -} - -// CreateKafkaExecute calls CreateKafkaExecuteFunc. -func (mock *DefaultApiMock) CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) { - if mock.CreateKafkaExecuteFunc == nil { - panic("DefaultApiMock.CreateKafkaExecuteFunc: method is nil but DefaultApi.CreateKafkaExecute was just called") - } - callInfo := struct { - R ApiCreateKafkaRequest - }{ - R: r, - } - mock.lockCreateKafkaExecute.Lock() - mock.calls.CreateKafkaExecute = append(mock.calls.CreateKafkaExecute, callInfo) - mock.lockCreateKafkaExecute.Unlock() - return mock.CreateKafkaExecuteFunc(r) -} - -// CreateKafkaExecuteCalls gets all the calls that were made to CreateKafkaExecute. -// Check the length with: -// len(mockedDefaultApi.CreateKafkaExecuteCalls()) -func (mock *DefaultApiMock) CreateKafkaExecuteCalls() []struct { - R ApiCreateKafkaRequest -} { - var calls []struct { - R ApiCreateKafkaRequest - } - mock.lockCreateKafkaExecute.RLock() - calls = mock.calls.CreateKafkaExecute - mock.lockCreateKafkaExecute.RUnlock() - return calls -} - -// DeleteKafkaById calls DeleteKafkaByIdFunc. -func (mock *DefaultApiMock) DeleteKafkaById(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest { - if mock.DeleteKafkaByIdFunc == nil { - panic("DefaultApiMock.DeleteKafkaByIdFunc: method is nil but DefaultApi.DeleteKafkaById was just called") - } - callInfo := struct { - Ctx _context.Context - ID string - }{ - Ctx: ctx, - ID: id, - } - mock.lockDeleteKafkaById.Lock() - mock.calls.DeleteKafkaById = append(mock.calls.DeleteKafkaById, callInfo) - mock.lockDeleteKafkaById.Unlock() - return mock.DeleteKafkaByIdFunc(ctx, id) -} - -// DeleteKafkaByIdCalls gets all the calls that were made to DeleteKafkaById. -// Check the length with: -// len(mockedDefaultApi.DeleteKafkaByIdCalls()) -func (mock *DefaultApiMock) DeleteKafkaByIdCalls() []struct { - Ctx _context.Context - ID string -} { - var calls []struct { - Ctx _context.Context - ID string - } - mock.lockDeleteKafkaById.RLock() - calls = mock.calls.DeleteKafkaById - mock.lockDeleteKafkaById.RUnlock() - return calls -} - -// DeleteKafkaByIdExecute calls DeleteKafkaByIdExecuteFunc. -func (mock *DefaultApiMock) DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) { - if mock.DeleteKafkaByIdExecuteFunc == nil { - panic("DefaultApiMock.DeleteKafkaByIdExecuteFunc: method is nil but DefaultApi.DeleteKafkaByIdExecute was just called") - } - callInfo := struct { - R ApiDeleteKafkaByIdRequest - }{ - R: r, - } - mock.lockDeleteKafkaByIdExecute.Lock() - mock.calls.DeleteKafkaByIdExecute = append(mock.calls.DeleteKafkaByIdExecute, callInfo) - mock.lockDeleteKafkaByIdExecute.Unlock() - return mock.DeleteKafkaByIdExecuteFunc(r) -} - -// DeleteKafkaByIdExecuteCalls gets all the calls that were made to DeleteKafkaByIdExecute. -// Check the length with: -// len(mockedDefaultApi.DeleteKafkaByIdExecuteCalls()) -func (mock *DefaultApiMock) DeleteKafkaByIdExecuteCalls() []struct { - R ApiDeleteKafkaByIdRequest -} { - var calls []struct { - R ApiDeleteKafkaByIdRequest - } - mock.lockDeleteKafkaByIdExecute.RLock() - calls = mock.calls.DeleteKafkaByIdExecute - mock.lockDeleteKafkaByIdExecute.RUnlock() - return calls -} - -// GetCloudProviderRegions calls GetCloudProviderRegionsFunc. -func (mock *DefaultApiMock) GetCloudProviderRegions(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest { - if mock.GetCloudProviderRegionsFunc == nil { - panic("DefaultApiMock.GetCloudProviderRegionsFunc: method is nil but DefaultApi.GetCloudProviderRegions was just called") - } - callInfo := struct { - Ctx _context.Context - ID string - }{ - Ctx: ctx, - ID: id, - } - mock.lockGetCloudProviderRegions.Lock() - mock.calls.GetCloudProviderRegions = append(mock.calls.GetCloudProviderRegions, callInfo) - mock.lockGetCloudProviderRegions.Unlock() - return mock.GetCloudProviderRegionsFunc(ctx, id) -} - -// GetCloudProviderRegionsCalls gets all the calls that were made to GetCloudProviderRegions. -// Check the length with: -// len(mockedDefaultApi.GetCloudProviderRegionsCalls()) -func (mock *DefaultApiMock) GetCloudProviderRegionsCalls() []struct { - Ctx _context.Context - ID string -} { - var calls []struct { - Ctx _context.Context - ID string - } - mock.lockGetCloudProviderRegions.RLock() - calls = mock.calls.GetCloudProviderRegions - mock.lockGetCloudProviderRegions.RUnlock() - return calls -} - -// GetCloudProviderRegionsExecute calls GetCloudProviderRegionsExecuteFunc. -func (mock *DefaultApiMock) GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) { - if mock.GetCloudProviderRegionsExecuteFunc == nil { - panic("DefaultApiMock.GetCloudProviderRegionsExecuteFunc: method is nil but DefaultApi.GetCloudProviderRegionsExecute was just called") - } - callInfo := struct { - R ApiGetCloudProviderRegionsRequest - }{ - R: r, - } - mock.lockGetCloudProviderRegionsExecute.Lock() - mock.calls.GetCloudProviderRegionsExecute = append(mock.calls.GetCloudProviderRegionsExecute, callInfo) - mock.lockGetCloudProviderRegionsExecute.Unlock() - return mock.GetCloudProviderRegionsExecuteFunc(r) -} - -// GetCloudProviderRegionsExecuteCalls gets all the calls that were made to GetCloudProviderRegionsExecute. -// Check the length with: -// len(mockedDefaultApi.GetCloudProviderRegionsExecuteCalls()) -func (mock *DefaultApiMock) GetCloudProviderRegionsExecuteCalls() []struct { - R ApiGetCloudProviderRegionsRequest -} { - var calls []struct { - R ApiGetCloudProviderRegionsRequest - } - mock.lockGetCloudProviderRegionsExecute.RLock() - calls = mock.calls.GetCloudProviderRegionsExecute - mock.lockGetCloudProviderRegionsExecute.RUnlock() - return calls -} - -// GetCloudProviders calls GetCloudProvidersFunc. -func (mock *DefaultApiMock) GetCloudProviders(ctx _context.Context) ApiGetCloudProvidersRequest { - if mock.GetCloudProvidersFunc == nil { - panic("DefaultApiMock.GetCloudProvidersFunc: method is nil but DefaultApi.GetCloudProviders was just called") - } - callInfo := struct { - Ctx _context.Context - }{ - Ctx: ctx, - } - mock.lockGetCloudProviders.Lock() - mock.calls.GetCloudProviders = append(mock.calls.GetCloudProviders, callInfo) - mock.lockGetCloudProviders.Unlock() - return mock.GetCloudProvidersFunc(ctx) -} - -// GetCloudProvidersCalls gets all the calls that were made to GetCloudProviders. -// Check the length with: -// len(mockedDefaultApi.GetCloudProvidersCalls()) -func (mock *DefaultApiMock) GetCloudProvidersCalls() []struct { - Ctx _context.Context -} { - var calls []struct { - Ctx _context.Context - } - mock.lockGetCloudProviders.RLock() - calls = mock.calls.GetCloudProviders - mock.lockGetCloudProviders.RUnlock() - return calls -} - -// GetCloudProvidersExecute calls GetCloudProvidersExecuteFunc. -func (mock *DefaultApiMock) GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) { - if mock.GetCloudProvidersExecuteFunc == nil { - panic("DefaultApiMock.GetCloudProvidersExecuteFunc: method is nil but DefaultApi.GetCloudProvidersExecute was just called") - } - callInfo := struct { - R ApiGetCloudProvidersRequest - }{ - R: r, - } - mock.lockGetCloudProvidersExecute.Lock() - mock.calls.GetCloudProvidersExecute = append(mock.calls.GetCloudProvidersExecute, callInfo) - mock.lockGetCloudProvidersExecute.Unlock() - return mock.GetCloudProvidersExecuteFunc(r) -} - -// GetCloudProvidersExecuteCalls gets all the calls that were made to GetCloudProvidersExecute. -// Check the length with: -// len(mockedDefaultApi.GetCloudProvidersExecuteCalls()) -func (mock *DefaultApiMock) GetCloudProvidersExecuteCalls() []struct { - R ApiGetCloudProvidersRequest -} { - var calls []struct { - R ApiGetCloudProvidersRequest - } - mock.lockGetCloudProvidersExecute.RLock() - calls = mock.calls.GetCloudProvidersExecute - mock.lockGetCloudProvidersExecute.RUnlock() - return calls -} - -// GetKafkaById calls GetKafkaByIdFunc. -func (mock *DefaultApiMock) GetKafkaById(ctx _context.Context, id string) ApiGetKafkaByIdRequest { - if mock.GetKafkaByIdFunc == nil { - panic("DefaultApiMock.GetKafkaByIdFunc: method is nil but DefaultApi.GetKafkaById was just called") - } - callInfo := struct { - Ctx _context.Context - ID string - }{ - Ctx: ctx, - ID: id, - } - mock.lockGetKafkaById.Lock() - mock.calls.GetKafkaById = append(mock.calls.GetKafkaById, callInfo) - mock.lockGetKafkaById.Unlock() - return mock.GetKafkaByIdFunc(ctx, id) -} - -// GetKafkaByIdCalls gets all the calls that were made to GetKafkaById. -// Check the length with: -// len(mockedDefaultApi.GetKafkaByIdCalls()) -func (mock *DefaultApiMock) GetKafkaByIdCalls() []struct { - Ctx _context.Context - ID string -} { - var calls []struct { - Ctx _context.Context - ID string - } - mock.lockGetKafkaById.RLock() - calls = mock.calls.GetKafkaById - mock.lockGetKafkaById.RUnlock() - return calls -} - -// GetKafkaByIdExecute calls GetKafkaByIdExecuteFunc. -func (mock *DefaultApiMock) GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { - if mock.GetKafkaByIdExecuteFunc == nil { - panic("DefaultApiMock.GetKafkaByIdExecuteFunc: method is nil but DefaultApi.GetKafkaByIdExecute was just called") - } - callInfo := struct { - R ApiGetKafkaByIdRequest - }{ - R: r, - } - mock.lockGetKafkaByIdExecute.Lock() - mock.calls.GetKafkaByIdExecute = append(mock.calls.GetKafkaByIdExecute, callInfo) - mock.lockGetKafkaByIdExecute.Unlock() - return mock.GetKafkaByIdExecuteFunc(r) -} - -// GetKafkaByIdExecuteCalls gets all the calls that were made to GetKafkaByIdExecute. -// Check the length with: -// len(mockedDefaultApi.GetKafkaByIdExecuteCalls()) -func (mock *DefaultApiMock) GetKafkaByIdExecuteCalls() []struct { - R ApiGetKafkaByIdRequest -} { - var calls []struct { - R ApiGetKafkaByIdRequest - } - mock.lockGetKafkaByIdExecute.RLock() - calls = mock.calls.GetKafkaByIdExecute - mock.lockGetKafkaByIdExecute.RUnlock() - return calls -} - -// GetKafkas calls GetKafkasFunc. -func (mock *DefaultApiMock) GetKafkas(ctx _context.Context) ApiGetKafkasRequest { - if mock.GetKafkasFunc == nil { - panic("DefaultApiMock.GetKafkasFunc: method is nil but DefaultApi.GetKafkas was just called") - } - callInfo := struct { - Ctx _context.Context - }{ - Ctx: ctx, - } - mock.lockGetKafkas.Lock() - mock.calls.GetKafkas = append(mock.calls.GetKafkas, callInfo) - mock.lockGetKafkas.Unlock() - return mock.GetKafkasFunc(ctx) -} - -// GetKafkasCalls gets all the calls that were made to GetKafkas. -// Check the length with: -// len(mockedDefaultApi.GetKafkasCalls()) -func (mock *DefaultApiMock) GetKafkasCalls() []struct { - Ctx _context.Context -} { - var calls []struct { - Ctx _context.Context - } - mock.lockGetKafkas.RLock() - calls = mock.calls.GetKafkas - mock.lockGetKafkas.RUnlock() - return calls -} - -// GetKafkasExecute calls GetKafkasExecuteFunc. -func (mock *DefaultApiMock) GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) { - if mock.GetKafkasExecuteFunc == nil { - panic("DefaultApiMock.GetKafkasExecuteFunc: method is nil but DefaultApi.GetKafkasExecute was just called") - } - callInfo := struct { - R ApiGetKafkasRequest - }{ - R: r, - } - mock.lockGetKafkasExecute.Lock() - mock.calls.GetKafkasExecute = append(mock.calls.GetKafkasExecute, callInfo) - mock.lockGetKafkasExecute.Unlock() - return mock.GetKafkasExecuteFunc(r) -} - -// GetKafkasExecuteCalls gets all the calls that were made to GetKafkasExecute. -// Check the length with: -// len(mockedDefaultApi.GetKafkasExecuteCalls()) -func (mock *DefaultApiMock) GetKafkasExecuteCalls() []struct { - R ApiGetKafkasRequest -} { - var calls []struct { - R ApiGetKafkasRequest - } - mock.lockGetKafkasExecute.RLock() - calls = mock.calls.GetKafkasExecute - mock.lockGetKafkasExecute.RUnlock() - return calls -} - -// GetMetricsByInstantQuery calls GetMetricsByInstantQueryFunc. -func (mock *DefaultApiMock) GetMetricsByInstantQuery(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest { - if mock.GetMetricsByInstantQueryFunc == nil { - panic("DefaultApiMock.GetMetricsByInstantQueryFunc: method is nil but DefaultApi.GetMetricsByInstantQuery was just called") - } - callInfo := struct { - Ctx _context.Context - ID string - }{ - Ctx: ctx, - ID: id, - } - mock.lockGetMetricsByInstantQuery.Lock() - mock.calls.GetMetricsByInstantQuery = append(mock.calls.GetMetricsByInstantQuery, callInfo) - mock.lockGetMetricsByInstantQuery.Unlock() - return mock.GetMetricsByInstantQueryFunc(ctx, id) -} - -// GetMetricsByInstantQueryCalls gets all the calls that were made to GetMetricsByInstantQuery. -// Check the length with: -// len(mockedDefaultApi.GetMetricsByInstantQueryCalls()) -func (mock *DefaultApiMock) GetMetricsByInstantQueryCalls() []struct { - Ctx _context.Context - ID string -} { - var calls []struct { - Ctx _context.Context - ID string - } - mock.lockGetMetricsByInstantQuery.RLock() - calls = mock.calls.GetMetricsByInstantQuery - mock.lockGetMetricsByInstantQuery.RUnlock() - return calls -} - -// GetMetricsByInstantQueryExecute calls GetMetricsByInstantQueryExecuteFunc. -func (mock *DefaultApiMock) GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) { - if mock.GetMetricsByInstantQueryExecuteFunc == nil { - panic("DefaultApiMock.GetMetricsByInstantQueryExecuteFunc: method is nil but DefaultApi.GetMetricsByInstantQueryExecute was just called") - } - callInfo := struct { - R ApiGetMetricsByInstantQueryRequest - }{ - R: r, - } - mock.lockGetMetricsByInstantQueryExecute.Lock() - mock.calls.GetMetricsByInstantQueryExecute = append(mock.calls.GetMetricsByInstantQueryExecute, callInfo) - mock.lockGetMetricsByInstantQueryExecute.Unlock() - return mock.GetMetricsByInstantQueryExecuteFunc(r) -} - -// GetMetricsByInstantQueryExecuteCalls gets all the calls that were made to GetMetricsByInstantQueryExecute. -// Check the length with: -// len(mockedDefaultApi.GetMetricsByInstantQueryExecuteCalls()) -func (mock *DefaultApiMock) GetMetricsByInstantQueryExecuteCalls() []struct { - R ApiGetMetricsByInstantQueryRequest -} { - var calls []struct { - R ApiGetMetricsByInstantQueryRequest - } - mock.lockGetMetricsByInstantQueryExecute.RLock() - calls = mock.calls.GetMetricsByInstantQueryExecute - mock.lockGetMetricsByInstantQueryExecute.RUnlock() - return calls -} - -// GetMetricsByRangeQuery calls GetMetricsByRangeQueryFunc. -func (mock *DefaultApiMock) GetMetricsByRangeQuery(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest { - if mock.GetMetricsByRangeQueryFunc == nil { - panic("DefaultApiMock.GetMetricsByRangeQueryFunc: method is nil but DefaultApi.GetMetricsByRangeQuery was just called") - } - callInfo := struct { - Ctx _context.Context - ID string - }{ - Ctx: ctx, - ID: id, - } - mock.lockGetMetricsByRangeQuery.Lock() - mock.calls.GetMetricsByRangeQuery = append(mock.calls.GetMetricsByRangeQuery, callInfo) - mock.lockGetMetricsByRangeQuery.Unlock() - return mock.GetMetricsByRangeQueryFunc(ctx, id) -} - -// GetMetricsByRangeQueryCalls gets all the calls that were made to GetMetricsByRangeQuery. -// Check the length with: -// len(mockedDefaultApi.GetMetricsByRangeQueryCalls()) -func (mock *DefaultApiMock) GetMetricsByRangeQueryCalls() []struct { - Ctx _context.Context - ID string -} { - var calls []struct { - Ctx _context.Context - ID string - } - mock.lockGetMetricsByRangeQuery.RLock() - calls = mock.calls.GetMetricsByRangeQuery - mock.lockGetMetricsByRangeQuery.RUnlock() - return calls -} - -// GetMetricsByRangeQueryExecute calls GetMetricsByRangeQueryExecuteFunc. -func (mock *DefaultApiMock) GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) { - if mock.GetMetricsByRangeQueryExecuteFunc == nil { - panic("DefaultApiMock.GetMetricsByRangeQueryExecuteFunc: method is nil but DefaultApi.GetMetricsByRangeQueryExecute was just called") - } - callInfo := struct { - R ApiGetMetricsByRangeQueryRequest - }{ - R: r, - } - mock.lockGetMetricsByRangeQueryExecute.Lock() - mock.calls.GetMetricsByRangeQueryExecute = append(mock.calls.GetMetricsByRangeQueryExecute, callInfo) - mock.lockGetMetricsByRangeQueryExecute.Unlock() - return mock.GetMetricsByRangeQueryExecuteFunc(r) -} - -// GetMetricsByRangeQueryExecuteCalls gets all the calls that were made to GetMetricsByRangeQueryExecute. -// Check the length with: -// len(mockedDefaultApi.GetMetricsByRangeQueryExecuteCalls()) -func (mock *DefaultApiMock) GetMetricsByRangeQueryExecuteCalls() []struct { - R ApiGetMetricsByRangeQueryRequest -} { - var calls []struct { - R ApiGetMetricsByRangeQueryRequest - } - mock.lockGetMetricsByRangeQueryExecute.RLock() - calls = mock.calls.GetMetricsByRangeQueryExecute - mock.lockGetMetricsByRangeQueryExecute.RUnlock() - return calls -} - -// GetServiceStatus calls GetServiceStatusFunc. -func (mock *DefaultApiMock) GetServiceStatus(ctx _context.Context) ApiGetServiceStatusRequest { - if mock.GetServiceStatusFunc == nil { - panic("DefaultApiMock.GetServiceStatusFunc: method is nil but DefaultApi.GetServiceStatus was just called") - } - callInfo := struct { - Ctx _context.Context - }{ - Ctx: ctx, - } - mock.lockGetServiceStatus.Lock() - mock.calls.GetServiceStatus = append(mock.calls.GetServiceStatus, callInfo) - mock.lockGetServiceStatus.Unlock() - return mock.GetServiceStatusFunc(ctx) -} - -// GetServiceStatusCalls gets all the calls that were made to GetServiceStatus. -// Check the length with: -// len(mockedDefaultApi.GetServiceStatusCalls()) -func (mock *DefaultApiMock) GetServiceStatusCalls() []struct { - Ctx _context.Context -} { - var calls []struct { - Ctx _context.Context - } - mock.lockGetServiceStatus.RLock() - calls = mock.calls.GetServiceStatus - mock.lockGetServiceStatus.RUnlock() - return calls -} - -// GetServiceStatusExecute calls GetServiceStatusExecuteFunc. -func (mock *DefaultApiMock) GetServiceStatusExecute(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) { - if mock.GetServiceStatusExecuteFunc == nil { - panic("DefaultApiMock.GetServiceStatusExecuteFunc: method is nil but DefaultApi.GetServiceStatusExecute was just called") - } - callInfo := struct { - R ApiGetServiceStatusRequest - }{ - R: r, - } - mock.lockGetServiceStatusExecute.Lock() - mock.calls.GetServiceStatusExecute = append(mock.calls.GetServiceStatusExecute, callInfo) - mock.lockGetServiceStatusExecute.Unlock() - return mock.GetServiceStatusExecuteFunc(r) -} - -// GetServiceStatusExecuteCalls gets all the calls that were made to GetServiceStatusExecute. -// Check the length with: -// len(mockedDefaultApi.GetServiceStatusExecuteCalls()) -func (mock *DefaultApiMock) GetServiceStatusExecuteCalls() []struct { - R ApiGetServiceStatusRequest -} { - var calls []struct { - R ApiGetServiceStatusRequest - } - mock.lockGetServiceStatusExecute.RLock() - calls = mock.calls.GetServiceStatusExecute - mock.lockGetServiceStatusExecute.RUnlock() - return calls -} - -// GetVersionMetadata calls GetVersionMetadataFunc. -func (mock *DefaultApiMock) GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest { - if mock.GetVersionMetadataFunc == nil { - panic("DefaultApiMock.GetVersionMetadataFunc: method is nil but DefaultApi.GetVersionMetadata was just called") - } - callInfo := struct { - Ctx _context.Context - }{ - Ctx: ctx, - } - mock.lockGetVersionMetadata.Lock() - mock.calls.GetVersionMetadata = append(mock.calls.GetVersionMetadata, callInfo) - mock.lockGetVersionMetadata.Unlock() - return mock.GetVersionMetadataFunc(ctx) -} - -// GetVersionMetadataCalls gets all the calls that were made to GetVersionMetadata. -// Check the length with: -// len(mockedDefaultApi.GetVersionMetadataCalls()) -func (mock *DefaultApiMock) GetVersionMetadataCalls() []struct { - Ctx _context.Context -} { - var calls []struct { - Ctx _context.Context - } - mock.lockGetVersionMetadata.RLock() - calls = mock.calls.GetVersionMetadata - mock.lockGetVersionMetadata.RUnlock() - return calls -} - -// GetVersionMetadataExecute calls GetVersionMetadataExecuteFunc. -func (mock *DefaultApiMock) GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) { - if mock.GetVersionMetadataExecuteFunc == nil { - panic("DefaultApiMock.GetVersionMetadataExecuteFunc: method is nil but DefaultApi.GetVersionMetadataExecute was just called") - } - callInfo := struct { - R ApiGetVersionMetadataRequest - }{ - R: r, - } - mock.lockGetVersionMetadataExecute.Lock() - mock.calls.GetVersionMetadataExecute = append(mock.calls.GetVersionMetadataExecute, callInfo) - mock.lockGetVersionMetadataExecute.Unlock() - return mock.GetVersionMetadataExecuteFunc(r) -} - -// GetVersionMetadataExecuteCalls gets all the calls that were made to GetVersionMetadataExecute. -// Check the length with: -// len(mockedDefaultApi.GetVersionMetadataExecuteCalls()) -func (mock *DefaultApiMock) GetVersionMetadataExecuteCalls() []struct { - R ApiGetVersionMetadataRequest -} { - var calls []struct { - R ApiGetVersionMetadataRequest - } - mock.lockGetVersionMetadataExecute.RLock() - calls = mock.calls.GetVersionMetadataExecute - mock.lockGetVersionMetadataExecute.RUnlock() - return calls -} diff --git a/registrymgmt/apiv1/client/.openapi-generator/FILES b/registrymgmt/apiv1/client/.openapi-generator/FILES index 3f1b878a..a1380a7c 100644 --- a/registrymgmt/apiv1/client/.openapi-generator/FILES +++ b/registrymgmt/apiv1/client/.openapi-generator/FILES @@ -1,33 +1,35 @@ .gitignore README.md api/openapi.yaml +api_default.go api_registries.go client.go configuration.go -docs/Error.md -docs/ErrorAllOf.md -docs/ErrorList.md -docs/ErrorListAllOf.md -docs/List.md -docs/ObjectReference.md +docs/DefaultApi.md +docs/ErrorListRest.md +docs/ErrorListRestAllOf.md +docs/ErrorRest.md +docs/ErrorRestAllOf.md +docs/ListRest.md +docs/ObjectReferenceRest.md docs/RegistriesApi.md -docs/Registry.md -docs/RegistryCreate.md -docs/RegistryRestList.md -docs/RegistryRestListAllOf.md -docs/RegistryStatusValue.md +docs/RegistryCreateRest.md +docs/RegistryListRest.md +docs/RegistryListRestAllOf.md +docs/RegistryRest.md +docs/RegistryStatusValueRest.md docs/RootTypeForRegistry.md -model_error.go -model_error_all_of.go -model_error_list.go -model_error_list_all_of.go -model_list.go -model_object_reference.go -model_registry.go -model_registry_create.go -model_registry_rest_list.go -model_registry_rest_list_all_of.go -model_registry_status_value.go +model_error_list_rest.go +model_error_list_rest_all_of.go +model_error_rest.go +model_error_rest_all_of.go +model_list_rest.go +model_object_reference_rest.go +model_registry_create_rest.go +model_registry_list_rest.go +model_registry_list_rest_all_of.go +model_registry_rest.go +model_registry_status_value_rest.go model_root_type_for_registry.go response.go utils.go diff --git a/registrymgmt/apiv1/client/README.md b/registrymgmt/apiv1/client/README.md index 356ee559..60db1e4d 100644 --- a/registrymgmt/apiv1/client/README.md +++ b/registrymgmt/apiv1/client/README.md @@ -79,25 +79,26 @@ All URIs are relative to *https://api.openshift.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetSchema**](docs/DefaultApi.md#getschema) | **Get** /api/serviceregistry_mgmt/v1/openapi | Get an OpenAPI schema for this API. *RegistriesApi* | [**CreateRegistry**](docs/RegistriesApi.md#createregistry) | **Post** /api/serviceregistry_mgmt/v1/registries | Create a new Registry instance -*RegistriesApi* | [**DeleteRegistry**](docs/RegistriesApi.md#deleteregistry) | **Delete** /api/serviceregistry_mgmt/v1/{id} | Delete a Registry +*RegistriesApi* | [**DeleteRegistry**](docs/RegistriesApi.md#deleteregistry) | **Delete** /api/serviceregistry_mgmt/v1/registries/{id} | Delete a Registry *RegistriesApi* | [**GetRegistries**](docs/RegistriesApi.md#getregistries) | **Get** /api/serviceregistry_mgmt/v1/registries | Get the list of all registries. -*RegistriesApi* | [**GetRegistry**](docs/RegistriesApi.md#getregistry) | **Get** /api/serviceregistry_mgmt/v1/{id} | Get a Registry +*RegistriesApi* | [**GetRegistry**](docs/RegistriesApi.md#getregistry) | **Get** /api/serviceregistry_mgmt/v1/registries/{id} | Get a Registry ## Documentation For Models - - [Error](docs/Error.md) - - [ErrorAllOf](docs/ErrorAllOf.md) - - [ErrorList](docs/ErrorList.md) - - [ErrorListAllOf](docs/ErrorListAllOf.md) - - [List](docs/List.md) - - [ObjectReference](docs/ObjectReference.md) - - [Registry](docs/Registry.md) - - [RegistryCreate](docs/RegistryCreate.md) - - [RegistryRestList](docs/RegistryRestList.md) - - [RegistryRestListAllOf](docs/RegistryRestListAllOf.md) - - [RegistryStatusValue](docs/RegistryStatusValue.md) + - [ErrorListRest](docs/ErrorListRest.md) + - [ErrorListRestAllOf](docs/ErrorListRestAllOf.md) + - [ErrorRest](docs/ErrorRest.md) + - [ErrorRestAllOf](docs/ErrorRestAllOf.md) + - [ListRest](docs/ListRest.md) + - [ObjectReferenceRest](docs/ObjectReferenceRest.md) + - [RegistryCreateRest](docs/RegistryCreateRest.md) + - [RegistryListRest](docs/RegistryListRest.md) + - [RegistryListRestAllOf](docs/RegistryListRestAllOf.md) + - [RegistryRest](docs/RegistryRest.md) + - [RegistryStatusValueRest](docs/RegistryStatusValueRest.md) - [RootTypeForRegistry](docs/RootTypeForRegistry.md) diff --git a/registrymgmt/apiv1/client/api/openapi.yaml b/registrymgmt/apiv1/client/api/openapi.yaml index 080c17eb..22b9344b 100644 --- a/registrymgmt/apiv1/client/api/openapi.yaml +++ b/registrymgmt/apiv1/client/api/openapi.yaml @@ -41,7 +41,7 @@ paths: name: page required: false schema: - type: string + type: integer style: form - description: Number of items in each page examples: @@ -52,7 +52,7 @@ paths: name: size required: false schema: - type: string + type: integer style: form - description: |- Specifies the order by criteria. The syntax of this parameter is @@ -122,7 +122,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RegistryRestList' + $ref: '#/components/schemas/RegistryListRest' description: A successful response. "401": content: @@ -131,7 +131,7 @@ paths: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: Auth token is invalid "403": content: @@ -140,7 +140,7 @@ paths: "403Example": $ref: '#/components/examples/403Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: User not authorized to access the service. "500": content: @@ -149,7 +149,7 @@ paths: "500Example": $ref: '#/components/examples/500Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: Unexpected error occurred security: - Bearer: [] @@ -162,15 +162,15 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RegistryCreate' + $ref: '#/components/schemas/RegistryCreateRest' description: A new `Registry` to be created. required: true responses: - "202": + "200": content: application/json: schema: - $ref: '#/components/schemas/Registry' + $ref: '#/components/schemas/RegistryRest' description: A successful response. The full request to create a new `Registry` is processed asynchronously. User should verify the result of the operation by reading the `status` property of the created `Registry` entity. @@ -181,7 +181,7 @@ paths: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: Auth token is invalid "403": content: @@ -190,7 +190,7 @@ paths: "403Example": $ref: '#/components/examples/403Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: User not authorized to access the service. "500": content: @@ -199,7 +199,7 @@ paths: "500Example": $ref: '#/components/examples/500Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: Unexpected error occurred security: - Bearer: [] @@ -207,7 +207,7 @@ paths: tags: - Registries summary: Manage the list of all registries. - /api/serviceregistry_mgmt/v1/{id}: + /api/serviceregistry_mgmt/v1/registries/{id}: delete: description: Deletes an existing `Registry`. operationId: deleteRegistry @@ -230,7 +230,7 @@ paths: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: Auth token is invalid "403": content: @@ -239,7 +239,7 @@ paths: "403Example": $ref: '#/components/examples/403Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: User not authorized to access the service. "404": content: @@ -248,7 +248,7 @@ paths: "404Example": $ref: '#/components/examples/404Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: No Service Registry with specified id exists security: - Bearer: [] @@ -272,7 +272,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Registry' + $ref: '#/components/schemas/RegistryRest' description: Successful response - returns a single `Registry`. "401": content: @@ -281,7 +281,7 @@ paths: "401Example": $ref: '#/components/examples/401Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: Auth token is invalid "403": content: @@ -290,7 +290,7 @@ paths: "403Example": $ref: '#/components/examples/403Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: User not authorized to access the service. "404": content: @@ -299,7 +299,7 @@ paths: "404Example": $ref: '#/components/examples/404Example' schema: - $ref: '#/components/schemas/Error' + $ref: '#/components/schemas/ErrorRest' description: No service registry with specified id exists security: - Bearer: [] @@ -307,6 +307,24 @@ paths: tags: - Registries summary: Manage a specific Registry. + /api/serviceregistry_mgmt/v1/openapi: + description: Get an OpenAPI schema for this API. + get: + operationId: getSchema + responses: + "200": + content: + application/json: + examples: + OpenAPI Schema: + value: + openapi: 3.0.2 + info: {} + schema: + type: string + description: A successful response. + summary: Get an OpenAPI schema for this API. + summary: Get an OpenAPI schema for this API. components: examples: "404Example": @@ -360,7 +378,7 @@ components: name: page required: false schema: - type: string + type: integer style: form size: description: Number of items in each page @@ -372,7 +390,7 @@ components: name: size required: false schema: - type: string + type: integer style: form orderBy: description: |- @@ -440,16 +458,15 @@ components: type: string style: form schemas: - ObjectReference: - properties: - id: - type: string - kind: - type: string - href: - type: string - type: object - List: + ErrorRest: + allOf: + - $ref: '#/components/schemas/ObjectReferenceRest' + - $ref: '#/components/schemas/ErrorRest_allOf' + ErrorListRest: + allOf: + - $ref: '#/components/schemas/ListRest' + - $ref: '#/components/schemas/ErrorListRest_allOf' + ListRest: properties: kind: type: string @@ -466,23 +483,20 @@ components: - size - total type: object - Error: - allOf: - - $ref: '#/components/schemas/ObjectReference' - - $ref: '#/components/schemas/Error_allOf' - ErrorList: - allOf: - - $ref: '#/components/schemas/List' - - $ref: '#/components/schemas/ErrorList_allOf' - RegistryRestList: - allOf: - - $ref: '#/components/schemas/List' - - $ref: '#/components/schemas/RegistryRestList_allOf' - Registry: + ObjectReferenceRest: + properties: + id: + type: string + kind: + type: string + href: + type: string + type: object + RegistryRest: allOf: - - $ref: '#/components/schemas/ObjectReference' + - $ref: '#/components/schemas/ObjectReferenceRest' - $ref: '#/components/schemas/Root_Type_for_Registry' - RegistryCreate: + RegistryCreateRest: description: Information used to create a new Service Registry instance within a multi-tenant deployment. example: @@ -493,13 +507,17 @@ components: type: string title: Root Type for RegistryCreate type: object - RegistryStatusValue: + RegistryListRest: + allOf: + - $ref: '#/components/schemas/ListRest' + - $ref: '#/components/schemas/RegistryListRest_allOf' + RegistryStatusValueRest: enum: - PROVISIONING - AVAILABLE - UNAVAILABLE type: string - Error_allOf: + ErrorRest_allOf: properties: code: type: string @@ -508,32 +526,11 @@ components: operation_id: type: string type: object - ErrorList_allOf: + ErrorListRest_allOf: properties: items: items: - $ref: '#/components/schemas/Error' - type: array - type: object - RegistryRestList_allOf: - example: - kind: RegistryRestList - page: "1" - size: "1" - total: "1" - item: - id: llmNteR4P7waRp5nJIReG - kind: serviceregistry - href: /api/serviceregistry_mgmt/v1/registries/llmNteR4P7waRp5nJIReG - name: sample-registry - status: ready - owner: some_id - registryUrl: https://somehost:433 - properties: - items: - items: - allOf: - - $ref: '#/components/schemas/Registry' + $ref: '#/components/schemas/ErrorRest' type: array type: object Root_Type_for_Registry: @@ -550,7 +547,7 @@ components: id: type: string status: - $ref: '#/components/schemas/RegistryStatusValue' + $ref: '#/components/schemas/RegistryStatusValueRest' registryUrl: type: string name: @@ -566,6 +563,27 @@ components: - status title: Root Type for Registry type: object + RegistryListRest_allOf: + example: + kind: RegistryRestList + page: "1" + size: "1" + total: "1" + item: + id: llmNteR4P7waRp5nJIReG + kind: serviceregistry + href: /api/serviceregistry_mgmt/v1/registries/llmNteR4P7waRp5nJIReG + name: sample-registry + status: ready + owner: some_id + registryUrl: https://somehost:433 + properties: + items: + items: + allOf: + - $ref: '#/components/schemas/RegistryRest' + type: array + type: object securitySchemes: Bearer: bearerFormat: JWT diff --git a/registrymgmt/apiv1/client/api_default.go b/registrymgmt/apiv1/client/api_default.go new file mode 100644 index 00000000..85520b27 --- /dev/null +++ b/registrymgmt/apiv1/client/api_default.go @@ -0,0 +1,145 @@ +/* + * Service Registry Fleet Manager + * + * Managed Service Registry cloud.redhat.com API Management API that lets you create new registry instances. Registry is a datastore for standard event schemas and API designs. Service Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Registry is an Managed version of upstream project called Apicurio Registry. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. + * + * API version: 0.0.4 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "bytes" + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" +) + +// Linger please +var ( + _ _context.Context +) + +type DefaultApi interface { + + /* + * GetSchema Get an OpenAPI schema for this API. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetSchemaRequest + */ + GetSchema(ctx _context.Context) ApiGetSchemaRequest + + /* + * GetSchemaExecute executes the request + * @return string + */ + GetSchemaExecute(r ApiGetSchemaRequest) (string, *_nethttp.Response, error) +} + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiGetSchemaRequest struct { + ctx _context.Context + ApiService DefaultApi +} + + +func (r ApiGetSchemaRequest) Execute() (string, *_nethttp.Response, error) { + return r.ApiService.GetSchemaExecute(r) +} + +/* + * GetSchema Get an OpenAPI schema for this API. + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @return ApiGetSchemaRequest + */ +func (a *DefaultApiService) GetSchema(ctx _context.Context) ApiGetSchemaRequest { + return ApiGetSchemaRequest{ + ApiService: a, + ctx: ctx, + } +} + +/* + * Execute executes the request + * @return string + */ +func (a *DefaultApiService) GetSchemaExecute(r ApiGetSchemaRequest) (string, *_nethttp.Response, error) { + var ( + localVarHTTPMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSchema") + if err != nil { + return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/openapi" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/registrymgmt/apiv1/client/api_registries.go b/registrymgmt/apiv1/client/api_registries.go index 57679f41..aefed042 100644 --- a/registrymgmt/apiv1/client/api_registries.go +++ b/registrymgmt/apiv1/client/api_registries.go @@ -36,9 +36,9 @@ type RegistriesApi interface { /* * CreateRegistryExecute executes the request - * @return Registry + * @return RegistryRest */ - CreateRegistryExecute(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) + CreateRegistryExecute(r ApiCreateRegistryRequest) (RegistryRest, *_nethttp.Response, error) /* * DeleteRegistry Delete a Registry @@ -63,9 +63,9 @@ type RegistriesApi interface { /* * GetRegistriesExecute executes the request - * @return RegistryRestList + * @return RegistryListRest */ - GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryRestList, *_nethttp.Response, error) + GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryListRest, *_nethttp.Response, error) /* * GetRegistry Get a Registry @@ -78,9 +78,9 @@ type RegistriesApi interface { /* * GetRegistryExecute executes the request - * @return Registry + * @return RegistryRest */ - GetRegistryExecute(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) + GetRegistryExecute(r ApiGetRegistryRequest) (RegistryRest, *_nethttp.Response, error) } // RegistriesApiService RegistriesApi service @@ -89,15 +89,15 @@ type RegistriesApiService service type ApiCreateRegistryRequest struct { ctx _context.Context ApiService RegistriesApi - registryCreate *RegistryCreate + registryCreateRest *RegistryCreateRest } -func (r ApiCreateRegistryRequest) RegistryCreate(registryCreate RegistryCreate) ApiCreateRegistryRequest { - r.registryCreate = ®istryCreate +func (r ApiCreateRegistryRequest) RegistryCreateRest(registryCreateRest RegistryCreateRest) ApiCreateRegistryRequest { + r.registryCreateRest = ®istryCreateRest return r } -func (r ApiCreateRegistryRequest) Execute() (Registry, *_nethttp.Response, error) { +func (r ApiCreateRegistryRequest) Execute() (RegistryRest, *_nethttp.Response, error) { return r.ApiService.CreateRegistryExecute(r) } @@ -115,16 +115,16 @@ func (a *RegistriesApiService) CreateRegistry(ctx _context.Context) ApiCreateReg /* * Execute executes the request - * @return Registry + * @return RegistryRest */ -func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) { +func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) (RegistryRest, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue Registry + localVarReturnValue RegistryRest ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.CreateRegistry") @@ -137,8 +137,8 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if r.registryCreate == nil { - return localVarReturnValue, nil, reportError("registryCreate is required and must be specified") + if r.registryCreateRest == nil { + return localVarReturnValue, nil, reportError("registryCreateRest is required and must be specified") } // to determine the Content-Type header @@ -159,7 +159,7 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.registryCreate + localVarPostBody = r.registryCreateRest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) if err != nil { return localVarReturnValue, nil, err @@ -183,7 +183,7 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 401 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -193,7 +193,7 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 403 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -203,7 +203,7 @@ func (a *RegistriesApiService) CreateRegistryExecute(r ApiCreateRegistryRequest) return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 500 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -269,7 +269,7 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) return nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/{id}" + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/registries/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -316,7 +316,7 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 401 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -326,7 +326,7 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) return localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 403 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -336,7 +336,7 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) return localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -353,17 +353,17 @@ func (a *RegistriesApiService) DeleteRegistryExecute(r ApiDeleteRegistryRequest) type ApiGetRegistriesRequest struct { ctx _context.Context ApiService RegistriesApi - page *string - size *string + page *int32 + size *int32 orderBy *string search *string } -func (r ApiGetRegistriesRequest) Page(page string) ApiGetRegistriesRequest { +func (r ApiGetRegistriesRequest) Page(page int32) ApiGetRegistriesRequest { r.page = &page return r } -func (r ApiGetRegistriesRequest) Size(size string) ApiGetRegistriesRequest { +func (r ApiGetRegistriesRequest) Size(size int32) ApiGetRegistriesRequest { r.size = &size return r } @@ -376,7 +376,7 @@ func (r ApiGetRegistriesRequest) Search(search string) ApiGetRegistriesRequest { return r } -func (r ApiGetRegistriesRequest) Execute() (RegistryRestList, *_nethttp.Response, error) { +func (r ApiGetRegistriesRequest) Execute() (RegistryListRest, *_nethttp.Response, error) { return r.ApiService.GetRegistriesExecute(r) } @@ -394,16 +394,16 @@ func (a *RegistriesApiService) GetRegistries(ctx _context.Context) ApiGetRegistr /* * Execute executes the request - * @return RegistryRestList + * @return RegistryListRest */ -func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryRestList, *_nethttp.Response, error) { +func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryListRest, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue RegistryRestList + localVarReturnValue RegistryListRest ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.GetRegistries") @@ -469,7 +469,7 @@ func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) ( error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 401 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -479,7 +479,7 @@ func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 403 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -489,7 +489,7 @@ func (a *RegistriesApiService) GetRegistriesExecute(r ApiGetRegistriesRequest) ( return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 500 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -519,7 +519,7 @@ type ApiGetRegistryRequest struct { } -func (r ApiGetRegistryRequest) Execute() (Registry, *_nethttp.Response, error) { +func (r ApiGetRegistryRequest) Execute() (RegistryRest, *_nethttp.Response, error) { return r.ApiService.GetRegistryExecute(r) } @@ -540,16 +540,16 @@ func (a *RegistriesApiService) GetRegistry(ctx _context.Context, id string) ApiG /* * Execute executes the request - * @return Registry + * @return RegistryRest */ -func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) { +func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (RegistryRest, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte - localVarReturnValue Registry + localVarReturnValue RegistryRest ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RegistriesApiService.GetRegistry") @@ -557,7 +557,7 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/{id}" + localVarPath := localBasePath + "/api/serviceregistry_mgmt/v1/registries/{id}" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", _neturl.PathEscape(parameterToString(r.id, "")), -1) localVarHeaderParams := make(map[string]string) @@ -604,7 +604,7 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi error: localVarHTTPResponse.Status, } if localVarHTTPResponse.StatusCode == 401 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -614,7 +614,7 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 403 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() @@ -624,7 +624,7 @@ func (a *RegistriesApiService) GetRegistryExecute(r ApiGetRegistryRequest) (Regi return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { - var v Error + var v ErrorRest err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) if err != nil { newErr.error = err.Error() diff --git a/registrymgmt/apiv1/client/client.go b/registrymgmt/apiv1/client/client.go index b7fd0290..1c10574e 100644 --- a/registrymgmt/apiv1/client/client.go +++ b/registrymgmt/apiv1/client/client.go @@ -49,6 +49,8 @@ type APIClient struct { // API Services + DefaultApi DefaultApi + RegistriesApi RegistriesApi } @@ -68,6 +70,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) c.RegistriesApi = (*RegistriesApiService)(&c.common) return c diff --git a/registrymgmt/apiv1/client/docs/DefaultApi.md b/registrymgmt/apiv1/client/docs/DefaultApi.md new file mode 100644 index 00000000..a8f9f7b0 --- /dev/null +++ b/registrymgmt/apiv1/client/docs/DefaultApi.md @@ -0,0 +1,68 @@ +# \DefaultApi + +All URIs are relative to *https://api.openshift.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSchema**](DefaultApi.md#GetSchema) | **Get** /api/serviceregistry_mgmt/v1/openapi | Get an OpenAPI schema for this API. + + + +## GetSchema + +> string GetSchema(ctx).Execute() + +Get an OpenAPI schema for this API. + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "./openapi" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + api_client := openapiclient.NewAPIClient(configuration) + resp, r, err := api_client.DefaultApi.GetSchema(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSchema``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSchema`: string + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSchema`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSchemaRequest struct via the builder pattern + + +### Return type + +**string** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **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) +[[Back to README]](../README.md) + diff --git a/registrymgmt/apiv1/client/docs/ErrorList.md b/registrymgmt/apiv1/client/docs/ErrorListRest.md similarity index 66% rename from registrymgmt/apiv1/client/docs/ErrorList.md rename to registrymgmt/apiv1/client/docs/ErrorListRest.md index 09c0bfbb..17cdb151 100644 --- a/registrymgmt/apiv1/client/docs/ErrorList.md +++ b/registrymgmt/apiv1/client/docs/ErrorListRest.md @@ -1,4 +1,4 @@ -# ErrorList +# ErrorListRest ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes **Page** | **int32** | | **Size** | **int32** | | **Total** | **int32** | | -**Items** | [**[]Error**](Error.md) | | +**Items** | [**[]ErrorRest**](ErrorRest.md) | | ## Methods -### NewErrorList +### NewErrorListRest -`func NewErrorList(kind string, page int32, size int32, total int32, items []Error, ) *ErrorList` +`func NewErrorListRest(kind string, page int32, size int32, total int32, items []ErrorRest, ) *ErrorListRest` -NewErrorList instantiates a new ErrorList object +NewErrorListRest instantiates a new ErrorListRest 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 -### NewErrorListWithDefaults +### NewErrorListRestWithDefaults -`func NewErrorListWithDefaults() *ErrorList` +`func NewErrorListRestWithDefaults() *ErrorListRest` -NewErrorListWithDefaults instantiates a new ErrorList object +NewErrorListRestWithDefaults instantiates a new ErrorListRest 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 ### GetKind -`func (o *ErrorList) GetKind() string` +`func (o *ErrorListRest) GetKind() string` GetKind returns the Kind field if non-nil, zero value otherwise. ### GetKindOk -`func (o *ErrorList) GetKindOk() (*string, bool)` +`func (o *ErrorListRest) GetKindOk() (*string, bool)` GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKind -`func (o *ErrorList) SetKind(v string)` +`func (o *ErrorListRest) SetKind(v string)` SetKind sets Kind field to given value. @@ -54,20 +54,20 @@ SetKind sets Kind field to given value. ### GetPage -`func (o *ErrorList) GetPage() int32` +`func (o *ErrorListRest) GetPage() int32` GetPage returns the Page field if non-nil, zero value otherwise. ### GetPageOk -`func (o *ErrorList) GetPageOk() (*int32, bool)` +`func (o *ErrorListRest) GetPageOk() (*int32, bool)` GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPage -`func (o *ErrorList) SetPage(v int32)` +`func (o *ErrorListRest) SetPage(v int32)` SetPage sets Page field to given value. @@ -75,20 +75,20 @@ SetPage sets Page field to given value. ### GetSize -`func (o *ErrorList) GetSize() int32` +`func (o *ErrorListRest) GetSize() int32` GetSize returns the Size field if non-nil, zero value otherwise. ### GetSizeOk -`func (o *ErrorList) GetSizeOk() (*int32, bool)` +`func (o *ErrorListRest) GetSizeOk() (*int32, bool)` GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSize -`func (o *ErrorList) SetSize(v int32)` +`func (o *ErrorListRest) SetSize(v int32)` SetSize sets Size field to given value. @@ -96,20 +96,20 @@ SetSize sets Size field to given value. ### GetTotal -`func (o *ErrorList) GetTotal() int32` +`func (o *ErrorListRest) GetTotal() int32` GetTotal returns the Total field if non-nil, zero value otherwise. ### GetTotalOk -`func (o *ErrorList) GetTotalOk() (*int32, bool)` +`func (o *ErrorListRest) GetTotalOk() (*int32, bool)` GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTotal -`func (o *ErrorList) SetTotal(v int32)` +`func (o *ErrorListRest) SetTotal(v int32)` SetTotal sets Total field to given value. @@ -117,20 +117,20 @@ SetTotal sets Total field to given value. ### GetItems -`func (o *ErrorList) GetItems() []Error` +`func (o *ErrorListRest) GetItems() []ErrorRest` GetItems returns the Items field if non-nil, zero value otherwise. ### GetItemsOk -`func (o *ErrorList) GetItemsOk() (*[]Error, bool)` +`func (o *ErrorListRest) GetItemsOk() (*[]ErrorRest, bool)` GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetItems -`func (o *ErrorList) SetItems(v []Error)` +`func (o *ErrorListRest) SetItems(v []ErrorRest)` SetItems sets Items field to given value. diff --git a/registrymgmt/apiv1/client/docs/ErrorListAllOf.md b/registrymgmt/apiv1/client/docs/ErrorListRestAllOf.md similarity index 61% rename from registrymgmt/apiv1/client/docs/ErrorListAllOf.md rename to registrymgmt/apiv1/client/docs/ErrorListRestAllOf.md index e16f28d5..99abde3c 100644 --- a/registrymgmt/apiv1/client/docs/ErrorListAllOf.md +++ b/registrymgmt/apiv1/client/docs/ErrorListRestAllOf.md @@ -1,54 +1,54 @@ -# ErrorListAllOf +# ErrorListRestAllOf ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]Error**](Error.md) | | [optional] +**Items** | Pointer to [**[]ErrorRest**](ErrorRest.md) | | [optional] ## Methods -### NewErrorListAllOf +### NewErrorListRestAllOf -`func NewErrorListAllOf() *ErrorListAllOf` +`func NewErrorListRestAllOf() *ErrorListRestAllOf` -NewErrorListAllOf instantiates a new ErrorListAllOf object +NewErrorListRestAllOf instantiates a new ErrorListRestAllOf 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 -### NewErrorListAllOfWithDefaults +### NewErrorListRestAllOfWithDefaults -`func NewErrorListAllOfWithDefaults() *ErrorListAllOf` +`func NewErrorListRestAllOfWithDefaults() *ErrorListRestAllOf` -NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf object +NewErrorListRestAllOfWithDefaults instantiates a new ErrorListRestAllOf 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 ### GetItems -`func (o *ErrorListAllOf) GetItems() []Error` +`func (o *ErrorListRestAllOf) GetItems() []ErrorRest` GetItems returns the Items field if non-nil, zero value otherwise. ### GetItemsOk -`func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool)` +`func (o *ErrorListRestAllOf) GetItemsOk() (*[]ErrorRest, bool)` GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetItems -`func (o *ErrorListAllOf) SetItems(v []Error)` +`func (o *ErrorListRestAllOf) SetItems(v []ErrorRest)` SetItems sets Items field to given value. ### HasItems -`func (o *ErrorListAllOf) HasItems() bool` +`func (o *ErrorListRestAllOf) HasItems() bool` HasItems returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/Error.md b/registrymgmt/apiv1/client/docs/ErrorRest.md similarity index 71% rename from registrymgmt/apiv1/client/docs/Error.md rename to registrymgmt/apiv1/client/docs/ErrorRest.md index e6af6fa9..efdcb854 100644 --- a/registrymgmt/apiv1/client/docs/Error.md +++ b/registrymgmt/apiv1/client/docs/ErrorRest.md @@ -1,4 +1,4 @@ -# Error +# ErrorRest ## Properties @@ -14,176 +14,176 @@ Name | Type | Description | Notes ## Methods -### NewError +### NewErrorRest -`func NewError() *Error` +`func NewErrorRest() *ErrorRest` -NewError instantiates a new Error object +NewErrorRest instantiates a new ErrorRest 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 -### NewErrorWithDefaults +### NewErrorRestWithDefaults -`func NewErrorWithDefaults() *Error` +`func NewErrorRestWithDefaults() *ErrorRest` -NewErrorWithDefaults instantiates a new Error object +NewErrorRestWithDefaults instantiates a new ErrorRest 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 *Error) GetId() string` +`func (o *ErrorRest) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *Error) GetIdOk() (*string, bool)` +`func (o *ErrorRest) 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 *Error) SetId(v string)` +`func (o *ErrorRest) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *Error) HasId() bool` +`func (o *ErrorRest) HasId() bool` HasId returns a boolean if a field has been set. ### GetKind -`func (o *Error) GetKind() string` +`func (o *ErrorRest) GetKind() string` GetKind returns the Kind field if non-nil, zero value otherwise. ### GetKindOk -`func (o *Error) GetKindOk() (*string, bool)` +`func (o *ErrorRest) GetKindOk() (*string, bool)` GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKind -`func (o *Error) SetKind(v string)` +`func (o *ErrorRest) SetKind(v string)` SetKind sets Kind field to given value. ### HasKind -`func (o *Error) HasKind() bool` +`func (o *ErrorRest) HasKind() bool` HasKind returns a boolean if a field has been set. ### GetHref -`func (o *Error) GetHref() string` +`func (o *ErrorRest) GetHref() string` GetHref returns the Href field if non-nil, zero value otherwise. ### GetHrefOk -`func (o *Error) GetHrefOk() (*string, bool)` +`func (o *ErrorRest) GetHrefOk() (*string, bool)` GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHref -`func (o *Error) SetHref(v string)` +`func (o *ErrorRest) SetHref(v string)` SetHref sets Href field to given value. ### HasHref -`func (o *Error) HasHref() bool` +`func (o *ErrorRest) HasHref() bool` HasHref returns a boolean if a field has been set. ### GetCode -`func (o *Error) GetCode() string` +`func (o *ErrorRest) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *Error) GetCodeOk() (*string, bool)` +`func (o *ErrorRest) 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 *Error) SetCode(v string)` +`func (o *ErrorRest) SetCode(v string)` SetCode sets Code field to given value. ### HasCode -`func (o *Error) HasCode() bool` +`func (o *ErrorRest) HasCode() bool` HasCode returns a boolean if a field has been set. ### GetReason -`func (o *Error) GetReason() string` +`func (o *ErrorRest) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *Error) GetReasonOk() (*string, bool)` +`func (o *ErrorRest) 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)` +`func (o *ErrorRest) SetReason(v string)` SetReason sets Reason field to given value. ### HasReason -`func (o *Error) HasReason() bool` +`func (o *ErrorRest) HasReason() bool` HasReason returns a boolean if a field has been set. ### GetOperationId -`func (o *Error) GetOperationId() string` +`func (o *ErrorRest) GetOperationId() string` GetOperationId returns the OperationId field if non-nil, zero value otherwise. ### GetOperationIdOk -`func (o *Error) GetOperationIdOk() (*string, bool)` +`func (o *ErrorRest) 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)` +`func (o *ErrorRest) SetOperationId(v string)` SetOperationId sets OperationId field to given value. ### HasOperationId -`func (o *Error) HasOperationId() bool` +`func (o *ErrorRest) HasOperationId() bool` HasOperationId returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/ErrorAllOf.md b/registrymgmt/apiv1/client/docs/ErrorRestAllOf.md similarity index 68% rename from registrymgmt/apiv1/client/docs/ErrorAllOf.md rename to registrymgmt/apiv1/client/docs/ErrorRestAllOf.md index c0c1a2b5..5ffedf09 100644 --- a/registrymgmt/apiv1/client/docs/ErrorAllOf.md +++ b/registrymgmt/apiv1/client/docs/ErrorRestAllOf.md @@ -1,4 +1,4 @@ -# ErrorAllOf +# ErrorRestAllOf ## Properties @@ -11,98 +11,98 @@ Name | Type | Description | Notes ## Methods -### NewErrorAllOf +### NewErrorRestAllOf -`func NewErrorAllOf() *ErrorAllOf` +`func NewErrorRestAllOf() *ErrorRestAllOf` -NewErrorAllOf instantiates a new ErrorAllOf object +NewErrorRestAllOf instantiates a new ErrorRestAllOf 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 +### NewErrorRestAllOfWithDefaults -`func NewErrorAllOfWithDefaults() *ErrorAllOf` +`func NewErrorRestAllOfWithDefaults() *ErrorRestAllOf` -NewErrorAllOfWithDefaults instantiates a new ErrorAllOf object +NewErrorRestAllOfWithDefaults instantiates a new ErrorRestAllOf 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 ### GetCode -`func (o *ErrorAllOf) GetCode() string` +`func (o *ErrorRestAllOf) GetCode() string` GetCode returns the Code field if non-nil, zero value otherwise. ### GetCodeOk -`func (o *ErrorAllOf) GetCodeOk() (*string, bool)` +`func (o *ErrorRestAllOf) 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)` +`func (o *ErrorRestAllOf) SetCode(v string)` SetCode sets Code field to given value. ### HasCode -`func (o *ErrorAllOf) HasCode() bool` +`func (o *ErrorRestAllOf) HasCode() bool` HasCode returns a boolean if a field has been set. ### GetReason -`func (o *ErrorAllOf) GetReason() string` +`func (o *ErrorRestAllOf) GetReason() string` GetReason returns the Reason field if non-nil, zero value otherwise. ### GetReasonOk -`func (o *ErrorAllOf) GetReasonOk() (*string, bool)` +`func (o *ErrorRestAllOf) 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)` +`func (o *ErrorRestAllOf) SetReason(v string)` SetReason sets Reason field to given value. ### HasReason -`func (o *ErrorAllOf) HasReason() bool` +`func (o *ErrorRestAllOf) HasReason() bool` HasReason returns a boolean if a field has been set. ### GetOperationId -`func (o *ErrorAllOf) GetOperationId() string` +`func (o *ErrorRestAllOf) GetOperationId() string` GetOperationId returns the OperationId field if non-nil, zero value otherwise. ### GetOperationIdOk -`func (o *ErrorAllOf) GetOperationIdOk() (*string, bool)` +`func (o *ErrorRestAllOf) 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)` +`func (o *ErrorRestAllOf) SetOperationId(v string)` SetOperationId sets OperationId field to given value. ### HasOperationId -`func (o *ErrorAllOf) HasOperationId() bool` +`func (o *ErrorRestAllOf) HasOperationId() bool` HasOperationId returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/List.md b/registrymgmt/apiv1/client/docs/ListRest.md similarity index 71% rename from registrymgmt/apiv1/client/docs/List.md rename to registrymgmt/apiv1/client/docs/ListRest.md index 40213442..90e009ab 100644 --- a/registrymgmt/apiv1/client/docs/List.md +++ b/registrymgmt/apiv1/client/docs/ListRest.md @@ -1,4 +1,4 @@ -# List +# ListRest ## Properties @@ -12,40 +12,40 @@ Name | Type | Description | Notes ## Methods -### NewList +### NewListRest -`func NewList(kind string, page int32, size int32, total int32, ) *List` +`func NewListRest(kind string, page int32, size int32, total int32, ) *ListRest` -NewList instantiates a new List object +NewListRest instantiates a new ListRest 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 -### NewListWithDefaults +### NewListRestWithDefaults -`func NewListWithDefaults() *List` +`func NewListRestWithDefaults() *ListRest` -NewListWithDefaults instantiates a new List object +NewListRestWithDefaults instantiates a new ListRest 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 ### GetKind -`func (o *List) GetKind() string` +`func (o *ListRest) GetKind() string` GetKind returns the Kind field if non-nil, zero value otherwise. ### GetKindOk -`func (o *List) GetKindOk() (*string, bool)` +`func (o *ListRest) GetKindOk() (*string, bool)` GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKind -`func (o *List) SetKind(v string)` +`func (o *ListRest) SetKind(v string)` SetKind sets Kind field to given value. @@ -53,20 +53,20 @@ SetKind sets Kind field to given value. ### GetPage -`func (o *List) GetPage() int32` +`func (o *ListRest) GetPage() int32` GetPage returns the Page field if non-nil, zero value otherwise. ### GetPageOk -`func (o *List) GetPageOk() (*int32, bool)` +`func (o *ListRest) GetPageOk() (*int32, bool)` GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPage -`func (o *List) SetPage(v int32)` +`func (o *ListRest) SetPage(v int32)` SetPage sets Page field to given value. @@ -74,20 +74,20 @@ SetPage sets Page field to given value. ### GetSize -`func (o *List) GetSize() int32` +`func (o *ListRest) GetSize() int32` GetSize returns the Size field if non-nil, zero value otherwise. ### GetSizeOk -`func (o *List) GetSizeOk() (*int32, bool)` +`func (o *ListRest) GetSizeOk() (*int32, bool)` GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSize -`func (o *List) SetSize(v int32)` +`func (o *ListRest) SetSize(v int32)` SetSize sets Size field to given value. @@ -95,20 +95,20 @@ SetSize sets Size field to given value. ### GetTotal -`func (o *List) GetTotal() int32` +`func (o *ListRest) GetTotal() int32` GetTotal returns the Total field if non-nil, zero value otherwise. ### GetTotalOk -`func (o *List) GetTotalOk() (*int32, bool)` +`func (o *ListRest) GetTotalOk() (*int32, bool)` GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTotal -`func (o *List) SetTotal(v int32)` +`func (o *ListRest) SetTotal(v int32)` SetTotal sets Total field to given value. diff --git a/registrymgmt/apiv1/client/docs/ObjectReference.md b/registrymgmt/apiv1/client/docs/ObjectReferenceRest.md similarity index 65% rename from registrymgmt/apiv1/client/docs/ObjectReference.md rename to registrymgmt/apiv1/client/docs/ObjectReferenceRest.md index f3840e9c..381fe419 100644 --- a/registrymgmt/apiv1/client/docs/ObjectReference.md +++ b/registrymgmt/apiv1/client/docs/ObjectReferenceRest.md @@ -1,4 +1,4 @@ -# ObjectReference +# ObjectReferenceRest ## Properties @@ -11,98 +11,98 @@ Name | Type | Description | Notes ## Methods -### NewObjectReference +### NewObjectReferenceRest -`func NewObjectReference() *ObjectReference` +`func NewObjectReferenceRest() *ObjectReferenceRest` -NewObjectReference instantiates a new ObjectReference object +NewObjectReferenceRest instantiates a new ObjectReferenceRest 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 -### NewObjectReferenceWithDefaults +### NewObjectReferenceRestWithDefaults -`func NewObjectReferenceWithDefaults() *ObjectReference` +`func NewObjectReferenceRestWithDefaults() *ObjectReferenceRest` -NewObjectReferenceWithDefaults instantiates a new ObjectReference object +NewObjectReferenceRestWithDefaults instantiates a new ObjectReferenceRest 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 *ObjectReference) GetId() string` +`func (o *ObjectReferenceRest) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ObjectReference) GetIdOk() (*string, bool)` +`func (o *ObjectReferenceRest) 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 *ObjectReference) SetId(v string)` +`func (o *ObjectReferenceRest) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *ObjectReference) HasId() bool` +`func (o *ObjectReferenceRest) HasId() bool` HasId returns a boolean if a field has been set. ### GetKind -`func (o *ObjectReference) GetKind() string` +`func (o *ObjectReferenceRest) GetKind() string` GetKind returns the Kind field if non-nil, zero value otherwise. ### GetKindOk -`func (o *ObjectReference) GetKindOk() (*string, bool)` +`func (o *ObjectReferenceRest) GetKindOk() (*string, bool)` GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKind -`func (o *ObjectReference) SetKind(v string)` +`func (o *ObjectReferenceRest) SetKind(v string)` SetKind sets Kind field to given value. ### HasKind -`func (o *ObjectReference) HasKind() bool` +`func (o *ObjectReferenceRest) HasKind() bool` HasKind returns a boolean if a field has been set. ### GetHref -`func (o *ObjectReference) GetHref() string` +`func (o *ObjectReferenceRest) GetHref() string` GetHref returns the Href field if non-nil, zero value otherwise. ### GetHrefOk -`func (o *ObjectReference) GetHrefOk() (*string, bool)` +`func (o *ObjectReferenceRest) GetHrefOk() (*string, bool)` GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHref -`func (o *ObjectReference) SetHref(v string)` +`func (o *ObjectReferenceRest) SetHref(v string)` SetHref sets Href field to given value. ### HasHref -`func (o *ObjectReference) HasHref() bool` +`func (o *ObjectReferenceRest) HasHref() bool` HasHref returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/RegistriesApi.md b/registrymgmt/apiv1/client/docs/RegistriesApi.md index 7e5681f6..f38d9ca7 100644 --- a/registrymgmt/apiv1/client/docs/RegistriesApi.md +++ b/registrymgmt/apiv1/client/docs/RegistriesApi.md @@ -5,15 +5,15 @@ All URIs are relative to *https://api.openshift.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateRegistry**](RegistriesApi.md#CreateRegistry) | **Post** /api/serviceregistry_mgmt/v1/registries | Create a new Registry instance -[**DeleteRegistry**](RegistriesApi.md#DeleteRegistry) | **Delete** /api/serviceregistry_mgmt/v1/{id} | Delete a Registry +[**DeleteRegistry**](RegistriesApi.md#DeleteRegistry) | **Delete** /api/serviceregistry_mgmt/v1/registries/{id} | Delete a Registry [**GetRegistries**](RegistriesApi.md#GetRegistries) | **Get** /api/serviceregistry_mgmt/v1/registries | Get the list of all registries. -[**GetRegistry**](RegistriesApi.md#GetRegistry) | **Get** /api/serviceregistry_mgmt/v1/{id} | Get a Registry +[**GetRegistry**](RegistriesApi.md#GetRegistry) | **Get** /api/serviceregistry_mgmt/v1/registries/{id} | Get a Registry ## CreateRegistry -> Registry CreateRegistry(ctx).RegistryCreate(registryCreate).Execute() +> RegistryRest CreateRegistry(ctx).RegistryCreateRest(registryCreateRest).Execute() Create a new Registry instance @@ -30,16 +30,16 @@ import ( ) func main() { - registryCreate := *openapiclient.NewRegistryCreate() // RegistryCreate | A new `Registry` to be created. + registryCreateRest := *openapiclient.NewRegistryCreateRest() // RegistryCreateRest | A new `Registry` to be created. configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.RegistriesApi.CreateRegistry(context.Background()).RegistryCreate(registryCreate).Execute() + resp, r, err := api_client.RegistriesApi.CreateRegistry(context.Background()).RegistryCreateRest(registryCreateRest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.CreateRegistry``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `CreateRegistry`: Registry + // response from `CreateRegistry`: RegistryRest fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.CreateRegistry`: %v\n", resp) } ``` @@ -55,11 +55,11 @@ Other parameters are passed through a pointer to a apiCreateRegistryRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **registryCreate** | [**RegistryCreate**](RegistryCreate.md) | A new `Registry` to be created. | + **registryCreateRest** | [**RegistryCreateRest**](RegistryCreateRest.md) | A new `Registry` to be created. | ### Return type -[**Registry**](Registry.md) +[**RegistryRest**](RegistryRest.md) ### Authorization @@ -145,7 +145,7 @@ Name | Type | Description | Notes ## GetRegistries -> RegistryRestList GetRegistries(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() +> RegistryListRest GetRegistries(ctx).Page(page).Size(size).OrderBy(orderBy).Search(search).Execute() Get the list of all registries. @@ -162,8 +162,8 @@ import ( ) func main() { - page := "1" // string | Page index (optional) - size := "100" // string | Number of items in each page (optional) + page := int32(1) // 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 kafkaRequests fields. For example, in order to retrieve all kafkas ordered by their name: ```sql name asc ``` Or in order to retrieve all kafkas 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, then the results will be ordered by name. (optional) search := "name = my-kafka and cloud_provider = aws" // 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: cloud_provider, name, owner, region and 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 kafka request with name equal `my-kafka` and region equal `aws`, the value should be: ``` name = my-kafka and cloud_provider = aws ``` To retrieve kafka 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, then all the kafkas that the user has permission to see will be returned. Note. If the query is invalid, an error will be returned (optional) @@ -174,7 +174,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.GetRegistries``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetRegistries`: RegistryRestList + // response from `GetRegistries`: RegistryListRest fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.GetRegistries`: %v\n", resp) } ``` @@ -190,14 +190,14 @@ Other parameters are passed through a pointer to a apiGetRegistriesRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **string** | Page index | - **size** | **string** | Number of items in each page | + **page** | **int32** | Page index | + **size** | **int32** | Number of items in each page | **orderBy** | **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 kafkaRequests fields. For example, in order to retrieve all kafkas ordered by their name: ```sql name asc ``` Or in order to retrieve all kafkas 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, then the results will be ordered by name. | **search** | **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: cloud_provider, name, owner, region and 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 kafka request with name equal `my-kafka` and region equal `aws`, the value should be: ``` name = my-kafka and cloud_provider = aws ``` To retrieve kafka 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, then all the kafkas that the user has permission to see will be returned. Note. If the query is invalid, an error will be returned | ### Return type -[**RegistryRestList**](RegistryRestList.md) +[**RegistryListRest**](RegistryListRest.md) ### Authorization @@ -215,7 +215,7 @@ Name | Type | Description | Notes ## GetRegistry -> Registry GetRegistry(ctx, id).Execute() +> RegistryRest GetRegistry(ctx, id).Execute() Get a Registry @@ -243,7 +243,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `RegistriesApi.GetRegistry``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetRegistry`: Registry + // response from `GetRegistry`: RegistryRest fmt.Fprintf(os.Stdout, "Response from `RegistriesApi.GetRegistry`: %v\n", resp) } ``` @@ -267,7 +267,7 @@ Name | Type | Description | Notes ### Return type -[**Registry**](Registry.md) +[**RegistryRest**](RegistryRest.md) ### Authorization diff --git a/registrymgmt/apiv1/client/docs/RegistryCreate.md b/registrymgmt/apiv1/client/docs/RegistryCreateRest.md similarity index 67% rename from registrymgmt/apiv1/client/docs/RegistryCreate.md rename to registrymgmt/apiv1/client/docs/RegistryCreateRest.md index bbeac276..9fafdca0 100644 --- a/registrymgmt/apiv1/client/docs/RegistryCreate.md +++ b/registrymgmt/apiv1/client/docs/RegistryCreateRest.md @@ -1,4 +1,4 @@ -# RegistryCreate +# RegistryCreateRest ## Properties @@ -9,46 +9,46 @@ Name | Type | Description | Notes ## Methods -### NewRegistryCreate +### NewRegistryCreateRest -`func NewRegistryCreate() *RegistryCreate` +`func NewRegistryCreateRest() *RegistryCreateRest` -NewRegistryCreate instantiates a new RegistryCreate object +NewRegistryCreateRest instantiates a new RegistryCreateRest 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 -### NewRegistryCreateWithDefaults +### NewRegistryCreateRestWithDefaults -`func NewRegistryCreateWithDefaults() *RegistryCreate` +`func NewRegistryCreateRestWithDefaults() *RegistryCreateRest` -NewRegistryCreateWithDefaults instantiates a new RegistryCreate object +NewRegistryCreateRestWithDefaults instantiates a new RegistryCreateRest 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 ### GetName -`func (o *RegistryCreate) GetName() string` +`func (o *RegistryCreateRest) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *RegistryCreate) GetNameOk() (*string, bool)` +`func (o *RegistryCreateRest) GetNameOk() (*string, bool)` GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetName -`func (o *RegistryCreate) SetName(v string)` +`func (o *RegistryCreateRest) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *RegistryCreate) HasName() bool` +`func (o *RegistryCreateRest) HasName() bool` HasName returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/RegistryRestList.md b/registrymgmt/apiv1/client/docs/RegistryListRest.md similarity index 64% rename from registrymgmt/apiv1/client/docs/RegistryRestList.md rename to registrymgmt/apiv1/client/docs/RegistryListRest.md index ad397751..48d65259 100644 --- a/registrymgmt/apiv1/client/docs/RegistryRestList.md +++ b/registrymgmt/apiv1/client/docs/RegistryListRest.md @@ -1,4 +1,4 @@ -# RegistryRestList +# RegistryListRest ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes **Page** | **int32** | | **Size** | **int32** | | **Total** | **int32** | | -**Items** | [**[]Registry**](Registry.md) | | +**Items** | [**[]RegistryRest**](RegistryRest.md) | | ## Methods -### NewRegistryRestList +### NewRegistryListRest -`func NewRegistryRestList(kind string, page int32, size int32, total int32, items []Registry, ) *RegistryRestList` +`func NewRegistryListRest(kind string, page int32, size int32, total int32, items []RegistryRest, ) *RegistryListRest` -NewRegistryRestList instantiates a new RegistryRestList object +NewRegistryListRest instantiates a new RegistryListRest 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 -### NewRegistryRestListWithDefaults +### NewRegistryListRestWithDefaults -`func NewRegistryRestListWithDefaults() *RegistryRestList` +`func NewRegistryListRestWithDefaults() *RegistryListRest` -NewRegistryRestListWithDefaults instantiates a new RegistryRestList object +NewRegistryListRestWithDefaults instantiates a new RegistryListRest 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 ### GetKind -`func (o *RegistryRestList) GetKind() string` +`func (o *RegistryListRest) GetKind() string` GetKind returns the Kind field if non-nil, zero value otherwise. ### GetKindOk -`func (o *RegistryRestList) GetKindOk() (*string, bool)` +`func (o *RegistryListRest) GetKindOk() (*string, bool)` GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKind -`func (o *RegistryRestList) SetKind(v string)` +`func (o *RegistryListRest) SetKind(v string)` SetKind sets Kind field to given value. @@ -54,20 +54,20 @@ SetKind sets Kind field to given value. ### GetPage -`func (o *RegistryRestList) GetPage() int32` +`func (o *RegistryListRest) GetPage() int32` GetPage returns the Page field if non-nil, zero value otherwise. ### GetPageOk -`func (o *RegistryRestList) GetPageOk() (*int32, bool)` +`func (o *RegistryListRest) GetPageOk() (*int32, bool)` GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPage -`func (o *RegistryRestList) SetPage(v int32)` +`func (o *RegistryListRest) SetPage(v int32)` SetPage sets Page field to given value. @@ -75,20 +75,20 @@ SetPage sets Page field to given value. ### GetSize -`func (o *RegistryRestList) GetSize() int32` +`func (o *RegistryListRest) GetSize() int32` GetSize returns the Size field if non-nil, zero value otherwise. ### GetSizeOk -`func (o *RegistryRestList) GetSizeOk() (*int32, bool)` +`func (o *RegistryListRest) GetSizeOk() (*int32, bool)` GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSize -`func (o *RegistryRestList) SetSize(v int32)` +`func (o *RegistryListRest) SetSize(v int32)` SetSize sets Size field to given value. @@ -96,20 +96,20 @@ SetSize sets Size field to given value. ### GetTotal -`func (o *RegistryRestList) GetTotal() int32` +`func (o *RegistryListRest) GetTotal() int32` GetTotal returns the Total field if non-nil, zero value otherwise. ### GetTotalOk -`func (o *RegistryRestList) GetTotalOk() (*int32, bool)` +`func (o *RegistryListRest) GetTotalOk() (*int32, bool)` GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTotal -`func (o *RegistryRestList) SetTotal(v int32)` +`func (o *RegistryListRest) SetTotal(v int32)` SetTotal sets Total field to given value. @@ -117,20 +117,20 @@ SetTotal sets Total field to given value. ### GetItems -`func (o *RegistryRestList) GetItems() []Registry` +`func (o *RegistryListRest) GetItems() []RegistryRest` GetItems returns the Items field if non-nil, zero value otherwise. ### GetItemsOk -`func (o *RegistryRestList) GetItemsOk() (*[]Registry, bool)` +`func (o *RegistryListRest) GetItemsOk() (*[]RegistryRest, bool)` GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetItems -`func (o *RegistryRestList) SetItems(v []Registry)` +`func (o *RegistryListRest) SetItems(v []RegistryRest)` SetItems sets Items field to given value. diff --git a/registrymgmt/apiv1/client/docs/RegistryRestListAllOf.md b/registrymgmt/apiv1/client/docs/RegistryListRestAllOf.md similarity index 60% rename from registrymgmt/apiv1/client/docs/RegistryRestListAllOf.md rename to registrymgmt/apiv1/client/docs/RegistryListRestAllOf.md index 48ebb830..96e8dbf6 100644 --- a/registrymgmt/apiv1/client/docs/RegistryRestListAllOf.md +++ b/registrymgmt/apiv1/client/docs/RegistryListRestAllOf.md @@ -1,54 +1,54 @@ -# RegistryRestListAllOf +# RegistryListRestAllOf ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Items** | Pointer to [**[]Registry**](Registry.md) | | [optional] +**Items** | Pointer to [**[]RegistryRest**](RegistryRest.md) | | [optional] ## Methods -### NewRegistryRestListAllOf +### NewRegistryListRestAllOf -`func NewRegistryRestListAllOf() *RegistryRestListAllOf` +`func NewRegistryListRestAllOf() *RegistryListRestAllOf` -NewRegistryRestListAllOf instantiates a new RegistryRestListAllOf object +NewRegistryListRestAllOf instantiates a new RegistryListRestAllOf 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 -### NewRegistryRestListAllOfWithDefaults +### NewRegistryListRestAllOfWithDefaults -`func NewRegistryRestListAllOfWithDefaults() *RegistryRestListAllOf` +`func NewRegistryListRestAllOfWithDefaults() *RegistryListRestAllOf` -NewRegistryRestListAllOfWithDefaults instantiates a new RegistryRestListAllOf object +NewRegistryListRestAllOfWithDefaults instantiates a new RegistryListRestAllOf 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 ### GetItems -`func (o *RegistryRestListAllOf) GetItems() []Registry` +`func (o *RegistryListRestAllOf) GetItems() []RegistryRest` GetItems returns the Items field if non-nil, zero value otherwise. ### GetItemsOk -`func (o *RegistryRestListAllOf) GetItemsOk() (*[]Registry, bool)` +`func (o *RegistryListRestAllOf) GetItemsOk() (*[]RegistryRest, bool)` GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetItems -`func (o *RegistryRestListAllOf) SetItems(v []Registry)` +`func (o *RegistryListRestAllOf) SetItems(v []RegistryRest)` SetItems sets Items field to given value. ### HasItems -`func (o *RegistryRestListAllOf) HasItems() bool` +`func (o *RegistryListRestAllOf) HasItems() bool` HasItems returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/Registry.md b/registrymgmt/apiv1/client/docs/RegistryRest.md similarity index 68% rename from registrymgmt/apiv1/client/docs/Registry.md rename to registrymgmt/apiv1/client/docs/RegistryRest.md index c5f3f313..b8b2258c 100644 --- a/registrymgmt/apiv1/client/docs/Registry.md +++ b/registrymgmt/apiv1/client/docs/RegistryRest.md @@ -1,4 +1,4 @@ -# Registry +# RegistryRest ## Properties @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **string** | | **Kind** | Pointer to **string** | | [optional] **Href** | Pointer to **string** | | [optional] -**Status** | [**RegistryStatusValue**](RegistryStatusValue.md) | | +**Status** | [**RegistryStatusValueRest**](RegistryStatusValueRest.md) | | **RegistryUrl** | **string** | | **Name** | Pointer to **string** | User-defined Registry name. Does not have to be unique. | [optional] **RegistryDeploymentId** | Pointer to **int32** | Identifier of a multi-tenant deployment, where this Service Registry instance resides. | [optional] @@ -15,40 +15,40 @@ Name | Type | Description | Notes ## Methods -### NewRegistry +### NewRegistryRest -`func NewRegistry(id string, status RegistryStatusValue, registryUrl string, ) *Registry` +`func NewRegistryRest(id string, status RegistryStatusValueRest, registryUrl string, ) *RegistryRest` -NewRegistry instantiates a new Registry object +NewRegistryRest instantiates a new RegistryRest 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 -### NewRegistryWithDefaults +### NewRegistryRestWithDefaults -`func NewRegistryWithDefaults() *Registry` +`func NewRegistryRestWithDefaults() *RegistryRest` -NewRegistryWithDefaults instantiates a new Registry object +NewRegistryRestWithDefaults instantiates a new RegistryRest 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 *Registry) GetId() string` +`func (o *RegistryRest) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *Registry) GetIdOk() (*string, bool)` +`func (o *RegistryRest) 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 *Registry) SetId(v string)` +`func (o *RegistryRest) SetId(v string)` SetId sets Id field to given value. @@ -56,72 +56,72 @@ SetId sets Id field to given value. ### GetKind -`func (o *Registry) GetKind() string` +`func (o *RegistryRest) GetKind() string` GetKind returns the Kind field if non-nil, zero value otherwise. ### GetKindOk -`func (o *Registry) GetKindOk() (*string, bool)` +`func (o *RegistryRest) GetKindOk() (*string, bool)` GetKindOk returns a tuple with the Kind field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetKind -`func (o *Registry) SetKind(v string)` +`func (o *RegistryRest) SetKind(v string)` SetKind sets Kind field to given value. ### HasKind -`func (o *Registry) HasKind() bool` +`func (o *RegistryRest) HasKind() bool` HasKind returns a boolean if a field has been set. ### GetHref -`func (o *Registry) GetHref() string` +`func (o *RegistryRest) GetHref() string` GetHref returns the Href field if non-nil, zero value otherwise. ### GetHrefOk -`func (o *Registry) GetHrefOk() (*string, bool)` +`func (o *RegistryRest) GetHrefOk() (*string, bool)` GetHrefOk returns a tuple with the Href field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHref -`func (o *Registry) SetHref(v string)` +`func (o *RegistryRest) SetHref(v string)` SetHref sets Href field to given value. ### HasHref -`func (o *Registry) HasHref() bool` +`func (o *RegistryRest) HasHref() bool` HasHref returns a boolean if a field has been set. ### GetStatus -`func (o *Registry) GetStatus() RegistryStatusValue` +`func (o *RegistryRest) GetStatus() RegistryStatusValueRest` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *Registry) GetStatusOk() (*RegistryStatusValue, bool)` +`func (o *RegistryRest) GetStatusOk() (*RegistryStatusValueRest, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *Registry) SetStatus(v RegistryStatusValue)` +`func (o *RegistryRest) SetStatus(v RegistryStatusValueRest)` SetStatus sets Status field to given value. @@ -129,20 +129,20 @@ SetStatus sets Status field to given value. ### GetRegistryUrl -`func (o *Registry) GetRegistryUrl() string` +`func (o *RegistryRest) GetRegistryUrl() string` GetRegistryUrl returns the RegistryUrl field if non-nil, zero value otherwise. ### GetRegistryUrlOk -`func (o *Registry) GetRegistryUrlOk() (*string, bool)` +`func (o *RegistryRest) GetRegistryUrlOk() (*string, bool)` GetRegistryUrlOk returns a tuple with the RegistryUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegistryUrl -`func (o *Registry) SetRegistryUrl(v string)` +`func (o *RegistryRest) SetRegistryUrl(v string)` SetRegistryUrl sets RegistryUrl field to given value. @@ -150,52 +150,52 @@ SetRegistryUrl sets RegistryUrl field to given value. ### GetName -`func (o *Registry) GetName() string` +`func (o *RegistryRest) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *Registry) GetNameOk() (*string, bool)` +`func (o *RegistryRest) GetNameOk() (*string, bool)` GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetName -`func (o *Registry) SetName(v string)` +`func (o *RegistryRest) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *Registry) HasName() bool` +`func (o *RegistryRest) HasName() bool` HasName returns a boolean if a field has been set. ### GetRegistryDeploymentId -`func (o *Registry) GetRegistryDeploymentId() int32` +`func (o *RegistryRest) GetRegistryDeploymentId() int32` GetRegistryDeploymentId returns the RegistryDeploymentId field if non-nil, zero value otherwise. ### GetRegistryDeploymentIdOk -`func (o *Registry) GetRegistryDeploymentIdOk() (*int32, bool)` +`func (o *RegistryRest) GetRegistryDeploymentIdOk() (*int32, bool)` GetRegistryDeploymentIdOk returns a tuple with the RegistryDeploymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegistryDeploymentId -`func (o *Registry) SetRegistryDeploymentId(v int32)` +`func (o *RegistryRest) SetRegistryDeploymentId(v int32)` SetRegistryDeploymentId sets RegistryDeploymentId field to given value. ### HasRegistryDeploymentId -`func (o *Registry) HasRegistryDeploymentId() bool` +`func (o *RegistryRest) HasRegistryDeploymentId() bool` HasRegistryDeploymentId returns a boolean if a field has been set. diff --git a/registrymgmt/apiv1/client/docs/RegistryStatus.md b/registrymgmt/apiv1/client/docs/RegistryStatus.md deleted file mode 100644 index c7fde322..00000000 --- a/registrymgmt/apiv1/client/docs/RegistryStatus.md +++ /dev/null @@ -1,75 +0,0 @@ -# RegistryStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**LastUpdated** | **time.Time** | ISO 8601 UTC timestamp. | -**Value** | [**RegistryStatusValue**](RegistryStatusValue.md) | | - - -## Methods - -### NewRegistryStatus - -`func NewRegistryStatus(lastUpdated time.Time, value RegistryStatusValue, ) *RegistryStatus` - -NewRegistryStatus instantiates a new RegistryStatus 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 - -### NewRegistryStatusWithDefaults - -`func NewRegistryStatusWithDefaults() *RegistryStatus` - -NewRegistryStatusWithDefaults instantiates a new RegistryStatus 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 - - -### GetLastUpdated - -`func (o *RegistryStatus) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *RegistryStatus) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *RegistryStatus) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - - -### GetValue - -`func (o *RegistryStatus) GetValue() RegistryStatusValue` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *RegistryStatus) GetValueOk() (*RegistryStatusValue, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *RegistryStatus) SetValue(v RegistryStatusValue)` - -SetValue sets Value 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/RegistryStatusValue.md b/registrymgmt/apiv1/client/docs/RegistryStatusValueRest.md similarity index 92% rename from registrymgmt/apiv1/client/docs/RegistryStatusValue.md rename to registrymgmt/apiv1/client/docs/RegistryStatusValueRest.md index 5ee38483..6e929624 100644 --- a/registrymgmt/apiv1/client/docs/RegistryStatusValue.md +++ b/registrymgmt/apiv1/client/docs/RegistryStatusValueRest.md @@ -1,4 +1,4 @@ -# RegistryStatusValue +# RegistryStatusValueRest ## Enum diff --git a/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md b/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md index d494afc6..697971f4 100644 --- a/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md +++ b/registrymgmt/apiv1/client/docs/RootTypeForRegistry.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | | -**Status** | [**RegistryStatusValue**](RegistryStatusValue.md) | | +**Status** | [**RegistryStatusValueRest**](RegistryStatusValueRest.md) | | **RegistryUrl** | **string** | | **Name** | Pointer to **string** | User-defined Registry name. Does not have to be unique. | [optional] **RegistryDeploymentId** | Pointer to **int32** | Identifier of a multi-tenant deployment, where this Service Registry instance resides. | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewRootTypeForRegistry -`func NewRootTypeForRegistry(id string, status RegistryStatusValue, registryUrl string, ) *RootTypeForRegistry` +`func NewRootTypeForRegistry(id string, status RegistryStatusValueRest, registryUrl string, ) *RootTypeForRegistry` NewRootTypeForRegistry instantiates a new RootTypeForRegistry object This constructor will assign default values to properties that have it defined, @@ -54,20 +54,20 @@ SetId sets Id field to given value. ### GetStatus -`func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue` +`func (o *RootTypeForRegistry) GetStatus() RegistryStatusValueRest` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValue, bool)` +`func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValueRest, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *RootTypeForRegistry) SetStatus(v RegistryStatusValue)` +`func (o *RootTypeForRegistry) SetStatus(v RegistryStatusValueRest)` SetStatus sets Status field to given value. diff --git a/registrymgmt/apiv1/client/model_error_list.go b/registrymgmt/apiv1/client/model_error_list_rest.go similarity index 68% rename from registrymgmt/apiv1/client/model_error_list.go rename to registrymgmt/apiv1/client/model_error_list_rest.go index 4bc8b52b..88d59f3d 100644 --- a/registrymgmt/apiv1/client/model_error_list.go +++ b/registrymgmt/apiv1/client/model_error_list_rest.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// ErrorList struct for ErrorList -type ErrorList struct { +// ErrorListRest struct for ErrorListRest +type ErrorListRest struct { Kind string `json:"kind"` @@ -26,16 +26,16 @@ type ErrorList struct { Total int32 `json:"total"` - Items []Error `json:"items"` + Items []ErrorRest `json:"items"` } -// NewErrorList instantiates a new ErrorList object +// NewErrorListRest instantiates a new ErrorListRest 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 NewErrorList(kind string, page int32, size int32, total int32, items []Error) *ErrorList { - this := ErrorList{} +func NewErrorListRest(kind string, page int32, size int32, total int32, items []ErrorRest) *ErrorListRest { + this := ErrorListRest{} this.Kind = kind this.Page = page this.Size = size @@ -44,11 +44,11 @@ func NewErrorList(kind string, page int32, size int32, total int32, items []Erro return &this } -// NewErrorListWithDefaults instantiates a new ErrorList object +// NewErrorListRestWithDefaults instantiates a new ErrorListRest 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 NewErrorListWithDefaults() *ErrorList { - this := ErrorList{} +func NewErrorListRestWithDefaults() *ErrorListRest { + this := ErrorListRest{} @@ -60,7 +60,7 @@ func NewErrorListWithDefaults() *ErrorList { // GetKind returns the Kind field value -func (o *ErrorList) GetKind() string { +func (o *ErrorListRest) GetKind() string { if o == nil { var ret string return ret @@ -71,7 +71,7 @@ func (o *ErrorList) GetKind() string { // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. -func (o *ErrorList) GetKindOk() (*string, bool) { +func (o *ErrorListRest) GetKindOk() (*string, bool) { if o == nil { return nil, false } @@ -79,13 +79,13 @@ func (o *ErrorList) GetKindOk() (*string, bool) { } // SetKind sets field value -func (o *ErrorList) SetKind(v string) { +func (o *ErrorListRest) SetKind(v string) { o.Kind = v } // GetPage returns the Page field value -func (o *ErrorList) GetPage() int32 { +func (o *ErrorListRest) GetPage() int32 { if o == nil { var ret int32 return ret @@ -96,7 +96,7 @@ func (o *ErrorList) GetPage() int32 { // GetPageOk returns a tuple with the Page field value // and a boolean to check if the value has been set. -func (o *ErrorList) GetPageOk() (*int32, bool) { +func (o *ErrorListRest) GetPageOk() (*int32, bool) { if o == nil { return nil, false } @@ -104,13 +104,13 @@ func (o *ErrorList) GetPageOk() (*int32, bool) { } // SetPage sets field value -func (o *ErrorList) SetPage(v int32) { +func (o *ErrorListRest) SetPage(v int32) { o.Page = v } // GetSize returns the Size field value -func (o *ErrorList) GetSize() int32 { +func (o *ErrorListRest) GetSize() int32 { if o == nil { var ret int32 return ret @@ -121,7 +121,7 @@ func (o *ErrorList) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value // and a boolean to check if the value has been set. -func (o *ErrorList) GetSizeOk() (*int32, bool) { +func (o *ErrorListRest) GetSizeOk() (*int32, bool) { if o == nil { return nil, false } @@ -129,13 +129,13 @@ func (o *ErrorList) GetSizeOk() (*int32, bool) { } // SetSize sets field value -func (o *ErrorList) SetSize(v int32) { +func (o *ErrorListRest) SetSize(v int32) { o.Size = v } // GetTotal returns the Total field value -func (o *ErrorList) GetTotal() int32 { +func (o *ErrorListRest) GetTotal() int32 { if o == nil { var ret int32 return ret @@ -146,7 +146,7 @@ func (o *ErrorList) GetTotal() int32 { // GetTotalOk returns a tuple with the Total field value // and a boolean to check if the value has been set. -func (o *ErrorList) GetTotalOk() (*int32, bool) { +func (o *ErrorListRest) GetTotalOk() (*int32, bool) { if o == nil { return nil, false } @@ -154,15 +154,15 @@ func (o *ErrorList) GetTotalOk() (*int32, bool) { } // SetTotal sets field value -func (o *ErrorList) SetTotal(v int32) { +func (o *ErrorListRest) SetTotal(v int32) { o.Total = v } // GetItems returns the Items field value -func (o *ErrorList) GetItems() []Error { +func (o *ErrorListRest) GetItems() []ErrorRest { if o == nil { - var ret []Error + var ret []ErrorRest return ret } @@ -171,7 +171,7 @@ func (o *ErrorList) GetItems() []Error { // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. -func (o *ErrorList) GetItemsOk() (*[]Error, bool) { +func (o *ErrorListRest) GetItemsOk() (*[]ErrorRest, bool) { if o == nil { return nil, false } @@ -179,12 +179,12 @@ func (o *ErrorList) GetItemsOk() (*[]Error, bool) { } // SetItems sets field value -func (o *ErrorList) SetItems(v []Error) { +func (o *ErrorListRest) SetItems(v []ErrorRest) { o.Items = v } -func (o ErrorList) MarshalJSON() ([]byte, error) { +func (o ErrorListRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -210,38 +210,38 @@ func (o ErrorList) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableErrorList struct { - value *ErrorList +type NullableErrorListRest struct { + value *ErrorListRest isSet bool } -func (v NullableErrorList) Get() *ErrorList { +func (v NullableErrorListRest) Get() *ErrorListRest { return v.value } -func (v *NullableErrorList) Set(val *ErrorList) { +func (v *NullableErrorListRest) Set(val *ErrorListRest) { v.value = val v.isSet = true } -func (v NullableErrorList) IsSet() bool { +func (v NullableErrorListRest) IsSet() bool { return v.isSet } -func (v *NullableErrorList) Unset() { +func (v *NullableErrorListRest) Unset() { v.value = nil v.isSet = false } -func NewNullableErrorList(val *ErrorList) *NullableErrorList { - return &NullableErrorList{value: val, isSet: true} +func NewNullableErrorListRest(val *ErrorListRest) *NullableErrorListRest { + return &NullableErrorListRest{value: val, isSet: true} } -func (v NullableErrorList) MarshalJSON() ([]byte, error) { +func (v NullableErrorListRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableErrorList) UnmarshalJSON(src []byte) error { +func (v *NullableErrorListRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_error_list_all_of.go b/registrymgmt/apiv1/client/model_error_list_rest_all_of.go similarity index 60% rename from registrymgmt/apiv1/client/model_error_list_all_of.go rename to registrymgmt/apiv1/client/model_error_list_rest_all_of.go index 380f2059..c97d5de4 100644 --- a/registrymgmt/apiv1/client/model_error_list_all_of.go +++ b/registrymgmt/apiv1/client/model_error_list_rest_all_of.go @@ -15,27 +15,27 @@ import ( "encoding/json" ) -// ErrorListAllOf struct for ErrorListAllOf -type ErrorListAllOf struct { +// ErrorListRestAllOf struct for ErrorListRestAllOf +type ErrorListRestAllOf struct { - Items *[]Error `json:"items,omitempty"` + Items *[]ErrorRest `json:"items,omitempty"` } -// NewErrorListAllOf instantiates a new ErrorListAllOf object +// NewErrorListRestAllOf instantiates a new ErrorListRestAllOf 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 NewErrorListAllOf() *ErrorListAllOf { - this := ErrorListAllOf{} +func NewErrorListRestAllOf() *ErrorListRestAllOf { + this := ErrorListRestAllOf{} return &this } -// NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf object +// NewErrorListRestAllOfWithDefaults instantiates a new ErrorListRestAllOf 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 NewErrorListAllOfWithDefaults() *ErrorListAllOf { - this := ErrorListAllOf{} +func NewErrorListRestAllOfWithDefaults() *ErrorListRestAllOf { + this := ErrorListRestAllOf{} return &this @@ -43,9 +43,9 @@ func NewErrorListAllOfWithDefaults() *ErrorListAllOf { // GetItems returns the Items field value if set, zero value otherwise. -func (o *ErrorListAllOf) GetItems() []Error { +func (o *ErrorListRestAllOf) GetItems() []ErrorRest { if o == nil || o.Items == nil { - var ret []Error + var ret []ErrorRest return ret } return *o.Items @@ -53,7 +53,7 @@ func (o *ErrorListAllOf) GetItems() []Error { // GetItemsOk returns a tuple with the Items field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { +func (o *ErrorListRestAllOf) GetItemsOk() (*[]ErrorRest, bool) { if o == nil || o.Items == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *ErrorListAllOf) GetItemsOk() (*[]Error, bool) { } // HasItems returns a boolean if a field has been set. -func (o *ErrorListAllOf) HasItems() bool { +func (o *ErrorListRestAllOf) HasItems() bool { if o != nil && o.Items != nil { return true } @@ -69,13 +69,13 @@ func (o *ErrorListAllOf) HasItems() bool { return false } -// SetItems gets a reference to the given []Error and assigns it to the Items field. -func (o *ErrorListAllOf) SetItems(v []Error) { +// SetItems gets a reference to the given []ErrorRest and assigns it to the Items field. +func (o *ErrorListRestAllOf) SetItems(v []ErrorRest) { o.Items = &v } -func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { +func (o ErrorListRestAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Items != nil { @@ -85,38 +85,38 @@ func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableErrorListAllOf struct { - value *ErrorListAllOf +type NullableErrorListRestAllOf struct { + value *ErrorListRestAllOf isSet bool } -func (v NullableErrorListAllOf) Get() *ErrorListAllOf { +func (v NullableErrorListRestAllOf) Get() *ErrorListRestAllOf { return v.value } -func (v *NullableErrorListAllOf) Set(val *ErrorListAllOf) { +func (v *NullableErrorListRestAllOf) Set(val *ErrorListRestAllOf) { v.value = val v.isSet = true } -func (v NullableErrorListAllOf) IsSet() bool { +func (v NullableErrorListRestAllOf) IsSet() bool { return v.isSet } -func (v *NullableErrorListAllOf) Unset() { +func (v *NullableErrorListRestAllOf) Unset() { v.value = nil v.isSet = false } -func NewNullableErrorListAllOf(val *ErrorListAllOf) *NullableErrorListAllOf { - return &NullableErrorListAllOf{value: val, isSet: true} +func NewNullableErrorListRestAllOf(val *ErrorListRestAllOf) *NullableErrorListRestAllOf { + return &NullableErrorListRestAllOf{value: val, isSet: true} } -func (v NullableErrorListAllOf) MarshalJSON() ([]byte, error) { +func (v NullableErrorListRestAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableErrorListAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableErrorListRestAllOf) 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_rest.go similarity index 76% rename from registrymgmt/apiv1/client/model_error.go rename to registrymgmt/apiv1/client/model_error_rest.go index 8b80ca13..defc615c 100644 --- a/registrymgmt/apiv1/client/model_error.go +++ b/registrymgmt/apiv1/client/model_error_rest.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// Error struct for Error -type Error struct { +// ErrorRest struct for ErrorRest +type ErrorRest struct { Id *string `json:"id,omitempty"` @@ -32,20 +32,20 @@ type Error struct { } -// NewError instantiates a new Error object +// NewErrorRest instantiates a new ErrorRest 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 NewError() *Error { - this := Error{} +func NewErrorRest() *ErrorRest { + this := ErrorRest{} return &this } -// NewErrorWithDefaults instantiates a new Error object +// NewErrorRestWithDefaults instantiates a new ErrorRest 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 NewErrorWithDefaults() *Error { - this := Error{} +func NewErrorRestWithDefaults() *ErrorRest { + this := ErrorRest{} @@ -58,7 +58,7 @@ func NewErrorWithDefaults() *Error { // GetId returns the Id field value if set, zero value otherwise. -func (o *Error) GetId() string { +func (o *ErrorRest) GetId() string { if o == nil || o.Id == nil { var ret string return ret @@ -68,7 +68,7 @@ func (o *Error) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Error) GetIdOk() (*string, bool) { +func (o *ErrorRest) GetIdOk() (*string, bool) { if o == nil || o.Id == nil { return nil, false } @@ -76,7 +76,7 @@ func (o *Error) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *Error) HasId() bool { +func (o *ErrorRest) HasId() bool { if o != nil && o.Id != nil { return true } @@ -85,13 +85,13 @@ func (o *Error) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *Error) SetId(v string) { +func (o *ErrorRest) SetId(v string) { o.Id = &v } // GetKind returns the Kind field value if set, zero value otherwise. -func (o *Error) GetKind() string { +func (o *ErrorRest) GetKind() string { if o == nil || o.Kind == nil { var ret string return ret @@ -101,7 +101,7 @@ func (o *Error) GetKind() string { // GetKindOk returns a tuple with the Kind field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Error) GetKindOk() (*string, bool) { +func (o *ErrorRest) GetKindOk() (*string, bool) { if o == nil || o.Kind == nil { return nil, false } @@ -109,7 +109,7 @@ func (o *Error) GetKindOk() (*string, bool) { } // HasKind returns a boolean if a field has been set. -func (o *Error) HasKind() bool { +func (o *ErrorRest) HasKind() bool { if o != nil && o.Kind != nil { return true } @@ -118,13 +118,13 @@ func (o *Error) HasKind() bool { } // SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *Error) SetKind(v string) { +func (o *ErrorRest) SetKind(v string) { o.Kind = &v } // GetHref returns the Href field value if set, zero value otherwise. -func (o *Error) GetHref() string { +func (o *ErrorRest) GetHref() string { if o == nil || o.Href == nil { var ret string return ret @@ -134,7 +134,7 @@ func (o *Error) GetHref() string { // GetHrefOk returns a tuple with the Href field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Error) GetHrefOk() (*string, bool) { +func (o *ErrorRest) GetHrefOk() (*string, bool) { if o == nil || o.Href == nil { return nil, false } @@ -142,7 +142,7 @@ func (o *Error) GetHrefOk() (*string, bool) { } // HasHref returns a boolean if a field has been set. -func (o *Error) HasHref() bool { +func (o *ErrorRest) HasHref() bool { if o != nil && o.Href != nil { return true } @@ -151,13 +151,13 @@ func (o *Error) HasHref() bool { } // SetHref gets a reference to the given string and assigns it to the Href field. -func (o *Error) SetHref(v string) { +func (o *ErrorRest) SetHref(v string) { o.Href = &v } // GetCode returns the Code field value if set, zero value otherwise. -func (o *Error) GetCode() string { +func (o *ErrorRest) GetCode() string { if o == nil || o.Code == nil { var ret string return ret @@ -167,7 +167,7 @@ func (o *Error) GetCode() string { // GetCodeOk returns a tuple with the Code field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Error) GetCodeOk() (*string, bool) { +func (o *ErrorRest) GetCodeOk() (*string, bool) { if o == nil || o.Code == nil { return nil, false } @@ -175,7 +175,7 @@ func (o *Error) GetCodeOk() (*string, bool) { } // HasCode returns a boolean if a field has been set. -func (o *Error) HasCode() bool { +func (o *ErrorRest) HasCode() bool { if o != nil && o.Code != nil { return true } @@ -184,13 +184,13 @@ func (o *Error) HasCode() bool { } // SetCode gets a reference to the given string and assigns it to the Code field. -func (o *Error) SetCode(v string) { +func (o *ErrorRest) SetCode(v string) { o.Code = &v } // GetReason returns the Reason field value if set, zero value otherwise. -func (o *Error) GetReason() string { +func (o *ErrorRest) GetReason() string { if o == nil || o.Reason == nil { var ret string return ret @@ -200,7 +200,7 @@ func (o *Error) GetReason() string { // GetReasonOk returns a tuple with the Reason field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Error) GetReasonOk() (*string, bool) { +func (o *ErrorRest) GetReasonOk() (*string, bool) { if o == nil || o.Reason == nil { return nil, false } @@ -208,7 +208,7 @@ func (o *Error) GetReasonOk() (*string, bool) { } // HasReason returns a boolean if a field has been set. -func (o *Error) HasReason() bool { +func (o *ErrorRest) HasReason() bool { if o != nil && o.Reason != nil { return true } @@ -217,13 +217,13 @@ func (o *Error) HasReason() bool { } // SetReason gets a reference to the given string and assigns it to the Reason field. -func (o *Error) SetReason(v string) { +func (o *ErrorRest) SetReason(v string) { o.Reason = &v } // GetOperationId returns the OperationId field value if set, zero value otherwise. -func (o *Error) GetOperationId() string { +func (o *ErrorRest) GetOperationId() string { if o == nil || o.OperationId == nil { var ret string return ret @@ -233,7 +233,7 @@ func (o *Error) GetOperationId() string { // 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) { +func (o *ErrorRest) GetOperationIdOk() (*string, bool) { if o == nil || o.OperationId == nil { return nil, false } @@ -241,7 +241,7 @@ func (o *Error) GetOperationIdOk() (*string, bool) { } // HasOperationId returns a boolean if a field has been set. -func (o *Error) HasOperationId() bool { +func (o *ErrorRest) HasOperationId() bool { if o != nil && o.OperationId != nil { return true } @@ -250,12 +250,12 @@ func (o *Error) HasOperationId() bool { } // SetOperationId gets a reference to the given string and assigns it to the OperationId field. -func (o *Error) SetOperationId(v string) { +func (o *ErrorRest) SetOperationId(v string) { o.OperationId = &v } -func (o Error) MarshalJSON() ([]byte, error) { +func (o ErrorRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { @@ -285,38 +285,38 @@ func (o Error) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableError struct { - value *Error +type NullableErrorRest struct { + value *ErrorRest isSet bool } -func (v NullableError) Get() *Error { +func (v NullableErrorRest) Get() *ErrorRest { return v.value } -func (v *NullableError) Set(val *Error) { +func (v *NullableErrorRest) Set(val *ErrorRest) { v.value = val v.isSet = true } -func (v NullableError) IsSet() bool { +func (v NullableErrorRest) IsSet() bool { return v.isSet } -func (v *NullableError) Unset() { +func (v *NullableErrorRest) Unset() { v.value = nil v.isSet = false } -func NewNullableError(val *Error) *NullableError { - return &NullableError{value: val, isSet: true} +func NewNullableErrorRest(val *ErrorRest) *NullableErrorRest { + return &NullableErrorRest{value: val, isSet: true} } -func (v NullableError) MarshalJSON() ([]byte, error) { +func (v NullableErrorRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableError) UnmarshalJSON(src []byte) error { +func (v *NullableErrorRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_error_all_of.go b/registrymgmt/apiv1/client/model_error_rest_all_of.go similarity index 71% rename from registrymgmt/apiv1/client/model_error_all_of.go rename to registrymgmt/apiv1/client/model_error_rest_all_of.go index 1611438d..555bd36e 100644 --- a/registrymgmt/apiv1/client/model_error_all_of.go +++ b/registrymgmt/apiv1/client/model_error_rest_all_of.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// ErrorAllOf struct for ErrorAllOf -type ErrorAllOf struct { +// ErrorRestAllOf struct for ErrorRestAllOf +type ErrorRestAllOf struct { Code *string `json:"code,omitempty"` @@ -26,20 +26,20 @@ type ErrorAllOf struct { } -// NewErrorAllOf instantiates a new ErrorAllOf object +// NewErrorRestAllOf instantiates a new ErrorRestAllOf 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() *ErrorAllOf { - this := ErrorAllOf{} +func NewErrorRestAllOf() *ErrorRestAllOf { + this := ErrorRestAllOf{} return &this } -// NewErrorAllOfWithDefaults instantiates a new ErrorAllOf object +// NewErrorRestAllOfWithDefaults instantiates a new ErrorRestAllOf 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{} +func NewErrorRestAllOfWithDefaults() *ErrorRestAllOf { + this := ErrorRestAllOf{} @@ -49,7 +49,7 @@ func NewErrorAllOfWithDefaults() *ErrorAllOf { // GetCode returns the Code field value if set, zero value otherwise. -func (o *ErrorAllOf) GetCode() string { +func (o *ErrorRestAllOf) GetCode() string { if o == nil || o.Code == nil { var ret string return ret @@ -59,7 +59,7 @@ func (o *ErrorAllOf) GetCode() string { // GetCodeOk returns a tuple with the Code field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ErrorAllOf) GetCodeOk() (*string, bool) { +func (o *ErrorRestAllOf) GetCodeOk() (*string, bool) { if o == nil || o.Code == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *ErrorAllOf) GetCodeOk() (*string, bool) { } // HasCode returns a boolean if a field has been set. -func (o *ErrorAllOf) HasCode() bool { +func (o *ErrorRestAllOf) HasCode() bool { if o != nil && o.Code != nil { return true } @@ -76,13 +76,13 @@ func (o *ErrorAllOf) HasCode() bool { } // SetCode gets a reference to the given string and assigns it to the Code field. -func (o *ErrorAllOf) SetCode(v string) { +func (o *ErrorRestAllOf) SetCode(v string) { o.Code = &v } // GetReason returns the Reason field value if set, zero value otherwise. -func (o *ErrorAllOf) GetReason() string { +func (o *ErrorRestAllOf) GetReason() string { if o == nil || o.Reason == nil { var ret string return ret @@ -92,7 +92,7 @@ func (o *ErrorAllOf) GetReason() string { // GetReasonOk returns a tuple with the Reason field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ErrorAllOf) GetReasonOk() (*string, bool) { +func (o *ErrorRestAllOf) GetReasonOk() (*string, bool) { if o == nil || o.Reason == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *ErrorAllOf) GetReasonOk() (*string, bool) { } // HasReason returns a boolean if a field has been set. -func (o *ErrorAllOf) HasReason() bool { +func (o *ErrorRestAllOf) HasReason() bool { if o != nil && o.Reason != nil { return true } @@ -109,13 +109,13 @@ func (o *ErrorAllOf) HasReason() bool { } // SetReason gets a reference to the given string and assigns it to the Reason field. -func (o *ErrorAllOf) SetReason(v string) { +func (o *ErrorRestAllOf) SetReason(v string) { o.Reason = &v } // GetOperationId returns the OperationId field value if set, zero value otherwise. -func (o *ErrorAllOf) GetOperationId() string { +func (o *ErrorRestAllOf) GetOperationId() string { if o == nil || o.OperationId == nil { var ret string return ret @@ -125,7 +125,7 @@ func (o *ErrorAllOf) GetOperationId() string { // 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) { +func (o *ErrorRestAllOf) GetOperationIdOk() (*string, bool) { if o == nil || o.OperationId == nil { return nil, false } @@ -133,7 +133,7 @@ func (o *ErrorAllOf) GetOperationIdOk() (*string, bool) { } // HasOperationId returns a boolean if a field has been set. -func (o *ErrorAllOf) HasOperationId() bool { +func (o *ErrorRestAllOf) HasOperationId() bool { if o != nil && o.OperationId != nil { return true } @@ -142,12 +142,12 @@ func (o *ErrorAllOf) HasOperationId() bool { } // SetOperationId gets a reference to the given string and assigns it to the OperationId field. -func (o *ErrorAllOf) SetOperationId(v string) { +func (o *ErrorRestAllOf) SetOperationId(v string) { o.OperationId = &v } -func (o ErrorAllOf) MarshalJSON() ([]byte, error) { +func (o ErrorRestAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Code != nil { @@ -165,38 +165,38 @@ func (o ErrorAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableErrorAllOf struct { - value *ErrorAllOf +type NullableErrorRestAllOf struct { + value *ErrorRestAllOf isSet bool } -func (v NullableErrorAllOf) Get() *ErrorAllOf { +func (v NullableErrorRestAllOf) Get() *ErrorRestAllOf { return v.value } -func (v *NullableErrorAllOf) Set(val *ErrorAllOf) { +func (v *NullableErrorRestAllOf) Set(val *ErrorRestAllOf) { v.value = val v.isSet = true } -func (v NullableErrorAllOf) IsSet() bool { +func (v NullableErrorRestAllOf) IsSet() bool { return v.isSet } -func (v *NullableErrorAllOf) Unset() { +func (v *NullableErrorRestAllOf) Unset() { v.value = nil v.isSet = false } -func NewNullableErrorAllOf(val *ErrorAllOf) *NullableErrorAllOf { - return &NullableErrorAllOf{value: val, isSet: true} +func NewNullableErrorRestAllOf(val *ErrorRestAllOf) *NullableErrorRestAllOf { + return &NullableErrorRestAllOf{value: val, isSet: true} } -func (v NullableErrorAllOf) MarshalJSON() ([]byte, error) { +func (v NullableErrorRestAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableErrorAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableErrorRestAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_list.go b/registrymgmt/apiv1/client/model_list_rest.go similarity index 71% rename from registrymgmt/apiv1/client/model_list.go rename to registrymgmt/apiv1/client/model_list_rest.go index ff60108d..ce722718 100644 --- a/registrymgmt/apiv1/client/model_list.go +++ b/registrymgmt/apiv1/client/model_list_rest.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// List struct for List -type List struct { +// ListRest struct for ListRest +type ListRest struct { Kind string `json:"kind"` @@ -28,12 +28,12 @@ type List struct { } -// NewList instantiates a new List object +// NewListRest instantiates a new ListRest 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 NewList(kind string, page int32, size int32, total int32) *List { - this := List{} +func NewListRest(kind string, page int32, size int32, total int32) *ListRest { + this := ListRest{} this.Kind = kind this.Page = page this.Size = size @@ -41,11 +41,11 @@ func NewList(kind string, page int32, size int32, total int32) *List { return &this } -// NewListWithDefaults instantiates a new List object +// NewListRestWithDefaults instantiates a new ListRest 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 NewListWithDefaults() *List { - this := List{} +func NewListRestWithDefaults() *ListRest { + this := ListRest{} @@ -56,7 +56,7 @@ func NewListWithDefaults() *List { // GetKind returns the Kind field value -func (o *List) GetKind() string { +func (o *ListRest) GetKind() string { if o == nil { var ret string return ret @@ -67,7 +67,7 @@ func (o *List) GetKind() string { // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. -func (o *List) GetKindOk() (*string, bool) { +func (o *ListRest) GetKindOk() (*string, bool) { if o == nil { return nil, false } @@ -75,13 +75,13 @@ func (o *List) GetKindOk() (*string, bool) { } // SetKind sets field value -func (o *List) SetKind(v string) { +func (o *ListRest) SetKind(v string) { o.Kind = v } // GetPage returns the Page field value -func (o *List) GetPage() int32 { +func (o *ListRest) GetPage() int32 { if o == nil { var ret int32 return ret @@ -92,7 +92,7 @@ func (o *List) GetPage() int32 { // GetPageOk returns a tuple with the Page field value // and a boolean to check if the value has been set. -func (o *List) GetPageOk() (*int32, bool) { +func (o *ListRest) GetPageOk() (*int32, bool) { if o == nil { return nil, false } @@ -100,13 +100,13 @@ func (o *List) GetPageOk() (*int32, bool) { } // SetPage sets field value -func (o *List) SetPage(v int32) { +func (o *ListRest) SetPage(v int32) { o.Page = v } // GetSize returns the Size field value -func (o *List) GetSize() int32 { +func (o *ListRest) GetSize() int32 { if o == nil { var ret int32 return ret @@ -117,7 +117,7 @@ func (o *List) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value // and a boolean to check if the value has been set. -func (o *List) GetSizeOk() (*int32, bool) { +func (o *ListRest) GetSizeOk() (*int32, bool) { if o == nil { return nil, false } @@ -125,13 +125,13 @@ func (o *List) GetSizeOk() (*int32, bool) { } // SetSize sets field value -func (o *List) SetSize(v int32) { +func (o *ListRest) SetSize(v int32) { o.Size = v } // GetTotal returns the Total field value -func (o *List) GetTotal() int32 { +func (o *ListRest) GetTotal() int32 { if o == nil { var ret int32 return ret @@ -142,7 +142,7 @@ func (o *List) GetTotal() int32 { // GetTotalOk returns a tuple with the Total field value // and a boolean to check if the value has been set. -func (o *List) GetTotalOk() (*int32, bool) { +func (o *ListRest) GetTotalOk() (*int32, bool) { if o == nil { return nil, false } @@ -150,12 +150,12 @@ func (o *List) GetTotalOk() (*int32, bool) { } // SetTotal sets field value -func (o *List) SetTotal(v int32) { +func (o *ListRest) SetTotal(v int32) { o.Total = v } -func (o List) MarshalJSON() ([]byte, error) { +func (o ListRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -177,38 +177,38 @@ func (o List) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableList struct { - value *List +type NullableListRest struct { + value *ListRest isSet bool } -func (v NullableList) Get() *List { +func (v NullableListRest) Get() *ListRest { return v.value } -func (v *NullableList) Set(val *List) { +func (v *NullableListRest) Set(val *ListRest) { v.value = val v.isSet = true } -func (v NullableList) IsSet() bool { +func (v NullableListRest) IsSet() bool { return v.isSet } -func (v *NullableList) Unset() { +func (v *NullableListRest) Unset() { v.value = nil v.isSet = false } -func NewNullableList(val *List) *NullableList { - return &NullableList{value: val, isSet: true} +func NewNullableListRest(val *ListRest) *NullableListRest { + return &NullableListRest{value: val, isSet: true} } -func (v NullableList) MarshalJSON() ([]byte, error) { +func (v NullableListRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableList) UnmarshalJSON(src []byte) error { +func (v *NullableListRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_object_reference.go b/registrymgmt/apiv1/client/model_object_reference_rest.go similarity index 68% rename from registrymgmt/apiv1/client/model_object_reference.go rename to registrymgmt/apiv1/client/model_object_reference_rest.go index 6709f51d..33d75cef 100644 --- a/registrymgmt/apiv1/client/model_object_reference.go +++ b/registrymgmt/apiv1/client/model_object_reference_rest.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// ObjectReference struct for ObjectReference -type ObjectReference struct { +// ObjectReferenceRest struct for ObjectReferenceRest +type ObjectReferenceRest struct { Id *string `json:"id,omitempty"` @@ -26,20 +26,20 @@ type ObjectReference struct { } -// NewObjectReference instantiates a new ObjectReference object +// NewObjectReferenceRest instantiates a new ObjectReferenceRest 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 NewObjectReference() *ObjectReference { - this := ObjectReference{} +func NewObjectReferenceRest() *ObjectReferenceRest { + this := ObjectReferenceRest{} return &this } -// NewObjectReferenceWithDefaults instantiates a new ObjectReference object +// NewObjectReferenceRestWithDefaults instantiates a new ObjectReferenceRest 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 NewObjectReferenceWithDefaults() *ObjectReference { - this := ObjectReference{} +func NewObjectReferenceRestWithDefaults() *ObjectReferenceRest { + this := ObjectReferenceRest{} @@ -49,7 +49,7 @@ func NewObjectReferenceWithDefaults() *ObjectReference { // GetId returns the Id field value if set, zero value otherwise. -func (o *ObjectReference) GetId() string { +func (o *ObjectReferenceRest) GetId() string { if o == nil || o.Id == nil { var ret string return ret @@ -59,7 +59,7 @@ func (o *ObjectReference) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ObjectReference) GetIdOk() (*string, bool) { +func (o *ObjectReferenceRest) GetIdOk() (*string, bool) { if o == nil || o.Id == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *ObjectReference) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *ObjectReference) HasId() bool { +func (o *ObjectReferenceRest) HasId() bool { if o != nil && o.Id != nil { return true } @@ -76,13 +76,13 @@ func (o *ObjectReference) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *ObjectReference) SetId(v string) { +func (o *ObjectReferenceRest) SetId(v string) { o.Id = &v } // GetKind returns the Kind field value if set, zero value otherwise. -func (o *ObjectReference) GetKind() string { +func (o *ObjectReferenceRest) GetKind() string { if o == nil || o.Kind == nil { var ret string return ret @@ -92,7 +92,7 @@ func (o *ObjectReference) GetKind() string { // GetKindOk returns a tuple with the Kind field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ObjectReference) GetKindOk() (*string, bool) { +func (o *ObjectReferenceRest) GetKindOk() (*string, bool) { if o == nil || o.Kind == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *ObjectReference) GetKindOk() (*string, bool) { } // HasKind returns a boolean if a field has been set. -func (o *ObjectReference) HasKind() bool { +func (o *ObjectReferenceRest) HasKind() bool { if o != nil && o.Kind != nil { return true } @@ -109,13 +109,13 @@ func (o *ObjectReference) HasKind() bool { } // SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *ObjectReference) SetKind(v string) { +func (o *ObjectReferenceRest) SetKind(v string) { o.Kind = &v } // GetHref returns the Href field value if set, zero value otherwise. -func (o *ObjectReference) GetHref() string { +func (o *ObjectReferenceRest) GetHref() string { if o == nil || o.Href == nil { var ret string return ret @@ -125,7 +125,7 @@ func (o *ObjectReference) GetHref() string { // GetHrefOk returns a tuple with the Href field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ObjectReference) GetHrefOk() (*string, bool) { +func (o *ObjectReferenceRest) GetHrefOk() (*string, bool) { if o == nil || o.Href == nil { return nil, false } @@ -133,7 +133,7 @@ func (o *ObjectReference) GetHrefOk() (*string, bool) { } // HasHref returns a boolean if a field has been set. -func (o *ObjectReference) HasHref() bool { +func (o *ObjectReferenceRest) HasHref() bool { if o != nil && o.Href != nil { return true } @@ -142,12 +142,12 @@ func (o *ObjectReference) HasHref() bool { } // SetHref gets a reference to the given string and assigns it to the Href field. -func (o *ObjectReference) SetHref(v string) { +func (o *ObjectReferenceRest) SetHref(v string) { o.Href = &v } -func (o ObjectReference) MarshalJSON() ([]byte, error) { +func (o ObjectReferenceRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Id != nil { @@ -165,38 +165,38 @@ func (o ObjectReference) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableObjectReference struct { - value *ObjectReference +type NullableObjectReferenceRest struct { + value *ObjectReferenceRest isSet bool } -func (v NullableObjectReference) Get() *ObjectReference { +func (v NullableObjectReferenceRest) Get() *ObjectReferenceRest { return v.value } -func (v *NullableObjectReference) Set(val *ObjectReference) { +func (v *NullableObjectReferenceRest) Set(val *ObjectReferenceRest) { v.value = val v.isSet = true } -func (v NullableObjectReference) IsSet() bool { +func (v NullableObjectReferenceRest) IsSet() bool { return v.isSet } -func (v *NullableObjectReference) Unset() { +func (v *NullableObjectReferenceRest) Unset() { v.value = nil v.isSet = false } -func NewNullableObjectReference(val *ObjectReference) *NullableObjectReference { - return &NullableObjectReference{value: val, isSet: true} +func NewNullableObjectReferenceRest(val *ObjectReferenceRest) *NullableObjectReferenceRest { + return &NullableObjectReferenceRest{value: val, isSet: true} } -func (v NullableObjectReference) MarshalJSON() ([]byte, error) { +func (v NullableObjectReferenceRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableObjectReference) UnmarshalJSON(src []byte) error { +func (v *NullableObjectReferenceRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_registry_create.go b/registrymgmt/apiv1/client/model_registry_create_rest.go similarity index 64% rename from registrymgmt/apiv1/client/model_registry_create.go rename to registrymgmt/apiv1/client/model_registry_create_rest.go index 996a8773..680bc244 100644 --- a/registrymgmt/apiv1/client/model_registry_create.go +++ b/registrymgmt/apiv1/client/model_registry_create_rest.go @@ -15,28 +15,28 @@ import ( "encoding/json" ) -// RegistryCreate Information used to create a new Service Registry instance within a multi-tenant deployment. -type RegistryCreate struct { +// RegistryCreateRest Information used to create a new Service Registry instance within a multi-tenant deployment. +type RegistryCreateRest struct { // User-defined Registry name. Does not have to be unique. Name *string `json:"name,omitempty"` } -// NewRegistryCreate instantiates a new RegistryCreate object +// NewRegistryCreateRest instantiates a new RegistryCreateRest 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 NewRegistryCreate() *RegistryCreate { - this := RegistryCreate{} +func NewRegistryCreateRest() *RegistryCreateRest { + this := RegistryCreateRest{} return &this } -// NewRegistryCreateWithDefaults instantiates a new RegistryCreate object +// NewRegistryCreateRestWithDefaults instantiates a new RegistryCreateRest 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 NewRegistryCreateWithDefaults() *RegistryCreate { - this := RegistryCreate{} +func NewRegistryCreateRestWithDefaults() *RegistryCreateRest { + this := RegistryCreateRest{} return &this @@ -44,7 +44,7 @@ func NewRegistryCreateWithDefaults() *RegistryCreate { // GetName returns the Name field value if set, zero value otherwise. -func (o *RegistryCreate) GetName() string { +func (o *RegistryCreateRest) GetName() string { if o == nil || o.Name == nil { var ret string return ret @@ -54,7 +54,7 @@ func (o *RegistryCreate) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RegistryCreate) GetNameOk() (*string, bool) { +func (o *RegistryCreateRest) GetNameOk() (*string, bool) { if o == nil || o.Name == nil { return nil, false } @@ -62,7 +62,7 @@ func (o *RegistryCreate) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *RegistryCreate) HasName() bool { +func (o *RegistryCreateRest) HasName() bool { if o != nil && o.Name != nil { return true } @@ -71,12 +71,12 @@ func (o *RegistryCreate) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *RegistryCreate) SetName(v string) { +func (o *RegistryCreateRest) SetName(v string) { o.Name = &v } -func (o RegistryCreate) MarshalJSON() ([]byte, error) { +func (o RegistryCreateRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Name != nil { @@ -86,38 +86,38 @@ func (o RegistryCreate) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableRegistryCreate struct { - value *RegistryCreate +type NullableRegistryCreateRest struct { + value *RegistryCreateRest isSet bool } -func (v NullableRegistryCreate) Get() *RegistryCreate { +func (v NullableRegistryCreateRest) Get() *RegistryCreateRest { return v.value } -func (v *NullableRegistryCreate) Set(val *RegistryCreate) { +func (v *NullableRegistryCreateRest) Set(val *RegistryCreateRest) { v.value = val v.isSet = true } -func (v NullableRegistryCreate) IsSet() bool { +func (v NullableRegistryCreateRest) IsSet() bool { return v.isSet } -func (v *NullableRegistryCreate) Unset() { +func (v *NullableRegistryCreateRest) Unset() { v.value = nil v.isSet = false } -func NewNullableRegistryCreate(val *RegistryCreate) *NullableRegistryCreate { - return &NullableRegistryCreate{value: val, isSet: true} +func NewNullableRegistryCreateRest(val *RegistryCreateRest) *NullableRegistryCreateRest { + return &NullableRegistryCreateRest{value: val, isSet: true} } -func (v NullableRegistryCreate) MarshalJSON() ([]byte, error) { +func (v NullableRegistryCreateRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableRegistryCreate) UnmarshalJSON(src []byte) error { +func (v *NullableRegistryCreateRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_registry_rest_list.go b/registrymgmt/apiv1/client/model_registry_list_rest.go similarity index 66% rename from registrymgmt/apiv1/client/model_registry_rest_list.go rename to registrymgmt/apiv1/client/model_registry_list_rest.go index 714aa8e7..1897fba7 100644 --- a/registrymgmt/apiv1/client/model_registry_rest_list.go +++ b/registrymgmt/apiv1/client/model_registry_list_rest.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// RegistryRestList struct for RegistryRestList -type RegistryRestList struct { +// RegistryListRest struct for RegistryListRest +type RegistryListRest struct { Kind string `json:"kind"` @@ -26,16 +26,16 @@ type RegistryRestList struct { Total int32 `json:"total"` - Items []Registry `json:"items"` + Items []RegistryRest `json:"items"` } -// NewRegistryRestList instantiates a new RegistryRestList object +// NewRegistryListRest instantiates a new RegistryListRest 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 NewRegistryRestList(kind string, page int32, size int32, total int32, items []Registry) *RegistryRestList { - this := RegistryRestList{} +func NewRegistryListRest(kind string, page int32, size int32, total int32, items []RegistryRest) *RegistryListRest { + this := RegistryListRest{} this.Kind = kind this.Page = page this.Size = size @@ -44,11 +44,11 @@ func NewRegistryRestList(kind string, page int32, size int32, total int32, items return &this } -// NewRegistryRestListWithDefaults instantiates a new RegistryRestList object +// NewRegistryListRestWithDefaults instantiates a new RegistryListRest 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 NewRegistryRestListWithDefaults() *RegistryRestList { - this := RegistryRestList{} +func NewRegistryListRestWithDefaults() *RegistryListRest { + this := RegistryListRest{} @@ -60,7 +60,7 @@ func NewRegistryRestListWithDefaults() *RegistryRestList { // GetKind returns the Kind field value -func (o *RegistryRestList) GetKind() string { +func (o *RegistryListRest) GetKind() string { if o == nil { var ret string return ret @@ -71,7 +71,7 @@ func (o *RegistryRestList) GetKind() string { // GetKindOk returns a tuple with the Kind field value // and a boolean to check if the value has been set. -func (o *RegistryRestList) GetKindOk() (*string, bool) { +func (o *RegistryListRest) GetKindOk() (*string, bool) { if o == nil { return nil, false } @@ -79,13 +79,13 @@ func (o *RegistryRestList) GetKindOk() (*string, bool) { } // SetKind sets field value -func (o *RegistryRestList) SetKind(v string) { +func (o *RegistryListRest) SetKind(v string) { o.Kind = v } // GetPage returns the Page field value -func (o *RegistryRestList) GetPage() int32 { +func (o *RegistryListRest) GetPage() int32 { if o == nil { var ret int32 return ret @@ -96,7 +96,7 @@ func (o *RegistryRestList) GetPage() int32 { // GetPageOk returns a tuple with the Page field value // and a boolean to check if the value has been set. -func (o *RegistryRestList) GetPageOk() (*int32, bool) { +func (o *RegistryListRest) GetPageOk() (*int32, bool) { if o == nil { return nil, false } @@ -104,13 +104,13 @@ func (o *RegistryRestList) GetPageOk() (*int32, bool) { } // SetPage sets field value -func (o *RegistryRestList) SetPage(v int32) { +func (o *RegistryListRest) SetPage(v int32) { o.Page = v } // GetSize returns the Size field value -func (o *RegistryRestList) GetSize() int32 { +func (o *RegistryListRest) GetSize() int32 { if o == nil { var ret int32 return ret @@ -121,7 +121,7 @@ func (o *RegistryRestList) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value // and a boolean to check if the value has been set. -func (o *RegistryRestList) GetSizeOk() (*int32, bool) { +func (o *RegistryListRest) GetSizeOk() (*int32, bool) { if o == nil { return nil, false } @@ -129,13 +129,13 @@ func (o *RegistryRestList) GetSizeOk() (*int32, bool) { } // SetSize sets field value -func (o *RegistryRestList) SetSize(v int32) { +func (o *RegistryListRest) SetSize(v int32) { o.Size = v } // GetTotal returns the Total field value -func (o *RegistryRestList) GetTotal() int32 { +func (o *RegistryListRest) GetTotal() int32 { if o == nil { var ret int32 return ret @@ -146,7 +146,7 @@ func (o *RegistryRestList) GetTotal() int32 { // GetTotalOk returns a tuple with the Total field value // and a boolean to check if the value has been set. -func (o *RegistryRestList) GetTotalOk() (*int32, bool) { +func (o *RegistryListRest) GetTotalOk() (*int32, bool) { if o == nil { return nil, false } @@ -154,15 +154,15 @@ func (o *RegistryRestList) GetTotalOk() (*int32, bool) { } // SetTotal sets field value -func (o *RegistryRestList) SetTotal(v int32) { +func (o *RegistryListRest) SetTotal(v int32) { o.Total = v } // GetItems returns the Items field value -func (o *RegistryRestList) GetItems() []Registry { +func (o *RegistryListRest) GetItems() []RegistryRest { if o == nil { - var ret []Registry + var ret []RegistryRest return ret } @@ -171,7 +171,7 @@ func (o *RegistryRestList) GetItems() []Registry { // GetItemsOk returns a tuple with the Items field value // and a boolean to check if the value has been set. -func (o *RegistryRestList) GetItemsOk() (*[]Registry, bool) { +func (o *RegistryListRest) GetItemsOk() (*[]RegistryRest, bool) { if o == nil { return nil, false } @@ -179,12 +179,12 @@ func (o *RegistryRestList) GetItemsOk() (*[]Registry, bool) { } // SetItems sets field value -func (o *RegistryRestList) SetItems(v []Registry) { +func (o *RegistryListRest) SetItems(v []RegistryRest) { o.Items = v } -func (o RegistryRestList) MarshalJSON() ([]byte, error) { +func (o RegistryListRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -210,38 +210,38 @@ func (o RegistryRestList) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableRegistryRestList struct { - value *RegistryRestList +type NullableRegistryListRest struct { + value *RegistryListRest isSet bool } -func (v NullableRegistryRestList) Get() *RegistryRestList { +func (v NullableRegistryListRest) Get() *RegistryListRest { return v.value } -func (v *NullableRegistryRestList) Set(val *RegistryRestList) { +func (v *NullableRegistryListRest) Set(val *RegistryListRest) { v.value = val v.isSet = true } -func (v NullableRegistryRestList) IsSet() bool { +func (v NullableRegistryListRest) IsSet() bool { return v.isSet } -func (v *NullableRegistryRestList) Unset() { +func (v *NullableRegistryListRest) Unset() { v.value = nil v.isSet = false } -func NewNullableRegistryRestList(val *RegistryRestList) *NullableRegistryRestList { - return &NullableRegistryRestList{value: val, isSet: true} +func NewNullableRegistryListRest(val *RegistryListRest) *NullableRegistryListRest { + return &NullableRegistryListRest{value: val, isSet: true} } -func (v NullableRegistryRestList) MarshalJSON() ([]byte, error) { +func (v NullableRegistryListRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableRegistryRestList) UnmarshalJSON(src []byte) error { +func (v *NullableRegistryListRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_registry_rest_list_all_of.go b/registrymgmt/apiv1/client/model_registry_list_rest_all_of.go similarity index 60% rename from registrymgmt/apiv1/client/model_registry_rest_list_all_of.go rename to registrymgmt/apiv1/client/model_registry_list_rest_all_of.go index e8ce4eb4..a5b8bc6f 100644 --- a/registrymgmt/apiv1/client/model_registry_rest_list_all_of.go +++ b/registrymgmt/apiv1/client/model_registry_list_rest_all_of.go @@ -15,27 +15,27 @@ import ( "encoding/json" ) -// RegistryRestListAllOf struct for RegistryRestListAllOf -type RegistryRestListAllOf struct { +// RegistryListRestAllOf struct for RegistryListRestAllOf +type RegistryListRestAllOf struct { - Items *[]Registry `json:"items,omitempty"` + Items *[]RegistryRest `json:"items,omitempty"` } -// NewRegistryRestListAllOf instantiates a new RegistryRestListAllOf object +// NewRegistryListRestAllOf instantiates a new RegistryListRestAllOf 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 NewRegistryRestListAllOf() *RegistryRestListAllOf { - this := RegistryRestListAllOf{} +func NewRegistryListRestAllOf() *RegistryListRestAllOf { + this := RegistryListRestAllOf{} return &this } -// NewRegistryRestListAllOfWithDefaults instantiates a new RegistryRestListAllOf object +// NewRegistryListRestAllOfWithDefaults instantiates a new RegistryListRestAllOf 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 NewRegistryRestListAllOfWithDefaults() *RegistryRestListAllOf { - this := RegistryRestListAllOf{} +func NewRegistryListRestAllOfWithDefaults() *RegistryListRestAllOf { + this := RegistryListRestAllOf{} return &this @@ -43,9 +43,9 @@ func NewRegistryRestListAllOfWithDefaults() *RegistryRestListAllOf { // GetItems returns the Items field value if set, zero value otherwise. -func (o *RegistryRestListAllOf) GetItems() []Registry { +func (o *RegistryListRestAllOf) GetItems() []RegistryRest { if o == nil || o.Items == nil { - var ret []Registry + var ret []RegistryRest return ret } return *o.Items @@ -53,7 +53,7 @@ func (o *RegistryRestListAllOf) GetItems() []Registry { // GetItemsOk returns a tuple with the Items field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RegistryRestListAllOf) GetItemsOk() (*[]Registry, bool) { +func (o *RegistryListRestAllOf) GetItemsOk() (*[]RegistryRest, bool) { if o == nil || o.Items == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *RegistryRestListAllOf) GetItemsOk() (*[]Registry, bool) { } // HasItems returns a boolean if a field has been set. -func (o *RegistryRestListAllOf) HasItems() bool { +func (o *RegistryListRestAllOf) HasItems() bool { if o != nil && o.Items != nil { return true } @@ -69,13 +69,13 @@ func (o *RegistryRestListAllOf) HasItems() bool { return false } -// SetItems gets a reference to the given []Registry and assigns it to the Items field. -func (o *RegistryRestListAllOf) SetItems(v []Registry) { +// SetItems gets a reference to the given []RegistryRest and assigns it to the Items field. +func (o *RegistryListRestAllOf) SetItems(v []RegistryRest) { o.Items = &v } -func (o RegistryRestListAllOf) MarshalJSON() ([]byte, error) { +func (o RegistryListRestAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.Items != nil { @@ -85,38 +85,38 @@ func (o RegistryRestListAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableRegistryRestListAllOf struct { - value *RegistryRestListAllOf +type NullableRegistryListRestAllOf struct { + value *RegistryListRestAllOf isSet bool } -func (v NullableRegistryRestListAllOf) Get() *RegistryRestListAllOf { +func (v NullableRegistryListRestAllOf) Get() *RegistryListRestAllOf { return v.value } -func (v *NullableRegistryRestListAllOf) Set(val *RegistryRestListAllOf) { +func (v *NullableRegistryListRestAllOf) Set(val *RegistryListRestAllOf) { v.value = val v.isSet = true } -func (v NullableRegistryRestListAllOf) IsSet() bool { +func (v NullableRegistryListRestAllOf) IsSet() bool { return v.isSet } -func (v *NullableRegistryRestListAllOf) Unset() { +func (v *NullableRegistryListRestAllOf) Unset() { v.value = nil v.isSet = false } -func NewNullableRegistryRestListAllOf(val *RegistryRestListAllOf) *NullableRegistryRestListAllOf { - return &NullableRegistryRestListAllOf{value: val, isSet: true} +func NewNullableRegistryListRestAllOf(val *RegistryListRestAllOf) *NullableRegistryListRestAllOf { + return &NullableRegistryListRestAllOf{value: val, isSet: true} } -func (v NullableRegistryRestListAllOf) MarshalJSON() ([]byte, error) { +func (v NullableRegistryListRestAllOf) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableRegistryRestListAllOf) UnmarshalJSON(src []byte) error { +func (v *NullableRegistryListRestAllOf) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_registry.go b/registrymgmt/apiv1/client/model_registry_rest.go similarity index 72% rename from registrymgmt/apiv1/client/model_registry.go rename to registrymgmt/apiv1/client/model_registry_rest.go index f4ba8165..a0773955 100644 --- a/registrymgmt/apiv1/client/model_registry.go +++ b/registrymgmt/apiv1/client/model_registry_rest.go @@ -15,8 +15,8 @@ import ( "encoding/json" ) -// Registry struct for Registry -type Registry struct { +// RegistryRest struct for RegistryRest +type RegistryRest struct { Id string `json:"id"` @@ -24,7 +24,7 @@ type Registry struct { Href *string `json:"href,omitempty"` - Status RegistryStatusValue `json:"status"` + Status RegistryStatusValueRest `json:"status"` RegistryUrl string `json:"registryUrl"` @@ -36,23 +36,23 @@ type Registry struct { } -// NewRegistry instantiates a new Registry object +// NewRegistryRest instantiates a new RegistryRest 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 NewRegistry(id string, status RegistryStatusValue, registryUrl string) *Registry { - this := Registry{} +func NewRegistryRest(id string, status RegistryStatusValueRest, registryUrl string) *RegistryRest { + this := RegistryRest{} this.Id = id this.Status = status this.RegistryUrl = registryUrl return &this } -// NewRegistryWithDefaults instantiates a new Registry object +// NewRegistryRestWithDefaults instantiates a new RegistryRest 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 NewRegistryWithDefaults() *Registry { - this := Registry{} +func NewRegistryRestWithDefaults() *RegistryRest { + this := RegistryRest{} @@ -66,7 +66,7 @@ func NewRegistryWithDefaults() *Registry { // GetId returns the Id field value -func (o *Registry) GetId() string { +func (o *RegistryRest) GetId() string { if o == nil { var ret string return ret @@ -77,7 +77,7 @@ func (o *Registry) GetId() string { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. -func (o *Registry) GetIdOk() (*string, bool) { +func (o *RegistryRest) GetIdOk() (*string, bool) { if o == nil { return nil, false } @@ -85,13 +85,13 @@ func (o *Registry) GetIdOk() (*string, bool) { } // SetId sets field value -func (o *Registry) SetId(v string) { +func (o *RegistryRest) SetId(v string) { o.Id = v } // GetKind returns the Kind field value if set, zero value otherwise. -func (o *Registry) GetKind() string { +func (o *RegistryRest) GetKind() string { if o == nil || o.Kind == nil { var ret string return ret @@ -101,7 +101,7 @@ func (o *Registry) GetKind() string { // GetKindOk returns a tuple with the Kind field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Registry) GetKindOk() (*string, bool) { +func (o *RegistryRest) GetKindOk() (*string, bool) { if o == nil || o.Kind == nil { return nil, false } @@ -109,7 +109,7 @@ func (o *Registry) GetKindOk() (*string, bool) { } // HasKind returns a boolean if a field has been set. -func (o *Registry) HasKind() bool { +func (o *RegistryRest) HasKind() bool { if o != nil && o.Kind != nil { return true } @@ -118,13 +118,13 @@ func (o *Registry) HasKind() bool { } // SetKind gets a reference to the given string and assigns it to the Kind field. -func (o *Registry) SetKind(v string) { +func (o *RegistryRest) SetKind(v string) { o.Kind = &v } // GetHref returns the Href field value if set, zero value otherwise. -func (o *Registry) GetHref() string { +func (o *RegistryRest) GetHref() string { if o == nil || o.Href == nil { var ret string return ret @@ -134,7 +134,7 @@ func (o *Registry) GetHref() string { // GetHrefOk returns a tuple with the Href field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Registry) GetHrefOk() (*string, bool) { +func (o *RegistryRest) GetHrefOk() (*string, bool) { if o == nil || o.Href == nil { return nil, false } @@ -142,7 +142,7 @@ func (o *Registry) GetHrefOk() (*string, bool) { } // HasHref returns a boolean if a field has been set. -func (o *Registry) HasHref() bool { +func (o *RegistryRest) HasHref() bool { if o != nil && o.Href != nil { return true } @@ -151,15 +151,15 @@ func (o *Registry) HasHref() bool { } // SetHref gets a reference to the given string and assigns it to the Href field. -func (o *Registry) SetHref(v string) { +func (o *RegistryRest) SetHref(v string) { o.Href = &v } // GetStatus returns the Status field value -func (o *Registry) GetStatus() RegistryStatusValue { +func (o *RegistryRest) GetStatus() RegistryStatusValueRest { if o == nil { - var ret RegistryStatusValue + var ret RegistryStatusValueRest return ret } @@ -168,7 +168,7 @@ func (o *Registry) GetStatus() RegistryStatusValue { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *Registry) GetStatusOk() (*RegistryStatusValue, bool) { +func (o *RegistryRest) GetStatusOk() (*RegistryStatusValueRest, bool) { if o == nil { return nil, false } @@ -176,13 +176,13 @@ func (o *Registry) GetStatusOk() (*RegistryStatusValue, bool) { } // SetStatus sets field value -func (o *Registry) SetStatus(v RegistryStatusValue) { +func (o *RegistryRest) SetStatus(v RegistryStatusValueRest) { o.Status = v } // GetRegistryUrl returns the RegistryUrl field value -func (o *Registry) GetRegistryUrl() string { +func (o *RegistryRest) GetRegistryUrl() string { if o == nil { var ret string return ret @@ -193,7 +193,7 @@ func (o *Registry) GetRegistryUrl() string { // GetRegistryUrlOk returns a tuple with the RegistryUrl field value // and a boolean to check if the value has been set. -func (o *Registry) GetRegistryUrlOk() (*string, bool) { +func (o *RegistryRest) GetRegistryUrlOk() (*string, bool) { if o == nil { return nil, false } @@ -201,13 +201,13 @@ func (o *Registry) GetRegistryUrlOk() (*string, bool) { } // SetRegistryUrl sets field value -func (o *Registry) SetRegistryUrl(v string) { +func (o *RegistryRest) SetRegistryUrl(v string) { o.RegistryUrl = v } // GetName returns the Name field value if set, zero value otherwise. -func (o *Registry) GetName() string { +func (o *RegistryRest) GetName() string { if o == nil || o.Name == nil { var ret string return ret @@ -217,7 +217,7 @@ func (o *Registry) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Registry) GetNameOk() (*string, bool) { +func (o *RegistryRest) GetNameOk() (*string, bool) { if o == nil || o.Name == nil { return nil, false } @@ -225,7 +225,7 @@ func (o *Registry) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *Registry) HasName() bool { +func (o *RegistryRest) HasName() bool { if o != nil && o.Name != nil { return true } @@ -234,13 +234,13 @@ func (o *Registry) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *Registry) SetName(v string) { +func (o *RegistryRest) SetName(v string) { o.Name = &v } // GetRegistryDeploymentId returns the RegistryDeploymentId field value if set, zero value otherwise. -func (o *Registry) GetRegistryDeploymentId() int32 { +func (o *RegistryRest) GetRegistryDeploymentId() int32 { if o == nil || o.RegistryDeploymentId == nil { var ret int32 return ret @@ -250,7 +250,7 @@ func (o *Registry) GetRegistryDeploymentId() int32 { // GetRegistryDeploymentIdOk returns a tuple with the RegistryDeploymentId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Registry) GetRegistryDeploymentIdOk() (*int32, bool) { +func (o *RegistryRest) GetRegistryDeploymentIdOk() (*int32, bool) { if o == nil || o.RegistryDeploymentId == nil { return nil, false } @@ -258,7 +258,7 @@ func (o *Registry) GetRegistryDeploymentIdOk() (*int32, bool) { } // HasRegistryDeploymentId returns a boolean if a field has been set. -func (o *Registry) HasRegistryDeploymentId() bool { +func (o *RegistryRest) HasRegistryDeploymentId() bool { if o != nil && o.RegistryDeploymentId != nil { return true } @@ -267,12 +267,12 @@ func (o *Registry) HasRegistryDeploymentId() bool { } // SetRegistryDeploymentId gets a reference to the given int32 and assigns it to the RegistryDeploymentId field. -func (o *Registry) SetRegistryDeploymentId(v int32) { +func (o *RegistryRest) SetRegistryDeploymentId(v int32) { o.RegistryDeploymentId = &v } -func (o Registry) MarshalJSON() ([]byte, error) { +func (o RegistryRest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if true { @@ -306,38 +306,38 @@ func (o Registry) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableRegistry struct { - value *Registry +type NullableRegistryRest struct { + value *RegistryRest isSet bool } -func (v NullableRegistry) Get() *Registry { +func (v NullableRegistryRest) Get() *RegistryRest { return v.value } -func (v *NullableRegistry) Set(val *Registry) { +func (v *NullableRegistryRest) Set(val *RegistryRest) { v.value = val v.isSet = true } -func (v NullableRegistry) IsSet() bool { +func (v NullableRegistryRest) IsSet() bool { return v.isSet } -func (v *NullableRegistry) Unset() { +func (v *NullableRegistryRest) Unset() { v.value = nil v.isSet = false } -func NewNullableRegistry(val *Registry) *NullableRegistry { - return &NullableRegistry{value: val, isSet: true} +func NewNullableRegistryRest(val *RegistryRest) *NullableRegistryRest { + return &NullableRegistryRest{value: val, isSet: true} } -func (v NullableRegistry) MarshalJSON() ([]byte, error) { +func (v NullableRegistryRest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableRegistry) UnmarshalJSON(src []byte) error { +func (v *NullableRegistryRest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/registrymgmt/apiv1/client/model_registry_status.go b/registrymgmt/apiv1/client/model_registry_status.go deleted file mode 100644 index 5422b3b7..00000000 --- a/registrymgmt/apiv1/client/model_registry_status.go +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Service Registry Fleet Manager - * - * Managed Service Registry cloud.redhat.com API Management API that lets you create new registry instances. Registry is a datastore for standard event schemas and API designs. Service Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Registry is an Managed version of upstream project called Apicurio Registry. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. - * - * API version: 0.0.1 - * Contact: rhosak-eval-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package registrymgmtclient - -import ( - "encoding/json" - "time" -) - -// RegistryStatus struct for RegistryStatus -type RegistryStatus struct { - - // ISO 8601 UTC timestamp. - LastUpdated time.Time `json:"lastUpdated"` - - Value RegistryStatusValue `json:"value"` -} - -// NewRegistryStatus instantiates a new RegistryStatus 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 NewRegistryStatus(lastUpdated time.Time, value RegistryStatusValue) *RegistryStatus { - this := RegistryStatus{} - this.LastUpdated = lastUpdated - this.Value = value - return &this -} - -// NewRegistryStatusWithDefaults instantiates a new RegistryStatus 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 NewRegistryStatusWithDefaults() *RegistryStatus { - this := RegistryStatus{} - - return &this -} - -// GetLastUpdated returns the LastUpdated field value -func (o *RegistryStatus) GetLastUpdated() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.LastUpdated -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -func (o *RegistryStatus) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.LastUpdated, true -} - -// SetLastUpdated sets field value -func (o *RegistryStatus) SetLastUpdated(v time.Time) { - o.LastUpdated = v -} - -// GetValue returns the Value field value -func (o *RegistryStatus) GetValue() RegistryStatusValue { - if o == nil { - var ret RegistryStatusValue - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *RegistryStatus) GetValueOk() (*RegistryStatusValue, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *RegistryStatus) SetValue(v RegistryStatusValue) { - o.Value = v -} - -func (o RegistryStatus) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - - if true { - toSerialize["lastUpdated"] = o.LastUpdated - } - - if true { - toSerialize["value"] = o.Value - } - - return json.Marshal(toSerialize) -} - -type NullableRegistryStatus struct { - value *RegistryStatus - isSet bool -} - -func (v NullableRegistryStatus) Get() *RegistryStatus { - return v.value -} - -func (v *NullableRegistryStatus) Set(val *RegistryStatus) { - v.value = val - v.isSet = true -} - -func (v NullableRegistryStatus) IsSet() bool { - return v.isSet -} - -func (v *NullableRegistryStatus) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegistryStatus(val *RegistryStatus) *NullableRegistryStatus { - return &NullableRegistryStatus{value: val, isSet: true} -} - -func (v NullableRegistryStatus) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRegistryStatus) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/registrymgmt/apiv1/client/model_registry_status_value.go b/registrymgmt/apiv1/client/model_registry_status_value.go deleted file mode 100644 index a1bf71e3..00000000 --- a/registrymgmt/apiv1/client/model_registry_status_value.go +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Service Registry Fleet Manager - * - * Managed Service Registry cloud.redhat.com API Management API that lets you create new registry instances. Registry is a datastore for standard event schemas and API designs. Service Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Registry is an Managed version of upstream project called Apicurio Registry. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. - * - * API version: 0.0.4 - * Contact: rhosak-eval-support@redhat.com - */ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package registrymgmtclient - -import ( - "encoding/json" - "fmt" -) - -// RegistryStatusValue the model 'RegistryStatusValue' -type RegistryStatusValue string - -// List of RegistryStatusValue -const ( - PROVISIONING RegistryStatusValue = "PROVISIONING" - AVAILABLE RegistryStatusValue = "AVAILABLE" - UNAVAILABLE RegistryStatusValue = "UNAVAILABLE" -) - -var allowedRegistryStatusValueEnumValues = []RegistryStatusValue{ - "PROVISIONING", - "AVAILABLE", - "UNAVAILABLE", -} - -func (v *RegistryStatusValue) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := RegistryStatusValue(value) - for _, existing := range allowedRegistryStatusValueEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid RegistryStatusValue", value) -} - -// NewRegistryStatusValueFromValue returns a pointer to a valid RegistryStatusValue -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewRegistryStatusValueFromValue(v string) (*RegistryStatusValue, error) { - ev := RegistryStatusValue(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for RegistryStatusValue: valid values are %v", v, allowedRegistryStatusValueEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v RegistryStatusValue) IsValid() bool { - for _, existing := range allowedRegistryStatusValueEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to RegistryStatusValue value -func (v RegistryStatusValue) Ptr() *RegistryStatusValue { - return &v -} - -type NullableRegistryStatusValue struct { - value *RegistryStatusValue - isSet bool -} - -func (v NullableRegistryStatusValue) Get() *RegistryStatusValue { - return v.value -} - -func (v *NullableRegistryStatusValue) Set(val *RegistryStatusValue) { - v.value = val - v.isSet = true -} - -func (v NullableRegistryStatusValue) IsSet() bool { - return v.isSet -} - -func (v *NullableRegistryStatusValue) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRegistryStatusValue(val *RegistryStatusValue) *NullableRegistryStatusValue { - return &NullableRegistryStatusValue{value: val, isSet: true} -} - -func (v NullableRegistryStatusValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRegistryStatusValue) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/registrymgmt/apiv1/client/model_registry_status_value_rest.go b/registrymgmt/apiv1/client/model_registry_status_value_rest.go new file mode 100644 index 00000000..d0177999 --- /dev/null +++ b/registrymgmt/apiv1/client/model_registry_status_value_rest.go @@ -0,0 +1,113 @@ +/* + * Service Registry Fleet Manager + * + * Managed Service Registry cloud.redhat.com API Management API that lets you create new registry instances. Registry is a datastore for standard event schemas and API designs. Service Registry enables developers to manage and share the structure of their data using a REST interface. For example, client applications can dynamically push or pull the latest updates to or from the registry without needing to redeploy. Registry is an Managed version of upstream project called Apicurio Registry. Apicurio Registry also enables developers to create rules that govern how registry content can evolve over time. For example, this includes rules for content validation and version compatibility. + * + * API version: 0.0.4 + * Contact: rhosak-eval-support@redhat.com + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package registrymgmtclient + +import ( + "encoding/json" + "fmt" +) + +// RegistryStatusValueRest the model 'RegistryStatusValueRest' +type RegistryStatusValueRest string + +// List of RegistryStatusValueRest +const ( + PROVISIONING RegistryStatusValueRest = "PROVISIONING" + AVAILABLE RegistryStatusValueRest = "AVAILABLE" + UNAVAILABLE RegistryStatusValueRest = "UNAVAILABLE" +) + +var allowedRegistryStatusValueRestEnumValues = []RegistryStatusValueRest{ + "PROVISIONING", + "AVAILABLE", + "UNAVAILABLE", +} + +func (v *RegistryStatusValueRest) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RegistryStatusValueRest(value) + for _, existing := range allowedRegistryStatusValueRestEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RegistryStatusValueRest", value) +} + +// NewRegistryStatusValueRestFromValue returns a pointer to a valid RegistryStatusValueRest +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRegistryStatusValueRestFromValue(v string) (*RegistryStatusValueRest, error) { + ev := RegistryStatusValueRest(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RegistryStatusValueRest: valid values are %v", v, allowedRegistryStatusValueRestEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RegistryStatusValueRest) IsValid() bool { + for _, existing := range allowedRegistryStatusValueRestEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RegistryStatusValueRest value +func (v RegistryStatusValueRest) Ptr() *RegistryStatusValueRest { + return &v +} + +type NullableRegistryStatusValueRest struct { + value *RegistryStatusValueRest + isSet bool +} + +func (v NullableRegistryStatusValueRest) Get() *RegistryStatusValueRest { + return v.value +} + +func (v *NullableRegistryStatusValueRest) Set(val *RegistryStatusValueRest) { + v.value = val + v.isSet = true +} + +func (v NullableRegistryStatusValueRest) IsSet() bool { + return v.isSet +} + +func (v *NullableRegistryStatusValueRest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRegistryStatusValueRest(val *RegistryStatusValueRest) *NullableRegistryStatusValueRest { + return &NullableRegistryStatusValueRest{value: val, isSet: true} +} + +func (v NullableRegistryStatusValueRest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRegistryStatusValueRest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/registrymgmt/apiv1/client/model_root_type_for_registry.go b/registrymgmt/apiv1/client/model_root_type_for_registry.go index bed76dde..3d32cd34 100644 --- a/registrymgmt/apiv1/client/model_root_type_for_registry.go +++ b/registrymgmt/apiv1/client/model_root_type_for_registry.go @@ -20,7 +20,7 @@ type RootTypeForRegistry struct { Id string `json:"id"` - Status RegistryStatusValue `json:"status"` + Status RegistryStatusValueRest `json:"status"` RegistryUrl string `json:"registryUrl"` @@ -36,7 +36,7 @@ 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, registryUrl string) *RootTypeForRegistry { +func NewRootTypeForRegistry(id string, status RegistryStatusValueRest, registryUrl string) *RootTypeForRegistry { this := RootTypeForRegistry{} this.Id = id this.Status = status @@ -85,9 +85,9 @@ func (o *RootTypeForRegistry) SetId(v string) { // GetStatus returns the Status field value -func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue { +func (o *RootTypeForRegistry) GetStatus() RegistryStatusValueRest { if o == nil { - var ret RegistryStatusValue + var ret RegistryStatusValueRest return ret } @@ -96,7 +96,7 @@ func (o *RootTypeForRegistry) GetStatus() RegistryStatusValue { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValue, bool) { +func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValueRest, bool) { if o == nil { return nil, false } @@ -104,7 +104,7 @@ func (o *RootTypeForRegistry) GetStatusOk() (*RegistryStatusValue, bool) { } // SetStatus sets field value -func (o *RootTypeForRegistry) SetStatus(v RegistryStatusValue) { +func (o *RootTypeForRegistry) SetStatus(v RegistryStatusValueRest) { o.Status = v } diff --git a/registrymgmt/apiv1/client/registries_api_mock.go b/registrymgmt/apiv1/client/registries_api_mock.go index d07447ac..b2aa53f9 100644 --- a/registrymgmt/apiv1/client/registries_api_mock.go +++ b/registrymgmt/apiv1/client/registries_api_mock.go @@ -22,7 +22,7 @@ var _ RegistriesApi = &RegistriesApiMock{} // CreateRegistryFunc: func(ctx _context.Context) ApiCreateRegistryRequest { // panic("mock out the CreateRegistry method") // }, -// CreateRegistryExecuteFunc: func(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) { +// CreateRegistryExecuteFunc: func(r ApiCreateRegistryRequest) (RegistryRest, *_nethttp.Response, error) { // panic("mock out the CreateRegistryExecute method") // }, // DeleteRegistryFunc: func(ctx _context.Context, id string) ApiDeleteRegistryRequest { @@ -34,13 +34,13 @@ var _ RegistriesApi = &RegistriesApiMock{} // GetRegistriesFunc: func(ctx _context.Context) ApiGetRegistriesRequest { // panic("mock out the GetRegistries method") // }, -// GetRegistriesExecuteFunc: func(r ApiGetRegistriesRequest) (RegistryRestList, *_nethttp.Response, error) { +// GetRegistriesExecuteFunc: func(r ApiGetRegistriesRequest) (RegistryListRest, *_nethttp.Response, error) { // panic("mock out the GetRegistriesExecute method") // }, // GetRegistryFunc: func(ctx _context.Context, id string) ApiGetRegistryRequest { // panic("mock out the GetRegistry method") // }, -// GetRegistryExecuteFunc: func(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) { +// GetRegistryExecuteFunc: func(r ApiGetRegistryRequest) (RegistryRest, *_nethttp.Response, error) { // panic("mock out the GetRegistryExecute method") // }, // } @@ -54,7 +54,7 @@ type RegistriesApiMock struct { CreateRegistryFunc func(ctx _context.Context) ApiCreateRegistryRequest // CreateRegistryExecuteFunc mocks the CreateRegistryExecute method. - CreateRegistryExecuteFunc func(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) + CreateRegistryExecuteFunc func(r ApiCreateRegistryRequest) (RegistryRest, *_nethttp.Response, error) // DeleteRegistryFunc mocks the DeleteRegistry method. DeleteRegistryFunc func(ctx _context.Context, id string) ApiDeleteRegistryRequest @@ -66,13 +66,13 @@ type RegistriesApiMock struct { GetRegistriesFunc func(ctx _context.Context) ApiGetRegistriesRequest // GetRegistriesExecuteFunc mocks the GetRegistriesExecute method. - GetRegistriesExecuteFunc func(r ApiGetRegistriesRequest) (RegistryRestList, *_nethttp.Response, error) + GetRegistriesExecuteFunc func(r ApiGetRegistriesRequest) (RegistryListRest, *_nethttp.Response, error) // GetRegistryFunc mocks the GetRegistry method. GetRegistryFunc func(ctx _context.Context, id string) ApiGetRegistryRequest // GetRegistryExecuteFunc mocks the GetRegistryExecute method. - GetRegistryExecuteFunc func(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) + GetRegistryExecuteFunc func(r ApiGetRegistryRequest) (RegistryRest, *_nethttp.Response, error) // calls tracks calls to the methods. calls struct { @@ -163,7 +163,7 @@ func (mock *RegistriesApiMock) CreateRegistryCalls() []struct { } // CreateRegistryExecute calls CreateRegistryExecuteFunc. -func (mock *RegistriesApiMock) CreateRegistryExecute(r ApiCreateRegistryRequest) (Registry, *_nethttp.Response, error) { +func (mock *RegistriesApiMock) CreateRegistryExecute(r ApiCreateRegistryRequest) (RegistryRest, *_nethttp.Response, error) { if mock.CreateRegistryExecuteFunc == nil { panic("RegistriesApiMock.CreateRegistryExecuteFunc: method is nil but RegistriesApi.CreateRegistryExecute was just called") } @@ -291,7 +291,7 @@ func (mock *RegistriesApiMock) GetRegistriesCalls() []struct { } // GetRegistriesExecute calls GetRegistriesExecuteFunc. -func (mock *RegistriesApiMock) GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryRestList, *_nethttp.Response, error) { +func (mock *RegistriesApiMock) GetRegistriesExecute(r ApiGetRegistriesRequest) (RegistryListRest, *_nethttp.Response, error) { if mock.GetRegistriesExecuteFunc == nil { panic("RegistriesApiMock.GetRegistriesExecuteFunc: method is nil but RegistriesApi.GetRegistriesExecute was just called") } @@ -357,7 +357,7 @@ func (mock *RegistriesApiMock) GetRegistryCalls() []struct { } // GetRegistryExecute calls GetRegistryExecuteFunc. -func (mock *RegistriesApiMock) GetRegistryExecute(r ApiGetRegistryRequest) (Registry, *_nethttp.Response, error) { +func (mock *RegistriesApiMock) GetRegistryExecute(r ApiGetRegistryRequest) (RegistryRest, *_nethttp.Response, error) { if mock.GetRegistryExecuteFunc == nil { panic("RegistriesApiMock.GetRegistryExecuteFunc: method is nil but RegistriesApi.GetRegistryExecute was just called") }