diff --git a/pkg/config-api-client/.openapi-generator/FILES b/pkg/config-api-client/.openapi-generator/FILES index ecc12ae0..5600c365 100644 --- a/pkg/config-api-client/.openapi-generator/FILES +++ b/pkg/config-api-client/.openapi-generator/FILES @@ -31,6 +31,8 @@ docs/SensorsResponse.md docs/ServiceTest.md docs/ServiceTestGroupAssignmentsPostRequest.md docs/ServiceTestGroupAssignmentsPostResponse.md +docs/ServiceTestsListItem.md +docs/ServiceTestsListResponse.md docs/WiredNetworksItem.md docs/WiredNetworksResponse.md docs/WirelessNetworksItem.md @@ -64,6 +66,8 @@ model_sensors_response.go model_service_test_.go model_service_test_group_assignments_post_request.go model_service_test_group_assignments_post_response.go +model_service_tests_list_item.go +model_service_tests_list_response.go model_wired_networks_item.go model_wired_networks_response.go model_wireless_networks_item.go diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index ad76d78b..2dcacdfb 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: 2.6.0 +- API version: 2.9.0 - Package version: 1.0.0 - Generator version: 7.9.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -81,6 +81,7 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *ConfigurationAPI* | [**DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deletenetworkgroupassignmentuxiv1alpha1networkgroupassignmentsiddelete) | **Delete** /uxi/v1alpha1/network-group-assignments/{id} | Delete Network Group Assignment *ConfigurationAPI* | [**DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deletesensorgroupassignmentuxiv1alpha1sensorgroupassignmentsiddelete) | **Delete** /uxi/v1alpha1/sensor-group-assignments/{id} | Delete Sensor Group Assignment +*ConfigurationAPI* | [**DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deleteservicetestgroupassignmentuxiv1alpha1servicetestgroupassignmentsiddelete) | **Delete** /uxi/v1alpha1/service-test-group-assignments/{id} | Delete Service Test Group Assignment *ConfigurationAPI* | [**GetUxiV1alpha1NetworkGroupAssignmentsGet**](docs/ConfigurationAPI.md#getuxiv1alpha1networkgroupassignmentsget) | **Get** /uxi/v1alpha1/network-group-assignments | Get *ConfigurationAPI* | [**GetUxiV1alpha1SensorGroupAssignmentsGet**](docs/ConfigurationAPI.md#getuxiv1alpha1sensorgroupassignmentsget) | **Get** /uxi/v1alpha1/sensor-group-assignments | Get *ConfigurationAPI* | [**GetUxiV1alpha1SensorsGet**](docs/ConfigurationAPI.md#getuxiv1alpha1sensorsget) | **Get** /uxi/v1alpha1/sensors | Get @@ -93,6 +94,7 @@ Class | Method | HTTP request | Description *ConfigurationAPI* | [**PostUxiV1alpha1NetworkGroupAssignmentsPost**](docs/ConfigurationAPI.md#postuxiv1alpha1networkgroupassignmentspost) | **Post** /uxi/v1alpha1/network-group-assignments | Post *ConfigurationAPI* | [**PostUxiV1alpha1SensorGroupAssignmentsPost**](docs/ConfigurationAPI.md#postuxiv1alpha1sensorgroupassignmentspost) | **Post** /uxi/v1alpha1/sensor-group-assignments | Post *ConfigurationAPI* | [**PostUxiV1alpha1ServiceTestGroupAssignmentsPost**](docs/ConfigurationAPI.md#postuxiv1alpha1servicetestgroupassignmentspost) | **Post** /uxi/v1alpha1/service-test-group-assignments | Post +*ConfigurationAPI* | [**ServiceTestsGetUxiV1alpha1ServiceTestsGet**](docs/ConfigurationAPI.md#servicetestsgetuxiv1alpha1servicetestsget) | **Get** /uxi/v1alpha1/service-tests | Service Tests Get ## Documentation For Models @@ -124,6 +126,8 @@ Class | Method | HTTP request | Description - [ServiceTest](docs/ServiceTest.md) - [ServiceTestGroupAssignmentsPostRequest](docs/ServiceTestGroupAssignmentsPostRequest.md) - [ServiceTestGroupAssignmentsPostResponse](docs/ServiceTestGroupAssignmentsPostResponse.md) + - [ServiceTestsListItem](docs/ServiceTestsListItem.md) + - [ServiceTestsListResponse](docs/ServiceTestsListResponse.md) - [WiredNetworksItem](docs/WiredNetworksItem.md) - [WiredNetworksResponse](docs/WiredNetworksResponse.md) - [WirelessNetworksItem](docs/WirelessNetworksItem.md) diff --git a/pkg/config-api-client/api/.openapi.source.yaml b/pkg/config-api-client/api/.openapi.source.yaml index 3b74be3a..e3ba8469 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: 2.6.0 + version: 2.9.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -110,14 +110,14 @@ paths: - type: string nullable: true title: Id - - name: cursor + - name: next in: query required: false schema: anyOf: - type: string nullable: true - title: Cursor + title: Next - name: limit in: query required: false @@ -248,14 +248,14 @@ paths: - type: string nullable: true title: Id - - name: cursor + - name: next in: query required: false schema: anyOf: - type: string nullable: true - title: Cursor + title: Next - name: limit in: query required: false @@ -341,14 +341,14 @@ paths: - type: string nullable: true title: Id - - name: cursor + - name: next in: query required: false schema: anyOf: - type: string nullable: true - title: Cursor + title: Next - name: limit in: query required: false @@ -475,14 +475,14 @@ paths: - type: string nullable: true title: Id - - name: cursor + - name: next in: query required: false schema: anyOf: - type: string nullable: true - title: Cursor + title: Next - name: limit in: query required: false @@ -519,6 +519,47 @@ paths: - v1alpha1 - sensors x-stability-level: alpha + /uxi/v1alpha1/service-test-group-assignments/{id}: + delete: + operationId: >- + delete_service_test_group_assignment_uxi_v1alpha1_service_test_group_assignments__id__delete + summary: Delete Service Test Group Assignment + description: Delete a service test group assignment + parameters: + - name: id + in: path + required: true + schema: + type: string + title: Id + responses: + '200': + description: Successful Response + content: + application/json: + schema: {} + '204': + description: No Content + 4XX: + description: Client Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + 5XX: + description: Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + security: + - HTTPBearer: [] + tags: + - api + - configuration + - v1alpha1 + - service-test-group-assignments + x-stability-level: alpha /uxi/v1alpha1/service-test-group-assignments: post: operationId: post_uxi_v1alpha1_service_test_group_assignments_post @@ -557,6 +598,64 @@ paths: - v1alpha1 - service-test-group-assignments x-stability-level: alpha + /uxi/v1alpha1/service-tests: + get: + operationId: service_tests_get_uxi_v1alpha1_service_tests_get + summary: Service Tests Get + description: Lists service-tests matching provided criteria + parameters: + - name: id + in: query + required: false + schema: + anyOf: + - type: string + nullable: true + title: Id + - name: next + in: query + required: false + schema: + anyOf: + - type: string + nullable: true + title: Next + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + maximum: 100 + minimum: 0 + title: Limit + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceTestsListResponse' + 4XX: + description: Client Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + 5XX: + description: Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + security: + - HTTPBearer: [] + tags: + - api + - configuration + - v1alpha1 + - service-tests + x-stability-level: alpha /uxi/v1alpha1/wired-networks: get: operationId: get_uxi_v1alpha1_wired_networks_get @@ -571,14 +670,14 @@ paths: - type: string nullable: true title: Id - - name: cursor + - name: next in: query required: false schema: anyOf: - type: string nullable: true - title: Cursor + title: Next - name: limit in: query required: false @@ -627,14 +726,14 @@ paths: - type: string nullable: true title: Id - - name: cursor + - name: next in: query required: false schema: anyOf: - type: string nullable: true - title: Cursor + title: Next - name: limit in: query required: false @@ -1168,6 +1267,62 @@ components: - group - serviceTest title: ServiceTestGroupAssignmentsPostResponse + ServiceTestsListItem: + type: object + properties: + id: + type: string + title: Id + category: + type: string + title: Category + name: + type: string + title: Name + target: + anyOf: + - type: string + nullable: true + title: Target + template: + type: string + title: Template + isEnabled: + type: boolean + title: Isenabled + type: + type: string + default: uxi/service-test + title: Type + required: + - id + - category + - name + - target + - template + - isEnabled + title: ServiceTestsListItem + ServiceTestsListResponse: + type: object + properties: + items: + type: array + items: + $ref: '#/components/schemas/ServiceTestsListItem' + title: Items + count: + type: integer + title: Count + next: + anyOf: + - type: string + nullable: true + title: Next + required: + - items + - count + - next + title: ServiceTestsListResponse WiredNetworksItem: type: object properties: @@ -1352,6 +1507,7 @@ tags: - name: network-group-assignments - name: sensors - name: sensor-group-assignments + - name: service-tests - name: service-test-group-assignments - name: wired-networks - name: wireless-networks diff --git a/pkg/config-api-client/api/openapi.yaml b/pkg/config-api-client/api/openapi.yaml index cc89f22c..3379e0e5 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: 2.6.0 + version: 2.9.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -23,6 +23,7 @@ tags: - name: network-group-assignments - name: sensors - name: sensor-group-assignments +- name: service-tests - name: service-test-group-assignments - name: wired-networks - name: wireless-networks @@ -122,7 +123,7 @@ paths: style: form - explode: true in: query - name: cursor + name: next required: false schema: nullable: true @@ -253,7 +254,7 @@ paths: style: form - explode: true in: query - name: cursor + name: next required: false schema: nullable: true @@ -342,7 +343,7 @@ paths: style: form - explode: true in: query - name: cursor + name: next required: false schema: nullable: true @@ -470,7 +471,7 @@ paths: style: form - explode: true in: query - name: cursor + name: next required: false schema: nullable: true @@ -512,6 +513,45 @@ paths: tags: - configuration x-stability-level: alpha + /uxi/v1alpha1/service-test-group-assignments/{id}: + delete: + description: Delete a service test group assignment + operationId: delete_service_test_group_assignment_uxi_v1alpha1_service_test_group_assignments__id__delete + parameters: + - explode: false + in: path + name: id + required: true + schema: + title: Id + type: string + style: simple + responses: + "200": + content: + application/json: + schema: {} + description: Successful Response + "204": + description: No Content + "4XX": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Client Error + "5XX": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Server Error + security: + - HTTPBearer: [] + summary: Delete Service Test Group Assignment + tags: + - configuration + x-stability-level: alpha /uxi/v1alpha1/service-test-group-assignments: post: description: Create a service-test group assignment @@ -547,6 +587,63 @@ paths: tags: - configuration x-stability-level: alpha + /uxi/v1alpha1/service-tests: + get: + description: Lists service-tests matching provided criteria + operationId: service_tests_get_uxi_v1alpha1_service_tests_get + parameters: + - explode: true + in: query + name: id + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: next + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + maximum: 100 + minimum: 0 + title: Limit + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ServiceTestsListResponse' + description: Successful Response + "4XX": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Client Error + "5XX": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Server Error + security: + - HTTPBearer: [] + summary: Service Tests Get + tags: + - configuration + x-stability-level: alpha /uxi/v1alpha1/wired-networks: get: description: Get a list of wired networks @@ -562,7 +659,7 @@ paths: style: form - explode: true in: query - name: cursor + name: next required: false schema: nullable: true @@ -617,7 +714,7 @@ paths: style: form - explode: true in: query - name: cursor + name: next required: false schema: nullable: true @@ -1330,6 +1427,84 @@ components: - serviceTest title: ServiceTestGroupAssignmentsPostResponse type: object + ServiceTestsListItem: + example: + template: template + isEnabled: true + name: name + id: id + category: category + type: uxi/service-test + target: target + properties: + id: + title: Id + type: string + category: + title: Category + type: string + name: + title: Name + type: string + target: + nullable: true + type: string + template: + title: Template + type: string + isEnabled: + title: Isenabled + type: boolean + type: + default: uxi/service-test + title: Type + type: string + required: + - category + - id + - isEnabled + - name + - target + - template + title: ServiceTestsListItem + type: object + ServiceTestsListResponse: + example: + next: next + count: 0 + items: + - template: template + isEnabled: true + name: name + id: id + category: category + type: uxi/service-test + target: target + - template: template + isEnabled: true + name: name + id: id + category: category + type: uxi/service-test + target: target + properties: + items: + items: + $ref: '#/components/schemas/ServiceTestsListItem' + title: Items + type: array + count: + title: Count + type: integer + next: + nullable: true + type: string + required: + - count + - items + - next + title: ServiceTestsListResponse + type: object WiredNetworksItem: example: createdAt: 2000-01-23T04:56:07.000+00:00 diff --git a/pkg/config-api-client/api_configuration.go b/pkg/config-api-client/api_configuration.go index b61bf49e..522e5056 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ @@ -273,11 +273,136 @@ func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentUxiV1alpha1SensorGr return localVarReturnValue, localVarHTTPResponse, nil } +type ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + id string +} + +func (r ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r) +} + +/* +DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete Delete Service Test Group Assignment + +Delete a service test group assignment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest +*/ +func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest { + return ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return interface{} +func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue interface{} + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/uxi/v1alpha1/service-test-group-assignments/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode >= 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string - cursor *string + next *string limit *int32 } @@ -286,8 +411,8 @@ func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Id(id string) ApiGet return r } -func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Cursor(cursor string) ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest { - r.cursor = &cursor +func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Next(next string) ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest { + r.next = &next return r } @@ -340,8 +465,8 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1NetworkGroupAssignmentsGetExecut if r.id != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") @@ -428,7 +553,7 @@ type ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string - cursor *string + next *string limit *int32 } @@ -437,8 +562,8 @@ func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Id(id string) ApiGetU return r } -func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Cursor(cursor string) ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest { - r.cursor = &cursor +func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Next(next string) ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest { + r.next = &next return r } @@ -491,8 +616,8 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorGroupAssignmentsGetExecute if r.id != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") @@ -579,7 +704,7 @@ type ApiGetUxiV1alpha1SensorsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string - cursor *string + next *string limit *int32 } @@ -588,8 +713,8 @@ func (r ApiGetUxiV1alpha1SensorsGetRequest) Id(id string) ApiGetUxiV1alpha1Senso return r } -func (r ApiGetUxiV1alpha1SensorsGetRequest) Cursor(cursor string) ApiGetUxiV1alpha1SensorsGetRequest { - r.cursor = &cursor +func (r ApiGetUxiV1alpha1SensorsGetRequest) Next(next string) ApiGetUxiV1alpha1SensorsGetRequest { + r.next = &next return r } @@ -642,8 +767,8 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorsGetExecute(r ApiGetUxiV1a if r.id != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") @@ -730,7 +855,7 @@ type ApiGetUxiV1alpha1WiredNetworksGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string - cursor *string + next *string limit *int32 } @@ -739,8 +864,8 @@ func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Id(id string) ApiGetUxiV1alpha return r } -func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Cursor(cursor string) ApiGetUxiV1alpha1WiredNetworksGetRequest { - r.cursor = &cursor +func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Next(next string) ApiGetUxiV1alpha1WiredNetworksGetRequest { + r.next = &next return r } @@ -793,8 +918,8 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WiredNetworksGetExecute(r ApiGet if r.id != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") @@ -881,7 +1006,7 @@ type ApiGetUxiV1alpha1WirelessNetworksGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string - cursor *string + next *string limit *int32 } @@ -890,8 +1015,8 @@ func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Id(id string) ApiGetUxiV1al return r } -func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Cursor(cursor string) ApiGetUxiV1alpha1WirelessNetworksGetRequest { - r.cursor = &cursor +func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Next(next string) ApiGetUxiV1alpha1WirelessNetworksGetRequest { + r.next = &next return r } @@ -944,8 +1069,8 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WirelessNetworksGetExecute(r Api if r.id != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") @@ -1157,7 +1282,7 @@ type ApiGroupsGetUxiV1alpha1GroupsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string - cursor *string + next *string limit *int32 } @@ -1166,8 +1291,8 @@ func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Id(id string) ApiGroupsGetUxiV1 return r } -func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Cursor(cursor string) ApiGroupsGetUxiV1alpha1GroupsGetRequest { - r.cursor = &cursor +func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Next(next string) ApiGroupsGetUxiV1alpha1GroupsGetRequest { + r.next = &next return r } @@ -1220,8 +1345,8 @@ func (a *ConfigurationAPIService) GroupsGetUxiV1alpha1GroupsGetExecute(r ApiGrou if r.id != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") } - if r.cursor != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") @@ -1967,3 +2092,154 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1ServiceTestGroupAssignmentsPost return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + id *string + next *string + limit *int32 +} + +func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Id(id string) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { + r.id = &id + return r +} + +func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Next(next string) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { + r.next = &next + return r +} + +func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Limit(limit int32) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { + r.limit = &limit + return r +} + +func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Execute() (*ServiceTestsListResponse, *http.Response, error) { + return r.ApiService.ServiceTestsGetUxiV1alpha1ServiceTestsGetExecute(r) +} + +/* +ServiceTestsGetUxiV1alpha1ServiceTestsGet Service Tests Get + +Lists service-tests matching provided criteria + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest +*/ +func (a *ConfigurationAPIService) ServiceTestsGetUxiV1alpha1ServiceTestsGet(ctx context.Context) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { + return ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return ServiceTestsListResponse +func (a *ConfigurationAPIService) ServiceTestsGetUxiV1alpha1ServiceTestsGetExecute(r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) (*ServiceTestsListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTestsListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestsGetUxiV1alpha1ServiceTestsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/uxi/v1alpha1/service-tests" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "form", "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "form", "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } else { + var defaultValue int32 = 50 + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode >= 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/pkg/config-api-client/client.go b/pkg/config-api-client/client.go index ebd0ae7f..b30f45a5 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Configuration Api API v2.6.0 +// APIClient manages communication with the Configuration Api API v2.9.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 61189149..78ebc553 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/docs/ConfigurationAPI.md b/pkg/config-api-client/docs/ConfigurationAPI.md index b5c44d41..0a09224a 100644 --- a/pkg/config-api-client/docs/ConfigurationAPI.md +++ b/pkg/config-api-client/docs/ConfigurationAPI.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete) | **Delete** /uxi/v1alpha1/network-group-assignments/{id} | Delete Network Group Assignment [**DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete) | **Delete** /uxi/v1alpha1/sensor-group-assignments/{id} | Delete Sensor Group Assignment +[**DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete) | **Delete** /uxi/v1alpha1/service-test-group-assignments/{id} | Delete Service Test Group Assignment [**GetUxiV1alpha1NetworkGroupAssignmentsGet**](ConfigurationAPI.md#GetUxiV1alpha1NetworkGroupAssignmentsGet) | **Get** /uxi/v1alpha1/network-group-assignments | Get [**GetUxiV1alpha1SensorGroupAssignmentsGet**](ConfigurationAPI.md#GetUxiV1alpha1SensorGroupAssignmentsGet) | **Get** /uxi/v1alpha1/sensor-group-assignments | Get [**GetUxiV1alpha1SensorsGet**](ConfigurationAPI.md#GetUxiV1alpha1SensorsGet) | **Get** /uxi/v1alpha1/sensors | Get @@ -18,6 +19,7 @@ Method | HTTP request | Description [**PostUxiV1alpha1NetworkGroupAssignmentsPost**](ConfigurationAPI.md#PostUxiV1alpha1NetworkGroupAssignmentsPost) | **Post** /uxi/v1alpha1/network-group-assignments | Post [**PostUxiV1alpha1SensorGroupAssignmentsPost**](ConfigurationAPI.md#PostUxiV1alpha1SensorGroupAssignmentsPost) | **Post** /uxi/v1alpha1/sensor-group-assignments | Post [**PostUxiV1alpha1ServiceTestGroupAssignmentsPost**](ConfigurationAPI.md#PostUxiV1alpha1ServiceTestGroupAssignmentsPost) | **Post** /uxi/v1alpha1/service-test-group-assignments | Post +[**ServiceTestsGetUxiV1alpha1ServiceTestsGet**](ConfigurationAPI.md#ServiceTestsGetUxiV1alpha1ServiceTestsGet) | **Get** /uxi/v1alpha1/service-tests | Service Tests Get @@ -161,9 +163,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete + +> interface{} DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, id).Execute() + +Delete Service Test Group Assignment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**interface{}** + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GetUxiV1alpha1NetworkGroupAssignmentsGet -> NetworkGroupAssignmentsResponse GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx).Id(id).Cursor(cursor).Limit(limit).Execute() +> NetworkGroupAssignmentsResponse GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -183,12 +255,12 @@ import ( func main() { id := "id_example" // string | (optional) - cursor := "cursor_example" // string | (optional) + next := "next_example" // string | (optional) limit := int32(56) // int32 | (optional) (default to 50) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()).Id(id).Cursor(cursor).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1NetworkGroupAssignmentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -210,7 +282,7 @@ Other parameters are passed through a pointer to a apiGetUxiV1alpha1NetworkGroup Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string** | | - **cursor** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -233,7 +305,7 @@ Name | Type | Description | Notes ## GetUxiV1alpha1SensorGroupAssignmentsGet -> SensorGroupAssignmentsResponse GetUxiV1alpha1SensorGroupAssignmentsGet(ctx).Id(id).Cursor(cursor).Limit(limit).Execute() +> SensorGroupAssignmentsResponse GetUxiV1alpha1SensorGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -253,12 +325,12 @@ import ( func main() { id := "id_example" // string | (optional) - cursor := "cursor_example" // string | (optional) + next := "next_example" // string | (optional) limit := int32(56) // int32 | (optional) (default to 50) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1SensorGroupAssignmentsGet(context.Background()).Id(id).Cursor(cursor).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1SensorGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1SensorGroupAssignmentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -280,7 +352,7 @@ Other parameters are passed through a pointer to a apiGetUxiV1alpha1SensorGroupA Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string** | | - **cursor** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -303,7 +375,7 @@ Name | Type | Description | Notes ## GetUxiV1alpha1SensorsGet -> SensorsResponse GetUxiV1alpha1SensorsGet(ctx).Id(id).Cursor(cursor).Limit(limit).Execute() +> SensorsResponse GetUxiV1alpha1SensorsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -323,12 +395,12 @@ import ( func main() { id := "id_example" // string | (optional) - cursor := "cursor_example" // string | (optional) + next := "next_example" // string | (optional) limit := int32(56) // int32 | (optional) (default to 50) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1SensorsGet(context.Background()).Id(id).Cursor(cursor).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1SensorsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1SensorsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -350,7 +422,7 @@ Other parameters are passed through a pointer to a apiGetUxiV1alpha1SensorsGetRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string** | | - **cursor** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -373,7 +445,7 @@ Name | Type | Description | Notes ## GetUxiV1alpha1WiredNetworksGet -> WiredNetworksResponse GetUxiV1alpha1WiredNetworksGet(ctx).Id(id).Cursor(cursor).Limit(limit).Execute() +> WiredNetworksResponse GetUxiV1alpha1WiredNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -393,12 +465,12 @@ import ( func main() { id := "id_example" // string | (optional) - cursor := "cursor_example" // string | (optional) + next := "next_example" // string | (optional) limit := int32(56) // int32 | (optional) (default to 50) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1WiredNetworksGet(context.Background()).Id(id).Cursor(cursor).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1WiredNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1WiredNetworksGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -420,7 +492,7 @@ Other parameters are passed through a pointer to a apiGetUxiV1alpha1WiredNetwork Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string** | | - **cursor** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -443,7 +515,7 @@ Name | Type | Description | Notes ## GetUxiV1alpha1WirelessNetworksGet -> WirelessNetworksResponse GetUxiV1alpha1WirelessNetworksGet(ctx).Id(id).Cursor(cursor).Limit(limit).Execute() +> WirelessNetworksResponse GetUxiV1alpha1WirelessNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -463,12 +535,12 @@ import ( func main() { id := "id_example" // string | (optional) - cursor := "cursor_example" // string | (optional) + next := "next_example" // string | (optional) limit := int32(56) // int32 | (optional) (default to 50) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1WirelessNetworksGet(context.Background()).Id(id).Cursor(cursor).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1WirelessNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1WirelessNetworksGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -490,7 +562,7 @@ Other parameters are passed through a pointer to a apiGetUxiV1alpha1WirelessNetw Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string** | | - **cursor** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -583,7 +655,7 @@ Name | Type | Description | Notes ## GroupsGetUxiV1alpha1GroupsGet -> GroupsGetResponse GroupsGetUxiV1alpha1GroupsGet(ctx).Id(id).Cursor(cursor).Limit(limit).Execute() +> GroupsGetResponse GroupsGetUxiV1alpha1GroupsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Groups Get @@ -603,12 +675,12 @@ import ( func main() { id := "id_example" // string | (optional) - cursor := "cursor_example" // string | (optional) + next := "next_example" // string | (optional) limit := int32(56) // int32 | (optional) (default to 50) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsGetUxiV1alpha1GroupsGet(context.Background()).Id(id).Cursor(cursor).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsGetUxiV1alpha1GroupsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsGetUxiV1alpha1GroupsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -630,7 +702,7 @@ Other parameters are passed through a pointer to a apiGroupsGetUxiV1alpha1Groups Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string** | | - **cursor** | **string** | | + **next** | **string** | | **limit** | **int32** | | [default to 50] ### Return type @@ -986,3 +1058,73 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## ServiceTestsGetUxiV1alpha1ServiceTestsGet + +> ServiceTestsListResponse ServiceTestsGetUxiV1alpha1ServiceTestsGet(ctx).Id(id).Next(next).Limit(limit).Execute() + +Service Tests Get + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" +) + +func main() { + id := "id_example" // string | (optional) + next := "next_example" // string | (optional) + limit := int32(56) // int32 | (optional) (default to 50) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConfigurationAPI.ServiceTestsGetUxiV1alpha1ServiceTestsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestsGetUxiV1alpha1ServiceTestsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ServiceTestsGetUxiV1alpha1ServiceTestsGet`: ServiceTestsListResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestsGetUxiV1alpha1ServiceTestsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | | + **next** | **string** | | + **limit** | **int32** | | [default to 50] + +### Return type + +[**ServiceTestsListResponse**](ServiceTestsListResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/pkg/config-api-client/docs/ServiceTestsListItem.md b/pkg/config-api-client/docs/ServiceTestsListItem.md new file mode 100644 index 00000000..68d82fc0 --- /dev/null +++ b/pkg/config-api-client/docs/ServiceTestsListItem.md @@ -0,0 +1,192 @@ +# ServiceTestsListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Category** | **string** | | +**Name** | **string** | | +**Target** | **NullableString** | | +**Template** | **string** | | +**IsEnabled** | **bool** | | +**Type** | Pointer to **string** | | [optional] [default to "uxi/service-test"] + +## Methods + +### NewServiceTestsListItem + +`func NewServiceTestsListItem(id string, category string, name string, target NullableString, template string, isEnabled bool, ) *ServiceTestsListItem` + +NewServiceTestsListItem instantiates a new ServiceTestsListItem 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 + +### NewServiceTestsListItemWithDefaults + +`func NewServiceTestsListItemWithDefaults() *ServiceTestsListItem` + +NewServiceTestsListItemWithDefaults instantiates a new ServiceTestsListItem 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 *ServiceTestsListItem) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ServiceTestsListItem) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ServiceTestsListItem) SetId(v string)` + +SetId sets Id field to given value. + + +### GetCategory + +`func (o *ServiceTestsListItem) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *ServiceTestsListItem) GetCategoryOk() (*string, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *ServiceTestsListItem) SetCategory(v string)` + +SetCategory sets Category field to given value. + + +### GetName + +`func (o *ServiceTestsListItem) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ServiceTestsListItem) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ServiceTestsListItem) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTarget + +`func (o *ServiceTestsListItem) GetTarget() string` + +GetTarget returns the Target field if non-nil, zero value otherwise. + +### GetTargetOk + +`func (o *ServiceTestsListItem) GetTargetOk() (*string, bool)` + +GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTarget + +`func (o *ServiceTestsListItem) SetTarget(v string)` + +SetTarget sets Target field to given value. + + +### SetTargetNil + +`func (o *ServiceTestsListItem) SetTargetNil(b bool)` + + SetTargetNil sets the value for Target to be an explicit nil + +### UnsetTarget +`func (o *ServiceTestsListItem) UnsetTarget()` + +UnsetTarget ensures that no value is present for Target, not even an explicit nil +### GetTemplate + +`func (o *ServiceTestsListItem) GetTemplate() string` + +GetTemplate returns the Template field if non-nil, zero value otherwise. + +### GetTemplateOk + +`func (o *ServiceTestsListItem) GetTemplateOk() (*string, bool)` + +GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplate + +`func (o *ServiceTestsListItem) SetTemplate(v string)` + +SetTemplate sets Template field to given value. + + +### GetIsEnabled + +`func (o *ServiceTestsListItem) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *ServiceTestsListItem) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *ServiceTestsListItem) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + + +### GetType + +`func (o *ServiceTestsListItem) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ServiceTestsListItem) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ServiceTestsListItem) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ServiceTestsListItem) HasType() bool` + +HasType 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) + + diff --git a/pkg/config-api-client/docs/ServiceTestsListResponse.md b/pkg/config-api-client/docs/ServiceTestsListResponse.md new file mode 100644 index 00000000..cd3545a4 --- /dev/null +++ b/pkg/config-api-client/docs/ServiceTestsListResponse.md @@ -0,0 +1,103 @@ +# ServiceTestsListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]ServiceTestsListItem**](ServiceTestsListItem.md) | | +**Count** | **int32** | | +**Next** | **NullableString** | | + +## Methods + +### NewServiceTestsListResponse + +`func NewServiceTestsListResponse(items []ServiceTestsListItem, count int32, next NullableString, ) *ServiceTestsListResponse` + +NewServiceTestsListResponse instantiates a new ServiceTestsListResponse 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 + +### NewServiceTestsListResponseWithDefaults + +`func NewServiceTestsListResponseWithDefaults() *ServiceTestsListResponse` + +NewServiceTestsListResponseWithDefaults instantiates a new ServiceTestsListResponse 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 *ServiceTestsListResponse) GetItems() []ServiceTestsListItem` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ServiceTestsListResponse) GetItemsOk() (*[]ServiceTestsListItem, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ServiceTestsListResponse) SetItems(v []ServiceTestsListItem)` + +SetItems sets Items field to given value. + + +### GetCount + +`func (o *ServiceTestsListResponse) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *ServiceTestsListResponse) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *ServiceTestsListResponse) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *ServiceTestsListResponse) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *ServiceTestsListResponse) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *ServiceTestsListResponse) SetNext(v string)` + +SetNext sets Next field to given value. + + +### SetNextNil + +`func (o *ServiceTestsListResponse) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *ServiceTestsListResponse) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil + +[[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/pkg/config-api-client/model_error_detail.go b/pkg/config-api-client/model_error_detail.go index 36ce8f5f..ed4298cd 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: 2.6.0 +API version: 2.9.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 c769ea1a..a4f3fa6d 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group.go b/pkg/config-api-client/model_group.go index 1e3021e2..1f761295 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: 2.6.0 +API version: 2.9.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 dab8f58d..34c03879 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: 2.6.0 +API version: 2.9.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 a0708f36..861c1678 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: 2.6.0 +API version: 2.9.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 4224a96e..ddd21f21 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: 2.6.0 +API version: 2.9.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 ea395490..7904894f 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: 2.6.0 +API version: 2.9.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 edf90462..ab7229d8 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: 2.6.0 +API version: 2.9.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 904e4068..52631a58 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_issue.go b/pkg/config-api-client/model_issue.go index d973be75..d36a24a5 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: 2.6.0 +API version: 2.9.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 8df6225f..3f54d2ab 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_network.go b/pkg/config-api-client/model_network.go index 403e5c7e..64ebc07e 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: 2.6.0 +API version: 2.9.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 19a19ea6..28fcefcd 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: 2.6.0 +API version: 2.9.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 5590376c..3e214a57 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: 2.6.0 +API version: 2.9.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 6c8cc337..f89c9d51 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: 2.6.0 +API version: 2.9.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 38f1ac18..77332e2c 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_parent.go b/pkg/config-api-client/model_parent.go index b34b959a..e96a6029 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor.go b/pkg/config-api-client/model_sensor.go index 88f2ec7c..a049063e 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: 2.6.0 +API version: 2.9.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 0dbbf46d..77ad9c2d 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: 2.6.0 +API version: 2.9.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 1a7f4731..91505897 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: 2.6.0 +API version: 2.9.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 2f0caa7c..9b75e5db 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: 2.6.0 +API version: 2.9.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 0365cecf..6c95b31c 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensor_item.go b/pkg/config-api-client/model_sensor_item.go index c6bdf486..a74df523 100644 --- a/pkg/config-api-client/model_sensor_item.go +++ b/pkg/config-api-client/model_sensor_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensors_response.go b/pkg/config-api-client/model_sensors_response.go index e3fde4b3..07746b91 100644 --- a/pkg/config-api-client/model_sensors_response.go +++ b/pkg/config-api-client/model_sensors_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.6.0 +API version: 2.9.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 c034c17b..37997f03 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: 2.6.0 +API version: 2.9.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 55d91846..ea46659b 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: 2.6.0 +API version: 2.9.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 11fb7656..9156d6ec 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_tests_list_item.go b/pkg/config-api-client/model_service_tests_list_item.go new file mode 100644 index 00000000..3249310d --- /dev/null +++ b/pkg/config-api-client/model_service_tests_list_item.go @@ -0,0 +1,339 @@ +/* +Configuration Api + +Nice description goes here + +API version: 2.9.0 +Contact: support@capenetworks.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package config_api_client + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ServiceTestsListItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceTestsListItem{} + +// ServiceTestsListItem struct for ServiceTestsListItem +type ServiceTestsListItem struct { + Id string `json:"id"` + Category string `json:"category"` + Name string `json:"name"` + Target NullableString `json:"target"` + Template string `json:"template"` + IsEnabled bool `json:"isEnabled"` + Type *string `json:"type,omitempty"` +} + +type _ServiceTestsListItem ServiceTestsListItem + +// NewServiceTestsListItem instantiates a new ServiceTestsListItem 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 NewServiceTestsListItem(id string, category string, name string, target NullableString, template string, isEnabled bool) *ServiceTestsListItem { + this := ServiceTestsListItem{} + this.Id = id + this.Category = category + this.Name = name + this.Target = target + this.Template = template + this.IsEnabled = isEnabled + var type_ string = "uxi/service-test" + this.Type = &type_ + return &this +} + +// NewServiceTestsListItemWithDefaults instantiates a new ServiceTestsListItem 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 NewServiceTestsListItemWithDefaults() *ServiceTestsListItem { + this := ServiceTestsListItem{} + var type_ string = "uxi/service-test" + this.Type = &type_ + return &this +} + +// GetId returns the Id field value +func (o *ServiceTestsListItem) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListItem) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ServiceTestsListItem) SetId(v string) { + o.Id = v +} + +// GetCategory returns the Category field value +func (o *ServiceTestsListItem) GetCategory() string { + if o == nil { + var ret string + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListItem) GetCategoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *ServiceTestsListItem) SetCategory(v string) { + o.Category = v +} + +// GetName returns the Name field value +func (o *ServiceTestsListItem) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListItem) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ServiceTestsListItem) SetName(v string) { + o.Name = v +} + +// GetTarget returns the Target field value +// If the value is explicit nil, the zero value for string will be returned +func (o *ServiceTestsListItem) GetTarget() string { + if o == nil || o.Target.Get() == nil { + var ret string + return ret + } + + return *o.Target.Get() +} + +// GetTargetOk returns a tuple with the Target field value +// 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 *ServiceTestsListItem) GetTargetOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Target.Get(), o.Target.IsSet() +} + +// SetTarget sets field value +func (o *ServiceTestsListItem) SetTarget(v string) { + o.Target.Set(&v) +} + +// GetTemplate returns the Template field value +func (o *ServiceTestsListItem) GetTemplate() string { + if o == nil { + var ret string + return ret + } + + return o.Template +} + +// GetTemplateOk returns a tuple with the Template field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListItem) GetTemplateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Template, true +} + +// SetTemplate sets field value +func (o *ServiceTestsListItem) SetTemplate(v string) { + o.Template = v +} + +// GetIsEnabled returns the IsEnabled field value +func (o *ServiceTestsListItem) GetIsEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListItem) GetIsEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsEnabled, true +} + +// SetIsEnabled sets field value +func (o *ServiceTestsListItem) SetIsEnabled(v bool) { + o.IsEnabled = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ServiceTestsListItem) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceTestsListItem) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ServiceTestsListItem) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *ServiceTestsListItem) SetType(v string) { + o.Type = &v +} + +func (o ServiceTestsListItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceTestsListItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["category"] = o.Category + toSerialize["name"] = o.Name + toSerialize["target"] = o.Target.Get() + toSerialize["template"] = o.Template + toSerialize["isEnabled"] = o.IsEnabled + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +func (o *ServiceTestsListItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "category", + "name", + "target", + "template", + "isEnabled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varServiceTestsListItem := _ServiceTestsListItem{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceTestsListItem) + + if err != nil { + return err + } + + *o = ServiceTestsListItem(varServiceTestsListItem) + + return err +} + +type NullableServiceTestsListItem struct { + value *ServiceTestsListItem + isSet bool +} + +func (v NullableServiceTestsListItem) Get() *ServiceTestsListItem { + return v.value +} + +func (v *NullableServiceTestsListItem) Set(val *ServiceTestsListItem) { + v.value = val + v.isSet = true +} + +func (v NullableServiceTestsListItem) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceTestsListItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceTestsListItem(val *ServiceTestsListItem) *NullableServiceTestsListItem { + return &NullableServiceTestsListItem{value: val, isSet: true} +} + +func (v NullableServiceTestsListItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceTestsListItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/config-api-client/model_service_tests_list_response.go b/pkg/config-api-client/model_service_tests_list_response.go new file mode 100644 index 00000000..579010f2 --- /dev/null +++ b/pkg/config-api-client/model_service_tests_list_response.go @@ -0,0 +1,215 @@ +/* +Configuration Api + +Nice description goes here + +API version: 2.9.0 +Contact: support@capenetworks.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package config_api_client + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ServiceTestsListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceTestsListResponse{} + +// ServiceTestsListResponse struct for ServiceTestsListResponse +type ServiceTestsListResponse struct { + Items []ServiceTestsListItem `json:"items"` + Count int32 `json:"count"` + Next NullableString `json:"next"` +} + +type _ServiceTestsListResponse ServiceTestsListResponse + +// NewServiceTestsListResponse instantiates a new ServiceTestsListResponse 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 NewServiceTestsListResponse(items []ServiceTestsListItem, count int32, next NullableString) *ServiceTestsListResponse { + this := ServiceTestsListResponse{} + this.Items = items + this.Count = count + this.Next = next + return &this +} + +// NewServiceTestsListResponseWithDefaults instantiates a new ServiceTestsListResponse 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 NewServiceTestsListResponseWithDefaults() *ServiceTestsListResponse { + this := ServiceTestsListResponse{} + return &this +} + +// GetItems returns the Items field value +func (o *ServiceTestsListResponse) GetItems() []ServiceTestsListItem { + if o == nil { + var ret []ServiceTestsListItem + return ret + } + + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListResponse) GetItemsOk() ([]ServiceTestsListItem, bool) { + if o == nil { + return nil, false + } + return o.Items, true +} + +// SetItems sets field value +func (o *ServiceTestsListResponse) SetItems(v []ServiceTestsListItem) { + o.Items = v +} + +// GetCount returns the Count field value +func (o *ServiceTestsListResponse) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *ServiceTestsListResponse) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *ServiceTestsListResponse) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value +// If the value is explicit nil, the zero value for string will be returned +func (o *ServiceTestsListResponse) GetNext() string { + if o == nil || o.Next.Get() == nil { + var ret string + return ret + } + + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value +// 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 *ServiceTestsListResponse) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// SetNext sets field value +func (o *ServiceTestsListResponse) SetNext(v string) { + o.Next.Set(&v) +} + +func (o ServiceTestsListResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceTestsListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["items"] = o.Items + toSerialize["count"] = o.Count + toSerialize["next"] = o.Next.Get() + return toSerialize, nil +} + +func (o *ServiceTestsListResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "items", + "count", + "next", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varServiceTestsListResponse := _ServiceTestsListResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varServiceTestsListResponse) + + if err != nil { + return err + } + + *o = ServiceTestsListResponse(varServiceTestsListResponse) + + return err +} + +type NullableServiceTestsListResponse struct { + value *ServiceTestsListResponse + isSet bool +} + +func (v NullableServiceTestsListResponse) Get() *ServiceTestsListResponse { + return v.value +} + +func (v *NullableServiceTestsListResponse) Set(val *ServiceTestsListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableServiceTestsListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceTestsListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceTestsListResponse(val *ServiceTestsListResponse) *NullableServiceTestsListResponse { + return &NullableServiceTestsListResponse{value: val, isSet: true} +} + +func (v NullableServiceTestsListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceTestsListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/config-api-client/model_wired_networks_item.go b/pkg/config-api-client/model_wired_networks_item.go index bb1a082b..40902dcb 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: 2.6.0 +API version: 2.9.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 92efe703..2221698d 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: 2.6.0 +API version: 2.9.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 d2d72241..95bed264 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: 2.6.0 +API version: 2.9.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 f78f2c05..b5d13a18 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/response.go b/pkg/config-api-client/response.go index 4b561457..07ca6771 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/test/api_configuration_test.go b/pkg/config-api-client/test/api_configuration_test.go index d3a2495b..e8bc99c6 100644 --- a/pkg/config-api-client/test/api_configuration_test.go +++ b/pkg/config-api-client/test/api_configuration_test.go @@ -24,7 +24,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { parent_uid := "parent_uid" gock.New(configuration.Scheme + "://" + configuration.Host). Get("/uxi/v1alpha1/groups"). - MatchParams(map[string]string{"id": "uid", "limit": "10", "cursor": "some-cursor"}). + MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ "items": []map[string]interface{}{ @@ -43,7 +43,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { GroupsGetUxiV1alpha1GroupsGet(context.Background()). Id("uid"). Limit(10). - Cursor("some-cursor"). + Next("some-cursor"). Execute() resourceType := "uxi/group" @@ -141,7 +141,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { t.Run("Test ConfigurationAPIService GetUxiV1alpha1SensorsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/uxi/v1alpha1/sensors"). - MatchParams(map[string]string{"id": "uid", "limit": "10", "cursor": "some-cursor"}). + MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ "items": []map[string]interface{}{ @@ -168,7 +168,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { GetUxiV1alpha1SensorsGet(context.Background()). Id("uid"). Limit(10). - Cursor("some-cursor"). + Next("some-cursor"). Execute() resourceType := "uxi/sensor" @@ -209,7 +209,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/uxi/v1alpha1/sensor-group-assignments"). - MatchParams(map[string]string{"id": "uid", "limit": "10", "cursor": "some-cursor"}). + MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ "items": []map[string]interface{}{ @@ -227,7 +227,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { GetUxiV1alpha1SensorGroupAssignmentsGet(context.Background()). Id("uid"). Limit(10). - Cursor("some-cursor"). + Next("some-cursor"). Execute() require.Nil(t, err) @@ -295,7 +295,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/uxi/v1alpha1/wired-networks"). - MatchParams(map[string]string{"id": "uid", "limit": "10", "cursor": "some-cursor"}). + MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ "items": []map[string]interface{}{ @@ -321,7 +321,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { GetUxiV1alpha1WiredNetworksGet(context.Background()). Id("uid"). Limit(10). - Cursor("some-cursor"). + Next("some-cursor"). Execute() security := "security" @@ -357,7 +357,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/uxi/v1alpha1/wireless-networks"). - MatchParams(map[string]string{"id": "uid", "limit": "10", "cursor": "some-cursor"}). + MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ "items": []map[string]interface{}{ @@ -385,7 +385,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { GetUxiV1alpha1WirelessNetworksGet(context.Background()). Id("uid"). Limit(10). - Cursor("some-cursor"). + Next("some-cursor"). Execute() security := "security" @@ -422,7 +422,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/uxi/v1alpha1/network-group-assignments"). - MatchParams(map[string]string{"id": "uid", "limit": "10", "cursor": "some-cursor"}). + MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ "items": []map[string]interface{}{ @@ -440,7 +440,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { GetUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()). Id("uid"). Limit(10). - Cursor("some-cursor"). + Next("some-cursor"). Execute() resourceType := "uxi/network-group-assignment" @@ -537,4 +537,18 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Type: &resourceType, }) }) + + t.Run("Test ConfigurationAPIService DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete", func(t *testing.T) { + + gock.New(configuration.Scheme + "://" + configuration.Host). + Delete("/uxi/v1alpha1/service-test-group-assignments/uid"). + Reply(204) + + _, httpRes, err := apiClient.ConfigurationAPI. + DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), "uid"). + Execute() + + require.Nil(t, err) + assert.Equal(t, 204, httpRes.StatusCode) + }) } diff --git a/pkg/config-api-client/utils.go b/pkg/config-api-client/utils.go index af01e25d..d388b59c 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: 2.6.0 +API version: 2.9.0 Contact: support@capenetworks.com */