diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index 7193d786..2f50da34 100644 --- a/pkg/config-api-client/README.md +++ b/pkg/config-api-client/README.md @@ -5,7 +5,7 @@ Nice description goes here ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.22.0 +- API version: 2.0.0 - Package version: 1.0.0 - Generator version: 7.9.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen diff --git a/pkg/config-api-client/api/.openapi.source.yaml b/pkg/config-api-client/api/.openapi.source.yaml index 8fb62dfb..2471230e 100644 --- a/pkg/config-api-client/api/.openapi.source.yaml +++ b/pkg/config-api-client/api/.openapi.source.yaml @@ -9,7 +9,7 @@ info: email: support@capenetworks.com license: name: No idea, but we need something - version: 1.22.0 + version: 2.0.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -614,7 +614,6 @@ components: - errorCode - httpStatusCode - message - - errorDetails title: ErrorResponse Group: type: object diff --git a/pkg/config-api-client/api/openapi.yaml b/pkg/config-api-client/api/openapi.yaml index 2df27d97..313e96d4 100644 --- a/pkg/config-api-client/api/openapi.yaml +++ b/pkg/config-api-client/api/openapi.yaml @@ -9,7 +9,7 @@ info: name: "No idea, but we need something" termsOfService: http://we.dont.care.yet.com/term-of-service title: Configuration Api - version: 1.22.0 + version: 2.0.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -630,7 +630,6 @@ components: required: - debugId - errorCode - - errorDetails - httpStatusCode - message title: ErrorResponse diff --git a/pkg/config-api-client/api_configuration.go b/pkg/config-api-client/api_configuration.go index 8a8daee4..df06b18b 100644 --- a/pkg/config-api-client/api_configuration.go +++ b/pkg/config-api-client/api_configuration.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/client.go b/pkg/config-api-client/client.go index e5c471ea..c08ab032 100644 --- a/pkg/config-api-client/client.go +++ b/pkg/config-api-client/client.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Configuration Api API v1.22.0 +// APIClient manages communication with the Configuration Api API v2.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/pkg/config-api-client/configuration.go b/pkg/config-api-client/configuration.go index 74f926e1..e40e8f9d 100644 --- a/pkg/config-api-client/configuration.go +++ b/pkg/config-api-client/configuration.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/docs/ErrorResponse.md b/pkg/config-api-client/docs/ErrorResponse.md index e3049174..725411ca 100644 --- a/pkg/config-api-client/docs/ErrorResponse.md +++ b/pkg/config-api-client/docs/ErrorResponse.md @@ -8,13 +8,13 @@ Name | Type | Description | Notes **ErrorCode** | **string** | | **HttpStatusCode** | **int32** | | **Message** | **string** | | -**ErrorDetails** | [**[]ErrorDetail**](ErrorDetail.md) | | +**ErrorDetails** | Pointer to [**[]ErrorDetail**](ErrorDetail.md) | | [optional] ## Methods ### NewErrorResponse -`func NewErrorResponse(debugId string, errorCode string, httpStatusCode int32, message string, errorDetails []ErrorDetail, ) *ErrorResponse` +`func NewErrorResponse(debugId string, errorCode string, httpStatusCode int32, message string, ) *ErrorResponse` NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, @@ -128,6 +128,11 @@ and a boolean to check if the value has been set. SetErrorDetails sets ErrorDetails field to given value. +### HasErrorDetails + +`func (o *ErrorResponse) HasErrorDetails() bool` + +HasErrorDetails returns a boolean if a field has been set. ### SetErrorDetailsNil diff --git a/pkg/config-api-client/model_error_detail.go b/pkg/config-api-client/model_error_detail.go index 03cbbc78..09160c14 100644 --- a/pkg/config-api-client/model_error_detail.go +++ b/pkg/config-api-client/model_error_detail.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_error_response.go b/pkg/config-api-client/model_error_response.go index 82830c03..eaeac545 100644 --- a/pkg/config-api-client/model_error_response.go +++ b/pkg/config-api-client/model_error_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ @@ -26,7 +26,7 @@ type ErrorResponse struct { ErrorCode string `json:"errorCode"` HttpStatusCode int32 `json:"httpStatusCode"` Message string `json:"message"` - ErrorDetails []ErrorDetail `json:"errorDetails"` + ErrorDetails []ErrorDetail `json:"errorDetails,omitempty"` } type _ErrorResponse ErrorResponse @@ -35,13 +35,12 @@ type _ErrorResponse ErrorResponse // 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 NewErrorResponse(debugId string, errorCode string, httpStatusCode int32, message string, errorDetails []ErrorDetail) *ErrorResponse { +func NewErrorResponse(debugId string, errorCode string, httpStatusCode int32, message string) *ErrorResponse { this := ErrorResponse{} this.DebugId = debugId this.ErrorCode = errorCode this.HttpStatusCode = httpStatusCode this.Message = message - this.ErrorDetails = errorDetails return &this } @@ -149,18 +148,16 @@ func (o *ErrorResponse) SetMessage(v string) { o.Message = v } -// GetErrorDetails returns the ErrorDetails field value -// If the value is explicit nil, the zero value for []ErrorDetail will be returned +// GetErrorDetails returns the ErrorDetails field value if set, zero value otherwise (both if not set or set to explicit null). func (o *ErrorResponse) GetErrorDetails() []ErrorDetail { if o == nil { var ret []ErrorDetail return ret } - return o.ErrorDetails } -// GetErrorDetailsOk returns a tuple with the ErrorDetails field value +// GetErrorDetailsOk returns a tuple with the ErrorDetails field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ErrorResponse) GetErrorDetailsOk() ([]ErrorDetail, bool) { @@ -170,7 +167,16 @@ func (o *ErrorResponse) GetErrorDetailsOk() ([]ErrorDetail, bool) { return o.ErrorDetails, true } -// SetErrorDetails sets field value +// HasErrorDetails returns a boolean if a field has been set. +func (o *ErrorResponse) HasErrorDetails() bool { + if o != nil && !IsNil(o.ErrorDetails) { + return true + } + + return false +} + +// SetErrorDetails gets a reference to the given []ErrorDetail and assigns it to the ErrorDetails field. func (o *ErrorResponse) SetErrorDetails(v []ErrorDetail) { o.ErrorDetails = v } @@ -204,7 +210,6 @@ func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error) { "errorCode", "httpStatusCode", "message", - "errorDetails", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_group.go b/pkg/config-api-client/model_group.go index f5b44097..933e5726 100644 --- a/pkg/config-api-client/model_group.go +++ b/pkg/config-api-client/model_group.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_get_item.go b/pkg/config-api-client/model_groups_get_item.go index d9481f9f..27e56535 100644 --- a/pkg/config-api-client/model_groups_get_item.go +++ b/pkg/config-api-client/model_groups_get_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_get_response.go b/pkg/config-api-client/model_groups_get_response.go index 3ff2bbf0..5e643cdb 100644 --- a/pkg/config-api-client/model_groups_get_response.go +++ b/pkg/config-api-client/model_groups_get_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_patch_request.go b/pkg/config-api-client/model_groups_patch_request.go index 9f703929..32ffa4d2 100644 --- a/pkg/config-api-client/model_groups_patch_request.go +++ b/pkg/config-api-client/model_groups_patch_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_patch_response.go b/pkg/config-api-client/model_groups_patch_response.go index d4fe2c6b..04dcf149 100644 --- a/pkg/config-api-client/model_groups_patch_response.go +++ b/pkg/config-api-client/model_groups_patch_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_post_request.go b/pkg/config-api-client/model_groups_post_request.go index 73a995ef..17c0c009 100644 --- a/pkg/config-api-client/model_groups_post_request.go +++ b/pkg/config-api-client/model_groups_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_post_response.go b/pkg/config-api-client/model_groups_post_response.go index e65c7a82..8f65472d 100644 --- a/pkg/config-api-client/model_groups_post_response.go +++ b/pkg/config-api-client/model_groups_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_issue.go b/pkg/config-api-client/model_issue.go index 7984b3be..f63cbc05 100644 --- a/pkg/config-api-client/model_issue.go +++ b/pkg/config-api-client/model_issue.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_issue_subject.go b/pkg/config-api-client/model_issue_subject.go index 2ca08b8d..7a35c647 100644 --- a/pkg/config-api-client/model_issue_subject.go +++ b/pkg/config-api-client/model_issue_subject.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network.go b/pkg/config-api-client/model_network.go index 0886e54d..20cd86dd 100644 --- a/pkg/config-api-client/model_network.go +++ b/pkg/config-api-client/model_network.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_item.go b/pkg/config-api-client/model_network_group_assignments_item.go index adf0e379..6ca81e7f 100644 --- a/pkg/config-api-client/model_network_group_assignments_item.go +++ b/pkg/config-api-client/model_network_group_assignments_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_post_request.go b/pkg/config-api-client/model_network_group_assignments_post_request.go index 569926f7..bfbdcf98 100644 --- a/pkg/config-api-client/model_network_group_assignments_post_request.go +++ b/pkg/config-api-client/model_network_group_assignments_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_post_response.go b/pkg/config-api-client/model_network_group_assignments_post_response.go index afa28c6e..ac1566b9 100644 --- a/pkg/config-api-client/model_network_group_assignments_post_response.go +++ b/pkg/config-api-client/model_network_group_assignments_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network_group_assignments_response.go b/pkg/config-api-client/model_network_group_assignments_response.go index 6f2e7e35..11df0f9d 100644 --- a/pkg/config-api-client/model_network_group_assignments_response.go +++ b/pkg/config-api-client/model_network_group_assignments_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_parent.go b/pkg/config-api-client/model_parent.go index afa8283a..3db71373 100644 --- a/pkg/config-api-client/model_parent.go +++ b/pkg/config-api-client/model_parent.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor.go b/pkg/config-api-client/model_sensor.go index e69447c7..c2d1b0a1 100644 --- a/pkg/config-api-client/model_sensor.go +++ b/pkg/config-api-client/model_sensor.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignment_response.go b/pkg/config-api-client/model_sensor_group_assignment_response.go index 822e20e2..aa0aa4cd 100644 --- a/pkg/config-api-client/model_sensor_group_assignment_response.go +++ b/pkg/config-api-client/model_sensor_group_assignment_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_item.go b/pkg/config-api-client/model_sensor_group_assignments_item.go index 7a53e189..c4e6d83c 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_item.go +++ b/pkg/config-api-client/model_sensor_group_assignments_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_post_request.go b/pkg/config-api-client/model_sensor_group_assignments_post_request.go index 5d0487fa..9ba82db7 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_post_request.go +++ b/pkg/config-api-client/model_sensor_group_assignments_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_group_assignments_response.go b/pkg/config-api-client/model_sensor_group_assignments_response.go index 70452e1d..4096fe09 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_response.go +++ b/pkg/config-api-client/model_sensor_group_assignments_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_.go b/pkg/config-api-client/model_service_test_.go index a91457d7..59f1bfda 100644 --- a/pkg/config-api-client/model_service_test_.go +++ b/pkg/config-api-client/model_service_test_.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignments_post_request.go b/pkg/config-api-client/model_service_test_group_assignments_post_request.go index e9570519..c2aade1a 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_post_request.go +++ b/pkg/config-api-client/model_service_test_group_assignments_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_test_group_assignments_post_response.go b/pkg/config-api-client/model_service_test_group_assignments_post_response.go index c28c69b5..bfea8636 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_post_response.go +++ b/pkg/config-api-client/model_service_test_group_assignments_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wired_networks_item.go b/pkg/config-api-client/model_wired_networks_item.go index 35946878..f3457e41 100644 --- a/pkg/config-api-client/model_wired_networks_item.go +++ b/pkg/config-api-client/model_wired_networks_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wired_networks_response.go b/pkg/config-api-client/model_wired_networks_response.go index 57880b76..7e138e65 100644 --- a/pkg/config-api-client/model_wired_networks_response.go +++ b/pkg/config-api-client/model_wired_networks_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wireless_networks_item.go b/pkg/config-api-client/model_wireless_networks_item.go index 9bf67ae3..104d4264 100644 --- a/pkg/config-api-client/model_wireless_networks_item.go +++ b/pkg/config-api-client/model_wireless_networks_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_wireless_networks_response.go b/pkg/config-api-client/model_wireless_networks_response.go index 051b5235..8eb839ba 100644 --- a/pkg/config-api-client/model_wireless_networks_response.go +++ b/pkg/config-api-client/model_wireless_networks_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/response.go b/pkg/config-api-client/response.go index 3b023634..e1f9b8a7 100644 --- a/pkg/config-api-client/response.go +++ b/pkg/config-api-client/response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/utils.go b/pkg/config-api-client/utils.go index 33749b76..dfd4cc1d 100644 --- a/pkg/config-api-client/utils.go +++ b/pkg/config-api-client/utils.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.22.0 +API version: 2.0.0 Contact: support@capenetworks.com */