diff --git a/pkg/config-api-client/.openapi-generator/FILES b/pkg/config-api-client/.openapi-generator/FILES index bc0d4d7f..d9e01127 100644 --- a/pkg/config-api-client/.openapi-generator/FILES +++ b/pkg/config-api-client/.openapi-generator/FILES @@ -10,12 +10,14 @@ docs/GroupsGetItem.md docs/GroupsGetResponse.md docs/GroupsPostRequest.md docs/GroupsPostResponse.md +docs/NetworkGroupAssignmentsItem.md +docs/NetworkGroupAssignmentsResponse.md docs/PaginationDetails.md -docs/SensorGroupAssignment.md +docs/SensorGroupAssignmentsItem.md docs/SensorGroupAssignmentsResponse.md -docs/WiredNetwork.md +docs/WiredNetworksItem.md docs/WiredNetworksResponse.md -docs/WirelessNetwork.md +docs/WirelessNetworksItem.md docs/WirelessNetworksResponse.md go.mod go.sum @@ -25,12 +27,14 @@ model_groups_get_item.go model_groups_get_response.go model_groups_post_request.go model_groups_post_response.go +model_network_group_assignments_item.go +model_network_group_assignments_response.go model_pagination_details.go -model_sensor_group_assignment.go +model_sensor_group_assignments_item.go model_sensor_group_assignments_response.go -model_wired_network.go +model_wired_networks_item.go model_wired_networks_response.go -model_wireless_network.go +model_wireless_networks_item.go model_wireless_networks_response.go response.go utils.go diff --git a/pkg/config-api-client/README.md b/pkg/config-api-client/README.md index d1683cac..6e3ae619 100644 --- a/pkg/config-api-client/README.md +++ b/pkg/config-api-client/README.md @@ -5,7 +5,7 @@ Nice description goes here ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 1.9.0 +- API version: 1.11.0 - Package version: 1.0.0 - Generator version: 7.8.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -79,6 +79,7 @@ All URIs are relative to *https://api.capenetworks.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*ConfigurationAPI* | [**GetConfigurationAppV1NetworkGroupAssignmentsGet**](docs/ConfigurationAPI.md#getconfigurationappv1networkgroupassignmentsget) | **Get** /configuration/app/v1/network-group-assignments | Get *ConfigurationAPI* | [**GetConfigurationAppV1SensorGroupAssignmentsGet**](docs/ConfigurationAPI.md#getconfigurationappv1sensorgroupassignmentsget) | **Get** /configuration/app/v1/sensor-group-assignments | Get *ConfigurationAPI* | [**GetConfigurationAppV1WiredNetworksGet**](docs/ConfigurationAPI.md#getconfigurationappv1wirednetworksget) | **Get** /configuration/app/v1/wired-networks | Get *ConfigurationAPI* | [**GetConfigurationAppV1WirelessNetworksGet**](docs/ConfigurationAPI.md#getconfigurationappv1wirelessnetworksget) | **Get** /configuration/app/v1/wireless-networks | Get @@ -94,12 +95,14 @@ Class | Method | HTTP request | Description - [GroupsGetResponse](docs/GroupsGetResponse.md) - [GroupsPostRequest](docs/GroupsPostRequest.md) - [GroupsPostResponse](docs/GroupsPostResponse.md) + - [NetworkGroupAssignmentsItem](docs/NetworkGroupAssignmentsItem.md) + - [NetworkGroupAssignmentsResponse](docs/NetworkGroupAssignmentsResponse.md) - [PaginationDetails](docs/PaginationDetails.md) - - [SensorGroupAssignment](docs/SensorGroupAssignment.md) + - [SensorGroupAssignmentsItem](docs/SensorGroupAssignmentsItem.md) - [SensorGroupAssignmentsResponse](docs/SensorGroupAssignmentsResponse.md) - - [WiredNetwork](docs/WiredNetwork.md) + - [WiredNetworksItem](docs/WiredNetworksItem.md) - [WiredNetworksResponse](docs/WiredNetworksResponse.md) - - [WirelessNetwork](docs/WirelessNetwork.md) + - [WirelessNetworksItem](docs/WirelessNetworksItem.md) - [WirelessNetworksResponse](docs/WirelessNetworksResponse.md) diff --git a/pkg/config-api-client/api/.openapi.source.yaml b/pkg/config-api-client/api/.openapi.source.yaml index fdb386d7..b40f24ed 100644 --- a/pkg/config-api-client/api/.openapi.source.yaml +++ b/pkg/config-api-client/api/.openapi.source.yaml @@ -9,7 +9,7 @@ info: email: support@capenetworks.com license: name: No idea, but we need something - version: 1.9.0 + version: 1.11.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -74,8 +74,7 @@ paths: operationId: groups_post_configuration_app_v1_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: @@ -108,6 +107,62 @@ paths: - configuration - v1 - groups + /configuration/app/v1/network-group-assignments: + get: + operationId: get_configuration_app_v1_network_group_assignments_get + summary: Get + description: Get a list of network group assignments + parameters: + - name: uid + in: query + required: false + schema: + anyOf: + - type: string + nullable: true + title: Uid + - name: cursor + in: query + required: false + schema: + anyOf: + - type: string + nullable: true + title: Cursor + - name: limit + in: query + required: false + schema: + type: integer + default: 50 + title: Limit + responses: + '200': + description: Successful Response + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkGroupAssignmentsResponse' + 4XX: + description: Client Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + 5XX: + description: Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + security: + - HTTPBearer: [] + tags: + - api + - configuration + - v1 + - network-group-assignments + x-stability-level: alpha /configuration/app/v1/sensor-group-assignments: get: operationId: get_configuration_app_v1_sensor_group_assignments_get @@ -369,6 +424,37 @@ components: - uid - path title: GroupsPostResponse + NetworkGroupAssignmentsItem: + type: object + properties: + uid: + type: string + title: Uid + group_uid: + type: string + title: Group Uid + network_uid: + type: string + title: Network Uid + required: + - uid + - group_uid + - network_uid + title: NetworkGroupAssignmentsItem + NetworkGroupAssignmentsResponse: + type: object + properties: + network_group_assignments: + type: array + items: + $ref: '#/components/schemas/NetworkGroupAssignmentsItem' + title: Network Group Assignments + pagination: + $ref: '#/components/schemas/PaginationDetails' + required: + - network_group_assignments + - pagination + title: NetworkGroupAssignmentsResponse PaginationDetails: type: object properties: @@ -402,7 +488,7 @@ components: - first - last title: PaginationDetails - SensorGroupAssignment: + SensorGroupAssignmentsItem: type: object properties: uid: @@ -418,14 +504,14 @@ components: - uid - group_uid - sensor_uid - title: SensorGroupAssignment + title: SensorGroupAssignmentsItem SensorGroupAssignmentsResponse: type: object properties: sensor_group_assignments: type: array items: - $ref: '#/components/schemas/SensorGroupAssignment' + $ref: '#/components/schemas/SensorGroupAssignmentsItem' title: Sensor Group Assignments pagination: $ref: '#/components/schemas/PaginationDetails' @@ -433,7 +519,7 @@ components: - sensor_group_assignments - pagination title: SensorGroupAssignmentsResponse - WiredNetwork: + WiredNetworksItem: type: object properties: uid: @@ -445,20 +531,14 @@ components: ip_version: type: string title: Ip Version - sensor_count: - type: integer - title: Sensor Count - updated_at: + datetime_updated: type: string format: date-time - title: Updated At - created_at: + title: Datetime Updated + datetime_created: type: string format: date-time - title: Created At - disabled: - type: boolean - title: Disabled + title: Datetime Created security: anyOf: - type: string @@ -487,24 +567,22 @@ components: - uid - alias - ip_version - - sensor_count - - updated_at - - created_at - - disabled + - datetime_updated + - datetime_created - security - dns_lookup_domain - disable_edns - use_dns64 - external_connectivity - vlan_id - title: WiredNetwork + title: WiredNetworksItem WiredNetworksResponse: type: object properties: wired_networks: type: array items: - $ref: '#/components/schemas/WiredNetwork' + $ref: '#/components/schemas/WiredNetworksItem' title: Wired Networks pagination: $ref: '#/components/schemas/PaginationDetails' @@ -512,7 +590,7 @@ components: - wired_networks - pagination title: WiredNetworksResponse - WirelessNetwork: + WirelessNetworksItem: type: object properties: uid: @@ -532,20 +610,14 @@ components: ip_version: type: string title: Ip Version - sensor_count: - type: integer - title: Sensor Count - updated_at: + datetime_created: type: string format: date-time - title: Updated At - created_at: + title: Datetime Created + datetime_updated: type: string format: date-time - title: Created At - disabled: - type: boolean - title: Disabled + title: Datetime Updated hidden: type: boolean title: Hidden @@ -572,24 +644,22 @@ components: - ssid - security - ip_version - - sensor_count - - updated_at - - created_at - - disabled + - datetime_created + - datetime_updated - hidden - band_locking - dns_lookup_domain - disable_edns - use_dns64 - external_connectivity - title: WirelessNetwork + title: WirelessNetworksItem WirelessNetworksResponse: type: object properties: wireless_networks: type: array items: - $ref: '#/components/schemas/WirelessNetwork' + $ref: '#/components/schemas/WirelessNetworksItem' title: Wireless Networks pagination: $ref: '#/components/schemas/PaginationDetails' @@ -607,6 +677,7 @@ tags: - name: configuration - name: groups - name: health + - name: network-group-assignments - name: sensor-group-assignments - name: wired-networks - name: wireless-networks diff --git a/pkg/config-api-client/api/openapi.yaml b/pkg/config-api-client/api/openapi.yaml index f9a7b01a..b1327b28 100644 --- a/pkg/config-api-client/api/openapi.yaml +++ b/pkg/config-api-client/api/openapi.yaml @@ -9,7 +9,7 @@ info: name: "No idea, but we need something" termsOfService: http://we.dont.care.yet.com/term-of-service title: Configuration Api - version: 1.9.0 + version: 1.11.0 servers: - url: https://api.capenetworks.com - url: https://api.staging.capedev.io @@ -19,6 +19,7 @@ tags: - name: configuration - name: groups - name: health +- name: network-group-assignments - name: sensor-group-assignments - name: wired-networks - name: wireless-networks @@ -112,6 +113,61 @@ paths: summary: Groups Post tags: - configuration + /configuration/app/v1/network-group-assignments: + get: + description: Get a list of network group assignments + operationId: get_configuration_app_v1_network_group_assignments_get + parameters: + - explode: true + in: query + name: uid + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: cursor + required: false + schema: + nullable: true + type: string + style: form + - explode: true + in: query + name: limit + required: false + schema: + default: 50 + title: Limit + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkGroupAssignmentsResponse' + description: Successful Response + "4XX": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Client Error + "5XX": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Server Error + security: + - HTTPBearer: [] + summary: Get + tags: + - configuration + x-stability-level: alpha /configuration/app/v1/sensor-group-assignments: get: description: Get a list of sensor group assignments @@ -403,6 +459,55 @@ components: - uid title: GroupsPostResponse type: object + NetworkGroupAssignmentsItem: + example: + group_uid: group_uid + uid: uid + network_uid: network_uid + properties: + uid: + title: Uid + type: string + group_uid: + title: Group Uid + type: string + network_uid: + title: Network Uid + type: string + required: + - group_uid + - network_uid + - uid + title: NetworkGroupAssignmentsItem + type: object + NetworkGroupAssignmentsResponse: + example: + pagination: + next: next + previous: previous + last: last + limit: 0 + first: first + network_group_assignments: + - group_uid: group_uid + uid: uid + network_uid: network_uid + - group_uid: group_uid + uid: uid + network_uid: network_uid + properties: + network_group_assignments: + items: + $ref: '#/components/schemas/NetworkGroupAssignmentsItem' + title: Network Group Assignments + type: array + pagination: + $ref: '#/components/schemas/PaginationDetails' + required: + - network_group_assignments + - pagination + title: NetworkGroupAssignmentsResponse + type: object PaginationDetails: example: next: next @@ -434,7 +539,7 @@ components: - previous title: PaginationDetails type: object - SensorGroupAssignment: + SensorGroupAssignmentsItem: example: group_uid: group_uid uid: uid @@ -453,7 +558,7 @@ components: - group_uid - sensor_uid - uid - title: SensorGroupAssignment + title: SensorGroupAssignmentsItem type: object SensorGroupAssignmentsResponse: example: @@ -473,7 +578,7 @@ components: properties: sensor_group_assignments: items: - $ref: '#/components/schemas/SensorGroupAssignment' + $ref: '#/components/schemas/SensorGroupAssignmentsItem' title: Sensor Group Assignments type: array pagination: @@ -483,21 +588,19 @@ components: - sensor_group_assignments title: SensorGroupAssignmentsResponse type: object - WiredNetwork: + WiredNetworksItem: example: - vlan_id: 6 - created_at: 2000-01-23T04:56:07.000+00:00 - sensor_count: 0 - external_connectivity: true - dns_lookup_domain: dns_lookup_domain - disable_edns: true uid: uid + datetime_updated: 2000-01-23T04:56:07.000+00:00 security: security + vlan_id: 0 ip_version: ip_version - updated_at: 2000-01-23T04:56:07.000+00:00 alias: alias - disabled: true + datetime_created: 2000-01-23T04:56:07.000+00:00 + external_connectivity: true use_dns64: true + dns_lookup_domain: dns_lookup_domain + disable_edns: true properties: uid: title: Uid @@ -508,20 +611,14 @@ components: ip_version: title: Ip Version type: string - sensor_count: - title: Sensor Count - type: integer - updated_at: + datetime_updated: format: date-time - title: Updated At + title: Datetime Updated type: string - created_at: + datetime_created: format: date-time - title: Created At + title: Datetime Created type: string - disabled: - title: Disabled - type: boolean security: nullable: true type: string @@ -542,19 +639,17 @@ components: type: integer required: - alias - - created_at + - datetime_created + - datetime_updated - disable_edns - - disabled - dns_lookup_domain - external_connectivity - ip_version - security - - sensor_count - uid - - updated_at - use_dns64 - vlan_id - title: WiredNetwork + title: WiredNetworksItem type: object WiredNetworksResponse: example: @@ -565,36 +660,32 @@ components: limit: 0 first: first wired_networks: - - vlan_id: 6 - created_at: 2000-01-23T04:56:07.000+00:00 - sensor_count: 0 - external_connectivity: true - dns_lookup_domain: dns_lookup_domain - disable_edns: true - uid: uid + - uid: uid + datetime_updated: 2000-01-23T04:56:07.000+00:00 security: security + vlan_id: 0 ip_version: ip_version - updated_at: 2000-01-23T04:56:07.000+00:00 alias: alias - disabled: true - use_dns64: true - - vlan_id: 6 - created_at: 2000-01-23T04:56:07.000+00:00 - sensor_count: 0 + datetime_created: 2000-01-23T04:56:07.000+00:00 external_connectivity: true + use_dns64: true dns_lookup_domain: dns_lookup_domain disable_edns: true - uid: uid + - uid: uid + datetime_updated: 2000-01-23T04:56:07.000+00:00 security: security + vlan_id: 0 ip_version: ip_version - updated_at: 2000-01-23T04:56:07.000+00:00 alias: alias - disabled: true + datetime_created: 2000-01-23T04:56:07.000+00:00 + external_connectivity: true use_dns64: true + dns_lookup_domain: dns_lookup_domain + disable_edns: true properties: wired_networks: items: - $ref: '#/components/schemas/WiredNetwork' + $ref: '#/components/schemas/WiredNetworksItem' title: Wired Networks type: array pagination: @@ -604,11 +695,10 @@ components: - wired_networks title: WiredNetworksResponse type: object - WirelessNetwork: + WirelessNetworksItem: example: + datetime_updated: 2000-01-23T04:56:07.000+00:00 hidden: true - created_at: 2000-01-23T04:56:07.000+00:00 - sensor_count: 0 external_connectivity: true ssid: ssid dns_lookup_domain: dns_lookup_domain @@ -616,9 +706,8 @@ components: uid: uid security: security ip_version: ip_version - updated_at: 2000-01-23T04:56:07.000+00:00 alias: alias - disabled: true + datetime_created: 2000-01-23T04:56:07.000+00:00 use_dns64: true band_locking: band_locking properties: @@ -637,20 +726,14 @@ components: ip_version: title: Ip Version type: string - sensor_count: - title: Sensor Count - type: integer - updated_at: + datetime_created: format: date-time - title: Updated At + title: Datetime Created type: string - created_at: + datetime_updated: format: date-time - title: Created At + title: Datetime Updated type: string - disabled: - title: Disabled - type: boolean hidden: title: Hidden type: boolean @@ -672,27 +755,24 @@ components: required: - alias - band_locking - - created_at + - datetime_created + - datetime_updated - disable_edns - - disabled - dns_lookup_domain - external_connectivity - hidden - ip_version - security - - sensor_count - ssid - uid - - updated_at - use_dns64 - title: WirelessNetwork + title: WirelessNetworksItem type: object WirelessNetworksResponse: example: wireless_networks: - - hidden: true - created_at: 2000-01-23T04:56:07.000+00:00 - sensor_count: 0 + - datetime_updated: 2000-01-23T04:56:07.000+00:00 + hidden: true external_connectivity: true ssid: ssid dns_lookup_domain: dns_lookup_domain @@ -700,14 +780,12 @@ components: uid: uid security: security ip_version: ip_version - updated_at: 2000-01-23T04:56:07.000+00:00 alias: alias - disabled: true + datetime_created: 2000-01-23T04:56:07.000+00:00 use_dns64: true band_locking: band_locking - - hidden: true - created_at: 2000-01-23T04:56:07.000+00:00 - sensor_count: 0 + - datetime_updated: 2000-01-23T04:56:07.000+00:00 + hidden: true external_connectivity: true ssid: ssid dns_lookup_domain: dns_lookup_domain @@ -715,9 +793,8 @@ components: uid: uid security: security ip_version: ip_version - updated_at: 2000-01-23T04:56:07.000+00:00 alias: alias - disabled: true + datetime_created: 2000-01-23T04:56:07.000+00:00 use_dns64: true band_locking: band_locking pagination: @@ -729,7 +806,7 @@ components: properties: wireless_networks: items: - $ref: '#/components/schemas/WirelessNetwork' + $ref: '#/components/schemas/WirelessNetworksItem' title: Wireless Networks type: array pagination: diff --git a/pkg/config-api-client/api_configuration.go b/pkg/config-api-client/api_configuration.go index 002bce7f..93735952 100644 --- a/pkg/config-api-client/api_configuration.go +++ b/pkg/config-api-client/api_configuration.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -22,6 +22,157 @@ import ( // ConfigurationAPIService ConfigurationAPI service type ConfigurationAPIService service +type ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest struct { + ctx context.Context + ApiService *ConfigurationAPIService + uid *string + cursor *string + limit *int32 +} + +func (r ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest) Uid(uid string) ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest { + r.uid = &uid + return r +} + +func (r ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest) Cursor(cursor string) ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest { + r.cursor = &cursor + return r +} + +func (r ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest) Limit(limit int32) ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest { + r.limit = &limit + return r +} + +func (r ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest) Execute() (*NetworkGroupAssignmentsResponse, *http.Response, error) { + return r.ApiService.GetConfigurationAppV1NetworkGroupAssignmentsGetExecute(r) +} + +/* +GetConfigurationAppV1NetworkGroupAssignmentsGet 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 ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest +*/ +func (a *ConfigurationAPIService) GetConfigurationAppV1NetworkGroupAssignmentsGet(ctx context.Context) ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest { + return ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return NetworkGroupAssignmentsResponse +func (a *ConfigurationAPIService) GetConfigurationAppV1NetworkGroupAssignmentsGetExecute(r ApiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest) (*NetworkGroupAssignmentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkGroupAssignmentsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConfigurationAPIService.GetConfigurationAppV1NetworkGroupAssignmentsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/configuration/app/v1/network-group-assignments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.uid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "uid", r.uid, "") + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } else { + var defaultValue int32 = 50 + r.limit = &defaultValue + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode >= 500 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiGetConfigurationAppV1SensorGroupAssignmentsGetRequest struct { ctx context.Context ApiService *ConfigurationAPIService diff --git a/pkg/config-api-client/client.go b/pkg/config-api-client/client.go index 0012b086..2aa71a00 100644 --- a/pkg/config-api-client/client.go +++ b/pkg/config-api-client/client.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Configuration Api API v1.9.0 +// APIClient manages communication with the Configuration Api API v1.11.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 700ce337..f0fb372a 100644 --- a/pkg/config-api-client/configuration.go +++ b/pkg/config-api-client/configuration.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/docs/ConfigurationAPI.md b/pkg/config-api-client/docs/ConfigurationAPI.md index 3cea5cc8..d921116b 100644 --- a/pkg/config-api-client/docs/ConfigurationAPI.md +++ b/pkg/config-api-client/docs/ConfigurationAPI.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.capenetworks.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**GetConfigurationAppV1NetworkGroupAssignmentsGet**](ConfigurationAPI.md#GetConfigurationAppV1NetworkGroupAssignmentsGet) | **Get** /configuration/app/v1/network-group-assignments | Get [**GetConfigurationAppV1SensorGroupAssignmentsGet**](ConfigurationAPI.md#GetConfigurationAppV1SensorGroupAssignmentsGet) | **Get** /configuration/app/v1/sensor-group-assignments | Get [**GetConfigurationAppV1WiredNetworksGet**](ConfigurationAPI.md#GetConfigurationAppV1WiredNetworksGet) | **Get** /configuration/app/v1/wired-networks | Get [**GetConfigurationAppV1WirelessNetworksGet**](ConfigurationAPI.md#GetConfigurationAppV1WirelessNetworksGet) | **Get** /configuration/app/v1/wireless-networks | Get @@ -12,6 +13,76 @@ Method | HTTP request | Description +## GetConfigurationAppV1NetworkGroupAssignmentsGet + +> NetworkGroupAssignmentsResponse GetConfigurationAppV1NetworkGroupAssignmentsGet(ctx).Uid(uid).Cursor(cursor).Limit(limit).Execute() + +Get + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" +) + +func main() { + uid := "uid_example" // string | (optional) + cursor := "cursor_example" // string | (optional) + limit := int32(56) // int32 | (optional) (default to 50) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ConfigurationAPI.GetConfigurationAppV1NetworkGroupAssignmentsGet(context.Background()).Uid(uid).Cursor(cursor).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigurationAPI.GetConfigurationAppV1NetworkGroupAssignmentsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetConfigurationAppV1NetworkGroupAssignmentsGet`: NetworkGroupAssignmentsResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigurationAPI.GetConfigurationAppV1NetworkGroupAssignmentsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetConfigurationAppV1NetworkGroupAssignmentsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uid** | **string** | | + **cursor** | **string** | | + **limit** | **int32** | | [default to 50] + +### Return type + +[**NetworkGroupAssignmentsResponse**](NetworkGroupAssignmentsResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GetConfigurationAppV1SensorGroupAssignmentsGet > SensorGroupAssignmentsResponse GetConfigurationAppV1SensorGroupAssignmentsGet(ctx).Uid(uid).Cursor(cursor).Limit(limit).Execute() diff --git a/pkg/config-api-client/docs/LivenessResponse.md b/pkg/config-api-client/docs/LivenessResponse.md deleted file mode 100644 index 1e42365c..00000000 --- a/pkg/config-api-client/docs/LivenessResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# LivenessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **string** | | - -## Methods - -### NewLivenessResponse - -`func NewLivenessResponse(status string, ) *LivenessResponse` - -NewLivenessResponse instantiates a new LivenessResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewLivenessResponseWithDefaults - -`func NewLivenessResponseWithDefaults() *LivenessResponse` - -NewLivenessResponseWithDefaults instantiates a new LivenessResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *LivenessResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *LivenessResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *LivenessResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md b/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md new file mode 100644 index 00000000..d535b2f7 --- /dev/null +++ b/pkg/config-api-client/docs/NetworkGroupAssignmentsItem.md @@ -0,0 +1,93 @@ +# NetworkGroupAssignmentsItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Uid** | **string** | | +**GroupUid** | **string** | | +**NetworkUid** | **string** | | + +## Methods + +### NewNetworkGroupAssignmentsItem + +`func NewNetworkGroupAssignmentsItem(uid string, groupUid string, networkUid string, ) *NetworkGroupAssignmentsItem` + +NewNetworkGroupAssignmentsItem instantiates a new NetworkGroupAssignmentsItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkGroupAssignmentsItemWithDefaults + +`func NewNetworkGroupAssignmentsItemWithDefaults() *NetworkGroupAssignmentsItem` + +NewNetworkGroupAssignmentsItemWithDefaults instantiates a new NetworkGroupAssignmentsItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUid + +`func (o *NetworkGroupAssignmentsItem) GetUid() string` + +GetUid returns the Uid field if non-nil, zero value otherwise. + +### GetUidOk + +`func (o *NetworkGroupAssignmentsItem) GetUidOk() (*string, bool)` + +GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUid + +`func (o *NetworkGroupAssignmentsItem) SetUid(v string)` + +SetUid sets Uid field to given value. + + +### GetGroupUid + +`func (o *NetworkGroupAssignmentsItem) GetGroupUid() string` + +GetGroupUid returns the GroupUid field if non-nil, zero value otherwise. + +### GetGroupUidOk + +`func (o *NetworkGroupAssignmentsItem) GetGroupUidOk() (*string, bool)` + +GetGroupUidOk returns a tuple with the GroupUid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupUid + +`func (o *NetworkGroupAssignmentsItem) SetGroupUid(v string)` + +SetGroupUid sets GroupUid field to given value. + + +### GetNetworkUid + +`func (o *NetworkGroupAssignmentsItem) GetNetworkUid() string` + +GetNetworkUid returns the NetworkUid field if non-nil, zero value otherwise. + +### GetNetworkUidOk + +`func (o *NetworkGroupAssignmentsItem) GetNetworkUidOk() (*string, bool)` + +GetNetworkUidOk returns a tuple with the NetworkUid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkUid + +`func (o *NetworkGroupAssignmentsItem) SetNetworkUid(v string)` + +SetNetworkUid sets NetworkUid field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/pkg/config-api-client/docs/NetworkGroupAssignmentsResponse.md b/pkg/config-api-client/docs/NetworkGroupAssignmentsResponse.md new file mode 100644 index 00000000..e1dfc3c7 --- /dev/null +++ b/pkg/config-api-client/docs/NetworkGroupAssignmentsResponse.md @@ -0,0 +1,72 @@ +# NetworkGroupAssignmentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkGroupAssignments** | [**[]NetworkGroupAssignmentsItem**](NetworkGroupAssignmentsItem.md) | | +**Pagination** | [**PaginationDetails**](PaginationDetails.md) | | + +## Methods + +### NewNetworkGroupAssignmentsResponse + +`func NewNetworkGroupAssignmentsResponse(networkGroupAssignments []NetworkGroupAssignmentsItem, pagination PaginationDetails, ) *NetworkGroupAssignmentsResponse` + +NewNetworkGroupAssignmentsResponse instantiates a new NetworkGroupAssignmentsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkGroupAssignmentsResponseWithDefaults + +`func NewNetworkGroupAssignmentsResponseWithDefaults() *NetworkGroupAssignmentsResponse` + +NewNetworkGroupAssignmentsResponseWithDefaults instantiates a new NetworkGroupAssignmentsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNetworkGroupAssignments + +`func (o *NetworkGroupAssignmentsResponse) GetNetworkGroupAssignments() []NetworkGroupAssignmentsItem` + +GetNetworkGroupAssignments returns the NetworkGroupAssignments field if non-nil, zero value otherwise. + +### GetNetworkGroupAssignmentsOk + +`func (o *NetworkGroupAssignmentsResponse) GetNetworkGroupAssignmentsOk() (*[]NetworkGroupAssignmentsItem, bool)` + +GetNetworkGroupAssignmentsOk returns a tuple with the NetworkGroupAssignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetworkGroupAssignments + +`func (o *NetworkGroupAssignmentsResponse) SetNetworkGroupAssignments(v []NetworkGroupAssignmentsItem)` + +SetNetworkGroupAssignments sets NetworkGroupAssignments field to given value. + + +### GetPagination + +`func (o *NetworkGroupAssignmentsResponse) GetPagination() PaginationDetails` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *NetworkGroupAssignmentsResponse) GetPaginationOk() (*PaginationDetails, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *NetworkGroupAssignmentsResponse) SetPagination(v PaginationDetails)` + +SetPagination sets Pagination field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/pkg/config-api-client/docs/ReadinessErrorResponse.md b/pkg/config-api-client/docs/ReadinessErrorResponse.md deleted file mode 100644 index 434a948f..00000000 --- a/pkg/config-api-client/docs/ReadinessErrorResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ReadinessErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **map[string]string** | | -**Status** | **string** | | - -## Methods - -### NewReadinessErrorResponse - -`func NewReadinessErrorResponse(data map[string]string, status string, ) *ReadinessErrorResponse` - -NewReadinessErrorResponse instantiates a new ReadinessErrorResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewReadinessErrorResponseWithDefaults - -`func NewReadinessErrorResponseWithDefaults() *ReadinessErrorResponse` - -NewReadinessErrorResponseWithDefaults instantiates a new ReadinessErrorResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ReadinessErrorResponse) GetData() map[string]string` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ReadinessErrorResponse) GetDataOk() (*map[string]string, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ReadinessErrorResponse) SetData(v map[string]string)` - -SetData sets Data field to given value. - - -### GetStatus - -`func (o *ReadinessErrorResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ReadinessErrorResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ReadinessErrorResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/pkg/config-api-client/docs/ReadinessResponse.md b/pkg/config-api-client/docs/ReadinessResponse.md deleted file mode 100644 index cbd7c212..00000000 --- a/pkg/config-api-client/docs/ReadinessResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ReadinessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | **map[string]string** | | -**Status** | **string** | | - -## Methods - -### NewReadinessResponse - -`func NewReadinessResponse(data map[string]string, status string, ) *ReadinessResponse` - -NewReadinessResponse instantiates a new ReadinessResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewReadinessResponseWithDefaults - -`func NewReadinessResponseWithDefaults() *ReadinessResponse` - -NewReadinessResponseWithDefaults instantiates a new ReadinessResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ReadinessResponse) GetData() map[string]string` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ReadinessResponse) GetDataOk() (*map[string]string, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ReadinessResponse) SetData(v map[string]string)` - -SetData sets Data field to given value. - - -### GetStatus - -`func (o *ReadinessResponse) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ReadinessResponse) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ReadinessResponse) SetStatus(v string)` - -SetStatus sets Status field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/pkg/config-api-client/docs/SensorGroupAssignment.md b/pkg/config-api-client/docs/SensorGroupAssignmentsItem.md similarity index 61% rename from pkg/config-api-client/docs/SensorGroupAssignment.md rename to pkg/config-api-client/docs/SensorGroupAssignmentsItem.md index f1ce7611..a0ccffd0 100644 --- a/pkg/config-api-client/docs/SensorGroupAssignment.md +++ b/pkg/config-api-client/docs/SensorGroupAssignmentsItem.md @@ -1,4 +1,4 @@ -# SensorGroupAssignment +# SensorGroupAssignmentsItem ## Properties @@ -10,79 +10,79 @@ Name | Type | Description | Notes ## Methods -### NewSensorGroupAssignment +### NewSensorGroupAssignmentsItem -`func NewSensorGroupAssignment(uid string, groupUid string, sensorUid string, ) *SensorGroupAssignment` +`func NewSensorGroupAssignmentsItem(uid string, groupUid string, sensorUid string, ) *SensorGroupAssignmentsItem` -NewSensorGroupAssignment instantiates a new SensorGroupAssignment object +NewSensorGroupAssignmentsItem instantiates a new SensorGroupAssignmentsItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSensorGroupAssignmentWithDefaults +### NewSensorGroupAssignmentsItemWithDefaults -`func NewSensorGroupAssignmentWithDefaults() *SensorGroupAssignment` +`func NewSensorGroupAssignmentsItemWithDefaults() *SensorGroupAssignmentsItem` -NewSensorGroupAssignmentWithDefaults instantiates a new SensorGroupAssignment object +NewSensorGroupAssignmentsItemWithDefaults instantiates a new SensorGroupAssignmentsItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetUid -`func (o *SensorGroupAssignment) GetUid() string` +`func (o *SensorGroupAssignmentsItem) GetUid() string` GetUid returns the Uid field if non-nil, zero value otherwise. ### GetUidOk -`func (o *SensorGroupAssignment) GetUidOk() (*string, bool)` +`func (o *SensorGroupAssignmentsItem) GetUidOk() (*string, bool)` GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUid -`func (o *SensorGroupAssignment) SetUid(v string)` +`func (o *SensorGroupAssignmentsItem) SetUid(v string)` SetUid sets Uid field to given value. ### GetGroupUid -`func (o *SensorGroupAssignment) GetGroupUid() string` +`func (o *SensorGroupAssignmentsItem) GetGroupUid() string` GetGroupUid returns the GroupUid field if non-nil, zero value otherwise. ### GetGroupUidOk -`func (o *SensorGroupAssignment) GetGroupUidOk() (*string, bool)` +`func (o *SensorGroupAssignmentsItem) GetGroupUidOk() (*string, bool)` GetGroupUidOk returns a tuple with the GroupUid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroupUid -`func (o *SensorGroupAssignment) SetGroupUid(v string)` +`func (o *SensorGroupAssignmentsItem) SetGroupUid(v string)` SetGroupUid sets GroupUid field to given value. ### GetSensorUid -`func (o *SensorGroupAssignment) GetSensorUid() string` +`func (o *SensorGroupAssignmentsItem) GetSensorUid() string` GetSensorUid returns the SensorUid field if non-nil, zero value otherwise. ### GetSensorUidOk -`func (o *SensorGroupAssignment) GetSensorUidOk() (*string, bool)` +`func (o *SensorGroupAssignmentsItem) GetSensorUidOk() (*string, bool)` GetSensorUidOk returns a tuple with the SensorUid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSensorUid -`func (o *SensorGroupAssignment) SetSensorUid(v string)` +`func (o *SensorGroupAssignmentsItem) SetSensorUid(v string)` SetSensorUid sets SensorUid field to given value. diff --git a/pkg/config-api-client/docs/SensorGroupAssignmentsResponse.md b/pkg/config-api-client/docs/SensorGroupAssignmentsResponse.md index 8336af2d..d2284175 100644 --- a/pkg/config-api-client/docs/SensorGroupAssignmentsResponse.md +++ b/pkg/config-api-client/docs/SensorGroupAssignmentsResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SensorGroupAssignments** | [**[]SensorGroupAssignment**](SensorGroupAssignment.md) | | +**SensorGroupAssignments** | [**[]SensorGroupAssignmentsItem**](SensorGroupAssignmentsItem.md) | | **Pagination** | [**PaginationDetails**](PaginationDetails.md) | | ## Methods ### NewSensorGroupAssignmentsResponse -`func NewSensorGroupAssignmentsResponse(sensorGroupAssignments []SensorGroupAssignment, pagination PaginationDetails, ) *SensorGroupAssignmentsResponse` +`func NewSensorGroupAssignmentsResponse(sensorGroupAssignments []SensorGroupAssignmentsItem, pagination PaginationDetails, ) *SensorGroupAssignmentsResponse` NewSensorGroupAssignmentsResponse instantiates a new SensorGroupAssignmentsResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetSensorGroupAssignments -`func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignments() []SensorGroupAssignment` +`func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignments() []SensorGroupAssignmentsItem` GetSensorGroupAssignments returns the SensorGroupAssignments field if non-nil, zero value otherwise. ### GetSensorGroupAssignmentsOk -`func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignmentsOk() (*[]SensorGroupAssignment, bool)` +`func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignmentsOk() (*[]SensorGroupAssignmentsItem, bool)` GetSensorGroupAssignmentsOk returns a tuple with the SensorGroupAssignments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSensorGroupAssignments -`func (o *SensorGroupAssignmentsResponse) SetSensorGroupAssignments(v []SensorGroupAssignment)` +`func (o *SensorGroupAssignmentsResponse) SetSensorGroupAssignments(v []SensorGroupAssignmentsItem)` SetSensorGroupAssignments sets SensorGroupAssignments field to given value. diff --git a/pkg/config-api-client/docs/StatusResponse.md b/pkg/config-api-client/docs/StatusResponse.md deleted file mode 100644 index eee60a14..00000000 --- a/pkg/config-api-client/docs/StatusResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# StatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | | -**Version** | **string** | | - -## Methods - -### NewStatusResponse - -`func NewStatusResponse(name string, version string, ) *StatusResponse` - -NewStatusResponse instantiates a new StatusResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewStatusResponseWithDefaults - -`func NewStatusResponseWithDefaults() *StatusResponse` - -NewStatusResponseWithDefaults instantiates a new StatusResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *StatusResponse) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *StatusResponse) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *StatusResponse) SetName(v string)` - -SetName sets Name field to given value. - - -### GetVersion - -`func (o *StatusResponse) GetVersion() string` - -GetVersion returns the Version field if non-nil, zero value otherwise. - -### GetVersionOk - -`func (o *StatusResponse) GetVersionOk() (*string, bool)` - -GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVersion - -`func (o *StatusResponse) SetVersion(v string)` - -SetVersion sets Version field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/pkg/config-api-client/docs/WiredNetwork.md b/pkg/config-api-client/docs/WiredNetworksItem.md similarity index 53% rename from pkg/config-api-client/docs/WiredNetwork.md rename to pkg/config-api-client/docs/WiredNetworksItem.md index 762dfc8a..1828b809 100644 --- a/pkg/config-api-client/docs/WiredNetwork.md +++ b/pkg/config-api-client/docs/WiredNetworksItem.md @@ -1,4 +1,4 @@ -# WiredNetwork +# WiredNetworksItem ## Properties @@ -7,10 +7,8 @@ Name | Type | Description | Notes **Uid** | **string** | | **Alias** | **string** | | **IpVersion** | **string** | | -**SensorCount** | **int32** | | -**UpdatedAt** | **time.Time** | | -**CreatedAt** | **time.Time** | | -**Disabled** | **bool** | | +**DatetimeUpdated** | **time.Time** | | +**DatetimeCreated** | **time.Time** | | **Security** | **NullableString** | | **DnsLookupDomain** | **NullableString** | | **DisableEdns** | **bool** | | @@ -20,311 +18,271 @@ Name | Type | Description | Notes ## Methods -### NewWiredNetwork +### NewWiredNetworksItem -`func NewWiredNetwork(uid string, alias string, ipVersion string, sensorCount int32, updatedAt time.Time, createdAt time.Time, disabled bool, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vlanId NullableInt32, ) *WiredNetwork` +`func NewWiredNetworksItem(uid string, alias string, ipVersion string, datetimeUpdated time.Time, datetimeCreated time.Time, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vlanId NullableInt32, ) *WiredNetworksItem` -NewWiredNetwork instantiates a new WiredNetwork object +NewWiredNetworksItem instantiates a new WiredNetworksItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewWiredNetworkWithDefaults +### NewWiredNetworksItemWithDefaults -`func NewWiredNetworkWithDefaults() *WiredNetwork` +`func NewWiredNetworksItemWithDefaults() *WiredNetworksItem` -NewWiredNetworkWithDefaults instantiates a new WiredNetwork object +NewWiredNetworksItemWithDefaults instantiates a new WiredNetworksItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetUid -`func (o *WiredNetwork) GetUid() string` +`func (o *WiredNetworksItem) GetUid() string` GetUid returns the Uid field if non-nil, zero value otherwise. ### GetUidOk -`func (o *WiredNetwork) GetUidOk() (*string, bool)` +`func (o *WiredNetworksItem) GetUidOk() (*string, bool)` GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUid -`func (o *WiredNetwork) SetUid(v string)` +`func (o *WiredNetworksItem) SetUid(v string)` SetUid sets Uid field to given value. ### GetAlias -`func (o *WiredNetwork) GetAlias() string` +`func (o *WiredNetworksItem) GetAlias() string` GetAlias returns the Alias field if non-nil, zero value otherwise. ### GetAliasOk -`func (o *WiredNetwork) GetAliasOk() (*string, bool)` +`func (o *WiredNetworksItem) GetAliasOk() (*string, bool)` GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAlias -`func (o *WiredNetwork) SetAlias(v string)` +`func (o *WiredNetworksItem) SetAlias(v string)` SetAlias sets Alias field to given value. ### GetIpVersion -`func (o *WiredNetwork) GetIpVersion() string` +`func (o *WiredNetworksItem) GetIpVersion() string` GetIpVersion returns the IpVersion field if non-nil, zero value otherwise. ### GetIpVersionOk -`func (o *WiredNetwork) GetIpVersionOk() (*string, bool)` +`func (o *WiredNetworksItem) GetIpVersionOk() (*string, bool)` GetIpVersionOk returns a tuple with the IpVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpVersion -`func (o *WiredNetwork) SetIpVersion(v string)` +`func (o *WiredNetworksItem) SetIpVersion(v string)` SetIpVersion sets IpVersion field to given value. -### GetSensorCount +### GetDatetimeUpdated -`func (o *WiredNetwork) GetSensorCount() int32` +`func (o *WiredNetworksItem) GetDatetimeUpdated() time.Time` -GetSensorCount returns the SensorCount field if non-nil, zero value otherwise. +GetDatetimeUpdated returns the DatetimeUpdated field if non-nil, zero value otherwise. -### GetSensorCountOk +### GetDatetimeUpdatedOk -`func (o *WiredNetwork) GetSensorCountOk() (*int32, bool)` +`func (o *WiredNetworksItem) GetDatetimeUpdatedOk() (*time.Time, bool)` -GetSensorCountOk returns a tuple with the SensorCount field if it's non-nil, zero value otherwise +GetDatetimeUpdatedOk returns a tuple with the DatetimeUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSensorCount +### SetDatetimeUpdated -`func (o *WiredNetwork) SetSensorCount(v int32)` +`func (o *WiredNetworksItem) SetDatetimeUpdated(v time.Time)` -SetSensorCount sets SensorCount field to given value. +SetDatetimeUpdated sets DatetimeUpdated field to given value. -### GetUpdatedAt +### GetDatetimeCreated -`func (o *WiredNetwork) GetUpdatedAt() time.Time` +`func (o *WiredNetworksItem) GetDatetimeCreated() time.Time` -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. +GetDatetimeCreated returns the DatetimeCreated field if non-nil, zero value otherwise. -### GetUpdatedAtOk +### GetDatetimeCreatedOk -`func (o *WiredNetwork) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *WiredNetworksItem) GetDatetimeCreatedOk() (*time.Time, bool)` -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +GetDatetimeCreatedOk returns a tuple with the DatetimeCreated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUpdatedAt +### SetDatetimeCreated -`func (o *WiredNetwork) SetUpdatedAt(v time.Time)` +`func (o *WiredNetworksItem) SetDatetimeCreated(v time.Time)` -SetUpdatedAt sets UpdatedAt field to given value. - - -### GetCreatedAt - -`func (o *WiredNetwork) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *WiredNetwork) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *WiredNetwork) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - -### GetDisabled - -`func (o *WiredNetwork) GetDisabled() bool` - -GetDisabled returns the Disabled field if non-nil, zero value otherwise. - -### GetDisabledOk - -`func (o *WiredNetwork) GetDisabledOk() (*bool, bool)` - -GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisabled - -`func (o *WiredNetwork) SetDisabled(v bool)` - -SetDisabled sets Disabled field to given value. +SetDatetimeCreated sets DatetimeCreated field to given value. ### GetSecurity -`func (o *WiredNetwork) GetSecurity() string` +`func (o *WiredNetworksItem) GetSecurity() string` GetSecurity returns the Security field if non-nil, zero value otherwise. ### GetSecurityOk -`func (o *WiredNetwork) GetSecurityOk() (*string, bool)` +`func (o *WiredNetworksItem) GetSecurityOk() (*string, bool)` GetSecurityOk returns a tuple with the Security field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSecurity -`func (o *WiredNetwork) SetSecurity(v string)` +`func (o *WiredNetworksItem) SetSecurity(v string)` SetSecurity sets Security field to given value. ### SetSecurityNil -`func (o *WiredNetwork) SetSecurityNil(b bool)` +`func (o *WiredNetworksItem) SetSecurityNil(b bool)` SetSecurityNil sets the value for Security to be an explicit nil ### UnsetSecurity -`func (o *WiredNetwork) UnsetSecurity()` +`func (o *WiredNetworksItem) UnsetSecurity()` UnsetSecurity ensures that no value is present for Security, not even an explicit nil ### GetDnsLookupDomain -`func (o *WiredNetwork) GetDnsLookupDomain() string` +`func (o *WiredNetworksItem) GetDnsLookupDomain() string` GetDnsLookupDomain returns the DnsLookupDomain field if non-nil, zero value otherwise. ### GetDnsLookupDomainOk -`func (o *WiredNetwork) GetDnsLookupDomainOk() (*string, bool)` +`func (o *WiredNetworksItem) GetDnsLookupDomainOk() (*string, bool)` GetDnsLookupDomainOk returns a tuple with the DnsLookupDomain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDnsLookupDomain -`func (o *WiredNetwork) SetDnsLookupDomain(v string)` +`func (o *WiredNetworksItem) SetDnsLookupDomain(v string)` SetDnsLookupDomain sets DnsLookupDomain field to given value. ### SetDnsLookupDomainNil -`func (o *WiredNetwork) SetDnsLookupDomainNil(b bool)` +`func (o *WiredNetworksItem) SetDnsLookupDomainNil(b bool)` SetDnsLookupDomainNil sets the value for DnsLookupDomain to be an explicit nil ### UnsetDnsLookupDomain -`func (o *WiredNetwork) UnsetDnsLookupDomain()` +`func (o *WiredNetworksItem) UnsetDnsLookupDomain()` UnsetDnsLookupDomain ensures that no value is present for DnsLookupDomain, not even an explicit nil ### GetDisableEdns -`func (o *WiredNetwork) GetDisableEdns() bool` +`func (o *WiredNetworksItem) GetDisableEdns() bool` GetDisableEdns returns the DisableEdns field if non-nil, zero value otherwise. ### GetDisableEdnsOk -`func (o *WiredNetwork) GetDisableEdnsOk() (*bool, bool)` +`func (o *WiredNetworksItem) GetDisableEdnsOk() (*bool, bool)` GetDisableEdnsOk returns a tuple with the DisableEdns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDisableEdns -`func (o *WiredNetwork) SetDisableEdns(v bool)` +`func (o *WiredNetworksItem) SetDisableEdns(v bool)` SetDisableEdns sets DisableEdns field to given value. ### GetUseDns64 -`func (o *WiredNetwork) GetUseDns64() bool` +`func (o *WiredNetworksItem) GetUseDns64() bool` GetUseDns64 returns the UseDns64 field if non-nil, zero value otherwise. ### GetUseDns64Ok -`func (o *WiredNetwork) GetUseDns64Ok() (*bool, bool)` +`func (o *WiredNetworksItem) GetUseDns64Ok() (*bool, bool)` GetUseDns64Ok returns a tuple with the UseDns64 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseDns64 -`func (o *WiredNetwork) SetUseDns64(v bool)` +`func (o *WiredNetworksItem) SetUseDns64(v bool)` SetUseDns64 sets UseDns64 field to given value. ### GetExternalConnectivity -`func (o *WiredNetwork) GetExternalConnectivity() bool` +`func (o *WiredNetworksItem) GetExternalConnectivity() bool` GetExternalConnectivity returns the ExternalConnectivity field if non-nil, zero value otherwise. ### GetExternalConnectivityOk -`func (o *WiredNetwork) GetExternalConnectivityOk() (*bool, bool)` +`func (o *WiredNetworksItem) GetExternalConnectivityOk() (*bool, bool)` GetExternalConnectivityOk returns a tuple with the ExternalConnectivity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExternalConnectivity -`func (o *WiredNetwork) SetExternalConnectivity(v bool)` +`func (o *WiredNetworksItem) SetExternalConnectivity(v bool)` SetExternalConnectivity sets ExternalConnectivity field to given value. ### GetVlanId -`func (o *WiredNetwork) GetVlanId() int32` +`func (o *WiredNetworksItem) GetVlanId() int32` GetVlanId returns the VlanId field if non-nil, zero value otherwise. ### GetVlanIdOk -`func (o *WiredNetwork) GetVlanIdOk() (*int32, bool)` +`func (o *WiredNetworksItem) GetVlanIdOk() (*int32, bool)` GetVlanIdOk returns a tuple with the VlanId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlanId -`func (o *WiredNetwork) SetVlanId(v int32)` +`func (o *WiredNetworksItem) SetVlanId(v int32)` SetVlanId sets VlanId field to given value. ### SetVlanIdNil -`func (o *WiredNetwork) SetVlanIdNil(b bool)` +`func (o *WiredNetworksItem) SetVlanIdNil(b bool)` SetVlanIdNil sets the value for VlanId to be an explicit nil ### UnsetVlanId -`func (o *WiredNetwork) UnsetVlanId()` +`func (o *WiredNetworksItem) UnsetVlanId()` UnsetVlanId ensures that no value is present for VlanId, not even an explicit nil diff --git a/pkg/config-api-client/docs/WiredNetworksResponse.md b/pkg/config-api-client/docs/WiredNetworksResponse.md index 6b6b688d..1f0a9fb8 100644 --- a/pkg/config-api-client/docs/WiredNetworksResponse.md +++ b/pkg/config-api-client/docs/WiredNetworksResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**WiredNetworks** | [**[]WiredNetwork**](WiredNetwork.md) | | +**WiredNetworks** | [**[]WiredNetworksItem**](WiredNetworksItem.md) | | **Pagination** | [**PaginationDetails**](PaginationDetails.md) | | ## Methods ### NewWiredNetworksResponse -`func NewWiredNetworksResponse(wiredNetworks []WiredNetwork, pagination PaginationDetails, ) *WiredNetworksResponse` +`func NewWiredNetworksResponse(wiredNetworks []WiredNetworksItem, pagination PaginationDetails, ) *WiredNetworksResponse` NewWiredNetworksResponse instantiates a new WiredNetworksResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetWiredNetworks -`func (o *WiredNetworksResponse) GetWiredNetworks() []WiredNetwork` +`func (o *WiredNetworksResponse) GetWiredNetworks() []WiredNetworksItem` GetWiredNetworks returns the WiredNetworks field if non-nil, zero value otherwise. ### GetWiredNetworksOk -`func (o *WiredNetworksResponse) GetWiredNetworksOk() (*[]WiredNetwork, bool)` +`func (o *WiredNetworksResponse) GetWiredNetworksOk() (*[]WiredNetworksItem, bool)` GetWiredNetworksOk returns a tuple with the WiredNetworks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWiredNetworks -`func (o *WiredNetworksResponse) SetWiredNetworks(v []WiredNetwork)` +`func (o *WiredNetworksResponse) SetWiredNetworks(v []WiredNetworksItem)` SetWiredNetworks sets WiredNetworks field to given value. diff --git a/pkg/config-api-client/docs/WirelessNetwork.md b/pkg/config-api-client/docs/WirelessNetworksItem.md similarity index 53% rename from pkg/config-api-client/docs/WirelessNetwork.md rename to pkg/config-api-client/docs/WirelessNetworksItem.md index 4e14a40d..3eb01f7b 100644 --- a/pkg/config-api-client/docs/WirelessNetwork.md +++ b/pkg/config-api-client/docs/WirelessNetworksItem.md @@ -1,4 +1,4 @@ -# WirelessNetwork +# WirelessNetworksItem ## Properties @@ -9,10 +9,8 @@ Name | Type | Description | Notes **Ssid** | **string** | | **Security** | **NullableString** | | **IpVersion** | **string** | | -**SensorCount** | **int32** | | -**UpdatedAt** | **time.Time** | | -**CreatedAt** | **time.Time** | | -**Disabled** | **bool** | | +**DatetimeCreated** | **time.Time** | | +**DatetimeUpdated** | **time.Time** | | **Hidden** | **bool** | | **BandLocking** | **string** | | **DnsLookupDomain** | **NullableString** | | @@ -22,339 +20,299 @@ Name | Type | Description | Notes ## Methods -### NewWirelessNetwork +### NewWirelessNetworksItem -`func NewWirelessNetwork(uid string, alias string, ssid string, security NullableString, ipVersion string, sensorCount int32, updatedAt time.Time, createdAt time.Time, disabled bool, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, ) *WirelessNetwork` +`func NewWirelessNetworksItem(uid string, alias string, ssid string, security NullableString, ipVersion string, datetimeCreated time.Time, datetimeUpdated time.Time, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, ) *WirelessNetworksItem` -NewWirelessNetwork instantiates a new WirelessNetwork object +NewWirelessNetworksItem instantiates a new WirelessNetworksItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewWirelessNetworkWithDefaults +### NewWirelessNetworksItemWithDefaults -`func NewWirelessNetworkWithDefaults() *WirelessNetwork` +`func NewWirelessNetworksItemWithDefaults() *WirelessNetworksItem` -NewWirelessNetworkWithDefaults instantiates a new WirelessNetwork object +NewWirelessNetworksItemWithDefaults instantiates a new WirelessNetworksItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetUid -`func (o *WirelessNetwork) GetUid() string` +`func (o *WirelessNetworksItem) GetUid() string` GetUid returns the Uid field if non-nil, zero value otherwise. ### GetUidOk -`func (o *WirelessNetwork) GetUidOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetUidOk() (*string, bool)` GetUidOk returns a tuple with the Uid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUid -`func (o *WirelessNetwork) SetUid(v string)` +`func (o *WirelessNetworksItem) SetUid(v string)` SetUid sets Uid field to given value. ### GetAlias -`func (o *WirelessNetwork) GetAlias() string` +`func (o *WirelessNetworksItem) GetAlias() string` GetAlias returns the Alias field if non-nil, zero value otherwise. ### GetAliasOk -`func (o *WirelessNetwork) GetAliasOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetAliasOk() (*string, bool)` GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAlias -`func (o *WirelessNetwork) SetAlias(v string)` +`func (o *WirelessNetworksItem) SetAlias(v string)` SetAlias sets Alias field to given value. ### GetSsid -`func (o *WirelessNetwork) GetSsid() string` +`func (o *WirelessNetworksItem) GetSsid() string` GetSsid returns the Ssid field if non-nil, zero value otherwise. ### GetSsidOk -`func (o *WirelessNetwork) GetSsidOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetSsidOk() (*string, bool)` GetSsidOk returns a tuple with the Ssid field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSsid -`func (o *WirelessNetwork) SetSsid(v string)` +`func (o *WirelessNetworksItem) SetSsid(v string)` SetSsid sets Ssid field to given value. ### GetSecurity -`func (o *WirelessNetwork) GetSecurity() string` +`func (o *WirelessNetworksItem) GetSecurity() string` GetSecurity returns the Security field if non-nil, zero value otherwise. ### GetSecurityOk -`func (o *WirelessNetwork) GetSecurityOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetSecurityOk() (*string, bool)` GetSecurityOk returns a tuple with the Security field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSecurity -`func (o *WirelessNetwork) SetSecurity(v string)` +`func (o *WirelessNetworksItem) SetSecurity(v string)` SetSecurity sets Security field to given value. ### SetSecurityNil -`func (o *WirelessNetwork) SetSecurityNil(b bool)` +`func (o *WirelessNetworksItem) SetSecurityNil(b bool)` SetSecurityNil sets the value for Security to be an explicit nil ### UnsetSecurity -`func (o *WirelessNetwork) UnsetSecurity()` +`func (o *WirelessNetworksItem) UnsetSecurity()` UnsetSecurity ensures that no value is present for Security, not even an explicit nil ### GetIpVersion -`func (o *WirelessNetwork) GetIpVersion() string` +`func (o *WirelessNetworksItem) GetIpVersion() string` GetIpVersion returns the IpVersion field if non-nil, zero value otherwise. ### GetIpVersionOk -`func (o *WirelessNetwork) GetIpVersionOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetIpVersionOk() (*string, bool)` GetIpVersionOk returns a tuple with the IpVersion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpVersion -`func (o *WirelessNetwork) SetIpVersion(v string)` +`func (o *WirelessNetworksItem) SetIpVersion(v string)` SetIpVersion sets IpVersion field to given value. -### GetSensorCount +### GetDatetimeCreated -`func (o *WirelessNetwork) GetSensorCount() int32` +`func (o *WirelessNetworksItem) GetDatetimeCreated() time.Time` -GetSensorCount returns the SensorCount field if non-nil, zero value otherwise. +GetDatetimeCreated returns the DatetimeCreated field if non-nil, zero value otherwise. -### GetSensorCountOk +### GetDatetimeCreatedOk -`func (o *WirelessNetwork) GetSensorCountOk() (*int32, bool)` +`func (o *WirelessNetworksItem) GetDatetimeCreatedOk() (*time.Time, bool)` -GetSensorCountOk returns a tuple with the SensorCount field if it's non-nil, zero value otherwise +GetDatetimeCreatedOk returns a tuple with the DatetimeCreated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSensorCount +### SetDatetimeCreated -`func (o *WirelessNetwork) SetSensorCount(v int32)` +`func (o *WirelessNetworksItem) SetDatetimeCreated(v time.Time)` -SetSensorCount sets SensorCount field to given value. +SetDatetimeCreated sets DatetimeCreated field to given value. -### GetUpdatedAt +### GetDatetimeUpdated -`func (o *WirelessNetwork) GetUpdatedAt() time.Time` +`func (o *WirelessNetworksItem) GetDatetimeUpdated() time.Time` -GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. +GetDatetimeUpdated returns the DatetimeUpdated field if non-nil, zero value otherwise. -### GetUpdatedAtOk +### GetDatetimeUpdatedOk -`func (o *WirelessNetwork) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *WirelessNetworksItem) GetDatetimeUpdatedOk() (*time.Time, bool)` -GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +GetDatetimeUpdatedOk returns a tuple with the DatetimeUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUpdatedAt +### SetDatetimeUpdated -`func (o *WirelessNetwork) SetUpdatedAt(v time.Time)` +`func (o *WirelessNetworksItem) SetDatetimeUpdated(v time.Time)` -SetUpdatedAt sets UpdatedAt field to given value. - - -### GetCreatedAt - -`func (o *WirelessNetwork) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *WirelessNetwork) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *WirelessNetwork) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - -### GetDisabled - -`func (o *WirelessNetwork) GetDisabled() bool` - -GetDisabled returns the Disabled field if non-nil, zero value otherwise. - -### GetDisabledOk - -`func (o *WirelessNetwork) GetDisabledOk() (*bool, bool)` - -GetDisabledOk returns a tuple with the Disabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisabled - -`func (o *WirelessNetwork) SetDisabled(v bool)` - -SetDisabled sets Disabled field to given value. +SetDatetimeUpdated sets DatetimeUpdated field to given value. ### GetHidden -`func (o *WirelessNetwork) GetHidden() bool` +`func (o *WirelessNetworksItem) GetHidden() bool` GetHidden returns the Hidden field if non-nil, zero value otherwise. ### GetHiddenOk -`func (o *WirelessNetwork) GetHiddenOk() (*bool, bool)` +`func (o *WirelessNetworksItem) GetHiddenOk() (*bool, bool)` GetHiddenOk returns a tuple with the Hidden field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetHidden -`func (o *WirelessNetwork) SetHidden(v bool)` +`func (o *WirelessNetworksItem) SetHidden(v bool)` SetHidden sets Hidden field to given value. ### GetBandLocking -`func (o *WirelessNetwork) GetBandLocking() string` +`func (o *WirelessNetworksItem) GetBandLocking() string` GetBandLocking returns the BandLocking field if non-nil, zero value otherwise. ### GetBandLockingOk -`func (o *WirelessNetwork) GetBandLockingOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetBandLockingOk() (*string, bool)` GetBandLockingOk returns a tuple with the BandLocking field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBandLocking -`func (o *WirelessNetwork) SetBandLocking(v string)` +`func (o *WirelessNetworksItem) SetBandLocking(v string)` SetBandLocking sets BandLocking field to given value. ### GetDnsLookupDomain -`func (o *WirelessNetwork) GetDnsLookupDomain() string` +`func (o *WirelessNetworksItem) GetDnsLookupDomain() string` GetDnsLookupDomain returns the DnsLookupDomain field if non-nil, zero value otherwise. ### GetDnsLookupDomainOk -`func (o *WirelessNetwork) GetDnsLookupDomainOk() (*string, bool)` +`func (o *WirelessNetworksItem) GetDnsLookupDomainOk() (*string, bool)` GetDnsLookupDomainOk returns a tuple with the DnsLookupDomain field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDnsLookupDomain -`func (o *WirelessNetwork) SetDnsLookupDomain(v string)` +`func (o *WirelessNetworksItem) SetDnsLookupDomain(v string)` SetDnsLookupDomain sets DnsLookupDomain field to given value. ### SetDnsLookupDomainNil -`func (o *WirelessNetwork) SetDnsLookupDomainNil(b bool)` +`func (o *WirelessNetworksItem) SetDnsLookupDomainNil(b bool)` SetDnsLookupDomainNil sets the value for DnsLookupDomain to be an explicit nil ### UnsetDnsLookupDomain -`func (o *WirelessNetwork) UnsetDnsLookupDomain()` +`func (o *WirelessNetworksItem) UnsetDnsLookupDomain()` UnsetDnsLookupDomain ensures that no value is present for DnsLookupDomain, not even an explicit nil ### GetDisableEdns -`func (o *WirelessNetwork) GetDisableEdns() bool` +`func (o *WirelessNetworksItem) GetDisableEdns() bool` GetDisableEdns returns the DisableEdns field if non-nil, zero value otherwise. ### GetDisableEdnsOk -`func (o *WirelessNetwork) GetDisableEdnsOk() (*bool, bool)` +`func (o *WirelessNetworksItem) GetDisableEdnsOk() (*bool, bool)` GetDisableEdnsOk returns a tuple with the DisableEdns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDisableEdns -`func (o *WirelessNetwork) SetDisableEdns(v bool)` +`func (o *WirelessNetworksItem) SetDisableEdns(v bool)` SetDisableEdns sets DisableEdns field to given value. ### GetUseDns64 -`func (o *WirelessNetwork) GetUseDns64() bool` +`func (o *WirelessNetworksItem) GetUseDns64() bool` GetUseDns64 returns the UseDns64 field if non-nil, zero value otherwise. ### GetUseDns64Ok -`func (o *WirelessNetwork) GetUseDns64Ok() (*bool, bool)` +`func (o *WirelessNetworksItem) GetUseDns64Ok() (*bool, bool)` GetUseDns64Ok returns a tuple with the UseDns64 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUseDns64 -`func (o *WirelessNetwork) SetUseDns64(v bool)` +`func (o *WirelessNetworksItem) SetUseDns64(v bool)` SetUseDns64 sets UseDns64 field to given value. ### GetExternalConnectivity -`func (o *WirelessNetwork) GetExternalConnectivity() bool` +`func (o *WirelessNetworksItem) GetExternalConnectivity() bool` GetExternalConnectivity returns the ExternalConnectivity field if non-nil, zero value otherwise. ### GetExternalConnectivityOk -`func (o *WirelessNetwork) GetExternalConnectivityOk() (*bool, bool)` +`func (o *WirelessNetworksItem) GetExternalConnectivityOk() (*bool, bool)` GetExternalConnectivityOk returns a tuple with the ExternalConnectivity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetExternalConnectivity -`func (o *WirelessNetwork) SetExternalConnectivity(v bool)` +`func (o *WirelessNetworksItem) SetExternalConnectivity(v bool)` SetExternalConnectivity sets ExternalConnectivity field to given value. diff --git a/pkg/config-api-client/docs/WirelessNetworksResponse.md b/pkg/config-api-client/docs/WirelessNetworksResponse.md index 8b2757d0..fcfadd38 100644 --- a/pkg/config-api-client/docs/WirelessNetworksResponse.md +++ b/pkg/config-api-client/docs/WirelessNetworksResponse.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**WirelessNetworks** | [**[]WirelessNetwork**](WirelessNetwork.md) | | +**WirelessNetworks** | [**[]WirelessNetworksItem**](WirelessNetworksItem.md) | | **Pagination** | [**PaginationDetails**](PaginationDetails.md) | | ## Methods ### NewWirelessNetworksResponse -`func NewWirelessNetworksResponse(wirelessNetworks []WirelessNetwork, pagination PaginationDetails, ) *WirelessNetworksResponse` +`func NewWirelessNetworksResponse(wirelessNetworks []WirelessNetworksItem, pagination PaginationDetails, ) *WirelessNetworksResponse` NewWirelessNetworksResponse instantiates a new WirelessNetworksResponse object This constructor will assign default values to properties that have it defined, @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetWirelessNetworks -`func (o *WirelessNetworksResponse) GetWirelessNetworks() []WirelessNetwork` +`func (o *WirelessNetworksResponse) GetWirelessNetworks() []WirelessNetworksItem` GetWirelessNetworks returns the WirelessNetworks field if non-nil, zero value otherwise. ### GetWirelessNetworksOk -`func (o *WirelessNetworksResponse) GetWirelessNetworksOk() (*[]WirelessNetwork, bool)` +`func (o *WirelessNetworksResponse) GetWirelessNetworksOk() (*[]WirelessNetworksItem, bool)` GetWirelessNetworksOk returns a tuple with the WirelessNetworks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWirelessNetworks -`func (o *WirelessNetworksResponse) SetWirelessNetworks(v []WirelessNetwork)` +`func (o *WirelessNetworksResponse) SetWirelessNetworks(v []WirelessNetworksItem)` SetWirelessNetworks sets WirelessNetworks field to given value. diff --git a/pkg/config-api-client/model_error_detail.go b/pkg/config-api-client/model_error_detail.go index a9509a50..dd302b68 100644 --- a/pkg/config-api-client/model_error_detail.go +++ b/pkg/config-api-client/model_error_detail.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.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 dbdf6d15..cddf5af5 100644 --- a/pkg/config-api-client/model_error_response.go +++ b/pkg/config-api-client/model_error_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.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 f20261f6..90c5e4e5 100644 --- a/pkg/config-api-client/model_groups_get_item.go +++ b/pkg/config-api-client/model_groups_get_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_get_response.go b/pkg/config-api-client/model_groups_get_response.go index 4800c7a1..e3977175 100644 --- a/pkg/config-api-client/model_groups_get_response.go +++ b/pkg/config-api-client/model_groups_get_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_groups_post_request.go b/pkg/config-api-client/model_groups_post_request.go index 344d9dbc..0571a24f 100644 --- a/pkg/config-api-client/model_groups_post_request.go +++ b/pkg/config-api-client/model_groups_post_request.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.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 dbfe0781..4066a5aa 100644 --- a/pkg/config-api-client/model_groups_post_response.go +++ b/pkg/config-api-client/model_groups_post_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_liveness_response.go b/pkg/config-api-client/model_liveness_response.go deleted file mode 100644 index fb3c416a..00000000 --- a/pkg/config-api-client/model_liveness_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Configuration Api - -Nice description goes here - -API version: 1.5.0 -Contact: support@capenetworks.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package config_api_client - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the LivenessResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LivenessResponse{} - -// LivenessResponse struct for LivenessResponse -type LivenessResponse struct { - Status string `json:"status"` -} - -type _LivenessResponse LivenessResponse - -// NewLivenessResponse instantiates a new LivenessResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLivenessResponse(status string) *LivenessResponse { - this := LivenessResponse{} - this.Status = status - return &this -} - -// NewLivenessResponseWithDefaults instantiates a new LivenessResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLivenessResponseWithDefaults() *LivenessResponse { - this := LivenessResponse{} - return &this -} - -// GetStatus returns the Status field value -func (o *LivenessResponse) GetStatus() string { - if o == nil { - var ret string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *LivenessResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *LivenessResponse) SetStatus(v string) { - o.Status = v -} - -func (o LivenessResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LivenessResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["status"] = o.Status - return toSerialize, nil -} - -func (o *LivenessResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "status", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varLivenessResponse := _LivenessResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varLivenessResponse) - - if err != nil { - return err - } - - *o = LivenessResponse(varLivenessResponse) - - return err -} - -type NullableLivenessResponse struct { - value *LivenessResponse - isSet bool -} - -func (v NullableLivenessResponse) Get() *LivenessResponse { - return v.value -} - -func (v *NullableLivenessResponse) Set(val *LivenessResponse) { - v.value = val - v.isSet = true -} - -func (v NullableLivenessResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableLivenessResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLivenessResponse(val *LivenessResponse) *NullableLivenessResponse { - return &NullableLivenessResponse{value: val, isSet: true} -} - -func (v NullableLivenessResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLivenessResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/config-api-client/model_network_group_assignments_item.go b/pkg/config-api-client/model_network_group_assignments_item.go new file mode 100644 index 00000000..f87e6d97 --- /dev/null +++ b/pkg/config-api-client/model_network_group_assignments_item.go @@ -0,0 +1,213 @@ +/* +Configuration Api + +Nice description goes here + +API version: 1.11.0 +Contact: support@capenetworks.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package config_api_client + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the NetworkGroupAssignmentsItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkGroupAssignmentsItem{} + +// NetworkGroupAssignmentsItem struct for NetworkGroupAssignmentsItem +type NetworkGroupAssignmentsItem struct { + Uid string `json:"uid"` + GroupUid string `json:"group_uid"` + NetworkUid string `json:"network_uid"` +} + +type _NetworkGroupAssignmentsItem NetworkGroupAssignmentsItem + +// NewNetworkGroupAssignmentsItem instantiates a new NetworkGroupAssignmentsItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkGroupAssignmentsItem(uid string, groupUid string, networkUid string) *NetworkGroupAssignmentsItem { + this := NetworkGroupAssignmentsItem{} + this.Uid = uid + this.GroupUid = groupUid + this.NetworkUid = networkUid + return &this +} + +// NewNetworkGroupAssignmentsItemWithDefaults instantiates a new NetworkGroupAssignmentsItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkGroupAssignmentsItemWithDefaults() *NetworkGroupAssignmentsItem { + this := NetworkGroupAssignmentsItem{} + return &this +} + +// GetUid returns the Uid field value +func (o *NetworkGroupAssignmentsItem) GetUid() string { + if o == nil { + var ret string + return ret + } + + return o.Uid +} + +// GetUidOk returns a tuple with the Uid field value +// and a boolean to check if the value has been set. +func (o *NetworkGroupAssignmentsItem) GetUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uid, true +} + +// SetUid sets field value +func (o *NetworkGroupAssignmentsItem) SetUid(v string) { + o.Uid = v +} + +// GetGroupUid returns the GroupUid field value +func (o *NetworkGroupAssignmentsItem) GetGroupUid() string { + if o == nil { + var ret string + return ret + } + + return o.GroupUid +} + +// GetGroupUidOk returns a tuple with the GroupUid field value +// and a boolean to check if the value has been set. +func (o *NetworkGroupAssignmentsItem) GetGroupUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupUid, true +} + +// SetGroupUid sets field value +func (o *NetworkGroupAssignmentsItem) SetGroupUid(v string) { + o.GroupUid = v +} + +// GetNetworkUid returns the NetworkUid field value +func (o *NetworkGroupAssignmentsItem) GetNetworkUid() string { + if o == nil { + var ret string + return ret + } + + return o.NetworkUid +} + +// GetNetworkUidOk returns a tuple with the NetworkUid field value +// and a boolean to check if the value has been set. +func (o *NetworkGroupAssignmentsItem) GetNetworkUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NetworkUid, true +} + +// SetNetworkUid sets field value +func (o *NetworkGroupAssignmentsItem) SetNetworkUid(v string) { + o.NetworkUid = v +} + +func (o NetworkGroupAssignmentsItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkGroupAssignmentsItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["uid"] = o.Uid + toSerialize["group_uid"] = o.GroupUid + toSerialize["network_uid"] = o.NetworkUid + return toSerialize, nil +} + +func (o *NetworkGroupAssignmentsItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "uid", + "group_uid", + "network_uid", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNetworkGroupAssignmentsItem := _NetworkGroupAssignmentsItem{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varNetworkGroupAssignmentsItem) + + if err != nil { + return err + } + + *o = NetworkGroupAssignmentsItem(varNetworkGroupAssignmentsItem) + + return err +} + +type NullableNetworkGroupAssignmentsItem struct { + value *NetworkGroupAssignmentsItem + isSet bool +} + +func (v NullableNetworkGroupAssignmentsItem) Get() *NetworkGroupAssignmentsItem { + return v.value +} + +func (v *NullableNetworkGroupAssignmentsItem) Set(val *NetworkGroupAssignmentsItem) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkGroupAssignmentsItem) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkGroupAssignmentsItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkGroupAssignmentsItem(val *NetworkGroupAssignmentsItem) *NullableNetworkGroupAssignmentsItem { + return &NullableNetworkGroupAssignmentsItem{value: val, isSet: true} +} + +func (v NullableNetworkGroupAssignmentsItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkGroupAssignmentsItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/config-api-client/model_network_group_assignments_response.go b/pkg/config-api-client/model_network_group_assignments_response.go new file mode 100644 index 00000000..aad4ff10 --- /dev/null +++ b/pkg/config-api-client/model_network_group_assignments_response.go @@ -0,0 +1,185 @@ +/* +Configuration Api + +Nice description goes here + +API version: 1.11.0 +Contact: support@capenetworks.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package config_api_client + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the NetworkGroupAssignmentsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkGroupAssignmentsResponse{} + +// NetworkGroupAssignmentsResponse struct for NetworkGroupAssignmentsResponse +type NetworkGroupAssignmentsResponse struct { + NetworkGroupAssignments []NetworkGroupAssignmentsItem `json:"network_group_assignments"` + Pagination PaginationDetails `json:"pagination"` +} + +type _NetworkGroupAssignmentsResponse NetworkGroupAssignmentsResponse + +// NewNetworkGroupAssignmentsResponse instantiates a new NetworkGroupAssignmentsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkGroupAssignmentsResponse(networkGroupAssignments []NetworkGroupAssignmentsItem, pagination PaginationDetails) *NetworkGroupAssignmentsResponse { + this := NetworkGroupAssignmentsResponse{} + this.NetworkGroupAssignments = networkGroupAssignments + this.Pagination = pagination + return &this +} + +// NewNetworkGroupAssignmentsResponseWithDefaults instantiates a new NetworkGroupAssignmentsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkGroupAssignmentsResponseWithDefaults() *NetworkGroupAssignmentsResponse { + this := NetworkGroupAssignmentsResponse{} + return &this +} + +// GetNetworkGroupAssignments returns the NetworkGroupAssignments field value +func (o *NetworkGroupAssignmentsResponse) GetNetworkGroupAssignments() []NetworkGroupAssignmentsItem { + if o == nil { + var ret []NetworkGroupAssignmentsItem + return ret + } + + return o.NetworkGroupAssignments +} + +// GetNetworkGroupAssignmentsOk returns a tuple with the NetworkGroupAssignments field value +// and a boolean to check if the value has been set. +func (o *NetworkGroupAssignmentsResponse) GetNetworkGroupAssignmentsOk() ([]NetworkGroupAssignmentsItem, bool) { + if o == nil { + return nil, false + } + return o.NetworkGroupAssignments, true +} + +// SetNetworkGroupAssignments sets field value +func (o *NetworkGroupAssignmentsResponse) SetNetworkGroupAssignments(v []NetworkGroupAssignmentsItem) { + o.NetworkGroupAssignments = v +} + +// GetPagination returns the Pagination field value +func (o *NetworkGroupAssignmentsResponse) GetPagination() PaginationDetails { + if o == nil { + var ret PaginationDetails + return ret + } + + return o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value +// and a boolean to check if the value has been set. +func (o *NetworkGroupAssignmentsResponse) GetPaginationOk() (*PaginationDetails, bool) { + if o == nil { + return nil, false + } + return &o.Pagination, true +} + +// SetPagination sets field value +func (o *NetworkGroupAssignmentsResponse) SetPagination(v PaginationDetails) { + o.Pagination = v +} + +func (o NetworkGroupAssignmentsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkGroupAssignmentsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["network_group_assignments"] = o.NetworkGroupAssignments + toSerialize["pagination"] = o.Pagination + return toSerialize, nil +} + +func (o *NetworkGroupAssignmentsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "network_group_assignments", + "pagination", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNetworkGroupAssignmentsResponse := _NetworkGroupAssignmentsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varNetworkGroupAssignmentsResponse) + + if err != nil { + return err + } + + *o = NetworkGroupAssignmentsResponse(varNetworkGroupAssignmentsResponse) + + return err +} + +type NullableNetworkGroupAssignmentsResponse struct { + value *NetworkGroupAssignmentsResponse + isSet bool +} + +func (v NullableNetworkGroupAssignmentsResponse) Get() *NetworkGroupAssignmentsResponse { + return v.value +} + +func (v *NullableNetworkGroupAssignmentsResponse) Set(val *NetworkGroupAssignmentsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkGroupAssignmentsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkGroupAssignmentsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkGroupAssignmentsResponse(val *NetworkGroupAssignmentsResponse) *NullableNetworkGroupAssignmentsResponse { + return &NullableNetworkGroupAssignmentsResponse{value: val, isSet: true} +} + +func (v NullableNetworkGroupAssignmentsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkGroupAssignmentsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/config-api-client/model_pagination_details.go b/pkg/config-api-client/model_pagination_details.go index 9d7f3925..92ecf07a 100644 --- a/pkg/config-api-client/model_pagination_details.go +++ b/pkg/config-api-client/model_pagination_details.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ diff --git a/pkg/config-api-client/model_readiness_error_response.go b/pkg/config-api-client/model_readiness_error_response.go deleted file mode 100644 index 6062a58b..00000000 --- a/pkg/config-api-client/model_readiness_error_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Configuration Api - -Nice description goes here - -API version: 1.5.0 -Contact: support@capenetworks.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package config_api_client - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ReadinessErrorResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ReadinessErrorResponse{} - -// ReadinessErrorResponse struct for ReadinessErrorResponse -type ReadinessErrorResponse struct { - Data map[string]string `json:"data"` - Status string `json:"status"` -} - -type _ReadinessErrorResponse ReadinessErrorResponse - -// NewReadinessErrorResponse instantiates a new ReadinessErrorResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewReadinessErrorResponse(data map[string]string, status string) *ReadinessErrorResponse { - this := ReadinessErrorResponse{} - this.Data = data - this.Status = status - return &this -} - -// NewReadinessErrorResponseWithDefaults instantiates a new ReadinessErrorResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewReadinessErrorResponseWithDefaults() *ReadinessErrorResponse { - this := ReadinessErrorResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ReadinessErrorResponse) GetData() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ReadinessErrorResponse) GetDataOk() (*map[string]string, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ReadinessErrorResponse) SetData(v map[string]string) { - o.Data = v -} - -// GetStatus returns the Status field value -func (o *ReadinessErrorResponse) GetStatus() string { - if o == nil { - var ret string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *ReadinessErrorResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *ReadinessErrorResponse) SetStatus(v string) { - o.Status = v -} - -func (o ReadinessErrorResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ReadinessErrorResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["status"] = o.Status - return toSerialize, nil -} - -func (o *ReadinessErrorResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "status", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varReadinessErrorResponse := _ReadinessErrorResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varReadinessErrorResponse) - - if err != nil { - return err - } - - *o = ReadinessErrorResponse(varReadinessErrorResponse) - - return err -} - -type NullableReadinessErrorResponse struct { - value *ReadinessErrorResponse - isSet bool -} - -func (v NullableReadinessErrorResponse) Get() *ReadinessErrorResponse { - return v.value -} - -func (v *NullableReadinessErrorResponse) Set(val *ReadinessErrorResponse) { - v.value = val - v.isSet = true -} - -func (v NullableReadinessErrorResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableReadinessErrorResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReadinessErrorResponse(val *ReadinessErrorResponse) *NullableReadinessErrorResponse { - return &NullableReadinessErrorResponse{value: val, isSet: true} -} - -func (v NullableReadinessErrorResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableReadinessErrorResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/config-api-client/model_readiness_response.go b/pkg/config-api-client/model_readiness_response.go deleted file mode 100644 index 732fd4c8..00000000 --- a/pkg/config-api-client/model_readiness_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Configuration Api - -Nice description goes here - -API version: 1.5.0 -Contact: support@capenetworks.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package config_api_client - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ReadinessResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ReadinessResponse{} - -// ReadinessResponse struct for ReadinessResponse -type ReadinessResponse struct { - Data map[string]string `json:"data"` - Status string `json:"status"` -} - -type _ReadinessResponse ReadinessResponse - -// NewReadinessResponse instantiates a new ReadinessResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewReadinessResponse(data map[string]string, status string) *ReadinessResponse { - this := ReadinessResponse{} - this.Data = data - this.Status = status - return &this -} - -// NewReadinessResponseWithDefaults instantiates a new ReadinessResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewReadinessResponseWithDefaults() *ReadinessResponse { - this := ReadinessResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ReadinessResponse) GetData() map[string]string { - if o == nil { - var ret map[string]string - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ReadinessResponse) GetDataOk() (*map[string]string, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ReadinessResponse) SetData(v map[string]string) { - o.Data = v -} - -// GetStatus returns the Status field value -func (o *ReadinessResponse) GetStatus() string { - if o == nil { - var ret string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *ReadinessResponse) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *ReadinessResponse) SetStatus(v string) { - o.Status = v -} - -func (o ReadinessResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ReadinessResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["status"] = o.Status - return toSerialize, nil -} - -func (o *ReadinessResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "status", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varReadinessResponse := _ReadinessResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varReadinessResponse) - - if err != nil { - return err - } - - *o = ReadinessResponse(varReadinessResponse) - - return err -} - -type NullableReadinessResponse struct { - value *ReadinessResponse - isSet bool -} - -func (v NullableReadinessResponse) Get() *ReadinessResponse { - return v.value -} - -func (v *NullableReadinessResponse) Set(val *ReadinessResponse) { - v.value = val - v.isSet = true -} - -func (v NullableReadinessResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableReadinessResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReadinessResponse(val *ReadinessResponse) *NullableReadinessResponse { - return &NullableReadinessResponse{value: val, isSet: true} -} - -func (v NullableReadinessResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableReadinessResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/config-api-client/model_sensor_group_assignment.go b/pkg/config-api-client/model_sensor_group_assignments_item.go similarity index 56% rename from pkg/config-api-client/model_sensor_group_assignment.go rename to pkg/config-api-client/model_sensor_group_assignments_item.go index 1be2e7cf..abcf98e1 100644 --- a/pkg/config-api-client/model_sensor_group_assignment.go +++ b/pkg/config-api-client/model_sensor_group_assignments_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -17,40 +17,40 @@ import ( "fmt" ) -// checks if the SensorGroupAssignment type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SensorGroupAssignment{} +// checks if the SensorGroupAssignmentsItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SensorGroupAssignmentsItem{} -// SensorGroupAssignment struct for SensorGroupAssignment -type SensorGroupAssignment struct { +// SensorGroupAssignmentsItem struct for SensorGroupAssignmentsItem +type SensorGroupAssignmentsItem struct { Uid string `json:"uid"` GroupUid string `json:"group_uid"` SensorUid string `json:"sensor_uid"` } -type _SensorGroupAssignment SensorGroupAssignment +type _SensorGroupAssignmentsItem SensorGroupAssignmentsItem -// NewSensorGroupAssignment instantiates a new SensorGroupAssignment object +// NewSensorGroupAssignmentsItem instantiates a new SensorGroupAssignmentsItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSensorGroupAssignment(uid string, groupUid string, sensorUid string) *SensorGroupAssignment { - this := SensorGroupAssignment{} +func NewSensorGroupAssignmentsItem(uid string, groupUid string, sensorUid string) *SensorGroupAssignmentsItem { + this := SensorGroupAssignmentsItem{} this.Uid = uid this.GroupUid = groupUid this.SensorUid = sensorUid return &this } -// NewSensorGroupAssignmentWithDefaults instantiates a new SensorGroupAssignment object +// NewSensorGroupAssignmentsItemWithDefaults instantiates a new SensorGroupAssignmentsItem object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewSensorGroupAssignmentWithDefaults() *SensorGroupAssignment { - this := SensorGroupAssignment{} +func NewSensorGroupAssignmentsItemWithDefaults() *SensorGroupAssignmentsItem { + this := SensorGroupAssignmentsItem{} return &this } // GetUid returns the Uid field value -func (o *SensorGroupAssignment) GetUid() string { +func (o *SensorGroupAssignmentsItem) GetUid() string { if o == nil { var ret string return ret @@ -61,7 +61,7 @@ func (o *SensorGroupAssignment) GetUid() string { // GetUidOk returns a tuple with the Uid field value // and a boolean to check if the value has been set. -func (o *SensorGroupAssignment) GetUidOk() (*string, bool) { +func (o *SensorGroupAssignmentsItem) GetUidOk() (*string, bool) { if o == nil { return nil, false } @@ -69,12 +69,12 @@ func (o *SensorGroupAssignment) GetUidOk() (*string, bool) { } // SetUid sets field value -func (o *SensorGroupAssignment) SetUid(v string) { +func (o *SensorGroupAssignmentsItem) SetUid(v string) { o.Uid = v } // GetGroupUid returns the GroupUid field value -func (o *SensorGroupAssignment) GetGroupUid() string { +func (o *SensorGroupAssignmentsItem) GetGroupUid() string { if o == nil { var ret string return ret @@ -85,7 +85,7 @@ func (o *SensorGroupAssignment) GetGroupUid() string { // GetGroupUidOk returns a tuple with the GroupUid field value // and a boolean to check if the value has been set. -func (o *SensorGroupAssignment) GetGroupUidOk() (*string, bool) { +func (o *SensorGroupAssignmentsItem) GetGroupUidOk() (*string, bool) { if o == nil { return nil, false } @@ -93,12 +93,12 @@ func (o *SensorGroupAssignment) GetGroupUidOk() (*string, bool) { } // SetGroupUid sets field value -func (o *SensorGroupAssignment) SetGroupUid(v string) { +func (o *SensorGroupAssignmentsItem) SetGroupUid(v string) { o.GroupUid = v } // GetSensorUid returns the SensorUid field value -func (o *SensorGroupAssignment) GetSensorUid() string { +func (o *SensorGroupAssignmentsItem) GetSensorUid() string { if o == nil { var ret string return ret @@ -109,7 +109,7 @@ func (o *SensorGroupAssignment) GetSensorUid() string { // GetSensorUidOk returns a tuple with the SensorUid field value // and a boolean to check if the value has been set. -func (o *SensorGroupAssignment) GetSensorUidOk() (*string, bool) { +func (o *SensorGroupAssignmentsItem) GetSensorUidOk() (*string, bool) { if o == nil { return nil, false } @@ -117,11 +117,11 @@ func (o *SensorGroupAssignment) GetSensorUidOk() (*string, bool) { } // SetSensorUid sets field value -func (o *SensorGroupAssignment) SetSensorUid(v string) { +func (o *SensorGroupAssignmentsItem) SetSensorUid(v string) { o.SensorUid = v } -func (o SensorGroupAssignment) MarshalJSON() ([]byte, error) { +func (o SensorGroupAssignmentsItem) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -129,7 +129,7 @@ func (o SensorGroupAssignment) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o SensorGroupAssignment) ToMap() (map[string]interface{}, error) { +func (o SensorGroupAssignmentsItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["uid"] = o.Uid toSerialize["group_uid"] = o.GroupUid @@ -137,7 +137,7 @@ func (o SensorGroupAssignment) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *SensorGroupAssignment) UnmarshalJSON(data []byte) (err error) { +func (o *SensorGroupAssignmentsItem) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -161,53 +161,53 @@ func (o *SensorGroupAssignment) UnmarshalJSON(data []byte) (err error) { } } - varSensorGroupAssignment := _SensorGroupAssignment{} + varSensorGroupAssignmentsItem := _SensorGroupAssignmentsItem{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varSensorGroupAssignment) + err = decoder.Decode(&varSensorGroupAssignmentsItem) if err != nil { return err } - *o = SensorGroupAssignment(varSensorGroupAssignment) + *o = SensorGroupAssignmentsItem(varSensorGroupAssignmentsItem) return err } -type NullableSensorGroupAssignment struct { - value *SensorGroupAssignment +type NullableSensorGroupAssignmentsItem struct { + value *SensorGroupAssignmentsItem isSet bool } -func (v NullableSensorGroupAssignment) Get() *SensorGroupAssignment { +func (v NullableSensorGroupAssignmentsItem) Get() *SensorGroupAssignmentsItem { return v.value } -func (v *NullableSensorGroupAssignment) Set(val *SensorGroupAssignment) { +func (v *NullableSensorGroupAssignmentsItem) Set(val *SensorGroupAssignmentsItem) { v.value = val v.isSet = true } -func (v NullableSensorGroupAssignment) IsSet() bool { +func (v NullableSensorGroupAssignmentsItem) IsSet() bool { return v.isSet } -func (v *NullableSensorGroupAssignment) Unset() { +func (v *NullableSensorGroupAssignmentsItem) Unset() { v.value = nil v.isSet = false } -func NewNullableSensorGroupAssignment(val *SensorGroupAssignment) *NullableSensorGroupAssignment { - return &NullableSensorGroupAssignment{value: val, isSet: true} +func NewNullableSensorGroupAssignmentsItem(val *SensorGroupAssignmentsItem) *NullableSensorGroupAssignmentsItem { + return &NullableSensorGroupAssignmentsItem{value: val, isSet: true} } -func (v NullableSensorGroupAssignment) MarshalJSON() ([]byte, error) { +func (v NullableSensorGroupAssignmentsItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableSensorGroupAssignment) UnmarshalJSON(src []byte) error { +func (v *NullableSensorGroupAssignmentsItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } 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 53d60aca..f2620180 100644 --- a/pkg/config-api-client/model_sensor_group_assignments_response.go +++ b/pkg/config-api-client/model_sensor_group_assignments_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -22,8 +22,8 @@ var _ MappedNullable = &SensorGroupAssignmentsResponse{} // SensorGroupAssignmentsResponse struct for SensorGroupAssignmentsResponse type SensorGroupAssignmentsResponse struct { - SensorGroupAssignments []SensorGroupAssignment `json:"sensor_group_assignments"` - Pagination PaginationDetails `json:"pagination"` + SensorGroupAssignments []SensorGroupAssignmentsItem `json:"sensor_group_assignments"` + Pagination PaginationDetails `json:"pagination"` } type _SensorGroupAssignmentsResponse SensorGroupAssignmentsResponse @@ -32,7 +32,7 @@ type _SensorGroupAssignmentsResponse SensorGroupAssignmentsResponse // 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 NewSensorGroupAssignmentsResponse(sensorGroupAssignments []SensorGroupAssignment, pagination PaginationDetails) *SensorGroupAssignmentsResponse { +func NewSensorGroupAssignmentsResponse(sensorGroupAssignments []SensorGroupAssignmentsItem, pagination PaginationDetails) *SensorGroupAssignmentsResponse { this := SensorGroupAssignmentsResponse{} this.SensorGroupAssignments = sensorGroupAssignments this.Pagination = pagination @@ -48,9 +48,9 @@ func NewSensorGroupAssignmentsResponseWithDefaults() *SensorGroupAssignmentsResp } // GetSensorGroupAssignments returns the SensorGroupAssignments field value -func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignments() []SensorGroupAssignment { +func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignments() []SensorGroupAssignmentsItem { if o == nil { - var ret []SensorGroupAssignment + var ret []SensorGroupAssignmentsItem return ret } @@ -59,7 +59,7 @@ func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignments() []SensorGro // GetSensorGroupAssignmentsOk returns a tuple with the SensorGroupAssignments field value // and a boolean to check if the value has been set. -func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignmentsOk() ([]SensorGroupAssignment, bool) { +func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignmentsOk() ([]SensorGroupAssignmentsItem, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *SensorGroupAssignmentsResponse) GetSensorGroupAssignmentsOk() ([]Sensor } // SetSensorGroupAssignments sets field value -func (o *SensorGroupAssignmentsResponse) SetSensorGroupAssignments(v []SensorGroupAssignment) { +func (o *SensorGroupAssignmentsResponse) SetSensorGroupAssignments(v []SensorGroupAssignmentsItem) { o.SensorGroupAssignments = v } diff --git a/pkg/config-api-client/model_status_response.go b/pkg/config-api-client/model_status_response.go deleted file mode 100644 index 6e594632..00000000 --- a/pkg/config-api-client/model_status_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Configuration Api - -Nice description goes here - -API version: 1.5.0 -Contact: support@capenetworks.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package config_api_client - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the StatusResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StatusResponse{} - -// StatusResponse struct for StatusResponse -type StatusResponse struct { - Name string `json:"name"` - Version string `json:"version"` -} - -type _StatusResponse StatusResponse - -// NewStatusResponse instantiates a new StatusResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewStatusResponse(name string, version string) *StatusResponse { - this := StatusResponse{} - this.Name = name - this.Version = version - return &this -} - -// NewStatusResponseWithDefaults instantiates a new StatusResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewStatusResponseWithDefaults() *StatusResponse { - this := StatusResponse{} - return &this -} - -// GetName returns the Name field value -func (o *StatusResponse) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *StatusResponse) SetName(v string) { - o.Name = v -} - -// GetVersion returns the Version field value -func (o *StatusResponse) GetVersion() string { - if o == nil { - var ret string - return ret - } - - return o.Version -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -func (o *StatusResponse) GetVersionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Version, true -} - -// SetVersion sets field value -func (o *StatusResponse) SetVersion(v string) { - o.Version = v -} - -func (o StatusResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o StatusResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - toSerialize["version"] = o.Version - return toSerialize, nil -} - -func (o *StatusResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - "version", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varStatusResponse := _StatusResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varStatusResponse) - - if err != nil { - return err - } - - *o = StatusResponse(varStatusResponse) - - return err -} - -type NullableStatusResponse struct { - value *StatusResponse - isSet bool -} - -func (v NullableStatusResponse) Get() *StatusResponse { - return v.value -} - -func (v *NullableStatusResponse) Set(val *StatusResponse) { - v.value = val - v.isSet = true -} - -func (v NullableStatusResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableStatusResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStatusResponse(val *StatusResponse) *NullableStatusResponse { - return &NullableStatusResponse{value: val, isSet: true} -} - -func (v NullableStatusResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStatusResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/pkg/config-api-client/model_wired_network.go b/pkg/config-api-client/model_wired_networks_item.go similarity index 58% rename from pkg/config-api-client/model_wired_network.go rename to pkg/config-api-client/model_wired_networks_item.go index 1469ebd3..ae23eb0f 100644 --- a/pkg/config-api-client/model_wired_network.go +++ b/pkg/config-api-client/model_wired_networks_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -18,18 +18,16 @@ import ( "time" ) -// checks if the WiredNetwork type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WiredNetwork{} +// checks if the WiredNetworksItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WiredNetworksItem{} -// WiredNetwork struct for WiredNetwork -type WiredNetwork struct { +// WiredNetworksItem struct for WiredNetworksItem +type WiredNetworksItem struct { Uid string `json:"uid"` Alias string `json:"alias"` IpVersion string `json:"ip_version"` - SensorCount int32 `json:"sensor_count"` - UpdatedAt time.Time `json:"updated_at"` - CreatedAt time.Time `json:"created_at"` - Disabled bool `json:"disabled"` + DatetimeUpdated time.Time `json:"datetime_updated"` + DatetimeCreated time.Time `json:"datetime_created"` Security NullableString `json:"security"` DnsLookupDomain NullableString `json:"dns_lookup_domain"` DisableEdns bool `json:"disable_edns"` @@ -38,21 +36,19 @@ type WiredNetwork struct { VlanId NullableInt32 `json:"vlan_id"` } -type _WiredNetwork WiredNetwork +type _WiredNetworksItem WiredNetworksItem -// NewWiredNetwork instantiates a new WiredNetwork object +// NewWiredNetworksItem instantiates a new WiredNetworksItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWiredNetwork(uid string, alias string, ipVersion string, sensorCount int32, updatedAt time.Time, createdAt time.Time, disabled bool, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vlanId NullableInt32) *WiredNetwork { - this := WiredNetwork{} +func NewWiredNetworksItem(uid string, alias string, ipVersion string, datetimeUpdated time.Time, datetimeCreated time.Time, security NullableString, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool, vlanId NullableInt32) *WiredNetworksItem { + this := WiredNetworksItem{} this.Uid = uid this.Alias = alias this.IpVersion = ipVersion - this.SensorCount = sensorCount - this.UpdatedAt = updatedAt - this.CreatedAt = createdAt - this.Disabled = disabled + this.DatetimeUpdated = datetimeUpdated + this.DatetimeCreated = datetimeCreated this.Security = security this.DnsLookupDomain = dnsLookupDomain this.DisableEdns = disableEdns @@ -62,16 +58,16 @@ func NewWiredNetwork(uid string, alias string, ipVersion string, sensorCount int return &this } -// NewWiredNetworkWithDefaults instantiates a new WiredNetwork object +// NewWiredNetworksItemWithDefaults instantiates a new WiredNetworksItem object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewWiredNetworkWithDefaults() *WiredNetwork { - this := WiredNetwork{} +func NewWiredNetworksItemWithDefaults() *WiredNetworksItem { + this := WiredNetworksItem{} return &this } // GetUid returns the Uid field value -func (o *WiredNetwork) GetUid() string { +func (o *WiredNetworksItem) GetUid() string { if o == nil { var ret string return ret @@ -82,7 +78,7 @@ func (o *WiredNetwork) GetUid() string { // GetUidOk returns a tuple with the Uid field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetUidOk() (*string, bool) { +func (o *WiredNetworksItem) GetUidOk() (*string, bool) { if o == nil { return nil, false } @@ -90,12 +86,12 @@ func (o *WiredNetwork) GetUidOk() (*string, bool) { } // SetUid sets field value -func (o *WiredNetwork) SetUid(v string) { +func (o *WiredNetworksItem) SetUid(v string) { o.Uid = v } // GetAlias returns the Alias field value -func (o *WiredNetwork) GetAlias() string { +func (o *WiredNetworksItem) GetAlias() string { if o == nil { var ret string return ret @@ -106,7 +102,7 @@ func (o *WiredNetwork) GetAlias() string { // GetAliasOk returns a tuple with the Alias field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetAliasOk() (*string, bool) { +func (o *WiredNetworksItem) GetAliasOk() (*string, bool) { if o == nil { return nil, false } @@ -114,12 +110,12 @@ func (o *WiredNetwork) GetAliasOk() (*string, bool) { } // SetAlias sets field value -func (o *WiredNetwork) SetAlias(v string) { +func (o *WiredNetworksItem) SetAlias(v string) { o.Alias = v } // GetIpVersion returns the IpVersion field value -func (o *WiredNetwork) GetIpVersion() string { +func (o *WiredNetworksItem) GetIpVersion() string { if o == nil { var ret string return ret @@ -130,7 +126,7 @@ func (o *WiredNetwork) GetIpVersion() string { // GetIpVersionOk returns a tuple with the IpVersion field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetIpVersionOk() (*string, bool) { +func (o *WiredNetworksItem) GetIpVersionOk() (*string, bool) { if o == nil { return nil, false } @@ -138,109 +134,61 @@ func (o *WiredNetwork) GetIpVersionOk() (*string, bool) { } // SetIpVersion sets field value -func (o *WiredNetwork) SetIpVersion(v string) { +func (o *WiredNetworksItem) SetIpVersion(v string) { o.IpVersion = v } -// GetSensorCount returns the SensorCount field value -func (o *WiredNetwork) GetSensorCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.SensorCount -} - -// GetSensorCountOk returns a tuple with the SensorCount field value -// and a boolean to check if the value has been set. -func (o *WiredNetwork) GetSensorCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.SensorCount, true -} - -// SetSensorCount sets field value -func (o *WiredNetwork) SetSensorCount(v int32) { - o.SensorCount = v -} - -// GetUpdatedAt returns the UpdatedAt field value -func (o *WiredNetwork) GetUpdatedAt() time.Time { +// GetDatetimeUpdated returns the DatetimeUpdated field value +func (o *WiredNetworksItem) GetDatetimeUpdated() time.Time { if o == nil { var ret time.Time return ret } - return o.UpdatedAt + return o.DatetimeUpdated } -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// GetDatetimeUpdatedOk returns a tuple with the DatetimeUpdated field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetUpdatedAtOk() (*time.Time, bool) { +func (o *WiredNetworksItem) GetDatetimeUpdatedOk() (*time.Time, bool) { if o == nil { return nil, false } - return &o.UpdatedAt, true + return &o.DatetimeUpdated, true } -// SetUpdatedAt sets field value -func (o *WiredNetwork) SetUpdatedAt(v time.Time) { - o.UpdatedAt = v +// SetDatetimeUpdated sets field value +func (o *WiredNetworksItem) SetDatetimeUpdated(v time.Time) { + o.DatetimeUpdated = v } -// GetCreatedAt returns the CreatedAt field value -func (o *WiredNetwork) GetCreatedAt() time.Time { +// GetDatetimeCreated returns the DatetimeCreated field value +func (o *WiredNetworksItem) GetDatetimeCreated() time.Time { if o == nil { var ret time.Time return ret } - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *WiredNetwork) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *WiredNetwork) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -// GetDisabled returns the Disabled field value -func (o *WiredNetwork) GetDisabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.Disabled + return o.DatetimeCreated } -// GetDisabledOk returns a tuple with the Disabled field value +// GetDatetimeCreatedOk returns a tuple with the DatetimeCreated field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetDisabledOk() (*bool, bool) { +func (o *WiredNetworksItem) GetDatetimeCreatedOk() (*time.Time, bool) { if o == nil { return nil, false } - return &o.Disabled, true + return &o.DatetimeCreated, true } -// SetDisabled sets field value -func (o *WiredNetwork) SetDisabled(v bool) { - o.Disabled = v +// SetDatetimeCreated sets field value +func (o *WiredNetworksItem) SetDatetimeCreated(v time.Time) { + o.DatetimeCreated = v } // GetSecurity returns the Security field value // If the value is explicit nil, the zero value for string will be returned -func (o *WiredNetwork) GetSecurity() string { +func (o *WiredNetworksItem) GetSecurity() string { if o == nil || o.Security.Get() == nil { var ret string return ret @@ -252,7 +200,7 @@ func (o *WiredNetwork) GetSecurity() string { // GetSecurityOk returns a tuple with the Security field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WiredNetwork) GetSecurityOk() (*string, bool) { +func (o *WiredNetworksItem) GetSecurityOk() (*string, bool) { if o == nil { return nil, false } @@ -260,13 +208,13 @@ func (o *WiredNetwork) GetSecurityOk() (*string, bool) { } // SetSecurity sets field value -func (o *WiredNetwork) SetSecurity(v string) { +func (o *WiredNetworksItem) SetSecurity(v string) { o.Security.Set(&v) } // GetDnsLookupDomain returns the DnsLookupDomain field value // If the value is explicit nil, the zero value for string will be returned -func (o *WiredNetwork) GetDnsLookupDomain() string { +func (o *WiredNetworksItem) GetDnsLookupDomain() string { if o == nil || o.DnsLookupDomain.Get() == nil { var ret string return ret @@ -278,7 +226,7 @@ func (o *WiredNetwork) GetDnsLookupDomain() string { // GetDnsLookupDomainOk returns a tuple with the DnsLookupDomain field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WiredNetwork) GetDnsLookupDomainOk() (*string, bool) { +func (o *WiredNetworksItem) GetDnsLookupDomainOk() (*string, bool) { if o == nil { return nil, false } @@ -286,12 +234,12 @@ func (o *WiredNetwork) GetDnsLookupDomainOk() (*string, bool) { } // SetDnsLookupDomain sets field value -func (o *WiredNetwork) SetDnsLookupDomain(v string) { +func (o *WiredNetworksItem) SetDnsLookupDomain(v string) { o.DnsLookupDomain.Set(&v) } // GetDisableEdns returns the DisableEdns field value -func (o *WiredNetwork) GetDisableEdns() bool { +func (o *WiredNetworksItem) GetDisableEdns() bool { if o == nil { var ret bool return ret @@ -302,7 +250,7 @@ func (o *WiredNetwork) GetDisableEdns() bool { // GetDisableEdnsOk returns a tuple with the DisableEdns field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetDisableEdnsOk() (*bool, bool) { +func (o *WiredNetworksItem) GetDisableEdnsOk() (*bool, bool) { if o == nil { return nil, false } @@ -310,12 +258,12 @@ func (o *WiredNetwork) GetDisableEdnsOk() (*bool, bool) { } // SetDisableEdns sets field value -func (o *WiredNetwork) SetDisableEdns(v bool) { +func (o *WiredNetworksItem) SetDisableEdns(v bool) { o.DisableEdns = v } // GetUseDns64 returns the UseDns64 field value -func (o *WiredNetwork) GetUseDns64() bool { +func (o *WiredNetworksItem) GetUseDns64() bool { if o == nil { var ret bool return ret @@ -326,7 +274,7 @@ func (o *WiredNetwork) GetUseDns64() bool { // GetUseDns64Ok returns a tuple with the UseDns64 field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetUseDns64Ok() (*bool, bool) { +func (o *WiredNetworksItem) GetUseDns64Ok() (*bool, bool) { if o == nil { return nil, false } @@ -334,12 +282,12 @@ func (o *WiredNetwork) GetUseDns64Ok() (*bool, bool) { } // SetUseDns64 sets field value -func (o *WiredNetwork) SetUseDns64(v bool) { +func (o *WiredNetworksItem) SetUseDns64(v bool) { o.UseDns64 = v } // GetExternalConnectivity returns the ExternalConnectivity field value -func (o *WiredNetwork) GetExternalConnectivity() bool { +func (o *WiredNetworksItem) GetExternalConnectivity() bool { if o == nil { var ret bool return ret @@ -350,7 +298,7 @@ func (o *WiredNetwork) GetExternalConnectivity() bool { // GetExternalConnectivityOk returns a tuple with the ExternalConnectivity field value // and a boolean to check if the value has been set. -func (o *WiredNetwork) GetExternalConnectivityOk() (*bool, bool) { +func (o *WiredNetworksItem) GetExternalConnectivityOk() (*bool, bool) { if o == nil { return nil, false } @@ -358,13 +306,13 @@ func (o *WiredNetwork) GetExternalConnectivityOk() (*bool, bool) { } // SetExternalConnectivity sets field value -func (o *WiredNetwork) SetExternalConnectivity(v bool) { +func (o *WiredNetworksItem) SetExternalConnectivity(v bool) { o.ExternalConnectivity = v } // GetVlanId returns the VlanId field value // If the value is explicit nil, the zero value for int32 will be returned -func (o *WiredNetwork) GetVlanId() int32 { +func (o *WiredNetworksItem) GetVlanId() int32 { if o == nil || o.VlanId.Get() == nil { var ret int32 return ret @@ -376,7 +324,7 @@ func (o *WiredNetwork) GetVlanId() int32 { // GetVlanIdOk returns a tuple with the VlanId field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WiredNetwork) GetVlanIdOk() (*int32, bool) { +func (o *WiredNetworksItem) GetVlanIdOk() (*int32, bool) { if o == nil { return nil, false } @@ -384,11 +332,11 @@ func (o *WiredNetwork) GetVlanIdOk() (*int32, bool) { } // SetVlanId sets field value -func (o *WiredNetwork) SetVlanId(v int32) { +func (o *WiredNetworksItem) SetVlanId(v int32) { o.VlanId.Set(&v) } -func (o WiredNetwork) MarshalJSON() ([]byte, error) { +func (o WiredNetworksItem) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -396,15 +344,13 @@ func (o WiredNetwork) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o WiredNetwork) ToMap() (map[string]interface{}, error) { +func (o WiredNetworksItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["uid"] = o.Uid toSerialize["alias"] = o.Alias toSerialize["ip_version"] = o.IpVersion - toSerialize["sensor_count"] = o.SensorCount - toSerialize["updated_at"] = o.UpdatedAt - toSerialize["created_at"] = o.CreatedAt - toSerialize["disabled"] = o.Disabled + toSerialize["datetime_updated"] = o.DatetimeUpdated + toSerialize["datetime_created"] = o.DatetimeCreated toSerialize["security"] = o.Security.Get() toSerialize["dns_lookup_domain"] = o.DnsLookupDomain.Get() toSerialize["disable_edns"] = o.DisableEdns @@ -414,7 +360,7 @@ func (o WiredNetwork) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WiredNetwork) UnmarshalJSON(data []byte) (err error) { +func (o *WiredNetworksItem) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -422,10 +368,8 @@ func (o *WiredNetwork) UnmarshalJSON(data []byte) (err error) { "uid", "alias", "ip_version", - "sensor_count", - "updated_at", - "created_at", - "disabled", + "datetime_updated", + "datetime_created", "security", "dns_lookup_domain", "disable_edns", @@ -448,53 +392,53 @@ func (o *WiredNetwork) UnmarshalJSON(data []byte) (err error) { } } - varWiredNetwork := _WiredNetwork{} + varWiredNetworksItem := _WiredNetworksItem{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varWiredNetwork) + err = decoder.Decode(&varWiredNetworksItem) if err != nil { return err } - *o = WiredNetwork(varWiredNetwork) + *o = WiredNetworksItem(varWiredNetworksItem) return err } -type NullableWiredNetwork struct { - value *WiredNetwork +type NullableWiredNetworksItem struct { + value *WiredNetworksItem isSet bool } -func (v NullableWiredNetwork) Get() *WiredNetwork { +func (v NullableWiredNetworksItem) Get() *WiredNetworksItem { return v.value } -func (v *NullableWiredNetwork) Set(val *WiredNetwork) { +func (v *NullableWiredNetworksItem) Set(val *WiredNetworksItem) { v.value = val v.isSet = true } -func (v NullableWiredNetwork) IsSet() bool { +func (v NullableWiredNetworksItem) IsSet() bool { return v.isSet } -func (v *NullableWiredNetwork) Unset() { +func (v *NullableWiredNetworksItem) Unset() { v.value = nil v.isSet = false } -func NewNullableWiredNetwork(val *WiredNetwork) *NullableWiredNetwork { - return &NullableWiredNetwork{value: val, isSet: true} +func NewNullableWiredNetworksItem(val *WiredNetworksItem) *NullableWiredNetworksItem { + return &NullableWiredNetworksItem{value: val, isSet: true} } -func (v NullableWiredNetwork) MarshalJSON() ([]byte, error) { +func (v NullableWiredNetworksItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWiredNetwork) UnmarshalJSON(src []byte) error { +func (v *NullableWiredNetworksItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/config-api-client/model_wired_networks_response.go b/pkg/config-api-client/model_wired_networks_response.go index 4acbe35f..bf1f3796 100644 --- a/pkg/config-api-client/model_wired_networks_response.go +++ b/pkg/config-api-client/model_wired_networks_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -22,8 +22,8 @@ var _ MappedNullable = &WiredNetworksResponse{} // WiredNetworksResponse struct for WiredNetworksResponse type WiredNetworksResponse struct { - WiredNetworks []WiredNetwork `json:"wired_networks"` - Pagination PaginationDetails `json:"pagination"` + WiredNetworks []WiredNetworksItem `json:"wired_networks"` + Pagination PaginationDetails `json:"pagination"` } type _WiredNetworksResponse WiredNetworksResponse @@ -32,7 +32,7 @@ type _WiredNetworksResponse WiredNetworksResponse // 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 NewWiredNetworksResponse(wiredNetworks []WiredNetwork, pagination PaginationDetails) *WiredNetworksResponse { +func NewWiredNetworksResponse(wiredNetworks []WiredNetworksItem, pagination PaginationDetails) *WiredNetworksResponse { this := WiredNetworksResponse{} this.WiredNetworks = wiredNetworks this.Pagination = pagination @@ -48,9 +48,9 @@ func NewWiredNetworksResponseWithDefaults() *WiredNetworksResponse { } // GetWiredNetworks returns the WiredNetworks field value -func (o *WiredNetworksResponse) GetWiredNetworks() []WiredNetwork { +func (o *WiredNetworksResponse) GetWiredNetworks() []WiredNetworksItem { if o == nil { - var ret []WiredNetwork + var ret []WiredNetworksItem return ret } @@ -59,7 +59,7 @@ func (o *WiredNetworksResponse) GetWiredNetworks() []WiredNetwork { // GetWiredNetworksOk returns a tuple with the WiredNetworks field value // and a boolean to check if the value has been set. -func (o *WiredNetworksResponse) GetWiredNetworksOk() ([]WiredNetwork, bool) { +func (o *WiredNetworksResponse) GetWiredNetworksOk() ([]WiredNetworksItem, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *WiredNetworksResponse) GetWiredNetworksOk() ([]WiredNetwork, bool) { } // SetWiredNetworks sets field value -func (o *WiredNetworksResponse) SetWiredNetworks(v []WiredNetwork) { +func (o *WiredNetworksResponse) SetWiredNetworks(v []WiredNetworksItem) { o.WiredNetworks = v } diff --git a/pkg/config-api-client/model_wireless_network.go b/pkg/config-api-client/model_wireless_networks_item.go similarity index 58% rename from pkg/config-api-client/model_wireless_network.go rename to pkg/config-api-client/model_wireless_networks_item.go index 2f4e6915..5d969455 100644 --- a/pkg/config-api-client/model_wireless_network.go +++ b/pkg/config-api-client/model_wireless_networks_item.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -18,20 +18,18 @@ import ( "time" ) -// checks if the WirelessNetwork type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WirelessNetwork{} +// checks if the WirelessNetworksItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WirelessNetworksItem{} -// WirelessNetwork struct for WirelessNetwork -type WirelessNetwork struct { +// WirelessNetworksItem struct for WirelessNetworksItem +type WirelessNetworksItem struct { Uid string `json:"uid"` Alias string `json:"alias"` Ssid string `json:"ssid"` Security NullableString `json:"security"` IpVersion string `json:"ip_version"` - SensorCount int32 `json:"sensor_count"` - UpdatedAt time.Time `json:"updated_at"` - CreatedAt time.Time `json:"created_at"` - Disabled bool `json:"disabled"` + DatetimeCreated time.Time `json:"datetime_created"` + DatetimeUpdated time.Time `json:"datetime_updated"` Hidden bool `json:"hidden"` BandLocking string `json:"band_locking"` DnsLookupDomain NullableString `json:"dns_lookup_domain"` @@ -40,23 +38,21 @@ type WirelessNetwork struct { ExternalConnectivity bool `json:"external_connectivity"` } -type _WirelessNetwork WirelessNetwork +type _WirelessNetworksItem WirelessNetworksItem -// NewWirelessNetwork instantiates a new WirelessNetwork object +// NewWirelessNetworksItem instantiates a new WirelessNetworksItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWirelessNetwork(uid string, alias string, ssid string, security NullableString, ipVersion string, sensorCount int32, updatedAt time.Time, createdAt time.Time, disabled bool, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool) *WirelessNetwork { - this := WirelessNetwork{} +func NewWirelessNetworksItem(uid string, alias string, ssid string, security NullableString, ipVersion string, datetimeCreated time.Time, datetimeUpdated time.Time, hidden bool, bandLocking string, dnsLookupDomain NullableString, disableEdns bool, useDns64 bool, externalConnectivity bool) *WirelessNetworksItem { + this := WirelessNetworksItem{} this.Uid = uid this.Alias = alias this.Ssid = ssid this.Security = security this.IpVersion = ipVersion - this.SensorCount = sensorCount - this.UpdatedAt = updatedAt - this.CreatedAt = createdAt - this.Disabled = disabled + this.DatetimeCreated = datetimeCreated + this.DatetimeUpdated = datetimeUpdated this.Hidden = hidden this.BandLocking = bandLocking this.DnsLookupDomain = dnsLookupDomain @@ -66,16 +62,16 @@ func NewWirelessNetwork(uid string, alias string, ssid string, security Nullable return &this } -// NewWirelessNetworkWithDefaults instantiates a new WirelessNetwork object +// NewWirelessNetworksItemWithDefaults instantiates a new WirelessNetworksItem object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewWirelessNetworkWithDefaults() *WirelessNetwork { - this := WirelessNetwork{} +func NewWirelessNetworksItemWithDefaults() *WirelessNetworksItem { + this := WirelessNetworksItem{} return &this } // GetUid returns the Uid field value -func (o *WirelessNetwork) GetUid() string { +func (o *WirelessNetworksItem) GetUid() string { if o == nil { var ret string return ret @@ -86,7 +82,7 @@ func (o *WirelessNetwork) GetUid() string { // GetUidOk returns a tuple with the Uid field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetUidOk() (*string, bool) { +func (o *WirelessNetworksItem) GetUidOk() (*string, bool) { if o == nil { return nil, false } @@ -94,12 +90,12 @@ func (o *WirelessNetwork) GetUidOk() (*string, bool) { } // SetUid sets field value -func (o *WirelessNetwork) SetUid(v string) { +func (o *WirelessNetworksItem) SetUid(v string) { o.Uid = v } // GetAlias returns the Alias field value -func (o *WirelessNetwork) GetAlias() string { +func (o *WirelessNetworksItem) GetAlias() string { if o == nil { var ret string return ret @@ -110,7 +106,7 @@ func (o *WirelessNetwork) GetAlias() string { // GetAliasOk returns a tuple with the Alias field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetAliasOk() (*string, bool) { +func (o *WirelessNetworksItem) GetAliasOk() (*string, bool) { if o == nil { return nil, false } @@ -118,12 +114,12 @@ func (o *WirelessNetwork) GetAliasOk() (*string, bool) { } // SetAlias sets field value -func (o *WirelessNetwork) SetAlias(v string) { +func (o *WirelessNetworksItem) SetAlias(v string) { o.Alias = v } // GetSsid returns the Ssid field value -func (o *WirelessNetwork) GetSsid() string { +func (o *WirelessNetworksItem) GetSsid() string { if o == nil { var ret string return ret @@ -134,7 +130,7 @@ func (o *WirelessNetwork) GetSsid() string { // GetSsidOk returns a tuple with the Ssid field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetSsidOk() (*string, bool) { +func (o *WirelessNetworksItem) GetSsidOk() (*string, bool) { if o == nil { return nil, false } @@ -142,13 +138,13 @@ func (o *WirelessNetwork) GetSsidOk() (*string, bool) { } // SetSsid sets field value -func (o *WirelessNetwork) SetSsid(v string) { +func (o *WirelessNetworksItem) SetSsid(v string) { o.Ssid = v } // GetSecurity returns the Security field value // If the value is explicit nil, the zero value for string will be returned -func (o *WirelessNetwork) GetSecurity() string { +func (o *WirelessNetworksItem) GetSecurity() string { if o == nil || o.Security.Get() == nil { var ret string return ret @@ -160,7 +156,7 @@ func (o *WirelessNetwork) GetSecurity() string { // GetSecurityOk returns a tuple with the Security field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessNetwork) GetSecurityOk() (*string, bool) { +func (o *WirelessNetworksItem) GetSecurityOk() (*string, bool) { if o == nil { return nil, false } @@ -168,12 +164,12 @@ func (o *WirelessNetwork) GetSecurityOk() (*string, bool) { } // SetSecurity sets field value -func (o *WirelessNetwork) SetSecurity(v string) { +func (o *WirelessNetworksItem) SetSecurity(v string) { o.Security.Set(&v) } // GetIpVersion returns the IpVersion field value -func (o *WirelessNetwork) GetIpVersion() string { +func (o *WirelessNetworksItem) GetIpVersion() string { if o == nil { var ret string return ret @@ -184,7 +180,7 @@ func (o *WirelessNetwork) GetIpVersion() string { // GetIpVersionOk returns a tuple with the IpVersion field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetIpVersionOk() (*string, bool) { +func (o *WirelessNetworksItem) GetIpVersionOk() (*string, bool) { if o == nil { return nil, false } @@ -192,108 +188,60 @@ func (o *WirelessNetwork) GetIpVersionOk() (*string, bool) { } // SetIpVersion sets field value -func (o *WirelessNetwork) SetIpVersion(v string) { +func (o *WirelessNetworksItem) SetIpVersion(v string) { o.IpVersion = v } -// GetSensorCount returns the SensorCount field value -func (o *WirelessNetwork) GetSensorCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.SensorCount -} - -// GetSensorCountOk returns a tuple with the SensorCount field value -// and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetSensorCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.SensorCount, true -} - -// SetSensorCount sets field value -func (o *WirelessNetwork) SetSensorCount(v int32) { - o.SensorCount = v -} - -// GetUpdatedAt returns the UpdatedAt field value -func (o *WirelessNetwork) GetUpdatedAt() time.Time { +// GetDatetimeCreated returns the DatetimeCreated field value +func (o *WirelessNetworksItem) GetDatetimeCreated() time.Time { if o == nil { var ret time.Time return ret } - return o.UpdatedAt + return o.DatetimeCreated } -// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// GetDatetimeCreatedOk returns a tuple with the DatetimeCreated field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetUpdatedAtOk() (*time.Time, bool) { +func (o *WirelessNetworksItem) GetDatetimeCreatedOk() (*time.Time, bool) { if o == nil { return nil, false } - return &o.UpdatedAt, true + return &o.DatetimeCreated, true } -// SetUpdatedAt sets field value -func (o *WirelessNetwork) SetUpdatedAt(v time.Time) { - o.UpdatedAt = v +// SetDatetimeCreated sets field value +func (o *WirelessNetworksItem) SetDatetimeCreated(v time.Time) { + o.DatetimeCreated = v } -// GetCreatedAt returns the CreatedAt field value -func (o *WirelessNetwork) GetCreatedAt() time.Time { +// GetDatetimeUpdated returns the DatetimeUpdated field value +func (o *WirelessNetworksItem) GetDatetimeUpdated() time.Time { if o == nil { var ret time.Time return ret } - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *WirelessNetwork) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -// GetDisabled returns the Disabled field value -func (o *WirelessNetwork) GetDisabled() bool { - if o == nil { - var ret bool - return ret - } - - return o.Disabled + return o.DatetimeUpdated } -// GetDisabledOk returns a tuple with the Disabled field value +// GetDatetimeUpdatedOk returns a tuple with the DatetimeUpdated field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetDisabledOk() (*bool, bool) { +func (o *WirelessNetworksItem) GetDatetimeUpdatedOk() (*time.Time, bool) { if o == nil { return nil, false } - return &o.Disabled, true + return &o.DatetimeUpdated, true } -// SetDisabled sets field value -func (o *WirelessNetwork) SetDisabled(v bool) { - o.Disabled = v +// SetDatetimeUpdated sets field value +func (o *WirelessNetworksItem) SetDatetimeUpdated(v time.Time) { + o.DatetimeUpdated = v } // GetHidden returns the Hidden field value -func (o *WirelessNetwork) GetHidden() bool { +func (o *WirelessNetworksItem) GetHidden() bool { if o == nil { var ret bool return ret @@ -304,7 +252,7 @@ func (o *WirelessNetwork) GetHidden() bool { // GetHiddenOk returns a tuple with the Hidden field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetHiddenOk() (*bool, bool) { +func (o *WirelessNetworksItem) GetHiddenOk() (*bool, bool) { if o == nil { return nil, false } @@ -312,12 +260,12 @@ func (o *WirelessNetwork) GetHiddenOk() (*bool, bool) { } // SetHidden sets field value -func (o *WirelessNetwork) SetHidden(v bool) { +func (o *WirelessNetworksItem) SetHidden(v bool) { o.Hidden = v } // GetBandLocking returns the BandLocking field value -func (o *WirelessNetwork) GetBandLocking() string { +func (o *WirelessNetworksItem) GetBandLocking() string { if o == nil { var ret string return ret @@ -328,7 +276,7 @@ func (o *WirelessNetwork) GetBandLocking() string { // GetBandLockingOk returns a tuple with the BandLocking field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetBandLockingOk() (*string, bool) { +func (o *WirelessNetworksItem) GetBandLockingOk() (*string, bool) { if o == nil { return nil, false } @@ -336,13 +284,13 @@ func (o *WirelessNetwork) GetBandLockingOk() (*string, bool) { } // SetBandLocking sets field value -func (o *WirelessNetwork) SetBandLocking(v string) { +func (o *WirelessNetworksItem) SetBandLocking(v string) { o.BandLocking = v } // GetDnsLookupDomain returns the DnsLookupDomain field value // If the value is explicit nil, the zero value for string will be returned -func (o *WirelessNetwork) GetDnsLookupDomain() string { +func (o *WirelessNetworksItem) GetDnsLookupDomain() string { if o == nil || o.DnsLookupDomain.Get() == nil { var ret string return ret @@ -354,7 +302,7 @@ func (o *WirelessNetwork) GetDnsLookupDomain() string { // GetDnsLookupDomainOk returns a tuple with the DnsLookupDomain field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessNetwork) GetDnsLookupDomainOk() (*string, bool) { +func (o *WirelessNetworksItem) GetDnsLookupDomainOk() (*string, bool) { if o == nil { return nil, false } @@ -362,12 +310,12 @@ func (o *WirelessNetwork) GetDnsLookupDomainOk() (*string, bool) { } // SetDnsLookupDomain sets field value -func (o *WirelessNetwork) SetDnsLookupDomain(v string) { +func (o *WirelessNetworksItem) SetDnsLookupDomain(v string) { o.DnsLookupDomain.Set(&v) } // GetDisableEdns returns the DisableEdns field value -func (o *WirelessNetwork) GetDisableEdns() bool { +func (o *WirelessNetworksItem) GetDisableEdns() bool { if o == nil { var ret bool return ret @@ -378,7 +326,7 @@ func (o *WirelessNetwork) GetDisableEdns() bool { // GetDisableEdnsOk returns a tuple with the DisableEdns field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetDisableEdnsOk() (*bool, bool) { +func (o *WirelessNetworksItem) GetDisableEdnsOk() (*bool, bool) { if o == nil { return nil, false } @@ -386,12 +334,12 @@ func (o *WirelessNetwork) GetDisableEdnsOk() (*bool, bool) { } // SetDisableEdns sets field value -func (o *WirelessNetwork) SetDisableEdns(v bool) { +func (o *WirelessNetworksItem) SetDisableEdns(v bool) { o.DisableEdns = v } // GetUseDns64 returns the UseDns64 field value -func (o *WirelessNetwork) GetUseDns64() bool { +func (o *WirelessNetworksItem) GetUseDns64() bool { if o == nil { var ret bool return ret @@ -402,7 +350,7 @@ func (o *WirelessNetwork) GetUseDns64() bool { // GetUseDns64Ok returns a tuple with the UseDns64 field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetUseDns64Ok() (*bool, bool) { +func (o *WirelessNetworksItem) GetUseDns64Ok() (*bool, bool) { if o == nil { return nil, false } @@ -410,12 +358,12 @@ func (o *WirelessNetwork) GetUseDns64Ok() (*bool, bool) { } // SetUseDns64 sets field value -func (o *WirelessNetwork) SetUseDns64(v bool) { +func (o *WirelessNetworksItem) SetUseDns64(v bool) { o.UseDns64 = v } // GetExternalConnectivity returns the ExternalConnectivity field value -func (o *WirelessNetwork) GetExternalConnectivity() bool { +func (o *WirelessNetworksItem) GetExternalConnectivity() bool { if o == nil { var ret bool return ret @@ -426,7 +374,7 @@ func (o *WirelessNetwork) GetExternalConnectivity() bool { // GetExternalConnectivityOk returns a tuple with the ExternalConnectivity field value // and a boolean to check if the value has been set. -func (o *WirelessNetwork) GetExternalConnectivityOk() (*bool, bool) { +func (o *WirelessNetworksItem) GetExternalConnectivityOk() (*bool, bool) { if o == nil { return nil, false } @@ -434,11 +382,11 @@ func (o *WirelessNetwork) GetExternalConnectivityOk() (*bool, bool) { } // SetExternalConnectivity sets field value -func (o *WirelessNetwork) SetExternalConnectivity(v bool) { +func (o *WirelessNetworksItem) SetExternalConnectivity(v bool) { o.ExternalConnectivity = v } -func (o WirelessNetwork) MarshalJSON() ([]byte, error) { +func (o WirelessNetworksItem) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -446,17 +394,15 @@ func (o WirelessNetwork) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o WirelessNetwork) ToMap() (map[string]interface{}, error) { +func (o WirelessNetworksItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["uid"] = o.Uid toSerialize["alias"] = o.Alias toSerialize["ssid"] = o.Ssid toSerialize["security"] = o.Security.Get() toSerialize["ip_version"] = o.IpVersion - toSerialize["sensor_count"] = o.SensorCount - toSerialize["updated_at"] = o.UpdatedAt - toSerialize["created_at"] = o.CreatedAt - toSerialize["disabled"] = o.Disabled + toSerialize["datetime_created"] = o.DatetimeCreated + toSerialize["datetime_updated"] = o.DatetimeUpdated toSerialize["hidden"] = o.Hidden toSerialize["band_locking"] = o.BandLocking toSerialize["dns_lookup_domain"] = o.DnsLookupDomain.Get() @@ -466,7 +412,7 @@ func (o WirelessNetwork) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *WirelessNetwork) UnmarshalJSON(data []byte) (err error) { +func (o *WirelessNetworksItem) UnmarshalJSON(data []byte) (err error) { // This validates that all required properties are included in the JSON object // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. @@ -476,10 +422,8 @@ func (o *WirelessNetwork) UnmarshalJSON(data []byte) (err error) { "ssid", "security", "ip_version", - "sensor_count", - "updated_at", - "created_at", - "disabled", + "datetime_created", + "datetime_updated", "hidden", "band_locking", "dns_lookup_domain", @@ -502,53 +446,53 @@ func (o *WirelessNetwork) UnmarshalJSON(data []byte) (err error) { } } - varWirelessNetwork := _WirelessNetwork{} + varWirelessNetworksItem := _WirelessNetworksItem{} decoder := json.NewDecoder(bytes.NewReader(data)) decoder.DisallowUnknownFields() - err = decoder.Decode(&varWirelessNetwork) + err = decoder.Decode(&varWirelessNetworksItem) if err != nil { return err } - *o = WirelessNetwork(varWirelessNetwork) + *o = WirelessNetworksItem(varWirelessNetworksItem) return err } -type NullableWirelessNetwork struct { - value *WirelessNetwork +type NullableWirelessNetworksItem struct { + value *WirelessNetworksItem isSet bool } -func (v NullableWirelessNetwork) Get() *WirelessNetwork { +func (v NullableWirelessNetworksItem) Get() *WirelessNetworksItem { return v.value } -func (v *NullableWirelessNetwork) Set(val *WirelessNetwork) { +func (v *NullableWirelessNetworksItem) Set(val *WirelessNetworksItem) { v.value = val v.isSet = true } -func (v NullableWirelessNetwork) IsSet() bool { +func (v NullableWirelessNetworksItem) IsSet() bool { return v.isSet } -func (v *NullableWirelessNetwork) Unset() { +func (v *NullableWirelessNetworksItem) Unset() { v.value = nil v.isSet = false } -func NewNullableWirelessNetwork(val *WirelessNetwork) *NullableWirelessNetwork { - return &NullableWirelessNetwork{value: val, isSet: true} +func NewNullableWirelessNetworksItem(val *WirelessNetworksItem) *NullableWirelessNetworksItem { + return &NullableWirelessNetworksItem{value: val, isSet: true} } -func (v NullableWirelessNetwork) MarshalJSON() ([]byte, error) { +func (v NullableWirelessNetworksItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableWirelessNetwork) UnmarshalJSON(src []byte) error { +func (v *NullableWirelessNetworksItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/pkg/config-api-client/model_wireless_networks_response.go b/pkg/config-api-client/model_wireless_networks_response.go index bd36314a..d03d6e8e 100644 --- a/pkg/config-api-client/model_wireless_networks_response.go +++ b/pkg/config-api-client/model_wireless_networks_response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */ @@ -22,8 +22,8 @@ var _ MappedNullable = &WirelessNetworksResponse{} // WirelessNetworksResponse struct for WirelessNetworksResponse type WirelessNetworksResponse struct { - WirelessNetworks []WirelessNetwork `json:"wireless_networks"` - Pagination PaginationDetails `json:"pagination"` + WirelessNetworks []WirelessNetworksItem `json:"wireless_networks"` + Pagination PaginationDetails `json:"pagination"` } type _WirelessNetworksResponse WirelessNetworksResponse @@ -32,7 +32,7 @@ type _WirelessNetworksResponse WirelessNetworksResponse // 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 NewWirelessNetworksResponse(wirelessNetworks []WirelessNetwork, pagination PaginationDetails) *WirelessNetworksResponse { +func NewWirelessNetworksResponse(wirelessNetworks []WirelessNetworksItem, pagination PaginationDetails) *WirelessNetworksResponse { this := WirelessNetworksResponse{} this.WirelessNetworks = wirelessNetworks this.Pagination = pagination @@ -48,9 +48,9 @@ func NewWirelessNetworksResponseWithDefaults() *WirelessNetworksResponse { } // GetWirelessNetworks returns the WirelessNetworks field value -func (o *WirelessNetworksResponse) GetWirelessNetworks() []WirelessNetwork { +func (o *WirelessNetworksResponse) GetWirelessNetworks() []WirelessNetworksItem { if o == nil { - var ret []WirelessNetwork + var ret []WirelessNetworksItem return ret } @@ -59,7 +59,7 @@ func (o *WirelessNetworksResponse) GetWirelessNetworks() []WirelessNetwork { // GetWirelessNetworksOk returns a tuple with the WirelessNetworks field value // and a boolean to check if the value has been set. -func (o *WirelessNetworksResponse) GetWirelessNetworksOk() ([]WirelessNetwork, bool) { +func (o *WirelessNetworksResponse) GetWirelessNetworksOk() ([]WirelessNetworksItem, bool) { if o == nil { return nil, false } @@ -67,7 +67,7 @@ func (o *WirelessNetworksResponse) GetWirelessNetworksOk() ([]WirelessNetwork, b } // SetWirelessNetworks sets field value -func (o *WirelessNetworksResponse) SetWirelessNetworks(v []WirelessNetwork) { +func (o *WirelessNetworksResponse) SetWirelessNetworks(v []WirelessNetworksItem) { o.WirelessNetworks = v } diff --git a/pkg/config-api-client/response.go b/pkg/config-api-client/response.go index 43616db2..f88d0e22 100644 --- a/pkg/config-api-client/response.go +++ b/pkg/config-api-client/response.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.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 5a67f060..6253c6d5 100644 --- a/pkg/config-api-client/test/api_configuration_test.go +++ b/pkg/config-api-client/test/api_configuration_test.go @@ -2,11 +2,13 @@ package config_api_client import ( "context" + "testing" + "time" + openapiclient "github.com/aruba-uxi/configuration-api-terraform-provider/pkg/config-api-client" "github.com/h2non/gock" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "testing" ) func Test_config_api_client_ConfigurationAPIService(t *testing.T) { @@ -18,39 +20,6 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { defer gock.Off() - t.Run("Test ConfigurationAPIService GetLivezHealthLivezGet", func(t *testing.T) { - - gock.New(configuration.Scheme + "://" + configuration.Host).Get("/health/livez").Reply(200).JSON(map[string]string{"status": "OK"}) - - resp, httpRes, err := apiClient.ConfigurationAPI.GetLivezHealthLivezGet(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, httpRes.StatusCode, 200) - assert.Equal(t, resp, &openapiclient.LivenessResponse{Status: "OK"}) - }) - - t.Run("Test ConfigurationAPIService GetReadyzHealthReadyzGet", func(t *testing.T) { - - gock.New(configuration.Scheme + "://" + configuration.Host).Get("/health/readyz").Reply(200).JSON(map[string]interface{}{"status": "OK", "data": map[string]string{}}) - - resp, httpRes, err := apiClient.ConfigurationAPI.GetReadyzHealthReadyzGet(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.ReadinessResponse{Status: "OK", Data: map[string]string{}}) - }) - - t.Run("Test ConfigurationAPIService GetStatusHealthStatusGet", func(t *testing.T) { - - gock.New(configuration.Scheme + "://" + configuration.Host).Get("/health/status").Reply(200).JSON(map[string]string{"name": "Configuration-API", "version": "1.0.0"}) - - resp, httpRes, err := apiClient.ConfigurationAPI.GetStatusHealthStatusGet(context.Background()).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - assert.Equal(t, resp, &openapiclient.StatusResponse{Name: "Configuration-API", Version: "1.0.0"}) - }) - t.Run("Test ConfigurationAPIService GroupsPostConfigurationAppV1GroupsPost", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host).Post("/configuration/app/v1/groups").Reply(200).JSON(map[string]string{"parent_uid": "parent.uid", "name": "name", "uid": "node", "path": "parent.uid.node"}) @@ -94,7 +63,7 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) assert.Equal(t, resp, &openapiclient.SensorGroupAssignmentsResponse{ - SensorGroupAssignments: []openapiclient.SensorGroupAssignment{ + SensorGroupAssignments: []openapiclient.SensorGroupAssignmentsItem{ { Uid: "uid", GroupUid: "group_uid", @@ -162,19 +131,19 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { }) }) - t.Run("Test ConfigurationAPIService GetConfigurationAppV1SensorGroupAssignmentsGet", func(t *testing.T) { + t.Run("Test ConfigurationAPIService GetConfigurationAppV1WiredNetworksGet", func(t *testing.T) { gock.New(configuration.Scheme + "://" + configuration.Host). - Get("/configuration/app/v1/groups"). + Get("/configuration/app/v1/wired-networks"). MatchParams(map[string]string{"uid": "uid", "limit": "10", "cursor": "some-cursor"}). Reply(200). JSON(map[string]interface{}{ - "networks": []map[string]interface{}{ + "wired_networks": []map[string]interface{}{ { "uid": "uid", "alias": "alias", - "datetime_created": "2024-09-11 12:00:00.000", - "datetime_updated": "2024-09-11 12:00:00.000", + "datetime_created": "2024-09-11T12:00:00.000Z", + "datetime_updated": "2024-09-11T12:00:00.000Z", "ip_version": "ip_version", "security": "security", "dns_lookup_domain": "dns_lookup_domain", @@ -199,25 +168,99 @@ func Test_config_api_client_ConfigurationAPIService(t *testing.T) { Cursor("some-cursor"). Execute() + security := "security" + dnsLookupDomain := "dns_lookup_domain" + var vlanId int32 = 1 + require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) assert.Equal(t, resp, &openapiclient.WiredNetworksResponse{ - WiredNetworks: []openapiclient.WiredNetwork{ + WiredNetworks: []openapiclient.WiredNetworksItem{ { - Uid: "uid", - Alias: "alias"// string `json:"alias"` - IpVersion: "ip_version"// string `json:"ip_version"` - SensorCount: "sensor_count"// int32 `json:"sensor_count"` - UpdatedAt: "updated_at"// time.Time `json:"updated_at"` - CreatedAt: "created_at"// time.Time `json:"created_at"` - Disabled: "disabled"// bool `json:"disabled"` - Security: "security"// NullableString `json:"security"` - DnsLookupDomain: "dns_lookup_domain"// NullableString `json:"dns_lookup_domain"` - DisableEdns: "disable_edns"// bool `json:"disable_edns"` - UseDns64: "use_dns64"// bool `json:"use_dns64"` - ExternalConnectivity: "external_connectivity"//bool `json:"external_connectivity"` - VlanId: "vlan_id"// NullableInt32 `json:"vlan_id"` - }, + Uid: "uid", + Alias: "alias", + IpVersion: "ip_version", + DatetimeUpdated: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), + DatetimeCreated: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), + Security: *openapiclient.NewNullableString(&security), + DnsLookupDomain: *openapiclient.NewNullableString(&dnsLookupDomain), + DisableEdns: true, + UseDns64: false, + ExternalConnectivity: true, + VlanId: *openapiclient.NewNullableInt32(&vlanId), + }, + }, + Pagination: openapiclient.PaginationDetails{ + Limit: 10, + Next: *openapiclient.NewNullableString(nil), + Previous: *openapiclient.NewNullableString(nil), + First: *openapiclient.NewNullableString(nil), + Last: *openapiclient.NewNullableString(nil), + }, + }) + }) + + t.Run("Test ConfigurationAPIService GetConfigurationAppV1WiredNetworksGet", func(t *testing.T) { + + gock.New(configuration.Scheme + "://" + configuration.Host). + Get("/configuration/app/v1/wireless-networks"). + MatchParams(map[string]string{"uid": "uid", "limit": "10", "cursor": "some-cursor"}). + Reply(200). + JSON(map[string]interface{}{ + "wireless_networks": []map[string]interface{}{ + { + "uid": "uid", + "ssid": "ssid", + "alias": "alias", + "datetime_created": "2024-09-11T12:00:00.000Z", + "datetime_updated": "2024-09-11T12:00:00.000Z", + "ip_version": "ip_version", + "security": "security", + "hidden": false, + "band_locking": "band_locking", + "dns_lookup_domain": "dns_lookup_domain", + "disable_edns": true, + "use_dns64": false, + "external_connectivity": true, + }, + }, + "pagination": map[string]interface{}{ + "limit": 10, + "first": nil, + "next": nil, + "previous": nil, + "last": nil, + }, + }) + resp, httpRes, err := apiClient.ConfigurationAPI. + GetConfigurationAppV1WirelessNetworksGet(context.Background()). + Uid("uid"). + Limit(10). + Cursor("some-cursor"). + Execute() + + security := "security" + dnsLookupDomain := "dns_lookup_domain" + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + assert.Equal(t, resp, &openapiclient.WirelessNetworksResponse{ + WirelessNetworks: []openapiclient.WirelessNetworksItem{ + { + Uid: "uid", + Alias: "alias", + Ssid: "ssid", + Security: *openapiclient.NewNullableString(&security), + IpVersion: "ip_version", + DatetimeCreated: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), + DatetimeUpdated: time.Date(2024, 9, 11, 12, 0, 0, 0, time.UTC), + Hidden: false, + BandLocking: "band_locking", + DnsLookupDomain: *openapiclient.NewNullableString(&dnsLookupDomain), + DisableEdns: true, + UseDns64: false, + ExternalConnectivity: true, + }, }, Pagination: openapiclient.PaginationDetails{ Limit: 10, diff --git a/pkg/config-api-client/utils.go b/pkg/config-api-client/utils.go index 0924cfa9..8259cdf1 100644 --- a/pkg/config-api-client/utils.go +++ b/pkg/config-api-client/utils.go @@ -3,7 +3,7 @@ Configuration Api Nice description goes here -API version: 1.9.0 +API version: 1.11.0 Contact: support@capenetworks.com */