From 1a8c47170422e5cc80cd01f7aa5553d639ff3c58 Mon Sep 17 00:00:00 2001 From: Alistair Yan <52126234+1riatsila1@users.noreply.github.com> Date: Tue, 29 Oct 2024 07:21:34 +0000 Subject: [PATCH] fix: bring in latest client with new api-group (#50) --- pkg/config-api-client/README.md | 34 +- .../api/.openapi.source.yaml | 109 +++-- pkg/config-api-client/api/openapi.yaml | 158 ++++---- pkg/config-api-client/api_configuration.go | 374 +++++++++--------- pkg/config-api-client/client.go | 4 +- pkg/config-api-client/configuration.go | 2 +- .../docs/ConfigurationAPI.md | 256 ++++++------ pkg/config-api-client/docs/GroupsGetItem.md | 9 +- .../docs/GroupsPatchResponse.md | 9 +- .../docs/GroupsPostResponse.md | 9 +- .../docs/NetworkGroupAssignmentsItem.md | 9 +- .../NetworkGroupAssignmentsPostResponse.md | 9 +- .../docs/SensorGroupAssignmentResponse.md | 9 +- .../docs/SensorGroupAssignmentsItem.md | 9 +- pkg/config-api-client/docs/SensorItem.md | 9 +- ...ServiceTestGroupAssignmentsPostResponse.md | 9 +- .../docs/ServiceTestsListItem.md | 9 +- .../docs/WiredNetworksItem.md | 9 +- .../docs/WirelessNetworksItem.md | 9 +- pkg/config-api-client/model_error_detail.go | 2 +- pkg/config-api-client/model_error_response.go | 2 +- pkg/config-api-client/model_group.go | 2 +- .../model_groups_get_item.go | 42 +- .../model_groups_get_response.go | 2 +- .../model_groups_patch_request.go | 2 +- .../model_groups_patch_response.go | 50 +-- .../model_groups_post_request.go | 2 +- .../model_groups_post_response.go | 50 +-- pkg/config-api-client/model_issue.go | 2 +- pkg/config-api-client/model_issue_subject.go | 2 +- pkg/config-api-client/model_network.go | 2 +- .../model_network_group_assignments_item.go | 42 +- ..._network_group_assignments_post_request.go | 2 +- ...network_group_assignments_post_response.go | 42 +- ...odel_network_group_assignments_response.go | 2 +- pkg/config-api-client/model_parent.go | 2 +- pkg/config-api-client/model_sensor.go | 2 +- .../model_sensor_group_assignment_response.go | 48 +-- .../model_sensor_group_assignments_item.go | 48 +-- ...l_sensor_group_assignments_post_request.go | 2 +- ...model_sensor_group_assignments_response.go | 2 +- pkg/config-api-client/model_sensor_item.go | 42 +- .../model_sensors_response.go | 2 +- pkg/config-api-client/model_service_test_.go | 2 +- ...ice_test_group_assignments_post_request.go | 2 +- ...ce_test_group_assignments_post_response.go | 42 +- .../model_service_tests_list_item.go | 42 +- .../model_service_tests_list_response.go | 2 +- .../model_wired_networks_item.go | 42 +- .../model_wired_networks_response.go | 2 +- .../model_wireless_networks_item.go | 42 +- .../model_wireless_networks_response.go | 2 +- pkg/config-api-client/response.go | 2 +- .../test/api_configuration_test.go | 176 +++++---- pkg/config-api-client/utils.go | 2 +- .../provider/data-sources/group.go | 2 +- .../data-sources/network_group_assignment.go | 2 +- .../provider/data-sources/sensor.go | 2 +- .../data-sources/sensor_group_assignment.go | 2 +- .../provider/data-sources/wired_network.go | 2 +- .../provider/data-sources/wireless_network.go | 2 +- .../provider/resources/group.go | 10 +- .../resources/network_group_assignment.go | 6 +- .../provider/resources/sensor.go | 2 +- .../resources/sensor_group_assignment.go | 8 +- .../resources/service_group_assignment.go | 8 +- .../provider/resources/wired_network.go | 2 +- .../provider/resources/wireless_network.go | 2 +- .../test/data-sources/group_test.go | 4 +- .../network_group_assignment_test.go | 4 +- .../sensor_group_assignment_test.go | 4 +- .../test/data-sources/sensor_test.go | 4 +- .../test/data-sources/wired_network_test.go | 4 +- .../data-sources/wireless_network_test.go | 4 +- .../test/resources/group_test.go | 13 +- .../network_group_assignment_test.go | 10 +- .../resources/sensor_group_assignment_test.go | 10 +- .../test/resources/sensor_test.go | 4 +- .../service_test_group_assignment_test.go | 4 +- .../test/resources/wired_network_test.go | 2 +- .../test/resources/wireless_network_test.go | 2 +- pkg/config-api-provider/test/util/utils.go | 45 ++- 82 files changed, 908 insertions(+), 1055 deletions(-) diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index 2dcacdfb..ec8c39eb 100644 --- a/pkg/config-api-client/README.md +++ b/pkg/config-api-client/README.md @@ -5,7 +5,7 @@ Nice description goes here ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 2.9.0 +- API version: 3.0.0 - Package version: 1.0.0 - Generator version: 7.9.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -79,22 +79,22 @@ All URIs are relative to *https://api.capenetworks.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ConfigurationAPI* | [**DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deletenetworkgroupassignmentuxiv1alpha1networkgroupassignmentsiddelete) | **Delete** /uxi/v1alpha1/network-group-assignments/{id} | Delete Network Group Assignment -*ConfigurationAPI* | [**DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deletesensorgroupassignmentuxiv1alpha1sensorgroupassignmentsiddelete) | **Delete** /uxi/v1alpha1/sensor-group-assignments/{id} | Delete Sensor Group Assignment -*ConfigurationAPI* | [**DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete**](docs/ConfigurationAPI.md#deleteservicetestgroupassignmentuxiv1alpha1servicetestgroupassignmentsiddelete) | **Delete** /uxi/v1alpha1/service-test-group-assignments/{id} | Delete Service Test Group Assignment -*ConfigurationAPI* | [**GetUxiV1alpha1NetworkGroupAssignmentsGet**](docs/ConfigurationAPI.md#getuxiv1alpha1networkgroupassignmentsget) | **Get** /uxi/v1alpha1/network-group-assignments | Get -*ConfigurationAPI* | [**GetUxiV1alpha1SensorGroupAssignmentsGet**](docs/ConfigurationAPI.md#getuxiv1alpha1sensorgroupassignmentsget) | **Get** /uxi/v1alpha1/sensor-group-assignments | Get -*ConfigurationAPI* | [**GetUxiV1alpha1SensorsGet**](docs/ConfigurationAPI.md#getuxiv1alpha1sensorsget) | **Get** /uxi/v1alpha1/sensors | Get -*ConfigurationAPI* | [**GetUxiV1alpha1WiredNetworksGet**](docs/ConfigurationAPI.md#getuxiv1alpha1wirednetworksget) | **Get** /uxi/v1alpha1/wired-networks | Get -*ConfigurationAPI* | [**GetUxiV1alpha1WirelessNetworksGet**](docs/ConfigurationAPI.md#getuxiv1alpha1wirelessnetworksget) | **Get** /uxi/v1alpha1/wireless-networks | Get -*ConfigurationAPI* | [**GroupsDeleteUxiV1alpha1GroupsGroupUidDelete**](docs/ConfigurationAPI.md#groupsdeleteuxiv1alpha1groupsgroupuiddelete) | **Delete** /uxi/v1alpha1/groups/{group_uid} | Groups Delete -*ConfigurationAPI* | [**GroupsGetUxiV1alpha1GroupsGet**](docs/ConfigurationAPI.md#groupsgetuxiv1alpha1groupsget) | **Get** /uxi/v1alpha1/groups | Groups Get -*ConfigurationAPI* | [**GroupsPatchUxiV1alpha1GroupsGroupUidPatch**](docs/ConfigurationAPI.md#groupspatchuxiv1alpha1groupsgroupuidpatch) | **Patch** /uxi/v1alpha1/groups/{group_uid} | Groups Patch -*ConfigurationAPI* | [**GroupsPostUxiV1alpha1GroupsPost**](docs/ConfigurationAPI.md#groupspostuxiv1alpha1groupspost) | **Post** /uxi/v1alpha1/groups | Groups Post -*ConfigurationAPI* | [**PostUxiV1alpha1NetworkGroupAssignmentsPost**](docs/ConfigurationAPI.md#postuxiv1alpha1networkgroupassignmentspost) | **Post** /uxi/v1alpha1/network-group-assignments | Post -*ConfigurationAPI* | [**PostUxiV1alpha1SensorGroupAssignmentsPost**](docs/ConfigurationAPI.md#postuxiv1alpha1sensorgroupassignmentspost) | **Post** /uxi/v1alpha1/sensor-group-assignments | Post -*ConfigurationAPI* | [**PostUxiV1alpha1ServiceTestGroupAssignmentsPost**](docs/ConfigurationAPI.md#postuxiv1alpha1servicetestgroupassignmentspost) | **Post** /uxi/v1alpha1/service-test-group-assignments | Post -*ConfigurationAPI* | [**ServiceTestsGetUxiV1alpha1ServiceTestsGet**](docs/ConfigurationAPI.md#servicetestsgetuxiv1alpha1servicetestsget) | **Get** /uxi/v1alpha1/service-tests | Service Tests Get +*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 ## Documentation For Models diff --git a/pkg/config-api-client/api/.openapi.source.yaml b/pkg/config-api-client/api/.openapi.source.yaml index e3ba8469..98e0fdd5 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: 2.9.0 + version: 3.0.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io paths: - /uxi/v1alpha1/groups/{group_uid}: + /networking-uxi/v1alpha1/groups/{group_uid}: delete: - operationId: groups_delete_uxi_v1alpha1_groups__group_uid__delete + operationId: groups_delete_networking_uxi_v1alpha1_groups__group_uid__delete summary: Groups Delete description: Delete an existing group. parameters: @@ -54,7 +54,7 @@ paths: - v1 - groups patch: - operationId: groups_patch_uxi_v1alpha1_groups__group_uid__patch + operationId: groups_patch_networking_uxi_v1alpha1_groups__group_uid__patch summary: Groups Patch description: Update an existing group. parameters: @@ -96,9 +96,9 @@ paths: - configuration - v1 - groups - /uxi/v1alpha1/groups: + /networking-uxi/v1alpha1/groups: get: - operationId: groups_get_uxi_v1alpha1_groups_get + operationId: groups_get_networking_uxi_v1alpha1_groups_get summary: Groups Get description: Lists groups matching provided criteria parameters: @@ -155,11 +155,10 @@ paths: - groups x-stability-level: alpha post: - operationId: groups_post_uxi_v1alpha1_groups_post + operationId: groups_post_networking_uxi_v1alpha1_groups_post summary: Groups Post description: >- - Create a new group with the group identified in `parent_uid` as its - parent + Create a new group with the group identified in `parent_uid` as its parent requestBody: required: true content: @@ -193,10 +192,10 @@ paths: - v1alpha1 - groups x-stability-level: alpha - /uxi/v1alpha1/network-group-assignments/{id}: + /networking-uxi/v1alpha1/network-group-assignments/{id}: delete: operationId: >- - delete_network_group_assignment_uxi_v1alpha1_network_group_assignments__id__delete + delete_network_group_assignment_networking_uxi_v1alpha1_network_group_assignments__id__delete summary: Delete Network Group Assignment description: Delete a network group assignment parameters: @@ -234,9 +233,9 @@ paths: - v1alpha1 - network-group-assignments x-stability-level: alpha - /uxi/v1alpha1/network-group-assignments: + /networking-uxi/v1alpha1/network-group-assignments: get: - operationId: get_uxi_v1alpha1_network_group_assignments_get + operationId: get_networking_uxi_v1alpha1_network_group_assignments_get summary: Get description: Get a list of network group assignments parameters: @@ -291,7 +290,7 @@ paths: - network-group-assignments x-stability-level: alpha post: - operationId: post_uxi_v1alpha1_network_group_assignments_post + operationId: post_networking_uxi_v1alpha1_network_group_assignments_post summary: Post description: Create a network group assignment requestBody: @@ -327,9 +326,9 @@ paths: - v1alpha1 - network-group-assignments x-stability-level: alpha - /uxi/v1alpha1/sensor-group-assignments: + /networking-uxi/v1alpha1/sensor-group-assignments: get: - operationId: get_uxi_v1alpha1_sensor_group_assignments_get + operationId: get_networking_uxi_v1alpha1_sensor_group_assignments_get summary: Get description: Get a list of sensor group assignments parameters: @@ -384,7 +383,7 @@ paths: - sensor-group-assignments x-stability-level: alpha post: - operationId: post_uxi_v1alpha1_sensor_group_assignments_post + operationId: post_networking_uxi_v1alpha1_sensor_group_assignments_post summary: Post description: Create sensor group assignment requestBody: @@ -420,10 +419,10 @@ paths: - v1alpha1 - sensor-group-assignments x-stability-level: alpha - /uxi/v1alpha1/sensor-group-assignments/{id}: + /networking-uxi/v1alpha1/sensor-group-assignments/{id}: delete: operationId: >- - delete_sensor_group_assignment_uxi_v1alpha1_sensor_group_assignments__id__delete + delete_sensor_group_assignment_networking_uxi_v1alpha1_sensor_group_assignments__id__delete summary: Delete Sensor Group Assignment description: Delete a sensor group assignment parameters: @@ -461,9 +460,9 @@ paths: - v1alpha1 - sensor-group-assignments x-stability-level: alpha - /uxi/v1alpha1/sensors: + /networking-uxi/v1alpha1/sensors: get: - operationId: get_uxi_v1alpha1_sensors_get + operationId: get_networking_uxi_v1alpha1_sensors_get summary: Get description: Get a list of sensors parameters: @@ -519,10 +518,10 @@ paths: - v1alpha1 - sensors x-stability-level: alpha - /uxi/v1alpha1/service-test-group-assignments/{id}: + /networking-uxi/v1alpha1/service-test-group-assignments/{id}: delete: operationId: >- - delete_service_test_group_assignment_uxi_v1alpha1_service_test_group_assignments__id__delete + delete_service_test_group_assignment_networking_uxi_v1alpha1_service_test_group_assignments__id__delete summary: Delete Service Test Group Assignment description: Delete a service test group assignment parameters: @@ -560,9 +559,9 @@ paths: - v1alpha1 - service-test-group-assignments x-stability-level: alpha - /uxi/v1alpha1/service-test-group-assignments: + /networking-uxi/v1alpha1/service-test-group-assignments: post: - operationId: post_uxi_v1alpha1_service_test_group_assignments_post + operationId: post_networking_uxi_v1alpha1_service_test_group_assignments_post summary: Post description: Create a service-test group assignment requestBody: @@ -598,9 +597,9 @@ paths: - v1alpha1 - service-test-group-assignments x-stability-level: alpha - /uxi/v1alpha1/service-tests: + /networking-uxi/v1alpha1/service-tests: get: - operationId: service_tests_get_uxi_v1alpha1_service_tests_get + operationId: service_tests_get_networking_uxi_v1alpha1_service_tests_get summary: Service Tests Get description: Lists service-tests matching provided criteria parameters: @@ -656,9 +655,9 @@ paths: - v1alpha1 - service-tests x-stability-level: alpha - /uxi/v1alpha1/wired-networks: + /networking-uxi/v1alpha1/wired-networks: get: - operationId: get_uxi_v1alpha1_wired_networks_get + operationId: get_networking_uxi_v1alpha1_wired_networks_get summary: Get description: Get a list of wired networks parameters: @@ -712,9 +711,9 @@ paths: - v1alpha1 - wired-networks x-stability-level: alpha - /uxi/v1alpha1/wireless-networks: + /networking-uxi/v1alpha1/wireless-networks: get: - operationId: get_uxi_v1alpha1_wireless_networks_get + operationId: get_networking_uxi_v1alpha1_wireless_networks_get summary: Get description: Get a list of wireless networks parameters: @@ -840,13 +839,15 @@ components: title: Path type: type: string - default: uxi/group + enum: + - networking-uxi/group title: Type required: - id - name - parent - path + - type title: GroupsGetItem GroupsGetResponse: type: object @@ -894,13 +895,15 @@ components: $ref: '#/components/schemas/Parent' type: type: string - default: uxi/group + enum: + - networking-uxi/group title: Type required: - id - name - path - parent + - type title: GroupsPatchResponse GroupsPostRequest: type: object @@ -932,13 +935,15 @@ components: $ref: '#/components/schemas/Parent' type: type: string - default: uxi/group + enum: + - networking-uxi/group title: Type required: - id - name - path - parent + - type title: GroupsPostResponse Issue: type: object @@ -984,12 +989,14 @@ components: $ref: '#/components/schemas/Network' type: type: string - default: uxi/network-group-assignment + enum: + - networking-uxi/network-group-assignment title: Type required: - id - group - network + - type title: NetworkGroupAssignmentsItem NetworkGroupAssignmentsPostRequest: type: object @@ -1017,12 +1024,14 @@ components: $ref: '#/components/schemas/Network' type: type: string - default: uxi/network-group-assignment + enum: + - networking-uxi/network-group-assignment title: Type required: - id - group - network + - type title: NetworkGroupAssignmentsPostResponse NetworkGroupAssignmentsResponse: type: object @@ -1075,12 +1084,14 @@ components: $ref: '#/components/schemas/Sensor' type: type: string - default: uxi/sensor-group-assignment + enum: + - networking-uxi/sensor-group-assignment title: Type required: - id - group - sensor + - type title: SensorGroupAssignmentResponse SensorGroupAssignmentsItem: type: object @@ -1094,12 +1105,14 @@ components: $ref: '#/components/schemas/Sensor' type: type: string - default: uxi/sensor-group-assignment + enum: + - networking-uxi/sensor-group-assignment title: Type required: - id - group - sensor + - type title: SensorGroupAssignmentsItem SensorGroupAssignmentsPostRequest: type: object @@ -1189,7 +1202,8 @@ components: title: Pcapmode type: type: string - default: uxi/sensor + enum: + - networking-uxi/sensor title: Type required: - id @@ -1203,6 +1217,7 @@ components: - latitude - notes - pcapMode + - type title: SensorItem SensorsResponse: type: object @@ -1260,12 +1275,14 @@ components: $ref: '#/components/schemas/ServiceTest' type: type: string - default: uxi/service-test-group-assignment + enum: + - networking-uxi/service-test-group-assignment title: Type required: - id - group - serviceTest + - type title: ServiceTestGroupAssignmentsPostResponse ServiceTestsListItem: type: object @@ -1292,7 +1309,8 @@ components: title: Isenabled type: type: string - default: uxi/service-test + enum: + - networking-uxi/service-test title: Type required: - id @@ -1301,6 +1319,7 @@ components: - target - template - isEnabled + - type title: ServiceTestsListItem ServiceTestsListResponse: type: object @@ -1369,7 +1388,8 @@ components: title: Vlanid type: type: string - default: uxi/wired-network + enum: + - networking-uxi/wired-network title: Type required: - id @@ -1383,6 +1403,7 @@ components: - useDns64 - externalConnectivity - vLanId + - type title: WiredNetworksItem WiredNetworksResponse: type: object @@ -1455,7 +1476,8 @@ components: title: Externalconnectivity type: type: string - default: uxi/wireless-network + enum: + - networking-uxi/wireless-network title: Type required: - id @@ -1471,6 +1493,7 @@ components: - disableEdns - useDns64 - externalConnectivity + - type title: WirelessNetworksItem WirelessNetworksResponse: type: object diff --git a/pkg/config-api-client/api/openapi.yaml b/pkg/config-api-client/api/openapi.yaml index 3379e0e5..9801d3c8 100644 --- a/pkg/config-api-client/api/openapi.yaml +++ b/pkg/config-api-client/api/openapi.yaml @@ -9,7 +9,7 @@ info: name: "No idea, but we need something" termsOfService: http://we.dont.care.yet.com/term-of-service title: Configuration Api - version: 2.9.0 + version: 3.0.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -28,10 +28,10 @@ tags: - name: wired-networks - name: wireless-networks paths: - /uxi/v1alpha1/groups/{group_uid}: + /networking-uxi/v1alpha1/groups/{group_uid}: delete: description: Delete an existing group. - operationId: groups_delete_uxi_v1alpha1_groups__group_uid__delete + operationId: groups_delete_networking_uxi_v1alpha1_groups__group_uid__delete parameters: - explode: false in: path @@ -68,7 +68,7 @@ paths: - configuration patch: description: Update an existing group. - operationId: groups_patch_uxi_v1alpha1_groups__group_uid__patch + operationId: groups_patch_networking_uxi_v1alpha1_groups__group_uid__patch parameters: - explode: false in: path @@ -108,10 +108,10 @@ paths: summary: Groups Patch tags: - configuration - /uxi/v1alpha1/groups: + /networking-uxi/v1alpha1/groups: get: description: Lists groups matching provided criteria - operationId: groups_get_uxi_v1alpha1_groups_get + operationId: groups_get_networking_uxi_v1alpha1_groups_get parameters: - explode: true in: query @@ -168,7 +168,7 @@ paths: post: description: Create a new group with the group identified in `parent_uid` as its parent - operationId: groups_post_uxi_v1alpha1_groups_post + operationId: groups_post_networking_uxi_v1alpha1_groups_post requestBody: content: application/json: @@ -200,10 +200,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/network-group-assignments/{id}: + /networking-uxi/v1alpha1/network-group-assignments/{id}: delete: description: Delete a network group assignment - operationId: delete_network_group_assignment_uxi_v1alpha1_network_group_assignments__id__delete + operationId: delete_network_group_assignment_networking_uxi_v1alpha1_network_group_assignments__id__delete parameters: - explode: false in: path @@ -239,10 +239,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/network-group-assignments: + /networking-uxi/v1alpha1/network-group-assignments: get: description: Get a list of network group assignments - operationId: get_uxi_v1alpha1_network_group_assignments_get + operationId: get_networking_uxi_v1alpha1_network_group_assignments_get parameters: - explode: true in: query @@ -296,7 +296,7 @@ paths: x-stability-level: alpha post: description: Create a network group assignment - operationId: post_uxi_v1alpha1_network_group_assignments_post + operationId: post_networking_uxi_v1alpha1_network_group_assignments_post requestBody: content: application/json: @@ -328,10 +328,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/sensor-group-assignments: + /networking-uxi/v1alpha1/sensor-group-assignments: get: description: Get a list of sensor group assignments - operationId: get_uxi_v1alpha1_sensor_group_assignments_get + operationId: get_networking_uxi_v1alpha1_sensor_group_assignments_get parameters: - explode: true in: query @@ -385,7 +385,7 @@ paths: x-stability-level: alpha post: description: Create sensor group assignment - operationId: post_uxi_v1alpha1_sensor_group_assignments_post + operationId: post_networking_uxi_v1alpha1_sensor_group_assignments_post requestBody: content: application/json: @@ -417,10 +417,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/sensor-group-assignments/{id}: + /networking-uxi/v1alpha1/sensor-group-assignments/{id}: delete: description: Delete a sensor group assignment - operationId: delete_sensor_group_assignment_uxi_v1alpha1_sensor_group_assignments__id__delete + operationId: delete_sensor_group_assignment_networking_uxi_v1alpha1_sensor_group_assignments__id__delete parameters: - explode: false in: path @@ -456,10 +456,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/sensors: + /networking-uxi/v1alpha1/sensors: get: description: Get a list of sensors - operationId: get_uxi_v1alpha1_sensors_get + operationId: get_networking_uxi_v1alpha1_sensors_get parameters: - explode: true in: query @@ -513,10 +513,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/service-test-group-assignments/{id}: + /networking-uxi/v1alpha1/service-test-group-assignments/{id}: delete: description: Delete a service test group assignment - operationId: delete_service_test_group_assignment_uxi_v1alpha1_service_test_group_assignments__id__delete + operationId: delete_service_test_group_assignment_networking_uxi_v1alpha1_service_test_group_assignments__id__delete parameters: - explode: false in: path @@ -552,10 +552,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/service-test-group-assignments: + /networking-uxi/v1alpha1/service-test-group-assignments: post: description: Create a service-test group assignment - operationId: post_uxi_v1alpha1_service_test_group_assignments_post + operationId: post_networking_uxi_v1alpha1_service_test_group_assignments_post requestBody: content: application/json: @@ -587,10 +587,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/service-tests: + /networking-uxi/v1alpha1/service-tests: get: description: Lists service-tests matching provided criteria - operationId: service_tests_get_uxi_v1alpha1_service_tests_get + operationId: service_tests_get_networking_uxi_v1alpha1_service_tests_get parameters: - explode: true in: query @@ -644,10 +644,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/wired-networks: + /networking-uxi/v1alpha1/wired-networks: get: description: Get a list of wired networks - operationId: get_uxi_v1alpha1_wired_networks_get + operationId: get_networking_uxi_v1alpha1_wired_networks_get parameters: - explode: true in: query @@ -699,10 +699,10 @@ paths: tags: - configuration x-stability-level: alpha - /uxi/v1alpha1/wireless-networks: + /networking-uxi/v1alpha1/wireless-networks: get: description: Get a list of wireless networks - operationId: get_uxi_v1alpha1_wireless_networks_get + operationId: get_networking_uxi_v1alpha1_wireless_networks_get parameters: - explode: true in: query @@ -846,7 +846,7 @@ components: path: path name: name id: id - type: uxi/group + type: networking-uxi/group properties: id: title: Id @@ -860,7 +860,8 @@ components: title: Path type: string type: - default: uxi/group + enum: + - networking-uxi/group title: Type type: string required: @@ -868,6 +869,7 @@ components: - name - parent - path + - type title: GroupsGetItem type: object GroupsGetResponse: @@ -880,13 +882,13 @@ components: path: path name: name id: id - type: uxi/group + type: networking-uxi/group - parent: id: id path: path name: name id: id - type: uxi/group + type: networking-uxi/group properties: items: items: @@ -923,7 +925,7 @@ components: id: id name: name id: id - type: uxi/group + type: networking-uxi/group properties: id: title: Id @@ -937,7 +939,8 @@ components: parent: $ref: '#/components/schemas/Parent' type: - default: uxi/group + enum: + - networking-uxi/group title: Type type: string required: @@ -945,6 +948,7 @@ components: - name - parent - path + - type title: GroupsPatchResponse type: object GroupsPostRequest: @@ -969,7 +973,7 @@ components: id: id name: name id: id - type: uxi/group + type: networking-uxi/group properties: id: title: Id @@ -983,7 +987,8 @@ components: parent: $ref: '#/components/schemas/Parent' type: - default: uxi/group + enum: + - networking-uxi/group title: Type type: string required: @@ -991,6 +996,7 @@ components: - name - parent - path + - type title: GroupsPostResponse type: object Issue: @@ -1034,7 +1040,7 @@ components: NetworkGroupAssignmentsItem: example: id: id - type: uxi/network-group-assignment + type: networking-uxi/network-group-assignment group: id: id network: @@ -1048,13 +1054,15 @@ components: network: $ref: '#/components/schemas/Network' type: - default: uxi/network-group-assignment + enum: + - networking-uxi/network-group-assignment title: Type type: string required: - group - id - network + - type title: NetworkGroupAssignmentsItem type: object NetworkGroupAssignmentsPostRequest: @@ -1076,7 +1084,7 @@ components: NetworkGroupAssignmentsPostResponse: example: id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: uxi/network-group-assignment + type: networking-uxi/network-group-assignment group: id: id network: @@ -1091,13 +1099,15 @@ components: network: $ref: '#/components/schemas/Network' type: - default: uxi/network-group-assignment + enum: + - networking-uxi/network-group-assignment title: Type type: string required: - group - id - network + - type title: NetworkGroupAssignmentsPostResponse type: object NetworkGroupAssignmentsResponse: @@ -1106,13 +1116,13 @@ components: count: 0 items: - id: id - type: uxi/network-group-assignment + type: networking-uxi/network-group-assignment group: id: id network: id: id - id: id - type: uxi/network-group-assignment + type: networking-uxi/network-group-assignment group: id: id network: @@ -1162,7 +1172,7 @@ components: sensor: id: id id: id - type: uxi/sensor-group-assignment + type: networking-uxi/sensor-group-assignment group: id: id properties: @@ -1174,13 +1184,15 @@ components: sensor: $ref: '#/components/schemas/Sensor' type: - default: uxi/sensor-group-assignment + enum: + - networking-uxi/sensor-group-assignment title: Type type: string required: - group - id - sensor + - type title: SensorGroupAssignmentResponse type: object SensorGroupAssignmentsItem: @@ -1188,7 +1200,7 @@ components: sensor: id: id id: id - type: uxi/sensor-group-assignment + type: networking-uxi/sensor-group-assignment group: id: id properties: @@ -1200,13 +1212,15 @@ components: sensor: $ref: '#/components/schemas/Sensor' type: - default: uxi/sensor-group-assignment + enum: + - networking-uxi/sensor-group-assignment title: Type type: string required: - group - id - sensor + - type title: SensorGroupAssignmentsItem type: object SensorGroupAssignmentsPostRequest: @@ -1233,13 +1247,13 @@ components: - sensor: id: id id: id - type: uxi/sensor-group-assignment + type: networking-uxi/sensor-group-assignment group: id: id - sensor: id: id id: id - type: uxi/sensor-group-assignment + type: networking-uxi/sensor-group-assignment group: id: id properties: @@ -1271,7 +1285,7 @@ components: name: name modelNumber: modelNumber id: id - type: uxi/sensor + type: networking-uxi/sensor wifiMacAddress: wifiMacAddress longitude: 0.8008281904610115 properties: @@ -1309,7 +1323,8 @@ components: nullable: true type: string type: - default: uxi/sensor + enum: + - networking-uxi/sensor title: Type type: string required: @@ -1323,6 +1338,7 @@ components: - notes - pcapMode - serial + - type - wifiMacAddress title: SensorItem type: object @@ -1340,7 +1356,7 @@ components: name: name modelNumber: modelNumber id: id - type: uxi/sensor + type: networking-uxi/sensor wifiMacAddress: wifiMacAddress longitude: 0.8008281904610115 - addressNote: addressNote @@ -1352,7 +1368,7 @@ components: name: name modelNumber: modelNumber id: id - type: uxi/sensor + type: networking-uxi/sensor wifiMacAddress: wifiMacAddress longitude: 0.8008281904610115 properties: @@ -1405,7 +1421,7 @@ components: serviceTest: id: id id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - type: uxi/service-test-group-assignment + type: networking-uxi/service-test-group-assignment group: id: id properties: @@ -1418,13 +1434,15 @@ components: serviceTest: $ref: '#/components/schemas/ServiceTest' type: - default: uxi/service-test-group-assignment + enum: + - networking-uxi/service-test-group-assignment title: Type type: string required: - group - id - serviceTest + - type title: ServiceTestGroupAssignmentsPostResponse type: object ServiceTestsListItem: @@ -1434,7 +1452,7 @@ components: name: name id: id category: category - type: uxi/service-test + type: networking-uxi/service-test target: target properties: id: @@ -1456,7 +1474,8 @@ components: title: Isenabled type: boolean type: - default: uxi/service-test + enum: + - networking-uxi/service-test title: Type type: string required: @@ -1466,6 +1485,7 @@ components: - name - target - template + - type title: ServiceTestsListItem type: object ServiceTestsListResponse: @@ -1478,14 +1498,14 @@ components: name: name id: id category: category - type: uxi/service-test + type: networking-uxi/service-test target: target - template: template isEnabled: true name: name id: id category: category - type: uxi/service-test + type: networking-uxi/service-test target: target properties: items: @@ -1516,7 +1536,7 @@ components: vLanId: 0 name: name id: id - type: uxi/wired-network + type: networking-uxi/wired-network updatedAt: 2000-01-23T04:56:07.000+00:00 disableEdns: true properties: @@ -1556,7 +1576,8 @@ components: nullable: true type: integer type: - default: uxi/wired-network + enum: + - networking-uxi/wired-network title: Type type: string required: @@ -1568,6 +1589,7 @@ components: - ipVersion - name - security + - type - updatedAt - useDns64 - vLanId @@ -1587,7 +1609,7 @@ components: vLanId: 0 name: name id: id - type: uxi/wired-network + type: networking-uxi/wired-network updatedAt: 2000-01-23T04:56:07.000+00:00 disableEdns: true - createdAt: 2000-01-23T04:56:07.000+00:00 @@ -1599,7 +1621,7 @@ components: vLanId: 0 name: name id: id - type: uxi/wired-network + type: networking-uxi/wired-network updatedAt: 2000-01-23T04:56:07.000+00:00 disableEdns: true properties: @@ -1625,7 +1647,7 @@ components: useDns64: true hidden: true bandLocking: bandLocking - type: uxi/wireless-network + type: networking-uxi/wireless-network ssid: ssid disableEdns: true createdAt: 2000-01-23T04:56:07.000+00:00 @@ -1679,7 +1701,8 @@ components: title: Externalconnectivity type: boolean type: - default: uxi/wireless-network + enum: + - networking-uxi/wireless-network title: Type type: string required: @@ -1694,6 +1717,7 @@ components: - name - security - ssid + - type - updatedAt - useDns64 title: WirelessNetworksItem @@ -1706,7 +1730,7 @@ components: - useDns64: true hidden: true bandLocking: bandLocking - type: uxi/wireless-network + type: networking-uxi/wireless-network ssid: ssid disableEdns: true createdAt: 2000-01-23T04:56:07.000+00:00 @@ -1720,7 +1744,7 @@ components: - useDns64: true hidden: true bandLocking: bandLocking - type: uxi/wireless-network + type: networking-uxi/wireless-network ssid: ssid disableEdns: true createdAt: 2000-01-23T04:56:07.000+00:00 diff --git a/pkg/config-api-client/api_configuration.go b/pkg/config-api-client/api_configuration.go index 522e5056..2005baf9 100644 --- a/pkg/config-api-client/api_configuration.go +++ b/pkg/config-api-client/api_configuration.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -23,27 +23,27 @@ import ( // ConfigurationAPIService ConfigurationAPI service type ConfigurationAPIService service -type ApiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest struct { +type ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest struct { ctx context.Context ApiService *ConfigurationAPIService id string } -func (r ApiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteExecute(r) +func (r ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteExecute(r) } /* -DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete Delete Network Group Assignment +DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete Delete Network Group Assignment Delete a network group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id - @return ApiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest + @return ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest */ -func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest { - return ApiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest{ +func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest { + return ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest{ ApiService: a, ctx: ctx, id: id, @@ -53,7 +53,7 @@ func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentUxiV1alpha1Network // Execute executes the request // // @return interface{} -func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteExecute(r ApiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { +func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteExecute(r ApiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -61,12 +61,12 @@ func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentUxiV1alpha1Network localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/network-group-assignments/{id}" + 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) @@ -148,27 +148,27 @@ func (a *ConfigurationAPIService) DeleteNetworkGroupAssignmentUxiV1alpha1Network return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest struct { +type ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest struct { ctx context.Context ApiService *ConfigurationAPIService id string } -func (r ApiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteExecute(r) +func (r ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteExecute(r) } /* -DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete Delete Sensor Group Assignment +DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete Delete Sensor Group Assignment Delete a sensor group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id - @return ApiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest + @return ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest */ -func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest { - return ApiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest{ +func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest { + return ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest{ ApiService: a, ctx: ctx, id: id, @@ -178,7 +178,7 @@ func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentUxiV1alpha1SensorGr // Execute executes the request // // @return interface{} -func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteExecute(r ApiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { +func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteExecute(r ApiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -186,12 +186,12 @@ func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentUxiV1alpha1SensorGr localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/sensor-group-assignments/{id}" + 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) @@ -273,27 +273,27 @@ func (a *ConfigurationAPIService) DeleteSensorGroupAssignmentUxiV1alpha1SensorGr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct { +type ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct { ctx context.Context ApiService *ConfigurationAPIService id string } -func (r ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r) +func (r ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r) } /* -DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete Delete Service Test Group Assignment +DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete Delete Service Test Group Assignment Delete a service test group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id - @return ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest + @return ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest */ -func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest { - return ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest{ +func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx context.Context, id string) ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest { + return ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest{ ApiService: a, ctx: ctx, id: id, @@ -303,7 +303,7 @@ func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1Ser // Execute executes the request // // @return interface{} -func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r ApiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { +func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteExecute(r ApiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest) (interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -311,12 +311,12 @@ func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1Ser localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/service-test-group-assignments/{id}" + 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) @@ -398,7 +398,7 @@ func (a *ConfigurationAPIService) DeleteServiceTestGroupAssignmentUxiV1alpha1Ser return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest struct { +type ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -406,35 +406,35 @@ type ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest struct { limit *int32 } -func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Id(id string) ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { r.id = &id return r } -func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Next(next string) ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { r.next = &next return r } -func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Limit(limit int32) ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { r.limit = &limit return r } -func (r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) Execute() (*NetworkGroupAssignmentsResponse, *http.Response, error) { - return r.ApiService.GetUxiV1alpha1NetworkGroupAssignmentsGetExecute(r) +func (r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) Execute() (*NetworkGroupAssignmentsResponse, *http.Response, error) { + return r.ApiService.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetExecute(r) } /* -GetUxiV1alpha1NetworkGroupAssignmentsGet Get +GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet Get 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 ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest + @return ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest */ -func (a *ConfigurationAPIService) GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx context.Context) ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest { - return ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest{ +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest { + return ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest{ ApiService: a, ctx: ctx, } @@ -443,7 +443,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx c // Execute executes the request // // @return NetworkGroupAssignmentsResponse -func (a *ConfigurationAPIService) GetUxiV1alpha1NetworkGroupAssignmentsGetExecute(r ApiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest) (*NetworkGroupAssignmentsResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetExecute(r ApiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest) (*NetworkGroupAssignmentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -451,12 +451,12 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1NetworkGroupAssignmentsGetExecut localVarReturnValue *NetworkGroupAssignmentsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetUxiV1alpha1NetworkGroupAssignmentsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/network-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -549,7 +549,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1NetworkGroupAssignmentsGetExecut return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest struct { +type ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -557,35 +557,35 @@ type ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest struct { limit *int32 } -func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Id(id string) ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { r.id = &id return r } -func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Next(next string) ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { r.next = &next return r } -func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Limit(limit int32) ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { r.limit = &limit return r } -func (r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) Execute() (*SensorGroupAssignmentsResponse, *http.Response, error) { - return r.ApiService.GetUxiV1alpha1SensorGroupAssignmentsGetExecute(r) +func (r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) Execute() (*SensorGroupAssignmentsResponse, *http.Response, error) { + return r.ApiService.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGetExecute(r) } /* -GetUxiV1alpha1SensorGroupAssignmentsGet Get +GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet Get 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 ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest + @return ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest */ -func (a *ConfigurationAPIService) GetUxiV1alpha1SensorGroupAssignmentsGet(ctx context.Context) ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest { - return ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest{ +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest { + return ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest{ ApiService: a, ctx: ctx, } @@ -594,7 +594,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorGroupAssignmentsGet(ctx co // Execute executes the request // // @return SensorGroupAssignmentsResponse -func (a *ConfigurationAPIService) GetUxiV1alpha1SensorGroupAssignmentsGetExecute(r ApiGetUxiV1alpha1SensorGroupAssignmentsGetRequest) (*SensorGroupAssignmentsResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorGroupAssignmentsGetExecute(r ApiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest) (*SensorGroupAssignmentsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -602,12 +602,12 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorGroupAssignmentsGetExecute localVarReturnValue *SensorGroupAssignmentsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetUxiV1alpha1SensorGroupAssignmentsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/sensor-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -700,7 +700,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorGroupAssignmentsGetExecute return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUxiV1alpha1SensorsGetRequest struct { +type ApiGetNetworkingUxiV1alpha1SensorsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -708,35 +708,35 @@ type ApiGetUxiV1alpha1SensorsGetRequest struct { limit *int32 } -func (r ApiGetUxiV1alpha1SensorsGetRequest) Id(id string) ApiGetUxiV1alpha1SensorsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { r.id = &id return r } -func (r ApiGetUxiV1alpha1SensorsGetRequest) Next(next string) ApiGetUxiV1alpha1SensorsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { r.next = &next return r } -func (r ApiGetUxiV1alpha1SensorsGetRequest) Limit(limit int32) ApiGetUxiV1alpha1SensorsGetRequest { +func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { r.limit = &limit return r } -func (r ApiGetUxiV1alpha1SensorsGetRequest) Execute() (*SensorsResponse, *http.Response, error) { - return r.ApiService.GetUxiV1alpha1SensorsGetExecute(r) +func (r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) Execute() (*SensorsResponse, *http.Response, error) { + return r.ApiService.GetNetworkingUxiV1alpha1SensorsGetExecute(r) } /* -GetUxiV1alpha1SensorsGet Get +GetNetworkingUxiV1alpha1SensorsGet Get Get a list of sensors @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetUxiV1alpha1SensorsGetRequest + @return ApiGetNetworkingUxiV1alpha1SensorsGetRequest */ -func (a *ConfigurationAPIService) GetUxiV1alpha1SensorsGet(ctx context.Context) ApiGetUxiV1alpha1SensorsGetRequest { - return ApiGetUxiV1alpha1SensorsGetRequest{ +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1SensorsGetRequest { + return ApiGetNetworkingUxiV1alpha1SensorsGetRequest{ ApiService: a, ctx: ctx, } @@ -745,7 +745,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorsGet(ctx context.Context) // Execute executes the request // // @return SensorsResponse -func (a *ConfigurationAPIService) GetUxiV1alpha1SensorsGetExecute(r ApiGetUxiV1alpha1SensorsGetRequest) (*SensorsResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1SensorsGetExecute(r ApiGetNetworkingUxiV1alpha1SensorsGetRequest) (*SensorsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -753,12 +753,12 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorsGetExecute(r ApiGetUxiV1a localVarReturnValue *SensorsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetUxiV1alpha1SensorsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1SensorsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/sensors" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensors" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -851,7 +851,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1SensorsGetExecute(r ApiGetUxiV1a return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUxiV1alpha1WiredNetworksGetRequest struct { +type ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -859,35 +859,35 @@ type ApiGetUxiV1alpha1WiredNetworksGetRequest struct { limit *int32 } -func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Id(id string) ApiGetUxiV1alpha1WiredNetworksGetRequest { +func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { r.id = &id return r } -func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Next(next string) ApiGetUxiV1alpha1WiredNetworksGetRequest { +func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { r.next = &next return r } -func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Limit(limit int32) ApiGetUxiV1alpha1WiredNetworksGetRequest { +func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { r.limit = &limit return r } -func (r ApiGetUxiV1alpha1WiredNetworksGetRequest) Execute() (*WiredNetworksResponse, *http.Response, error) { - return r.ApiService.GetUxiV1alpha1WiredNetworksGetExecute(r) +func (r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) Execute() (*WiredNetworksResponse, *http.Response, error) { + return r.ApiService.GetNetworkingUxiV1alpha1WiredNetworksGetExecute(r) } /* -GetUxiV1alpha1WiredNetworksGet Get +GetNetworkingUxiV1alpha1WiredNetworksGet Get 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 ApiGetUxiV1alpha1WiredNetworksGetRequest + @return ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest */ -func (a *ConfigurationAPIService) GetUxiV1alpha1WiredNetworksGet(ctx context.Context) ApiGetUxiV1alpha1WiredNetworksGetRequest { - return ApiGetUxiV1alpha1WiredNetworksGetRequest{ +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WiredNetworksGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest { + return ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest{ ApiService: a, ctx: ctx, } @@ -896,7 +896,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WiredNetworksGet(ctx context.Con // Execute executes the request // // @return WiredNetworksResponse -func (a *ConfigurationAPIService) GetUxiV1alpha1WiredNetworksGetExecute(r ApiGetUxiV1alpha1WiredNetworksGetRequest) (*WiredNetworksResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WiredNetworksGetExecute(r ApiGetNetworkingUxiV1alpha1WiredNetworksGetRequest) (*WiredNetworksResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -904,12 +904,12 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WiredNetworksGetExecute(r ApiGet localVarReturnValue *WiredNetworksResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetUxiV1alpha1WiredNetworksGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1WiredNetworksGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/wired-networks" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/wired-networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1002,7 +1002,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WiredNetworksGetExecute(r ApiGet return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGetUxiV1alpha1WirelessNetworksGetRequest struct { +type ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -1010,35 +1010,35 @@ type ApiGetUxiV1alpha1WirelessNetworksGetRequest struct { limit *int32 } -func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Id(id string) ApiGetUxiV1alpha1WirelessNetworksGetRequest { +func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Id(id string) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { r.id = &id return r } -func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Next(next string) ApiGetUxiV1alpha1WirelessNetworksGetRequest { +func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Next(next string) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { r.next = &next return r } -func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Limit(limit int32) ApiGetUxiV1alpha1WirelessNetworksGetRequest { +func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Limit(limit int32) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { r.limit = &limit return r } -func (r ApiGetUxiV1alpha1WirelessNetworksGetRequest) Execute() (*WirelessNetworksResponse, *http.Response, error) { - return r.ApiService.GetUxiV1alpha1WirelessNetworksGetExecute(r) +func (r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) Execute() (*WirelessNetworksResponse, *http.Response, error) { + return r.ApiService.GetNetworkingUxiV1alpha1WirelessNetworksGetExecute(r) } /* -GetUxiV1alpha1WirelessNetworksGet Get +GetNetworkingUxiV1alpha1WirelessNetworksGet Get 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 ApiGetUxiV1alpha1WirelessNetworksGetRequest + @return ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest */ -func (a *ConfigurationAPIService) GetUxiV1alpha1WirelessNetworksGet(ctx context.Context) ApiGetUxiV1alpha1WirelessNetworksGetRequest { - return ApiGetUxiV1alpha1WirelessNetworksGetRequest{ +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WirelessNetworksGet(ctx context.Context) ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest { + return ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest{ ApiService: a, ctx: ctx, } @@ -1047,7 +1047,7 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WirelessNetworksGet(ctx context. // Execute executes the request // // @return WirelessNetworksResponse -func (a *ConfigurationAPIService) GetUxiV1alpha1WirelessNetworksGetExecute(r ApiGetUxiV1alpha1WirelessNetworksGetRequest) (*WirelessNetworksResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GetNetworkingUxiV1alpha1WirelessNetworksGetExecute(r ApiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest) (*WirelessNetworksResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1055,12 +1055,12 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WirelessNetworksGetExecute(r Api localVarReturnValue *WirelessNetworksResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetUxiV1alpha1WirelessNetworksGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetNetworkingUxiV1alpha1WirelessNetworksGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/wireless-networks" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/wireless-networks" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1153,27 +1153,27 @@ func (a *ConfigurationAPIService) GetUxiV1alpha1WirelessNetworksGetExecute(r Api return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest struct { +type ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest struct { ctx context.Context ApiService *ConfigurationAPIService groupUid string } -func (r ApiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest) Execute() (interface{}, *http.Response, error) { - return r.ApiService.GroupsDeleteUxiV1alpha1GroupsGroupUidDeleteExecute(r) +func (r ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest) Execute() (interface{}, *http.Response, error) { + return r.ApiService.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteExecute(r) } /* -GroupsDeleteUxiV1alpha1GroupsGroupUidDelete Groups Delete +GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete Groups Delete Delete an existing group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupUid - @return ApiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest + @return ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest */ -func (a *ConfigurationAPIService) GroupsDeleteUxiV1alpha1GroupsGroupUidDelete(ctx context.Context, groupUid string) ApiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest { - return ApiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest{ +func (a *ConfigurationAPIService) GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(ctx context.Context, groupUid string) ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest { + return ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest{ ApiService: a, ctx: ctx, groupUid: groupUid, @@ -1183,7 +1183,7 @@ func (a *ConfigurationAPIService) GroupsDeleteUxiV1alpha1GroupsGroupUidDelete(ct // Execute executes the request // // @return interface{} -func (a *ConfigurationAPIService) GroupsDeleteUxiV1alpha1GroupsGroupUidDeleteExecute(r ApiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest) (interface{}, *http.Response, error) { +func (a *ConfigurationAPIService) GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteExecute(r ApiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest) (interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1191,12 +1191,12 @@ func (a *ConfigurationAPIService) GroupsDeleteUxiV1alpha1GroupsGroupUidDeleteExe localVarReturnValue interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsDeleteUxiV1alpha1GroupsGroupUidDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/groups/{group_uid}" + 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) @@ -1278,7 +1278,7 @@ func (a *ConfigurationAPIService) GroupsDeleteUxiV1alpha1GroupsGroupUidDeleteExe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsGetUxiV1alpha1GroupsGetRequest struct { +type ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -1286,35 +1286,35 @@ type ApiGroupsGetUxiV1alpha1GroupsGetRequest struct { limit *int32 } -func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Id(id string) ApiGroupsGetUxiV1alpha1GroupsGetRequest { +func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Id(id string) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { r.id = &id return r } -func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Next(next string) ApiGroupsGetUxiV1alpha1GroupsGetRequest { +func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Next(next string) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { r.next = &next return r } -func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Limit(limit int32) ApiGroupsGetUxiV1alpha1GroupsGetRequest { +func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Limit(limit int32) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { r.limit = &limit return r } -func (r ApiGroupsGetUxiV1alpha1GroupsGetRequest) Execute() (*GroupsGetResponse, *http.Response, error) { - return r.ApiService.GroupsGetUxiV1alpha1GroupsGetExecute(r) +func (r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) Execute() (*GroupsGetResponse, *http.Response, error) { + return r.ApiService.GroupsGetNetworkingUxiV1alpha1GroupsGetExecute(r) } /* -GroupsGetUxiV1alpha1GroupsGet Groups Get +GroupsGetNetworkingUxiV1alpha1GroupsGet Groups Get Lists groups matching provided criteria @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGroupsGetUxiV1alpha1GroupsGetRequest + @return ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest */ -func (a *ConfigurationAPIService) GroupsGetUxiV1alpha1GroupsGet(ctx context.Context) ApiGroupsGetUxiV1alpha1GroupsGetRequest { - return ApiGroupsGetUxiV1alpha1GroupsGetRequest{ +func (a *ConfigurationAPIService) GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx context.Context) ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest { + return ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest{ ApiService: a, ctx: ctx, } @@ -1323,7 +1323,7 @@ func (a *ConfigurationAPIService) GroupsGetUxiV1alpha1GroupsGet(ctx context.Cont // Execute executes the request // // @return GroupsGetResponse -func (a *ConfigurationAPIService) GroupsGetUxiV1alpha1GroupsGetExecute(r ApiGroupsGetUxiV1alpha1GroupsGetRequest) (*GroupsGetResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GroupsGetNetworkingUxiV1alpha1GroupsGetExecute(r ApiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest) (*GroupsGetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1331,12 +1331,12 @@ func (a *ConfigurationAPIService) GroupsGetUxiV1alpha1GroupsGetExecute(r ApiGrou localVarReturnValue *GroupsGetResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsGetUxiV1alpha1GroupsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsGetNetworkingUxiV1alpha1GroupsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/groups" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1429,33 +1429,33 @@ func (a *ConfigurationAPIService) GroupsGetUxiV1alpha1GroupsGetExecute(r ApiGrou return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest struct { +type ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest struct { ctx context.Context ApiService *ConfigurationAPIService groupUid string groupsPatchRequest *GroupsPatchRequest } -func (r ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest) GroupsPatchRequest(groupsPatchRequest GroupsPatchRequest) ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest { +func (r ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest) GroupsPatchRequest(groupsPatchRequest GroupsPatchRequest) ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest { r.groupsPatchRequest = &groupsPatchRequest return r } -func (r ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest) Execute() (*GroupsPatchResponse, *http.Response, error) { - return r.ApiService.GroupsPatchUxiV1alpha1GroupsGroupUidPatchExecute(r) +func (r ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest) Execute() (*GroupsPatchResponse, *http.Response, error) { + return r.ApiService.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchExecute(r) } /* -GroupsPatchUxiV1alpha1GroupsGroupUidPatch Groups Patch +GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch Groups Patch Update an existing group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param groupUid - @return ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest + @return ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest */ -func (a *ConfigurationAPIService) GroupsPatchUxiV1alpha1GroupsGroupUidPatch(ctx context.Context, groupUid string) ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest { - return ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest{ +func (a *ConfigurationAPIService) GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(ctx context.Context, groupUid string) ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest { + return ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest{ ApiService: a, ctx: ctx, groupUid: groupUid, @@ -1465,7 +1465,7 @@ func (a *ConfigurationAPIService) GroupsPatchUxiV1alpha1GroupsGroupUidPatch(ctx // Execute executes the request // // @return GroupsPatchResponse -func (a *ConfigurationAPIService) GroupsPatchUxiV1alpha1GroupsGroupUidPatchExecute(r ApiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest) (*GroupsPatchResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchExecute(r ApiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest) (*GroupsPatchResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -1473,12 +1473,12 @@ func (a *ConfigurationAPIService) GroupsPatchUxiV1alpha1GroupsGroupUidPatchExecu localVarReturnValue *GroupsPatchResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPatchUxiV1alpha1GroupsGroupUidPatch") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/groups/{group_uid}" + 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) @@ -1565,31 +1565,31 @@ func (a *ConfigurationAPIService) GroupsPatchUxiV1alpha1GroupsGroupUidPatchExecu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiGroupsPostUxiV1alpha1GroupsPostRequest struct { +type ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest struct { ctx context.Context ApiService *ConfigurationAPIService groupsPostRequest *GroupsPostRequest } -func (r ApiGroupsPostUxiV1alpha1GroupsPostRequest) GroupsPostRequest(groupsPostRequest GroupsPostRequest) ApiGroupsPostUxiV1alpha1GroupsPostRequest { +func (r ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest) GroupsPostRequest(groupsPostRequest GroupsPostRequest) ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest { r.groupsPostRequest = &groupsPostRequest return r } -func (r ApiGroupsPostUxiV1alpha1GroupsPostRequest) Execute() (*GroupsPostResponse, *http.Response, error) { - return r.ApiService.GroupsPostUxiV1alpha1GroupsPostExecute(r) +func (r ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest) Execute() (*GroupsPostResponse, *http.Response, error) { + return r.ApiService.GroupsPostNetworkingUxiV1alpha1GroupsPostExecute(r) } /* -GroupsPostUxiV1alpha1GroupsPost Groups Post +GroupsPostNetworkingUxiV1alpha1GroupsPost Groups Post Create a new group with the group identified in `parent_uid` as its parent @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGroupsPostUxiV1alpha1GroupsPostRequest + @return ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest */ -func (a *ConfigurationAPIService) GroupsPostUxiV1alpha1GroupsPost(ctx context.Context) ApiGroupsPostUxiV1alpha1GroupsPostRequest { - return ApiGroupsPostUxiV1alpha1GroupsPostRequest{ +func (a *ConfigurationAPIService) GroupsPostNetworkingUxiV1alpha1GroupsPost(ctx context.Context) ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest { + return ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest{ ApiService: a, ctx: ctx, } @@ -1598,7 +1598,7 @@ func (a *ConfigurationAPIService) GroupsPostUxiV1alpha1GroupsPost(ctx context.Co // Execute executes the request // // @return GroupsPostResponse -func (a *ConfigurationAPIService) GroupsPostUxiV1alpha1GroupsPostExecute(r ApiGroupsPostUxiV1alpha1GroupsPostRequest) (*GroupsPostResponse, *http.Response, error) { +func (a *ConfigurationAPIService) GroupsPostNetworkingUxiV1alpha1GroupsPostExecute(r ApiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest) (*GroupsPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1606,12 +1606,12 @@ func (a *ConfigurationAPIService) GroupsPostUxiV1alpha1GroupsPostExecute(r ApiGr localVarReturnValue *GroupsPostResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPostUxiV1alpha1GroupsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GroupsPostNetworkingUxiV1alpha1GroupsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/groups" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/groups" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1697,31 +1697,31 @@ func (a *ConfigurationAPIService) GroupsPostUxiV1alpha1GroupsPostExecute(r ApiGr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest struct { +type ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest struct { ctx context.Context ApiService *ConfigurationAPIService networkGroupAssignmentsPostRequest *NetworkGroupAssignmentsPostRequest } -func (r ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest) NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest NetworkGroupAssignmentsPostRequest) ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest { +func (r ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest) NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest NetworkGroupAssignmentsPostRequest) ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest { r.networkGroupAssignmentsPostRequest = &networkGroupAssignmentsPostRequest return r } -func (r ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest) Execute() (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { - return r.ApiService.PostUxiV1alpha1NetworkGroupAssignmentsPostExecute(r) +func (r ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest) Execute() (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { + return r.ApiService.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostExecute(r) } /* -PostUxiV1alpha1NetworkGroupAssignmentsPost Post +PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost Post Create a network group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest + @return ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest */ -func (a *ConfigurationAPIService) PostUxiV1alpha1NetworkGroupAssignmentsPost(ctx context.Context) ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest { - return ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest{ +func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(ctx context.Context) ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest { + return ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest{ ApiService: a, ctx: ctx, } @@ -1730,7 +1730,7 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1NetworkGroupAssignmentsPost(ctx // Execute executes the request // // @return NetworkGroupAssignmentsPostResponse -func (a *ConfigurationAPIService) PostUxiV1alpha1NetworkGroupAssignmentsPostExecute(r ApiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest) (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { +func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostExecute(r ApiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest) (*NetworkGroupAssignmentsPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1738,12 +1738,12 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1NetworkGroupAssignmentsPostExec localVarReturnValue *NetworkGroupAssignmentsPostResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostUxiV1alpha1NetworkGroupAssignmentsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/network-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/network-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1829,31 +1829,31 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1NetworkGroupAssignmentsPostExec return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest struct { +type ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest struct { ctx context.Context ApiService *ConfigurationAPIService sensorGroupAssignmentsPostRequest *SensorGroupAssignmentsPostRequest } -func (r ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest) SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest SensorGroupAssignmentsPostRequest) ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest { +func (r ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest) SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest SensorGroupAssignmentsPostRequest) ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest { r.sensorGroupAssignmentsPostRequest = &sensorGroupAssignmentsPostRequest return r } -func (r ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest) Execute() (*SensorGroupAssignmentResponse, *http.Response, error) { - return r.ApiService.PostUxiV1alpha1SensorGroupAssignmentsPostExecute(r) +func (r ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest) Execute() (*SensorGroupAssignmentResponse, *http.Response, error) { + return r.ApiService.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPostExecute(r) } /* -PostUxiV1alpha1SensorGroupAssignmentsPost Post +PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost Post Create sensor group assignment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest + @return ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest */ -func (a *ConfigurationAPIService) PostUxiV1alpha1SensorGroupAssignmentsPost(ctx context.Context) ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest { - return ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest{ +func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(ctx context.Context) ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest { + return ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest{ ApiService: a, ctx: ctx, } @@ -1862,7 +1862,7 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1SensorGroupAssignmentsPost(ctx // Execute executes the request // // @return SensorGroupAssignmentResponse -func (a *ConfigurationAPIService) PostUxiV1alpha1SensorGroupAssignmentsPostExecute(r ApiPostUxiV1alpha1SensorGroupAssignmentsPostRequest) (*SensorGroupAssignmentResponse, *http.Response, error) { +func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1SensorGroupAssignmentsPostExecute(r ApiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest) (*SensorGroupAssignmentResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1870,12 +1870,12 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1SensorGroupAssignmentsPostExecu localVarReturnValue *SensorGroupAssignmentResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostUxiV1alpha1SensorGroupAssignmentsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/sensor-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/sensor-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1961,31 +1961,31 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1SensorGroupAssignmentsPostExecu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest struct { +type ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest struct { ctx context.Context ApiService *ConfigurationAPIService serviceTestGroupAssignmentsPostRequest *ServiceTestGroupAssignmentsPostRequest } -func (r ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest ServiceTestGroupAssignmentsPostRequest) ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest { +func (r ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest ServiceTestGroupAssignmentsPostRequest) ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest { r.serviceTestGroupAssignmentsPostRequest = &serviceTestGroupAssignmentsPostRequest return r } -func (r ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) Execute() (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { - return r.ApiService.PostUxiV1alpha1ServiceTestGroupAssignmentsPostExecute(r) +func (r ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) Execute() (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { + return r.ApiService.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostExecute(r) } /* -PostUxiV1alpha1ServiceTestGroupAssignmentsPost Post +PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost Post 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 ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest + @return ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest */ -func (a *ConfigurationAPIService) PostUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx context.Context) ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest { - return ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest{ +func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx context.Context) ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest { + return ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest{ ApiService: a, ctx: ctx, } @@ -1994,7 +1994,7 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1ServiceTestGroupAssignmentsPost // Execute executes the request // // @return ServiceTestGroupAssignmentsPostResponse -func (a *ConfigurationAPIService) PostUxiV1alpha1ServiceTestGroupAssignmentsPostExecute(r ApiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { +func (a *ConfigurationAPIService) PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostExecute(r ApiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest) (*ServiceTestGroupAssignmentsPostResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -2002,12 +2002,12 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1ServiceTestGroupAssignmentsPost localVarReturnValue *ServiceTestGroupAssignmentsPostResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostUxiV1alpha1ServiceTestGroupAssignmentsPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/service-test-group-assignments" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-test-group-assignments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2093,7 +2093,7 @@ func (a *ConfigurationAPIService) PostUxiV1alpha1ServiceTestGroupAssignmentsPost return localVarReturnValue, localVarHTTPResponse, nil } -type ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest struct { +type ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService id *string @@ -2101,35 +2101,35 @@ type ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest struct { limit *int32 } -func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Id(id string) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { +func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Id(id string) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { r.id = &id return r } -func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Next(next string) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { +func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Next(next string) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { r.next = &next return r } -func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Limit(limit int32) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { +func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Limit(limit int32) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { r.limit = &limit return r } -func (r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) Execute() (*ServiceTestsListResponse, *http.Response, error) { - return r.ApiService.ServiceTestsGetUxiV1alpha1ServiceTestsGetExecute(r) +func (r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) Execute() (*ServiceTestsListResponse, *http.Response, error) { + return r.ApiService.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetExecute(r) } /* -ServiceTestsGetUxiV1alpha1ServiceTestsGet Service Tests Get +ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet Service Tests Get Lists service-tests matching provided criteria @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest + @return ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest */ -func (a *ConfigurationAPIService) ServiceTestsGetUxiV1alpha1ServiceTestsGet(ctx context.Context) ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest { - return ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest{ +func (a *ConfigurationAPIService) ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet(ctx context.Context) ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest { + return ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest{ ApiService: a, ctx: ctx, } @@ -2138,7 +2138,7 @@ func (a *ConfigurationAPIService) ServiceTestsGetUxiV1alpha1ServiceTestsGet(ctx // Execute executes the request // // @return ServiceTestsListResponse -func (a *ConfigurationAPIService) ServiceTestsGetUxiV1alpha1ServiceTestsGetExecute(r ApiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest) (*ServiceTestsListResponse, *http.Response, error) { +func (a *ConfigurationAPIService) ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetExecute(r ApiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest) (*ServiceTestsListResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2146,12 +2146,12 @@ func (a *ConfigurationAPIService) ServiceTestsGetUxiV1alpha1ServiceTestsGetExecu localVarReturnValue *ServiceTestsListResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestsGetUxiV1alpha1ServiceTestsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/uxi/v1alpha1/service-tests" + localVarPath := localBasePath + "/networking-uxi/v1alpha1/service-tests" 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 b30f45a5..5f7357fb 100644 --- a/pkg/config-api-client/client.go +++ b/pkg/config-api-client/client.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Configuration Api API v2.9.0 +// APIClient manages communication with the Configuration Api API v3.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 78ebc553..7aa3f327 100644 --- a/pkg/config-api-client/configuration.go +++ b/pkg/config-api-client/configuration.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 0a09224a..c6011884 100644 --- a/pkg/config-api-client/docs/ConfigurationAPI.md +++ b/pkg/config-api-client/docs/ConfigurationAPI.md @@ -4,28 +4,28 @@ All URIs are relative to *https://api.capenetworks.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete) | **Delete** /uxi/v1alpha1/network-group-assignments/{id} | Delete Network Group Assignment -[**DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete) | **Delete** /uxi/v1alpha1/sensor-group-assignments/{id} | Delete Sensor Group Assignment -[**DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete**](ConfigurationAPI.md#DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete) | **Delete** /uxi/v1alpha1/service-test-group-assignments/{id} | Delete Service Test Group Assignment -[**GetUxiV1alpha1NetworkGroupAssignmentsGet**](ConfigurationAPI.md#GetUxiV1alpha1NetworkGroupAssignmentsGet) | **Get** /uxi/v1alpha1/network-group-assignments | Get -[**GetUxiV1alpha1SensorGroupAssignmentsGet**](ConfigurationAPI.md#GetUxiV1alpha1SensorGroupAssignmentsGet) | **Get** /uxi/v1alpha1/sensor-group-assignments | Get -[**GetUxiV1alpha1SensorsGet**](ConfigurationAPI.md#GetUxiV1alpha1SensorsGet) | **Get** /uxi/v1alpha1/sensors | Get -[**GetUxiV1alpha1WiredNetworksGet**](ConfigurationAPI.md#GetUxiV1alpha1WiredNetworksGet) | **Get** /uxi/v1alpha1/wired-networks | Get -[**GetUxiV1alpha1WirelessNetworksGet**](ConfigurationAPI.md#GetUxiV1alpha1WirelessNetworksGet) | **Get** /uxi/v1alpha1/wireless-networks | Get -[**GroupsDeleteUxiV1alpha1GroupsGroupUidDelete**](ConfigurationAPI.md#GroupsDeleteUxiV1alpha1GroupsGroupUidDelete) | **Delete** /uxi/v1alpha1/groups/{group_uid} | Groups Delete -[**GroupsGetUxiV1alpha1GroupsGet**](ConfigurationAPI.md#GroupsGetUxiV1alpha1GroupsGet) | **Get** /uxi/v1alpha1/groups | Groups Get -[**GroupsPatchUxiV1alpha1GroupsGroupUidPatch**](ConfigurationAPI.md#GroupsPatchUxiV1alpha1GroupsGroupUidPatch) | **Patch** /uxi/v1alpha1/groups/{group_uid} | Groups Patch -[**GroupsPostUxiV1alpha1GroupsPost**](ConfigurationAPI.md#GroupsPostUxiV1alpha1GroupsPost) | **Post** /uxi/v1alpha1/groups | Groups Post -[**PostUxiV1alpha1NetworkGroupAssignmentsPost**](ConfigurationAPI.md#PostUxiV1alpha1NetworkGroupAssignmentsPost) | **Post** /uxi/v1alpha1/network-group-assignments | Post -[**PostUxiV1alpha1SensorGroupAssignmentsPost**](ConfigurationAPI.md#PostUxiV1alpha1SensorGroupAssignmentsPost) | **Post** /uxi/v1alpha1/sensor-group-assignments | Post -[**PostUxiV1alpha1ServiceTestGroupAssignmentsPost**](ConfigurationAPI.md#PostUxiV1alpha1ServiceTestGroupAssignmentsPost) | **Post** /uxi/v1alpha1/service-test-group-assignments | Post -[**ServiceTestsGetUxiV1alpha1ServiceTestsGet**](ConfigurationAPI.md#ServiceTestsGetUxiV1alpha1ServiceTestsGet) | **Get** /uxi/v1alpha1/service-tests | Service Tests Get +[**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 -## DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete +## DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete -> interface{} DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx, id).Execute() +> interface{} DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx, id).Execute() Delete Network Group Assignment @@ -48,13 +48,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete(context.Background(), id).Execute() + resp, r, err := apiClient.ConfigurationAPI.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete`: %v\n", resp) + // response from `DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete`: %v\n", resp) } ``` @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -93,9 +93,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete +## DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete -> interface{} DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx, id).Execute() +> interface{} DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx, id).Execute() Delete Sensor Group Assignment @@ -118,13 +118,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete(context.Background(), id).Execute() + resp, r, err := apiClient.ConfigurationAPI.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete`: %v\n", resp) + // response from `DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete`: %v\n", resp) } ``` @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -163,9 +163,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete +## DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete -> interface{} DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, id).Execute() +> interface{} DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, id).Execute() Delete Service Test Group Assignment @@ -188,13 +188,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), id).Execute() + resp, r, err := apiClient.ConfigurationAPI.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: %v\n", resp) + // response from `DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete`: %v\n", resp) } ``` @@ -208,7 +208,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiDeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -233,9 +233,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetUxiV1alpha1NetworkGroupAssignmentsGet +## GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet -> NetworkGroupAssignmentsResponse GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> NetworkGroupAssignmentsResponse GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -260,13 +260,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1NetworkGroupAssignmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUxiV1alpha1NetworkGroupAssignmentsGet`: NetworkGroupAssignmentsResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetUxiV1alpha1NetworkGroupAssignmentsGet`: %v\n", resp) + // response from `GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet`: NetworkGroupAssignmentsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet`: %v\n", resp) } ``` @@ -276,7 +276,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetUxiV1alpha1NetworkGroupAssignmentsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1NetworkGroupAssignmentsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -303,9 +303,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetUxiV1alpha1SensorGroupAssignmentsGet +## GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet -> SensorGroupAssignmentsResponse GetUxiV1alpha1SensorGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> SensorGroupAssignmentsResponse GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -330,13 +330,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1SensorGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1SensorGroupAssignmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUxiV1alpha1SensorGroupAssignmentsGet`: SensorGroupAssignmentsResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetUxiV1alpha1SensorGroupAssignmentsGet`: %v\n", resp) + // response from `GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet`: SensorGroupAssignmentsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet`: %v\n", resp) } ``` @@ -346,7 +346,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetUxiV1alpha1SensorGroupAssignmentsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1SensorGroupAssignmentsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -373,9 +373,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetUxiV1alpha1SensorsGet +## GetNetworkingUxiV1alpha1SensorsGet -> SensorsResponse GetUxiV1alpha1SensorsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> SensorsResponse GetNetworkingUxiV1alpha1SensorsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -400,13 +400,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1SensorsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1SensorsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1SensorsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUxiV1alpha1SensorsGet`: SensorsResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetUxiV1alpha1SensorsGet`: %v\n", resp) + // response from `GetNetworkingUxiV1alpha1SensorsGet`: SensorsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1SensorsGet`: %v\n", resp) } ``` @@ -416,7 +416,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetUxiV1alpha1SensorsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1SensorsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -443,9 +443,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetUxiV1alpha1WiredNetworksGet +## GetNetworkingUxiV1alpha1WiredNetworksGet -> WiredNetworksResponse GetUxiV1alpha1WiredNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> WiredNetworksResponse GetNetworkingUxiV1alpha1WiredNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -470,13 +470,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1WiredNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1WiredNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1WiredNetworksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1WiredNetworksGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUxiV1alpha1WiredNetworksGet`: WiredNetworksResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetUxiV1alpha1WiredNetworksGet`: %v\n", resp) + // response from `GetNetworkingUxiV1alpha1WiredNetworksGet`: WiredNetworksResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1WiredNetworksGet`: %v\n", resp) } ``` @@ -486,7 +486,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetUxiV1alpha1WiredNetworksGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1WiredNetworksGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -513,9 +513,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetUxiV1alpha1WirelessNetworksGet +## GetNetworkingUxiV1alpha1WirelessNetworksGet -> WirelessNetworksResponse GetUxiV1alpha1WirelessNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> WirelessNetworksResponse GetNetworkingUxiV1alpha1WirelessNetworksGet(ctx).Id(id).Next(next).Limit(limit).Execute() Get @@ -540,13 +540,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GetUxiV1alpha1WirelessNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GetNetworkingUxiV1alpha1WirelessNetworksGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetUxiV1alpha1WirelessNetworksGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetNetworkingUxiV1alpha1WirelessNetworksGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetUxiV1alpha1WirelessNetworksGet`: WirelessNetworksResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetUxiV1alpha1WirelessNetworksGet`: %v\n", resp) + // response from `GetNetworkingUxiV1alpha1WirelessNetworksGet`: WirelessNetworksResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetNetworkingUxiV1alpha1WirelessNetworksGet`: %v\n", resp) } ``` @@ -556,7 +556,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGetUxiV1alpha1WirelessNetworksGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGetNetworkingUxiV1alpha1WirelessNetworksGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -583,9 +583,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsDeleteUxiV1alpha1GroupsGroupUidDelete +## GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete -> interface{} GroupsDeleteUxiV1alpha1GroupsGroupUidDelete(ctx, groupUid).Execute() +> interface{} GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(ctx, groupUid).Execute() Groups Delete @@ -608,13 +608,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsDeleteUxiV1alpha1GroupsGroupUidDelete(context.Background(), groupUid).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(context.Background(), groupUid).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsDeleteUxiV1alpha1GroupsGroupUidDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsDeleteUxiV1alpha1GroupsGroupUidDelete`: interface{} - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsDeleteUxiV1alpha1GroupsGroupUidDelete`: %v\n", resp) + // response from `GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete`: interface{} + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete`: %v\n", resp) } ``` @@ -628,7 +628,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsDeleteUxiV1alpha1GroupsGroupUidDeleteRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDeleteRequest struct via the builder pattern Name | Type | Description | Notes @@ -653,9 +653,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsGetUxiV1alpha1GroupsGet +## GroupsGetNetworkingUxiV1alpha1GroupsGet -> GroupsGetResponse GroupsGetUxiV1alpha1GroupsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> GroupsGetResponse GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Groups Get @@ -680,13 +680,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsGetUxiV1alpha1GroupsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsGetNetworkingUxiV1alpha1GroupsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsGetUxiV1alpha1GroupsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsGetNetworkingUxiV1alpha1GroupsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsGetUxiV1alpha1GroupsGet`: GroupsGetResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsGetUxiV1alpha1GroupsGet`: %v\n", resp) + // response from `GroupsGetNetworkingUxiV1alpha1GroupsGet`: GroupsGetResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsGetNetworkingUxiV1alpha1GroupsGet`: %v\n", resp) } ``` @@ -696,7 +696,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsGetUxiV1alpha1GroupsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsGetNetworkingUxiV1alpha1GroupsGetRequest struct via the builder pattern Name | Type | Description | Notes @@ -723,9 +723,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsPatchUxiV1alpha1GroupsGroupUidPatch +## GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch -> GroupsPatchResponse GroupsPatchUxiV1alpha1GroupsGroupUidPatch(ctx, groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() +> GroupsPatchResponse GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(ctx, groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() Groups Patch @@ -749,13 +749,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsPatchUxiV1alpha1GroupsGroupUidPatch(context.Background(), groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(context.Background(), groupUid).GroupsPatchRequest(groupsPatchRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPatchUxiV1alpha1GroupsGroupUidPatch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsPatchUxiV1alpha1GroupsGroupUidPatch`: GroupsPatchResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPatchUxiV1alpha1GroupsGroupUidPatch`: %v\n", resp) + // response from `GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch`: GroupsPatchResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch`: %v\n", resp) } ``` @@ -769,7 +769,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsPatchUxiV1alpha1GroupsGroupUidPatchRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatchRequest struct via the builder pattern Name | Type | Description | Notes @@ -795,9 +795,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GroupsPostUxiV1alpha1GroupsPost +## GroupsPostNetworkingUxiV1alpha1GroupsPost -> GroupsPostResponse GroupsPostUxiV1alpha1GroupsPost(ctx).GroupsPostRequest(groupsPostRequest).Execute() +> GroupsPostResponse GroupsPostNetworkingUxiV1alpha1GroupsPost(ctx).GroupsPostRequest(groupsPostRequest).Execute() Groups Post @@ -820,13 +820,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.GroupsPostUxiV1alpha1GroupsPost(context.Background()).GroupsPostRequest(groupsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.GroupsPostNetworkingUxiV1alpha1GroupsPost(context.Background()).GroupsPostRequest(groupsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPostUxiV1alpha1GroupsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GroupsPostNetworkingUxiV1alpha1GroupsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GroupsPostUxiV1alpha1GroupsPost`: GroupsPostResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPostUxiV1alpha1GroupsPost`: %v\n", resp) + // response from `GroupsPostNetworkingUxiV1alpha1GroupsPost`: GroupsPostResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GroupsPostNetworkingUxiV1alpha1GroupsPost`: %v\n", resp) } ``` @@ -836,7 +836,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiGroupsPostUxiV1alpha1GroupsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGroupsPostNetworkingUxiV1alpha1GroupsPostRequest struct via the builder pattern Name | Type | Description | Notes @@ -861,9 +861,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PostUxiV1alpha1NetworkGroupAssignmentsPost +## PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost -> NetworkGroupAssignmentsPostResponse PostUxiV1alpha1NetworkGroupAssignmentsPost(ctx).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() +> NetworkGroupAssignmentsPostResponse PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(ctx).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() Post @@ -886,13 +886,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.PostUxiV1alpha1NetworkGroupAssignmentsPost(context.Background()).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(context.Background()).NetworkGroupAssignmentsPostRequest(networkGroupAssignmentsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostUxiV1alpha1NetworkGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostUxiV1alpha1NetworkGroupAssignmentsPost`: NetworkGroupAssignmentsPostResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostUxiV1alpha1NetworkGroupAssignmentsPost`: %v\n", resp) + // response from `PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost`: NetworkGroupAssignmentsPostResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost`: %v\n", resp) } ``` @@ -902,7 +902,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPostUxiV1alpha1NetworkGroupAssignmentsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPostNetworkingUxiV1alpha1NetworkGroupAssignmentsPostRequest struct via the builder pattern Name | Type | Description | Notes @@ -927,9 +927,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PostUxiV1alpha1SensorGroupAssignmentsPost +## PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost -> SensorGroupAssignmentResponse PostUxiV1alpha1SensorGroupAssignmentsPost(ctx).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() +> SensorGroupAssignmentResponse PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(ctx).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() Post @@ -952,13 +952,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.PostUxiV1alpha1SensorGroupAssignmentsPost(context.Background()).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(context.Background()).SensorGroupAssignmentsPostRequest(sensorGroupAssignmentsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostUxiV1alpha1SensorGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostUxiV1alpha1SensorGroupAssignmentsPost`: SensorGroupAssignmentResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostUxiV1alpha1SensorGroupAssignmentsPost`: %v\n", resp) + // response from `PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost`: SensorGroupAssignmentResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost`: %v\n", resp) } ``` @@ -968,7 +968,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPostUxiV1alpha1SensorGroupAssignmentsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPostNetworkingUxiV1alpha1SensorGroupAssignmentsPostRequest struct via the builder pattern Name | Type | Description | Notes @@ -993,9 +993,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## PostUxiV1alpha1ServiceTestGroupAssignmentsPost +## PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost -> ServiceTestGroupAssignmentsPostResponse PostUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() +> ServiceTestGroupAssignmentsPostResponse PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() Post @@ -1018,13 +1018,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.PostUxiV1alpha1ServiceTestGroupAssignmentsPost(context.Background()).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() + resp, r, err := apiClient.ConfigurationAPI.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(context.Background()).ServiceTestGroupAssignmentsPostRequest(serviceTestGroupAssignmentsPostRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostUxiV1alpha1ServiceTestGroupAssignmentsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostUxiV1alpha1ServiceTestGroupAssignmentsPost`: ServiceTestGroupAssignmentsPostResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostUxiV1alpha1ServiceTestGroupAssignmentsPost`: %v\n", resp) + // response from `PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost`: ServiceTestGroupAssignmentsPostResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost`: %v\n", resp) } ``` @@ -1034,7 +1034,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPostUxiV1alpha1ServiceTestGroupAssignmentsPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPostRequest struct via the builder pattern Name | Type | Description | Notes @@ -1059,9 +1059,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ServiceTestsGetUxiV1alpha1ServiceTestsGet +## ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet -> ServiceTestsListResponse ServiceTestsGetUxiV1alpha1ServiceTestsGet(ctx).Id(id).Next(next).Limit(limit).Execute() +> ServiceTestsListResponse ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet(ctx).Id(id).Next(next).Limit(limit).Execute() Service Tests Get @@ -1086,13 +1086,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ConfigurationAPI.ServiceTestsGetUxiV1alpha1ServiceTestsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() + resp, r, err := apiClient.ConfigurationAPI.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet(context.Background()).Id(id).Next(next).Limit(limit).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestsGetUxiV1alpha1ServiceTestsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ServiceTestsGetUxiV1alpha1ServiceTestsGet`: ServiceTestsListResponse - fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestsGetUxiV1alpha1ServiceTestsGet`: %v\n", resp) + // response from `ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet`: ServiceTestsListResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.ServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGet`: %v\n", resp) } ``` @@ -1102,7 +1102,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiServiceTestsGetUxiV1alpha1ServiceTestsGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiServiceTestsGetNetworkingUxiV1alpha1ServiceTestsGetRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/pkg/config-api-client/docs/GroupsGetItem.md b/pkg/config-api-client/docs/GroupsGetItem.md index 7a2acb9f..ba60e109 100644 --- a/pkg/config-api-client/docs/GroupsGetItem.md +++ b/pkg/config-api-client/docs/GroupsGetItem.md @@ -8,13 +8,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Parent** | [**NullableParent**](Parent.md) | | **Path** | **string** | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/group"] +**Type** | **string** | | ## Methods ### NewGroupsGetItem -`func NewGroupsGetItem(id string, name string, parent NullableParent, path string, ) *GroupsGetItem` +`func NewGroupsGetItem(id string, name string, parent NullableParent, path string, type_ string, ) *GroupsGetItem` NewGroupsGetItem instantiates a new GroupsGetItem object This constructor will assign default values to properties that have it defined, @@ -138,11 +138,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *GroupsGetItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/GroupsPatchResponse.md b/pkg/config-api-client/docs/GroupsPatchResponse.md index fd0dd4d8..be6bc08f 100644 --- a/pkg/config-api-client/docs/GroupsPatchResponse.md +++ b/pkg/config-api-client/docs/GroupsPatchResponse.md @@ -8,13 +8,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Path** | **string** | | **Parent** | [**Parent**](Parent.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/group"] +**Type** | **string** | | ## Methods ### NewGroupsPatchResponse -`func NewGroupsPatchResponse(id string, name string, path string, parent Parent, ) *GroupsPatchResponse` +`func NewGroupsPatchResponse(id string, name string, path string, parent Parent, type_ string, ) *GroupsPatchResponse` NewGroupsPatchResponse instantiates a new GroupsPatchResponse object This constructor will assign default values to properties that have it defined, @@ -128,11 +128,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *GroupsPatchResponse) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/GroupsPostResponse.md b/pkg/config-api-client/docs/GroupsPostResponse.md index f53fe205..617f9fdf 100644 --- a/pkg/config-api-client/docs/GroupsPostResponse.md +++ b/pkg/config-api-client/docs/GroupsPostResponse.md @@ -8,13 +8,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Path** | **string** | | **Parent** | [**Parent**](Parent.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/group"] +**Type** | **string** | | ## Methods ### NewGroupsPostResponse -`func NewGroupsPostResponse(id string, name string, path string, parent Parent, ) *GroupsPostResponse` +`func NewGroupsPostResponse(id string, name string, path string, parent Parent, type_ string, ) *GroupsPostResponse` NewGroupsPostResponse instantiates a new GroupsPostResponse object This constructor will assign default values to properties that have it defined, @@ -128,11 +128,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *GroupsPostResponse) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md b/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md index 1d424799..089c3699 100644 --- a/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md +++ b/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **string** | | **Group** | [**Group**](Group.md) | | **Network** | [**Network**](Network.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/network-group-assignment"] +**Type** | **string** | | ## Methods ### NewNetworkGroupAssignmentsItem -`func NewNetworkGroupAssignmentsItem(id string, group Group, network Network, ) *NetworkGroupAssignmentsItem` +`func NewNetworkGroupAssignmentsItem(id string, group Group, network Network, type_ string, ) *NetworkGroupAssignmentsItem` NewNetworkGroupAssignmentsItem instantiates a new NetworkGroupAssignmentsItem object This constructor will assign default values to properties that have it defined, @@ -107,11 +107,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *NetworkGroupAssignmentsItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/NetworkGroupAssignmentsPostResponse.md b/pkg/config-api-client/docs/NetworkGroupAssignmentsPostResponse.md index d4d1e6db..982651c2 100644 --- a/pkg/config-api-client/docs/NetworkGroupAssignmentsPostResponse.md +++ b/pkg/config-api-client/docs/NetworkGroupAssignmentsPostResponse.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **string** | | **Group** | [**Group**](Group.md) | | **Network** | [**Network**](Network.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/network-group-assignment"] +**Type** | **string** | | ## Methods ### NewNetworkGroupAssignmentsPostResponse -`func NewNetworkGroupAssignmentsPostResponse(id string, group Group, network Network, ) *NetworkGroupAssignmentsPostResponse` +`func NewNetworkGroupAssignmentsPostResponse(id string, group Group, network Network, type_ string, ) *NetworkGroupAssignmentsPostResponse` NewNetworkGroupAssignmentsPostResponse instantiates a new NetworkGroupAssignmentsPostResponse object This constructor will assign default values to properties that have it defined, @@ -107,11 +107,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *NetworkGroupAssignmentsPostResponse) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/SensorGroupAssignmentResponse.md b/pkg/config-api-client/docs/SensorGroupAssignmentResponse.md index e7898212..333cad6d 100644 --- a/pkg/config-api-client/docs/SensorGroupAssignmentResponse.md +++ b/pkg/config-api-client/docs/SensorGroupAssignmentResponse.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **string** | | **Group** | [**Group**](Group.md) | | **Sensor** | [**Sensor**](Sensor.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/sensor-group-assignment"] +**Type** | **string** | | ## Methods ### NewSensorGroupAssignmentResponse -`func NewSensorGroupAssignmentResponse(id string, group Group, sensor Sensor, ) *SensorGroupAssignmentResponse` +`func NewSensorGroupAssignmentResponse(id string, group Group, sensor Sensor, type_ string, ) *SensorGroupAssignmentResponse` NewSensorGroupAssignmentResponse instantiates a new SensorGroupAssignmentResponse object This constructor will assign default values to properties that have it defined, @@ -107,11 +107,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *SensorGroupAssignmentResponse) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/SensorGroupAssignmentsItem.md b/pkg/config-api-client/docs/SensorGroupAssignmentsItem.md index 0bad6755..30f5c08b 100644 --- a/pkg/config-api-client/docs/SensorGroupAssignmentsItem.md +++ b/pkg/config-api-client/docs/SensorGroupAssignmentsItem.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **string** | | **Group** | [**Group**](Group.md) | | **Sensor** | [**Sensor**](Sensor.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/sensor-group-assignment"] +**Type** | **string** | | ## Methods ### NewSensorGroupAssignmentsItem -`func NewSensorGroupAssignmentsItem(id string, group Group, sensor Sensor, ) *SensorGroupAssignmentsItem` +`func NewSensorGroupAssignmentsItem(id string, group Group, sensor Sensor, type_ string, ) *SensorGroupAssignmentsItem` NewSensorGroupAssignmentsItem instantiates a new SensorGroupAssignmentsItem object This constructor will assign default values to properties that have it defined, @@ -107,11 +107,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *SensorGroupAssignmentsItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/SensorItem.md b/pkg/config-api-client/docs/SensorItem.md index 2f9ac67f..b2f85c86 100644 --- a/pkg/config-api-client/docs/SensorItem.md +++ b/pkg/config-api-client/docs/SensorItem.md @@ -15,13 +15,13 @@ Name | Type | Description | Notes **Latitude** | **NullableFloat32** | | **Notes** | **NullableString** | | **PcapMode** | **NullableString** | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/sensor"] +**Type** | **string** | | ## Methods ### NewSensorItem -`func NewSensorItem(id string, serial string, name string, modelNumber NullableString, wifiMacAddress NullableString, ethernetMacAddress NullableString, addressNote NullableString, longitude NullableFloat32, latitude NullableFloat32, notes NullableString, pcapMode NullableString, ) *SensorItem` +`func NewSensorItem(id string, serial string, name string, modelNumber NullableString, wifiMacAddress NullableString, ethernetMacAddress NullableString, addressNote NullableString, longitude NullableFloat32, latitude NullableFloat32, notes NullableString, pcapMode NullableString, type_ string, ) *SensorItem` NewSensorItem instantiates a new SensorItem object This constructor will assign default values to properties that have it defined, @@ -355,11 +355,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *SensorItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/ServiceTestGroupAssignmentsPostResponse.md b/pkg/config-api-client/docs/ServiceTestGroupAssignmentsPostResponse.md index 5bc22758..9f767178 100644 --- a/pkg/config-api-client/docs/ServiceTestGroupAssignmentsPostResponse.md +++ b/pkg/config-api-client/docs/ServiceTestGroupAssignmentsPostResponse.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **string** | | **Group** | [**Group**](Group.md) | | **ServiceTest** | [**ServiceTest**](ServiceTest.md) | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/service-test-group-assignment"] +**Type** | **string** | | ## Methods ### NewServiceTestGroupAssignmentsPostResponse -`func NewServiceTestGroupAssignmentsPostResponse(id string, group Group, serviceTest ServiceTest, ) *ServiceTestGroupAssignmentsPostResponse` +`func NewServiceTestGroupAssignmentsPostResponse(id string, group Group, serviceTest ServiceTest, type_ string, ) *ServiceTestGroupAssignmentsPostResponse` NewServiceTestGroupAssignmentsPostResponse instantiates a new ServiceTestGroupAssignmentsPostResponse object This constructor will assign default values to properties that have it defined, @@ -107,11 +107,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *ServiceTestGroupAssignmentsPostResponse) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/ServiceTestsListItem.md b/pkg/config-api-client/docs/ServiceTestsListItem.md index 68d82fc0..e2f13969 100644 --- a/pkg/config-api-client/docs/ServiceTestsListItem.md +++ b/pkg/config-api-client/docs/ServiceTestsListItem.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Target** | **NullableString** | | **Template** | **string** | | **IsEnabled** | **bool** | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/service-test"] +**Type** | **string** | | ## Methods ### NewServiceTestsListItem -`func NewServiceTestsListItem(id string, category string, name string, target NullableString, template string, isEnabled bool, ) *ServiceTestsListItem` +`func NewServiceTestsListItem(id string, category string, name string, target NullableString, template string, isEnabled bool, type_ string, ) *ServiceTestsListItem` NewServiceTestsListItem instantiates a new ServiceTestsListItem object This constructor will assign default values to properties that have it defined, @@ -180,11 +180,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *ServiceTestsListItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/WiredNetworksItem.md b/pkg/config-api-client/docs/WiredNetworksItem.md index 433b77dd..d5633145 100644 --- a/pkg/config-api-client/docs/WiredNetworksItem.md +++ b/pkg/config-api-client/docs/WiredNetworksItem.md @@ -15,13 +15,13 @@ Name | Type | Description | Notes **UseDns64** | **bool** | | **ExternalConnectivity** | **bool** | | **VLanId** | **NullableInt32** | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/wired-network"] +**Type** | **string** | | ## Methods ### NewWiredNetworksItem -`func NewWiredNetworksItem(id string, name string, ipVersion string, createdAt time.Time, updatedAt time.Time, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vLanId NullableInt32, ) *WiredNetworksItem` +`func NewWiredNetworksItem(id string, name string, ipVersion string, createdAt time.Time, updatedAt time.Time, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vLanId NullableInt32, type_ string, ) *WiredNetworksItem` NewWiredNetworksItem instantiates a new WiredNetworksItem object This constructor will assign default values to properties that have it defined, @@ -305,11 +305,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *WiredNetworksItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/docs/WirelessNetworksItem.md b/pkg/config-api-client/docs/WirelessNetworksItem.md index 746bab48..01068655 100644 --- a/pkg/config-api-client/docs/WirelessNetworksItem.md +++ b/pkg/config-api-client/docs/WirelessNetworksItem.md @@ -17,13 +17,13 @@ Name | Type | Description | Notes **DisableEdns** | **bool** | | **UseDns64** | **bool** | | **ExternalConnectivity** | **bool** | | -**Type** | Pointer to **string** | | [optional] [default to "uxi/wireless-network"] +**Type** | **string** | | ## Methods ### NewWirelessNetworksItem -`func NewWirelessNetworksItem(id string, name string, ssid string, security NullableString, ipVersion string, createdAt time.Time, updatedAt time.Time, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, ) *WirelessNetworksItem` +`func NewWirelessNetworksItem(id string, name string, ssid string, security NullableString, ipVersion string, createdAt time.Time, updatedAt time.Time, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, type_ string, ) *WirelessNetworksItem` NewWirelessNetworksItem instantiates a new WirelessNetworksItem object This constructor will assign default values to properties that have it defined, @@ -337,11 +337,6 @@ and a boolean to check if the value has been set. SetType sets Type field to given value. -### HasType - -`func (o *WirelessNetworksItem) HasType() bool` - -HasType returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/pkg/config-api-client/model_error_detail.go b/pkg/config-api-client/model_error_detail.go index ed4298cd..49b79beb 100644 --- a/pkg/config-api-client/model_error_detail.go +++ b/pkg/config-api-client/model_error_detail.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 a4f3fa6d..ada071b9 100644 --- a/pkg/config-api-client/model_error_response.go +++ b/pkg/config-api-client/model_error_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 1f761295..befc26f4 100644 --- a/pkg/config-api-client/model_group.go +++ b/pkg/config-api-client/model_group.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 34c03879..5a9170af 100644 --- a/pkg/config-api-client/model_groups_get_item.go +++ b/pkg/config-api-client/model_groups_get_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -26,7 +26,7 @@ type GroupsGetItem struct { Name string `json:"name"` Parent NullableParent `json:"parent"` Path string `json:"path"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _GroupsGetItem GroupsGetItem @@ -35,14 +35,13 @@ type _GroupsGetItem GroupsGetItem // 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 NewGroupsGetItem(id string, name string, parent NullableParent, path string) *GroupsGetItem { +func NewGroupsGetItem(id string, name string, parent NullableParent, path string, type_ string) *GroupsGetItem { this := GroupsGetItem{} this.Id = id this.Name = name this.Parent = parent this.Path = path - var type_ string = "uxi/group" - this.Type = &type_ + this.Type = type_ return &this } @@ -51,8 +50,6 @@ func NewGroupsGetItem(id string, name string, parent NullableParent, path string // but it doesn't guarantee that properties required by API are set func NewGroupsGetItemWithDefaults() *GroupsGetItem { this := GroupsGetItem{} - var type_ string = "uxi/group" - this.Type = &type_ return &this } @@ -154,36 +151,28 @@ func (o *GroupsGetItem) SetPath(v string) { o.Path = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *GroupsGetItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *GroupsGetItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GroupsGetItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *GroupsGetItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o GroupsGetItem) MarshalJSON() ([]byte, error) { @@ -200,9 +189,7 @@ func (o GroupsGetItem) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name toSerialize["parent"] = o.Parent.Get() toSerialize["path"] = o.Path - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -215,6 +202,7 @@ func (o *GroupsGetItem) UnmarshalJSON(data []byte) (err error) { "name", "parent", "path", + "type", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_groups_get_response.go b/pkg/config-api-client/model_groups_get_response.go index 861c1678..3523537e 100644 --- a/pkg/config-api-client/model_groups_get_response.go +++ b/pkg/config-api-client/model_groups_get_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 ddd21f21..f15aa9da 100644 --- a/pkg/config-api-client/model_groups_patch_request.go +++ b/pkg/config-api-client/model_groups_patch_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 7904894f..df3c2f83 100644 --- a/pkg/config-api-client/model_groups_patch_response.go +++ b/pkg/config-api-client/model_groups_patch_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -22,11 +22,11 @@ var _ MappedNullable = &GroupsPatchResponse{} // GroupsPatchResponse struct for GroupsPatchResponse type GroupsPatchResponse struct { - Id string `json:"id"` - Name string `json:"name"` - Path string `json:"path"` - Parent Parent `json:"parent"` - Type *string `json:"type,omitempty"` + Id string `json:"id"` + Name string `json:"name"` + Path string `json:"path"` + Parent Parent `json:"parent"` + Type string `json:"type"` } type _GroupsPatchResponse GroupsPatchResponse @@ -35,14 +35,13 @@ type _GroupsPatchResponse GroupsPatchResponse // 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 NewGroupsPatchResponse(id string, name string, path string, parent Parent) *GroupsPatchResponse { +func NewGroupsPatchResponse(id string, name string, path string, parent Parent, type_ string) *GroupsPatchResponse { this := GroupsPatchResponse{} this.Id = id this.Name = name this.Path = path this.Parent = parent - var type_ string = "uxi/group" - this.Type = &type_ + this.Type = type_ return &this } @@ -51,8 +50,6 @@ func NewGroupsPatchResponse(id string, name string, path string, parent Parent) // but it doesn't guarantee that properties required by API are set func NewGroupsPatchResponseWithDefaults() *GroupsPatchResponse { this := GroupsPatchResponse{} - var type_ string = "uxi/group" - this.Type = &type_ return &this } @@ -152,36 +149,28 @@ func (o *GroupsPatchResponse) SetParent(v Parent) { o.Parent = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *GroupsPatchResponse) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *GroupsPatchResponse) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GroupsPatchResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *GroupsPatchResponse) SetType(v string) { - o.Type = &v + o.Type = v } func (o GroupsPatchResponse) MarshalJSON() ([]byte, error) { @@ -198,9 +187,7 @@ func (o GroupsPatchResponse) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name toSerialize["path"] = o.Path toSerialize["parent"] = o.Parent - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -213,6 +200,7 @@ func (o *GroupsPatchResponse) UnmarshalJSON(data []byte) (err error) { "name", "path", "parent", + "type", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_groups_post_request.go b/pkg/config-api-client/model_groups_post_request.go index ab7229d8..47b8d2ba 100644 --- a/pkg/config-api-client/model_groups_post_request.go +++ b/pkg/config-api-client/model_groups_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 52631a58..359fc3a2 100644 --- a/pkg/config-api-client/model_groups_post_response.go +++ b/pkg/config-api-client/model_groups_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -22,11 +22,11 @@ var _ MappedNullable = &GroupsPostResponse{} // GroupsPostResponse struct for GroupsPostResponse type GroupsPostResponse struct { - Id string `json:"id"` - Name string `json:"name"` - Path string `json:"path"` - Parent Parent `json:"parent"` - Type *string `json:"type,omitempty"` + Id string `json:"id"` + Name string `json:"name"` + Path string `json:"path"` + Parent Parent `json:"parent"` + Type string `json:"type"` } type _GroupsPostResponse GroupsPostResponse @@ -35,14 +35,13 @@ type _GroupsPostResponse GroupsPostResponse // 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 NewGroupsPostResponse(id string, name string, path string, parent Parent) *GroupsPostResponse { +func NewGroupsPostResponse(id string, name string, path string, parent Parent, type_ string) *GroupsPostResponse { this := GroupsPostResponse{} this.Id = id this.Name = name this.Path = path this.Parent = parent - var type_ string = "uxi/group" - this.Type = &type_ + this.Type = type_ return &this } @@ -51,8 +50,6 @@ func NewGroupsPostResponse(id string, name string, path string, parent Parent) * // but it doesn't guarantee that properties required by API are set func NewGroupsPostResponseWithDefaults() *GroupsPostResponse { this := GroupsPostResponse{} - var type_ string = "uxi/group" - this.Type = &type_ return &this } @@ -152,36 +149,28 @@ func (o *GroupsPostResponse) SetParent(v Parent) { o.Parent = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *GroupsPostResponse) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *GroupsPostResponse) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GroupsPostResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *GroupsPostResponse) SetType(v string) { - o.Type = &v + o.Type = v } func (o GroupsPostResponse) MarshalJSON() ([]byte, error) { @@ -198,9 +187,7 @@ func (o GroupsPostResponse) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name toSerialize["path"] = o.Path toSerialize["parent"] = o.Parent - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -213,6 +200,7 @@ func (o *GroupsPostResponse) UnmarshalJSON(data []byte) (err error) { "name", "path", "parent", + "type", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_issue.go b/pkg/config-api-client/model_issue.go index d36a24a5..cae2cac9 100644 --- a/pkg/config-api-client/model_issue.go +++ b/pkg/config-api-client/model_issue.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 3f54d2ab..ee89c640 100644 --- a/pkg/config-api-client/model_issue_subject.go +++ b/pkg/config-api-client/model_issue_subject.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 64ebc07e..53f83d3c 100644 --- a/pkg/config-api-client/model_network.go +++ b/pkg/config-api-client/model_network.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 28fcefcd..6733a264 100644 --- a/pkg/config-api-client/model_network_group_assignments_item.go +++ b/pkg/config-api-client/model_network_group_assignments_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -25,7 +25,7 @@ type NetworkGroupAssignmentsItem struct { Id string `json:"id"` Group Group `json:"group"` Network Network `json:"network"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _NetworkGroupAssignmentsItem NetworkGroupAssignmentsItem @@ -34,13 +34,12 @@ type _NetworkGroupAssignmentsItem NetworkGroupAssignmentsItem // 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 NewNetworkGroupAssignmentsItem(id string, group Group, network Network) *NetworkGroupAssignmentsItem { +func NewNetworkGroupAssignmentsItem(id string, group Group, network Network, type_ string) *NetworkGroupAssignmentsItem { this := NetworkGroupAssignmentsItem{} this.Id = id this.Group = group this.Network = network - var type_ string = "uxi/network-group-assignment" - this.Type = &type_ + this.Type = type_ return &this } @@ -49,8 +48,6 @@ func NewNetworkGroupAssignmentsItem(id string, group Group, network Network) *Ne // but it doesn't guarantee that properties required by API are set func NewNetworkGroupAssignmentsItemWithDefaults() *NetworkGroupAssignmentsItem { this := NetworkGroupAssignmentsItem{} - var type_ string = "uxi/network-group-assignment" - this.Type = &type_ return &this } @@ -126,36 +123,28 @@ func (o *NetworkGroupAssignmentsItem) SetNetwork(v Network) { o.Network = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *NetworkGroupAssignmentsItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *NetworkGroupAssignmentsItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *NetworkGroupAssignmentsItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *NetworkGroupAssignmentsItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o NetworkGroupAssignmentsItem) MarshalJSON() ([]byte, error) { @@ -171,9 +160,7 @@ func (o NetworkGroupAssignmentsItem) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["group"] = o.Group toSerialize["network"] = o.Network - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -185,6 +172,7 @@ func (o *NetworkGroupAssignmentsItem) UnmarshalJSON(data []byte) (err error) { "id", "group", "network", + "type", } allProperties := make(map[string]interface{}) 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 3e214a57..85c4caa9 100644 --- a/pkg/config-api-client/model_network_group_assignments_post_request.go +++ b/pkg/config-api-client/model_network_group_assignments_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 f89c9d51..dc6f3d1e 100644 --- a/pkg/config-api-client/model_network_group_assignments_post_response.go +++ b/pkg/config-api-client/model_network_group_assignments_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -25,7 +25,7 @@ type NetworkGroupAssignmentsPostResponse struct { Id string `json:"id"` Group Group `json:"group"` Network Network `json:"network"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _NetworkGroupAssignmentsPostResponse NetworkGroupAssignmentsPostResponse @@ -34,13 +34,12 @@ type _NetworkGroupAssignmentsPostResponse NetworkGroupAssignmentsPostResponse // 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 NewNetworkGroupAssignmentsPostResponse(id string, group Group, network Network) *NetworkGroupAssignmentsPostResponse { +func NewNetworkGroupAssignmentsPostResponse(id string, group Group, network Network, type_ string) *NetworkGroupAssignmentsPostResponse { this := NetworkGroupAssignmentsPostResponse{} this.Id = id this.Group = group this.Network = network - var type_ string = "uxi/network-group-assignment" - this.Type = &type_ + this.Type = type_ return &this } @@ -49,8 +48,6 @@ func NewNetworkGroupAssignmentsPostResponse(id string, group Group, network Netw // but it doesn't guarantee that properties required by API are set func NewNetworkGroupAssignmentsPostResponseWithDefaults() *NetworkGroupAssignmentsPostResponse { this := NetworkGroupAssignmentsPostResponse{} - var type_ string = "uxi/network-group-assignment" - this.Type = &type_ return &this } @@ -126,36 +123,28 @@ func (o *NetworkGroupAssignmentsPostResponse) SetNetwork(v Network) { o.Network = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *NetworkGroupAssignmentsPostResponse) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *NetworkGroupAssignmentsPostResponse) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *NetworkGroupAssignmentsPostResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *NetworkGroupAssignmentsPostResponse) SetType(v string) { - o.Type = &v + o.Type = v } func (o NetworkGroupAssignmentsPostResponse) MarshalJSON() ([]byte, error) { @@ -171,9 +160,7 @@ func (o NetworkGroupAssignmentsPostResponse) ToMap() (map[string]interface{}, er toSerialize["id"] = o.Id toSerialize["group"] = o.Group toSerialize["network"] = o.Network - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -185,6 +172,7 @@ func (o *NetworkGroupAssignmentsPostResponse) UnmarshalJSON(data []byte) (err er "id", "group", "network", + "type", } allProperties := make(map[string]interface{}) 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 77332e2c..444d175f 100644 --- a/pkg/config-api-client/model_network_group_assignments_response.go +++ b/pkg/config-api-client/model_network_group_assignments_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 e96a6029..787fd65e 100644 --- a/pkg/config-api-client/model_parent.go +++ b/pkg/config-api-client/model_parent.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 a049063e..3fd9ccdd 100644 --- a/pkg/config-api-client/model_sensor.go +++ b/pkg/config-api-client/model_sensor.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 77ad9c2d..b07e4fdf 100644 --- a/pkg/config-api-client/model_sensor_group_assignment_response.go +++ b/pkg/config-api-client/model_sensor_group_assignment_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -22,10 +22,10 @@ var _ MappedNullable = &SensorGroupAssignmentResponse{} // SensorGroupAssignmentResponse struct for SensorGroupAssignmentResponse type SensorGroupAssignmentResponse struct { - Id string `json:"id"` - Group Group `json:"group"` - Sensor Sensor `json:"sensor"` - Type *string `json:"type,omitempty"` + Id string `json:"id"` + Group Group `json:"group"` + Sensor Sensor `json:"sensor"` + Type string `json:"type"` } type _SensorGroupAssignmentResponse SensorGroupAssignmentResponse @@ -34,13 +34,12 @@ type _SensorGroupAssignmentResponse SensorGroupAssignmentResponse // 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 NewSensorGroupAssignmentResponse(id string, group Group, sensor Sensor) *SensorGroupAssignmentResponse { +func NewSensorGroupAssignmentResponse(id string, group Group, sensor Sensor, type_ string) *SensorGroupAssignmentResponse { this := SensorGroupAssignmentResponse{} this.Id = id this.Group = group this.Sensor = sensor - var type_ string = "uxi/sensor-group-assignment" - this.Type = &type_ + this.Type = type_ return &this } @@ -49,8 +48,6 @@ func NewSensorGroupAssignmentResponse(id string, group Group, sensor Sensor) *Se // but it doesn't guarantee that properties required by API are set func NewSensorGroupAssignmentResponseWithDefaults() *SensorGroupAssignmentResponse { this := SensorGroupAssignmentResponse{} - var type_ string = "uxi/sensor-group-assignment" - this.Type = &type_ return &this } @@ -126,36 +123,28 @@ func (o *SensorGroupAssignmentResponse) SetSensor(v Sensor) { o.Sensor = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *SensorGroupAssignmentResponse) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *SensorGroupAssignmentResponse) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SensorGroupAssignmentResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *SensorGroupAssignmentResponse) SetType(v string) { - o.Type = &v + o.Type = v } func (o SensorGroupAssignmentResponse) MarshalJSON() ([]byte, error) { @@ -171,9 +160,7 @@ func (o SensorGroupAssignmentResponse) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["group"] = o.Group toSerialize["sensor"] = o.Sensor - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -185,6 +172,7 @@ func (o *SensorGroupAssignmentResponse) UnmarshalJSON(data []byte) (err error) { "id", "group", "sensor", + "type", } allProperties := make(map[string]interface{}) 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 91505897..28771c4d 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_item.go +++ b/pkg/config-api-client/model_sensor_group_assignments_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -22,10 +22,10 @@ var _ MappedNullable = &SensorGroupAssignmentsItem{} // SensorGroupAssignmentsItem struct for SensorGroupAssignmentsItem type SensorGroupAssignmentsItem struct { - Id string `json:"id"` - Group Group `json:"group"` - Sensor Sensor `json:"sensor"` - Type *string `json:"type,omitempty"` + Id string `json:"id"` + Group Group `json:"group"` + Sensor Sensor `json:"sensor"` + Type string `json:"type"` } type _SensorGroupAssignmentsItem SensorGroupAssignmentsItem @@ -34,13 +34,12 @@ type _SensorGroupAssignmentsItem SensorGroupAssignmentsItem // 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 NewSensorGroupAssignmentsItem(id string, group Group, sensor Sensor) *SensorGroupAssignmentsItem { +func NewSensorGroupAssignmentsItem(id string, group Group, sensor Sensor, type_ string) *SensorGroupAssignmentsItem { this := SensorGroupAssignmentsItem{} this.Id = id this.Group = group this.Sensor = sensor - var type_ string = "uxi/sensor-group-assignment" - this.Type = &type_ + this.Type = type_ return &this } @@ -49,8 +48,6 @@ func NewSensorGroupAssignmentsItem(id string, group Group, sensor Sensor) *Senso // but it doesn't guarantee that properties required by API are set func NewSensorGroupAssignmentsItemWithDefaults() *SensorGroupAssignmentsItem { this := SensorGroupAssignmentsItem{} - var type_ string = "uxi/sensor-group-assignment" - this.Type = &type_ return &this } @@ -126,36 +123,28 @@ func (o *SensorGroupAssignmentsItem) SetSensor(v Sensor) { o.Sensor = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *SensorGroupAssignmentsItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *SensorGroupAssignmentsItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SensorGroupAssignmentsItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *SensorGroupAssignmentsItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o SensorGroupAssignmentsItem) MarshalJSON() ([]byte, error) { @@ -171,9 +160,7 @@ func (o SensorGroupAssignmentsItem) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["group"] = o.Group toSerialize["sensor"] = o.Sensor - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -185,6 +172,7 @@ func (o *SensorGroupAssignmentsItem) UnmarshalJSON(data []byte) (err error) { "id", "group", "sensor", + "type", } allProperties := make(map[string]interface{}) 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 9b75e5db..e4eee392 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_post_request.go +++ b/pkg/config-api-client/model_sensor_group_assignments_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 6c95b31c..455a7ee7 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_response.go +++ b/pkg/config-api-client/model_sensor_group_assignments_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 a74df523..5bb2c3ba 100644 --- a/pkg/config-api-client/model_sensor_item.go +++ b/pkg/config-api-client/model_sensor_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -33,7 +33,7 @@ type SensorItem struct { Latitude NullableFloat32 `json:"latitude"` Notes NullableString `json:"notes"` PcapMode NullableString `json:"pcapMode"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _SensorItem SensorItem @@ -42,7 +42,7 @@ type _SensorItem SensorItem // 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 NewSensorItem(id string, serial string, name string, modelNumber NullableString, wifiMacAddress NullableString, ethernetMacAddress NullableString, addressNote NullableString, longitude NullableFloat32, latitude NullableFloat32, notes NullableString, pcapMode NullableString) *SensorItem { +func NewSensorItem(id string, serial string, name string, modelNumber NullableString, wifiMacAddress NullableString, ethernetMacAddress NullableString, addressNote NullableString, longitude NullableFloat32, latitude NullableFloat32, notes NullableString, pcapMode NullableString, type_ string) *SensorItem { this := SensorItem{} this.Id = id this.Serial = serial @@ -55,8 +55,7 @@ func NewSensorItem(id string, serial string, name string, modelNumber NullableSt this.Latitude = latitude this.Notes = notes this.PcapMode = pcapMode - var type_ string = "uxi/sensor" - this.Type = &type_ + this.Type = type_ return &this } @@ -65,8 +64,6 @@ func NewSensorItem(id string, serial string, name string, modelNumber NullableSt // but it doesn't guarantee that properties required by API are set func NewSensorItemWithDefaults() *SensorItem { this := SensorItem{} - var type_ string = "uxi/sensor" - this.Type = &type_ return &this } @@ -350,36 +347,28 @@ func (o *SensorItem) SetPcapMode(v string) { o.PcapMode.Set(&v) } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *SensorItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *SensorItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SensorItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *SensorItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o SensorItem) MarshalJSON() ([]byte, error) { @@ -403,9 +392,7 @@ func (o SensorItem) ToMap() (map[string]interface{}, error) { toSerialize["latitude"] = o.Latitude.Get() toSerialize["notes"] = o.Notes.Get() toSerialize["pcapMode"] = o.PcapMode.Get() - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -425,6 +412,7 @@ func (o *SensorItem) UnmarshalJSON(data []byte) (err error) { "latitude", "notes", "pcapMode", + "type", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_sensors_response.go b/pkg/config-api-client/model_sensors_response.go index 07746b91..7f6cd730 100644 --- a/pkg/config-api-client/model_sensors_response.go +++ b/pkg/config-api-client/model_sensors_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 37997f03..e28edad7 100644 --- a/pkg/config-api-client/model_service_test_.go +++ b/pkg/config-api-client/model_service_test_.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 ea46659b..c4d31eba 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_post_request.go +++ b/pkg/config-api-client/model_service_test_group_assignments_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 9156d6ec..a2cb3713 100644 --- a/pkg/config-api-client/model_service_test_group_assignments_post_response.go +++ b/pkg/config-api-client/model_service_test_group_assignments_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -25,7 +25,7 @@ type ServiceTestGroupAssignmentsPostResponse struct { Id string `json:"id"` Group Group `json:"group"` ServiceTest ServiceTest `json:"serviceTest"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _ServiceTestGroupAssignmentsPostResponse ServiceTestGroupAssignmentsPostResponse @@ -34,13 +34,12 @@ type _ServiceTestGroupAssignmentsPostResponse ServiceTestGroupAssignmentsPostRes // 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 NewServiceTestGroupAssignmentsPostResponse(id string, group Group, serviceTest ServiceTest) *ServiceTestGroupAssignmentsPostResponse { +func NewServiceTestGroupAssignmentsPostResponse(id string, group Group, serviceTest ServiceTest, type_ string) *ServiceTestGroupAssignmentsPostResponse { this := ServiceTestGroupAssignmentsPostResponse{} this.Id = id this.Group = group this.ServiceTest = serviceTest - var type_ string = "uxi/service-test-group-assignment" - this.Type = &type_ + this.Type = type_ return &this } @@ -49,8 +48,6 @@ func NewServiceTestGroupAssignmentsPostResponse(id string, group Group, serviceT // but it doesn't guarantee that properties required by API are set func NewServiceTestGroupAssignmentsPostResponseWithDefaults() *ServiceTestGroupAssignmentsPostResponse { this := ServiceTestGroupAssignmentsPostResponse{} - var type_ string = "uxi/service-test-group-assignment" - this.Type = &type_ return &this } @@ -126,36 +123,28 @@ func (o *ServiceTestGroupAssignmentsPostResponse) SetServiceTest(v ServiceTest) o.ServiceTest = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *ServiceTestGroupAssignmentsPostResponse) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *ServiceTestGroupAssignmentsPostResponse) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *ServiceTestGroupAssignmentsPostResponse) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *ServiceTestGroupAssignmentsPostResponse) SetType(v string) { - o.Type = &v + o.Type = v } func (o ServiceTestGroupAssignmentsPostResponse) MarshalJSON() ([]byte, error) { @@ -171,9 +160,7 @@ func (o ServiceTestGroupAssignmentsPostResponse) ToMap() (map[string]interface{} toSerialize["id"] = o.Id toSerialize["group"] = o.Group toSerialize["serviceTest"] = o.ServiceTest - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -185,6 +172,7 @@ func (o *ServiceTestGroupAssignmentsPostResponse) UnmarshalJSON(data []byte) (er "id", "group", "serviceTest", + "type", } allProperties := make(map[string]interface{}) 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 3249310d..c298302b 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: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -28,7 +28,7 @@ type ServiceTestsListItem struct { Target NullableString `json:"target"` Template string `json:"template"` IsEnabled bool `json:"isEnabled"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _ServiceTestsListItem ServiceTestsListItem @@ -37,7 +37,7 @@ type _ServiceTestsListItem ServiceTestsListItem // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewServiceTestsListItem(id string, category string, name string, target NullableString, template string, isEnabled bool) *ServiceTestsListItem { +func NewServiceTestsListItem(id string, category string, name string, target NullableString, template string, isEnabled bool, type_ string) *ServiceTestsListItem { this := ServiceTestsListItem{} this.Id = id this.Category = category @@ -45,8 +45,7 @@ func NewServiceTestsListItem(id string, category string, name string, target Nul this.Target = target this.Template = template this.IsEnabled = isEnabled - var type_ string = "uxi/service-test" - this.Type = &type_ + this.Type = type_ return &this } @@ -55,8 +54,6 @@ func NewServiceTestsListItem(id string, category string, name string, target Nul // but it doesn't guarantee that properties required by API are set func NewServiceTestsListItemWithDefaults() *ServiceTestsListItem { this := ServiceTestsListItem{} - var type_ string = "uxi/service-test" - this.Type = &type_ return &this } @@ -206,36 +203,28 @@ func (o *ServiceTestsListItem) SetIsEnabled(v bool) { o.IsEnabled = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *ServiceTestsListItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *ServiceTestsListItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *ServiceTestsListItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *ServiceTestsListItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o ServiceTestsListItem) MarshalJSON() ([]byte, error) { @@ -254,9 +243,7 @@ func (o ServiceTestsListItem) ToMap() (map[string]interface{}, error) { toSerialize["target"] = o.Target.Get() toSerialize["template"] = o.Template toSerialize["isEnabled"] = o.IsEnabled - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -271,6 +258,7 @@ func (o *ServiceTestsListItem) UnmarshalJSON(data []byte) (err error) { "target", "template", "isEnabled", + "type", } allProperties := make(map[string]interface{}) 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 579010f2..4cd5993d 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: 2.9.0 +API version: 3.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 40902dcb..b9b68b7e 100644 --- a/pkg/config-api-client/model_wired_networks_item.go +++ b/pkg/config-api-client/model_wired_networks_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -34,7 +34,7 @@ type WiredNetworksItem struct { UseDns64 bool `json:"useDns64"` ExternalConnectivity bool `json:"externalConnectivity"` VLanId NullableInt32 `json:"vLanId"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _WiredNetworksItem WiredNetworksItem @@ -43,7 +43,7 @@ type _WiredNetworksItem WiredNetworksItem // 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 NewWiredNetworksItem(id string, name string, ipVersion string, createdAt time.Time, updatedAt time.Time, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vLanId NullableInt32) *WiredNetworksItem { +func NewWiredNetworksItem(id string, name string, ipVersion string, createdAt time.Time, updatedAt time.Time, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vLanId NullableInt32, type_ string) *WiredNetworksItem { this := WiredNetworksItem{} this.Id = id this.Name = name @@ -56,8 +56,7 @@ func NewWiredNetworksItem(id string, name string, ipVersion string, createdAt ti this.UseDns64 = useDns64 this.ExternalConnectivity = externalConnectivity this.VLanId = vLanId - var type_ string = "uxi/wired-network" - this.Type = &type_ + this.Type = type_ return &this } @@ -66,8 +65,6 @@ func NewWiredNetworksItem(id string, name string, ipVersion string, createdAt ti // but it doesn't guarantee that properties required by API are set func NewWiredNetworksItemWithDefaults() *WiredNetworksItem { this := WiredNetworksItem{} - var type_ string = "uxi/wired-network" - this.Type = &type_ return &this } @@ -341,36 +338,28 @@ func (o *WiredNetworksItem) SetVLanId(v int32) { o.VLanId.Set(&v) } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *WiredNetworksItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *WiredNetworksItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *WiredNetworksItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *WiredNetworksItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o WiredNetworksItem) MarshalJSON() ([]byte, error) { @@ -394,9 +383,7 @@ func (o WiredNetworksItem) ToMap() (map[string]interface{}, error) { toSerialize["useDns64"] = o.UseDns64 toSerialize["externalConnectivity"] = o.ExternalConnectivity toSerialize["vLanId"] = o.VLanId.Get() - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -416,6 +403,7 @@ func (o *WiredNetworksItem) UnmarshalJSON(data []byte) (err error) { "useDns64", "externalConnectivity", "vLanId", + "type", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_wired_networks_response.go b/pkg/config-api-client/model_wired_networks_response.go index 2221698d..92e190cf 100644 --- a/pkg/config-api-client/model_wired_networks_response.go +++ b/pkg/config-api-client/model_wired_networks_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 95bed264..c060b745 100644 --- a/pkg/config-api-client/model_wireless_networks_item.go +++ b/pkg/config-api-client/model_wireless_networks_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ @@ -36,7 +36,7 @@ type WirelessNetworksItem struct { DisableEdns bool `json:"disableEdns"` UseDns64 bool `json:"useDns64"` ExternalConnectivity bool `json:"externalConnectivity"` - Type *string `json:"type,omitempty"` + Type string `json:"type"` } type _WirelessNetworksItem WirelessNetworksItem @@ -45,7 +45,7 @@ type _WirelessNetworksItem WirelessNetworksItem // 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 NewWirelessNetworksItem(id string, name string, ssid string, security NullableString, ipVersion string, createdAt time.Time, updatedAt time.Time, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool) *WirelessNetworksItem { +func NewWirelessNetworksItem(id string, name string, ssid string, security NullableString, ipVersion string, createdAt time.Time, updatedAt time.Time, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, type_ string) *WirelessNetworksItem { this := WirelessNetworksItem{} this.Id = id this.Name = name @@ -60,8 +60,7 @@ func NewWirelessNetworksItem(id string, name string, ssid string, security Nulla this.DisableEdns = disableEdns this.UseDns64 = useDns64 this.ExternalConnectivity = externalConnectivity - var type_ string = "uxi/wireless-network" - this.Type = &type_ + this.Type = type_ return &this } @@ -70,8 +69,6 @@ func NewWirelessNetworksItem(id string, name string, ssid string, security Nulla // but it doesn't guarantee that properties required by API are set func NewWirelessNetworksItemWithDefaults() *WirelessNetworksItem { this := WirelessNetworksItem{} - var type_ string = "uxi/wireless-network" - this.Type = &type_ return &this } @@ -391,36 +388,28 @@ func (o *WirelessNetworksItem) SetExternalConnectivity(v bool) { o.ExternalConnectivity = v } -// GetType returns the Type field value if set, zero value otherwise. +// GetType returns the Type field value func (o *WirelessNetworksItem) GetType() string { - if o == nil || IsNil(o.Type) { + if o == nil { var ret string return ret } - return *o.Type + + return o.Type } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. func (o *WirelessNetworksItem) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { + if o == nil { return nil, false } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *WirelessNetworksItem) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false + return &o.Type, true } -// SetType gets a reference to the given string and assigns it to the Type field. +// SetType sets field value func (o *WirelessNetworksItem) SetType(v string) { - o.Type = &v + o.Type = v } func (o WirelessNetworksItem) MarshalJSON() ([]byte, error) { @@ -446,9 +435,7 @@ func (o WirelessNetworksItem) ToMap() (map[string]interface{}, error) { toSerialize["disableEdns"] = o.DisableEdns toSerialize["useDns64"] = o.UseDns64 toSerialize["externalConnectivity"] = o.ExternalConnectivity - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } + toSerialize["type"] = o.Type return toSerialize, nil } @@ -470,6 +457,7 @@ func (o *WirelessNetworksItem) UnmarshalJSON(data []byte) (err error) { "disableEdns", "useDns64", "externalConnectivity", + "type", } allProperties := make(map[string]interface{}) diff --git a/pkg/config-api-client/model_wireless_networks_response.go b/pkg/config-api-client/model_wireless_networks_response.go index b5d13a18..dc435d3c 100644 --- a/pkg/config-api-client/model_wireless_networks_response.go +++ b/pkg/config-api-client/model_wireless_networks_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.0.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/response.go b/pkg/config-api-client/response.go index 07ca6771..0865c790 100644 --- a/pkg/config-api-client/response.go +++ b/pkg/config-api-client/response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 e8bc99c6..e11ca343 100644 --- a/pkg/config-api-client/test/api_configuration_test.go +++ b/pkg/config-api-client/test/api_configuration_test.go @@ -11,7 +11,7 @@ import ( "github.com/stretchr/testify/require" ) -func Test_config_api_client_ConfigurationAPIService(t *testing.T) { +func TestConfigurationAPI(t *testing.T) { configuration := openapiclient.NewConfiguration() configuration.Host = "localhost:80" @@ -20,10 +20,10 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { defer gock.Off() - t.Run("Test ConfigurationAPIService GroupsGetUxiV1alpha1GroupsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsGetNetworkingUxiV1alpha1GroupsGet", func(t *testing.T) { parent_uid := "parent_uid" gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/uxi/v1alpha1/groups"). + Get("/networking-uxi/v1alpha1/groups"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ @@ -33,21 +33,19 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { "name": "name", "parent": map[string]string{"id": parent_uid}, "path": "root_uid.parent_uid.uid", - "type": "uxi/group", + "type": "networking-uxi/group", }, }, "next": nil, "count": 1, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GroupsGetUxiV1alpha1GroupsGet(context.Background()). + GroupsGetNetworkingUxiV1alpha1GroupsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). Execute() - resourceType := "uxi/group" - require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) assert.Equal(t, resp, &openapiclient.GroupsGetResponse{ @@ -57,7 +55,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Name: "name", Parent: *openapiclient.NewNullableParent(openapiclient.NewParent("parent_uid")), Path: "root_uid.parent_uid.uid", - Type: &resourceType, + Type: "networking-uxi/group", }, }, Next: *openapiclient.NewNullableString(nil), @@ -65,25 +63,29 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService GroupsPostUxiV1alpha1GroupsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsPostNetworkingUxiV1alpha1GroupsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Post("/uxi/v1alpha1/groups"). + Post("/networking-uxi/v1alpha1/groups"). MatchType("json"). BodyString(`{"parentId": "parent.uid", "name": "name"}`). + JSON(map[string]interface{}{ + "name": "name", + "parentId": "parent.uid", + }). Reply(200). JSON(map[string]interface{}{ "id": "node", "name": "name", "parent": map[string]string{"id": "parent.uid"}, "path": "parent.uid.node", - "type": "uxi/group", + "type": "networking-uxi/group", }) groupsPostRequest := openapiclient.NewGroupsPostRequest("name") groupsPostRequest.SetParentId("parent.uid") - resp, httpRes, err := apiClient.ConfigurationAPI.GroupsPostUxiV1alpha1GroupsPost(context.Background()).GroupsPostRequest(*groupsPostRequest).Execute() - - resourceType := "uxi/group" + resp, httpRes, err := apiClient.ConfigurationAPI. + GroupsPostNetworkingUxiV1alpha1GroupsPost(context.Background()). + GroupsPostRequest(*groupsPostRequest).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -92,27 +94,30 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Name: "name", Parent: *openapiclient.NewParent("parent.uid"), Path: "parent.uid.node", - Type: &resourceType, + Type: "networking-uxi/group", }) }) - t.Run("Test ConfigurationAPIService GroupsPatchUxiV1alpha1GroupsGroupUidPatch", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Patch("/uxi/v1alpha1/groups/node"). + Patch("/networking-uxi/v1alpha1/groups/node"). MatchType("json"). BodyString(`{"name": "new_name"}`). + JSON(map[string]interface{}{ + "name": "new_name", + }). Reply(200). JSON(map[string]interface{}{ "id": "node", "name": "new_name", "parent": map[string]string{"id": "parent.uid"}, "path": "parent.uid.node", - "type": "uxi/group", + "type": "networking-uxi/group", }) groupsPatchRequest := openapiclient.NewGroupsPatchRequest("new_name") - resp, httpRes, err := apiClient.ConfigurationAPI.GroupsPatchUxiV1alpha1GroupsGroupUidPatch(context.Background(), "node").GroupsPatchRequest(*groupsPatchRequest).Execute() - - resourceType := "uxi/group" + resp, httpRes, err := apiClient.ConfigurationAPI. + GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(context.Background(), "node"). + GroupsPatchRequest(*groupsPatchRequest).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -121,26 +126,26 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Name: "new_name", Parent: *openapiclient.NewParent("parent.uid"), Path: "parent.uid.node", - Type: &resourceType, + Type: "networking-uxi/group", }) }) - t.Run("Test ConfigurationAPIService GroupsDeleteUxiV1alpha1GroupsGroupUidDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Delete("/uxi/v1alpha1/groups/uid"). + Delete("/networking-uxi/v1alpha1/groups/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - GroupsDeleteUxiV1alpha1GroupsGroupUidDelete(context.Background(), "uid"). + GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(context.Background(), "uid"). Execute() require.Nil(t, err) assert.Equal(t, 204, httpRes.StatusCode) }) - t.Run("Test ConfigurationAPIService GetUxiV1alpha1SensorsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1SensorsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/uxi/v1alpha1/sensors"). + Get("/networking-uxi/v1alpha1/sensors"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ @@ -157,7 +162,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { "latitude": 0.0, "notes": "notes", "pcapMode": "pcap_mode", - "type": "uxi/sensor", + "type": "networking-uxi/sensor", }, }, "count": 1, @@ -165,13 +170,12 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetUxiV1alpha1SensorsGet(context.Background()). + GetNetworkingUxiV1alpha1SensorsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). Execute() - resourceType := "uxi/sensor" ModelNumber := "model_number" WifiMacAddress := "wifi_mac_address" EthernetMacAddress := "ethernet_mac_address" @@ -197,7 +201,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Latitude: *openapiclient.NewNullableFloat32(&Latitude), Notes: *openapiclient.NewNullableString(&Notes), PcapMode: *openapiclient.NewNullableString(&PcapMode), - Type: &resourceType, + Type: "networking-uxi/sensor", }, }, Next: *openapiclient.NewNullableString(nil), @@ -205,10 +209,10 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService GetUxiV1alpha1SensorGroupAssignmentsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/uxi/v1alpha1/sensor-group-assignments"). + Get("/networking-uxi/v1alpha1/sensor-group-assignments"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ @@ -217,14 +221,14 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { "id": "uid", "group": map[string]string{"id": "group_uid"}, "sensor": map[string]string{"id": "sensor_uid"}, - "type": "uxi/sensor-group-assignment", + "type": "networking-uxi/sensor-group-assignment", }, }, "count": 1, "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetUxiV1alpha1SensorGroupAssignmentsGet(context.Background()). + GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -232,14 +236,13 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - resourceType := "uxi/sensor-group-assignment" assert.Equal(t, resp, &openapiclient.SensorGroupAssignmentsResponse{ Items: []openapiclient.SensorGroupAssignmentsItem{ { Id: "uid", Group: *openapiclient.NewGroup("group_uid"), Sensor: *openapiclient.NewSensor("sensor_uid"), - Type: &resourceType, + Type: "networking-uxi/sensor-group-assignment", }, }, Count: 1, @@ -247,54 +250,57 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService PostUxiV1alpha1SensorGroupAssignmentsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Post("/uxi/v1alpha1/sensor-group-assignments"). + 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", + }). Reply(200). JSON(map[string]interface{}{ "id": "uid", "group": map[string]string{"id": "group_uid"}, "sensor": map[string]string{"id": "sensor_uid"}, - "type": "uxi/sensor-group-assignment", + "type": "networking-uxi/sensor-group-assignment", }) postRequest := openapiclient.NewSensorGroupAssignmentsPostRequest("group_uid", "sensor_uid") resp, httpRes, err := apiClient.ConfigurationAPI. - PostUxiV1alpha1SensorGroupAssignmentsPost(context.Background()). + PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(context.Background()). SensorGroupAssignmentsPostRequest(*postRequest). Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) - resourceType := "uxi/sensor-group-assignment" assert.Equal(t, resp, &openapiclient.SensorGroupAssignmentResponse{ Id: "uid", Group: *openapiclient.NewGroup("group_uid"), Sensor: *openapiclient.NewSensor("sensor_uid"), - Type: &resourceType, + Type: "networking-uxi/sensor-group-assignment", }) }) - t.Run("Test ConfigurationAPIService DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Delete("/uxi/v1alpha1/sensor-group-assignments/uid"). + Delete("/networking-uxi/v1alpha1/sensor-group-assignments/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete(context.Background(), "uid"). + DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(context.Background(), "uid"). Execute() require.Nil(t, err) assert.Equal(t, 204, httpRes.StatusCode) }) - t.Run("Test ConfigurationAPIService GetConfigurationAppV1WiredNetworksGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1WiredNetworksGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/uxi/v1alpha1/wired-networks"). + Get("/networking-uxi/v1alpha1/wired-networks"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ @@ -311,14 +317,14 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { "useDns64": false, "externalConnectivity": true, "vLanId": 1, - "type": "uxi/wired-network", + "type": "networking-uxi/wired-network", }, }, "count": 1, "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetUxiV1alpha1WiredNetworksGet(context.Background()). + GetNetworkingUxiV1alpha1WiredNetworksGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -327,7 +333,6 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { security := "security" dnsLookupDomain := "dns_lookup_domain" var vlanId int32 = 1 - resourceType := "uxi/wired-network" require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -345,7 +350,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { UseDns64: false, ExternalConnectivity: true, VLanId: *openapiclient.NewNullableInt32(&vlanId), - Type: &resourceType, + Type: "networking-uxi/wired-network", }, }, Count: 1, @@ -353,10 +358,10 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService GetUxiV1alpha1WirelessNetworksGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1WirelessNetworksGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/uxi/v1alpha1/wireless-networks"). + Get("/networking-uxi/v1alpha1/wireless-networks"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ @@ -375,14 +380,14 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { "disableEdns": true, "useDns64": false, "externalConnectivity": true, - "type": "uxi/wireless-network", + "type": "networking-uxi/wireless-network", }, }, "count": 1, "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetUxiV1alpha1WirelessNetworksGet(context.Background()). + GetNetworkingUxiV1alpha1WirelessNetworksGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). @@ -390,7 +395,6 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { security := "security" dnsLookupDomain := "dns_lookup_domain" - resourceType := "uxi/wireless-network" require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -410,7 +414,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { DisableEdns: true, UseDns64: false, ExternalConnectivity: true, - Type: &resourceType, + Type: "networking-uxi/wireless-network", }, }, Count: 1, @@ -418,10 +422,10 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService GetUxiV1alpha1NetworkGroupAssignmentsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPI GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/uxi/v1alpha1/network-group-assignments"). + Get("/networking-uxi/v1alpha1/network-group-assignments"). MatchParams(map[string]string{"id": "uid", "limit": "10", "next": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ @@ -430,21 +434,19 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { "id": "uid", "group": map[string]string{"id": "group_uid"}, "network": map[string]string{"id": "network_uid"}, - "type": "uxi/network-group-assignment", + "type": "networking-uxi/network-group-assignment", }, }, "count": 1, "next": nil, }) resp, httpRes, err := apiClient.ConfigurationAPI. - GetUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()). + GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(context.Background()). Id("uid"). Limit(10). Next("some-cursor"). Execute() - resourceType := "uxi/network-group-assignment" - require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) assert.Equal(t, resp, &openapiclient.NetworkGroupAssignmentsResponse{ @@ -453,7 +455,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Id: "uid", Group: *openapiclient.NewGroup("group_uid"), Network: *openapiclient.NewNetwork("network_uid"), - Type: &resourceType, + Type: "networking-uxi/network-group-assignment", }, }, Count: 1, @@ -461,91 +463,95 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService PostUxiV1alpha1NetworkGroupAssignmentsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Post("/uxi/v1alpha1/network-group-assignments"). + 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", + }). Reply(200). JSON(map[string]interface{}{ "id": "uid", "group": map[string]string{"id": "group_uid"}, "network": map[string]string{"id": "network_uid"}, - "type": "uxi/network-group-assignment", + "type": "networking-uxi/network-group-assignment", }) postRequest := openapiclient.NewNetworkGroupAssignmentsPostRequest("group_uid", "network_uid") resp, httpRes, err := apiClient.ConfigurationAPI. - PostUxiV1alpha1NetworkGroupAssignmentsPost(context.Background()). + PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(context.Background()). NetworkGroupAssignmentsPostRequest(*postRequest). Execute() - resourceType := "uxi/network-group-assignment" - require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) assert.Equal(t, resp, &openapiclient.NetworkGroupAssignmentsPostResponse{ Id: "uid", Group: *openapiclient.NewGroup("group_uid"), Network: *openapiclient.NewNetwork("network_uid"), - Type: &resourceType, + Type: "networking-uxi/network-group-assignment", }) }) - t.Run("Test ConfigurationAPIService DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Delete("/uxi/v1alpha1/network-group-assignments/uid"). + Delete("/networking-uxi/v1alpha1/network-group-assignments/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete(context.Background(), "uid"). + DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(context.Background(), "uid"). Execute() require.Nil(t, err) assert.Equal(t, 204, httpRes.StatusCode) }) - t.Run("Test ConfigurationAPIService PostUxiV1alpha1ServiceTestGroupAssignmentsPost", func(t *testing.T) { + t.Run("Test ConfigurationAPI PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Post("/uxi/v1alpha1/service-test-group-assignments"). + 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", + }). Reply(200). JSON(map[string]interface{}{ "id": "uid", "group": map[string]string{"id": "group_uid"}, "serviceTest": map[string]string{"id": "service_test_uid"}, - "type": "uxi/service-test-group-assignment", + "type": "networking-uxi/service-test-group-assignment", }) postRequest := openapiclient.NewServiceTestGroupAssignmentsPostRequest("group_uid", "service_test_uid") resp, httpRes, err := apiClient.ConfigurationAPI. - PostUxiV1alpha1ServiceTestGroupAssignmentsPost(context.Background()). + PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(context.Background()). ServiceTestGroupAssignmentsPostRequest(*postRequest). Execute() - resourceType := "uxi/service-test-group-assignment" - require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) assert.Equal(t, resp, &openapiclient.ServiceTestGroupAssignmentsPostResponse{ Id: "uid", Group: *openapiclient.NewGroup("group_uid"), ServiceTest: *openapiclient.NewServiceTest("service_test_uid"), - Type: &resourceType, + Type: "networking-uxi/service-test-group-assignment", }) }) - t.Run("Test ConfigurationAPIService DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete", func(t *testing.T) { + t.Run("Test ConfigurationAPI DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Delete("/uxi/v1alpha1/service-test-group-assignments/uid"). + Delete("/networking-uxi/v1alpha1/service-test-group-assignments/uid"). Reply(204) _, httpRes, err := apiClient.ConfigurationAPI. - DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(context.Background(), "uid"). + DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(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 d388b59c..1ce6c7ff 100644 --- a/pkg/config-api-client/utils.go +++ b/pkg/config-api-client/utils.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 2.9.0 +API version: 3.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 931e4223..e549e7a3 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. - GroupsGetUxiV1alpha1GroupsGet(ctx). + GroupsGetNetworkingUxiV1alpha1GroupsGet(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 eb9d8483..97196883 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. - GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx). + GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(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 abe27413..2fe67013 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. - GetUxiV1alpha1SensorsGet(ctx). + GetNetworkingUxiV1alpha1SensorsGet(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 acbd4c8e..b7bd3e69 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. - GetUxiV1alpha1SensorGroupAssignmentsGet(ctx). + GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(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 dd6d9c2f..78818318 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. - GetUxiV1alpha1WiredNetworksGet(ctx). + GetNetworkingUxiV1alpha1WiredNetworksGet(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 7ab8f0d6..974dcedd 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. - GetUxiV1alpha1WirelessNetworksGet(ctx). + GetNetworkingUxiV1alpha1WirelessNetworksGet(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 a30ee112..674626fc 100644 --- a/pkg/config-api-provider/provider/resources/group.go +++ b/pkg/config-api-provider/provider/resources/group.go @@ -95,7 +95,9 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, if !plan.ParentGroupId.IsUnknown() && !plan.ParentGroupId.IsNull() { groups_post_request.SetParentId(plan.ParentGroupId.ValueString()) } - request := r.client.ConfigurationAPI.GroupsPostUxiV1alpha1GroupsPost(ctx).GroupsPostRequest(*groups_post_request) + request := r.client.ConfigurationAPI. + GroupsPostNetworkingUxiV1alpha1GroupsPost(ctx). + GroupsPostRequest(*groups_post_request) group, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -127,7 +129,7 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp } request := r.client.ConfigurationAPI. - GroupsGetUxiV1alpha1GroupsGet(ctx). + GroupsGetNetworkingUxiV1alpha1GroupsGet(ctx). Id(state.ID.ValueString()) groupResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -173,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. - GroupsPatchUxiV1alpha1GroupsGroupUidPatch(ctx, plan.ID.ValueString()). + GroupsPatchNetworkingUxiV1alpha1GroupsGroupUidPatch(ctx, plan.ID.ValueString()). GroupsPatchRequest(*patchRequest) group, response, err := util.RetryFor429(request.Execute) @@ -207,7 +209,7 @@ func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, // Delete existing group using the plan_id request := r.client.ConfigurationAPI. - GroupsDeleteUxiV1alpha1GroupsGroupUidDelete(ctx, state.ID.ValueString()) + GroupsDeleteNetworkingUxiV1alpha1GroupsGroupUidDelete(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 7540ef4a..2595ba66 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. - PostUxiV1alpha1NetworkGroupAssignmentsPost(ctx). + PostNetworkingUxiV1alpha1NetworkGroupAssignmentsPost(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. - GetUxiV1alpha1NetworkGroupAssignmentsGet(ctx). + GetNetworkingUxiV1alpha1NetworkGroupAssignmentsGet(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. - DeleteNetworkGroupAssignmentUxiV1alpha1NetworkGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) + DeleteNetworkGroupAssignmentNetworkingUxiV1alpha1NetworkGroupAssignmentsIdDelete(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 fa0a4db4..e6d96bba 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. - GetUxiV1alpha1SensorsGet(ctx). + GetNetworkingUxiV1alpha1SensorsGet(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 32ecd916..7efe67ec 100644 --- a/pkg/config-api-provider/provider/resources/sensor_group_assignment.go +++ b/pkg/config-api-provider/provider/resources/sensor_group_assignment.go @@ -98,7 +98,9 @@ func (r *sensorGroupAssignmentResource) Create(ctx context.Context, req resource } postRequest := config_api_client.NewSensorGroupAssignmentsPostRequest(plan.GroupID.ValueString(), plan.SensorID.ValueString()) - request := r.client.ConfigurationAPI.PostUxiV1alpha1SensorGroupAssignmentsPost(ctx).SensorGroupAssignmentsPostRequest(*postRequest) + request := r.client.ConfigurationAPI. + PostNetworkingUxiV1alpha1SensorGroupAssignmentsPost(ctx). + SensorGroupAssignmentsPostRequest(*postRequest) sensorGroupAssignment, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -128,7 +130,7 @@ func (r *sensorGroupAssignmentResource) Read(ctx context.Context, req resource.R } request := r.client.ConfigurationAPI. - GetUxiV1alpha1SensorGroupAssignmentsGet(ctx). + GetNetworkingUxiV1alpha1SensorGroupAssignmentsGet(ctx). Id(state.ID.ValueString()) sensorGroupAssignmentResponse, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -181,7 +183,7 @@ func (r *sensorGroupAssignmentResource) Delete(ctx context.Context, req resource // Delete existing sensorGroupAssignment using the plan_id request := r.client.ConfigurationAPI. - DeleteSensorGroupAssignmentUxiV1alpha1SensorGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) + DeleteSensorGroupAssignmentNetworkingUxiV1alpha1SensorGroupAssignmentsIdDelete(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 977bd3ea..6443fc4d 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. - PostUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx). + PostNetworkingUxiV1alpha1ServiceTestGroupAssignmentsPost(ctx). ServiceTestGroupAssignmentsPostRequest(*postRequest) serviceTestGroupAssignment, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -161,7 +161,8 @@ func (r *serviceTestGroupAssignmentResource) Delete(ctx context.Context, req res return } - request := r.client.ConfigurationAPI.DeleteServiceTestGroupAssignmentUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) + request := r.client.ConfigurationAPI. + DeleteServiceTestGroupAssignmentNetworkingUxiV1alpha1ServiceTestGroupAssignmentsIdDelete(ctx, state.ID.ValueString()) _, response, err := util.RetryFor429(request.Execute) errorPresent, errorDetail := util.RaiseForStatus(response, err) @@ -178,11 +179,10 @@ func (r *serviceTestGroupAssignmentResource) ImportState(ctx context.Context, re var GetServiceTestGroupAssignment = func(uid string) config_api_client.ServiceTestGroupAssignmentsPostResponse { // TODO: Query the serviceTestGroupAssignment using the client - resourceType := "uxi/service-test-group-assignment" return config_api_client.ServiceTestGroupAssignmentsPostResponse{ Id: uid, Group: *config_api_client.NewGroup("mock_group_uid"), ServiceTest: *config_api_client.NewServiceTest("mock_serviceTest_uid"), - Type: &resourceType, + Type: "networking-uxi/service-test-group-assignment", } } diff --git a/pkg/config-api-provider/provider/resources/wired_network.go b/pkg/config-api-provider/provider/resources/wired_network.go index 9735a0e4..c4658fd2 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. - GetUxiV1alpha1WiredNetworksGet(ctx). + GetNetworkingUxiV1alpha1WiredNetworksGet(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 9e3104ac..f23ca858 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. - GetUxiV1alpha1WirelessNetworksGet(ctx). + GetNetworkingUxiV1alpha1WirelessNetworksGet(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/data-sources/group_test.go b/pkg/config-api-provider/test/data-sources/group_test.go index 40692ea7..e8ffbef9 100644 --- a/pkg/config-api-provider/test/data-sources/group_test.go +++ b/pkg/config-api-provider/test/data-sources/group_test.go @@ -82,7 +82,7 @@ func TestGroupDataSource429Handling(t *testing.T) { { PreConfig: func() { mock429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/groups"). + Get("/networking-uxi/v1alpha1/groups"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetGroup( @@ -122,7 +122,7 @@ func TestGroupDataSourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/groups"). + Get("/networking-uxi/v1alpha1/groups"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/data-sources/network_group_assignment_test.go b/pkg/config-api-provider/test/data-sources/network_group_assignment_test.go index 7cfc4e25..d854e30c 100644 --- a/pkg/config-api-provider/test/data-sources/network_group_assignment_test.go +++ b/pkg/config-api-provider/test/data-sources/network_group_assignment_test.go @@ -59,7 +59,7 @@ func TestNetworkGroupAssignmentDataSource429Handling(t *testing.T) { { PreConfig: func() { mock429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/network-group-assignments"). + Get("/networking-uxi/v1alpha1/network-group-assignments"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetNetworkGroupAssignment( @@ -98,7 +98,7 @@ func TestNetworkGroupAssignmentDataSourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/network-group-assignments"). + Get("/networking-uxi/v1alpha1/network-group-assignments"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/data-sources/sensor_group_assignment_test.go b/pkg/config-api-provider/test/data-sources/sensor_group_assignment_test.go index 04bde552..31e4a84a 100644 --- a/pkg/config-api-provider/test/data-sources/sensor_group_assignment_test.go +++ b/pkg/config-api-provider/test/data-sources/sensor_group_assignment_test.go @@ -59,7 +59,7 @@ func TestSensorGroupAssignmentDataSource429Handling(t *testing.T) { { PreConfig: func() { mock429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensor-group-assignments"). + Get("/networking-uxi/v1alpha1/sensor-group-assignments"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetSensorGroupAssignment( @@ -97,7 +97,7 @@ func TestSensorGroupAssignmentDataSourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensor-group-assignments"). + Get("/networking-uxi/v1alpha1/sensor-group-assignments"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/data-sources/sensor_test.go b/pkg/config-api-provider/test/data-sources/sensor_test.go index 43042262..488c58fe 100644 --- a/pkg/config-api-provider/test/data-sources/sensor_test.go +++ b/pkg/config-api-provider/test/data-sources/sensor_test.go @@ -58,7 +58,7 @@ func TestSensorDataSource429Handling(t *testing.T) { { PreConfig: func() { mock429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensors"). + Get("/networking-uxi/v1alpha1/sensors"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetSensor( @@ -98,7 +98,7 @@ func TestSensorDataSourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensors"). + Get("/networking-uxi/v1alpha1/sensors"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/data-sources/wired_network_test.go b/pkg/config-api-provider/test/data-sources/wired_network_test.go index aec5d96c..6c141474 100644 --- a/pkg/config-api-provider/test/data-sources/wired_network_test.go +++ b/pkg/config-api-provider/test/data-sources/wired_network_test.go @@ -66,7 +66,7 @@ func TestWiredNetworkDataSource429Handling(t *testing.T) { { PreConfig: func() { mock429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wired-networks"). + Get("/networking-uxi/v1alpha1/wired-networks"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetWiredNetwork( @@ -105,7 +105,7 @@ func TestWiredNetworkAssignmentDataSourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wired-networks"). + Get("/networking-uxi/v1alpha1/wired-networks"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/data-sources/wireless_network_test.go b/pkg/config-api-provider/test/data-sources/wireless_network_test.go index b0f3a651..9117f0bb 100644 --- a/pkg/config-api-provider/test/data-sources/wireless_network_test.go +++ b/pkg/config-api-provider/test/data-sources/wireless_network_test.go @@ -68,7 +68,7 @@ func TestWirelessNetworkDataSource429Handling(t *testing.T) { { PreConfig: func() { mock429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wireless-networks"). + Get("/networking-uxi/v1alpha1/wireless-networks"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetWirelessNetwork( @@ -107,7 +107,7 @@ func TestWirelessNetworkAssignmentDataSourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wireless-networks"). + Get("/networking-uxi/v1alpha1/wireless-networks"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/resources/group_test.go b/pkg/config-api-provider/test/resources/group_test.go index 24a5bff6..f65c89ed 100644 --- a/pkg/config-api-provider/test/resources/group_test.go +++ b/pkg/config-api-provider/test/resources/group_test.go @@ -158,6 +158,7 @@ func TestRootGroupResource(t *testing.T) { "name": "root", "parent": *config_api_client.NewNullableParent(nil), "path": "my_root_group_uid", + "type": "networking-uxi/group", }, }), 1, @@ -193,7 +194,7 @@ func TestGroupResource429Handling(t *testing.T) { { PreConfig: func() { request429 = gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/groups"). + Post("/networking-uxi/v1alpha1/groups"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockPostGroup( @@ -230,7 +231,7 @@ func TestGroupResource429Handling(t *testing.T) { ) // new group update429 = gock.New("https://test.api.capenetworks.com"). - Patch("/uxi/v1alpha1/groups/uid"). + Patch("/networking-uxi/v1alpha1/groups/uid"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockUpdateGroup( @@ -285,7 +286,7 @@ func TestGroupResourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/groups"). + Get("/networking-uxi/v1alpha1/groups"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, @@ -334,7 +335,7 @@ func TestGroupResourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/groups"). + Post("/networking-uxi/v1alpha1/groups"). Reply(400). JSON(map[string]interface{}{ "httpStatusCode": 400, @@ -383,7 +384,7 @@ func TestGroupResourceHttpErrorHandling(t *testing.T) { ) // new group - with error gock.New("https://test.api.capenetworks.com"). - Patch("/uxi/v1alpha1/groups/uid"). + Patch("/networking-uxi/v1alpha1/groups/uid"). Reply(422). JSON(map[string]interface{}{ "httpStatusCode": 422, @@ -409,7 +410,7 @@ func TestGroupResourceHttpErrorHandling(t *testing.T) { ) // delete group - with error gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/groups/uid"). + Delete("/networking-uxi/v1alpha1/groups/uid"). Reply(422). JSON(map[string]interface{}{ "httpStatusCode": 422, diff --git a/pkg/config-api-provider/test/resources/network_group_assignment_test.go b/pkg/config-api-provider/test/resources/network_group_assignment_test.go index 0969c863..63b294aa 100644 --- a/pkg/config-api-provider/test/resources/network_group_assignment_test.go +++ b/pkg/config-api-provider/test/resources/network_group_assignment_test.go @@ -506,7 +506,7 @@ func TestNetworkGroupAssignmentResource429Handling(t *testing.T) { // required for network group assignment create mock429 = gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/network-group-assignments"). + Post("/networking-uxi/v1alpha1/network-group-assignments"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockPostNetworkGroupAssignment( @@ -568,7 +568,7 @@ func TestNetworkGroupAssignmentResource429Handling(t *testing.T) { util.MockDeleteGroup("group_uid", 1) mock429 = gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/network-group-assignments/network_group_assignment_uid"). + Delete("/networking-uxi/v1alpha1/network-group-assignments/network_group_assignment_uid"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockDeleteNetworkGroupAssignment("network_group_assignment_uid", 1) @@ -623,7 +623,7 @@ func TestNetworkGroupAssignmentResourceHttpErrorHandling(t *testing.T) { // network group assignment create gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/network-group-assignments"). + Post("/networking-uxi/v1alpha1/network-group-assignments"). Reply(400). JSON(map[string]interface{}{ "httpStatusCode": 400, @@ -730,7 +730,7 @@ func TestNetworkGroupAssignmentResourceHttpErrorHandling(t *testing.T) { // network group assignment read gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/network-group-assignments"). + Get("/networking-uxi/v1alpha1/network-group-assignments"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, @@ -843,7 +843,7 @@ func TestNetworkGroupAssignmentResourceHttpErrorHandling(t *testing.T) { // network group assignment create gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/network-group-assignments"). + Delete("/networking-uxi/v1alpha1/network-group-assignments"). Reply(403). JSON(map[string]interface{}{ "httpStatusCode": 403, diff --git a/pkg/config-api-provider/test/resources/sensor_group_assignment_test.go b/pkg/config-api-provider/test/resources/sensor_group_assignment_test.go index 3586d9d8..f42f8514 100644 --- a/pkg/config-api-provider/test/resources/sensor_group_assignment_test.go +++ b/pkg/config-api-provider/test/resources/sensor_group_assignment_test.go @@ -268,7 +268,7 @@ func TestSensorGroupAssignmentResource429Handling(t *testing.T) { // required for sensor group assignment create mock429 = gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/sensor-group-assignments"). + Post("/networking-uxi/v1alpha1/sensor-group-assignments"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockPostSensorGroupAssignment( @@ -329,7 +329,7 @@ func TestSensorGroupAssignmentResource429Handling(t *testing.T) { util.MockDeleteGroup("group_uid", 1) mock429 = gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/sensor-group-assignments/sensor_group_assignment_uid"). + Delete("/networking-uxi/v1alpha1/sensor-group-assignments/sensor_group_assignment_uid"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockDeleteSensorGroupAssignment("sensor_group_assignment_uid", 1) @@ -393,7 +393,7 @@ func TestSensorGroupAssignmentResourceHttpErrorHandling(t *testing.T) { // required for sensor group assignment create gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/sensor-group-assignments"). + Post("/networking-uxi/v1alpha1/sensor-group-assignments"). Reply(400). JSON(map[string]interface{}{ "httpStatusCode": 400, @@ -508,7 +508,7 @@ func TestSensorGroupAssignmentResourceHttpErrorHandling(t *testing.T) { // required for sensor group assignment read gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensor-group-assignments"). + Get("/networking-uxi/v1alpha1/sensor-group-assignments"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, @@ -623,7 +623,7 @@ func TestSensorGroupAssignmentResourceHttpErrorHandling(t *testing.T) { ) gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/sensor-group-assignments/sensor_group_assignment_uid"). + Delete("/networking-uxi/v1alpha1/sensor-group-assignments/sensor_group_assignment_uid"). Reply(400). JSON(map[string]interface{}{ "httpStatusCode": 400, diff --git a/pkg/config-api-provider/test/resources/sensor_test.go b/pkg/config-api-provider/test/resources/sensor_test.go index 30232685..0cee7715 100644 --- a/pkg/config-api-provider/test/resources/sensor_test.go +++ b/pkg/config-api-provider/test/resources/sensor_test.go @@ -150,7 +150,7 @@ func TestSensorResource429Handling(t *testing.T) { { PreConfig: func() { request429 = gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensors"). + Get("/networking-uxi/v1alpha1/sensors"). Reply(429). SetHeaders(util.RateLimitingHeaders) util.MockGetSensor("uid", util.GeneratePaginatedResponse( @@ -211,7 +211,7 @@ func TestSensorResourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensors"). + Get("/networking-uxi/v1alpha1/sensors"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/resources/service_test_group_assignment_test.go b/pkg/config-api-provider/test/resources/service_test_group_assignment_test.go index 29568a7f..6842770b 100644 --- a/pkg/config-api-provider/test/resources/service_test_group_assignment_test.go +++ b/pkg/config-api-provider/test/resources/service_test_group_assignment_test.go @@ -242,7 +242,7 @@ func TestServiceTestGroupAssignmentResource429Handling(t *testing.T) { // required for serviceTest group assignment create mock429 = gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/service-test-group-assignments"). + Post("/networking-uxi/v1alpha1/service-test-group-assignments"). Reply(429). SetHeaders(util.RateLimitingHeaders) @@ -339,7 +339,7 @@ func TestServiceTestGroupAssignmentResourceHttpErrorHandling(t *testing.T) { // required for serviceTest group assignment create gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/service-test-group-assignments"). + Post("/networking-uxi/v1alpha1/service-test-group-assignments"). Reply(400). JSON(map[string]interface{}{ "httpStatusCode": 400, diff --git a/pkg/config-api-provider/test/resources/wired_network_test.go b/pkg/config-api-provider/test/resources/wired_network_test.go index e8533016..33b0de16 100644 --- a/pkg/config-api-provider/test/resources/wired_network_test.go +++ b/pkg/config-api-provider/test/resources/wired_network_test.go @@ -145,7 +145,7 @@ func TestWiredNetworkResourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wired-networks"). + Get("/networking-uxi/v1alpha1/wired-networks"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/resources/wireless_network_test.go b/pkg/config-api-provider/test/resources/wireless_network_test.go index c2b47e6a..6e725f26 100644 --- a/pkg/config-api-provider/test/resources/wireless_network_test.go +++ b/pkg/config-api-provider/test/resources/wireless_network_test.go @@ -152,7 +152,7 @@ func TestWirelessNetworkResourceHttpErrorHandling(t *testing.T) { { PreConfig: func() { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wireless-networks"). + Get("/networking-uxi/v1alpha1/wireless-networks"). Reply(500). JSON(map[string]interface{}{ "httpStatusCode": 500, diff --git a/pkg/config-api-provider/test/util/utils.go b/pkg/config-api-provider/test/util/utils.go index 3de43b4f..98ff9f52 100644 --- a/pkg/config-api-provider/test/util/utils.go +++ b/pkg/config-api-provider/test/util/utils.go @@ -21,7 +21,7 @@ func GenerateSensorResponseModel(uid string, postfix string) map[string]interfac "latitude": 0.0, "notes": "notes" + postfix, "pcapMode": "light" + postfix, - "type": "uxi/sensor", + "type": "networking-uxi/sensor", } } @@ -46,7 +46,7 @@ func GenerateGroupResponseModel(uid string, nonReplacementFieldPostfix string, r "name": "name" + nonReplacementFieldPostfix, "parent": map[string]string{"id": parentId}, "path": parentId + "." + uid, - "type": "uxi/group", + "type": "networking-uxi/group", } } @@ -89,7 +89,7 @@ func GenerateWiredNetworkResponse(uid string, postfix string) map[string]interfa "useDns64": false, "externalConnectivity": false, "vLanId": 123, - "type": "uxi/wired-network", + "type": "networking-uxi/wired-network", } } @@ -108,7 +108,7 @@ func GenerateWirelessNetworkResponse(uid string, postfix string) map[string]inte "disableEdns": false, "useDns64": false, "externalConnectivity": false, - "type": "uxi/wireless-network", + "type": "networking-uxi/wireless-network", } } @@ -117,7 +117,7 @@ func GenerateSensorGroupAssignmentResponse(uid string, postfix string) map[strin "id": uid, "group": map[string]string{"id": "group_uid" + postfix}, "sensor": map[string]string{"id": "sensor_uid" + postfix}, - "type": "uxi/sensor-group-assignment", + "type": "networking-uxi/sensor-group-assignment", } } @@ -141,7 +141,7 @@ func GenerateNetworkGroupAssignmentResponse(uid string, postfix string) map[stri "id": uid, "group": map[string]string{"id": "group_uid" + postfix}, "network": map[string]string{"id": "network_uid" + postfix}, - "type": "uxi/network-group-assignment", + "type": "networking-uxi/network-group-assignment", } } @@ -153,12 +153,11 @@ func GenerateNetworkGroupAssignmentRequest(uid string, postfix string) map[strin } func GenerateServiceTestGroupAssignmentResponse(uid string, postfix string) config_api_client.ServiceTestGroupAssignmentsPostResponse { - resourceType := "uxi/service-test-group-assignment" return config_api_client.ServiceTestGroupAssignmentsPostResponse{ Id: uid, Group: *config_api_client.NewGroup("group_uid" + postfix), ServiceTest: *config_api_client.NewServiceTest("service_test_uid" + postfix), - Type: &resourceType, + Type: "networking-uxi/service-test-group-assignment", } } @@ -195,7 +194,7 @@ func MockOAuth() *gock.Response { func MockPostGroup(request map[string]interface{}, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/groups"). + Post("/networking-uxi/v1alpha1/groups"). MatchHeader("Content-Type", "application/json"). MatchHeader("Authorization", "mock_token"). Times(times). @@ -206,7 +205,7 @@ func MockPostGroup(request map[string]interface{}, response map[string]interface func MockGetGroup(uid string, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/groups"). + Get("/networking-uxi/v1alpha1/groups"). MatchHeader("Authorization", "mock_token"). MatchParam("id", uid). Times(times). @@ -216,7 +215,7 @@ func MockGetGroup(uid string, response map[string]interface{}, times int) { func MockUpdateGroup(uid string, request map[string]interface{}, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Patch("/uxi/v1alpha1/groups/"+uid). + Patch("/networking-uxi/v1alpha1/groups/"+uid). MatchHeader("Authorization", "mock_token"). Times(times). JSON(request). @@ -226,7 +225,7 @@ func MockUpdateGroup(uid string, request map[string]interface{}, response map[st func MockDeleteGroup(uid string, times int) { gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/groups/"+uid). + Delete("/networking-uxi/v1alpha1/groups/"+uid). MatchHeader("Authorization", "mock_token"). Times(times). Reply(204) @@ -234,7 +233,7 @@ func MockDeleteGroup(uid string, times int) { func MockGetSensor(uid string, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensors"). + Get("/networking-uxi/v1alpha1/sensors"). MatchHeader("Authorization", "mock_token"). MatchParam("id", uid). Times(times). @@ -244,7 +243,7 @@ func MockGetSensor(uid string, response map[string]interface{}, times int) { func MockGetWiredNetwork(uid string, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wired-networks"). + Get("/networking-uxi/v1alpha1/wired-networks"). MatchHeader("Authorization", "mock_token"). MatchParam("id", uid). Times(times). @@ -254,7 +253,7 @@ func MockGetWiredNetwork(uid string, response map[string]interface{}, times int) func MockGetWirelessNetwork(uid string, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/wireless-networks"). + Get("/networking-uxi/v1alpha1/wireless-networks"). MatchHeader("Authorization", "mock_token"). MatchParam("id", uid). Times(times). @@ -264,7 +263,7 @@ func MockGetWirelessNetwork(uid string, response map[string]interface{}, times i func MockGetSensorGroupAssignment(uid string, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/sensor-group-assignments"). + Get("/networking-uxi/v1alpha1/sensor-group-assignments"). MatchHeader("Authorization", "mock_token"). MatchParam("id", uid). Times(times). @@ -274,7 +273,7 @@ func MockGetSensorGroupAssignment(uid string, response map[string]interface{}, t func MockPostSensorGroupAssignment(request map[string]interface{}, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/sensor-group-assignments"). + Post("/networking-uxi/v1alpha1/sensor-group-assignments"). MatchHeader("Content-Type", "application/json"). MatchHeader("Authorization", "mock_token"). Times(times). @@ -285,7 +284,7 @@ func MockPostSensorGroupAssignment(request map[string]interface{}, response map[ func MockDeleteSensorGroupAssignment(uid string, times int) { gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/sensor-group-assignments/"+uid). + Delete("/networking-uxi/v1alpha1/sensor-group-assignments/"+uid). MatchHeader("Authorization", "mock_token"). Times(times). Reply(204) @@ -293,7 +292,7 @@ func MockDeleteSensorGroupAssignment(uid string, times int) { func MockGetNetworkGroupAssignment(uid string, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Get("/uxi/v1alpha1/network-group-assignments"). + Get("/networking-uxi/v1alpha1/network-group-assignments"). MatchHeader("Authorization", "mock_token"). MatchParam("id", uid). Times(times). @@ -303,7 +302,7 @@ func MockGetNetworkGroupAssignment(uid string, response map[string]interface{}, func MockPostNetworkGroupAssignment(request map[string]interface{}, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/network-group-assignments"). + Post("/networking-uxi/v1alpha1/network-group-assignments"). MatchHeader("Content-Type", "application/json"). MatchHeader("Authorization", "mock_token"). Times(times). @@ -314,7 +313,7 @@ func MockPostNetworkGroupAssignment(request map[string]interface{}, response map func MockDeleteNetworkGroupAssignment(uid string, times int) { gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/network-group-assignments/"+uid). + Delete("/networking-uxi/v1alpha1/network-group-assignments/"+uid). MatchHeader("Authorization", "mock_token"). Times(times). Reply(204) @@ -322,7 +321,7 @@ func MockDeleteNetworkGroupAssignment(uid string, times int) { func MockPostServiceTestGroupAssignment(request map[string]interface{}, response map[string]interface{}, times int) { gock.New("https://test.api.capenetworks.com"). - Post("/uxi/v1alpha1/service-test-group-assignments"). + Post("/networking-uxi/v1alpha1/service-test-group-assignments"). MatchHeader("Content-Type", "application/json"). MatchHeader("Authorization", "mock_token"). Times(times). @@ -333,7 +332,7 @@ func MockPostServiceTestGroupAssignment(request map[string]interface{}, response func MockDeleteServiceTestGroupAssignment(uid string, times int) { gock.New("https://test.api.capenetworks.com"). - Delete("/uxi/v1alpha1/service-test-group-assignments/"+uid). + Delete("/networking-uxi/v1alpha1/service-test-group-assignments/"+uid). MatchHeader("Authorization", "mock_token"). Times(times). Reply(204)