diff --git a/pkg/config-api-client/.openapi-generator/FILES b/pkg/config-api-client/.openapi-generator/FILES index 5600c365..71636656 100644 --- a/pkg/config-api-client/.openapi-generator/FILES +++ b/pkg/config-api-client/.openapi-generator/FILES @@ -27,6 +27,8 @@ docs/SensorGroupAssignmentsItem.md docs/SensorGroupAssignmentsPostRequest.md docs/SensorGroupAssignmentsResponse.md docs/SensorItem.md +docs/SensorsPatchRequest.md +docs/SensorsPatchResponse.md docs/SensorsResponse.md docs/ServiceTest.md docs/ServiceTestGroupAssignmentsPostRequest.md @@ -62,6 +64,8 @@ model_sensor_group_assignments_item.go model_sensor_group_assignments_post_request.go model_sensor_group_assignments_response.go model_sensor_item.go +model_sensors_patch_request.go +model_sensors_patch_response.go model_sensors_response.go model_service_test_.go model_service_test_group_assignments_post_request.go diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index ec8c39eb..86b6339d 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: 3.0.0 +- API version: 4.0.0 - Package version: 1.0.0 - Generator version: 7.9.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -79,22 +79,23 @@ All URIs are relative to *https://api.capenetworks.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ConfigurationAPI* | [**DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deletenetworkgroupassignmentnetworkinguxiv1alpha1networkgroupassignmentsiddelete) | **Delete** /networking-uxi/v1alpha1/network-group-assignments/{id} | Delete Network Group Assignment -*ConfigurationAPI* | [**DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deletesensorgroupassignmentnetworkinguxiv1alpha1sensorgroupassignmentsiddelete) | **Delete** /networking-uxi/v1alpha1/sensor-group-assignments/{id} | Delete Sensor Group Assignment -*ConfigurationAPI* | [**DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deleteservicetestgroupassignmentnetworkinguxiv1alpha1servicetestgroupassignmentsiddelete) | **Delete** /networking-uxi/v1alpha1/service-test-group-assignments/{id} | Delete Service Test Group Assignment -*ConfigurationAPI* | [**GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet**](docs/ConfigurationAPI.md#getnetworkinguxiv1alpha1networkgroupassignmentsget) | **Get** /networking-uxi/v1alpha1/network-group-assignments | Get -*ConfigurationAPI* | [**GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet**](docs/ConfigurationAPI.md#getnetworkinguxiv1alpha1sensorgroupassignmentsget) | **Get** /networking-uxi/v1alpha1/sensor-group-assignments | Get -*ConfigurationAPI* | [**GetNetworkingUxiV1alpha1SensorsGet**](docs/ConfigurationAPI.md#getnetworkinguxiv1alpha1sensorsget) | **Get** /networking-uxi/v1alpha1/sensors | Get -*ConfigurationAPI* | [**GetNetworkingUxiV1alpha1WiredNetworksGet**](docs/ConfigurationAPI.md#getnetworkinguxiv1alpha1wirednetworksget) | **Get** /networking-uxi/v1alpha1/wired-networks | Get -*ConfigurationAPI* | [**GetNetworkingUxiV1alpha1WirelessNetworksGet**](docs/ConfigurationAPI.md#getnetworkinguxiv1alpha1wirelessnetworksget) | **Get** /networking-uxi/v1alpha1/wireless-networks | Get -*ConfigurationAPI* | [**GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete**](docs/ConfigurationAPI.md#groupsdeletenetworkinguxiv1alpha1groupsgroupuiddelete) | **Delete** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Delete -*ConfigurationAPI* | [**GroupsGetNetworkingUxiV1alpha1GroupsGet**](docs/ConfigurationAPI.md#groupsgetnetworkinguxiv1alpha1groupsget) | **Get** /networking-uxi/v1alpha1/groups | Groups Get -*ConfigurationAPI* | [**GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch**](docs/ConfigurationAPI.md#groupspatchnetworkinguxiv1alpha1groupsgroupuidpatch) | **Patch** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Patch -*ConfigurationAPI* | [**GroupsPostNetworkingUxiV1alpha1GroupsPost**](docs/ConfigurationAPI.md#groupspostnetworkinguxiv1alpha1groupspost) | **Post** /networking-uxi/v1alpha1/groups | Groups Post -*ConfigurationAPI* | [**PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost**](docs/ConfigurationAPI.md#postnetworkinguxiv1alpha1networkgroupassignmentspost) | **Post** /networking-uxi/v1alpha1/network-group-assignments | Post -*ConfigurationAPI* | [**PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost**](docs/ConfigurationAPI.md#postnetworkinguxiv1alpha1sensorgroupassignmentspost) | **Post** /networking-uxi/v1alpha1/sensor-group-assignments | Post -*ConfigurationAPI* | [**PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost**](docs/ConfigurationAPI.md#postnetworkinguxiv1alpha1servicetestgroupassignmentspost) | **Post** /networking-uxi/v1alpha1/service-test-group-assignments | Post -*ConfigurationAPI* | [**ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet**](docs/ConfigurationAPI.md#servicetestsgetnetworkinguxiv1alpha1servicetestsget) | **Get** /networking-uxi/v1alpha1/service-tests | Service Tests Get +*ConfigurationAPI* | [**GroupsDelete**](docs/ConfigurationAPI.md#groupsdelete) | **Delete** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Delete +*ConfigurationAPI* | [**GroupsGet**](docs/ConfigurationAPI.md#groupsget) | **Get** /networking-uxi/v1alpha1/groups | Groups Get +*ConfigurationAPI* | [**GroupsPatch**](docs/ConfigurationAPI.md#groupspatch) | **Patch** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Patch +*ConfigurationAPI* | [**GroupsPost**](docs/ConfigurationAPI.md#groupspost) | **Post** /networking-uxi/v1alpha1/groups | Groups Post +*ConfigurationAPI* | [**NetworkGroupAssignmentsDelete**](docs/ConfigurationAPI.md#networkgroupassignmentsdelete) | **Delete** /networking-uxi/v1alpha1/network-group-assignments/{id} | Network Group Assignments Delete +*ConfigurationAPI* | [**NetworkGroupAssignmentsGet**](docs/ConfigurationAPI.md#networkgroupassignmentsget) | **Get** /networking-uxi/v1alpha1/network-group-assignments | Network Group Assignments Get +*ConfigurationAPI* | [**NetworkGroupAssignmentsPost**](docs/ConfigurationAPI.md#networkgroupassignmentspost) | **Post** /networking-uxi/v1alpha1/network-group-assignments | Network Group Assignments Post +*ConfigurationAPI* | [**SensorGroupAssignmentsDelete**](docs/ConfigurationAPI.md#sensorgroupassignmentsdelete) | **Delete** /networking-uxi/v1alpha1/sensor-group-assignments/{id} | Sensor Group Assignments Delete +*ConfigurationAPI* | [**SensorGroupAssignmentsGet**](docs/ConfigurationAPI.md#sensorgroupassignmentsget) | **Get** /networking-uxi/v1alpha1/sensor-group-assignments | Sensor Group Assignments Get +*ConfigurationAPI* | [**SensorGroupAssignmentsPost**](docs/ConfigurationAPI.md#sensorgroupassignmentspost) | **Post** /networking-uxi/v1alpha1/sensor-group-assignments | Sensor Group Assignments Post +*ConfigurationAPI* | [**SensorsGet**](docs/ConfigurationAPI.md#sensorsget) | **Get** /networking-uxi/v1alpha1/sensors | Sensors Get +*ConfigurationAPI* | [**SensorsPatch**](docs/ConfigurationAPI.md#sensorspatch) | **Patch** /networking-uxi/v1alpha1/sensors/{sensor_uid} | Sensors Patch +*ConfigurationAPI* | [**ServiceTestGroupAssignmentsDelete**](docs/ConfigurationAPI.md#servicetestgroupassignmentsdelete) | **Delete** /networking-uxi/v1alpha1/service-test-group-assignments/{id} | Service Test Group Assignments Delete +*ConfigurationAPI* | [**ServiceTestGroupAssignmentsPost**](docs/ConfigurationAPI.md#servicetestgroupassignmentspost) | **Post** /networking-uxi/v1alpha1/service-test-group-assignments | Service Test Group Assignments Post +*ConfigurationAPI* | [**ServiceTestsGet**](docs/ConfigurationAPI.md#servicetestsget) | **Get** /networking-uxi/v1alpha1/service-tests | Service Tests Get +*ConfigurationAPI* | [**WiredNetworksGet**](docs/ConfigurationAPI.md#wirednetworksget) | **Get** /networking-uxi/v1alpha1/wired-networks | Wired Networks Get +*ConfigurationAPI* | [**WirelessNetworksGet**](docs/ConfigurationAPI.md#wirelessnetworksget) | **Get** /networking-uxi/v1alpha1/wireless-networks | Wireless Networks Get ## Documentation For Models @@ -122,6 +123,8 @@ Class | Method | HTTP request | Description - [SensorGroupAssignmentsPostRequest](docs/SensorGroupAssignmentsPostRequest.md) - [SensorGroupAssignmentsResponse](docs/SensorGroupAssignmentsResponse.md) - [SensorItem](docs/SensorItem.md) + - [SensorsPatchRequest](docs/SensorsPatchRequest.md) + - [SensorsPatchResponse](docs/SensorsPatchResponse.md) - [SensorsResponse](docs/SensorsResponse.md) - [ServiceTest](docs/ServiceTest.md) - [ServiceTestGroupAssignmentsPostRequest](docs/ServiceTestGroupAssignmentsPostRequest.md) diff --git a/pkg/config-api-client/api/.openapi.source.yaml b/pkg/config-api-client/api/.openapi.source.yaml index 98e0fdd5..0a409223 100644 --- a/pkg/config-api-client/api/.openapi.source.yaml +++ b/pkg/config-api-client/api/.openapi.source.yaml @@ -9,14 +9,14 @@ info: email: support@capenetworks.com license: name: No idea, but we need something - version: 3.0.0 + version: 4.0.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io paths: /networking-uxi/v1alpha1/groups/{group_uid}: delete: - operationId: groups_delete_networking_uxi_v1alpha1_groups__group_uid__delete + operationId: groups_delete summary: Groups Delete description: Delete an existing group. parameters: @@ -54,7 +54,7 @@ paths: - v1 - groups patch: - operationId: groups_patch_networking_uxi_v1alpha1_groups__group_uid__patch + operationId: groups_patch summary: Groups Patch description: Update an existing group. parameters: @@ -65,11 +65,17 @@ paths: type: string title: Group Uid requestBody: - required: true content: - application/json: + application/merge-patch+json: schema: - $ref: '#/components/schemas/GroupsPatchRequest' + type: object + properties: + name: + type: string + title: Name + required: + - name + title: GroupsPatchRequest responses: '200': description: Successful Response @@ -98,7 +104,7 @@ paths: - groups /networking-uxi/v1alpha1/groups: get: - operationId: groups_get_networking_uxi_v1alpha1_groups_get + operationId: groups_get summary: Groups Get description: Lists groups matching provided criteria parameters: @@ -155,10 +161,9 @@ paths: - groups x-stability-level: alpha post: - operationId: groups_post_networking_uxi_v1alpha1_groups_post + operationId: groups_post summary: Groups Post - description: >- - Create a new group with the group identified in `parent_uid` as its parent + description: Create a new group with the group identified in `parentId` as its parent requestBody: required: true content: @@ -194,9 +199,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/network-group-assignments/{id}: delete: - operationId: >- - delete_network_group_assignment_networking_uxi_v1alpha1_network_group_assignments__id__delete - summary: Delete Network Group Assignment + operationId: network_group_assignments_delete + summary: Network Group Assignments Delete description: Delete a network group assignment parameters: - name: id @@ -235,8 +239,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/network-group-assignments: get: - operationId: get_networking_uxi_v1alpha1_network_group_assignments_get - summary: Get + operationId: network_group_assignments_get + summary: Network Group Assignments Get description: Get a list of network group assignments parameters: - name: id @@ -290,8 +294,8 @@ paths: - network-group-assignments x-stability-level: alpha post: - operationId: post_networking_uxi_v1alpha1_network_group_assignments_post - summary: Post + operationId: network_group_assignments_post + summary: Network Group Assignments Post description: Create a network group assignment requestBody: required: true @@ -328,8 +332,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/sensor-group-assignments: get: - operationId: get_networking_uxi_v1alpha1_sensor_group_assignments_get - summary: Get + operationId: sensor_group_assignments_get + summary: Sensor Group Assignments Get description: Get a list of sensor group assignments parameters: - name: id @@ -383,8 +387,8 @@ paths: - sensor-group-assignments x-stability-level: alpha post: - operationId: post_networking_uxi_v1alpha1_sensor_group_assignments_post - summary: Post + operationId: sensor_group_assignments_post + summary: Sensor Group Assignments Post description: Create sensor group assignment requestBody: required: true @@ -421,9 +425,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/sensor-group-assignments/{id}: delete: - operationId: >- - delete_sensor_group_assignment_networking_uxi_v1alpha1_sensor_group_assignments__id__delete - summary: Delete Sensor Group Assignment + operationId: sensor_group_assignments_delete + summary: Sensor Group Assignments Delete description: Delete a sensor group assignment parameters: - name: id @@ -462,8 +465,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/sensors: get: - operationId: get_networking_uxi_v1alpha1_sensors_get - summary: Get + operationId: sensors_get + summary: Sensors Get description: Get a list of sensors parameters: - name: id @@ -518,11 +521,54 @@ paths: - v1alpha1 - sensors x-stability-level: alpha + /networking-uxi/v1alpha1/sensors/{sensor_uid}: + patch: + operationId: sensors_patch + summary: Sensors Patch + description: Update an existing sensor. + parameters: + - name: sensor_uid + in: path + required: true + schema: + type: string + title: Sensor Uid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SensorsPatchRequest' + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/SensorsPatchResponse' + 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 + - v1 + - sensors /networking-uxi/v1alpha1/service-test-group-assignments/{id}: delete: - operationId: >- - delete_service_test_group_assignment_networking_uxi_v1alpha1_service_test_group_assignments__id__delete - summary: Delete Service Test Group Assignment + operationId: service_test_group_assignments_delete + summary: Service Test Group Assignments Delete description: Delete a service test group assignment parameters: - name: id @@ -561,8 +607,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/service-test-group-assignments: post: - operationId: post_networking_uxi_v1alpha1_service_test_group_assignments_post - summary: Post + operationId: service_test_group_assignments_post + summary: Service Test Group Assignments Post description: Create a service-test group assignment requestBody: required: true @@ -599,7 +645,7 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/service-tests: get: - operationId: service_tests_get_networking_uxi_v1alpha1_service_tests_get + operationId: service_tests_get summary: Service Tests Get description: Lists service-tests matching provided criteria parameters: @@ -657,8 +703,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/wired-networks: get: - operationId: get_networking_uxi_v1alpha1_wired_networks_get - summary: Get + operationId: wired_networks_get + summary: Wired Networks Get description: Get a list of wired networks parameters: - name: id @@ -713,8 +759,8 @@ paths: x-stability-level: alpha /networking-uxi/v1alpha1/wireless-networks: get: - operationId: get_networking_uxi_v1alpha1_wireless_networks_get - summary: Get + operationId: wireless_networks_get + summary: Wireless Networks Get description: Get a list of wireless networks parameters: - name: id @@ -870,15 +916,6 @@ components: - count - next title: GroupsGetResponse - GroupsPatchRequest: - type: object - properties: - name: - type: string - title: Name - required: - - name - title: GroupsPatchRequest GroupsPatchResponse: type: object properties: @@ -911,6 +948,8 @@ components: parentId: anyOf: - type: string + maxLength: 12 + minLength: 12 nullable: true title: Parentid name: @@ -1219,6 +1258,97 @@ components: - pcapMode - type title: SensorItem + SensorsPatchRequest: + type: object + properties: + name: + type: string + title: Name + address_note: + anyOf: + - type: string + nullable: true + title: Address Note + notes: + anyOf: + - type: string + nullable: true + title: Notes + pcap_mode: + type: string + title: Pcap Mode + title: SensorsPatchRequest + SensorsPatchResponse: + type: object + properties: + id: + type: string + title: Id + serial: + type: string + title: Serial + name: + type: string + title: Name + modelNumber: + anyOf: + - type: string + nullable: true + title: Modelnumber + wifiMacAddress: + anyOf: + - type: string + nullable: true + title: Wifimacaddress + ethernetMacAddress: + anyOf: + - type: string + nullable: true + title: Ethernetmacaddress + addressNote: + anyOf: + - type: string + nullable: true + title: Addressnote + longitude: + anyOf: + - type: number + nullable: true + title: Longitude + latitude: + anyOf: + - type: number + nullable: true + title: Latitude + notes: + anyOf: + - type: string + nullable: true + title: Notes + pcapMode: + anyOf: + - type: string + nullable: true + title: Pcapmode + type: + type: string + enum: + - networking-uxi/sensor + title: Type + required: + - id + - serial + - name + - modelNumber + - wifiMacAddress + - ethernetMacAddress + - addressNote + - longitude + - latitude + - notes + - pcapMode + - type + title: SensorsPatchResponse SensorsResponse: type: object properties: diff --git a/pkg/config-api-client/api/openapi.yaml b/pkg/config-api-client/api/openapi.yaml index 9801d3c8..fb549494 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: 3.0.0 + version: 4.0.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -31,7 +31,7 @@ paths: /networking-uxi/v1alpha1/groups/{group_uid}: delete: description: Delete an existing group. - operationId: groups_delete_networking_uxi_v1alpha1_groups__group_uid__delete + operationId: groups_delete parameters: - explode: false in: path @@ -68,7 +68,7 @@ paths: - configuration patch: description: Update an existing group. - operationId: groups_patch_networking_uxi_v1alpha1_groups__group_uid__patch + operationId: groups_patch parameters: - explode: false in: path @@ -80,10 +80,9 @@ paths: style: simple requestBody: content: - application/json: + application/merge-patch+json: schema: $ref: '#/components/schemas/GroupsPatchRequest' - required: true responses: "200": content: @@ -111,7 +110,7 @@ paths: /networking-uxi/v1alpha1/groups: get: description: Lists groups matching provided criteria - operationId: groups_get_networking_uxi_v1alpha1_groups_get + operationId: groups_get parameters: - explode: true in: query @@ -166,9 +165,9 @@ paths: - configuration x-stability-level: alpha post: - description: Create a new group with the group identified in `parent_uid` as - its parent - operationId: groups_post_networking_uxi_v1alpha1_groups_post + description: Create a new group with the group identified in `parentId` as its + parent + operationId: groups_post requestBody: content: application/json: @@ -203,7 +202,7 @@ paths: /networking-uxi/v1alpha1/network-group-assignments/{id}: delete: description: Delete a network group assignment - operationId: delete_network_group_assignment_networking_uxi_v1alpha1_network_group_assignments__id__delete + operationId: network_group_assignments_delete parameters: - explode: false in: path @@ -235,14 +234,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Delete Network Group Assignment + summary: Network Group Assignments Delete tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/network-group-assignments: get: description: Get a list of network group assignments - operationId: get_networking_uxi_v1alpha1_network_group_assignments_get + operationId: network_group_assignments_get parameters: - explode: true in: query @@ -290,13 +289,13 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Get + summary: Network Group Assignments Get tags: - configuration x-stability-level: alpha post: description: Create a network group assignment - operationId: post_networking_uxi_v1alpha1_network_group_assignments_post + operationId: network_group_assignments_post requestBody: content: application/json: @@ -324,14 +323,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Post + summary: Network Group Assignments Post tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/sensor-group-assignments: get: description: Get a list of sensor group assignments - operationId: get_networking_uxi_v1alpha1_sensor_group_assignments_get + operationId: sensor_group_assignments_get parameters: - explode: true in: query @@ -379,13 +378,13 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Get + summary: Sensor Group Assignments Get tags: - configuration x-stability-level: alpha post: description: Create sensor group assignment - operationId: post_networking_uxi_v1alpha1_sensor_group_assignments_post + operationId: sensor_group_assignments_post requestBody: content: application/json: @@ -413,14 +412,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Post + summary: Sensor Group Assignments Post tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/sensor-group-assignments/{id}: delete: description: Delete a sensor group assignment - operationId: delete_sensor_group_assignment_networking_uxi_v1alpha1_sensor_group_assignments__id__delete + operationId: sensor_group_assignments_delete parameters: - explode: false in: path @@ -452,14 +451,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Delete Sensor Group Assignment + summary: Sensor Group Assignments Delete tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/sensors: get: description: Get a list of sensors - operationId: get_networking_uxi_v1alpha1_sensors_get + operationId: sensors_get parameters: - explode: true in: query @@ -509,14 +508,57 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Get + summary: Sensors Get tags: - configuration x-stability-level: alpha + /networking-uxi/v1alpha1/sensors/{sensor_uid}: + patch: + description: Update an existing sensor. + operationId: sensors_patch + parameters: + - explode: false + in: path + name: sensor_uid + required: true + schema: + title: Sensor Uid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SensorsPatchRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SensorsPatchResponse' + 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: Sensors Patch + tags: + - configuration /networking-uxi/v1alpha1/service-test-group-assignments/{id}: delete: description: Delete a service test group assignment - operationId: delete_service_test_group_assignment_networking_uxi_v1alpha1_service_test_group_assignments__id__delete + operationId: service_test_group_assignments_delete parameters: - explode: false in: path @@ -548,14 +590,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Delete Service Test Group Assignment + summary: Service Test Group Assignments Delete tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/service-test-group-assignments: post: description: Create a service-test group assignment - operationId: post_networking_uxi_v1alpha1_service_test_group_assignments_post + operationId: service_test_group_assignments_post requestBody: content: application/json: @@ -583,14 +625,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Post + summary: Service Test Group Assignments Post tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/service-tests: get: description: Lists service-tests matching provided criteria - operationId: service_tests_get_networking_uxi_v1alpha1_service_tests_get + operationId: service_tests_get parameters: - explode: true in: query @@ -647,7 +689,7 @@ paths: /networking-uxi/v1alpha1/wired-networks: get: description: Get a list of wired networks - operationId: get_networking_uxi_v1alpha1_wired_networks_get + operationId: wired_networks_get parameters: - explode: true in: query @@ -695,14 +737,14 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Get + summary: Wired Networks Get tags: - configuration x-stability-level: alpha /networking-uxi/v1alpha1/wireless-networks: get: description: Get a list of wireless networks - operationId: get_networking_uxi_v1alpha1_wireless_networks_get + operationId: wireless_networks_get parameters: - explode: true in: query @@ -750,7 +792,7 @@ paths: description: Server Error security: - HTTPBearer: [] - summary: Get + summary: Wireless Networks Get tags: - configuration x-stability-level: alpha @@ -907,17 +949,6 @@ components: - next title: GroupsGetResponse type: object - GroupsPatchRequest: - example: - name: name - properties: - name: - title: Name - type: string - required: - - name - title: GroupsPatchRequest - type: object GroupsPatchResponse: example: path: path @@ -957,6 +988,8 @@ components: parentId: parentId properties: parentId: + maxLength: 12 + minLength: 12 nullable: true type: string name: @@ -1342,6 +1375,95 @@ components: - wifiMacAddress title: SensorItem type: object + SensorsPatchRequest: + example: + address_note: address_note + notes: notes + name: name + pcap_mode: pcap_mode + properties: + name: + title: Name + type: string + address_note: + nullable: true + type: string + notes: + nullable: true + type: string + pcap_mode: + title: Pcap Mode + type: string + title: SensorsPatchRequest + type: object + SensorsPatchResponse: + example: + addressNote: addressNote + notes: notes + pcapMode: pcapMode + serial: serial + ethernetMacAddress: ethernetMacAddress + latitude: 6.027456183070403 + name: name + modelNumber: modelNumber + id: id + type: networking-uxi/sensor + wifiMacAddress: wifiMacAddress + longitude: 0.8008281904610115 + properties: + id: + title: Id + type: string + serial: + title: Serial + type: string + name: + title: Name + type: string + modelNumber: + nullable: true + type: string + wifiMacAddress: + nullable: true + type: string + ethernetMacAddress: + nullable: true + type: string + addressNote: + nullable: true + type: string + longitude: + nullable: true + type: number + latitude: + nullable: true + type: number + notes: + nullable: true + type: string + pcapMode: + nullable: true + type: string + type: + enum: + - networking-uxi/sensor + title: Type + type: string + required: + - addressNote + - ethernetMacAddress + - id + - latitude + - longitude + - modelNumber + - name + - notes + - pcapMode + - serial + - type + - wifiMacAddress + title: SensorsPatchResponse + type: object SensorsResponse: example: next: next @@ -1773,6 +1895,15 @@ components: - next title: WirelessNetworksResponse type: object + GroupsPatchRequest: + properties: + name: + title: Name + type: string + required: + - name + title: GroupsPatchRequest + type: object securitySchemes: HTTPBearer: scheme: bearer diff --git a/pkg/config-api-client/api_configuration.go b/pkg/config-api-client/api_configuration.go index 2005baf9..d5fb7dd1 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ @@ -23,37 +23,37 @@ import ( // ConfigurationAPIService ConfigurationAPI service type ConfigurationAPIService service -type ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest struct { +type ApiGroupsDeleteRequest struct { ctx context.Context ApiService *ConfigurationAPIService - id string + groupUid string } -func (r ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteExecute(r) +func (r ApiGroupsDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.GroupsDeleteExecute(r) } /* -DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete Delete Network Group Assignment +GroupsDelete Groups Delete -Delete a network group assignment +Delete an existing group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest + @param groupUid + @return ApiGroupsDeleteRequest */ -func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest { - return ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest{ +func (a *ConfigurationAPIService) GroupsDelete(ctx context.Context, groupUid string) ApiGroupsDeleteRequest { + return ApiGroupsDeleteRequest{ ApiService: a, ctx: ctx, - id: id, + groupUid: groupUid, } } // Execute executes the request // // @return interface{} -func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteExecute(r ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { +func (a *ConfigurationAPIService) GroupsDeleteExecute(r ApiGroupsDeleteRequest) (interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -61,13 +61,13 @@ func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentNetworkingUxiV1alp localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups/{group_uid}" + localVarPath = strings.Replace(localVarPath, "{"+"group_uid"+"}", url.PathEscape(parameterValueToString(r.groupUid, "groupUid")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -148,56 +148,82 @@ func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentNetworkingUxiV1alp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest struct { +type ApiGroupsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService - id string + id *string + next *string + limit *int32 +} + +func (r ApiGroupsGetRequest) Id(id string) ApiGroupsGetRequest { + r.id = &id + return r +} + +func (r ApiGroupsGetRequest) Next(next string) ApiGroupsGetRequest { + r.next = &next + return r +} + +func (r ApiGroupsGetRequest) Limit(limit int32) ApiGroupsGetRequest { + r.limit = &limit + return r } -func (r ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteExecute(r) +func (r ApiGroupsGetRequest) Execute() (*GroupsGetResponse, *http.Response, error) { + return r.ApiService.GroupsGetExecute(r) } /* -DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete Delete Sensor Group Assignment +GroupsGet Groups Get -Delete a sensor group assignment +Lists groups matching provided criteria @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest + @return ApiGroupsGetRequest */ -func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest { - return ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest{ +func (a *ConfigurationAPIService) GroupsGet(ctx context.Context) ApiGroupsGetRequest { + return ApiGroupsGetRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request // -// @return interface{} -func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteExecute(r ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { +// @return GroupsGetResponse +func (a *ConfigurationAPIService) GroupsGetExecute(r ApiGroupsGetRequest) (*GroupsGetResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue interface{} + localVarReturnValue *GroupsGetResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups" 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{} @@ -273,58 +299,64 @@ func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentNetworkingUxiV1alph return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - id string +type ApiGroupsPatchRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + groupUid string + groupsPatchRequest *GroupsPatchRequest +} + +func (r ApiGroupsPatchRequest) GroupsPatchRequest(groupsPatchRequest GroupsPatchRequest) ApiGroupsPatchRequest { + r.groupsPatchRequest = &groupsPatchRequest + return r } -func (r ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r) +func (r ApiGroupsPatchRequest) Execute() (*GroupsPatchResponse, *http.Response, error) { + return r.ApiService.GroupsPatchExecute(r) } /* -DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete Delete Service Test Group Assignment +GroupsPatch Groups Patch -Delete a service test group assignment +Update an existing group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest + @param groupUid + @return ApiGroupsPatchRequest */ -func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest { - return ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest{ +func (a *ConfigurationAPIService) GroupsPatch(ctx context.Context, groupUid string) ApiGroupsPatchRequest { + return ApiGroupsPatchRequest{ ApiService: a, ctx: ctx, - id: id, + groupUid: groupUid, } } // Execute executes the request // -// @return interface{} -func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { +// @return GroupsPatchResponse +func (a *ConfigurationAPIService) GroupsPatchExecute(r ApiGroupsPatchRequest) (*GroupsPatchResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue interface{} + localVarReturnValue *GroupsPatchResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPatch") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-test-group-assignments/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups/{group_uid}" + localVarPath = strings.Replace(localVarPath, "{"+"group_uid"+"}", url.PathEscape(parameterValueToString(r.groupUid, "groupUid")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/merge-patch+json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -340,6 +372,8 @@ func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentNetworkingUxiV if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.groupsPatchRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -398,82 +432,188 @@ func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentNetworkingUxiV return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - id *string - next *string - limit *int32 +type ApiGroupsPostRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + groupsPostRequest *GroupsPostRequest } -func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { - r.id = &id +func (r ApiGroupsPostRequest) GroupsPostRequest(groupsPostRequest GroupsPostRequest) ApiGroupsPostRequest { + r.groupsPostRequest = &groupsPostRequest return r } -func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { - r.next = &next - return r +func (r ApiGroupsPostRequest) Execute() (*GroupsPostResponse, *http.Response, error) { + return r.ApiService.GroupsPostExecute(r) } -func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { - r.limit = &limit - return r +/* +GroupsPost Groups Post + +Create a new group with the group identified in `parentId` as its parent + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGroupsPostRequest +*/ +func (a *ConfigurationAPIService) GroupsPost(ctx context.Context) ApiGroupsPostRequest { + return ApiGroupsPostRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Execute() (*NetworkGroupAssignmentsResponse, *http.Response, error) { - return r.ApiService.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetExecute(r) +// Execute executes the request +// +// @return GroupsPostResponse +func (a *ConfigurationAPIService) GroupsPostExecute(r ApiGroupsPostRequest) (*GroupsPostResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupsPostResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.groupsPostRequest == nil { + return localVarReturnValue, nil, reportError("groupsPostRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.groupsPostRequest + 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 ApiNetworkGroupAssignmentsDeleteRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + id string +} + +func (r ApiNetworkGroupAssignmentsDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.NetworkGroupAssignmentsDeleteExecute(r) } /* -GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet Get +NetworkGroupAssignmentsDelete Network Group Assignments Delete -Get a list of network group assignments +Delete a network group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest + @param id + @return ApiNetworkGroupAssignmentsDeleteRequest */ -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { - return ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest{ +func (a *ConfigurationAPIService) NetworkGroupAssignmentsDelete(ctx context.Context, id string) ApiNetworkGroupAssignmentsDeleteRequest { + return ApiNetworkGroupAssignmentsDeleteRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request // -// @return NetworkGroupAssignmentsResponse -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetExecute(r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) (*NetworkGroupAssignmentsResponse, *http.Response, error) { +// @return interface{} +func (a *ConfigurationAPIService) NetworkGroupAssignmentsDeleteExecute(r ApiNetworkGroupAssignmentsDeleteRequest) (interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *NetworkGroupAssignmentsResponse + localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.NetworkGroupAssignmentsDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-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{} - 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{} @@ -549,7 +689,7 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1NetworkGroupAssignment return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest struct { +type ApiNetworkGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -557,35 +697,35 @@ type ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest struct { limit *int32 } -func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { +func (r ApiNetworkGroupAssignmentsGetRequest) Id(id string) ApiNetworkGroupAssignmentsGetRequest { r.id = &id return r } -func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { +func (r ApiNetworkGroupAssignmentsGetRequest) Next(next string) ApiNetworkGroupAssignmentsGetRequest { r.next = &next return r } -func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { +func (r ApiNetworkGroupAssignmentsGetRequest) Limit(limit int32) ApiNetworkGroupAssignmentsGetRequest { r.limit = &limit return r } -func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Execute() (*SensorGroupAssignmentsResponse, *http.Response, error) { - return r.ApiService.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGetExecute(r) +func (r ApiNetworkGroupAssignmentsGetRequest) Execute() (*NetworkGroupAssignmentsResponse, *http.Response, error) { + return r.ApiService.NetworkGroupAssignmentsGetExecute(r) } /* -GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet Get +NetworkGroupAssignmentsGet Network Group Assignments Get -Get a list of sensor group assignments +Get a list of network group assignments @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest + @return ApiNetworkGroupAssignmentsGetRequest */ -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { - return ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest{ +func (a *ConfigurationAPIService) NetworkGroupAssignmentsGet(ctx context.Context) ApiNetworkGroupAssignmentsGetRequest { + return ApiNetworkGroupAssignmentsGetRequest{ ApiService: a, ctx: ctx, } @@ -593,21 +733,21 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorGroupAssignments // Execute executes the request // -// @return SensorGroupAssignmentsResponse -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorGroupAssignmentsGetExecute(r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) (*SensorGroupAssignmentsResponse, *http.Response, error) { +// @return NetworkGroupAssignmentsResponse +func (a *ConfigurationAPIService) NetworkGroupAssignmentsGetExecute(r ApiNetworkGroupAssignmentsGetRequest) (*NetworkGroupAssignmentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SensorGroupAssignmentsResponse + localVarReturnValue *NetworkGroupAssignmentsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.NetworkGroupAssignmentsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -700,43 +840,31 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorGroupAssignments return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetNetworkingUxiV1alpha1SensorsGetRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - id *string - next *string - limit *int32 -} - -func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { - r.id = &id - return r -} - -func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { - r.next = &next - return r +type ApiNetworkGroupAssignmentsPostRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + networkGroupAssignmentsPostRequest *NetworkGroupAssignmentsPostRequest } -func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { - r.limit = &limit +func (r ApiNetworkGroupAssignmentsPostRequest) NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest NetworkGroupAssignmentsPostRequest) ApiNetworkGroupAssignmentsPostRequest { + r.networkGroupAssignmentsPostRequest = &networkGroupAssignmentsPostRequest return r } -func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Execute() (*SensorsResponse, *http.Response, error) { - return r.ApiService.GetNetworkingUxiV1alpha1SensorsGetExecute(r) +func (r ApiNetworkGroupAssignmentsPostRequest) Execute() (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { + return r.ApiService.NetworkGroupAssignmentsPostExecute(r) } /* -GetNetworkingUxiV1alpha1SensorsGet Get +NetworkGroupAssignmentsPost Network Group Assignments Post -Get a list of sensors +Create a network group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetNetworkingUxiV1alpha1SensorsGetRequest + @return ApiNetworkGroupAssignmentsPostRequest */ -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { - return ApiGetNetworkingUxiV1alpha1SensorsGetRequest{ +func (a *ConfigurationAPIService) NetworkGroupAssignmentsPost(ctx context.Context) ApiNetworkGroupAssignmentsPostRequest { + return ApiNetworkGroupAssignmentsPostRequest{ ApiService: a, ctx: ctx, } @@ -744,40 +872,31 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGet(ctx context // Execute executes the request // -// @return SensorsResponse -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGetExecute(r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) (*SensorsResponse, *http.Response, error) { +// @return NetworkGroupAssignmentsPostResponse +func (a *ConfigurationAPIService) NetworkGroupAssignmentsPostExecute(r ApiNetworkGroupAssignmentsPostRequest) (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SensorsResponse + localVarReturnValue *NetworkGroupAssignmentsPostResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1SensorsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.NetworkGroupAssignmentsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensors" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments" 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 + if r.networkGroupAssignmentsPostRequest == nil { + return localVarReturnValue, nil, reportError("networkGroupAssignmentsPostRequest is required and must be specified") } + // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -793,6 +912,8 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGetExecute(r Ap if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.networkGroupAssignmentsPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -851,82 +972,56 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGetExecute(r Ap return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest struct { +type ApiSensorGroupAssignmentsDeleteRequest struct { ctx context.Context ApiService *ConfigurationAPIService - id *string - next *string - limit *int32 -} - -func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { - r.id = &id - return r -} - -func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { - r.next = &next - return r -} - -func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { - r.limit = &limit - return r + id string } -func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Execute() (*WiredNetworksResponse, *http.Response, error) { - return r.ApiService.GetNetworkingUxiV1alpha1WiredNetworksGetExecute(r) +func (r ApiSensorGroupAssignmentsDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.SensorGroupAssignmentsDeleteExecute(r) } /* -GetNetworkingUxiV1alpha1WiredNetworksGet Get +SensorGroupAssignmentsDelete Sensor Group Assignments Delete -Get a list of wired networks +Delete a sensor group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest + @param id + @return ApiSensorGroupAssignmentsDeleteRequest */ -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WiredNetworksGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { - return ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest{ +func (a *ConfigurationAPIService) SensorGroupAssignmentsDelete(ctx context.Context, id string) ApiSensorGroupAssignmentsDeleteRequest { + return ApiSensorGroupAssignmentsDeleteRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request // -// @return WiredNetworksResponse -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WiredNetworksGetExecute(r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) (*WiredNetworksResponse, *http.Response, error) { +// @return interface{} +func (a *ConfigurationAPIService) SensorGroupAssignmentsDeleteExecute(r ApiSensorGroupAssignmentsDeleteRequest) (interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WiredNetworksResponse + localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1WiredNetworksGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.SensorGroupAssignmentsDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/wired-networks" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-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{} - 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{} @@ -1002,7 +1097,7 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WiredNetworksGetExecut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest struct { +type ApiSensorGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -1010,35 +1105,35 @@ type ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest struct { limit *int32 } -func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { +func (r ApiSensorGroupAssignmentsGetRequest) Id(id string) ApiSensorGroupAssignmentsGetRequest { r.id = &id return r } -func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { +func (r ApiSensorGroupAssignmentsGetRequest) Next(next string) ApiSensorGroupAssignmentsGetRequest { r.next = &next return r } -func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { +func (r ApiSensorGroupAssignmentsGetRequest) Limit(limit int32) ApiSensorGroupAssignmentsGetRequest { r.limit = &limit return r } -func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Execute() (*WirelessNetworksResponse, *http.Response, error) { - return r.ApiService.GetNetworkingUxiV1alpha1WirelessNetworksGetExecute(r) +func (r ApiSensorGroupAssignmentsGetRequest) Execute() (*SensorGroupAssignmentsResponse, *http.Response, error) { + return r.ApiService.SensorGroupAssignmentsGetExecute(r) } /* -GetNetworkingUxiV1alpha1WirelessNetworksGet Get +SensorGroupAssignmentsGet Sensor Group Assignments Get -Get a list of wireless networks +Get a list of sensor group assignments @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest + @return ApiSensorGroupAssignmentsGetRequest */ -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WirelessNetworksGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { - return ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest{ +func (a *ConfigurationAPIService) SensorGroupAssignmentsGet(ctx context.Context) ApiSensorGroupAssignmentsGetRequest { + return ApiSensorGroupAssignmentsGetRequest{ ApiService: a, ctx: ctx, } @@ -1046,21 +1141,21 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WirelessNetworksGet(ct // Execute executes the request // -// @return WirelessNetworksResponse -func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WirelessNetworksGetExecute(r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) (*WirelessNetworksResponse, *http.Response, error) { +// @return SensorGroupAssignmentsResponse +func (a *ConfigurationAPIService) SensorGroupAssignmentsGetExecute(r ApiSensorGroupAssignmentsGetRequest) (*SensorGroupAssignmentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *WirelessNetworksResponse + localVarReturnValue *SensorGroupAssignmentsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1WirelessNetworksGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.SensorGroupAssignmentsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/wireless-networks" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1153,58 +1248,63 @@ func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WirelessNetworksGetExe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - groupUid string +type ApiSensorGroupAssignmentsPostRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + sensorGroupAssignmentsPostRequest *SensorGroupAssignmentsPostRequest +} + +func (r ApiSensorGroupAssignmentsPostRequest) SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest SensorGroupAssignmentsPostRequest) ApiSensorGroupAssignmentsPostRequest { + r.sensorGroupAssignmentsPostRequest = &sensorGroupAssignmentsPostRequest + return r } -func (r ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteExecute(r) +func (r ApiSensorGroupAssignmentsPostRequest) Execute() (*SensorGroupAssignmentResponse, *http.Response, error) { + return r.ApiService.SensorGroupAssignmentsPostExecute(r) } /* -GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete Groups Delete +SensorGroupAssignmentsPost Sensor Group Assignments Post -Delete an existing group. +Create sensor group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupUid - @return ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest + @return ApiSensorGroupAssignmentsPostRequest */ -func (a *ConfigurationAPIService) GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(ctx context.Context, groupUid string) ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest { - return ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest{ +func (a *ConfigurationAPIService) SensorGroupAssignmentsPost(ctx context.Context) ApiSensorGroupAssignmentsPostRequest { + return ApiSensorGroupAssignmentsPostRequest{ ApiService: a, ctx: ctx, - groupUid: groupUid, } } // Execute executes the request // -// @return interface{} -func (a *ConfigurationAPIService) GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteExecute(r ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest) (interface{}, *http.Response, error) { +// @return SensorGroupAssignmentResponse +func (a *ConfigurationAPIService) SensorGroupAssignmentsPostExecute(r ApiSensorGroupAssignmentsPostRequest) (*SensorGroupAssignmentResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue interface{} + localVarReturnValue *SensorGroupAssignmentResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.SensorGroupAssignmentsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups/{group_uid}" - localVarPath = strings.Replace(localVarPath, "{"+"group_uid"+"}", url.PathEscape(parameterValueToString(r.groupUid, "groupUid")), -1) + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.sensorGroupAssignmentsPostRequest == nil { + return localVarReturnValue, nil, reportError("sensorGroupAssignmentsPostRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1220,6 +1320,8 @@ func (a *ConfigurationAPIService) GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.sensorGroupAssignmentsPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1278,7 +1380,7 @@ func (a *ConfigurationAPIService) GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest struct { +type ApiSensorsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -1286,35 +1388,35 @@ type ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest struct { limit *int32 } -func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Id(id string) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { +func (r ApiSensorsGetRequest) Id(id string) ApiSensorsGetRequest { r.id = &id return r } -func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Next(next string) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { +func (r ApiSensorsGetRequest) Next(next string) ApiSensorsGetRequest { r.next = &next return r } -func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Limit(limit int32) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { +func (r ApiSensorsGetRequest) Limit(limit int32) ApiSensorsGetRequest { r.limit = &limit return r } -func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Execute() (*GroupsGetResponse, *http.Response, error) { - return r.ApiService.GroupsGetNetworkingUxiV1alpha1GroupsGetExecute(r) +func (r ApiSensorsGetRequest) Execute() (*SensorsResponse, *http.Response, error) { + return r.ApiService.SensorsGetExecute(r) } /* -GroupsGetNetworkingUxiV1alpha1GroupsGet Groups Get +SensorsGet Sensors Get -Lists groups matching provided criteria +Get a list of sensors @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest + @return ApiSensorsGetRequest */ -func (a *ConfigurationAPIService) GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx context.Context) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { - return ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest{ +func (a *ConfigurationAPIService) SensorsGet(ctx context.Context) ApiSensorsGetRequest { + return ApiSensorsGetRequest{ ApiService: a, ctx: ctx, } @@ -1322,21 +1424,21 @@ func (a *ConfigurationAPIService) GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx co // Execute executes the request // -// @return GroupsGetResponse -func (a *ConfigurationAPIService) GroupsGetNetworkingUxiV1alpha1GroupsGetExecute(r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) (*GroupsGetResponse, *http.Response, error) { +// @return SensorsResponse +func (a *ConfigurationAPIService) SensorsGetExecute(r ApiSensorsGetRequest) (*SensorsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GroupsGetResponse + localVarReturnValue *SensorsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsGetNetworkingUxiV1alpha1GroupsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.SensorsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensors" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1429,63 +1531,63 @@ func (a *ConfigurationAPIService) GroupsGetNetworkingUxiV1alpha1GroupsGetExecute return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - groupUid string - groupsPatchRequest *GroupsPatchRequest +type ApiSensorsPatchRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + sensorUid string + sensorsPatchRequest *SensorsPatchRequest } -func (r ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest) GroupsPatchRequest(groupsPatchRequest GroupsPatchRequest) ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest { - r.groupsPatchRequest = &groupsPatchRequest +func (r ApiSensorsPatchRequest) SensorsPatchRequest(sensorsPatchRequest SensorsPatchRequest) ApiSensorsPatchRequest { + r.sensorsPatchRequest = &sensorsPatchRequest return r } -func (r ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest) Execute() (*GroupsPatchResponse, *http.Response, error) { - return r.ApiService.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchExecute(r) +func (r ApiSensorsPatchRequest) Execute() (*SensorsPatchResponse, *http.Response, error) { + return r.ApiService.SensorsPatchExecute(r) } /* -GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch Groups Patch +SensorsPatch Sensors Patch -Update an existing group. +Update an existing sensor. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupUid - @return ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest + @param sensorUid + @return ApiSensorsPatchRequest */ -func (a *ConfigurationAPIService) GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(ctx context.Context, groupUid string) ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest { - return ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest{ +func (a *ConfigurationAPIService) SensorsPatch(ctx context.Context, sensorUid string) ApiSensorsPatchRequest { + return ApiSensorsPatchRequest{ ApiService: a, ctx: ctx, - groupUid: groupUid, + sensorUid: sensorUid, } } // Execute executes the request // -// @return GroupsPatchResponse -func (a *ConfigurationAPIService) GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchExecute(r ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest) (*GroupsPatchResponse, *http.Response, error) { +// @return SensorsPatchResponse +func (a *ConfigurationAPIService) SensorsPatchExecute(r ApiSensorsPatchRequest) (*SensorsPatchResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GroupsPatchResponse + localVarReturnValue *SensorsPatchResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.SensorsPatch") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups/{group_uid}" - localVarPath = strings.Replace(localVarPath, "{"+"group_uid"+"}", url.PathEscape(parameterValueToString(r.groupUid, "groupUid")), -1) + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensors/{sensor_uid}" + localVarPath = strings.Replace(localVarPath, "{"+"sensor_uid"+"}", url.PathEscape(parameterValueToString(r.sensorUid, "sensorUid")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.groupsPatchRequest == nil { - return localVarReturnValue, nil, reportError("groupsPatchRequest is required and must be specified") + if r.sensorsPatchRequest == nil { + return localVarReturnValue, nil, reportError("sensorsPatchRequest is required and must be specified") } // to determine the Content-Type header @@ -1506,7 +1608,7 @@ func (a *ConfigurationAPIService) GroupsPatchNetworkingUxiV1alpha1GroupsGroupUid localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.groupsPatchRequest + localVarPostBody = r.sensorsPatchRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1565,63 +1667,58 @@ func (a *ConfigurationAPIService) GroupsPatchNetworkingUxiV1alpha1GroupsGroupUid return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - groupsPostRequest *GroupsPostRequest -} - -func (r ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest) GroupsPostRequest(groupsPostRequest GroupsPostRequest) ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest { - r.groupsPostRequest = &groupsPostRequest - return r +type ApiServiceTestGroupAssignmentsDeleteRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + id string } -func (r ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest) Execute() (*GroupsPostResponse, *http.Response, error) { - return r.ApiService.GroupsPostNetworkingUxiV1alpha1GroupsPostExecute(r) +func (r ApiServiceTestGroupAssignmentsDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.ServiceTestGroupAssignmentsDeleteExecute(r) } /* -GroupsPostNetworkingUxiV1alpha1GroupsPost Groups Post +ServiceTestGroupAssignmentsDelete Service Test Group Assignments Delete -Create a new group with the group identified in `parent_uid` as its parent +Delete a service test group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest + @param id + @return ApiServiceTestGroupAssignmentsDeleteRequest */ -func (a *ConfigurationAPIService) GroupsPostNetworkingUxiV1alpha1GroupsPost(ctx context.Context) ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest { - return ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest{ +func (a *ConfigurationAPIService) ServiceTestGroupAssignmentsDelete(ctx context.Context, id string) ApiServiceTestGroupAssignmentsDeleteRequest { + return ApiServiceTestGroupAssignmentsDeleteRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request // -// @return GroupsPostResponse -func (a *ConfigurationAPIService) GroupsPostNetworkingUxiV1alpha1GroupsPostExecute(r ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest) (*GroupsPostResponse, *http.Response, error) { +// @return interface{} +func (a *ConfigurationAPIService) ServiceTestGroupAssignmentsDeleteExecute(r ApiServiceTestGroupAssignmentsDeleteRequest) (interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile - localVarReturnValue *GroupsPostResponse + localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPostNetworkingUxiV1alpha1GroupsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestGroupAssignmentsDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups" + localVarPath := localBasePath + "/networking-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{} - if r.groupsPostRequest == nil { - return localVarReturnValue, nil, reportError("groupsPostRequest is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1637,8 +1734,6 @@ func (a *ConfigurationAPIService) GroupsPostNetworkingUxiV1alpha1GroupsPostExecu if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.groupsPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1697,31 +1792,31 @@ func (a *ConfigurationAPIService) GroupsPostNetworkingUxiV1alpha1GroupsPostExecu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - networkGroupAssignmentsPostRequest *NetworkGroupAssignmentsPostRequest +type ApiServiceTestGroupAssignmentsPostRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + serviceTestGroupAssignmentsPostRequest *ServiceTestGroupAssignmentsPostRequest } -func (r ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest) NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest NetworkGroupAssignmentsPostRequest) ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest { - r.networkGroupAssignmentsPostRequest = &networkGroupAssignmentsPostRequest +func (r ApiServiceTestGroupAssignmentsPostRequest) ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest ServiceTestGroupAssignmentsPostRequest) ApiServiceTestGroupAssignmentsPostRequest { + r.serviceTestGroupAssignmentsPostRequest = &serviceTestGroupAssignmentsPostRequest return r } -func (r ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest) Execute() (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { - return r.ApiService.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostExecute(r) +func (r ApiServiceTestGroupAssignmentsPostRequest) Execute() (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { + return r.ApiService.ServiceTestGroupAssignmentsPostExecute(r) } /* -PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost Post +ServiceTestGroupAssignmentsPost Service Test Group Assignments Post -Create a network group assignment +Create a service-test group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest + @return ApiServiceTestGroupAssignmentsPostRequest */ -func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(ctx context.Context) ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest { - return ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest{ +func (a *ConfigurationAPIService) ServiceTestGroupAssignmentsPost(ctx context.Context) ApiServiceTestGroupAssignmentsPostRequest { + return ApiServiceTestGroupAssignmentsPostRequest{ ApiService: a, ctx: ctx, } @@ -1729,27 +1824,27 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmen // Execute executes the request // -// @return NetworkGroupAssignmentsPostResponse -func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostExecute(r ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest) (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { +// @return ServiceTestGroupAssignmentsPostResponse +func (a *ConfigurationAPIService) ServiceTestGroupAssignmentsPostExecute(r ApiServiceTestGroupAssignmentsPostRequest) (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *NetworkGroupAssignmentsPostResponse + localVarReturnValue *ServiceTestGroupAssignmentsPostResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestGroupAssignmentsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-test-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.networkGroupAssignmentsPostRequest == nil { - return localVarReturnValue, nil, reportError("networkGroupAssignmentsPostRequest is required and must be specified") + if r.serviceTestGroupAssignmentsPostRequest == nil { + return localVarReturnValue, nil, reportError("serviceTestGroupAssignmentsPostRequest is required and must be specified") } // to determine the Content-Type header @@ -1770,7 +1865,7 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmen localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.networkGroupAssignmentsPostRequest + localVarPostBody = r.serviceTestGroupAssignmentsPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1829,31 +1924,43 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmen return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - sensorGroupAssignmentsPostRequest *SensorGroupAssignmentsPostRequest +type ApiServiceTestsGetRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + id *string + next *string + limit *int32 } -func (r ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest) SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest SensorGroupAssignmentsPostRequest) ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest { - r.sensorGroupAssignmentsPostRequest = &sensorGroupAssignmentsPostRequest +func (r ApiServiceTestsGetRequest) Id(id string) ApiServiceTestsGetRequest { + r.id = &id + return r +} + +func (r ApiServiceTestsGetRequest) Next(next string) ApiServiceTestsGetRequest { + r.next = &next return r } -func (r ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest) Execute() (*SensorGroupAssignmentResponse, *http.Response, error) { - return r.ApiService.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPostExecute(r) +func (r ApiServiceTestsGetRequest) Limit(limit int32) ApiServiceTestsGetRequest { + r.limit = &limit + return r +} + +func (r ApiServiceTestsGetRequest) Execute() (*ServiceTestsListResponse, *http.Response, error) { + return r.ApiService.ServiceTestsGetExecute(r) } /* -PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost Post +ServiceTestsGet Service Tests Get -Create sensor group assignment +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 ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest + @return ApiServiceTestsGetRequest */ -func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(ctx context.Context) ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest { - return ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest{ +func (a *ConfigurationAPIService) ServiceTestsGet(ctx context.Context) ApiServiceTestsGetRequest { + return ApiServiceTestsGetRequest{ ApiService: a, ctx: ctx, } @@ -1861,31 +1968,40 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignment // Execute executes the request // -// @return SensorGroupAssignmentResponse -func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignmentsPostExecute(r ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest) (*SensorGroupAssignmentResponse, *http.Response, error) { +// @return ServiceTestsListResponse +func (a *ConfigurationAPIService) ServiceTestsGetExecute(r ApiServiceTestsGetRequest) (*ServiceTestsListResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SensorGroupAssignmentResponse + localVarReturnValue *ServiceTestsListResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-tests" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.sensorGroupAssignmentsPostRequest == nil { - return localVarReturnValue, nil, reportError("sensorGroupAssignmentsPostRequest is required and must be specified") - } + 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{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -1901,8 +2017,6 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignment if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.sensorGroupAssignmentsPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1961,31 +2075,43 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignment return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest struct { - ctx context.Context - ApiService *ConfigurationAPIService - serviceTestGroupAssignmentsPostRequest *ServiceTestGroupAssignmentsPostRequest +type ApiWiredNetworksGetRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + id *string + next *string + limit *int32 } -func (r ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest ServiceTestGroupAssignmentsPostRequest) ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest { - r.serviceTestGroupAssignmentsPostRequest = &serviceTestGroupAssignmentsPostRequest +func (r ApiWiredNetworksGetRequest) Id(id string) ApiWiredNetworksGetRequest { + r.id = &id + return r +} + +func (r ApiWiredNetworksGetRequest) Next(next string) ApiWiredNetworksGetRequest { + r.next = &next + return r +} + +func (r ApiWiredNetworksGetRequest) Limit(limit int32) ApiWiredNetworksGetRequest { + r.limit = &limit return r } -func (r ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) Execute() (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { - return r.ApiService.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostExecute(r) +func (r ApiWiredNetworksGetRequest) Execute() (*WiredNetworksResponse, *http.Response, error) { + return r.ApiService.WiredNetworksGetExecute(r) } /* -PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost Post +WiredNetworksGet Wired Networks Get -Create a service-test group assignment +Get a list of wired networks @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest + @return ApiWiredNetworksGetRequest */ -func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx context.Context) ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest { - return ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest{ +func (a *ConfigurationAPIService) WiredNetworksGet(ctx context.Context) ApiWiredNetworksGetRequest { + return ApiWiredNetworksGetRequest{ ApiService: a, ctx: ctx, } @@ -1993,31 +2119,40 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssig // Execute executes the request // -// @return ServiceTestGroupAssignmentsPostResponse -func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostExecute(r ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { +// @return WiredNetworksResponse +func (a *ConfigurationAPIService) WiredNetworksGetExecute(r ApiWiredNetworksGetRequest) (*WiredNetworksResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ServiceTestGroupAssignmentsPostResponse + localVarReturnValue *WiredNetworksResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.WiredNetworksGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-test-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/wired-networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.serviceTestGroupAssignmentsPostRequest == nil { - return localVarReturnValue, nil, reportError("serviceTestGroupAssignmentsPostRequest is required and must be specified") - } + 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{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2033,8 +2168,6 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssig if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.serviceTestGroupAssignmentsPostRequest req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2093,7 +2226,7 @@ func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssig return localVarReturnValue, localVarHTTPResponse, nil } -type ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest struct { +type ApiWirelessNetworksGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -2101,35 +2234,35 @@ type ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest struct { limit *int32 } -func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Id(id string) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { +func (r ApiWirelessNetworksGetRequest) Id(id string) ApiWirelessNetworksGetRequest { r.id = &id return r } -func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Next(next string) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { +func (r ApiWirelessNetworksGetRequest) Next(next string) ApiWirelessNetworksGetRequest { r.next = &next return r } -func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Limit(limit int32) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { +func (r ApiWirelessNetworksGetRequest) Limit(limit int32) ApiWirelessNetworksGetRequest { r.limit = &limit return r } -func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Execute() (*ServiceTestsListResponse, *http.Response, error) { - return r.ApiService.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetExecute(r) +func (r ApiWirelessNetworksGetRequest) Execute() (*WirelessNetworksResponse, *http.Response, error) { + return r.ApiService.WirelessNetworksGetExecute(r) } /* -ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet Service Tests Get +WirelessNetworksGet Wireless Networks Get -Lists service-tests matching provided criteria +Get a list of wireless networks @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest + @return ApiWirelessNetworksGetRequest */ -func (a *ConfigurationAPIService) ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet(ctx context.Context) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { - return ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest{ +func (a *ConfigurationAPIService) WirelessNetworksGet(ctx context.Context) ApiWirelessNetworksGetRequest { + return ApiWirelessNetworksGetRequest{ ApiService: a, ctx: ctx, } @@ -2137,21 +2270,21 @@ func (a *ConfigurationAPIService) ServiceTestsGetNetworkingUxiV1alpha1ServiceTes // Execute executes the request // -// @return ServiceTestsListResponse -func (a *ConfigurationAPIService) ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetExecute(r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) (*ServiceTestsListResponse, *http.Response, error) { +// @return WirelessNetworksResponse +func (a *ConfigurationAPIService) WirelessNetworksGetExecute(r ApiWirelessNetworksGetRequest) (*WirelessNetworksResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ServiceTestsListResponse + localVarReturnValue *WirelessNetworksResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.WirelessNetworksGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-tests" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/wireless-networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/pkg/config-api-client/client.go b/pkg/config-api-client/client.go index 5f7357fb..e1785e8f 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Configuration Api API v3.0.0 +// APIClient manages communication with the Configuration Api API v4.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 7aa3f327..c71928dd 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/docs/ConfigurationAPI.md b/pkg/config-api-client/docs/ConfigurationAPI.md index c6011884..22727038 100644 --- a/pkg/config-api-client/docs/ConfigurationAPI.md +++ b/pkg/config-api-client/docs/ConfigurationAPI.md @@ -4,30 +4,31 @@ All URIs are relative to *https://api.capenetworks.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete) | **Delete** /networking-uxi/v1alpha1/network-group-assignments/{id} | Delete Network Group Assignment -[**DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete) | **Delete** /networking-uxi/v1alpha1/sensor-group-assignments/{id} | Delete Sensor Group Assignment -[**DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete) | **Delete** /networking-uxi/v1alpha1/service-test-group-assignments/{id} | Delete Service Test Group Assignment -[**GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet**](ConfigurationAPI.md#GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet) | **Get** /networking-uxi/v1alpha1/network-group-assignments | Get -[**GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet**](ConfigurationAPI.md#GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet) | **Get** /networking-uxi/v1alpha1/sensor-group-assignments | Get -[**GetNetworkingUxiV1alpha1SensorsGet**](ConfigurationAPI.md#GetNetworkingUxiV1alpha1SensorsGet) | **Get** /networking-uxi/v1alpha1/sensors | Get -[**GetNetworkingUxiV1alpha1WiredNetworksGet**](ConfigurationAPI.md#GetNetworkingUxiV1alpha1WiredNetworksGet) | **Get** /networking-uxi/v1alpha1/wired-networks | Get -[**GetNetworkingUxiV1alpha1WirelessNetworksGet**](ConfigurationAPI.md#GetNetworkingUxiV1alpha1WirelessNetworksGet) | **Get** /networking-uxi/v1alpha1/wireless-networks | Get -[**GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete**](ConfigurationAPI.md#GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete) | **Delete** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Delete -[**GroupsGetNetworkingUxiV1alpha1GroupsGet**](ConfigurationAPI.md#GroupsGetNetworkingUxiV1alpha1GroupsGet) | **Get** /networking-uxi/v1alpha1/groups | Groups Get -[**GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch**](ConfigurationAPI.md#GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch) | **Patch** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Patch -[**GroupsPostNetworkingUxiV1alpha1GroupsPost**](ConfigurationAPI.md#GroupsPostNetworkingUxiV1alpha1GroupsPost) | **Post** /networking-uxi/v1alpha1/groups | Groups Post -[**PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost**](ConfigurationAPI.md#PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost) | **Post** /networking-uxi/v1alpha1/network-group-assignments | Post -[**PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost**](ConfigurationAPI.md#PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost) | **Post** /networking-uxi/v1alpha1/sensor-group-assignments | Post -[**PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost**](ConfigurationAPI.md#PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost) | **Post** /networking-uxi/v1alpha1/service-test-group-assignments | Post -[**ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet**](ConfigurationAPI.md#ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet) | **Get** /networking-uxi/v1alpha1/service-tests | Service Tests Get +[**GroupsDelete**](ConfigurationAPI.md#GroupsDelete) | **Delete** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Delete +[**GroupsGet**](ConfigurationAPI.md#GroupsGet) | **Get** /networking-uxi/v1alpha1/groups | Groups Get +[**GroupsPatch**](ConfigurationAPI.md#GroupsPatch) | **Patch** /networking-uxi/v1alpha1/groups/{group_uid} | Groups Patch +[**GroupsPost**](ConfigurationAPI.md#GroupsPost) | **Post** /networking-uxi/v1alpha1/groups | Groups Post +[**NetworkGroupAssignmentsDelete**](ConfigurationAPI.md#NetworkGroupAssignmentsDelete) | **Delete** /networking-uxi/v1alpha1/network-group-assignments/{id} | Network Group Assignments Delete +[**NetworkGroupAssignmentsGet**](ConfigurationAPI.md#NetworkGroupAssignmentsGet) | **Get** /networking-uxi/v1alpha1/network-group-assignments | Network Group Assignments Get +[**NetworkGroupAssignmentsPost**](ConfigurationAPI.md#NetworkGroupAssignmentsPost) | **Post** /networking-uxi/v1alpha1/network-group-assignments | Network Group Assignments Post +[**SensorGroupAssignmentsDelete**](ConfigurationAPI.md#SensorGroupAssignmentsDelete) | **Delete** /networking-uxi/v1alpha1/sensor-group-assignments/{id} | Sensor Group Assignments Delete +[**SensorGroupAssignmentsGet**](ConfigurationAPI.md#SensorGroupAssignmentsGet) | **Get** /networking-uxi/v1alpha1/sensor-group-assignments | Sensor Group Assignments Get +[**SensorGroupAssignmentsPost**](ConfigurationAPI.md#SensorGroupAssignmentsPost) | **Post** /networking-uxi/v1alpha1/sensor-group-assignments | Sensor Group Assignments Post +[**SensorsGet**](ConfigurationAPI.md#SensorsGet) | **Get** /networking-uxi/v1alpha1/sensors | Sensors Get +[**SensorsPatch**](ConfigurationAPI.md#SensorsPatch) | **Patch** /networking-uxi/v1alpha1/sensors/{sensor_uid} | Sensors Patch +[**ServiceTestGroupAssignmentsDelete**](ConfigurationAPI.md#ServiceTestGroupAssignmentsDelete) | **Delete** /networking-uxi/v1alpha1/service-test-group-assignments/{id} | Service Test Group Assignments Delete +[**ServiceTestGroupAssignmentsPost**](ConfigurationAPI.md#ServiceTestGroupAssignmentsPost) | **Post** /networking-uxi/v1alpha1/service-test-group-assignments | Service Test Group Assignments Post +[**ServiceTestsGet**](ConfigurationAPI.md#ServiceTestsGet) | **Get** /networking-uxi/v1alpha1/service-tests | Service Tests Get +[**WiredNetworksGet**](ConfigurationAPI.md#WiredNetworksGet) | **Get** /networking-uxi/v1alpha1/wired-networks | Wired Networks Get +[**WirelessNetworksGet**](ConfigurationAPI.md#WirelessNetworksGet) | **Get** /networking-uxi/v1alpha1/wireless-networks | Wireless Networks Get + + + +## GroupsDelete + +> interface{} GroupsDelete(ctx, groupUid).Execute() - - -## DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete - -> interface{} DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx, id).Execute() - -Delete Network Group Assignment +Groups Delete @@ -44,17 +45,17 @@ import ( ) func main() { - id := "id_example" // string | + groupUid := "groupUid_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(context.Background(), id).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsDelete(context.Background(), groupUid).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete`: %v\n", resp) + // response from `GroupsDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsDelete`: %v\n", resp) } ``` @@ -64,11 +65,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**groupUid** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -93,11 +94,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete +## GroupsGet -> interface{} DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx, id).Execute() +> GroupsGetResponse GroupsGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Delete Sensor Group Assignment +Groups Get @@ -114,40 +115,40 @@ import ( ) func main() { - id := "id_example" // string | + 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.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(context.Background(), id).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete`: %v\n", resp) + // response from `GroupsGet`: GroupsGetResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsGet`: %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 apiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **id** | **string** | | + **next** | **string** | | + **limit** | **int32** | | [default to 50] ### Return type -**interface{}** +[**GroupsGetResponse**](GroupsGetResponse.md) ### Authorization @@ -163,11 +164,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete +## GroupsPatch -> interface{} DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, id).Execute() +> GroupsPatchResponse GroupsPatch(ctx, groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() -Delete Service Test Group Assignment +Groups Patch @@ -184,17 +185,18 @@ import ( ) func main() { - id := "id_example" // string | + groupUid := "groupUid_example" // string | + groupsPatchRequest := *openapiclient.NewGroupsPatchRequest("Name_example") // GroupsPatchRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), id).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsPatch(context.Background(), groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPatch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: %v\n", resp) + // response from `GroupsPatch`: GroupsPatchResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPatch`: %v\n", resp) } ``` @@ -204,20 +206,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**groupUid** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsPatchRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **groupsPatchRequest** | [**GroupsPatchRequest**](GroupsPatchRequest.md) | | ### Return type -**interface{}** +[**GroupsPatchResponse**](GroupsPatchResponse.md) ### Authorization @@ -225,7 +228,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/merge-patch+json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -233,11 +236,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet +## GroupsPost -> NetworkGroupAssignmentsResponse GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> GroupsPostResponse GroupsPost(ctx).GroupsPostRequest(groupsPostRequest).Execute() -Get +Groups Post @@ -254,19 +257,17 @@ import ( ) func main() { - id := "id_example" // string | (optional) - next := "next_example" // string | (optional) - limit := int32(56) // int32 | (optional) (default to 50) + groupsPostRequest := *openapiclient.NewGroupsPostRequest("Name_example") // GroupsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsPost(context.Background()).GroupsPostRequest(groupsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet`: NetworkGroupAssignmentsResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet`: %v\n", resp) + // response from `GroupsPost`: GroupsPostResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPost`: %v\n", resp) } ``` @@ -276,18 +277,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | - **limit** | **int32** | | [default to 50] + **groupsPostRequest** | [**GroupsPostRequest**](GroupsPostRequest.md) | | ### Return type -[**NetworkGroupAssignmentsResponse**](NetworkGroupAssignmentsResponse.md) +[**GroupsPostResponse**](GroupsPostResponse.md) ### Authorization @@ -295,7 +294,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -303,11 +302,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet +## NetworkGroupAssignmentsDelete -> SensorGroupAssignmentsResponse GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> interface{} NetworkGroupAssignmentsDelete(ctx, id).Execute() -Get +Network Group Assignments Delete @@ -324,40 +323,40 @@ import ( ) func main() { - id := "id_example" // string | (optional) - next := "next_example" // string | (optional) - limit := int32(56) // int32 | (optional) (default to 50) + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.NetworkGroupAssignmentsDelete(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.NetworkGroupAssignmentsDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet`: SensorGroupAssignmentsResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet`: %v\n", resp) + // response from `NetworkGroupAssignmentsDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.NetworkGroupAssignmentsDelete`: %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 apiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiNetworkGroupAssignmentsDeleteRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | - **limit** | **int32** | | [default to 50] + ### Return type -[**SensorGroupAssignmentsResponse**](SensorGroupAssignmentsResponse.md) +**interface{}** ### Authorization @@ -373,11 +372,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetNetworkingUxiV1alpha1SensorsGet +## NetworkGroupAssignmentsGet -> SensorsResponse GetNetworkingUxiV1alpha1SensorsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> NetworkGroupAssignmentsResponse NetworkGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Get +Network Group Assignments Get @@ -400,13 +399,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1SensorsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.NetworkGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.NetworkGroupAssignmentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNetworkingUxiV1alpha1SensorsGet`: SensorsResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorsGet`: %v\n", resp) + // response from `NetworkGroupAssignmentsGet`: NetworkGroupAssignmentsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.NetworkGroupAssignmentsGet`: %v\n", resp) } ``` @@ -416,7 +415,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1SensorsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiNetworkGroupAssignmentsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -427,7 +426,7 @@ Name | Type | Description | Notes ### Return type -[**SensorsResponse**](SensorsResponse.md) +[**NetworkGroupAssignmentsResponse**](NetworkGroupAssignmentsResponse.md) ### Authorization @@ -443,11 +442,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetNetworkingUxiV1alpha1WiredNetworksGet +## NetworkGroupAssignmentsPost -> WiredNetworksResponse GetNetworkingUxiV1alpha1WiredNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> NetworkGroupAssignmentsPostResponse NetworkGroupAssignmentsPost(ctx).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() -Get +Network Group Assignments Post @@ -464,19 +463,17 @@ import ( ) func main() { - id := "id_example" // string | (optional) - next := "next_example" // string | (optional) - limit := int32(56) // int32 | (optional) (default to 50) + networkGroupAssignmentsPostRequest := *openapiclient.NewNetworkGroupAssignmentsPostRequest("GroupId_example", "NetworkId_example") // NetworkGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1WiredNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.NetworkGroupAssignmentsPost(context.Background()).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1WiredNetworksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.NetworkGroupAssignmentsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNetworkingUxiV1alpha1WiredNetworksGet`: WiredNetworksResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1WiredNetworksGet`: %v\n", resp) + // response from `NetworkGroupAssignmentsPost`: NetworkGroupAssignmentsPostResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.NetworkGroupAssignmentsPost`: %v\n", resp) } ``` @@ -486,18 +483,86 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1WiredNetworksGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiNetworkGroupAssignmentsPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **string** | | - **next** | **string** | | - **limit** | **int32** | | [default to 50] + **networkGroupAssignmentsPostRequest** | [**NetworkGroupAssignmentsPostRequest**](NetworkGroupAssignmentsPostRequest.md) | | ### Return type -[**WiredNetworksResponse**](WiredNetworksResponse.md) +[**NetworkGroupAssignmentsPostResponse**](NetworkGroupAssignmentsPostResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + +## SensorGroupAssignmentsDelete + +> interface{} SensorGroupAssignmentsDelete(ctx, id).Execute() + +Sensor Group Assignments Delete + + + +### 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.SensorGroupAssignmentsDelete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.SensorGroupAssignmentsDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SensorGroupAssignmentsDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.SensorGroupAssignmentsDelete`: %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 apiSensorGroupAssignmentsDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**interface{}** ### Authorization @@ -513,11 +578,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetNetworkingUxiV1alpha1WirelessNetworksGet +## SensorGroupAssignmentsGet -> WirelessNetworksResponse GetNetworkingUxiV1alpha1WirelessNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> SensorGroupAssignmentsResponse SensorGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Get +Sensor Group Assignments Get @@ -540,13 +605,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1WirelessNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.SensorGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1WirelessNetworksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.SensorGroupAssignmentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetNetworkingUxiV1alpha1WirelessNetworksGet`: WirelessNetworksResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1WirelessNetworksGet`: %v\n", resp) + // response from `SensorGroupAssignmentsGet`: SensorGroupAssignmentsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.SensorGroupAssignmentsGet`: %v\n", resp) } ``` @@ -556,7 +621,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSensorGroupAssignmentsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -567,7 +632,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessNetworksResponse**](WirelessNetworksResponse.md) +[**SensorGroupAssignmentsResponse**](SensorGroupAssignmentsResponse.md) ### Authorization @@ -583,11 +648,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete +## SensorGroupAssignmentsPost -> interface{} GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(ctx, groupUid).Execute() +> SensorGroupAssignmentResponse SensorGroupAssignmentsPost(ctx).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() -Groups Delete +Sensor Group Assignments Post @@ -604,40 +669,36 @@ import ( ) func main() { - groupUid := "groupUid_example" // string | + sensorGroupAssignmentsPostRequest := *openapiclient.NewSensorGroupAssignmentsPostRequest("GroupId_example", "SensorId_example") // SensorGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(context.Background(), groupUid).Execute() + resp, r, err := apiClient.ConfigurationAPI.SensorGroupAssignmentsPost(context.Background()).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.SensorGroupAssignmentsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete`: %v\n", resp) + // response from `SensorGroupAssignmentsPost`: SensorGroupAssignmentResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.SensorGroupAssignmentsPost`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupUid** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSensorGroupAssignmentsPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **sensorGroupAssignmentsPostRequest** | [**SensorGroupAssignmentsPostRequest**](SensorGroupAssignmentsPostRequest.md) | | ### Return type -**interface{}** +[**SensorGroupAssignmentResponse**](SensorGroupAssignmentResponse.md) ### Authorization @@ -645,7 +706,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -653,11 +714,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsGetNetworkingUxiV1alpha1GroupsGet +## SensorsGet -> GroupsGetResponse GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> SensorsResponse SensorsGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Groups Get +Sensors Get @@ -680,13 +741,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsGetNetworkingUxiV1alpha1GroupsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.SensorsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsGetNetworkingUxiV1alpha1GroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.SensorsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsGetNetworkingUxiV1alpha1GroupsGet`: GroupsGetResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsGetNetworkingUxiV1alpha1GroupsGet`: %v\n", resp) + // response from `SensorsGet`: SensorsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.SensorsGet`: %v\n", resp) } ``` @@ -696,7 +757,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSensorsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -707,7 +768,7 @@ Name | Type | Description | Notes ### Return type -[**GroupsGetResponse**](GroupsGetResponse.md) +[**SensorsResponse**](SensorsResponse.md) ### Authorization @@ -723,11 +784,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch +## SensorsPatch -> GroupsPatchResponse GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(ctx, groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() +> SensorsPatchResponse SensorsPatch(ctx, sensorUid).SensorsPatchRequest(sensorsPatchRequest).Execute() -Groups Patch +Sensors Patch @@ -744,18 +805,18 @@ import ( ) func main() { - groupUid := "groupUid_example" // string | - groupsPatchRequest := *openapiclient.NewGroupsPatchRequest("Name_example") // GroupsPatchRequest | + sensorUid := "sensorUid_example" // string | + sensorsPatchRequest := *openapiclient.NewSensorsPatchRequest() // SensorsPatchRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(context.Background(), groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.SensorsPatch(context.Background(), sensorUid).SensorsPatchRequest(sensorsPatchRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.SensorsPatch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch`: GroupsPatchResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch`: %v\n", resp) + // response from `SensorsPatch`: SensorsPatchResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.SensorsPatch`: %v\n", resp) } ``` @@ -765,21 +826,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupUid** | **string** | | +**sensorUid** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiSensorsPatchRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **groupsPatchRequest** | [**GroupsPatchRequest**](GroupsPatchRequest.md) | | + **sensorsPatchRequest** | [**SensorsPatchRequest**](SensorsPatchRequest.md) | | ### Return type -[**GroupsPatchResponse**](GroupsPatchResponse.md) +[**SensorsPatchResponse**](SensorsPatchResponse.md) ### Authorization @@ -795,11 +856,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsPostNetworkingUxiV1alpha1GroupsPost +## ServiceTestGroupAssignmentsDelete -> GroupsPostResponse GroupsPostNetworkingUxiV1alpha1GroupsPost(ctx).GroupsPostRequest(groupsPostRequest).Execute() +> interface{} ServiceTestGroupAssignmentsDelete(ctx, id).Execute() -Groups Post +Service Test Group Assignments Delete @@ -816,36 +877,40 @@ import ( ) func main() { - groupsPostRequest := *openapiclient.NewGroupsPostRequest("Name_example") // GroupsPostRequest | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsPostNetworkingUxiV1alpha1GroupsPost(context.Background()).GroupsPostRequest(groupsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.ServiceTestGroupAssignmentsDelete(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPostNetworkingUxiV1alpha1GroupsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestGroupAssignmentsDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsPostNetworkingUxiV1alpha1GroupsPost`: GroupsPostResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPostNetworkingUxiV1alpha1GroupsPost`: %v\n", resp) + // response from `ServiceTestGroupAssignmentsDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestGroupAssignmentsDelete`: %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 apiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiServiceTestGroupAssignmentsDeleteRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **groupsPostRequest** | [**GroupsPostRequest**](GroupsPostRequest.md) | | + ### Return type -[**GroupsPostResponse**](GroupsPostResponse.md) +**interface{}** ### Authorization @@ -853,7 +918,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -861,11 +926,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost +## ServiceTestGroupAssignmentsPost -> NetworkGroupAssignmentsPostResponse PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(ctx).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() +> ServiceTestGroupAssignmentsPostResponse ServiceTestGroupAssignmentsPost(ctx).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() -Post +Service Test Group Assignments Post @@ -882,17 +947,17 @@ import ( ) func main() { - networkGroupAssignmentsPostRequest := *openapiclient.NewNetworkGroupAssignmentsPostRequest("GroupId_example", "NetworkId_example") // NetworkGroupAssignmentsPostRequest | + serviceTestGroupAssignmentsPostRequest := *openapiclient.NewServiceTestGroupAssignmentsPostRequest("GroupId_example", "ServiceTestId_example") // ServiceTestGroupAssignmentsPostRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(context.Background()).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.ServiceTestGroupAssignmentsPost(context.Background()).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestGroupAssignmentsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost`: NetworkGroupAssignmentsPostResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost`: %v\n", resp) + // response from `ServiceTestGroupAssignmentsPost`: ServiceTestGroupAssignmentsPostResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestGroupAssignmentsPost`: %v\n", resp) } ``` @@ -902,16 +967,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiServiceTestGroupAssignmentsPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **networkGroupAssignmentsPostRequest** | [**NetworkGroupAssignmentsPostRequest**](NetworkGroupAssignmentsPostRequest.md) | | + **serviceTestGroupAssignmentsPostRequest** | [**ServiceTestGroupAssignmentsPostRequest**](ServiceTestGroupAssignmentsPostRequest.md) | | ### Return type -[**NetworkGroupAssignmentsPostResponse**](NetworkGroupAssignmentsPostResponse.md) +[**ServiceTestGroupAssignmentsPostResponse**](ServiceTestGroupAssignmentsPostResponse.md) ### Authorization @@ -927,11 +992,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost +## ServiceTestsGet -> SensorGroupAssignmentResponse PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(ctx).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() +> ServiceTestsListResponse ServiceTestsGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Post +Service Tests Get @@ -948,17 +1013,19 @@ import ( ) func main() { - sensorGroupAssignmentsPostRequest := *openapiclient.NewSensorGroupAssignmentsPostRequest("GroupId_example", "SensorId_example") // SensorGroupAssignmentsPostRequest | + 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.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(context.Background()).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.ServiceTestsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost`: SensorGroupAssignmentResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost`: %v\n", resp) + // response from `ServiceTestsGet`: ServiceTestsListResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestsGet`: %v\n", resp) } ``` @@ -968,16 +1035,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiServiceTestsGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sensorGroupAssignmentsPostRequest** | [**SensorGroupAssignmentsPostRequest**](SensorGroupAssignmentsPostRequest.md) | | + **id** | **string** | | + **next** | **string** | | + **limit** | **int32** | | [default to 50] ### Return type -[**SensorGroupAssignmentResponse**](SensorGroupAssignmentResponse.md) +[**ServiceTestsListResponse**](ServiceTestsListResponse.md) ### Authorization @@ -985,7 +1054,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -993,11 +1062,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost +## WiredNetworksGet -> ServiceTestGroupAssignmentsPostResponse PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() +> WiredNetworksResponse WiredNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Post +Wired Networks Get @@ -1014,17 +1083,19 @@ import ( ) func main() { - serviceTestGroupAssignmentsPostRequest := *openapiclient.NewServiceTestGroupAssignmentsPostRequest("GroupId_example", "ServiceTestId_example") // ServiceTestGroupAssignmentsPostRequest | + 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.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(context.Background()).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.WiredNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.WiredNetworksGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost`: ServiceTestGroupAssignmentsPostResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost`: %v\n", resp) + // response from `WiredNetworksGet`: WiredNetworksResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.WiredNetworksGet`: %v\n", resp) } ``` @@ -1034,16 +1105,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiWiredNetworksGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **serviceTestGroupAssignmentsPostRequest** | [**ServiceTestGroupAssignmentsPostRequest**](ServiceTestGroupAssignmentsPostRequest.md) | | + **id** | **string** | | + **next** | **string** | | + **limit** | **int32** | | [default to 50] ### Return type -[**ServiceTestGroupAssignmentsPostResponse**](ServiceTestGroupAssignmentsPostResponse.md) +[**WiredNetworksResponse**](WiredNetworksResponse.md) ### Authorization @@ -1051,7 +1124,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1059,11 +1132,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet +## WirelessNetworksGet -> ServiceTestsListResponse ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> WirelessNetworksResponse WirelessNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() -Service Tests Get +Wireless Networks Get @@ -1086,13 +1159,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.WirelessNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.WirelessNetworksGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet`: ServiceTestsListResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet`: %v\n", resp) + // response from `WirelessNetworksGet`: WirelessNetworksResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.WirelessNetworksGet`: %v\n", resp) } ``` @@ -1102,7 +1175,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiWirelessNetworksGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -1113,7 +1186,7 @@ Name | Type | Description | Notes ### Return type -[**ServiceTestsListResponse**](ServiceTestsListResponse.md) +[**WirelessNetworksResponse**](WirelessNetworksResponse.md) ### Authorization diff --git a/pkg/config-api-client/docs/SensorsPatchRequest.md b/pkg/config-api-client/docs/SensorsPatchRequest.md new file mode 100644 index 00000000..394fdcb5 --- /dev/null +++ b/pkg/config-api-client/docs/SensorsPatchRequest.md @@ -0,0 +1,154 @@ +# SensorsPatchRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**AddressNote** | Pointer to **NullableString** | | [optional] +**Notes** | Pointer to **NullableString** | | [optional] +**PcapMode** | Pointer to **string** | | [optional] + +## Methods + +### NewSensorsPatchRequest + +`func NewSensorsPatchRequest() *SensorsPatchRequest` + +NewSensorsPatchRequest instantiates a new SensorsPatchRequest 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 + +### NewSensorsPatchRequestWithDefaults + +`func NewSensorsPatchRequestWithDefaults() *SensorsPatchRequest` + +NewSensorsPatchRequestWithDefaults instantiates a new SensorsPatchRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SensorsPatchRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SensorsPatchRequest) 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 *SensorsPatchRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SensorsPatchRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAddressNote + +`func (o *SensorsPatchRequest) GetAddressNote() string` + +GetAddressNote returns the AddressNote field if non-nil, zero value otherwise. + +### GetAddressNoteOk + +`func (o *SensorsPatchRequest) GetAddressNoteOk() (*string, bool)` + +GetAddressNoteOk returns a tuple with the AddressNote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddressNote + +`func (o *SensorsPatchRequest) SetAddressNote(v string)` + +SetAddressNote sets AddressNote field to given value. + +### HasAddressNote + +`func (o *SensorsPatchRequest) HasAddressNote() bool` + +HasAddressNote returns a boolean if a field has been set. + +### SetAddressNoteNil + +`func (o *SensorsPatchRequest) SetAddressNoteNil(b bool)` + + SetAddressNoteNil sets the value for AddressNote to be an explicit nil + +### UnsetAddressNote +`func (o *SensorsPatchRequest) UnsetAddressNote()` + +UnsetAddressNote ensures that no value is present for AddressNote, not even an explicit nil +### GetNotes + +`func (o *SensorsPatchRequest) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *SensorsPatchRequest) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *SensorsPatchRequest) SetNotes(v string)` + +SetNotes sets Notes field to given value. + +### HasNotes + +`func (o *SensorsPatchRequest) HasNotes() bool` + +HasNotes returns a boolean if a field has been set. + +### SetNotesNil + +`func (o *SensorsPatchRequest) SetNotesNil(b bool)` + + SetNotesNil sets the value for Notes to be an explicit nil + +### UnsetNotes +`func (o *SensorsPatchRequest) UnsetNotes()` + +UnsetNotes ensures that no value is present for Notes, not even an explicit nil +### GetPcapMode + +`func (o *SensorsPatchRequest) GetPcapMode() string` + +GetPcapMode returns the PcapMode field if non-nil, zero value otherwise. + +### GetPcapModeOk + +`func (o *SensorsPatchRequest) GetPcapModeOk() (*string, bool)` + +GetPcapModeOk returns a tuple with the PcapMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPcapMode + +`func (o *SensorsPatchRequest) SetPcapMode(v string)` + +SetPcapMode sets PcapMode field to given value. + +### HasPcapMode + +`func (o *SensorsPatchRequest) HasPcapMode() bool` + +HasPcapMode 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/SensorsPatchResponse.md b/pkg/config-api-client/docs/SensorsPatchResponse.md new file mode 100644 index 00000000..140f71c9 --- /dev/null +++ b/pkg/config-api-client/docs/SensorsPatchResponse.md @@ -0,0 +1,362 @@ +# SensorsPatchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Serial** | **string** | | +**Name** | **string** | | +**ModelNumber** | **NullableString** | | +**WifiMacAddress** | **NullableString** | | +**EthernetMacAddress** | **NullableString** | | +**AddressNote** | **NullableString** | | +**Longitude** | **NullableFloat32** | | +**Latitude** | **NullableFloat32** | | +**Notes** | **NullableString** | | +**PcapMode** | **NullableString** | | +**Type** | **string** | | + +## Methods + +### NewSensorsPatchResponse + +`func NewSensorsPatchResponse(id string, serial string, name string, modelNumber NullableString, wifiMacAddress NullableString, ethernetMacAddress NullableString, addressNote NullableString, longitude NullableFloat32, latitude NullableFloat32, notes NullableString, pcapMode NullableString, type_ string, ) *SensorsPatchResponse` + +NewSensorsPatchResponse instantiates a new SensorsPatchResponse 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 + +### NewSensorsPatchResponseWithDefaults + +`func NewSensorsPatchResponseWithDefaults() *SensorsPatchResponse` + +NewSensorsPatchResponseWithDefaults instantiates a new SensorsPatchResponse 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 *SensorsPatchResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SensorsPatchResponse) 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 *SensorsPatchResponse) SetId(v string)` + +SetId sets Id field to given value. + + +### GetSerial + +`func (o *SensorsPatchResponse) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *SensorsPatchResponse) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *SensorsPatchResponse) SetSerial(v string)` + +SetSerial sets Serial field to given value. + + +### GetName + +`func (o *SensorsPatchResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SensorsPatchResponse) 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 *SensorsPatchResponse) SetName(v string)` + +SetName sets Name field to given value. + + +### GetModelNumber + +`func (o *SensorsPatchResponse) GetModelNumber() string` + +GetModelNumber returns the ModelNumber field if non-nil, zero value otherwise. + +### GetModelNumberOk + +`func (o *SensorsPatchResponse) GetModelNumberOk() (*string, bool)` + +GetModelNumberOk returns a tuple with the ModelNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModelNumber + +`func (o *SensorsPatchResponse) SetModelNumber(v string)` + +SetModelNumber sets ModelNumber field to given value. + + +### SetModelNumberNil + +`func (o *SensorsPatchResponse) SetModelNumberNil(b bool)` + + SetModelNumberNil sets the value for ModelNumber to be an explicit nil + +### UnsetModelNumber +`func (o *SensorsPatchResponse) UnsetModelNumber()` + +UnsetModelNumber ensures that no value is present for ModelNumber, not even an explicit nil +### GetWifiMacAddress + +`func (o *SensorsPatchResponse) GetWifiMacAddress() string` + +GetWifiMacAddress returns the WifiMacAddress field if non-nil, zero value otherwise. + +### GetWifiMacAddressOk + +`func (o *SensorsPatchResponse) GetWifiMacAddressOk() (*string, bool)` + +GetWifiMacAddressOk returns a tuple with the WifiMacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWifiMacAddress + +`func (o *SensorsPatchResponse) SetWifiMacAddress(v string)` + +SetWifiMacAddress sets WifiMacAddress field to given value. + + +### SetWifiMacAddressNil + +`func (o *SensorsPatchResponse) SetWifiMacAddressNil(b bool)` + + SetWifiMacAddressNil sets the value for WifiMacAddress to be an explicit nil + +### UnsetWifiMacAddress +`func (o *SensorsPatchResponse) UnsetWifiMacAddress()` + +UnsetWifiMacAddress ensures that no value is present for WifiMacAddress, not even an explicit nil +### GetEthernetMacAddress + +`func (o *SensorsPatchResponse) GetEthernetMacAddress() string` + +GetEthernetMacAddress returns the EthernetMacAddress field if non-nil, zero value otherwise. + +### GetEthernetMacAddressOk + +`func (o *SensorsPatchResponse) GetEthernetMacAddressOk() (*string, bool)` + +GetEthernetMacAddressOk returns a tuple with the EthernetMacAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEthernetMacAddress + +`func (o *SensorsPatchResponse) SetEthernetMacAddress(v string)` + +SetEthernetMacAddress sets EthernetMacAddress field to given value. + + +### SetEthernetMacAddressNil + +`func (o *SensorsPatchResponse) SetEthernetMacAddressNil(b bool)` + + SetEthernetMacAddressNil sets the value for EthernetMacAddress to be an explicit nil + +### UnsetEthernetMacAddress +`func (o *SensorsPatchResponse) UnsetEthernetMacAddress()` + +UnsetEthernetMacAddress ensures that no value is present for EthernetMacAddress, not even an explicit nil +### GetAddressNote + +`func (o *SensorsPatchResponse) GetAddressNote() string` + +GetAddressNote returns the AddressNote field if non-nil, zero value otherwise. + +### GetAddressNoteOk + +`func (o *SensorsPatchResponse) GetAddressNoteOk() (*string, bool)` + +GetAddressNoteOk returns a tuple with the AddressNote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddressNote + +`func (o *SensorsPatchResponse) SetAddressNote(v string)` + +SetAddressNote sets AddressNote field to given value. + + +### SetAddressNoteNil + +`func (o *SensorsPatchResponse) SetAddressNoteNil(b bool)` + + SetAddressNoteNil sets the value for AddressNote to be an explicit nil + +### UnsetAddressNote +`func (o *SensorsPatchResponse) UnsetAddressNote()` + +UnsetAddressNote ensures that no value is present for AddressNote, not even an explicit nil +### GetLongitude + +`func (o *SensorsPatchResponse) GetLongitude() float32` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *SensorsPatchResponse) GetLongitudeOk() (*float32, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *SensorsPatchResponse) SetLongitude(v float32)` + +SetLongitude sets Longitude field to given value. + + +### SetLongitudeNil + +`func (o *SensorsPatchResponse) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *SensorsPatchResponse) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetLatitude + +`func (o *SensorsPatchResponse) GetLatitude() float32` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *SensorsPatchResponse) GetLatitudeOk() (*float32, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *SensorsPatchResponse) SetLatitude(v float32)` + +SetLatitude sets Latitude field to given value. + + +### SetLatitudeNil + +`func (o *SensorsPatchResponse) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *SensorsPatchResponse) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetNotes + +`func (o *SensorsPatchResponse) GetNotes() string` + +GetNotes returns the Notes field if non-nil, zero value otherwise. + +### GetNotesOk + +`func (o *SensorsPatchResponse) GetNotesOk() (*string, bool)` + +GetNotesOk returns a tuple with the Notes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotes + +`func (o *SensorsPatchResponse) SetNotes(v string)` + +SetNotes sets Notes field to given value. + + +### SetNotesNil + +`func (o *SensorsPatchResponse) SetNotesNil(b bool)` + + SetNotesNil sets the value for Notes to be an explicit nil + +### UnsetNotes +`func (o *SensorsPatchResponse) UnsetNotes()` + +UnsetNotes ensures that no value is present for Notes, not even an explicit nil +### GetPcapMode + +`func (o *SensorsPatchResponse) GetPcapMode() string` + +GetPcapMode returns the PcapMode field if non-nil, zero value otherwise. + +### GetPcapModeOk + +`func (o *SensorsPatchResponse) GetPcapModeOk() (*string, bool)` + +GetPcapModeOk returns a tuple with the PcapMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPcapMode + +`func (o *SensorsPatchResponse) SetPcapMode(v string)` + +SetPcapMode sets PcapMode field to given value. + + +### SetPcapModeNil + +`func (o *SensorsPatchResponse) SetPcapModeNil(b bool)` + + SetPcapModeNil sets the value for PcapMode to be an explicit nil + +### UnsetPcapMode +`func (o *SensorsPatchResponse) UnsetPcapMode()` + +UnsetPcapMode ensures that no value is present for PcapMode, not even an explicit nil +### GetType + +`func (o *SensorsPatchResponse) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SensorsPatchResponse) 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 *SensorsPatchResponse) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/pkg/config-api-client/model_error_detail.go b/pkg/config-api-client/model_error_detail.go index 49b79beb..d8a664c5 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: 3.0.0 +API version: 4.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 ada071b9..3cbd0853 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_group.go b/pkg/config-api-client/model_group.go index befc26f4..6142d760 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: 3.0.0 +API version: 4.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 5a9170af..a38218cd 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: 3.0.0 +API version: 4.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 3523537e..feb80bd6 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: 3.0.0 +API version: 4.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 f15aa9da..39200791 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: 3.0.0 +API version: 4.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 df3c2f83..f0d70a69 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: 3.0.0 +API version: 4.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 47b8d2ba..3cc0828e 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: 3.0.0 +API version: 4.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 359fc3a2..763e408c 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: 3.0.0 +API version: 4.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 cae2cac9..a2c4175b 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: 3.0.0 +API version: 4.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 ee89c640..31ea9b9a 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: 3.0.0 +API version: 4.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 53f83d3c..194e0ae2 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: 3.0.0 +API version: 4.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 6733a264..ccd7187e 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: 3.0.0 +API version: 4.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 85c4caa9..70c547ad 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: 3.0.0 +API version: 4.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 dc6f3d1e..8bb8f1b1 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: 3.0.0 +API version: 4.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 444d175f..7eaa75c2 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: 3.0.0 +API version: 4.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 787fd65e..8ae89e37 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: 3.0.0 +API version: 4.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 3fd9ccdd..72b5daa6 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: 3.0.0 +API version: 4.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 b07e4fdf..85023589 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: 3.0.0 +API version: 4.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 28771c4d..7392d87e 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: 3.0.0 +API version: 4.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 e4eee392..8675446e 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: 3.0.0 +API version: 4.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 455a7ee7..4d220ad1 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: 3.0.0 +API version: 4.0.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 5bb2c3ba..6294ab8e 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_sensors_patch_request.go b/pkg/config-api-client/model_sensors_patch_request.go new file mode 100644 index 00000000..aaf9c96f --- /dev/null +++ b/pkg/config-api-client/model_sensors_patch_request.go @@ -0,0 +1,255 @@ +/* +Configuration Api + +Nice description goes here + +API version: 4.0.0 +Contact: support@capenetworks.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package config_api_client + +import ( + "encoding/json" +) + +// checks if the SensorsPatchRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SensorsPatchRequest{} + +// SensorsPatchRequest struct for SensorsPatchRequest +type SensorsPatchRequest struct { + Name *string `json:"name,omitempty"` + AddressNote NullableString `json:"address_note,omitempty"` + Notes NullableString `json:"notes,omitempty"` + PcapMode *string `json:"pcap_mode,omitempty"` +} + +// NewSensorsPatchRequest instantiates a new SensorsPatchRequest 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 NewSensorsPatchRequest() *SensorsPatchRequest { + this := SensorsPatchRequest{} + return &this +} + +// NewSensorsPatchRequestWithDefaults instantiates a new SensorsPatchRequest 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 NewSensorsPatchRequestWithDefaults() *SensorsPatchRequest { + this := SensorsPatchRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SensorsPatchRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SensorsPatchRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SensorsPatchRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SensorsPatchRequest) SetName(v string) { + o.Name = &v +} + +// GetAddressNote returns the AddressNote field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SensorsPatchRequest) GetAddressNote() string { + if o == nil || IsNil(o.AddressNote.Get()) { + var ret string + return ret + } + return *o.AddressNote.Get() +} + +// GetAddressNoteOk returns a tuple with the AddressNote 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 *SensorsPatchRequest) GetAddressNoteOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AddressNote.Get(), o.AddressNote.IsSet() +} + +// HasAddressNote returns a boolean if a field has been set. +func (o *SensorsPatchRequest) HasAddressNote() bool { + if o != nil && o.AddressNote.IsSet() { + return true + } + + return false +} + +// SetAddressNote gets a reference to the given NullableString and assigns it to the AddressNote field. +func (o *SensorsPatchRequest) SetAddressNote(v string) { + o.AddressNote.Set(&v) +} + +// SetAddressNoteNil sets the value for AddressNote to be an explicit nil +func (o *SensorsPatchRequest) SetAddressNoteNil() { + o.AddressNote.Set(nil) +} + +// UnsetAddressNote ensures that no value is present for AddressNote, not even an explicit nil +func (o *SensorsPatchRequest) UnsetAddressNote() { + o.AddressNote.Unset() +} + +// GetNotes returns the Notes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SensorsPatchRequest) GetNotes() string { + if o == nil || IsNil(o.Notes.Get()) { + var ret string + return ret + } + return *o.Notes.Get() +} + +// GetNotesOk returns a tuple with the Notes 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 *SensorsPatchRequest) GetNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Notes.Get(), o.Notes.IsSet() +} + +// HasNotes returns a boolean if a field has been set. +func (o *SensorsPatchRequest) HasNotes() bool { + if o != nil && o.Notes.IsSet() { + return true + } + + return false +} + +// SetNotes gets a reference to the given NullableString and assigns it to the Notes field. +func (o *SensorsPatchRequest) SetNotes(v string) { + o.Notes.Set(&v) +} + +// SetNotesNil sets the value for Notes to be an explicit nil +func (o *SensorsPatchRequest) SetNotesNil() { + o.Notes.Set(nil) +} + +// UnsetNotes ensures that no value is present for Notes, not even an explicit nil +func (o *SensorsPatchRequest) UnsetNotes() { + o.Notes.Unset() +} + +// GetPcapMode returns the PcapMode field value if set, zero value otherwise. +func (o *SensorsPatchRequest) GetPcapMode() string { + if o == nil || IsNil(o.PcapMode) { + var ret string + return ret + } + return *o.PcapMode +} + +// GetPcapModeOk returns a tuple with the PcapMode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SensorsPatchRequest) GetPcapModeOk() (*string, bool) { + if o == nil || IsNil(o.PcapMode) { + return nil, false + } + return o.PcapMode, true +} + +// HasPcapMode returns a boolean if a field has been set. +func (o *SensorsPatchRequest) HasPcapMode() bool { + if o != nil && !IsNil(o.PcapMode) { + return true + } + + return false +} + +// SetPcapMode gets a reference to the given string and assigns it to the PcapMode field. +func (o *SensorsPatchRequest) SetPcapMode(v string) { + o.PcapMode = &v +} + +func (o SensorsPatchRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SensorsPatchRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if o.AddressNote.IsSet() { + toSerialize["address_note"] = o.AddressNote.Get() + } + if o.Notes.IsSet() { + toSerialize["notes"] = o.Notes.Get() + } + if !IsNil(o.PcapMode) { + toSerialize["pcap_mode"] = o.PcapMode + } + return toSerialize, nil +} + +type NullableSensorsPatchRequest struct { + value *SensorsPatchRequest + isSet bool +} + +func (v NullableSensorsPatchRequest) Get() *SensorsPatchRequest { + return v.value +} + +func (v *NullableSensorsPatchRequest) Set(val *SensorsPatchRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSensorsPatchRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSensorsPatchRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSensorsPatchRequest(val *SensorsPatchRequest) *NullableSensorsPatchRequest { + return &NullableSensorsPatchRequest{value: val, isSet: true} +} + +func (v NullableSensorsPatchRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSensorsPatchRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/config-api-client/model_sensors_patch_response.go b/pkg/config-api-client/model_sensors_patch_response.go new file mode 100644 index 00000000..ed988134 --- /dev/null +++ b/pkg/config-api-client/model_sensors_patch_response.go @@ -0,0 +1,481 @@ +/* +Configuration Api + +Nice description goes here + +API version: 4.0.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 SensorsPatchResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SensorsPatchResponse{} + +// SensorsPatchResponse struct for SensorsPatchResponse +type SensorsPatchResponse struct { + Id string `json:"id"` + Serial string `json:"serial"` + Name string `json:"name"` + ModelNumber NullableString `json:"modelNumber"` + WifiMacAddress NullableString `json:"wifiMacAddress"` + EthernetMacAddress NullableString `json:"ethernetMacAddress"` + AddressNote NullableString `json:"addressNote"` + Longitude NullableFloat32 `json:"longitude"` + Latitude NullableFloat32 `json:"latitude"` + Notes NullableString `json:"notes"` + PcapMode NullableString `json:"pcapMode"` + Type string `json:"type"` +} + +type _SensorsPatchResponse SensorsPatchResponse + +// NewSensorsPatchResponse instantiates a new SensorsPatchResponse 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 NewSensorsPatchResponse(id string, serial string, name string, modelNumber NullableString, wifiMacAddress NullableString, ethernetMacAddress NullableString, addressNote NullableString, longitude NullableFloat32, latitude NullableFloat32, notes NullableString, pcapMode NullableString, type_ string) *SensorsPatchResponse { + this := SensorsPatchResponse{} + this.Id = id + this.Serial = serial + this.Name = name + this.ModelNumber = modelNumber + this.WifiMacAddress = wifiMacAddress + this.EthernetMacAddress = ethernetMacAddress + this.AddressNote = addressNote + this.Longitude = longitude + this.Latitude = latitude + this.Notes = notes + this.PcapMode = pcapMode + this.Type = type_ + return &this +} + +// NewSensorsPatchResponseWithDefaults instantiates a new SensorsPatchResponse 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 NewSensorsPatchResponseWithDefaults() *SensorsPatchResponse { + this := SensorsPatchResponse{} + return &this +} + +// GetId returns the Id field value +func (o *SensorsPatchResponse) 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 *SensorsPatchResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SensorsPatchResponse) SetId(v string) { + o.Id = v +} + +// GetSerial returns the Serial field value +func (o *SensorsPatchResponse) GetSerial() string { + if o == nil { + var ret string + return ret + } + + return o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value +// and a boolean to check if the value has been set. +func (o *SensorsPatchResponse) GetSerialOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Serial, true +} + +// SetSerial sets field value +func (o *SensorsPatchResponse) SetSerial(v string) { + o.Serial = v +} + +// GetName returns the Name field value +func (o *SensorsPatchResponse) 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 *SensorsPatchResponse) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SensorsPatchResponse) SetName(v string) { + o.Name = v +} + +// GetModelNumber returns the ModelNumber field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SensorsPatchResponse) GetModelNumber() string { + if o == nil || o.ModelNumber.Get() == nil { + var ret string + return ret + } + + return *o.ModelNumber.Get() +} + +// GetModelNumberOk returns a tuple with the ModelNumber 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 *SensorsPatchResponse) GetModelNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ModelNumber.Get(), o.ModelNumber.IsSet() +} + +// SetModelNumber sets field value +func (o *SensorsPatchResponse) SetModelNumber(v string) { + o.ModelNumber.Set(&v) +} + +// GetWifiMacAddress returns the WifiMacAddress field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SensorsPatchResponse) GetWifiMacAddress() string { + if o == nil || o.WifiMacAddress.Get() == nil { + var ret string + return ret + } + + return *o.WifiMacAddress.Get() +} + +// GetWifiMacAddressOk returns a tuple with the WifiMacAddress 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 *SensorsPatchResponse) GetWifiMacAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.WifiMacAddress.Get(), o.WifiMacAddress.IsSet() +} + +// SetWifiMacAddress sets field value +func (o *SensorsPatchResponse) SetWifiMacAddress(v string) { + o.WifiMacAddress.Set(&v) +} + +// GetEthernetMacAddress returns the EthernetMacAddress field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SensorsPatchResponse) GetEthernetMacAddress() string { + if o == nil || o.EthernetMacAddress.Get() == nil { + var ret string + return ret + } + + return *o.EthernetMacAddress.Get() +} + +// GetEthernetMacAddressOk returns a tuple with the EthernetMacAddress 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 *SensorsPatchResponse) GetEthernetMacAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.EthernetMacAddress.Get(), o.EthernetMacAddress.IsSet() +} + +// SetEthernetMacAddress sets field value +func (o *SensorsPatchResponse) SetEthernetMacAddress(v string) { + o.EthernetMacAddress.Set(&v) +} + +// GetAddressNote returns the AddressNote field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SensorsPatchResponse) GetAddressNote() string { + if o == nil || o.AddressNote.Get() == nil { + var ret string + return ret + } + + return *o.AddressNote.Get() +} + +// GetAddressNoteOk returns a tuple with the AddressNote 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 *SensorsPatchResponse) GetAddressNoteOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AddressNote.Get(), o.AddressNote.IsSet() +} + +// SetAddressNote sets field value +func (o *SensorsPatchResponse) SetAddressNote(v string) { + o.AddressNote.Set(&v) +} + +// GetLongitude returns the Longitude field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *SensorsPatchResponse) GetLongitude() float32 { + if o == nil || o.Longitude.Get() == nil { + var ret float32 + return ret + } + + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude 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 *SensorsPatchResponse) GetLongitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// SetLongitude sets field value +func (o *SensorsPatchResponse) SetLongitude(v float32) { + o.Longitude.Set(&v) +} + +// GetLatitude returns the Latitude field value +// If the value is explicit nil, the zero value for float32 will be returned +func (o *SensorsPatchResponse) GetLatitude() float32 { + if o == nil || o.Latitude.Get() == nil { + var ret float32 + return ret + } + + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude 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 *SensorsPatchResponse) GetLatitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// SetLatitude sets field value +func (o *SensorsPatchResponse) SetLatitude(v float32) { + o.Latitude.Set(&v) +} + +// GetNotes returns the Notes field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SensorsPatchResponse) GetNotes() string { + if o == nil || o.Notes.Get() == nil { + var ret string + return ret + } + + return *o.Notes.Get() +} + +// GetNotesOk returns a tuple with the Notes 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 *SensorsPatchResponse) GetNotesOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Notes.Get(), o.Notes.IsSet() +} + +// SetNotes sets field value +func (o *SensorsPatchResponse) SetNotes(v string) { + o.Notes.Set(&v) +} + +// GetPcapMode returns the PcapMode field value +// If the value is explicit nil, the zero value for string will be returned +func (o *SensorsPatchResponse) GetPcapMode() string { + if o == nil || o.PcapMode.Get() == nil { + var ret string + return ret + } + + return *o.PcapMode.Get() +} + +// GetPcapModeOk returns a tuple with the PcapMode 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 *SensorsPatchResponse) GetPcapModeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PcapMode.Get(), o.PcapMode.IsSet() +} + +// SetPcapMode sets field value +func (o *SensorsPatchResponse) SetPcapMode(v string) { + o.PcapMode.Set(&v) +} + +// GetType returns the Type field value +func (o *SensorsPatchResponse) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *SensorsPatchResponse) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *SensorsPatchResponse) SetType(v string) { + o.Type = v +} + +func (o SensorsPatchResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SensorsPatchResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["serial"] = o.Serial + toSerialize["name"] = o.Name + toSerialize["modelNumber"] = o.ModelNumber.Get() + toSerialize["wifiMacAddress"] = o.WifiMacAddress.Get() + toSerialize["ethernetMacAddress"] = o.EthernetMacAddress.Get() + toSerialize["addressNote"] = o.AddressNote.Get() + toSerialize["longitude"] = o.Longitude.Get() + toSerialize["latitude"] = o.Latitude.Get() + toSerialize["notes"] = o.Notes.Get() + toSerialize["pcapMode"] = o.PcapMode.Get() + toSerialize["type"] = o.Type + return toSerialize, nil +} + +func (o *SensorsPatchResponse) 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", + "serial", + "name", + "modelNumber", + "wifiMacAddress", + "ethernetMacAddress", + "addressNote", + "longitude", + "latitude", + "notes", + "pcapMode", + "type", + } + + 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) + } + } + + varSensorsPatchResponse := _SensorsPatchResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSensorsPatchResponse) + + if err != nil { + return err + } + + *o = SensorsPatchResponse(varSensorsPatchResponse) + + return err +} + +type NullableSensorsPatchResponse struct { + value *SensorsPatchResponse + isSet bool +} + +func (v NullableSensorsPatchResponse) Get() *SensorsPatchResponse { + return v.value +} + +func (v *NullableSensorsPatchResponse) Set(val *SensorsPatchResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSensorsPatchResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSensorsPatchResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSensorsPatchResponse(val *SensorsPatchResponse) *NullableSensorsPatchResponse { + return &NullableSensorsPatchResponse{value: val, isSet: true} +} + +func (v NullableSensorsPatchResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSensorsPatchResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/config-api-client/model_sensors_response.go b/pkg/config-api-client/model_sensors_response.go index 7f6cd730..4c116195 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: 3.0.0 +API version: 4.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 e28edad7..32285c22 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: 3.0.0 +API version: 4.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 c4d31eba..a63abf8b 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: 3.0.0 +API version: 4.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 a2cb3713..58f75a6a 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: 3.0.0 +API version: 4.0.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 index c298302b..6d27ca2d 100644 --- a/pkg/config-api-client/model_service_tests_list_item.go +++ b/pkg/config-api-client/model_service_tests_list_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_service_tests_list_response.go b/pkg/config-api-client/model_service_tests_list_response.go index 4cd5993d..f5073cf0 100644 --- a/pkg/config-api-client/model_service_tests_list_response.go +++ b/pkg/config-api-client/model_service_tests_list_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 3.0.0 +API version: 4.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 b9b68b7e..b27932c0 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: 3.0.0 +API version: 4.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 92e190cf..14480a47 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: 3.0.0 +API version: 4.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 c060b745..b4fca5dc 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: 3.0.0 +API version: 4.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 dc435d3c..0613b362 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/response.go b/pkg/config-api-client/response.go index 0865c790..ff7c2d2f 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: 3.0.0 +API version: 4.0.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 e11ca343..bcfb39fd 100644 --- a/pkg/config-api-client/test/api_configuration_test.go +++ b/pkg/config-api-client/test/api_configuration_test.go @@ -20,7 +20,7 @@ func TestConfigurationAPI(t *testing.T) { defer gock.Off() - t.Run("Test ConfigurationAPI GroupsGetNetworkingUxiV1alpha1GroupsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsGet", func(t *testing.T) { parent_uid := "parent_uid" gock.New(configuration.Scheme + "://" + configuration.Host). Get("/networking-uxi/v1alpha1/groups"). @@ -40,7 +40,7 @@ func TestConfigurationAPI(t *testing.T) { "count": 1, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GroupsGetNetworkingUxiV1alpha1GroupsGet(context.Background()). + GroupsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -63,12 +63,10 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI GroupsPostNetworkingUxiV1alpha1GroupsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Post("/networking-uxi/v1alpha1/groups"). - MatchType("json"). - BodyString(`{"parentId": "parent.uid", "name": "name"}`). JSON(map[string]interface{}{ "name": "name", "parentId": "parent.uid", @@ -84,7 +82,7 @@ func TestConfigurationAPI(t *testing.T) { groupsPostRequest := openapiclient.NewGroupsPostRequest("name") groupsPostRequest.SetParentId("parent.uid") resp, httpRes, err := apiClient.ConfigurationAPI. - GroupsPostNetworkingUxiV1alpha1GroupsPost(context.Background()). + GroupsPost(context.Background()). GroupsPostRequest(*groupsPostRequest).Execute() require.Nil(t, err) @@ -98,14 +96,10 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch", func(t *testing.T) { - gock.New(configuration.Scheme + "://" + configuration.Host). + t.Run("Test ConfigurationAPI GroupsPatch", func(t *testing.T) { + gock.New(configuration.Scheme+"://"+configuration.Host). Patch("/networking-uxi/v1alpha1/groups/node"). - MatchType("json"). - BodyString(`{"name": "new_name"}`). - JSON(map[string]interface{}{ - "name": "new_name", - }). + MatchHeader("Content-Type", "application/merge-patch+json"). Reply(200). JSON(map[string]interface{}{ "id": "node", @@ -116,7 +110,7 @@ func TestConfigurationAPI(t *testing.T) { }) groupsPatchRequest := openapiclient.NewGroupsPatchRequest("new_name") resp, httpRes, err := apiClient.ConfigurationAPI. - GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(context.Background(), "node"). + GroupsPatch(context.Background(), "node"). GroupsPatchRequest(*groupsPatchRequest).Execute() require.Nil(t, err) @@ -130,20 +124,20 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Delete("/networking-uxi/v1alpha1/groups/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(context.Background(), "uid"). + GroupsDelete(context.Background(), "uid"). Execute() require.Nil(t, err) assert.Equal(t, 204, httpRes.StatusCode) }) - t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1SensorsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI SensorsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/networking-uxi/v1alpha1/sensors"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). @@ -170,7 +164,7 @@ func TestConfigurationAPI(t *testing.T) { }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetNetworkingUxiV1alpha1SensorsGet(context.Background()). + SensorsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -209,7 +203,72 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsPatch", func(t *testing.T) { + gock.New(configuration.Scheme + "://" + configuration.Host). + Patch("/networking-uxi/v1alpha1/sensors/uid"). + // TODO: uncomment this once spec has been updated to merge-patch+json + // MatchHeader("Content-Type", "application/merge-patch+json"). + // TODO: Change these fields to camelCase once the spec has been updated + BodyString(`{"name":"new_name","address_note":"new_address_note","notes":"new_notes","pcap_mode":"off"}`). + Reply(200). + JSON(map[string]interface{}{ + "id": "uid", + "serial": "serial", + "name": "new_name", + "modelNumber": "model_number", + "wifiMacAddress": "wifi_mac_address", + "ethernetMacAddress": "ethernet_mac_address", + "addressNote": "new_address_note", + "longitude": 0.0, + "latitude": 0.0, + "notes": "new_notes", + "pcapMode": "off", + "type": "networking-uxi/sensor", + }, + ) + name := "new_name" + addressNote := "new_address_note" + notes := "new_notes" + pcapMode := "off" + sensorsPatchRequest := openapiclient.SensorsPatchRequest{ + Name: &name, + AddressNote: *openapiclient.NewNullableString(&addressNote), + Notes: *openapiclient.NewNullableString(¬es), + PcapMode: &pcapMode, + } + resp, httpRes, err := apiClient.ConfigurationAPI. + SensorsPatch(context.Background(), "uid"). + SensorsPatchRequest(sensorsPatchRequest). + Execute() + + ModelNumber := "model_number" + WifiMacAddress := "wifi_mac_address" + EthernetMacAddress := "ethernet_mac_address" + AddressNote := "new_address_note" + var Longitude float32 = 0.0 + var Latitude float32 = 0.0 + Notes := "new_notes" + PcapMode := "off" + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + assert.Equal(t, resp, &openapiclient.SensorsPatchResponse{ + Id: "uid", + Serial: "serial", + Name: "new_name", + ModelNumber: *openapiclient.NewNullableString(&ModelNumber), + WifiMacAddress: *openapiclient.NewNullableString(&WifiMacAddress), + EthernetMacAddress: *openapiclient.NewNullableString(&EthernetMacAddress), + AddressNote: *openapiclient.NewNullableString(&AddressNote), + Longitude: *openapiclient.NewNullableFloat32(&Longitude), + Latitude: *openapiclient.NewNullableFloat32(&Latitude), + Notes: *openapiclient.NewNullableString(&Notes), + PcapMode: *openapiclient.NewNullableString(&PcapMode), + Type: "networking-uxi/sensor", + }) + }) + + t.Run("Test ConfigurationAPI SensorGroupAssignmentsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/networking-uxi/v1alpha1/sensor-group-assignments"). @@ -228,7 +287,7 @@ func TestConfigurationAPI(t *testing.T) { "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(context.Background()). + SensorGroupAssignmentsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -250,12 +309,10 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI SensorGroupAssignmentsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Post("/networking-uxi/v1alpha1/sensor-group-assignments"). - MatchType("json"). - BodyString(`{"groupId": "group_uid", "sensorId": "sensor_uid"}`). JSON(map[string]interface{}{ "groupId": "group_uid", "sensorId": "sensor_uid", @@ -270,7 +327,7 @@ func TestConfigurationAPI(t *testing.T) { postRequest := openapiclient.NewSensorGroupAssignmentsPostRequest("group_uid", "sensor_uid") resp, httpRes, err := apiClient.ConfigurationAPI. - PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(context.Background()). + SensorGroupAssignmentsPost(context.Background()). SensorGroupAssignmentsPostRequest(*postRequest). Execute() @@ -284,20 +341,20 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI SensorGroupAssignmentsDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Delete("/networking-uxi/v1alpha1/sensor-group-assignments/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(context.Background(), "uid"). + SensorGroupAssignmentsDelete(context.Background(), "uid"). Execute() require.Nil(t, err) assert.Equal(t, 204, httpRes.StatusCode) }) - t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1WiredNetworksGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI WiredNetworksGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/networking-uxi/v1alpha1/wired-networks"). @@ -324,7 +381,7 @@ func TestConfigurationAPI(t *testing.T) { "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetNetworkingUxiV1alpha1WiredNetworksGet(context.Background()). + WiredNetworksGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -358,7 +415,7 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1WirelessNetworksGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI WirelessNetworksGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/networking-uxi/v1alpha1/wireless-networks"). @@ -387,7 +444,7 @@ func TestConfigurationAPI(t *testing.T) { "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetNetworkingUxiV1alpha1WirelessNetworksGet(context.Background()). + WirelessNetworksGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -422,7 +479,7 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI NetworkGroupAssignmentsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Get("/networking-uxi/v1alpha1/network-group-assignments"). @@ -441,7 +498,7 @@ func TestConfigurationAPI(t *testing.T) { "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()). + NetworkGroupAssignmentsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -463,12 +520,10 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI NetworkGroupAssignmentsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Post("/networking-uxi/v1alpha1/network-group-assignments"). - MatchType("json"). - BodyString(`{"groupId": "group_uid", "networkId": "network_uid"}`). JSON(map[string]interface{}{ "groupId": "group_uid", "networkId": "network_uid", @@ -483,7 +538,7 @@ func TestConfigurationAPI(t *testing.T) { postRequest := openapiclient.NewNetworkGroupAssignmentsPostRequest("group_uid", "network_uid") resp, httpRes, err := apiClient.ConfigurationAPI. - PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(context.Background()). + NetworkGroupAssignmentsPost(context.Background()). NetworkGroupAssignmentsPostRequest(*postRequest). Execute() @@ -497,25 +552,23 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI NetworkGroupAssignmentsDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Delete("/networking-uxi/v1alpha1/network-group-assignments/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(context.Background(), "uid"). + NetworkGroupAssignmentsDelete(context.Background(), "uid"). Execute() require.Nil(t, err) assert.Equal(t, 204, httpRes.StatusCode) }) - t.Run("Test ConfigurationAPI PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI ServiceTestGroupAssignmentsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Post("/networking-uxi/v1alpha1/service-test-group-assignments"). - MatchType("json"). - BodyString(`{"groupId": "group_uid", "serviceTestId": "service_test_uid"}`). JSON(map[string]interface{}{ "groupId": "group_uid", "serviceTestId": "service_test_uid", @@ -530,7 +583,7 @@ func TestConfigurationAPI(t *testing.T) { postRequest := openapiclient.NewServiceTestGroupAssignmentsPostRequest("group_uid", "service_test_uid") resp, httpRes, err := apiClient.ConfigurationAPI. - PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(context.Background()). + ServiceTestGroupAssignmentsPost(context.Background()). ServiceTestGroupAssignmentsPostRequest(*postRequest). Execute() @@ -544,14 +597,14 @@ func TestConfigurationAPI(t *testing.T) { }) }) - t.Run("Test ConfigurationAPI DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI ServiceTestGroupAssignmentsDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). Delete("/networking-uxi/v1alpha1/service-test-group-assignments/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), "uid"). + ServiceTestGroupAssignmentsDelete(context.Background(), "uid"). Execute() require.Nil(t, err) diff --git a/pkg/config-api-client/utils.go b/pkg/config-api-client/utils.go index 1ce6c7ff..6f08c5c2 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: 3.0.0 +API version: 4.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-provider/provider/data-sources/group.go b/pkg/config-api-provider/provider/data-sources/group.go index e549e7a3..73476b72 100644 --- a/pkg/config-api-provider/provider/data-sources/group.go +++ b/pkg/config-api-provider/provider/data-sources/group.go @@ -75,7 +75,7 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, } request := d.client.ConfigurationAPI. - GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx). + GroupsGet(ctx). Id(*state.Filter.GroupID) groupResponse, response, err := util.RetryFor429(request.Execute) diff --git a/pkg/config-api-provider/provider/data-sources/network_group_assignment.go b/pkg/config-api-provider/provider/data-sources/network_group_assignment.go index 97196883..36b6f279 100644 --- a/pkg/config-api-provider/provider/data-sources/network_group_assignment.go +++ b/pkg/config-api-provider/provider/data-sources/network_group_assignment.go @@ -70,7 +70,7 @@ func (d *networkGroupAssignmentDataSource) Read(ctx context.Context, req datasou } request := d.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(ctx). + NetworkGroupAssignmentsGet(ctx). Id(state.Filter.NetworkGroupAssignmentID) networkGroupAssignmentResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/data-sources/sensor.go b/pkg/config-api-provider/provider/data-sources/sensor.go index 2fe67013..08f2f3a3 100644 --- a/pkg/config-api-provider/provider/data-sources/sensor.go +++ b/pkg/config-api-provider/provider/data-sources/sensor.go @@ -103,7 +103,7 @@ func (d *sensorDataSource) Read(ctx context.Context, req datasource.ReadRequest, } request := d.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1SensorsGet(ctx). + SensorsGet(ctx). Id(state.Filter.SensorID.ValueString()) sensorResponse, response, err := util.RetryFor429(request.Execute) diff --git a/pkg/config-api-provider/provider/data-sources/sensor_group_assignment.go b/pkg/config-api-provider/provider/data-sources/sensor_group_assignment.go index b7bd3e69..2b2a08af 100644 --- a/pkg/config-api-provider/provider/data-sources/sensor_group_assignment.go +++ b/pkg/config-api-provider/provider/data-sources/sensor_group_assignment.go @@ -72,7 +72,7 @@ func (d *sensorGroupAssignmentDataSource) Read(ctx context.Context, req datasour } request := d.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx). + SensorGroupAssignmentsGet(ctx). Id(state.Filter.SensorGroupAssignmentID) sensorGroupAssignmentResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/data-sources/wired_network.go b/pkg/config-api-provider/provider/data-sources/wired_network.go index 78818318..b75cff07 100644 --- a/pkg/config-api-provider/provider/data-sources/wired_network.go +++ b/pkg/config-api-provider/provider/data-sources/wired_network.go @@ -97,7 +97,7 @@ func (d *wiredNetworkDataSource) Read(ctx context.Context, req datasource.ReadRe } request := d.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1WiredNetworksGet(ctx). + WiredNetworksGet(ctx). Id(state.Filter.WiredNetworkID) networkResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/data-sources/wireless_network.go b/pkg/config-api-provider/provider/data-sources/wireless_network.go index 974dcedd..8e8b672a 100644 --- a/pkg/config-api-provider/provider/data-sources/wireless_network.go +++ b/pkg/config-api-provider/provider/data-sources/wireless_network.go @@ -105,7 +105,7 @@ func (d *wirelessNetworkDataSource) Read(ctx context.Context, req datasource.Rea } request := d.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1WirelessNetworksGet(ctx). + WirelessNetworksGet(ctx). Id(state.Filter.WirelessNetworkID) networkResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/group.go b/pkg/config-api-provider/provider/resources/group.go index 674626fc..6a53854e 100644 --- a/pkg/config-api-provider/provider/resources/group.go +++ b/pkg/config-api-provider/provider/resources/group.go @@ -96,7 +96,7 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, groups_post_request.SetParentId(plan.ParentGroupId.ValueString()) } request := r.client.ConfigurationAPI. - GroupsPostNetworkingUxiV1alpha1GroupsPost(ctx). + GroupsPost(ctx). GroupsPostRequest(*groups_post_request) group, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -129,7 +129,7 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp } request := r.client.ConfigurationAPI. - GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx). + GroupsGet(ctx). Id(state.ID.ValueString()) groupResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -175,7 +175,7 @@ func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, patchRequest := config_api_client.NewGroupsPatchRequest(plan.Name.ValueString()) request := r.client.ConfigurationAPI. - GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(ctx, plan.ID.ValueString()). + GroupsPatch(ctx, plan.ID.ValueString()). GroupsPatchRequest(*patchRequest) group, response, err := util.RetryFor429(request.Execute) @@ -208,8 +208,7 @@ func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, } // Delete existing group using the plan_id - request := r.client.ConfigurationAPI. - GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(ctx, state.ID.ValueString()) + request := r.client.ConfigurationAPI.GroupsDelete(ctx, state.ID.ValueString()) _, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/network_group_assignment.go b/pkg/config-api-provider/provider/resources/network_group_assignment.go index 2595ba66..af22e974 100644 --- a/pkg/config-api-provider/provider/resources/network_group_assignment.go +++ b/pkg/config-api-provider/provider/resources/network_group_assignment.go @@ -94,7 +94,7 @@ func (r *networkGroupAssignmentResource) Create(ctx context.Context, req resourc plan.NetworkID.ValueString(), ) request := r.client.ConfigurationAPI. - PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(ctx). + NetworkGroupAssignmentsPost(ctx). NetworkGroupAssignmentsPostRequest(*postRequest) networkGroupAssignment, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -127,7 +127,7 @@ func (r *networkGroupAssignmentResource) Read(ctx context.Context, req resource. } request := r.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(ctx). + NetworkGroupAssignmentsGet(ctx). Id(state.ID.ValueString()) networkGroupAssignmentResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -178,7 +178,7 @@ func (r *networkGroupAssignmentResource) Delete(ctx context.Context, req resourc } request := r.client.ConfigurationAPI. - DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) + NetworkGroupAssignmentsDelete(ctx, state.ID.ValueString()) _, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/sensor.go b/pkg/config-api-provider/provider/resources/sensor.go index e6d96bba..725f3159 100644 --- a/pkg/config-api-provider/provider/resources/sensor.go +++ b/pkg/config-api-provider/provider/resources/sensor.go @@ -125,7 +125,7 @@ func (r *sensorResource) Read(ctx context.Context, req resource.ReadRequest, res } request := r.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1SensorsGet(ctx). + SensorsGet(ctx). Id(state.ID.ValueString()) sensorResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/sensor_group_assignment.go b/pkg/config-api-provider/provider/resources/sensor_group_assignment.go index 7efe67ec..f5bc99ff 100644 --- a/pkg/config-api-provider/provider/resources/sensor_group_assignment.go +++ b/pkg/config-api-provider/provider/resources/sensor_group_assignment.go @@ -99,7 +99,7 @@ func (r *sensorGroupAssignmentResource) Create(ctx context.Context, req resource postRequest := config_api_client.NewSensorGroupAssignmentsPostRequest(plan.GroupID.ValueString(), plan.SensorID.ValueString()) request := r.client.ConfigurationAPI. - PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(ctx). + SensorGroupAssignmentsPost(ctx). SensorGroupAssignmentsPostRequest(*postRequest) sensorGroupAssignment, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -130,7 +130,7 @@ func (r *sensorGroupAssignmentResource) Read(ctx context.Context, req resource.R } request := r.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx). + SensorGroupAssignmentsGet(ctx). Id(state.ID.ValueString()) sensorGroupAssignmentResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -183,7 +183,7 @@ func (r *sensorGroupAssignmentResource) Delete(ctx context.Context, req resource // Delete existing sensorGroupAssignment using the plan_id request := r.client.ConfigurationAPI. - DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) + SensorGroupAssignmentsDelete(ctx, state.ID.ValueString()) _, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/service_group_assignment.go b/pkg/config-api-provider/provider/resources/service_group_assignment.go index 6443fc4d..a8c40ecd 100644 --- a/pkg/config-api-provider/provider/resources/service_group_assignment.go +++ b/pkg/config-api-provider/provider/resources/service_group_assignment.go @@ -94,7 +94,7 @@ func (r *serviceTestGroupAssignmentResource) Create(ctx context.Context, req res plan.ServiceTestID.ValueString(), ) request := r.client.ConfigurationAPI. - PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx). + ServiceTestGroupAssignmentsPost(ctx). ServiceTestGroupAssignmentsPostRequest(*postRequest) serviceTestGroupAssignment, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -162,7 +162,7 @@ func (r *serviceTestGroupAssignmentResource) Delete(ctx context.Context, req res } request := r.client.ConfigurationAPI. - DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) + ServiceTestGroupAssignmentsDelete(ctx, state.ID.ValueString()) _, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/wired_network.go b/pkg/config-api-provider/provider/resources/wired_network.go index c4658fd2..066dac01 100644 --- a/pkg/config-api-provider/provider/resources/wired_network.go +++ b/pkg/config-api-provider/provider/resources/wired_network.go @@ -90,7 +90,7 @@ func (r *wiredNetworkResource) Read(ctx context.Context, req resource.ReadReques } request := r.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1WiredNetworksGet(ctx). + WiredNetworksGet(ctx). Id(state.ID.ValueString()) networkResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/provider/resources/wireless_network.go b/pkg/config-api-provider/provider/resources/wireless_network.go index f23ca858..ebc84741 100644 --- a/pkg/config-api-provider/provider/resources/wireless_network.go +++ b/pkg/config-api-provider/provider/resources/wireless_network.go @@ -90,7 +90,7 @@ func (r *wirelessNetworkResource) Read(ctx context.Context, req resource.ReadReq } request := r.client.ConfigurationAPI. - GetNetworkingUxiV1alpha1WirelessNetworksGet(ctx). + WirelessNetworksGet(ctx). Id(state.ID.ValueString()) networkResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) diff --git a/pkg/config-api-provider/test/util/utils.go b/pkg/config-api-provider/test/util/utils.go index 98ff9f52..5b6ca886 100644 --- a/pkg/config-api-provider/test/util/utils.go +++ b/pkg/config-api-provider/test/util/utils.go @@ -214,11 +214,13 @@ func MockGetGroup(uid string, response map[string]interface{}, times int) { } func MockUpdateGroup(uid string, request map[string]interface{}, response map[string]interface{}, times int) { + body, _ := json.Marshal(request) gock.New("https://test.api.capenetworks.com"). Patch("/networking-uxi/v1alpha1/groups/"+uid). MatchHeader("Authorization", "mock_token"). + MatchHeader("Content-Type", "application/merge-patch+json"). + BodyString(string(body)). Times(times). - JSON(request). Reply(200). JSON(response) }