From 5e28f2f4dbd25ec50ba9fad055ae84c82fdc6a49 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Thu, 3 Jun 2021 12:54:57 +0100 Subject: [PATCH] chore: update the kas-fleet-manager API to the latest version (#73) --- .openapi/kas-fleet-manager.yaml | 61 ++- endpoint.go | 4 +- go.mod | 4 +- go.sum | 2 - kafkamgmt/apiv1/client/README.md | 4 +- kafkamgmt/apiv1/client/api/openapi.yaml | 61 ++- kafkamgmt/apiv1/client/default_api_mock.go | 298 ++++++------- kafkamgmt/apiv1/client/docs/CloudProvider.md | 8 +- .../apiv1/client/docs/CloudProviderList.md | 8 +- .../client/docs/CloudProviderListAllOf.md | 4 +- kafkamgmt/apiv1/client/docs/CloudRegion.md | 7 +- .../apiv1/client/docs/CloudRegionList.md | 8 +- .../apiv1/client/docs/CloudRegionListAllOf.md | 4 +- kafkamgmt/apiv1/client/docs/Error.md | 9 +- kafkamgmt/apiv1/client/docs/ErrorAllOf.md | 6 +- kafkamgmt/apiv1/client/docs/ErrorList.md | 8 +- kafkamgmt/apiv1/client/docs/ErrorListAllOf.md | 4 +- kafkamgmt/apiv1/client/docs/InstantQuery.md | 6 +- kafkamgmt/apiv1/client/docs/KafkaRequest.md | 17 +- .../apiv1/client/docs/KafkaRequestAllOf.md | 14 +- .../apiv1/client/docs/KafkaRequestList.md | 8 +- .../client/docs/KafkaRequestListAllOf.md | 4 +- .../apiv1/client/docs/KafkaRequestPayload.md | 7 +- kafkamgmt/apiv1/client/docs/List.md | 7 +- .../client/docs/MetricsInstantQueryList.md | 6 +- .../docs/MetricsInstantQueryListAllOf.md | 6 +- .../client/docs/MetricsRangeQueryList.md | 6 +- .../client/docs/MetricsRangeQueryListAllOf.md | 6 +- .../apiv1/client/docs/ObjectReference.md | 6 +- kafkamgmt/apiv1/client/docs/RangeQuery.md | 5 +- kafkamgmt/apiv1/client/docs/ServiceAccount.md | 38 +- .../apiv1/client/docs/ServiceAccountAllOf.md | 36 +- .../apiv1/client/docs/ServiceAccountList.md | 5 +- .../client/docs/ServiceAccountListAllOf.md | 5 +- .../client/docs/ServiceAccountListItem.md | 37 +- .../docs/ServiceAccountListItemAllOf.md | 35 +- .../client/docs/ServiceAccountRequest.md | 5 +- kafkamgmt/apiv1/client/docs/ServiceStatus.md | 4 +- .../apiv1/client/docs/ServiceStatusKafkas.md | 4 +- kafkamgmt/apiv1/client/docs/Values.md | 5 +- .../apiv1/client/docs/VersionMetadata.md | 7 +- .../apiv1/client/docs/VersionMetadataAllOf.md | 4 +- .../apiv1/client/model_cloud_provider.go | 12 + .../apiv1/client/model_cloud_provider_list.go | 19 +- .../model_cloud_provider_list_all_of.go | 3 + kafkamgmt/apiv1/client/model_cloud_region.go | 11 + .../apiv1/client/model_cloud_region_list.go | 19 +- .../client/model_cloud_region_list_all_of.go | 3 + kafkamgmt/apiv1/client/model_error.go | 23 +- kafkamgmt/apiv1/client/model_error_all_of.go | 11 +- kafkamgmt/apiv1/client/model_error_list.go | 19 +- .../apiv1/client/model_error_list_all_of.go | 3 + kafkamgmt/apiv1/client/model_instant_query.go | 17 +- kafkamgmt/apiv1/client/model_kafka_request.go | 59 ++- .../client/model_kafka_request_all_of.go | 47 ++- .../apiv1/client/model_kafka_request_list.go | 19 +- .../client/model_kafka_request_list_all_of.go | 3 + .../client/model_kafka_request_payload.go | 10 + kafkamgmt/apiv1/client/model_list.go | 17 +- .../model_metrics_instant_query_list.go | 11 +- ...model_metrics_instant_query_list_all_of.go | 11 +- .../client/model_metrics_range_query_list.go | 11 +- .../model_metrics_range_query_list_all_of.go | 11 +- .../apiv1/client/model_object_reference.go | 9 +- kafkamgmt/apiv1/client/model_range_query.go | 7 +- .../apiv1/client/model_service_account.go | 72 ++-- .../client/model_service_account_all_of.go | 64 +-- .../client/model_service_account_list.go | 7 +- .../model_service_account_list_all_of.go | 7 +- .../client/model_service_account_list_item.go | 54 ++- .../model_service_account_list_item_all_of.go | 48 ++- .../client/model_service_account_request.go | 6 + .../apiv1/client/model_service_status.go | 3 + .../client/model_service_status_kafkas.go | 4 + kafkamgmt/apiv1/client/model_values.go | 13 +- .../apiv1/client/model_version_metadata.go | 15 +- .../client/model_version_metadata_all_of.go | 3 + scripts/generate_go.sh | 10 +- scripts/templates/model_doc.mustache | 97 +++++ scripts/templates/model_simple.mustache | 393 ++++++++++++++++++ 80 files changed, 1490 insertions(+), 444 deletions(-) create mode 100644 scripts/templates/model_doc.mustache create mode 100644 scripts/templates/model_simple.mustache diff --git a/.openapi/kas-fleet-manager.yaml b/.openapi/kas-fleet-manager.yaml index 0e5ee6f1..5a16a08a 100644 --- a/.openapi/kas-fleet-manager.yaml +++ b/.openapi/kas-fleet-manager.yaml @@ -730,6 +730,9 @@ components: type: string bootstrapServerHost: type: string + deprecated: true + bootstrap_server_host: + type: string created_at: format: date-time type: string @@ -900,8 +903,14 @@ components: type: string clientID: type: string + deprecated: true + client_id: + type: string clientSecret: type: string + deprecated: true + client_secret: + type: string owner: type: string created_at: @@ -935,6 +944,10 @@ components: clientID: description: 'client id of the service account' type: string + deprecated: true + client_id: + description: 'client id of the service account' + type: string name: description: 'name of the service account' type: string @@ -1002,11 +1015,19 @@ components: Timestamp: type: integer format: int64 + deprecated: true + timestamp: + type: integer + format: int64 Value: type: number format: double + deprecated: true + value: + type: number + format: double required: - - Value + - value MetricsInstantQueryList: allOf: - type: object @@ -1035,11 +1056,19 @@ components: Timestamp: type: integer format: int64 + deprecated: true + timestamp: + type: integer + format: int64 Value: type: number format: double + deprecated: true + value: + type: number + format: double required: - - Value + - value parameters: @@ -1199,7 +1228,7 @@ components: region: "us-east-1" owner: "api_kafka_service" name: "serviceapi" - bootstrapServerHost: "serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org" + bootstrap_server_host: "serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org" created_at: "2020-10-05T12:51:24.053142Z" updated_at: "2020-10-05T12:56:36.362208Z" version: "2.6.0" @@ -1214,7 +1243,7 @@ components: region: "us-east-1" owner: "api_kafka_service" name: "serviceapi" - bootstrapServerHost: "serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org" + bootstrap_server_host: "serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org" created_at: "2020-10-05T12:51:24.053142Z" updated_at: "2020-10-05T12:56:36.362208Z" failed_reason: "a reason the kafka request creation failed" @@ -1242,8 +1271,8 @@ components: href: "/api/kafkas_mgmt/v1/serviceaccounts/1" name: "my-app-sa" description: "service account for my app" - clientID: "SA-121212" - clientSecret: "secret" + client_id: "SA-121212" + client_secret: "secret" owner: "test-user" created_at: "2021-04-07T16:24:01+05:30" ServiceAccountByIdExample: @@ -1253,7 +1282,7 @@ components: href: "/api/kafkas_mgmt/v1/serviceaccounts/1" name: "my-app-sa" description: "service account for my app" - clientID: "SA-121212" + client_id: "SA-121212" owner: "test-user" created_at: "2021-04-07T16:24:01+05:30" ServiceAccountListItemExample: @@ -1263,7 +1292,7 @@ components: href: "/api/kafkas_mgmt/v1/serviceaccounts/1" name: "my-app-sa" description: "service account for my app" - clientID: "SA-121212" + client_id: "SA-121212" owner: "test-user" created_at: "2021-04-07T16:24:01+05:30" MetricsRangeQueryExample: @@ -1273,20 +1302,20 @@ components: strimzi_io_cluster: kafka-service topic: __consumer_offsets values: - - Timestamp: 1611670230000 - Value: 84154 - - Timestamp: 1611670260000 - Value: 85888 - - Timestamp: 1611670290000 - Value: 87622 + - timestamp: 1611670230000 + value: 84154 + - timestamp: 1611670260000 + value: 85888 + - timestamp: 1611670290000 + value: 87622 MetricsInstantQueryExample: value: metric: __name__: kafka_server_brokertopicmetrics_bytes_in_total strimzi_io_cluster: kafka-service topic: __consumer_offsets - Timestamp: 1611670230000 - Value: 84154 + timestamp: 1611670230000 + value: 84154 400DeletionExample: value: id: "103" diff --git a/endpoint.go b/endpoint.go index 9f2b8614..5a6ccf7d 100644 --- a/endpoint.go +++ b/endpoint.go @@ -4,6 +4,6 @@ import "golang.org/x/oauth2" // Endpoint is the default OAuth endpoints for RHOAS var Endpoint = oauth2.Endpoint{ - AuthURL: "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/auth", + AuthURL: "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/auth", TokenURL: "https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token", -} \ No newline at end of file +} diff --git a/go.mod b/go.mod index 746fc67a..f0ff4942 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,4 @@ module github.com/redhat-developer/app-services-sdk-go go 1.13 -require ( - golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c -) +require golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c diff --git a/go.sum b/go.sum index f2a35640..ab0770af 100644 --- a/go.sum +++ b/go.sum @@ -105,8 +105,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/redhat-developer/app-services-sdk-go/kafkaadmin v0.1.0 h1:6datQi9yC9tgxOrp25EF3B9XUgAOHCEpz9mufAqIaYg= -github.com/redhat-developer/app-services-sdk-go/kafkaadmin v0.1.0/go.mod h1:K31N16ceE4c1FE4US17qHqmJ86sUZaWBpmXkSUfSDFA= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= diff --git a/kafkamgmt/apiv1/client/README.md b/kafkamgmt/apiv1/client/README.md index ef16304b..ee03c72c 100644 --- a/kafkamgmt/apiv1/client/README.md +++ b/kafkamgmt/apiv1/client/README.md @@ -1,4 +1,4 @@ -# Go API client for kafkamgmt +# Go API client for kafkamgmtclient Kafka Service Fleet Manager is a Rest API to manage kafka instances and connectors. @@ -22,7 +22,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```golang -import sw "./kafkamgmt" +import sw "./kafkamgmtclient" ``` To use a proxy, set the environment variable `HTTP_PROXY`: diff --git a/kafkamgmt/apiv1/client/api/openapi.yaml b/kafkamgmt/apiv1/client/api/openapi.yaml index 435ed86c..80d3e394 100644 --- a/kafkamgmt/apiv1/client/api/openapi.yaml +++ b/kafkamgmt/apiv1/client/api/openapi.yaml @@ -914,7 +914,7 @@ components: region: us-east-1 owner: api_kafka_service name: serviceapi - bootstrapServerHost: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org + bootstrap_server_host: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org created_at: 2020-10-05T12:51:24.053142Z updated_at: 2020-10-05T12:56:36.362208Z version: 2.6.0 @@ -929,7 +929,7 @@ components: region: us-east-1 owner: api_kafka_service name: serviceapi - bootstrapServerHost: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org + bootstrap_server_host: serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org created_at: 2020-10-05T12:51:24.053142Z updated_at: 2020-10-05T12:56:36.362208Z failed_reason: a reason the kafka request creation failed @@ -957,8 +957,8 @@ components: href: /api/kafkas_mgmt/v1/serviceaccounts/1 name: my-app-sa description: service account for my app - clientID: SA-121212 - clientSecret: secret + client_id: SA-121212 + client_secret: secret owner: test-user created_at: 2021-04-07T16:24:01+05:30 ServiceAccountByIdExample: @@ -968,7 +968,7 @@ components: href: /api/kafkas_mgmt/v1/serviceaccounts/1 name: my-app-sa description: service account for my app - clientID: SA-121212 + client_id: SA-121212 owner: test-user created_at: 2021-04-07T16:24:01+05:30 ServiceAccountListItemExample: @@ -978,7 +978,7 @@ components: href: /api/kafkas_mgmt/v1/serviceaccounts/1 name: my-app-sa description: service account for my app - clientID: SA-121212 + client_id: SA-121212 owner: test-user created_at: 2021-04-07T16:24:01+05:30 MetricsRangeQueryExample: @@ -988,20 +988,20 @@ components: strimzi_io_cluster: kafka-service topic: __consumer_offsets values: - - Timestamp: 1611670230000 - Value: 84154 - - Timestamp: 1611670260000 - Value: 85888 - - Timestamp: 1611670290000 - Value: 87622 + - timestamp: 1611670230000 + value: 84154 + - timestamp: 1611670260000 + value: 85888 + - timestamp: 1611670290000 + value: 87622 MetricsInstantQueryExample: value: metric: __name__: kafka_server_brokertopicmetrics_bytes_in_total strimzi_io_cluster: kafka-service topic: __consumer_offsets - Timestamp: 1611670230000 - Value: 84154 + timestamp: 1611670230000 + value: 84154 "400DeletionExample": value: id: "103" @@ -1413,13 +1413,21 @@ components: values: properties: Timestamp: + deprecated: true + format: int64 + type: integer + timestamp: format: int64 type: integer Value: + deprecated: true + format: double + type: number + value: format: double type: number required: - - Value + - value type: object MetricsInstantQueryList: allOf: @@ -1431,13 +1439,21 @@ components: type: string type: object Timestamp: + deprecated: true + format: int64 + type: integer + timestamp: format: int64 type: integer Value: + deprecated: true + format: double + type: number + value: format: double type: number required: - - Value + - value type: object Error_allOf: properties: @@ -1472,6 +1488,9 @@ components: name: type: string bootstrapServerHost: + deprecated: true + type: string + bootstrap_server_host: type: string created_at: format: date-time @@ -1566,8 +1585,14 @@ components: description: type: string clientID: + deprecated: true + type: string + client_id: type: string clientSecret: + deprecated: true + type: string + client_secret: type: string owner: type: string @@ -1581,6 +1606,10 @@ components: description: server generated unique id of the service account type: string clientID: + deprecated: true + description: client id of the service account + type: string + client_id: description: client id of the service account type: string name: diff --git a/kafkamgmt/apiv1/client/default_api_mock.go b/kafkamgmt/apiv1/client/default_api_mock.go index 190333a4..eb23dd38 100644 --- a/kafkamgmt/apiv1/client/default_api_mock.go +++ b/kafkamgmt/apiv1/client/default_api_mock.go @@ -4,8 +4,8 @@ package kafkamgmtclient import ( - _context "context" - _nethttp "net/http" + "context" + "net/http" "sync" ) @@ -15,143 +15,143 @@ var _ DefaultApi = &DefaultApiMock{} // DefaultApiMock is a mock implementation of DefaultApi. // -// func TestSomethingThatUsesDefaultApi(t *testing.T) { +// 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") -// }, -// } +// // 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, *http.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, *http.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, *http.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, *http.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, *http.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, *http.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, *http.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, *http.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, *http.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, *http.Response, error) { +// panic("mock out the GetVersionMetadataExecute method") +// }, +// } // -// // use mockedDefaultApi in code that requires DefaultApi -// // and then make assertions. +// // 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 + CreateKafkaFunc func(ctx context.Context) ApiCreateKafkaRequest // CreateKafkaExecuteFunc mocks the CreateKafkaExecute method. - CreateKafkaExecuteFunc func(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) + CreateKafkaExecuteFunc func(r ApiCreateKafkaRequest) (KafkaRequest, *http.Response, error) // DeleteKafkaByIdFunc mocks the DeleteKafkaById method. - DeleteKafkaByIdFunc func(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest + DeleteKafkaByIdFunc func(ctx context.Context, id string) ApiDeleteKafkaByIdRequest // DeleteKafkaByIdExecuteFunc mocks the DeleteKafkaByIdExecute method. - DeleteKafkaByIdExecuteFunc func(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) + DeleteKafkaByIdExecuteFunc func(r ApiDeleteKafkaByIdRequest) (Error, *http.Response, error) // GetCloudProviderRegionsFunc mocks the GetCloudProviderRegions method. - GetCloudProviderRegionsFunc func(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest + GetCloudProviderRegionsFunc func(ctx context.Context, id string) ApiGetCloudProviderRegionsRequest // GetCloudProviderRegionsExecuteFunc mocks the GetCloudProviderRegionsExecute method. - GetCloudProviderRegionsExecuteFunc func(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) + GetCloudProviderRegionsExecuteFunc func(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *http.Response, error) // GetCloudProvidersFunc mocks the GetCloudProviders method. - GetCloudProvidersFunc func(ctx _context.Context) ApiGetCloudProvidersRequest + GetCloudProvidersFunc func(ctx context.Context) ApiGetCloudProvidersRequest // GetCloudProvidersExecuteFunc mocks the GetCloudProvidersExecute method. - GetCloudProvidersExecuteFunc func(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) + GetCloudProvidersExecuteFunc func(r ApiGetCloudProvidersRequest) (CloudProviderList, *http.Response, error) // GetKafkaByIdFunc mocks the GetKafkaById method. - GetKafkaByIdFunc func(ctx _context.Context, id string) ApiGetKafkaByIdRequest + GetKafkaByIdFunc func(ctx context.Context, id string) ApiGetKafkaByIdRequest // GetKafkaByIdExecuteFunc mocks the GetKafkaByIdExecute method. - GetKafkaByIdExecuteFunc func(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) + GetKafkaByIdExecuteFunc func(r ApiGetKafkaByIdRequest) (KafkaRequest, *http.Response, error) // GetKafkasFunc mocks the GetKafkas method. - GetKafkasFunc func(ctx _context.Context) ApiGetKafkasRequest + GetKafkasFunc func(ctx context.Context) ApiGetKafkasRequest // GetKafkasExecuteFunc mocks the GetKafkasExecute method. - GetKafkasExecuteFunc func(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) + GetKafkasExecuteFunc func(r ApiGetKafkasRequest) (KafkaRequestList, *http.Response, error) // GetMetricsByInstantQueryFunc mocks the GetMetricsByInstantQuery method. - GetMetricsByInstantQueryFunc func(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest + GetMetricsByInstantQueryFunc func(ctx context.Context, id string) ApiGetMetricsByInstantQueryRequest // GetMetricsByInstantQueryExecuteFunc mocks the GetMetricsByInstantQueryExecute method. - GetMetricsByInstantQueryExecuteFunc func(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) + GetMetricsByInstantQueryExecuteFunc func(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *http.Response, error) // GetMetricsByRangeQueryFunc mocks the GetMetricsByRangeQuery method. - GetMetricsByRangeQueryFunc func(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest + GetMetricsByRangeQueryFunc func(ctx context.Context, id string) ApiGetMetricsByRangeQueryRequest // GetMetricsByRangeQueryExecuteFunc mocks the GetMetricsByRangeQueryExecute method. - GetMetricsByRangeQueryExecuteFunc func(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) + GetMetricsByRangeQueryExecuteFunc func(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *http.Response, error) // GetServiceStatusFunc mocks the GetServiceStatus method. - GetServiceStatusFunc func(ctx _context.Context) ApiGetServiceStatusRequest + GetServiceStatusFunc func(ctx context.Context) ApiGetServiceStatusRequest // GetServiceStatusExecuteFunc mocks the GetServiceStatusExecute method. - GetServiceStatusExecuteFunc func(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) + GetServiceStatusExecuteFunc func(r ApiGetServiceStatusRequest) (ServiceStatus, *http.Response, error) // GetVersionMetadataFunc mocks the GetVersionMetadata method. - GetVersionMetadataFunc func(ctx _context.Context) ApiGetVersionMetadataRequest + GetVersionMetadataFunc func(ctx context.Context) ApiGetVersionMetadataRequest // GetVersionMetadataExecuteFunc mocks the GetVersionMetadataExecute method. - GetVersionMetadataExecuteFunc func(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) + GetVersionMetadataExecuteFunc func(r ApiGetVersionMetadataRequest) (VersionMetadata, *http.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 + Ctx context.Context } // CreateKafkaExecute holds details about calls to the CreateKafkaExecute method. CreateKafkaExecute []struct { @@ -161,7 +161,7 @@ type DefaultApiMock struct { // DeleteKafkaById holds details about calls to the DeleteKafkaById method. DeleteKafkaById []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context // ID is the id argument value. ID string } @@ -173,7 +173,7 @@ type DefaultApiMock struct { // GetCloudProviderRegions holds details about calls to the GetCloudProviderRegions method. GetCloudProviderRegions []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context // ID is the id argument value. ID string } @@ -185,7 +185,7 @@ type DefaultApiMock struct { // GetCloudProviders holds details about calls to the GetCloudProviders method. GetCloudProviders []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context } // GetCloudProvidersExecute holds details about calls to the GetCloudProvidersExecute method. GetCloudProvidersExecute []struct { @@ -195,7 +195,7 @@ type DefaultApiMock struct { // GetKafkaById holds details about calls to the GetKafkaById method. GetKafkaById []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context // ID is the id argument value. ID string } @@ -207,7 +207,7 @@ type DefaultApiMock struct { // GetKafkas holds details about calls to the GetKafkas method. GetKafkas []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context } // GetKafkasExecute holds details about calls to the GetKafkasExecute method. GetKafkasExecute []struct { @@ -217,7 +217,7 @@ type DefaultApiMock struct { // GetMetricsByInstantQuery holds details about calls to the GetMetricsByInstantQuery method. GetMetricsByInstantQuery []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context // ID is the id argument value. ID string } @@ -229,7 +229,7 @@ type DefaultApiMock struct { // GetMetricsByRangeQuery holds details about calls to the GetMetricsByRangeQuery method. GetMetricsByRangeQuery []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context // ID is the id argument value. ID string } @@ -241,7 +241,7 @@ type DefaultApiMock struct { // GetServiceStatus holds details about calls to the GetServiceStatus method. GetServiceStatus []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context } // GetServiceStatusExecute holds details about calls to the GetServiceStatusExecute method. GetServiceStatusExecute []struct { @@ -251,7 +251,7 @@ type DefaultApiMock struct { // GetVersionMetadata holds details about calls to the GetVersionMetadata method. GetVersionMetadata []struct { // Ctx is the ctx argument value. - Ctx _context.Context + Ctx context.Context } // GetVersionMetadataExecute holds details about calls to the GetVersionMetadataExecute method. GetVersionMetadataExecute []struct { @@ -282,12 +282,12 @@ type DefaultApiMock struct { } // CreateKafka calls CreateKafkaFunc. -func (mock *DefaultApiMock) CreateKafka(ctx _context.Context) ApiCreateKafkaRequest { +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 context.Context }{ Ctx: ctx, } @@ -301,10 +301,10 @@ func (mock *DefaultApiMock) CreateKafka(ctx _context.Context) ApiCreateKafkaRequ // Check the length with: // len(mockedDefaultApi.CreateKafkaCalls()) func (mock *DefaultApiMock) CreateKafkaCalls() []struct { - Ctx _context.Context + Ctx context.Context } { var calls []struct { - Ctx _context.Context + Ctx context.Context } mock.lockCreateKafka.RLock() calls = mock.calls.CreateKafka @@ -313,7 +313,7 @@ func (mock *DefaultApiMock) CreateKafkaCalls() []struct { } // CreateKafkaExecute calls CreateKafkaExecuteFunc. -func (mock *DefaultApiMock) CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *_nethttp.Response, error) { +func (mock *DefaultApiMock) CreateKafkaExecute(r ApiCreateKafkaRequest) (KafkaRequest, *http.Response, error) { if mock.CreateKafkaExecuteFunc == nil { panic("DefaultApiMock.CreateKafkaExecuteFunc: method is nil but DefaultApi.CreateKafkaExecute was just called") } @@ -344,12 +344,12 @@ func (mock *DefaultApiMock) CreateKafkaExecuteCalls() []struct { } // DeleteKafkaById calls DeleteKafkaByIdFunc. -func (mock *DefaultApiMock) DeleteKafkaById(ctx _context.Context, id string) ApiDeleteKafkaByIdRequest { +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 + Ctx context.Context ID string }{ Ctx: ctx, @@ -365,11 +365,11 @@ func (mock *DefaultApiMock) DeleteKafkaById(ctx _context.Context, id string) Api // Check the length with: // len(mockedDefaultApi.DeleteKafkaByIdCalls()) func (mock *DefaultApiMock) DeleteKafkaByIdCalls() []struct { - Ctx _context.Context + Ctx context.Context ID string } { var calls []struct { - Ctx _context.Context + Ctx context.Context ID string } mock.lockDeleteKafkaById.RLock() @@ -379,7 +379,7 @@ func (mock *DefaultApiMock) DeleteKafkaByIdCalls() []struct { } // DeleteKafkaByIdExecute calls DeleteKafkaByIdExecuteFunc. -func (mock *DefaultApiMock) DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *_nethttp.Response, error) { +func (mock *DefaultApiMock) DeleteKafkaByIdExecute(r ApiDeleteKafkaByIdRequest) (Error, *http.Response, error) { if mock.DeleteKafkaByIdExecuteFunc == nil { panic("DefaultApiMock.DeleteKafkaByIdExecuteFunc: method is nil but DefaultApi.DeleteKafkaByIdExecute was just called") } @@ -410,12 +410,12 @@ func (mock *DefaultApiMock) DeleteKafkaByIdExecuteCalls() []struct { } // GetCloudProviderRegions calls GetCloudProviderRegionsFunc. -func (mock *DefaultApiMock) GetCloudProviderRegions(ctx _context.Context, id string) ApiGetCloudProviderRegionsRequest { +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 + Ctx context.Context ID string }{ Ctx: ctx, @@ -431,11 +431,11 @@ func (mock *DefaultApiMock) GetCloudProviderRegions(ctx _context.Context, id str // Check the length with: // len(mockedDefaultApi.GetCloudProviderRegionsCalls()) func (mock *DefaultApiMock) GetCloudProviderRegionsCalls() []struct { - Ctx _context.Context + Ctx context.Context ID string } { var calls []struct { - Ctx _context.Context + Ctx context.Context ID string } mock.lockGetCloudProviderRegions.RLock() @@ -445,7 +445,7 @@ func (mock *DefaultApiMock) GetCloudProviderRegionsCalls() []struct { } // GetCloudProviderRegionsExecute calls GetCloudProviderRegionsExecuteFunc. -func (mock *DefaultApiMock) GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetCloudProviderRegionsExecute(r ApiGetCloudProviderRegionsRequest) (CloudRegionList, *http.Response, error) { if mock.GetCloudProviderRegionsExecuteFunc == nil { panic("DefaultApiMock.GetCloudProviderRegionsExecuteFunc: method is nil but DefaultApi.GetCloudProviderRegionsExecute was just called") } @@ -476,12 +476,12 @@ func (mock *DefaultApiMock) GetCloudProviderRegionsExecuteCalls() []struct { } // GetCloudProviders calls GetCloudProvidersFunc. -func (mock *DefaultApiMock) GetCloudProviders(ctx _context.Context) ApiGetCloudProvidersRequest { +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 context.Context }{ Ctx: ctx, } @@ -495,10 +495,10 @@ func (mock *DefaultApiMock) GetCloudProviders(ctx _context.Context) ApiGetCloudP // Check the length with: // len(mockedDefaultApi.GetCloudProvidersCalls()) func (mock *DefaultApiMock) GetCloudProvidersCalls() []struct { - Ctx _context.Context + Ctx context.Context } { var calls []struct { - Ctx _context.Context + Ctx context.Context } mock.lockGetCloudProviders.RLock() calls = mock.calls.GetCloudProviders @@ -507,7 +507,7 @@ func (mock *DefaultApiMock) GetCloudProvidersCalls() []struct { } // GetCloudProvidersExecute calls GetCloudProvidersExecuteFunc. -func (mock *DefaultApiMock) GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetCloudProvidersExecute(r ApiGetCloudProvidersRequest) (CloudProviderList, *http.Response, error) { if mock.GetCloudProvidersExecuteFunc == nil { panic("DefaultApiMock.GetCloudProvidersExecuteFunc: method is nil but DefaultApi.GetCloudProvidersExecute was just called") } @@ -538,12 +538,12 @@ func (mock *DefaultApiMock) GetCloudProvidersExecuteCalls() []struct { } // GetKafkaById calls GetKafkaByIdFunc. -func (mock *DefaultApiMock) GetKafkaById(ctx _context.Context, id string) ApiGetKafkaByIdRequest { +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 + Ctx context.Context ID string }{ Ctx: ctx, @@ -559,11 +559,11 @@ func (mock *DefaultApiMock) GetKafkaById(ctx _context.Context, id string) ApiGet // Check the length with: // len(mockedDefaultApi.GetKafkaByIdCalls()) func (mock *DefaultApiMock) GetKafkaByIdCalls() []struct { - Ctx _context.Context + Ctx context.Context ID string } { var calls []struct { - Ctx _context.Context + Ctx context.Context ID string } mock.lockGetKafkaById.RLock() @@ -573,7 +573,7 @@ func (mock *DefaultApiMock) GetKafkaByIdCalls() []struct { } // GetKafkaByIdExecute calls GetKafkaByIdExecuteFunc. -func (mock *DefaultApiMock) GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetKafkaByIdExecute(r ApiGetKafkaByIdRequest) (KafkaRequest, *http.Response, error) { if mock.GetKafkaByIdExecuteFunc == nil { panic("DefaultApiMock.GetKafkaByIdExecuteFunc: method is nil but DefaultApi.GetKafkaByIdExecute was just called") } @@ -604,12 +604,12 @@ func (mock *DefaultApiMock) GetKafkaByIdExecuteCalls() []struct { } // GetKafkas calls GetKafkasFunc. -func (mock *DefaultApiMock) GetKafkas(ctx _context.Context) ApiGetKafkasRequest { +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 context.Context }{ Ctx: ctx, } @@ -623,10 +623,10 @@ func (mock *DefaultApiMock) GetKafkas(ctx _context.Context) ApiGetKafkasRequest // Check the length with: // len(mockedDefaultApi.GetKafkasCalls()) func (mock *DefaultApiMock) GetKafkasCalls() []struct { - Ctx _context.Context + Ctx context.Context } { var calls []struct { - Ctx _context.Context + Ctx context.Context } mock.lockGetKafkas.RLock() calls = mock.calls.GetKafkas @@ -635,7 +635,7 @@ func (mock *DefaultApiMock) GetKafkasCalls() []struct { } // GetKafkasExecute calls GetKafkasExecuteFunc. -func (mock *DefaultApiMock) GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetKafkasExecute(r ApiGetKafkasRequest) (KafkaRequestList, *http.Response, error) { if mock.GetKafkasExecuteFunc == nil { panic("DefaultApiMock.GetKafkasExecuteFunc: method is nil but DefaultApi.GetKafkasExecute was just called") } @@ -666,12 +666,12 @@ func (mock *DefaultApiMock) GetKafkasExecuteCalls() []struct { } // GetMetricsByInstantQuery calls GetMetricsByInstantQueryFunc. -func (mock *DefaultApiMock) GetMetricsByInstantQuery(ctx _context.Context, id string) ApiGetMetricsByInstantQueryRequest { +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 + Ctx context.Context ID string }{ Ctx: ctx, @@ -687,11 +687,11 @@ func (mock *DefaultApiMock) GetMetricsByInstantQuery(ctx _context.Context, id st // Check the length with: // len(mockedDefaultApi.GetMetricsByInstantQueryCalls()) func (mock *DefaultApiMock) GetMetricsByInstantQueryCalls() []struct { - Ctx _context.Context + Ctx context.Context ID string } { var calls []struct { - Ctx _context.Context + Ctx context.Context ID string } mock.lockGetMetricsByInstantQuery.RLock() @@ -701,7 +701,7 @@ func (mock *DefaultApiMock) GetMetricsByInstantQueryCalls() []struct { } // GetMetricsByInstantQueryExecute calls GetMetricsByInstantQueryExecuteFunc. -func (mock *DefaultApiMock) GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetMetricsByInstantQueryExecute(r ApiGetMetricsByInstantQueryRequest) (MetricsInstantQueryList, *http.Response, error) { if mock.GetMetricsByInstantQueryExecuteFunc == nil { panic("DefaultApiMock.GetMetricsByInstantQueryExecuteFunc: method is nil but DefaultApi.GetMetricsByInstantQueryExecute was just called") } @@ -732,12 +732,12 @@ func (mock *DefaultApiMock) GetMetricsByInstantQueryExecuteCalls() []struct { } // GetMetricsByRangeQuery calls GetMetricsByRangeQueryFunc. -func (mock *DefaultApiMock) GetMetricsByRangeQuery(ctx _context.Context, id string) ApiGetMetricsByRangeQueryRequest { +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 + Ctx context.Context ID string }{ Ctx: ctx, @@ -753,11 +753,11 @@ func (mock *DefaultApiMock) GetMetricsByRangeQuery(ctx _context.Context, id stri // Check the length with: // len(mockedDefaultApi.GetMetricsByRangeQueryCalls()) func (mock *DefaultApiMock) GetMetricsByRangeQueryCalls() []struct { - Ctx _context.Context + Ctx context.Context ID string } { var calls []struct { - Ctx _context.Context + Ctx context.Context ID string } mock.lockGetMetricsByRangeQuery.RLock() @@ -767,7 +767,7 @@ func (mock *DefaultApiMock) GetMetricsByRangeQueryCalls() []struct { } // GetMetricsByRangeQueryExecute calls GetMetricsByRangeQueryExecuteFunc. -func (mock *DefaultApiMock) GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetMetricsByRangeQueryExecute(r ApiGetMetricsByRangeQueryRequest) (MetricsRangeQueryList, *http.Response, error) { if mock.GetMetricsByRangeQueryExecuteFunc == nil { panic("DefaultApiMock.GetMetricsByRangeQueryExecuteFunc: method is nil but DefaultApi.GetMetricsByRangeQueryExecute was just called") } @@ -798,12 +798,12 @@ func (mock *DefaultApiMock) GetMetricsByRangeQueryExecuteCalls() []struct { } // GetServiceStatus calls GetServiceStatusFunc. -func (mock *DefaultApiMock) GetServiceStatus(ctx _context.Context) ApiGetServiceStatusRequest { +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 context.Context }{ Ctx: ctx, } @@ -817,10 +817,10 @@ func (mock *DefaultApiMock) GetServiceStatus(ctx _context.Context) ApiGetService // Check the length with: // len(mockedDefaultApi.GetServiceStatusCalls()) func (mock *DefaultApiMock) GetServiceStatusCalls() []struct { - Ctx _context.Context + Ctx context.Context } { var calls []struct { - Ctx _context.Context + Ctx context.Context } mock.lockGetServiceStatus.RLock() calls = mock.calls.GetServiceStatus @@ -829,7 +829,7 @@ func (mock *DefaultApiMock) GetServiceStatusCalls() []struct { } // GetServiceStatusExecute calls GetServiceStatusExecuteFunc. -func (mock *DefaultApiMock) GetServiceStatusExecute(r ApiGetServiceStatusRequest) (ServiceStatus, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetServiceStatusExecute(r ApiGetServiceStatusRequest) (ServiceStatus, *http.Response, error) { if mock.GetServiceStatusExecuteFunc == nil { panic("DefaultApiMock.GetServiceStatusExecuteFunc: method is nil but DefaultApi.GetServiceStatusExecute was just called") } @@ -860,12 +860,12 @@ func (mock *DefaultApiMock) GetServiceStatusExecuteCalls() []struct { } // GetVersionMetadata calls GetVersionMetadataFunc. -func (mock *DefaultApiMock) GetVersionMetadata(ctx _context.Context) ApiGetVersionMetadataRequest { +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 context.Context }{ Ctx: ctx, } @@ -879,10 +879,10 @@ func (mock *DefaultApiMock) GetVersionMetadata(ctx _context.Context) ApiGetVersi // Check the length with: // len(mockedDefaultApi.GetVersionMetadataCalls()) func (mock *DefaultApiMock) GetVersionMetadataCalls() []struct { - Ctx _context.Context + Ctx context.Context } { var calls []struct { - Ctx _context.Context + Ctx context.Context } mock.lockGetVersionMetadata.RLock() calls = mock.calls.GetVersionMetadata @@ -891,7 +891,7 @@ func (mock *DefaultApiMock) GetVersionMetadataCalls() []struct { } // GetVersionMetadataExecute calls GetVersionMetadataExecuteFunc. -func (mock *DefaultApiMock) GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *_nethttp.Response, error) { +func (mock *DefaultApiMock) GetVersionMetadataExecute(r ApiGetVersionMetadataRequest) (VersionMetadata, *http.Response, error) { if mock.GetVersionMetadataExecuteFunc == nil { panic("DefaultApiMock.GetVersionMetadataExecuteFunc: method is nil but DefaultApi.GetVersionMetadataExecute was just called") } diff --git a/kafkamgmt/apiv1/client/docs/CloudProvider.md b/kafkamgmt/apiv1/client/docs/CloudProvider.md index c4e3770e..ba71941d 100644 --- a/kafkamgmt/apiv1/client/docs/CloudProvider.md +++ b/kafkamgmt/apiv1/client/docs/CloudProvider.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | Human friendly identifier of the cloud provider, for example `aws`. | [optional] **Enabled** | **bool** | Whether the cloud provider is enabled for deploying an OSD cluster. | + ## Methods ### NewCloudProvider @@ -29,6 +30,7 @@ NewCloudProviderWithDefaults instantiates a new CloudProvider 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 *CloudProvider) GetKind() string` @@ -54,6 +56,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetId `func (o *CloudProvider) GetId() string` @@ -79,6 +82,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetDisplayName `func (o *CloudProvider) GetDisplayName() string` @@ -104,6 +108,7 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. + ### GetName `func (o *CloudProvider) GetName() string` @@ -129,6 +134,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetEnabled `func (o *CloudProvider) GetEnabled() bool` @@ -150,6 +156,6 @@ SetEnabled sets Enabled 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) +[[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/kafkamgmt/apiv1/client/docs/CloudProviderList.md b/kafkamgmt/apiv1/client/docs/CloudProviderList.md index d3a6d065..b380ab53 100644 --- a/kafkamgmt/apiv1/client/docs/CloudProviderList.md +++ b/kafkamgmt/apiv1/client/docs/CloudProviderList.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Total** | **int32** | | **Items** | [**[]CloudProvider**](CloudProvider.md) | | + ## Methods ### NewCloudProviderList @@ -29,6 +30,7 @@ NewCloudProviderListWithDefaults instantiates a new CloudProviderList 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 *CloudProviderList) GetKind() string` @@ -49,6 +51,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetPage `func (o *CloudProviderList) GetPage() int32` @@ -69,6 +72,7 @@ and a boolean to check if the value has been set. SetPage sets Page field to given value. + ### GetSize `func (o *CloudProviderList) GetSize() int32` @@ -89,6 +93,7 @@ and a boolean to check if the value has been set. SetSize sets Size field to given value. + ### GetTotal `func (o *CloudProviderList) GetTotal() int32` @@ -109,6 +114,7 @@ and a boolean to check if the value has been set. SetTotal sets Total field to given value. + ### GetItems `func (o *CloudProviderList) GetItems() []CloudProvider` @@ -130,6 +136,6 @@ SetItems sets Items 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) +[[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/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md b/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md index 1b3b1c02..22a87f89 100644 --- a/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/CloudProviderListAllOf.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | Pointer to [**[]CloudProvider**](CloudProvider.md) | | [optional] + ## Methods ### NewCloudProviderListAllOf @@ -25,6 +26,7 @@ NewCloudProviderListAllOfWithDefaults instantiates a new CloudProviderListAllOf 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 *CloudProviderListAllOf) GetItems() []CloudProvider` @@ -51,6 +53,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/CloudRegion.md b/kafkamgmt/apiv1/client/docs/CloudRegion.md index c58b89e7..230abd5d 100644 --- a/kafkamgmt/apiv1/client/docs/CloudRegion.md +++ b/kafkamgmt/apiv1/client/docs/CloudRegion.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **DisplayName** | Pointer to **string** | Name of the region for display purposes, for example `N. Virginia`. | [optional] **Enabled** | **bool** | Whether the region is enabled for deploying an OSD cluster. | [default to false] + ## Methods ### NewCloudRegion @@ -28,6 +29,7 @@ NewCloudRegionWithDefaults instantiates a new CloudRegion 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 *CloudRegion) GetKind() string` @@ -53,6 +55,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetId `func (o *CloudRegion) GetId() string` @@ -78,6 +81,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetDisplayName `func (o *CloudRegion) GetDisplayName() string` @@ -103,6 +107,7 @@ SetDisplayName sets DisplayName field to given value. HasDisplayName returns a boolean if a field has been set. + ### GetEnabled `func (o *CloudRegion) GetEnabled() bool` @@ -124,6 +129,6 @@ SetEnabled sets Enabled 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) +[[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/kafkamgmt/apiv1/client/docs/CloudRegionList.md b/kafkamgmt/apiv1/client/docs/CloudRegionList.md index 38cee096..cdd6748f 100644 --- a/kafkamgmt/apiv1/client/docs/CloudRegionList.md +++ b/kafkamgmt/apiv1/client/docs/CloudRegionList.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Total** | **int32** | | **Items** | [**[]CloudRegion**](CloudRegion.md) | | + ## Methods ### NewCloudRegionList @@ -29,6 +30,7 @@ NewCloudRegionListWithDefaults instantiates a new CloudRegionList 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 *CloudRegionList) GetKind() string` @@ -49,6 +51,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetPage `func (o *CloudRegionList) GetPage() int32` @@ -69,6 +72,7 @@ and a boolean to check if the value has been set. SetPage sets Page field to given value. + ### GetSize `func (o *CloudRegionList) GetSize() int32` @@ -89,6 +93,7 @@ and a boolean to check if the value has been set. SetSize sets Size field to given value. + ### GetTotal `func (o *CloudRegionList) GetTotal() int32` @@ -109,6 +114,7 @@ and a boolean to check if the value has been set. SetTotal sets Total field to given value. + ### GetItems `func (o *CloudRegionList) GetItems() []CloudRegion` @@ -130,6 +136,6 @@ SetItems sets Items 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) +[[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/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md b/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md index 8152ef15..6eebbee3 100644 --- a/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/CloudRegionListAllOf.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | Pointer to [**[]CloudRegion**](CloudRegion.md) | | [optional] + ## Methods ### NewCloudRegionListAllOf @@ -25,6 +26,7 @@ NewCloudRegionListAllOfWithDefaults instantiates a new CloudRegionListAllOf obje 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 *CloudRegionListAllOf) GetItems() []CloudRegion` @@ -51,6 +53,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/Error.md b/kafkamgmt/apiv1/client/docs/Error.md index c9f750b2..e6af6fa9 100644 --- a/kafkamgmt/apiv1/client/docs/Error.md +++ b/kafkamgmt/apiv1/client/docs/Error.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **Reason** | Pointer to **string** | | [optional] **OperationId** | Pointer to **string** | | [optional] + ## Methods ### NewError @@ -30,6 +31,7 @@ NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set + ### GetId `func (o *Error) GetId() string` @@ -55,6 +57,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetKind `func (o *Error) GetKind() string` @@ -80,6 +83,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetHref `func (o *Error) GetHref() string` @@ -105,6 +109,7 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. + ### GetCode `func (o *Error) GetCode() string` @@ -130,6 +135,7 @@ SetCode sets Code field to given value. HasCode returns a boolean if a field has been set. + ### GetReason `func (o *Error) GetReason() string` @@ -155,6 +161,7 @@ SetReason sets Reason field to given value. HasReason returns a boolean if a field has been set. + ### GetOperationId `func (o *Error) GetOperationId() string` @@ -181,6 +188,6 @@ SetOperationId sets OperationId field to given value. HasOperationId returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ErrorAllOf.md b/kafkamgmt/apiv1/client/docs/ErrorAllOf.md index 82d51cc1..c0c1a2b5 100644 --- a/kafkamgmt/apiv1/client/docs/ErrorAllOf.md +++ b/kafkamgmt/apiv1/client/docs/ErrorAllOf.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Reason** | Pointer to **string** | | [optional] **OperationId** | Pointer to **string** | | [optional] + ## Methods ### NewErrorAllOf @@ -27,6 +28,7 @@ NewErrorAllOfWithDefaults instantiates a new ErrorAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set + ### GetCode `func (o *ErrorAllOf) GetCode() string` @@ -52,6 +54,7 @@ SetCode sets Code field to given value. HasCode returns a boolean if a field has been set. + ### GetReason `func (o *ErrorAllOf) GetReason() string` @@ -77,6 +80,7 @@ SetReason sets Reason field to given value. HasReason returns a boolean if a field has been set. + ### GetOperationId `func (o *ErrorAllOf) GetOperationId() string` @@ -103,6 +107,6 @@ SetOperationId sets OperationId field to given value. HasOperationId returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ErrorList.md b/kafkamgmt/apiv1/client/docs/ErrorList.md index 02e7e299..09c0bfbb 100644 --- a/kafkamgmt/apiv1/client/docs/ErrorList.md +++ b/kafkamgmt/apiv1/client/docs/ErrorList.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Total** | **int32** | | **Items** | [**[]Error**](Error.md) | | + ## Methods ### NewErrorList @@ -29,6 +30,7 @@ NewErrorListWithDefaults instantiates a new ErrorList 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` @@ -49,6 +51,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetPage `func (o *ErrorList) GetPage() int32` @@ -69,6 +72,7 @@ and a boolean to check if the value has been set. SetPage sets Page field to given value. + ### GetSize `func (o *ErrorList) GetSize() int32` @@ -89,6 +93,7 @@ and a boolean to check if the value has been set. SetSize sets Size field to given value. + ### GetTotal `func (o *ErrorList) GetTotal() int32` @@ -109,6 +114,7 @@ and a boolean to check if the value has been set. SetTotal sets Total field to given value. + ### GetItems `func (o *ErrorList) GetItems() []Error` @@ -130,6 +136,6 @@ SetItems sets Items 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) +[[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/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md b/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md index 5cd69e9b..e16f28d5 100644 --- a/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/ErrorListAllOf.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | Pointer to [**[]Error**](Error.md) | | [optional] + ## Methods ### NewErrorListAllOf @@ -25,6 +26,7 @@ NewErrorListAllOfWithDefaults instantiates a new ErrorListAllOf 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` @@ -51,6 +53,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/InstantQuery.md b/kafkamgmt/apiv1/client/docs/InstantQuery.md index 6201f262..ad8f50c5 100644 --- a/kafkamgmt/apiv1/client/docs/InstantQuery.md +++ b/kafkamgmt/apiv1/client/docs/InstantQuery.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Timestamp** | Pointer to **int64** | | [optional] **Value** | **float64** | | + ## Methods ### NewInstantQuery @@ -27,6 +28,7 @@ NewInstantQueryWithDefaults instantiates a new InstantQuery 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 + ### GetMetric `func (o *InstantQuery) GetMetric() map[string]string` @@ -52,6 +54,7 @@ SetMetric sets Metric field to given value. HasMetric returns a boolean if a field has been set. + ### GetTimestamp `func (o *InstantQuery) GetTimestamp() int64` @@ -77,6 +80,7 @@ SetTimestamp sets Timestamp field to given value. HasTimestamp returns a boolean if a field has been set. + ### GetValue `func (o *InstantQuery) GetValue() float64` @@ -98,6 +102,6 @@ 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) +[[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/kafkamgmt/apiv1/client/docs/KafkaRequest.md b/kafkamgmt/apiv1/client/docs/KafkaRequest.md index f3b47f3c..54dec409 100644 --- a/kafkamgmt/apiv1/client/docs/KafkaRequest.md +++ b/kafkamgmt/apiv1/client/docs/KafkaRequest.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **FailedReason** | Pointer to **string** | | [optional] **Version** | Pointer to **string** | | [optional] + ## Methods ### NewKafkaRequest @@ -38,6 +39,7 @@ NewKafkaRequestWithDefaults instantiates a new KafkaRequest 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 *KafkaRequest) GetId() string` @@ -63,6 +65,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetKind `func (o *KafkaRequest) GetKind() string` @@ -88,6 +91,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetHref `func (o *KafkaRequest) GetHref() string` @@ -113,6 +117,7 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. + ### GetStatus `func (o *KafkaRequest) GetStatus() string` @@ -138,6 +143,7 @@ SetStatus sets Status field to given value. HasStatus returns a boolean if a field has been set. + ### GetCloudProvider `func (o *KafkaRequest) GetCloudProvider() string` @@ -163,6 +169,7 @@ SetCloudProvider sets CloudProvider field to given value. HasCloudProvider returns a boolean if a field has been set. + ### GetMultiAz `func (o *KafkaRequest) GetMultiAz() bool` @@ -188,6 +195,7 @@ SetMultiAz sets MultiAz field to given value. HasMultiAz returns a boolean if a field has been set. + ### GetRegion `func (o *KafkaRequest) GetRegion() string` @@ -213,6 +221,7 @@ SetRegion sets Region field to given value. HasRegion returns a boolean if a field has been set. + ### GetOwner `func (o *KafkaRequest) GetOwner() string` @@ -238,6 +247,7 @@ SetOwner sets Owner field to given value. HasOwner returns a boolean if a field has been set. + ### GetName `func (o *KafkaRequest) GetName() string` @@ -263,6 +273,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetBootstrapServerHost `func (o *KafkaRequest) GetBootstrapServerHost() string` @@ -288,6 +299,7 @@ SetBootstrapServerHost sets BootstrapServerHost field to given value. HasBootstrapServerHost returns a boolean if a field has been set. + ### GetCreatedAt `func (o *KafkaRequest) GetCreatedAt() time.Time` @@ -313,6 +325,7 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. + ### GetUpdatedAt `func (o *KafkaRequest) GetUpdatedAt() time.Time` @@ -338,6 +351,7 @@ SetUpdatedAt sets UpdatedAt field to given value. HasUpdatedAt returns a boolean if a field has been set. + ### GetFailedReason `func (o *KafkaRequest) GetFailedReason() string` @@ -363,6 +377,7 @@ SetFailedReason sets FailedReason field to given value. HasFailedReason returns a boolean if a field has been set. + ### GetVersion `func (o *KafkaRequest) GetVersion() string` @@ -389,6 +404,6 @@ SetVersion sets Version field to given value. HasVersion returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md b/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md index fdf1ba47..6f9a357e 100644 --- a/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md +++ b/kafkamgmt/apiv1/client/docs/KafkaRequestAllOf.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **FailedReason** | Pointer to **string** | | [optional] **Version** | Pointer to **string** | | [optional] + ## Methods ### NewKafkaRequestAllOf @@ -35,6 +36,7 @@ NewKafkaRequestAllOfWithDefaults instantiates a new KafkaRequestAllOf 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 + ### GetStatus `func (o *KafkaRequestAllOf) GetStatus() string` @@ -60,6 +62,7 @@ SetStatus sets Status field to given value. HasStatus returns a boolean if a field has been set. + ### GetCloudProvider `func (o *KafkaRequestAllOf) GetCloudProvider() string` @@ -85,6 +88,7 @@ SetCloudProvider sets CloudProvider field to given value. HasCloudProvider returns a boolean if a field has been set. + ### GetMultiAz `func (o *KafkaRequestAllOf) GetMultiAz() bool` @@ -110,6 +114,7 @@ SetMultiAz sets MultiAz field to given value. HasMultiAz returns a boolean if a field has been set. + ### GetRegion `func (o *KafkaRequestAllOf) GetRegion() string` @@ -135,6 +140,7 @@ SetRegion sets Region field to given value. HasRegion returns a boolean if a field has been set. + ### GetOwner `func (o *KafkaRequestAllOf) GetOwner() string` @@ -160,6 +166,7 @@ SetOwner sets Owner field to given value. HasOwner returns a boolean if a field has been set. + ### GetName `func (o *KafkaRequestAllOf) GetName() string` @@ -185,6 +192,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetBootstrapServerHost `func (o *KafkaRequestAllOf) GetBootstrapServerHost() string` @@ -210,6 +218,7 @@ SetBootstrapServerHost sets BootstrapServerHost field to given value. HasBootstrapServerHost returns a boolean if a field has been set. + ### GetCreatedAt `func (o *KafkaRequestAllOf) GetCreatedAt() time.Time` @@ -235,6 +244,7 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. + ### GetUpdatedAt `func (o *KafkaRequestAllOf) GetUpdatedAt() time.Time` @@ -260,6 +270,7 @@ SetUpdatedAt sets UpdatedAt field to given value. HasUpdatedAt returns a boolean if a field has been set. + ### GetFailedReason `func (o *KafkaRequestAllOf) GetFailedReason() string` @@ -285,6 +296,7 @@ SetFailedReason sets FailedReason field to given value. HasFailedReason returns a boolean if a field has been set. + ### GetVersion `func (o *KafkaRequestAllOf) GetVersion() string` @@ -311,6 +323,6 @@ SetVersion sets Version field to given value. HasVersion returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/KafkaRequestList.md b/kafkamgmt/apiv1/client/docs/KafkaRequestList.md index 25e15d56..e91c443d 100644 --- a/kafkamgmt/apiv1/client/docs/KafkaRequestList.md +++ b/kafkamgmt/apiv1/client/docs/KafkaRequestList.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Total** | **int32** | | **Items** | [**[]KafkaRequest**](KafkaRequest.md) | | + ## Methods ### NewKafkaRequestList @@ -29,6 +30,7 @@ NewKafkaRequestListWithDefaults instantiates a new KafkaRequestList 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 *KafkaRequestList) GetKind() string` @@ -49,6 +51,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetPage `func (o *KafkaRequestList) GetPage() int32` @@ -69,6 +72,7 @@ and a boolean to check if the value has been set. SetPage sets Page field to given value. + ### GetSize `func (o *KafkaRequestList) GetSize() int32` @@ -89,6 +93,7 @@ and a boolean to check if the value has been set. SetSize sets Size field to given value. + ### GetTotal `func (o *KafkaRequestList) GetTotal() int32` @@ -109,6 +114,7 @@ and a boolean to check if the value has been set. SetTotal sets Total field to given value. + ### GetItems `func (o *KafkaRequestList) GetItems() []KafkaRequest` @@ -130,6 +136,6 @@ SetItems sets Items 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) +[[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/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md b/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md index 06bc4107..ea7034c7 100644 --- a/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/KafkaRequestListAllOf.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | Pointer to [**[]KafkaRequest**](KafkaRequest.md) | | [optional] + ## Methods ### NewKafkaRequestListAllOf @@ -25,6 +26,7 @@ NewKafkaRequestListAllOfWithDefaults instantiates a new KafkaRequestListAllOf ob 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 *KafkaRequestListAllOf) GetItems() []KafkaRequest` @@ -51,6 +53,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md b/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md index 1222ceb3..b91d9bb5 100644 --- a/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md +++ b/kafkamgmt/apiv1/client/docs/KafkaRequestPayload.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Name** | **string** | The name of the Kafka cluster. It must consist of lower-case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character, and can not be longer than 32 characters. | **Region** | Pointer to **string** | The region where the Kafka cluster will be created in | [optional] + ## Methods ### NewKafkaRequestPayload @@ -28,6 +29,7 @@ NewKafkaRequestPayloadWithDefaults instantiates a new KafkaRequestPayload 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 + ### GetCloudProvider `func (o *KafkaRequestPayload) GetCloudProvider() string` @@ -53,6 +55,7 @@ SetCloudProvider sets CloudProvider field to given value. HasCloudProvider returns a boolean if a field has been set. + ### GetMultiAz `func (o *KafkaRequestPayload) GetMultiAz() bool` @@ -78,6 +81,7 @@ SetMultiAz sets MultiAz field to given value. HasMultiAz returns a boolean if a field has been set. + ### GetName `func (o *KafkaRequestPayload) GetName() string` @@ -98,6 +102,7 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. + ### GetRegion `func (o *KafkaRequestPayload) GetRegion() string` @@ -124,6 +129,6 @@ SetRegion sets Region field to given value. HasRegion returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/List.md b/kafkamgmt/apiv1/client/docs/List.md index 2a3c88e4..40213442 100644 --- a/kafkamgmt/apiv1/client/docs/List.md +++ b/kafkamgmt/apiv1/client/docs/List.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Size** | **int32** | | **Total** | **int32** | | + ## Methods ### NewList @@ -28,6 +29,7 @@ NewListWithDefaults instantiates a new List 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` @@ -48,6 +50,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetPage `func (o *List) GetPage() int32` @@ -68,6 +71,7 @@ and a boolean to check if the value has been set. SetPage sets Page field to given value. + ### GetSize `func (o *List) GetSize() int32` @@ -88,6 +92,7 @@ and a boolean to check if the value has been set. SetSize sets Size field to given value. + ### GetTotal `func (o *List) GetTotal() int32` @@ -109,6 +114,6 @@ SetTotal sets Total 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) +[[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/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md b/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md index 8cd26d88..4d045d1e 100644 --- a/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md +++ b/kafkamgmt/apiv1/client/docs/MetricsInstantQueryList.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | | [optional] **Items** | Pointer to [**[]InstantQuery**](InstantQuery.md) | | [optional] + ## Methods ### NewMetricsInstantQueryList @@ -27,6 +28,7 @@ NewMetricsInstantQueryListWithDefaults instantiates a new MetricsInstantQueryLis 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 *MetricsInstantQueryList) GetKind() string` @@ -52,6 +54,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetId `func (o *MetricsInstantQueryList) GetId() string` @@ -77,6 +80,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetItems `func (o *MetricsInstantQueryList) GetItems() []InstantQuery` @@ -103,6 +107,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md b/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md index 0195b076..3107addd 100644 --- a/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/MetricsInstantQueryListAllOf.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | | [optional] **Items** | Pointer to [**[]InstantQuery**](InstantQuery.md) | | [optional] + ## Methods ### NewMetricsInstantQueryListAllOf @@ -27,6 +28,7 @@ NewMetricsInstantQueryListAllOfWithDefaults instantiates a new MetricsInstantQue 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 *MetricsInstantQueryListAllOf) GetKind() string` @@ -52,6 +54,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetId `func (o *MetricsInstantQueryListAllOf) GetId() string` @@ -77,6 +80,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetItems `func (o *MetricsInstantQueryListAllOf) GetItems() []InstantQuery` @@ -103,6 +107,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md b/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md index 341963b4..6834788a 100644 --- a/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md +++ b/kafkamgmt/apiv1/client/docs/MetricsRangeQueryList.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | | [optional] **Items** | Pointer to [**[]RangeQuery**](RangeQuery.md) | | [optional] + ## Methods ### NewMetricsRangeQueryList @@ -27,6 +28,7 @@ NewMetricsRangeQueryListWithDefaults instantiates a new MetricsRangeQueryList ob 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 *MetricsRangeQueryList) GetKind() string` @@ -52,6 +54,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetId `func (o *MetricsRangeQueryList) GetId() string` @@ -77,6 +80,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetItems `func (o *MetricsRangeQueryList) GetItems() []RangeQuery` @@ -103,6 +107,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md b/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md index 34e1204b..808da210 100644 --- a/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/MetricsRangeQueryListAllOf.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | | [optional] **Items** | Pointer to [**[]RangeQuery**](RangeQuery.md) | | [optional] + ## Methods ### NewMetricsRangeQueryListAllOf @@ -27,6 +28,7 @@ NewMetricsRangeQueryListAllOfWithDefaults instantiates a new MetricsRangeQueryLi 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 *MetricsRangeQueryListAllOf) GetKind() string` @@ -52,6 +54,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetId `func (o *MetricsRangeQueryListAllOf) GetId() string` @@ -77,6 +80,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetItems `func (o *MetricsRangeQueryListAllOf) GetItems() []RangeQuery` @@ -103,6 +107,6 @@ SetItems sets Items field to given value. HasItems returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ObjectReference.md b/kafkamgmt/apiv1/client/docs/ObjectReference.md index a09601d8..f3840e9c 100644 --- a/kafkamgmt/apiv1/client/docs/ObjectReference.md +++ b/kafkamgmt/apiv1/client/docs/ObjectReference.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Kind** | Pointer to **string** | | [optional] **Href** | Pointer to **string** | | [optional] + ## Methods ### NewObjectReference @@ -27,6 +28,7 @@ NewObjectReferenceWithDefaults instantiates a new ObjectReference 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` @@ -52,6 +54,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetKind `func (o *ObjectReference) GetKind() string` @@ -77,6 +80,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetHref `func (o *ObjectReference) GetHref() string` @@ -103,6 +107,6 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/RangeQuery.md b/kafkamgmt/apiv1/client/docs/RangeQuery.md index 96bd5170..6b271494 100644 --- a/kafkamgmt/apiv1/client/docs/RangeQuery.md +++ b/kafkamgmt/apiv1/client/docs/RangeQuery.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Metric** | Pointer to **map[string]string** | | [optional] **Values** | Pointer to [**[]Values**](Values.md) | | [optional] + ## Methods ### NewRangeQuery @@ -26,6 +27,7 @@ NewRangeQueryWithDefaults instantiates a new RangeQuery 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 + ### GetMetric `func (o *RangeQuery) GetMetric() map[string]string` @@ -51,6 +53,7 @@ SetMetric sets Metric field to given value. HasMetric returns a boolean if a field has been set. + ### GetValues `func (o *RangeQuery) GetValues() []Values` @@ -77,6 +80,6 @@ SetValues sets Values field to given value. HasValues returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccount.md b/kafkamgmt/apiv1/client/docs/ServiceAccount.md index f754a2d5..1f9176c5 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccount.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccount.md @@ -9,11 +9,12 @@ Name | Type | Description | Notes **Href** | Pointer to **string** | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**ClientID** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] **ClientSecret** | Pointer to **string** | | [optional] **Owner** | Pointer to **string** | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] + ## Methods ### NewServiceAccount @@ -33,6 +34,7 @@ NewServiceAccountWithDefaults instantiates a new ServiceAccount 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 *ServiceAccount) GetId() string` @@ -58,6 +60,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetKind `func (o *ServiceAccount) GetKind() string` @@ -83,6 +86,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetHref `func (o *ServiceAccount) GetHref() string` @@ -108,6 +112,7 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. + ### GetName `func (o *ServiceAccount) GetName() string` @@ -133,6 +138,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetDescription `func (o *ServiceAccount) GetDescription() string` @@ -158,30 +164,32 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetClientID -`func (o *ServiceAccount) GetClientID() string` +### GetClientId -GetClientID returns the ClientID field if non-nil, zero value otherwise. +`func (o *ServiceAccount) GetClientId() string` -### GetClientIDOk +GetClientId returns the ClientId field if non-nil, zero value otherwise. -`func (o *ServiceAccount) GetClientIDOk() (*string, bool)` +### GetClientIdOk -GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +`func (o *ServiceAccount) GetClientIdOk() (*string, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetClientID +### SetClientId + +`func (o *ServiceAccount) SetClientId(v string)` -`func (o *ServiceAccount) SetClientID(v string)` +SetClientId sets ClientId field to given value. -SetClientID sets ClientID field to given value. +### HasClientId -### HasClientID +`func (o *ServiceAccount) HasClientId() bool` -`func (o *ServiceAccount) HasClientID() bool` +HasClientId returns a boolean if a field has been set. -HasClientID returns a boolean if a field has been set. ### GetClientSecret @@ -208,6 +216,7 @@ SetClientSecret sets ClientSecret field to given value. HasClientSecret returns a boolean if a field has been set. + ### GetOwner `func (o *ServiceAccount) GetOwner() string` @@ -233,6 +242,7 @@ SetOwner sets Owner field to given value. HasOwner returns a boolean if a field has been set. + ### GetCreatedAt `func (o *ServiceAccount) GetCreatedAt() time.Time` @@ -259,6 +269,6 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md b/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md index e593b3bf..21122668 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccountAllOf.md @@ -7,11 +7,12 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | server generated unique id of the service account | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**ClientID** | Pointer to **string** | | [optional] +**ClientId** | Pointer to **string** | | [optional] **ClientSecret** | Pointer to **string** | | [optional] **Owner** | Pointer to **string** | | [optional] **CreatedAt** | Pointer to **time.Time** | | [optional] + ## Methods ### NewServiceAccountAllOf @@ -31,6 +32,7 @@ NewServiceAccountAllOfWithDefaults instantiates a new ServiceAccountAllOf 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 *ServiceAccountAllOf) GetId() string` @@ -56,6 +58,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetName `func (o *ServiceAccountAllOf) GetName() string` @@ -81,6 +84,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetDescription `func (o *ServiceAccountAllOf) GetDescription() string` @@ -106,30 +110,32 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetClientID -`func (o *ServiceAccountAllOf) GetClientID() string` +### GetClientId + +`func (o *ServiceAccountAllOf) GetClientId() string` -GetClientID returns the ClientID field if non-nil, zero value otherwise. +GetClientId returns the ClientId field if non-nil, zero value otherwise. -### GetClientIDOk +### GetClientIdOk -`func (o *ServiceAccountAllOf) GetClientIDOk() (*string, bool)` +`func (o *ServiceAccountAllOf) GetClientIdOk() (*string, bool)` -GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetClientID +### SetClientId -`func (o *ServiceAccountAllOf) SetClientID(v string)` +`func (o *ServiceAccountAllOf) SetClientId(v string)` -SetClientID sets ClientID field to given value. +SetClientId sets ClientId field to given value. -### HasClientID +### HasClientId -`func (o *ServiceAccountAllOf) HasClientID() bool` +`func (o *ServiceAccountAllOf) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. -HasClientID returns a boolean if a field has been set. ### GetClientSecret @@ -156,6 +162,7 @@ SetClientSecret sets ClientSecret field to given value. HasClientSecret returns a boolean if a field has been set. + ### GetOwner `func (o *ServiceAccountAllOf) GetOwner() string` @@ -181,6 +188,7 @@ SetOwner sets Owner field to given value. HasOwner returns a boolean if a field has been set. + ### GetCreatedAt `func (o *ServiceAccountAllOf) GetCreatedAt() time.Time` @@ -207,6 +215,6 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccountList.md b/kafkamgmt/apiv1/client/docs/ServiceAccountList.md index 6fbb63f9..a5c21862 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccountList.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccountList.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Kind** | **string** | | **Items** | [**[]ServiceAccountListItem**](ServiceAccountListItem.md) | | + ## Methods ### NewServiceAccountList @@ -26,6 +27,7 @@ NewServiceAccountListWithDefaults instantiates a new ServiceAccountList 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 *ServiceAccountList) GetKind() string` @@ -46,6 +48,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetItems `func (o *ServiceAccountList) GetItems() []ServiceAccountListItem` @@ -67,6 +70,6 @@ SetItems sets Items 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) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md b/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md index a00486cb..bb0c08cb 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccountListAllOf.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Kind** | **string** | | **Items** | [**[]ServiceAccountListItem**](ServiceAccountListItem.md) | | + ## Methods ### NewServiceAccountListAllOf @@ -26,6 +27,7 @@ NewServiceAccountListAllOfWithDefaults instantiates a new ServiceAccountListAllO 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 *ServiceAccountListAllOf) GetKind() string` @@ -46,6 +48,7 @@ and a boolean to check if the value has been set. SetKind sets Kind field to given value. + ### GetItems `func (o *ServiceAccountListAllOf) GetItems() []ServiceAccountListItem` @@ -67,6 +70,6 @@ SetItems sets Items 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) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md b/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md index f0667eb8..b998812f 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccountListItem.md @@ -7,12 +7,13 @@ Name | Type | Description | Notes **Id** | Pointer to **string** | server generated unique id of the service account | [optional] **Kind** | Pointer to **string** | | [optional] **Href** | Pointer to **string** | | [optional] -**ClientID** | Pointer to **string** | client id of the service account | [optional] +**ClientId** | Pointer to **string** | client id of the service account | [optional] **Name** | Pointer to **string** | name of the service account | [optional] **Owner** | Pointer to **string** | owner of the service account | [optional] **CreatedAt** | Pointer to **time.Time** | service account creation timestamp | [optional] **Description** | Pointer to **string** | description of the service account | [optional] + ## Methods ### NewServiceAccountListItem @@ -32,6 +33,7 @@ NewServiceAccountListItemWithDefaults instantiates a new ServiceAccountListItem 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 *ServiceAccountListItem) GetId() string` @@ -57,6 +59,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetKind `func (o *ServiceAccountListItem) GetKind() string` @@ -82,6 +85,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetHref `func (o *ServiceAccountListItem) GetHref() string` @@ -107,30 +111,32 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. -### GetClientID -`func (o *ServiceAccountListItem) GetClientID() string` +### GetClientId + +`func (o *ServiceAccountListItem) GetClientId() string` -GetClientID returns the ClientID field if non-nil, zero value otherwise. +GetClientId returns the ClientId field if non-nil, zero value otherwise. -### GetClientIDOk +### GetClientIdOk -`func (o *ServiceAccountListItem) GetClientIDOk() (*string, bool)` +`func (o *ServiceAccountListItem) GetClientIdOk() (*string, bool)` -GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetClientID +### SetClientId + +`func (o *ServiceAccountListItem) SetClientId(v string)` -`func (o *ServiceAccountListItem) SetClientID(v string)` +SetClientId sets ClientId field to given value. -SetClientID sets ClientID field to given value. +### HasClientId -### HasClientID +`func (o *ServiceAccountListItem) HasClientId() bool` -`func (o *ServiceAccountListItem) HasClientID() bool` +HasClientId returns a boolean if a field has been set. -HasClientID returns a boolean if a field has been set. ### GetName @@ -157,6 +163,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetOwner `func (o *ServiceAccountListItem) GetOwner() string` @@ -182,6 +189,7 @@ SetOwner sets Owner field to given value. HasOwner returns a boolean if a field has been set. + ### GetCreatedAt `func (o *ServiceAccountListItem) GetCreatedAt() time.Time` @@ -207,6 +215,7 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. + ### GetDescription `func (o *ServiceAccountListItem) GetDescription() string` @@ -233,6 +242,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md b/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md index f5533e3f..8c887652 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccountListItemAllOf.md @@ -5,12 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | server generated unique id of the service account | [optional] -**ClientID** | Pointer to **string** | client id of the service account | [optional] +**ClientId** | Pointer to **string** | client id of the service account | [optional] **Name** | Pointer to **string** | name of the service account | [optional] **Owner** | Pointer to **string** | owner of the service account | [optional] **CreatedAt** | Pointer to **time.Time** | service account creation timestamp | [optional] **Description** | Pointer to **string** | description of the service account | [optional] + ## Methods ### NewServiceAccountListItemAllOf @@ -30,6 +31,7 @@ NewServiceAccountListItemAllOfWithDefaults instantiates a new ServiceAccountList 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 *ServiceAccountListItemAllOf) GetId() string` @@ -55,30 +57,32 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. -### GetClientID -`func (o *ServiceAccountListItemAllOf) GetClientID() string` +### GetClientId + +`func (o *ServiceAccountListItemAllOf) GetClientId() string` -GetClientID returns the ClientID field if non-nil, zero value otherwise. +GetClientId returns the ClientId field if non-nil, zero value otherwise. -### GetClientIDOk +### GetClientIdOk -`func (o *ServiceAccountListItemAllOf) GetClientIDOk() (*string, bool)` +`func (o *ServiceAccountListItemAllOf) GetClientIdOk() (*string, bool)` -GetClientIDOk returns a tuple with the ClientID field if it's non-nil, zero value otherwise +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetClientID +### SetClientId -`func (o *ServiceAccountListItemAllOf) SetClientID(v string)` +`func (o *ServiceAccountListItemAllOf) SetClientId(v string)` -SetClientID sets ClientID field to given value. +SetClientId sets ClientId field to given value. -### HasClientID +### HasClientId -`func (o *ServiceAccountListItemAllOf) HasClientID() bool` +`func (o *ServiceAccountListItemAllOf) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. -HasClientID returns a boolean if a field has been set. ### GetName @@ -105,6 +109,7 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. + ### GetOwner `func (o *ServiceAccountListItemAllOf) GetOwner() string` @@ -130,6 +135,7 @@ SetOwner sets Owner field to given value. HasOwner returns a boolean if a field has been set. + ### GetCreatedAt `func (o *ServiceAccountListItemAllOf) GetCreatedAt() time.Time` @@ -155,6 +161,7 @@ SetCreatedAt sets CreatedAt field to given value. HasCreatedAt returns a boolean if a field has been set. + ### GetDescription `func (o *ServiceAccountListItemAllOf) GetDescription() string` @@ -181,6 +188,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md b/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md index ada96cef..76f7bde1 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md +++ b/kafkamgmt/apiv1/client/docs/ServiceAccountRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | The name of the service account | **Description** | Pointer to **string** | A description for the service account | [optional] + ## Methods ### NewServiceAccountRequest @@ -26,6 +27,7 @@ NewServiceAccountRequestWithDefaults instantiates a new ServiceAccountRequest ob 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 *ServiceAccountRequest) GetName() string` @@ -46,6 +48,7 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. + ### GetDescription `func (o *ServiceAccountRequest) GetDescription() string` @@ -72,6 +75,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceStatus.md b/kafkamgmt/apiv1/client/docs/ServiceStatus.md index 1712a995..72e93287 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceStatus.md +++ b/kafkamgmt/apiv1/client/docs/ServiceStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Kafkas** | Pointer to [**ServiceStatusKafkas**](ServiceStatusKafkas.md) | | [optional] + ## Methods ### NewServiceStatus @@ -25,6 +26,7 @@ NewServiceStatusWithDefaults instantiates a new ServiceStatus 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 + ### GetKafkas `func (o *ServiceStatus) GetKafkas() ServiceStatusKafkas` @@ -51,6 +53,6 @@ SetKafkas sets Kafkas field to given value. HasKafkas returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/ServiceStatusKafkas.md b/kafkamgmt/apiv1/client/docs/ServiceStatusKafkas.md index 852e5987..0f15669b 100644 --- a/kafkamgmt/apiv1/client/docs/ServiceStatusKafkas.md +++ b/kafkamgmt/apiv1/client/docs/ServiceStatusKafkas.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MaxCapacityReached** | **bool** | Indicates whether we have reached kafka maximum capacity | + ## Methods ### NewServiceStatusKafkas @@ -25,6 +26,7 @@ NewServiceStatusKafkasWithDefaults instantiates a new ServiceStatusKafkas 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 + ### GetMaxCapacityReached `func (o *ServiceStatusKafkas) GetMaxCapacityReached() bool` @@ -46,6 +48,6 @@ SetMaxCapacityReached sets MaxCapacityReached 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) +[[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/kafkamgmt/apiv1/client/docs/Values.md b/kafkamgmt/apiv1/client/docs/Values.md index 87f4f9a0..9c586465 100644 --- a/kafkamgmt/apiv1/client/docs/Values.md +++ b/kafkamgmt/apiv1/client/docs/Values.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Timestamp** | Pointer to **int64** | | [optional] **Value** | **float64** | | + ## Methods ### NewValues @@ -26,6 +27,7 @@ NewValuesWithDefaults instantiates a new Values 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 + ### GetTimestamp `func (o *Values) GetTimestamp() int64` @@ -51,6 +53,7 @@ SetTimestamp sets Timestamp field to given value. HasTimestamp returns a boolean if a field has been set. + ### GetValue `func (o *Values) GetValue() float64` @@ -72,6 +75,6 @@ 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) +[[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/kafkamgmt/apiv1/client/docs/VersionMetadata.md b/kafkamgmt/apiv1/client/docs/VersionMetadata.md index 3fb8c2f5..8907a07d 100644 --- a/kafkamgmt/apiv1/client/docs/VersionMetadata.md +++ b/kafkamgmt/apiv1/client/docs/VersionMetadata.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Href** | Pointer to **string** | | [optional] **Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] + ## Methods ### NewVersionMetadata @@ -28,6 +29,7 @@ NewVersionMetadataWithDefaults instantiates a new VersionMetadata 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 *VersionMetadata) GetId() string` @@ -53,6 +55,7 @@ SetId sets Id field to given value. HasId returns a boolean if a field has been set. + ### GetKind `func (o *VersionMetadata) GetKind() string` @@ -78,6 +81,7 @@ SetKind sets Kind field to given value. HasKind returns a boolean if a field has been set. + ### GetHref `func (o *VersionMetadata) GetHref() string` @@ -103,6 +107,7 @@ SetHref sets Href field to given value. HasHref returns a boolean if a field has been set. + ### GetCollections `func (o *VersionMetadata) GetCollections() []ObjectReference` @@ -129,6 +134,6 @@ SetCollections sets Collections field to given value. HasCollections returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md b/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md index 045d3b46..f6dda38d 100644 --- a/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md +++ b/kafkamgmt/apiv1/client/docs/VersionMetadataAllOf.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Collections** | Pointer to [**[]ObjectReference**](ObjectReference.md) | | [optional] + ## Methods ### NewVersionMetadataAllOf @@ -25,6 +26,7 @@ NewVersionMetadataAllOfWithDefaults instantiates a new VersionMetadataAllOf obje 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 + ### GetCollections `func (o *VersionMetadataAllOf) GetCollections() []ObjectReference` @@ -51,6 +53,6 @@ SetCollections sets Collections field to given value. HasCollections returns a boolean if a field has been set. -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) +[[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/kafkamgmt/apiv1/client/model_cloud_provider.go b/kafkamgmt/apiv1/client/model_cloud_provider.go index b02c4c11..148be96b 100644 --- a/kafkamgmt/apiv1/client/model_cloud_provider.go +++ b/kafkamgmt/apiv1/client/model_cloud_provider.go @@ -16,14 +16,19 @@ import ( // CloudProvider Cloud provider. type CloudProvider struct { + // Indicates the type of this object. Will be 'CloudProvider' link. Kind *string `json:"kind,omitempty"` + // Unique identifier of the object. Id *string `json:"id,omitempty"` + // Name of the cloud provider for display purposes. DisplayName *string `json:"display_name,omitempty"` + // Human friendly identifier of the cloud provider, for example `aws`. Name *string `json:"name,omitempty"` + // Whether the cloud provider is enabled for deploying an OSD cluster. Enabled bool `json:"enabled"` } @@ -43,6 +48,7 @@ func NewCloudProvider(enabled bool) *CloudProvider { // but it doesn't guarantee that properties required by API are set func NewCloudProviderWithDefaults() *CloudProvider { this := CloudProvider{} + return &this } @@ -200,21 +206,27 @@ func (o *CloudProvider) SetEnabled(v bool) { func (o CloudProvider) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Id != nil { toSerialize["id"] = o.Id } + if o.DisplayName != nil { toSerialize["display_name"] = o.DisplayName } + if o.Name != nil { toSerialize["name"] = o.Name } + if true { toSerialize["enabled"] = o.Enabled } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_cloud_provider_list.go b/kafkamgmt/apiv1/client/model_cloud_provider_list.go index fb7e85f8..5c4d5bd7 100644 --- a/kafkamgmt/apiv1/client/model_cloud_provider_list.go +++ b/kafkamgmt/apiv1/client/model_cloud_provider_list.go @@ -16,10 +16,14 @@ import ( // CloudProviderList struct for CloudProviderList type CloudProviderList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + + Page int32 `json:"page"` + + Size int32 `json:"size"` + + Total int32 `json:"total"` + Items []CloudProvider `json:"items"` } @@ -42,6 +46,7 @@ func NewCloudProviderList(kind string, page int32, size int32, total int32, item // but it doesn't guarantee that properties required by API are set func NewCloudProviderListWithDefaults() *CloudProviderList { this := CloudProviderList{} + return &this } @@ -167,21 +172,27 @@ func (o *CloudProviderList) SetItems(v []CloudProvider) { func (o CloudProviderList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["page"] = o.Page } + if true { toSerialize["size"] = o.Size } + if true { toSerialize["total"] = o.Total } + if true { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go b/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go index 3e7f5fd6..7a3fe72e 100644 --- a/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_cloud_provider_list_all_of.go @@ -33,6 +33,7 @@ func NewCloudProviderListAllOf() *CloudProviderListAllOf { // but it doesn't guarantee that properties required by API are set func NewCloudProviderListAllOfWithDefaults() *CloudProviderListAllOf { this := CloudProviderListAllOf{} + return &this } @@ -70,9 +71,11 @@ func (o *CloudProviderListAllOf) SetItems(v []CloudProvider) { func (o CloudProviderListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_cloud_region.go b/kafkamgmt/apiv1/client/model_cloud_region.go index a651eec1..2b647e92 100644 --- a/kafkamgmt/apiv1/client/model_cloud_region.go +++ b/kafkamgmt/apiv1/client/model_cloud_region.go @@ -16,12 +16,16 @@ import ( // CloudRegion Description of a region of a cloud provider. type CloudRegion struct { + // Indicates the type of this object. Will be 'CloudRegion'. Kind *string `json:"kind,omitempty"` + // Unique identifier of the object. Id *string `json:"id,omitempty"` + // Name of the region for display purposes, for example `N. Virginia`. DisplayName *string `json:"display_name,omitempty"` + // Whether the region is enabled for deploying an OSD cluster. Enabled bool `json:"enabled"` } @@ -41,8 +45,10 @@ func NewCloudRegion(enabled bool) *CloudRegion { // but it doesn't guarantee that properties required by API are set func NewCloudRegionWithDefaults() *CloudRegion { this := CloudRegion{} + var enabled bool = false this.Enabled = enabled + return &this } @@ -168,18 +174,23 @@ func (o *CloudRegion) SetEnabled(v bool) { func (o CloudRegion) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Id != nil { toSerialize["id"] = o.Id } + if o.DisplayName != nil { toSerialize["display_name"] = o.DisplayName } + if true { toSerialize["enabled"] = o.Enabled } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_cloud_region_list.go b/kafkamgmt/apiv1/client/model_cloud_region_list.go index e56c5b9a..3a8b872e 100644 --- a/kafkamgmt/apiv1/client/model_cloud_region_list.go +++ b/kafkamgmt/apiv1/client/model_cloud_region_list.go @@ -16,10 +16,14 @@ import ( // CloudRegionList struct for CloudRegionList type CloudRegionList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + + Page int32 `json:"page"` + + Size int32 `json:"size"` + + Total int32 `json:"total"` + Items []CloudRegion `json:"items"` } @@ -42,6 +46,7 @@ func NewCloudRegionList(kind string, page int32, size int32, total int32, items // but it doesn't guarantee that properties required by API are set func NewCloudRegionListWithDefaults() *CloudRegionList { this := CloudRegionList{} + return &this } @@ -167,21 +172,27 @@ func (o *CloudRegionList) SetItems(v []CloudRegion) { func (o CloudRegionList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["page"] = o.Page } + if true { toSerialize["size"] = o.Size } + if true { toSerialize["total"] = o.Total } + if true { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go b/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go index 03d59b77..c48a7a28 100644 --- a/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_cloud_region_list_all_of.go @@ -33,6 +33,7 @@ func NewCloudRegionListAllOf() *CloudRegionListAllOf { // but it doesn't guarantee that properties required by API are set func NewCloudRegionListAllOfWithDefaults() *CloudRegionListAllOf { this := CloudRegionListAllOf{} + return &this } @@ -70,9 +71,11 @@ func (o *CloudRegionListAllOf) SetItems(v []CloudRegion) { func (o CloudRegionListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_error.go b/kafkamgmt/apiv1/client/model_error.go index 7f18e49c..52ac2ef9 100644 --- a/kafkamgmt/apiv1/client/model_error.go +++ b/kafkamgmt/apiv1/client/model_error.go @@ -16,11 +16,16 @@ import ( // Error struct for Error type Error struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Href *string `json:"href,omitempty"` - Code *string `json:"code,omitempty"` - Reason *string `json:"reason,omitempty"` + Id *string `json:"id,omitempty"` + + Kind *string `json:"kind,omitempty"` + + Href *string `json:"href,omitempty"` + + Code *string `json:"code,omitempty"` + + Reason *string `json:"reason,omitempty"` + OperationId *string `json:"operation_id,omitempty"` } @@ -38,6 +43,7 @@ func NewError() *Error { // but it doesn't guarantee that properties required by API are set func NewErrorWithDefaults() *Error { this := Error{} + return &this } @@ -235,24 +241,31 @@ func (o *Error) SetOperationId(v string) { func (o Error) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Href != nil { toSerialize["href"] = o.Href } + if o.Code != nil { toSerialize["code"] = o.Code } + if o.Reason != nil { toSerialize["reason"] = o.Reason } + if o.OperationId != nil { toSerialize["operation_id"] = o.OperationId } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_error_all_of.go b/kafkamgmt/apiv1/client/model_error_all_of.go index 2d1d9d21..09fbc867 100644 --- a/kafkamgmt/apiv1/client/model_error_all_of.go +++ b/kafkamgmt/apiv1/client/model_error_all_of.go @@ -16,8 +16,10 @@ import ( // ErrorAllOf struct for ErrorAllOf type ErrorAllOf struct { - Code *string `json:"code,omitempty"` - Reason *string `json:"reason,omitempty"` + Code *string `json:"code,omitempty"` + + Reason *string `json:"reason,omitempty"` + OperationId *string `json:"operation_id,omitempty"` } @@ -35,6 +37,7 @@ func NewErrorAllOf() *ErrorAllOf { // but it doesn't guarantee that properties required by API are set func NewErrorAllOfWithDefaults() *ErrorAllOf { this := ErrorAllOf{} + return &this } @@ -136,15 +139,19 @@ func (o *ErrorAllOf) SetOperationId(v string) { func (o ErrorAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Code != nil { toSerialize["code"] = o.Code } + if o.Reason != nil { toSerialize["reason"] = o.Reason } + if o.OperationId != nil { toSerialize["operation_id"] = o.OperationId } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_error_list.go b/kafkamgmt/apiv1/client/model_error_list.go index 3398a9d2..c4d2ee05 100644 --- a/kafkamgmt/apiv1/client/model_error_list.go +++ b/kafkamgmt/apiv1/client/model_error_list.go @@ -16,10 +16,14 @@ import ( // ErrorList struct for ErrorList type ErrorList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + + Page int32 `json:"page"` + + Size int32 `json:"size"` + + Total int32 `json:"total"` + Items []Error `json:"items"` } @@ -42,6 +46,7 @@ func NewErrorList(kind string, page int32, size int32, total int32, items []Erro // but it doesn't guarantee that properties required by API are set func NewErrorListWithDefaults() *ErrorList { this := ErrorList{} + return &this } @@ -167,21 +172,27 @@ func (o *ErrorList) SetItems(v []Error) { func (o ErrorList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["page"] = o.Page } + if true { toSerialize["size"] = o.Size } + if true { toSerialize["total"] = o.Total } + if true { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_error_list_all_of.go b/kafkamgmt/apiv1/client/model_error_list_all_of.go index 1406c018..9cfa8e41 100644 --- a/kafkamgmt/apiv1/client/model_error_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_error_list_all_of.go @@ -33,6 +33,7 @@ func NewErrorListAllOf() *ErrorListAllOf { // but it doesn't guarantee that properties required by API are set func NewErrorListAllOfWithDefaults() *ErrorListAllOf { this := ErrorListAllOf{} + return &this } @@ -70,9 +71,11 @@ func (o *ErrorListAllOf) SetItems(v []Error) { func (o ErrorListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_instant_query.go b/kafkamgmt/apiv1/client/model_instant_query.go index 32aeb554..4dc64aec 100644 --- a/kafkamgmt/apiv1/client/model_instant_query.go +++ b/kafkamgmt/apiv1/client/model_instant_query.go @@ -16,9 +16,11 @@ import ( // InstantQuery struct for InstantQuery type InstantQuery struct { - Metric *map[string]string `json:"metric,omitempty"` - Timestamp *int64 `json:"Timestamp,omitempty"` - Value float64 `json:"Value"` + Metric *map[string]string `json:"metric,omitempty"` + + Timestamp *int64 `json:"timestamp,omitempty"` + + Value float64 `json:"value"` } // NewInstantQuery instantiates a new InstantQuery object @@ -36,6 +38,7 @@ func NewInstantQuery(value float64) *InstantQuery { // but it doesn't guarantee that properties required by API are set func NewInstantQueryWithDefaults() *InstantQuery { this := InstantQuery{} + return &this } @@ -129,15 +132,19 @@ func (o *InstantQuery) SetValue(v float64) { func (o InstantQuery) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Metric != nil { toSerialize["metric"] = o.Metric } + if o.Timestamp != nil { - toSerialize["Timestamp"] = o.Timestamp + toSerialize["timestamp"] = o.Timestamp } + if true { - toSerialize["Value"] = o.Value + toSerialize["value"] = o.Value } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_kafka_request.go b/kafkamgmt/apiv1/client/model_kafka_request.go index a149c99b..ffd8fa8f 100644 --- a/kafkamgmt/apiv1/client/model_kafka_request.go +++ b/kafkamgmt/apiv1/client/model_kafka_request.go @@ -17,20 +17,33 @@ import ( // KafkaRequest struct for KafkaRequest type KafkaRequest struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Href *string `json:"href,omitempty"` - Status *string `json:"status,omitempty"` - CloudProvider *string `json:"cloud_provider,omitempty"` - MultiAz *bool `json:"multi_az,omitempty"` - Region *string `json:"region,omitempty"` - Owner *string `json:"owner,omitempty"` - Name *string `json:"name,omitempty"` - BootstrapServerHost *string `json:"bootstrapServerHost,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - FailedReason *string `json:"failed_reason,omitempty"` - Version *string `json:"version,omitempty"` + Id *string `json:"id,omitempty"` + + Kind *string `json:"kind,omitempty"` + + Href *string `json:"href,omitempty"` + + Status *string `json:"status,omitempty"` + + CloudProvider *string `json:"cloud_provider,omitempty"` + + MultiAz *bool `json:"multi_az,omitempty"` + + Region *string `json:"region,omitempty"` + + Owner *string `json:"owner,omitempty"` + + Name *string `json:"name,omitempty"` + + BootstrapServerHost *string `json:"bootstrap_server_host,omitempty"` + + CreatedAt *time.Time `json:"created_at,omitempty"` + + UpdatedAt *time.Time `json:"updated_at,omitempty"` + + FailedReason *string `json:"failed_reason,omitempty"` + + Version *string `json:"version,omitempty"` } // NewKafkaRequest instantiates a new KafkaRequest object @@ -47,6 +60,7 @@ func NewKafkaRequest() *KafkaRequest { // but it doesn't guarantee that properties required by API are set func NewKafkaRequestWithDefaults() *KafkaRequest { this := KafkaRequest{} + return &this } @@ -500,48 +514,63 @@ func (o *KafkaRequest) SetVersion(v string) { func (o KafkaRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Href != nil { toSerialize["href"] = o.Href } + if o.Status != nil { toSerialize["status"] = o.Status } + if o.CloudProvider != nil { toSerialize["cloud_provider"] = o.CloudProvider } + if o.MultiAz != nil { toSerialize["multi_az"] = o.MultiAz } + if o.Region != nil { toSerialize["region"] = o.Region } + if o.Owner != nil { toSerialize["owner"] = o.Owner } + if o.Name != nil { toSerialize["name"] = o.Name } + if o.BootstrapServerHost != nil { - toSerialize["bootstrapServerHost"] = o.BootstrapServerHost + toSerialize["bootstrap_server_host"] = o.BootstrapServerHost } + if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + if o.UpdatedAt != nil { toSerialize["updated_at"] = o.UpdatedAt } + if o.FailedReason != nil { toSerialize["failed_reason"] = o.FailedReason } + if o.Version != nil { toSerialize["version"] = o.Version } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_kafka_request_all_of.go b/kafkamgmt/apiv1/client/model_kafka_request_all_of.go index e7844aab..8a627331 100644 --- a/kafkamgmt/apiv1/client/model_kafka_request_all_of.go +++ b/kafkamgmt/apiv1/client/model_kafka_request_all_of.go @@ -17,17 +17,27 @@ import ( // KafkaRequestAllOf struct for KafkaRequestAllOf type KafkaRequestAllOf struct { - Status *string `json:"status,omitempty"` - CloudProvider *string `json:"cloud_provider,omitempty"` - MultiAz *bool `json:"multi_az,omitempty"` - Region *string `json:"region,omitempty"` - Owner *string `json:"owner,omitempty"` - Name *string `json:"name,omitempty"` - BootstrapServerHost *string `json:"bootstrapServerHost,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` - UpdatedAt *time.Time `json:"updated_at,omitempty"` - FailedReason *string `json:"failed_reason,omitempty"` - Version *string `json:"version,omitempty"` + Status *string `json:"status,omitempty"` + + CloudProvider *string `json:"cloud_provider,omitempty"` + + MultiAz *bool `json:"multi_az,omitempty"` + + Region *string `json:"region,omitempty"` + + Owner *string `json:"owner,omitempty"` + + Name *string `json:"name,omitempty"` + + BootstrapServerHost *string `json:"bootstrap_server_host,omitempty"` + + CreatedAt *time.Time `json:"created_at,omitempty"` + + UpdatedAt *time.Time `json:"updated_at,omitempty"` + + FailedReason *string `json:"failed_reason,omitempty"` + + Version *string `json:"version,omitempty"` } // NewKafkaRequestAllOf instantiates a new KafkaRequestAllOf object @@ -44,6 +54,7 @@ func NewKafkaRequestAllOf() *KafkaRequestAllOf { // but it doesn't guarantee that properties required by API are set func NewKafkaRequestAllOfWithDefaults() *KafkaRequestAllOf { this := KafkaRequestAllOf{} + return &this } @@ -401,39 +412,51 @@ func (o *KafkaRequestAllOf) SetVersion(v string) { func (o KafkaRequestAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Status != nil { toSerialize["status"] = o.Status } + if o.CloudProvider != nil { toSerialize["cloud_provider"] = o.CloudProvider } + if o.MultiAz != nil { toSerialize["multi_az"] = o.MultiAz } + if o.Region != nil { toSerialize["region"] = o.Region } + if o.Owner != nil { toSerialize["owner"] = o.Owner } + if o.Name != nil { toSerialize["name"] = o.Name } + if o.BootstrapServerHost != nil { - toSerialize["bootstrapServerHost"] = o.BootstrapServerHost + toSerialize["bootstrap_server_host"] = o.BootstrapServerHost } + if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + if o.UpdatedAt != nil { toSerialize["updated_at"] = o.UpdatedAt } + if o.FailedReason != nil { toSerialize["failed_reason"] = o.FailedReason } + if o.Version != nil { toSerialize["version"] = o.Version } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_kafka_request_list.go b/kafkamgmt/apiv1/client/model_kafka_request_list.go index d1e3ed1a..fcaf1e59 100644 --- a/kafkamgmt/apiv1/client/model_kafka_request_list.go +++ b/kafkamgmt/apiv1/client/model_kafka_request_list.go @@ -16,10 +16,14 @@ import ( // KafkaRequestList struct for KafkaRequestList type KafkaRequestList struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + + Page int32 `json:"page"` + + Size int32 `json:"size"` + + Total int32 `json:"total"` + Items []KafkaRequest `json:"items"` } @@ -42,6 +46,7 @@ func NewKafkaRequestList(kind string, page int32, size int32, total int32, items // but it doesn't guarantee that properties required by API are set func NewKafkaRequestListWithDefaults() *KafkaRequestList { this := KafkaRequestList{} + return &this } @@ -167,21 +172,27 @@ func (o *KafkaRequestList) SetItems(v []KafkaRequest) { func (o KafkaRequestList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["page"] = o.Page } + if true { toSerialize["size"] = o.Size } + if true { toSerialize["total"] = o.Total } + if true { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go b/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go index 3212752c..1c745f38 100644 --- a/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_kafka_request_list_all_of.go @@ -33,6 +33,7 @@ func NewKafkaRequestListAllOf() *KafkaRequestListAllOf { // but it doesn't guarantee that properties required by API are set func NewKafkaRequestListAllOfWithDefaults() *KafkaRequestListAllOf { this := KafkaRequestListAllOf{} + return &this } @@ -70,9 +71,11 @@ func (o *KafkaRequestListAllOf) SetItems(v []KafkaRequest) { func (o KafkaRequestListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_kafka_request_payload.go b/kafkamgmt/apiv1/client/model_kafka_request_payload.go index 6348830e..ce70620f 100644 --- a/kafkamgmt/apiv1/client/model_kafka_request_payload.go +++ b/kafkamgmt/apiv1/client/model_kafka_request_payload.go @@ -16,12 +16,16 @@ import ( // KafkaRequestPayload Schema for the request body sent to /kafkas POST type KafkaRequestPayload struct { + // The cloud provider where the Kafka cluster will be created in CloudProvider *string `json:"cloud_provider,omitempty"` + // Set this to true to configure the Kafka cluster to be multiAZ MultiAz *bool `json:"multi_az,omitempty"` + // The name of the Kafka cluster. It must consist of lower-case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character, and can not be longer than 32 characters. Name string `json:"name"` + // The region where the Kafka cluster will be created in Region *string `json:"region,omitempty"` } @@ -41,6 +45,7 @@ func NewKafkaRequestPayload(name string) *KafkaRequestPayload { // but it doesn't guarantee that properties required by API are set func NewKafkaRequestPayloadWithDefaults() *KafkaRequestPayload { this := KafkaRequestPayload{} + return &this } @@ -166,18 +171,23 @@ func (o *KafkaRequestPayload) SetRegion(v string) { func (o KafkaRequestPayload) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.CloudProvider != nil { toSerialize["cloud_provider"] = o.CloudProvider } + if o.MultiAz != nil { toSerialize["multi_az"] = o.MultiAz } + if true { toSerialize["name"] = o.Name } + if o.Region != nil { toSerialize["region"] = o.Region } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_list.go b/kafkamgmt/apiv1/client/model_list.go index 7a62662f..8fbe8da9 100644 --- a/kafkamgmt/apiv1/client/model_list.go +++ b/kafkamgmt/apiv1/client/model_list.go @@ -16,10 +16,13 @@ import ( // List struct for List type List struct { - Kind string `json:"kind"` - Page int32 `json:"page"` - Size int32 `json:"size"` - Total int32 `json:"total"` + Kind string `json:"kind"` + + Page int32 `json:"page"` + + Size int32 `json:"size"` + + Total int32 `json:"total"` } // NewList instantiates a new List object @@ -40,6 +43,7 @@ func NewList(kind string, page int32, size int32, total int32) *List { // but it doesn't guarantee that properties required by API are set func NewListWithDefaults() *List { this := List{} + return &this } @@ -141,18 +145,23 @@ func (o *List) SetTotal(v int32) { func (o List) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["page"] = o.Page } + if true { toSerialize["size"] = o.Size } + if true { toSerialize["total"] = o.Total } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go b/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go index 0e19e382..a1cb6a35 100644 --- a/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go +++ b/kafkamgmt/apiv1/client/model_metrics_instant_query_list.go @@ -16,8 +16,10 @@ import ( // MetricsInstantQueryList struct for MetricsInstantQueryList type MetricsInstantQueryList struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + + Id *string `json:"id,omitempty"` + Items *[]InstantQuery `json:"items,omitempty"` } @@ -35,6 +37,7 @@ func NewMetricsInstantQueryList() *MetricsInstantQueryList { // but it doesn't guarantee that properties required by API are set func NewMetricsInstantQueryListWithDefaults() *MetricsInstantQueryList { this := MetricsInstantQueryList{} + return &this } @@ -136,15 +139,19 @@ func (o *MetricsInstantQueryList) SetItems(v []InstantQuery) { func (o MetricsInstantQueryList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go b/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go index f2d090d8..5fe32ce7 100644 --- a/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_metrics_instant_query_list_all_of.go @@ -16,8 +16,10 @@ import ( // MetricsInstantQueryListAllOf struct for MetricsInstantQueryListAllOf type MetricsInstantQueryListAllOf struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + + Id *string `json:"id,omitempty"` + Items *[]InstantQuery `json:"items,omitempty"` } @@ -35,6 +37,7 @@ func NewMetricsInstantQueryListAllOf() *MetricsInstantQueryListAllOf { // but it doesn't guarantee that properties required by API are set func NewMetricsInstantQueryListAllOfWithDefaults() *MetricsInstantQueryListAllOf { this := MetricsInstantQueryListAllOf{} + return &this } @@ -136,15 +139,19 @@ func (o *MetricsInstantQueryListAllOf) SetItems(v []InstantQuery) { func (o MetricsInstantQueryListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_metrics_range_query_list.go b/kafkamgmt/apiv1/client/model_metrics_range_query_list.go index ee7086b5..13dfcc49 100644 --- a/kafkamgmt/apiv1/client/model_metrics_range_query_list.go +++ b/kafkamgmt/apiv1/client/model_metrics_range_query_list.go @@ -16,8 +16,10 @@ import ( // MetricsRangeQueryList struct for MetricsRangeQueryList type MetricsRangeQueryList struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + + Id *string `json:"id,omitempty"` + Items *[]RangeQuery `json:"items,omitempty"` } @@ -35,6 +37,7 @@ func NewMetricsRangeQueryList() *MetricsRangeQueryList { // but it doesn't guarantee that properties required by API are set func NewMetricsRangeQueryListWithDefaults() *MetricsRangeQueryList { this := MetricsRangeQueryList{} + return &this } @@ -136,15 +139,19 @@ func (o *MetricsRangeQueryList) SetItems(v []RangeQuery) { func (o MetricsRangeQueryList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go b/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go index d5963cd6..b9568537 100644 --- a/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_metrics_range_query_list_all_of.go @@ -16,8 +16,10 @@ import ( // MetricsRangeQueryListAllOf struct for MetricsRangeQueryListAllOf type MetricsRangeQueryListAllOf struct { - Kind *string `json:"kind,omitempty"` - Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + + Id *string `json:"id,omitempty"` + Items *[]RangeQuery `json:"items,omitempty"` } @@ -35,6 +37,7 @@ func NewMetricsRangeQueryListAllOf() *MetricsRangeQueryListAllOf { // but it doesn't guarantee that properties required by API are set func NewMetricsRangeQueryListAllOfWithDefaults() *MetricsRangeQueryListAllOf { this := MetricsRangeQueryListAllOf{} + return &this } @@ -136,15 +139,19 @@ func (o *MetricsRangeQueryListAllOf) SetItems(v []RangeQuery) { func (o MetricsRangeQueryListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Items != nil { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_object_reference.go b/kafkamgmt/apiv1/client/model_object_reference.go index 582d5c1e..d128e9f2 100644 --- a/kafkamgmt/apiv1/client/model_object_reference.go +++ b/kafkamgmt/apiv1/client/model_object_reference.go @@ -16,8 +16,10 @@ import ( // ObjectReference struct for ObjectReference type ObjectReference struct { - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` } @@ -35,6 +37,7 @@ func NewObjectReference() *ObjectReference { // but it doesn't guarantee that properties required by API are set func NewObjectReferenceWithDefaults() *ObjectReference { this := ObjectReference{} + return &this } @@ -136,15 +139,19 @@ func (o *ObjectReference) SetHref(v string) { func (o ObjectReference) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Href != nil { toSerialize["href"] = o.Href } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_range_query.go b/kafkamgmt/apiv1/client/model_range_query.go index fe35e0a3..f97f9d04 100644 --- a/kafkamgmt/apiv1/client/model_range_query.go +++ b/kafkamgmt/apiv1/client/model_range_query.go @@ -17,7 +17,8 @@ import ( // RangeQuery struct for RangeQuery type RangeQuery struct { Metric *map[string]string `json:"metric,omitempty"` - Values *[]Values `json:"values,omitempty"` + + Values *[]Values `json:"values,omitempty"` } // NewRangeQuery instantiates a new RangeQuery object @@ -34,6 +35,7 @@ func NewRangeQuery() *RangeQuery { // but it doesn't guarantee that properties required by API are set func NewRangeQueryWithDefaults() *RangeQuery { this := RangeQuery{} + return &this } @@ -103,12 +105,15 @@ func (o *RangeQuery) SetValues(v []Values) { func (o RangeQuery) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Metric != nil { toSerialize["metric"] = o.Metric } + if o.Values != nil { toSerialize["values"] = o.Values } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account.go b/kafkamgmt/apiv1/client/model_service_account.go index beaa778f..9bccd3c5 100644 --- a/kafkamgmt/apiv1/client/model_service_account.go +++ b/kafkamgmt/apiv1/client/model_service_account.go @@ -17,16 +17,25 @@ import ( // ServiceAccount Service Account created in MAS-SSO for the Kafka Cluster for authentication type ServiceAccount struct { + // server generated unique id of the service account - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Href *string `json:"href,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - ClientID *string `json:"clientID,omitempty"` - ClientSecret *string `json:"clientSecret,omitempty"` - Owner *string `json:"owner,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` + Id *string `json:"id,omitempty"` + + Kind *string `json:"kind,omitempty"` + + Href *string `json:"href,omitempty"` + + Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + + ClientId *string `json:"client_id,omitempty"` + + ClientSecret *string `json:"client_secret,omitempty"` + + Owner *string `json:"owner,omitempty"` + + CreatedAt *time.Time `json:"created_at,omitempty"` } // NewServiceAccount instantiates a new ServiceAccount object @@ -43,6 +52,7 @@ func NewServiceAccount() *ServiceAccount { // but it doesn't guarantee that properties required by API are set func NewServiceAccountWithDefaults() *ServiceAccount { this := ServiceAccount{} + return &this } @@ -206,36 +216,36 @@ func (o *ServiceAccount) SetDescription(v string) { o.Description = &v } -// GetClientID returns the ClientID field value if set, zero value otherwise. -func (o *ServiceAccount) GetClientID() string { - if o == nil || o.ClientID == nil { +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccount) GetClientId() string { + if o == nil || o.ClientId == nil { var ret string return ret } - return *o.ClientID + return *o.ClientId } -// GetClientIDOk returns a tuple with the ClientID field value if set, nil otherwise +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceAccount) GetClientIDOk() (*string, bool) { - if o == nil || o.ClientID == nil { +func (o *ServiceAccount) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { return nil, false } - return o.ClientID, true + return o.ClientId, true } -// HasClientID returns a boolean if a field has been set. -func (o *ServiceAccount) HasClientID() bool { - if o != nil && o.ClientID != nil { +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccount) HasClientId() bool { + if o != nil && o.ClientId != nil { return true } return false } -// SetClientID gets a reference to the given string and assigns it to the ClientID field. -func (o *ServiceAccount) SetClientID(v string) { - o.ClientID = &v +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccount) SetClientId(v string) { + o.ClientId = &v } // GetClientSecret returns the ClientSecret field value if set, zero value otherwise. @@ -336,33 +346,43 @@ func (o *ServiceAccount) SetCreatedAt(v time.Time) { func (o ServiceAccount) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Href != nil { toSerialize["href"] = o.Href } + if o.Name != nil { toSerialize["name"] = o.Name } + if o.Description != nil { toSerialize["description"] = o.Description } - if o.ClientID != nil { - toSerialize["clientID"] = o.ClientID + + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId } + if o.ClientSecret != nil { - toSerialize["clientSecret"] = o.ClientSecret + toSerialize["client_secret"] = o.ClientSecret } + if o.Owner != nil { toSerialize["owner"] = o.Owner } + if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account_all_of.go b/kafkamgmt/apiv1/client/model_service_account_all_of.go index b5c8e909..8dc10db4 100644 --- a/kafkamgmt/apiv1/client/model_service_account_all_of.go +++ b/kafkamgmt/apiv1/client/model_service_account_all_of.go @@ -17,14 +17,21 @@ import ( // ServiceAccountAllOf struct for ServiceAccountAllOf type ServiceAccountAllOf struct { + // server generated unique id of the service account - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - ClientID *string `json:"clientID,omitempty"` - ClientSecret *string `json:"clientSecret,omitempty"` - Owner *string `json:"owner,omitempty"` - CreatedAt *time.Time `json:"created_at,omitempty"` + Id *string `json:"id,omitempty"` + + Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + + ClientId *string `json:"client_id,omitempty"` + + ClientSecret *string `json:"client_secret,omitempty"` + + Owner *string `json:"owner,omitempty"` + + CreatedAt *time.Time `json:"created_at,omitempty"` } // NewServiceAccountAllOf instantiates a new ServiceAccountAllOf object @@ -41,6 +48,7 @@ func NewServiceAccountAllOf() *ServiceAccountAllOf { // but it doesn't guarantee that properties required by API are set func NewServiceAccountAllOfWithDefaults() *ServiceAccountAllOf { this := ServiceAccountAllOf{} + return &this } @@ -140,36 +148,36 @@ func (o *ServiceAccountAllOf) SetDescription(v string) { o.Description = &v } -// GetClientID returns the ClientID field value if set, zero value otherwise. -func (o *ServiceAccountAllOf) GetClientID() string { - if o == nil || o.ClientID == nil { +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountAllOf) GetClientId() string { + if o == nil || o.ClientId == nil { var ret string return ret } - return *o.ClientID + return *o.ClientId } -// GetClientIDOk returns a tuple with the ClientID field value if set, nil otherwise +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceAccountAllOf) GetClientIDOk() (*string, bool) { - if o == nil || o.ClientID == nil { +func (o *ServiceAccountAllOf) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { return nil, false } - return o.ClientID, true + return o.ClientId, true } -// HasClientID returns a boolean if a field has been set. -func (o *ServiceAccountAllOf) HasClientID() bool { - if o != nil && o.ClientID != nil { +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountAllOf) HasClientId() bool { + if o != nil && o.ClientId != nil { return true } return false } -// SetClientID gets a reference to the given string and assigns it to the ClientID field. -func (o *ServiceAccountAllOf) SetClientID(v string) { - o.ClientID = &v +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountAllOf) SetClientId(v string) { + o.ClientId = &v } // GetClientSecret returns the ClientSecret field value if set, zero value otherwise. @@ -270,27 +278,35 @@ func (o *ServiceAccountAllOf) SetCreatedAt(v time.Time) { func (o ServiceAccountAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Name != nil { toSerialize["name"] = o.Name } + if o.Description != nil { toSerialize["description"] = o.Description } - if o.ClientID != nil { - toSerialize["clientID"] = o.ClientID + + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId } + if o.ClientSecret != nil { - toSerialize["clientSecret"] = o.ClientSecret + toSerialize["client_secret"] = o.ClientSecret } + if o.Owner != nil { toSerialize["owner"] = o.Owner } + if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account_list.go b/kafkamgmt/apiv1/client/model_service_account_list.go index de3fc450..6d80f614 100644 --- a/kafkamgmt/apiv1/client/model_service_account_list.go +++ b/kafkamgmt/apiv1/client/model_service_account_list.go @@ -16,7 +16,8 @@ import ( // ServiceAccountList struct for ServiceAccountList type ServiceAccountList struct { - Kind string `json:"kind"` + Kind string `json:"kind"` + Items []ServiceAccountListItem `json:"items"` } @@ -36,6 +37,7 @@ func NewServiceAccountList(kind string, items []ServiceAccountListItem) *Service // but it doesn't guarantee that properties required by API are set func NewServiceAccountListWithDefaults() *ServiceAccountList { this := ServiceAccountList{} + return &this } @@ -89,12 +91,15 @@ func (o *ServiceAccountList) SetItems(v []ServiceAccountListItem) { func (o ServiceAccountList) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account_list_all_of.go b/kafkamgmt/apiv1/client/model_service_account_list_all_of.go index 63384060..cf8f8b24 100644 --- a/kafkamgmt/apiv1/client/model_service_account_list_all_of.go +++ b/kafkamgmt/apiv1/client/model_service_account_list_all_of.go @@ -16,7 +16,8 @@ import ( // ServiceAccountListAllOf struct for ServiceAccountListAllOf type ServiceAccountListAllOf struct { - Kind string `json:"kind"` + Kind string `json:"kind"` + Items []ServiceAccountListItem `json:"items"` } @@ -36,6 +37,7 @@ func NewServiceAccountListAllOf(kind string, items []ServiceAccountListItem) *Se // but it doesn't guarantee that properties required by API are set func NewServiceAccountListAllOfWithDefaults() *ServiceAccountListAllOf { this := ServiceAccountListAllOf{} + return &this } @@ -89,12 +91,15 @@ func (o *ServiceAccountListAllOf) SetItems(v []ServiceAccountListItem) { func (o ServiceAccountListAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["kind"] = o.Kind } + if true { toSerialize["items"] = o.Items } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account_list_item.go b/kafkamgmt/apiv1/client/model_service_account_list_item.go index 55f3fb2b..8a868525 100644 --- a/kafkamgmt/apiv1/client/model_service_account_list_item.go +++ b/kafkamgmt/apiv1/client/model_service_account_list_item.go @@ -17,18 +17,26 @@ import ( // ServiceAccountListItem struct for ServiceAccountListItem type ServiceAccountListItem struct { + // server generated unique id of the service account - Id *string `json:"id,omitempty"` + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Href *string `json:"href,omitempty"` + // client id of the service account - ClientID *string `json:"clientID,omitempty"` + ClientId *string `json:"client_id,omitempty"` + // name of the service account Name *string `json:"name,omitempty"` + // owner of the service account Owner *string `json:"owner,omitempty"` + // service account creation timestamp CreatedAt *time.Time `json:"created_at,omitempty"` + // description of the service account Description *string `json:"description,omitempty"` } @@ -47,6 +55,7 @@ func NewServiceAccountListItem() *ServiceAccountListItem { // but it doesn't guarantee that properties required by API are set func NewServiceAccountListItemWithDefaults() *ServiceAccountListItem { this := ServiceAccountListItem{} + return &this } @@ -146,36 +155,36 @@ func (o *ServiceAccountListItem) SetHref(v string) { o.Href = &v } -// GetClientID returns the ClientID field value if set, zero value otherwise. -func (o *ServiceAccountListItem) GetClientID() string { - if o == nil || o.ClientID == nil { +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountListItem) GetClientId() string { + if o == nil || o.ClientId == nil { var ret string return ret } - return *o.ClientID + return *o.ClientId } -// GetClientIDOk returns a tuple with the ClientID field value if set, nil otherwise +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceAccountListItem) GetClientIDOk() (*string, bool) { - if o == nil || o.ClientID == nil { +func (o *ServiceAccountListItem) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { return nil, false } - return o.ClientID, true + return o.ClientId, true } -// HasClientID returns a boolean if a field has been set. -func (o *ServiceAccountListItem) HasClientID() bool { - if o != nil && o.ClientID != nil { +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountListItem) HasClientId() bool { + if o != nil && o.ClientId != nil { return true } return false } -// SetClientID gets a reference to the given string and assigns it to the ClientID field. -func (o *ServiceAccountListItem) SetClientID(v string) { - o.ClientID = &v +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountListItem) SetClientId(v string) { + o.ClientId = &v } // GetName returns the Name field value if set, zero value otherwise. @@ -308,30 +317,39 @@ func (o *ServiceAccountListItem) SetDescription(v string) { func (o ServiceAccountListItem) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Href != nil { toSerialize["href"] = o.Href } - if o.ClientID != nil { - toSerialize["clientID"] = o.ClientID + + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId } + if o.Name != nil { toSerialize["name"] = o.Name } + if o.Owner != nil { toSerialize["owner"] = o.Owner } + if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + if o.Description != nil { toSerialize["description"] = o.Description } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go b/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go index 7fddc8c4..122a4eac 100644 --- a/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go +++ b/kafkamgmt/apiv1/client/model_service_account_list_item_all_of.go @@ -17,16 +17,22 @@ import ( // ServiceAccountListItemAllOf struct for ServiceAccountListItemAllOf type ServiceAccountListItemAllOf struct { + // server generated unique id of the service account Id *string `json:"id,omitempty"` + // client id of the service account - ClientID *string `json:"clientID,omitempty"` + ClientId *string `json:"client_id,omitempty"` + // name of the service account Name *string `json:"name,omitempty"` + // owner of the service account Owner *string `json:"owner,omitempty"` + // service account creation timestamp CreatedAt *time.Time `json:"created_at,omitempty"` + // description of the service account Description *string `json:"description,omitempty"` } @@ -45,6 +51,7 @@ func NewServiceAccountListItemAllOf() *ServiceAccountListItemAllOf { // but it doesn't guarantee that properties required by API are set func NewServiceAccountListItemAllOfWithDefaults() *ServiceAccountListItemAllOf { this := ServiceAccountListItemAllOf{} + return &this } @@ -80,36 +87,36 @@ func (o *ServiceAccountListItemAllOf) SetId(v string) { o.Id = &v } -// GetClientID returns the ClientID field value if set, zero value otherwise. -func (o *ServiceAccountListItemAllOf) GetClientID() string { - if o == nil || o.ClientID == nil { +// GetClientId returns the ClientId field value if set, zero value otherwise. +func (o *ServiceAccountListItemAllOf) GetClientId() string { + if o == nil || o.ClientId == nil { var ret string return ret } - return *o.ClientID + return *o.ClientId } -// GetClientIDOk returns a tuple with the ClientID field value if set, nil otherwise +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ServiceAccountListItemAllOf) GetClientIDOk() (*string, bool) { - if o == nil || o.ClientID == nil { +func (o *ServiceAccountListItemAllOf) GetClientIdOk() (*string, bool) { + if o == nil || o.ClientId == nil { return nil, false } - return o.ClientID, true + return o.ClientId, true } -// HasClientID returns a boolean if a field has been set. -func (o *ServiceAccountListItemAllOf) HasClientID() bool { - if o != nil && o.ClientID != nil { +// HasClientId returns a boolean if a field has been set. +func (o *ServiceAccountListItemAllOf) HasClientId() bool { + if o != nil && o.ClientId != nil { return true } return false } -// SetClientID gets a reference to the given string and assigns it to the ClientID field. -func (o *ServiceAccountListItemAllOf) SetClientID(v string) { - o.ClientID = &v +// SetClientId gets a reference to the given string and assigns it to the ClientId field. +func (o *ServiceAccountListItemAllOf) SetClientId(v string) { + o.ClientId = &v } // GetName returns the Name field value if set, zero value otherwise. @@ -242,24 +249,31 @@ func (o *ServiceAccountListItemAllOf) SetDescription(v string) { func (o ServiceAccountListItemAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } - if o.ClientID != nil { - toSerialize["clientID"] = o.ClientID + + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId } + if o.Name != nil { toSerialize["name"] = o.Name } + if o.Owner != nil { toSerialize["owner"] = o.Owner } + if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } + if o.Description != nil { toSerialize["description"] = o.Description } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_account_request.go b/kafkamgmt/apiv1/client/model_service_account_request.go index 9a08b54b..5240d0cf 100644 --- a/kafkamgmt/apiv1/client/model_service_account_request.go +++ b/kafkamgmt/apiv1/client/model_service_account_request.go @@ -16,8 +16,10 @@ import ( // ServiceAccountRequest Schema for the request to create a service account type ServiceAccountRequest struct { + // The name of the service account Name string `json:"name"` + // A description for the service account Description *string `json:"description,omitempty"` } @@ -37,6 +39,7 @@ func NewServiceAccountRequest(name string) *ServiceAccountRequest { // but it doesn't guarantee that properties required by API are set func NewServiceAccountRequestWithDefaults() *ServiceAccountRequest { this := ServiceAccountRequest{} + return &this } @@ -98,12 +101,15 @@ func (o *ServiceAccountRequest) SetDescription(v string) { func (o ServiceAccountRequest) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["name"] = o.Name } + if o.Description != nil { toSerialize["description"] = o.Description } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_status.go b/kafkamgmt/apiv1/client/model_service_status.go index 1eabb024..f27ae034 100644 --- a/kafkamgmt/apiv1/client/model_service_status.go +++ b/kafkamgmt/apiv1/client/model_service_status.go @@ -33,6 +33,7 @@ func NewServiceStatus() *ServiceStatus { // but it doesn't guarantee that properties required by API are set func NewServiceStatusWithDefaults() *ServiceStatus { this := ServiceStatus{} + return &this } @@ -70,9 +71,11 @@ func (o *ServiceStatus) SetKafkas(v ServiceStatusKafkas) { func (o ServiceStatus) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Kafkas != nil { toSerialize["kafkas"] = o.Kafkas } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_service_status_kafkas.go b/kafkamgmt/apiv1/client/model_service_status_kafkas.go index 3f5af58d..8236fdaa 100644 --- a/kafkamgmt/apiv1/client/model_service_status_kafkas.go +++ b/kafkamgmt/apiv1/client/model_service_status_kafkas.go @@ -16,6 +16,7 @@ import ( // ServiceStatusKafkas The kafka resource api status type ServiceStatusKafkas struct { + // Indicates whether we have reached kafka maximum capacity MaxCapacityReached bool `json:"max_capacity_reached"` } @@ -35,6 +36,7 @@ func NewServiceStatusKafkas(maxCapacityReached bool) *ServiceStatusKafkas { // but it doesn't guarantee that properties required by API are set func NewServiceStatusKafkasWithDefaults() *ServiceStatusKafkas { this := ServiceStatusKafkas{} + return &this } @@ -64,9 +66,11 @@ func (o *ServiceStatusKafkas) SetMaxCapacityReached(v bool) { func (o ServiceStatusKafkas) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if true { toSerialize["max_capacity_reached"] = o.MaxCapacityReached } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_values.go b/kafkamgmt/apiv1/client/model_values.go index 01cf9297..f3107e3b 100644 --- a/kafkamgmt/apiv1/client/model_values.go +++ b/kafkamgmt/apiv1/client/model_values.go @@ -16,8 +16,9 @@ import ( // Values struct for Values type Values struct { - Timestamp *int64 `json:"Timestamp,omitempty"` - Value float64 `json:"Value"` + Timestamp *int64 `json:"timestamp,omitempty"` + + Value float64 `json:"value"` } // NewValues instantiates a new Values object @@ -35,6 +36,7 @@ func NewValues(value float64) *Values { // but it doesn't guarantee that properties required by API are set func NewValuesWithDefaults() *Values { this := Values{} + return &this } @@ -96,12 +98,15 @@ func (o *Values) SetValue(v float64) { func (o Values) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Timestamp != nil { - toSerialize["Timestamp"] = o.Timestamp + toSerialize["timestamp"] = o.Timestamp } + if true { - toSerialize["Value"] = o.Value + toSerialize["value"] = o.Value } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_version_metadata.go b/kafkamgmt/apiv1/client/model_version_metadata.go index 88db7427..1b71c2b3 100644 --- a/kafkamgmt/apiv1/client/model_version_metadata.go +++ b/kafkamgmt/apiv1/client/model_version_metadata.go @@ -16,9 +16,12 @@ import ( // VersionMetadata struct for VersionMetadata type VersionMetadata struct { - Id *string `json:"id,omitempty"` - Kind *string `json:"kind,omitempty"` - Href *string `json:"href,omitempty"` + Id *string `json:"id,omitempty"` + + Kind *string `json:"kind,omitempty"` + + Href *string `json:"href,omitempty"` + Collections *[]ObjectReference `json:"collections,omitempty"` } @@ -36,6 +39,7 @@ func NewVersionMetadata() *VersionMetadata { // but it doesn't guarantee that properties required by API are set func NewVersionMetadataWithDefaults() *VersionMetadata { this := VersionMetadata{} + return &this } @@ -169,18 +173,23 @@ func (o *VersionMetadata) SetCollections(v []ObjectReference) { func (o VersionMetadata) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Id != nil { toSerialize["id"] = o.Id } + if o.Kind != nil { toSerialize["kind"] = o.Kind } + if o.Href != nil { toSerialize["href"] = o.Href } + if o.Collections != nil { toSerialize["collections"] = o.Collections } + return json.Marshal(toSerialize) } diff --git a/kafkamgmt/apiv1/client/model_version_metadata_all_of.go b/kafkamgmt/apiv1/client/model_version_metadata_all_of.go index 7e552802..6b478c09 100644 --- a/kafkamgmt/apiv1/client/model_version_metadata_all_of.go +++ b/kafkamgmt/apiv1/client/model_version_metadata_all_of.go @@ -33,6 +33,7 @@ func NewVersionMetadataAllOf() *VersionMetadataAllOf { // but it doesn't guarantee that properties required by API are set func NewVersionMetadataAllOfWithDefaults() *VersionMetadataAllOf { this := VersionMetadataAllOf{} + return &this } @@ -70,9 +71,11 @@ func (o *VersionMetadataAllOf) SetCollections(v []ObjectReference) { func (o VersionMetadataAllOf) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} + if o.Collections != nil { toSerialize["collections"] = o.Collections } + return json.Marshal(toSerialize) } diff --git a/scripts/generate_go.sh b/scripts/generate_go.sh index 0cc9c28c..3a53efac 100755 --- a/scripts/generate_go.sh +++ b/scripts/generate_go.sh @@ -3,20 +3,22 @@ # set output path of the API client CLIENT_ID=$1 OPENAPI_FILE_URL=$2 +TEMPLATES_DIR="$(dirname $0)/templates" API_GROUP="$(node $(dirname $0)/get-mapped-config.js "$CLIENT_ID" "apiGroup")" API_VERSION="api$(node $(dirname $0)/get-mapped-config.js "$CLIENT_ID" "apiVersion")" OPENAPI_FILENAME=$(node $(dirname $0)/get-openapi-filename.js "$OPENAPI_FILE_URL") # set the Go package name -PACKAGE_NAME="$(node $(dirname $0)/get-mapped-config.js "$CLIENT_ID" "apiPackageName")client" -if [[ ! -v "$PACKAGE_NAME" ]]; then +PACKAGE_NAME="$(node $(dirname $0)/get-mapped-config.js "$CLIENT_ID" "apiPackageName")" +if [[ -z "$PACKAGE_NAME" ]] || [[ "$PACKAGE_NAME" == "undefined" ]]; then echo "No package name is set, using apiGroup as package name" - PACKAGE_NAME="$API_GROUP" + PACKAGE_NAME="${API_GROUP}" fi +PACKAGE_NAME="${PACKAGE_NAME}client" OUTPUT_PATH="$API_GROUP/$API_VERSION/client" npx @openapitools/openapi-generator-cli version-manager set 5.1.1 -npx @openapitools/openapi-generator-cli generate -g go -i "$OPENAPI_FILENAME" -o "$OUTPUT_PATH" --package-name "$PACKAGE_NAME" --git-user-id="redhat-developer" --git-repo-id="app-services-sdk-go/$PACKAGE_NAME" -p "generateInterfaces=true" --ignore-file-override=.openapi-generator-ignore +npx @openapitools/openapi-generator-cli generate -g go -i "$OPENAPI_FILENAME" -o "$OUTPUT_PATH" -t "$TEMPLATES_DIR" --package-name "$PACKAGE_NAME" --git-user-id="redhat-developer" --git-repo-id="app-services-sdk-go/$PACKAGE_NAME" -p "generateInterfaces=true" --ignore-file-override=.openapi-generator-ignore # generate API interface mock mock_api_file="$OUTPUT_PATH/default_api_mock.go" diff --git a/scripts/templates/model_doc.mustache b/scripts/templates/model_doc.mustache new file mode 100644 index 00000000..2d31aad2 --- /dev/null +++ b/scripts/templates/model_doc.mustache @@ -0,0 +1,97 @@ +{{#models}}{{#model}}# {{classname}} + +{{^isEnum}} +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +{{#vendorExtensions.x-is-one-of-interface}} +**{{classname}}Interface** | **interface { {{#discriminator}}{{propertyGetter}}() {{propertyType}}{{/discriminator}} }** | An interface that can hold any of the proper implementing types | +{{/vendorExtensions.x-is-one-of-interface}} +{{^vendorExtensions.x-is-one-of-interface}} +{{#vars}}{{^deprecated}}**{{name}}** | {{^required}}Pointer to {{/required}}{{#isContainer}}{{#isArray}}{{#items}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**[]{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{dataType}}.md){{/isFile}}{{/isPrimitiveType}}{{/items}}{{/isArray}}{{#isMap}}{{#items}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**map[string]{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/items}}{{/isMap}}{{/isContainer}}{{^isContainer}}{{^isPrimitiveType}}{{^isFile}}{{^isDateTime}}[{{/isDateTime}}{{/isFile}}{{/isPrimitiveType}}**{{dataType}}**{{^isPrimitiveType}}{{^isFile}}{{^isDateTime}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isDateTime}}{{/isFile}}{{/isPrimitiveType}}{{/isContainer}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}} +{{/deprecated}}{{/vars}} +{{/vendorExtensions.x-is-one-of-interface}} + +## Methods + +{{^vendorExtensions.x-is-one-of-interface}} +### New{{classname}} + +`func New{{classname}}({{#vars}}{{#required}}{{nameInCamelCase}} {{dataType}}, {{/required}}{{/vars}}) *{{classname}}` + +New{{classname}} instantiates a new {{classname}} 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 + +### New{{classname}}WithDefaults + +`func New{{classname}}WithDefaults() *{{classname}}` + +New{{classname}}WithDefaults instantiates a new {{classname}} 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 + +{{#vars}}{{^deprecated}} +### Get{{name}} + +`func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}}` + +Get{{name}} returns the {{name}} field if non-nil, zero value otherwise. + +### Get{{name}}Ok + +`func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-go-base-type}}, bool)` + +Get{{name}}Ok 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. + +### Set{{name}} + +`func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}})` + +Set{{name}} sets {{name}} field to given value. + +{{^required}} +### Has{{name}} + +`func (o *{{classname}}) Has{{name}}() bool` + +Has{{name}} returns a boolean if a field has been set. +{{/required}} + +{{#isNullable}} +### Set{{name}}Nil + +`func (o *{{classname}}) Set{{name}}Nil(b bool)` + + Set{{name}}Nil sets the value for {{name}} to be an explicit nil + +### Unset{{name}} +`func (o *{{classname}}) Unset{{name}}()` + +Unset{{name}} ensures that no value is present for {{name}}, not even an explicit nil +{{/isNullable}} +{{/deprecated}}{{/vars}} +{{#vendorExtensions.x-implements}} + +### As{{{.}}} + +`func (s *{{classname}}) As{{{.}}}() {{{.}}}` + +Convenience method to wrap this instance of {{classname}} in {{{.}}} +{{/vendorExtensions.x-implements}} +{{/vendorExtensions.x-is-one-of-interface}} +{{/isEnum}} +{{#isEnum}} +## Enum + +{{#allowableValues}}{{#enumVars}} +* `{{name}}` (value: `{{{value}}}`) +{{/enumVars}}{{/allowableValues}} +{{/isEnum}} + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + +{{/model}}{{/models}} \ No newline at end of file diff --git a/scripts/templates/model_simple.mustache b/scripts/templates/model_simple.mustache new file mode 100644 index 00000000..3e94f8f7 --- /dev/null +++ b/scripts/templates/model_simple.mustache @@ -0,0 +1,393 @@ +{{! This file is based on https://github.com/OpenAPITools/openapi-generator/blob/v5.1.1/modules/openapi-generator/src/main/resources/go/model_simple.mustache with some changes to ignore deprecated fields.}} +{{! This is needed to allow us to rename some of the fields. Can be removed once the deprecated fields are completely removed.}} +// {{classname}}{{#description}} {{{description}}}{{/description}}{{^description}} struct for {{{classname}}}{{/description}} +type {{classname}} struct { +{{#parent}} +{{^isMap}} +{{^isArray}} + {{{parent}}} +{{/isArray}} +{{/isMap}} +{{#isArray}} + Items {{{parent}}} +{{/isArray}} +{{/parent}} +{{#vars}}{{^deprecated}} +{{^-first}} +{{/-first}} +{{#description}} + // {{{description}}} +{{/description}} + {{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` +{{/deprecated}}{{/vars}} +{{#isAdditionalPropertiesTrue}} + AdditionalProperties map[string]interface{} +{{/isAdditionalPropertiesTrue}} +} + +{{#isAdditionalPropertiesTrue}} +type _{{{classname}}} {{{classname}}} + +{{/isAdditionalPropertiesTrue}} +// New{{classname}} instantiates a new {{classname}} 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 New{{classname}}({{#requiredVars}}{{nameInCamelCase}} {{dataType}}{{^-last}}, {{/-last}}{{/requiredVars}}) *{{classname}} { + this := {{classname}}{} +{{#allVars}} +{{#required}} + this.{{name}} = {{nameInCamelCase}} +{{/required}} +{{^required}} +{{#defaultValue}} +{{^vendorExtensions.x-golang-is-container}} +{{#isNullable}} + var {{nameInCamelCase}} {{{datatypeWithEnum}}} = {{{.}}} + this.{{name}} = *New{{{dataType}}}(&{{nameInCamelCase}}) +{{/isNullable}} +{{^isNullable}} + var {{nameInCamelCase}} {{{dataType}}} = {{{.}}} + this.{{name}} = &{{nameInCamelCase}} +{{/isNullable}} +{{/vendorExtensions.x-golang-is-container}} +{{/defaultValue}} +{{/required}} +{{/allVars}} + return &this +} + +// New{{classname}}WithDefaults instantiates a new {{classname}} 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 New{{classname}}WithDefaults() *{{classname}} { + this := {{classname}}{} +{{#vars}}{{^deprecated}} +{{#defaultValue}} +{{^vendorExtensions.x-golang-is-container}} +{{#isNullable}} +{{!we use datatypeWithEnum here, since it will represent the non-nullable name of the datatype, e.g. int64 for NullableInt64}} + var {{nameInCamelCase}} {{{datatypeWithEnum}}} = {{{.}}} + this.{{name}} = *New{{{dataType}}}(&{{nameInCamelCase}}) +{{/isNullable}} +{{^isNullable}} + var {{nameInCamelCase}} {{{dataType}}} = {{{.}}} + this.{{name}} = {{^required}}&{{/required}}{{nameInCamelCase}} +{{/isNullable}} +{{/vendorExtensions.x-golang-is-container}} +{{/defaultValue}} +{{/deprecated}}{{/vars}} + return &this +} + +{{#vars}}{{^deprecated}} +{{#required}} +// Get{{name}} returns the {{name}} field value +{{#isNullable}} +// If the value is explicit nil, the zero value for {{vendorExtensions.x-go-base-type}} will be returned +{{/isNullable}} +func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { + if o == nil{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + var ret {{vendorExtensions.x-go-base-type}} + return ret + } + +{{#isNullable}} +{{#vendorExtensions.x-golang-is-container}} + return o.{{name}} +{{/vendorExtensions.x-golang-is-container}} +{{^vendorExtensions.x-golang-is-container}} + return *o.{{name}}.Get() +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} +{{^isNullable}} + return o.{{name}} +{{/isNullable}} +} + +// Get{{name}}Ok returns a tuple with the {{name}} field value +// and a boolean to check if the value has been set. +{{#isNullable}} +// NOTE: If the value is an explicit nil, `nil, true` will be returned +{{/isNullable}} +func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-go-base-type}}, bool) { + if o == nil {{#isNullable}}{{#vendorExtensions.x-golang-is-container}}|| o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + return nil, false + } +{{#isNullable}} +{{#vendorExtensions.x-golang-is-container}} + return &o.{{name}}, true +{{/vendorExtensions.x-golang-is-container}} +{{^vendorExtensions.x-golang-is-container}} + return o.{{name}}.Get(), o.{{name}}.IsSet() +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} +{{^isNullable}} + return &o.{{name}}, true +{{/isNullable}} +} + +// Set{{name}} sets field value +func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { +{{#isNullable}} +{{#vendorExtensions.x-golang-is-container}} + o.{{name}} = v +{{/vendorExtensions.x-golang-is-container}} +{{^vendorExtensions.x-golang-is-container}} + o.{{name}}.Set(&v) +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} +{{^isNullable}} + o.{{name}} = v +{{/isNullable}} +} + +{{/required}} +{{^required}} +// Get{{name}} returns the {{name}} field value if set, zero value otherwise{{#isNullable}} (both if not set or set to explicit null){{/isNullable}}. +func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { + if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}}|| o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + var ret {{vendorExtensions.x-go-base-type}} + return ret + } +{{#isNullable}} +{{#vendorExtensions.x-golang-is-container}} + return o.{{name}} +{{/vendorExtensions.x-golang-is-container}} +{{^vendorExtensions.x-golang-is-container}} + return *o.{{name}}.Get() +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} +{{^isNullable}} + return *o.{{name}} +{{/isNullable}} +} + +// Get{{name}}Ok returns a tuple with the {{name}} field value if set, nil otherwise +// and a boolean to check if the value has been set. +{{#isNullable}} +// NOTE: If the value is an explicit nil, `nil, true` will be returned +{{/isNullable}} +func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-go-base-type}}, bool) { + if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}}|| o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + return nil, false + } +{{#isNullable}} +{{#vendorExtensions.x-golang-is-container}} + return &o.{{name}}, true +{{/vendorExtensions.x-golang-is-container}} +{{^vendorExtensions.x-golang-is-container}} + return o.{{name}}.Get(), o.{{name}}.IsSet() +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} +{{^isNullable}} + return o.{{name}}, true +{{/isNullable}} +} + +// Has{{name}} returns a boolean if a field has been set. +func (o *{{classname}}) Has{{name}}() bool { + if o != nil && {{^isNullable}}o.{{name}} != nil{{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}}o.{{name}} != nil{{/vendorExtensions.x-golang-is-container}}{{^vendorExtensions.x-golang-is-container}}o.{{name}}.IsSet(){{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { + return true + } + + return false +} + +// Set{{name}} gets a reference to the given {{dataType}} and assigns it to the {{name}} field. +func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { +{{#isNullable}} +{{#vendorExtensions.x-golang-is-container}} + o.{{name}} = v +{{/vendorExtensions.x-golang-is-container}} +{{^vendorExtensions.x-golang-is-container}} + o.{{name}}.Set(&v) +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} +{{^isNullable}} + o.{{name}} = &v +{{/isNullable}} +} +{{#isNullable}} +{{^vendorExtensions.x-golang-is-container}} +// Set{{name}}Nil sets the value for {{name}} to be an explicit nil +func (o *{{classname}}) Set{{name}}Nil() { + o.{{name}}.Set(nil) +} + +// Unset{{name}} ensures that no value is present for {{name}}, not even an explicit nil +func (o *{{classname}}) Unset{{name}}() { + o.{{name}}.Unset() +} +{{/vendorExtensions.x-golang-is-container}} +{{/isNullable}} + +{{/required}} +{{/deprecated}}{{/vars}} +func (o {{classname}}) MarshalJSON() ([]byte, error) { + toSerialize := {{#isArray}}make([]interface{}, len(o.Items)){{/isArray}}{{^isArray}}map[string]interface{}{}{{/isArray}} + {{#parent}} + {{^isMap}} + {{^isArray}} + serialized{{parent}}, err{{parent}} := json.Marshal(o.{{parent}}) + if err{{parent}} != nil { + return []byte{}, err{{parent}} + } + err{{parent}} = json.Unmarshal([]byte(serialized{{parent}}), &toSerialize) + if err{{parent}} != nil { + return []byte{}, err{{parent}} + } + {{/isArray}} + {{/isMap}} + {{#isArray}} + for i, item := range o.Items { + toSerialize[i] = item + } + {{/isArray}} + {{/parent}} + {{#vars}}{{^deprecated}} + {{! if argument is nullable, only serialize it if it is set}} + {{#isNullable}} + {{#vendorExtensions.x-golang-is-container}} + {{! support for container fields is not ideal at this point because of lack of Nullable* types}} + if o.{{name}} != nil { + toSerialize["{{baseName}}"] = o.{{name}} + } + {{/vendorExtensions.x-golang-is-container}} + {{^vendorExtensions.x-golang-is-container}} + if {{#required}}true{{/required}}{{^required}}o.{{name}}.IsSet(){{/required}} { + toSerialize["{{baseName}}"] = o.{{name}}.Get() + } + {{/vendorExtensions.x-golang-is-container}} + {{/isNullable}} + {{! if argument is not nullable, don't set it if it is nil}} + {{^isNullable}} + if {{#required}}true{{/required}}{{^required}}o.{{name}} != nil{{/required}} { + toSerialize["{{baseName}}"] = o.{{name}} + } + {{/isNullable}} + {{/deprecated}}{{/vars}} + {{#isAdditionalPropertiesTrue}} + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + {{/isAdditionalPropertiesTrue}} + return json.Marshal(toSerialize) +} + +{{#isAdditionalPropertiesTrue}} +func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { +{{#parent}} +{{^isMap}} + type {{classname}}WithoutEmbeddedStruct struct { + {{#vars}} + {{^-first}} + {{/-first}} + {{#description}} + // {{{description}}} + {{/description}} + {{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` + {{/vars}} + } + + var{{{classname}}}WithoutEmbeddedStruct := {{{classname}}}WithoutEmbeddedStruct{} + + err = json.Unmarshal(bytes, &var{{{classname}}}WithoutEmbeddedStruct) + if err == nil { + var{{{classname}}} := _{{{classname}}}{} + {{#vars}} + var{{{classname}}}.{{{name}}} = var{{{classname}}}WithoutEmbeddedStruct.{{{name}}} + {{/vars}} + *o = {{{classname}}}(var{{{classname}}}) + } else { + return err + } + + var{{{classname}}} := _{{{classname}}}{} + + err = json.Unmarshal(bytes, &var{{{classname}}}) + if err == nil { + o.{{{parent}}} = var{{{classname}}}.{{{parent}}} + } else { + return err + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + {{#vars}} + delete(additionalProperties, "{{{baseName}}}") + {{/vars}} + + // remove fields from embedded structs + reflect{{{parent}}} := reflect.ValueOf(o.{{{parent}}}) + for i := 0; i < reflect{{{parent}}}.Type().NumField(); i++ { + t := reflect{{{parent}}}.Type().Field(i) + + if jsonTag := t.Tag.Get("json"); jsonTag != "" { + fieldName := "" + if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { + fieldName = jsonTag[:commaIdx] + } else { + fieldName = jsonTag + } + if fieldName != "AdditionalProperties" { + delete(additionalProperties, fieldName) + } + } + } + + o.AdditionalProperties = additionalProperties + } + + return err +{{/isMap}} +{{#isMap}} + var{{{classname}}} := _{{{classname}}}{} + + if err = json.Unmarshal(bytes, &var{{{classname}}}); err == nil { + *o = {{{classname}}}(var{{{classname}}}) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + {{#vars}} + delete(additionalProperties, "{{{baseName}}}") + {{/vars}} + o.AdditionalProperties = additionalProperties + } + + return err +{{/isMap}} +{{/parent}} +{{^parent}} + var{{{classname}}} := _{{{classname}}}{} + + if err = json.Unmarshal(bytes, &var{{{classname}}}); err == nil { + *o = {{{classname}}}(var{{{classname}}}) + } + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + {{#vars}} + delete(additionalProperties, "{{{baseName}}}") + {{/vars}} + o.AdditionalProperties = additionalProperties + } + + return err +{{/parent}} +} + +{{/isAdditionalPropertiesTrue}} +{{#isArray}} +func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { + return json.Unmarshal(bytes, &o.Items) +} + +{{/isArray}} +{{>nullable_model}} \ No newline at end of file