From e4bea0dcd1aa90d5907eecda775453fac2d7b9c9 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 15:28:24 -0500 Subject: [PATCH 1/8] feat: add multiple SmartView API specs under a common service name Signed-off-by: Marques Johansson --- .github/workflows/sync-smartview.yaml | 83 +++++++++++++++++++++ Makefile | 5 +- Makefile.smartview | 103 ++++++++++++++++++++++++++ patches/services/smartview/.keep | 0 spec/services/smartview/.keep | 0 templates/services/smartview/.keep | 0 6 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/sync-smartview.yaml create mode 100644 Makefile.smartview create mode 100644 patches/services/smartview/.keep create mode 100644 spec/services/smartview/.keep create mode 100644 templates/services/smartview/.keep diff --git a/.github/workflows/sync-smartview.yaml b/.github/workflows/sync-smartview.yaml new file mode 100644 index 00000000..7d5752b5 --- /dev/null +++ b/.github/workflows/sync-smartview.yaml @@ -0,0 +1,83 @@ +name: Sync smartview API spec + +on: + workflow_dispatch: + +jobs: + sync: + strategy: + matrix: + go-version: [1.19.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Get current date + id: date + run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v4 + - name: GitHub user + run: | + # https://api.github.com/users/github-actions[bot] + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + - name: Fetch latest spec + id: fetch + run: | + make -f Makefile.smartview fetch + git add spec/services/smartview + echo `git commit -m 'sync: fetch ${{ steps.date.outputs.date }} spec and apply patches'` + - name: Apply spec patches + id: patch + if: ${{ always() && steps.fetch.conclusion == 'success' }} + run: | + make -f Makefile.smartview patch + git add spec/services/smartview + echo `git commit -m 'sync: patch spec with ${{ steps.date.outputs.date }} spec'` + - name: Generate code + id: generate + if: ${{ always() && steps.patch.conclusion == 'success' }} + run: | + make -f Makefile.smartview generate + git add services/smartview + echo `git commit -m 'sync: generate client with ${{ steps.date.outputs.date }} spec'` + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v7 + if: ${{ always() && steps.fetch.conclusion == 'success' }} + with: + branch: sync/gh + branch-suffix: timestamp + author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + commit-message: "sync: uncommitted changes detected when opening PR" + title: "feat: API Sync by GitHub Action for @${{ github.event.sender.login }}" + body: | + This API Sync PR was triggered by @${{ github.event.sender.login }} through [GitHub Actions workflow_displatch](https://github.com/equinix/equinix-sdk-go/actions?query=event%3Aworkflow_dispatch) + on ${{ steps.date.outputs.date }}. + + * latest Swagger is fetched + * patches have been applied + * generated client has been updated + delete-branch: true + draft: ${{ steps.patch.conclusion == 'failure' || steps.generate.conclusion == 'failure' }} + - name: Comment for failed patch + uses: mshick/add-pr-comment@v2 + if: ${{ always() && steps.patch.conclusion == 'failure' && steps.cpr.conclusion == 'success' }} + with: + issue: ${{ steps.cpr.outputs.pull-request-number }} + message: Failed to patch latest spec. Someone with write access must fix this PR manually and then convert it from Draft status to Ready for Review. + - name: Comment for failed generate + uses: mshick/add-pr-comment@v2 + if: ${{ always() && steps.generate.conclusion == 'failure' && steps.cpr.conclusion == 'success' }} + with: + issue: ${{ steps.cpr.outputs.pull-request-number }} + message: Failed to generate code from latest patched spec. Someone with write access must fix this PR manually and then convert it from Draft status to Ready for Review. + - name: Check outputs + if: ${{ always() && steps.cpr.conclusion == 'success' }} + run: | + echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" diff --git a/Makefile b/Makefile index a5cf468b..6cf7795a 100644 --- a/Makefile +++ b/Makefile @@ -10,9 +10,12 @@ USER_AGENT=${GIT_REPO}/${PACKAGE_VERSION} OPENAPI_IMAGE_TAG=v7.4.0 OPENAPI_IMAGE=openapitools/openapi-generator-cli:${OPENAPI_IMAGE_TAG} +GOSWAGGER_IMAGE_TAG=v0.31.0 +GOSWAGGER_IMAGE=ghcr.io/go-swagger/go-swagger:${GOSWAGGER_IMAGE_TAG} CRI=docker # nerdctl CRI_COMMAND_BASE=${CRI} run --rm -u ${CURRENT_UID}:${CURRENT_GID} $(DOCKER_EXTRA_ARGS) -OPENAPI_GENERATOR=${CRI_COMMAND_BASE} -v $(CURDIR):/local ${OPENAPI_IMAGE} +GOSWAGGER=${CRI_COMMAND_BASE} -v $(CURDIR):/local -w /local ${GOSWAGGER_IMAGE} +OPENAPI_GENERATOR=${CRI_COMMAND_BASE} -v $(CURDIR):/local -w /local ${OPENAPI_IMAGE} SPEC_FETCHER=${CRI_COMMAND_BASE} -v $(CURDIR):/workdir --entrypoint sh mikefarah/yq:4.30.8 script/download_spec.sh MIN_GO_VERSION=1.19 GO_CMD=${CRI_COMMAND_BASE} -v $(CURDIR):/workdir -w /workdir -e GOCACHE=/tmp/.cache golang:${MIN_GO_VERSION} diff --git a/Makefile.smartview b/Makefile.smartview new file mode 100644 index 00000000..da73f85b --- /dev/null +++ b/Makefile.smartview @@ -0,0 +1,103 @@ +.PHONY: all pull fetch patch combine generate clean codegen mod docs move-other patch-post fmt test stage validate + +include Makefile + +PACKAGE_NAME=smartview +# OAS2: +SOURCE_URLS=https://developer.equinix.com/sites/default/files/smartview-v2-catalog-environmental_v2_0.json \ + https://developer.equinix.com/sites/default/files/2024-09/power_v1.json \ + https://developer.equinix.com/sites/default/files/2024-09/environmental_v1.json \ + https://developer.equinix.com/sites/default/files/smartview-v2-catalog-feed-subscription_v2_3.json \ + https://developer.equinix.com/sites/default/files/smartview-v1-catalog-alert_v1_0.yaml \ + https://developer.equinix.com/sites/default/files/smartview-v1-catalog-assets_v1_1.json \ + https://developer.equinix.com/sites/default/files/smartview-v1-catalog-hierarchy_v1_2.json +# TODO(OAS3): https://developer.equinix.com/sites/default/files/smartview-v2-catalog-system-alerts_v2_2.json +SPEC_ROOT_FILE=swagger.yaml + +CODE_DIR=${CODE_BASE_DIR}/${PACKAGE_NAME} +TEMPLATE_DIR=${TEMPLATE_BASE_DIR}/${PACKAGE_NAME} +SPEC_FETCHED_DIR=${SPEC_BASE_DIR}/${PACKAGE_NAME}/oas3.fetched +SPEC_PATCH_DIR=${SPEC_BASE_DIR}/${PACKAGE_NAME}/patches +SPEC_PATCHED_DIR=${SPEC_BASE_DIR}/${PACKAGE_NAME}/oas3.patched +MERGED_SPEC_FILE=${SPEC_BASE_DIR}/${PACKAGE_NAME}/merged-spec.yaml +SPEC_FETCHER=curl + +all: pull fetch patch combine generate stage + +generate: clean codegen remove-unused patch-post mod fmt test + +pull: + ${CRI} pull ${OPENAPI_IMAGE} + +# Fetch multiple source URLs into SPEC_FETCHED_DIR with numeric suffixes +fetch: + mkdir -p ${SPEC_FETCHED_DIR} + rm -f ${SPEC_FETCHED_DIR}/* + $(eval INDEX=0) + for URL in ${SOURCE_URLS}; do \ + ${SPEC_FETCHER} \ + -H 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0' \ + -o ${SPEC_FETCHED_DIR}/spec_$$INDEX.yaml $$URL; \ + INDEX=$$((INDEX + 1)); \ + done + +patch: + rm -rf ${SPEC_PATCHED_DIR} + cp -r ${SPEC_FETCHED_DIR} ${SPEC_PATCHED_DIR} + + for diff in $(shell set -x; find ${SPEC_PATCH_DIR} -name '*.patch' | sort -n); do \ + patch --no-backup-if-mismatch -N -t -p1 -i $$diff; \ + done + +combine: + touch ${MERGED_SPEC_FILE}.yaml + #docker run -v $(CURDIR):/local -w /local mikefarah/yq eval-all '. as $$item ireduce ({}; . * $$item)' ${SPEC_FETCHED_DIR}/* > ${MERGED_SPEC_FILE} + # docker run -v $(CURDIR):/local ghcr.io/marcelthole/openapi-merge \ + # ${SPEC_FETCHED_DIR}/* + # --outputfile=${MERGED_SPEC_FILE} + + #${OPENAPI_GENERATOR} generate -g openapi-yaml \ + # -i /local/${SPEC_FETCHED_DIR}/spec_.yaml \ + # --skip-validate-spec \ + # --input-spec-root-directory /local/${SPEC_FETCHED_DIR} \ + # -o /local/${SPEC_BASE_DIR}/${PACKAGE_NAME}/ \ + # -p outputFile=${MERGED_SPEC_FILE}.yaml + # # --merged-spec-filename /local/${MERGED_SPEC_FILE} + ${GOSWAGGER} mixin ${SPEC_FETCHED_DIR}/spec* --output=${SPEC_FETCHED_DIR}/merged-spec.yaml --format=yaml --keep-spec-order || true + ${GOSWAGGER} flatten --with-flatten=minimal ${SPEC_FETCHED_DIR}/merged-spec.yaml --output=${SPEC_FETCHED_DIR}/${SPEC_ROOT_FILE} --format=yaml + # rm ${SPEC_FETCHED_DIR}/merged-spec.yaml ${SPEC_FETCHED_DIR}/spec* + +patch-post: + # patch is idempotent, always starting with the generated files + for diff in $(shell find patches/services/${PACKAGE_NAME} -name \*.patch | sort -n); do \ + patch --no-backup-if-mismatch -N -t -p1 -i $$diff; \ + done + +clean: + rm -rf $(CODE_DIR) ${MERGED_SPEC_FILE} + +codegen: + ${OPENAPI_GENERATOR} generate -g go \ + --package-name ${PACKAGE_NAME} \ + --additional-properties=useOneOfDiscriminatorLookup=true \ + --http-user-agent "${USER_AGENT}" \ + -p packageVersion=${PACKAGE_VERSION} \ + --git-user-id ${GIT_ORG} \ + --git-repo-id ${GIT_REPO}/services \ + -c /local/config/openapi-generator.json \ + -t /local/${TEMPLATE_DIR} \ + -o /local/${CODE_DIR} \ + --skip-validate-spec \ + --openapi-normalizer FIX_DUPLICATED_OPERATIONID=true \ + -i /local/${SPEC_FETCHED_DIR}/${SPEC_ROOT_FILE} + +validate: + ${OPENAPI_GENERATOR} validate \ + --recommend \ + -i /local/${SPEC_FETCHED_DIR}/${SPEC_ROOT_FILE} + +remove-unused: + rm -rf ${CODE_DIR}/api \ + ${CODE_DIR}/.travis.yml \ + ${CODE_DIR}/git_push.sh \ + ${CODE_DIR}/.openapi-generator diff --git a/patches/services/smartview/.keep b/patches/services/smartview/.keep new file mode 100644 index 00000000..e69de29b diff --git a/spec/services/smartview/.keep b/spec/services/smartview/.keep new file mode 100644 index 00000000..e69de29b diff --git a/templates/services/smartview/.keep b/templates/services/smartview/.keep new file mode 100644 index 00000000..e69de29b From 2a11d3a79acd7bcaf11c194c8e79c6574b296dff Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 15:29:44 -0500 Subject: [PATCH 2/8] wip: temporarily add fetched SmartView spec files since curl is not permitted with current arguments Signed-off-by: Marques Johansson --- .../smartview/oas3.fetched/spec_.yaml | 282 +++ .../smartview/oas3.fetched/spec_1.yaml | 717 +++++++ .../smartview/oas3.fetched/spec_2.yaml | 543 +++++ .../smartview/oas3.fetched/spec_3.yaml | 1876 +++++++++++++++++ .../smartview/oas3.fetched/spec_4.yaml | 604 ++++++ .../smartview/oas3.fetched/spec_5.yaml | 1384 ++++++++++++ .../smartview/oas3.fetched/spec_6.yaml | 442 ++++ 7 files changed, 5848 insertions(+) create mode 100644 spec/services/smartview/oas3.fetched/spec_.yaml create mode 100644 spec/services/smartview/oas3.fetched/spec_1.yaml create mode 100644 spec/services/smartview/oas3.fetched/spec_2.yaml create mode 100644 spec/services/smartview/oas3.fetched/spec_3.yaml create mode 100644 spec/services/smartview/oas3.fetched/spec_4.yaml create mode 100644 spec/services/smartview/oas3.fetched/spec_5.yaml create mode 100644 spec/services/smartview/oas3.fetched/spec_6.yaml diff --git a/spec/services/smartview/oas3.fetched/spec_.yaml b/spec/services/smartview/oas3.fetched/spec_.yaml new file mode 100644 index 00000000..ff442fce --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_.yaml @@ -0,0 +1,282 @@ +{ + "swagger" : "2.0", + "host" : "api.equinix.com", + "info" : { + "title" : "Smart View Environmental API", + "description" : "Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria.", + "version" : "2.0", + "termsOfService" : "https://www.equinix.com/about/legal/terms", + "contact" : { + "name" : "Equinix API Support", + "url" : "https://docs.equinix.com/api-support.htm" + } + }, + "produces" : [ "application/json" ], + "consumes" : [ "application/json" ], + "schemes" : [ "https" ], + "paths" : { + "/smartview/v2/environmental/ibxs/{ibx}/sensors/readings" : { + "get" : { + "tags": [ + "Smart View Environmental" + ], + "summary" : "IBX sensors current readings", + "description" : "Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way.", + "parameters" : [ { + "name" : "ibx", + "in" : "path", + "type" : "string", + "description" : "IBX where the sensor is located.", + "required" : true, + "x-example" : "CH2" + }, { + "name" : "type", + "in" : "query", + "type" : "string", + "description" : "Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included", + "required" : false, + "x-example" : "HUMIDITY" + }, { + "name" : "zone", + "in" : "query", + "type" : "string", + "description" : "Zone name. Adding this parameter limits the query to sensors in the specified zone", + "required" : false, + "x-example" : "CH2:1:06:ColoArea:1" + }, { + "name" : "offset", + "in" : "query", + "type" : "integer", + "description" : "Results offset you want to retrieve (0..N)", + "required" : false, + "default" : 0 + }, { + "name" : "limit", + "in" : "query", + "type" : "integer", + "description" : "Number of records to retrieve per request.", + "required" : false, + "default" : 20 + }, { + "$ref" : "#/parameters/authorizationHeader" + } ], + "produces" : [ "application/json" ], + "operationId" : "getSensorReadings", + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/SensorReadingsResponse" + } + }, + "400" : { + "description" : "Bad request" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "422" : { + "description" : "Unprocessable entity" + } + } + } + }, + "/smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings" : { + "get" : { + "tags": [ + "Smart View Environmental" + ], + "summary" : "Single sensor current value(s)", + "description" : "Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code.", + "parameters" : [ { + "name" : "ibx", + "in" : "path", + "type" : "string", + "description" : "IBX where the sensor is located.", + "required" : true, + "x-example" : "SV2" + }, { + "name" : "sensorId", + "in" : "path", + "type" : "string", + "description" : "Id of sensor to read.", + "required" : true, + "x-example" : "CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03" + }, { + "$ref" : "#/parameters/authorizationHeader" + } ], + "produces" : [ "application/json" ], + "operationId" : "getSingleSensorReadings", + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/Sensor reading" + } + }, + "400" : { + "description" : "Bad request" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "422" : { + "description" : "Unprocessable entity" + } + } + } + } + }, + "definitions" : { + "Pagination" : { + "type" : "object", + "description" : "Represents pagination component of the paginated response", + "required" : [ "limit", "offset", "total" ], + "properties" : { + "offset" : { + "type" : "integer", + "format" : "int64", + "description" : "The number of elements to skip." + }, + "limit" : { + "type" : "integer", + "format" : "int64", + "description" : "The page size." + }, + "total" : { + "type" : "integer", + "format" : "int64", + "description" : "The total number of elements in the result set." + }, + "next" : { + "type" : "string", + "description" : "Represents a relative link to the next page. This can be empty if there is no next page available." + }, + "previous" : { + "type" : "string", + "description" : "Represents a relative link to the previous page. This can be empty if there is no previous page available." + } + } + }, + "Sensor reading" : { + "type" : "object", + "description" : "Single environmental sensor reading.", + "required" : [ "ibx", "sensorId", "zoneId" ], + "properties" : { + "sensorId" : { + "type" : "string", + "example" : "SV2.Environmental.Colo4-ZoneHumidity1", + "description" : "The sensor identifier." + }, + "zoneId" : { + "type" : "string", + "example" : "CH2:1:06:ColoArea:1", + "description" : "The zone where the sensor is placed." + }, + "ibx" : { + "type" : "string", + "example" : "SV2", + "description" : "The ibx identifier where the sensor is placed." + }, + "humidity" : { + "example" : "{ value: 33.3, unit: \"%\" }", + "description" : "Sensor reading: humidity", + "$ref" : "#/definitions/ValueWithUnit" + }, + "temperature" : { + "example" : "{ value: 23.08, unit: \"CELSIUS\" }", + "description" : "Sensor reading: temperature", + "$ref" : "#/definitions/ValueWithUnit" + } + } + }, + "SensorReadingsResponse" : { + "type" : "object", + "required" : [ "data", "pagination" ], + "properties" : { + "data" : { + "type" : "array", + "description" : "List of data objects", + "items" : { + "$ref" : "#/definitions/Sensor reading" + } + }, + "pagination" : { + "description" : "Pagination metadata", + "$ref" : "#/definitions/Pagination" + } + } + }, + "ValueWithUnit" : { + "type" : "object", + "description" : "Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature).", + "required" : [ "unit", "value" ], + "properties" : { + "value" : { + "type" : "object", + "example" : "33.3", + "description" : "Specific value, to be read together with unit." + }, + "unit" : { + "type" : "object", + "example" : "CELSIUS", + "description" : "Unit for value." + } + } + }, + "ValueWithUnitDoubleHumidityUnit" : { + "type" : "object", + "description" : "Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature).", + "required" : [ "unit", "value" ], + "properties" : { + "value" : { + "type" : "number", + "format" : "double", + "example" : 33.3, + "description" : "Specific value, to be read together with unit." + }, + "unit" : { + "type" : "string", + "example" : "CELSIUS", + "description" : "Unit for value.", + "enum" : [ "PERCENT" ] + } + } + }, + "ValueWithUnitDoubleTemperatureUnit" : { + "type" : "object", + "description" : "Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature).", + "required" : [ "unit", "value" ], + "properties" : { + "value" : { + "type" : "number", + "format" : "double", + "example" : 33.3, + "description" : "Specific value, to be read together with unit." + }, + "unit" : { + "type" : "string", + "example" : "CELSIUS", + "description" : "Unit for value.", + "enum" : [ "CELSIUS", "FAHRENHEIT" ] + } + } + } + }, + "parameters" : { + "authorizationHeader" : { + "name" : "Authorization", + "in" : "header", + "type" : "string", + "description" : "The OAuth Bearer token. Please add the prefix 'Bearer ' before the token.", + "required" : true, + "x-prefix" : "Bearer " + } + } +} \ No newline at end of file diff --git a/spec/services/smartview/oas3.fetched/spec_1.yaml b/spec/services/smartview/oas3.fetched/spec_1.yaml new file mode 100644 index 00000000..869fff77 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_1.yaml @@ -0,0 +1,717 @@ +{ +"swagger": "2.0", +"info": { +"title": "DCIM Power APIs", +"description": "Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset.\n", +"version": "1.0", +"termsOfService": "https://www.equinix.com/about/legal/terms", +"contact": { +"name": "Equinix API Support", +"url": "https://docs.equinix.com/api-support.htm" +} +}, +"host": "api.equinix.com", +"schemes": [ +"https" +], +"produces": [ +"application/json" +], +"consumes": [ +"application/json" +], +"tags": [ +{ +"name": "DCIM Power", +"description": "Access Power Consumption Information" +} +], +"paths": { +"/power/v1/current": { +"get": { +"tags": [ +"DCIM Power" +], +"summary": "Fetch current power consumption data", +"description": "The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit.\n", +"parameters": [ +{ +"name": "Authorization", +"in": "header", +"description": "Specify the OAuth Bearer token with prefix 'Bearer '.", +"required": true, +"type": "string", +"x-prefix": "Bearer " +}, +{ +"name": "accountNo", +"in": "query", +"description": "Customer Account Number", +"type": "string", +"required": true +}, +{ +"name": "ibx", +"in": "query", +"description": "IBX Code", +"type": "string", +"required": true +}, +{ +"name": "levelType", +"in": "query", +"description": "level type allowed value [ibx|cage|cabinet|circuit]", +"type": "string", +"required": true, +"enum": [ +"ibx", +"cage", +"cabinet", +"circuit" +] +}, +{ +"name": "levelValue", +"in": "query", +"required": true, +"description": "level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively.\n", +"type": "string" +} +], +"responses": { +"200": { +"description": "Valid Response", +"schema": { +"$ref": "#/definitions/PowerData" +} +}, +"default": { +"description": "Error response", +"schema": { +"$ref": "#/definitions/PowerData_Error" +} +} +} +}, +"post": { +"tags": [ +"DCIM Power" +], +"summary": "Fetch current power consumption data", +"description": "The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit.\n", +"parameters": [ +{ +"name": "Authorization", +"in": "header", +"description": "Specify the OAuth Bearer token with prefix 'Bearer '.", +"required": true, +"type": "string", +"x-prefix": "Bearer " +}, +{ +"name": "body", +"in": "body", +"description": "request payload", +"schema": { +"$ref": "#/definitions/PowerCurrentPostRequest" +} +} +], +"responses": { +"200": { +"description": "Valid Response", +"schema": { +"$ref": "#/definitions/PowerDataResponse_IBX" +} +}, +"default": { +"description": "Error response", +"schema": { +"$ref": "#/definitions/PowerData_Error" +} +} +} +} +}, +"/power/v1/trending": { +"get": { +"tags": [ +"DCIM Power" +], +"summary": "Fetch Trending Power Data.\n", +"description": "The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit.\n", +"parameters": [ +{ +"name": "Authorization", +"in": "header", +"description": "Specify the OAuth Bearer token with prefix 'Bearer '.", +"required": true, +"type": "string", +"x-prefix": "Bearer " +}, +{ +"name": "accountNo", +"in": "query", +"description": "Customer Account Number", +"type": "string", +"required": true +}, +{ +"name": "ibx", +"in": "query", +"description": "IBX Code", +"type": "number", +"required": true +}, +{ +"name": "levelType", +"in": "query", +"type": "string", +"required": true, +"description": "[ibx|cage|cabinet|circuit]", +"enum": [ +"ibx", +"cage", +"cabinet", +"circuit" +] +}, +{ +"name": "levelValue", +"in": "query", +"description": "ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively.\n", +"type": "string", +"required": true +}, +{ +"name": "interval", +"in": "query", +"description": "[recording|1h|1d]", +"type": "string", +"required": true +}, +{ +"name": "fromDate", +"in": "query", +"description": "timestamp expected to be epoch long ( milliseconds ).", +"type": "string", +"required": true +}, +{ +"name": "toDate", +"in": "query", +"type": "string", +"required": true, +"description": "timestamp expected to be epoch long ( milliseconds )." +} +], +"responses": { +"200": { +"description": "Valid Response", +"schema": { +"$ref": "#/definitions/TrendingPowerData" +} +}, +"default": { +"description": "Error response", +"schema": { +"$ref": "#/definitions/PowerData_Error" +} +} +} +} +} +}, +"definitions": { +"PowerDataResponse_IBX": { +"type": "object", +"properties": { +"payLoad": { +"type": "object", +"properties": { +"data": { +"type": "array", +"items": { +"$ref": "#/definitions/PowerData_IBX" +} +} +} +}, +"status": { +"type": "object", +"properties": { +"type": { +"type": "string", +"description": "[INFO|ERROR] are the possible values", +"enum": [ +"INFO" +] +}, +"statuscode": { +"type": "number", +"example": "1000", +"description": "[1000|3001|3002|3003|4000] are the possible status codes" +}, +"msg": { +"type": "string", +"example": "OK", +"description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" +} +} +} +} +}, +"TrendingPowerData": { +"type": "object", +"properties": { +"payLoad": { +"type": "object", +"properties": { +"accountNumber": { +"type": "string", +"example": "123456" +}, +"ibx": { +"type": "string", +"example": "ABX" +}, +"levelType": { +"type": "string", +"description": "power hierarchy node levelType linked to the power data", +"enum": [ +"ibx", +"cage", +"cabinet", +"circuit" +] +}, +"levelValue": { +"type": "string", +"example": "ABX", +"description": "ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp." +}, +"interval": { +"type": "string", +"example": "1h", +"description": "serial number", +"enum": [ +"5m", +"15m", +"1h", +"1d" +] +}, +"data": { +"type": "array", +"items": { +"$ref": "#/definitions/ComparisonData_Trend" +} +} +} +}, +"status": { +"type": "object", +"properties": { +"type": { +"type": "string", +"description": "[INFO|ERROR] are the possible values", +"enum": [ +"INFO" +] +}, +"statuscode": { +"type": "number", +"example": "1000", +"description": "[1000|3001|3002|3003|4000] are the possible status codes" +}, +"msg": { +"type": "string", +"example": "OK", +"description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" +} +} +} +} +}, +"PowerData": { +"type": "object", +"properties": { +"payLoad": { +"type": "object", +"properties": { +"ibx": { +"type": "string", +"description": "ibx code", +"example": "ABC" +}, +"accountNo": { +"type": "string", +"description": "customer account number", +"example": "ABC" +}, +"levelType": { +"type": "string", +"description": "power hierarchy node levelType linked to the power data", +"enum": [ +"ibx", +"cage", +"cabinet", +"circuit" +], +"example": "ibx" +}, +"levelValue": { +"type": "string", +"description": "power hierarchy node levelValue linked to the power data", +"example": "ABC" +}, +"isAlarm": { +"type": "string", +"example": "true", +"description": "returns boolean based on breakertip alarm" +}, +"kva": { +"type": "number", +"description": "power consumption in kva", +"example": 54.402 +}, +"amps": { +"type": "number", +"description": "instantaneous current amp reading on circuits", +"example": 123 +}, +"soldKva": { +"type": "number", +"description": "maximum amp draw allowable on a circuit", +"example": 598.349 +}, +"cabinetRating": { +"type": "number", +"description": "maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise.", +"example": 341.54 +}, +"contractualKva": { +"type": "number", +"example": 341.54, +"description": "The maximum power draw contractually allowable in a \nprivate cage. \n" +}, +"percentageKva": { +"type": "number", +"example": 341.54, +"description": "calculated field kva / contractualKva" +}, +"comparisonData": { +"$ref": "#/definitions/ComparisonData" +}, +"peakKvaLastSevenDays": { +"type": "number", +"example": 55.296 +}, +"peakKvaLastSevenDaysPercentage": { +"type": "number", +"example": 55.296 +}, +"peakKvaLastSevenDaysContractualKva": { +"type": "number", +"example": 55.296 +}, +"peakKvaLastSevenDaysTime": { +"type": "integer", +"example": 55.296 +}, +"soldAmps": { +"type": "integer", +"example": 123, +"description": "circuit description when the levelType is circuit. Null otherwise." +}, +"primaryKva": { +"type": "number", +"example": 28.31, +"description": "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" +}, +"redundantKva": { +"type": "number", +"example": 26.092, +"description": "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" +}, +"kw": { +"type": "string", +"example": "NA", +"description": "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions \n" +}, +"powerFactor": { +"type": "string", +"example": "NA", +"description": "The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be \"NA\" for AMER and APAC regions\n" +}, +"readingTime": { +"type": "string", +"example": "1497410400000", +"description": "date-time when the latest value was read in (epoc - milliseconds).\n" +}, +"lastUpdatedTime": { +"type": "string", +"example": "1497410520000", +"description": "date-time when the latest value was updated (epoc - milliseconds).\n" +}, +"customerName": { +"type": "string", +"example": "ABC" +} +} +}, +"status": { +"type": "object", +"properties": { +"type": { +"type": "string", +"description": "[INFO|ERROR] are the possible values", +"enum": [ +"INFO" +] +}, +"statuscode": { +"type": "number", +"example": "1000", +"description": "[1000|3001|3002|3003|4000] are the possible status codes" +}, +"msg": { +"type": "string", +"example": "OK", +"description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" +} +} +} +} +}, +"PowerData_Error": { +"type": "object", +"properties": { +"payLoad": { +"type": "object" +}, +"status": { +"type": "object", +"properties": { +"type": { +"type": "string", +"description": "[INFO|ERROR] are the possible values", +"enum": [ +"ERROR" +] +}, +"statuscode": { +"type": "number", +"example": "4000", +"description": "[1000|3001|3002|3003|4000] are the possible status codes" +}, +"msg": { +"type": "string", +"example": "INTERNAL_ERROR", +"description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" +} +} +} +} +}, +"PowerData_IBX": { +"type": "object", +"properties": { +"ibx": { +"type": "string", +"description": "ibx code", +"example": "ABC" +}, +"accountNo": { +"type": "string", +"description": "customer account number", +"example": "ABC" +}, +"levelType": { +"type": "string", +"description": "power hierarchy node levelType linked to the power data", +"enum": [ +"ibx", +"cage", +"cabinet", +"circuit" +], +"example": "ibx" +}, +"levelValue": { +"type": "string", +"description": "power hierarchy node levelValue linked to the power data", +"example": "ABC" +}, +"isAlarm": { +"type": "string", +"example": "true", +"description": "returns boolean based on breakertip alarm" +}, +"kva": { +"type": "number", +"description": "power consumption in kva", +"example": 54.402 +}, +"amps": { +"type": "number", +"description": "instantaneous current amp reading on circuits", +"example": 123 +}, +"soldKva": { +"type": "number", +"description": "maximum amp draw allowable on a circuit", +"example": 598.349 +}, +"cabinetRating": { +"type": "number", +"description": "maximum kVA draw allowed for the cabinet", +"example": 123 +}, +"contractualKva": { +"type": "number", +"description": "The maximum power draw contractually allowable in a \nprivate cage. \nexample: 341.54\n" +}, +"percentageKva": { +"type": "number", +"example": 15.928, +"description": "calculated field kva / contractualKva" +}, +"comparisonData": { +"$ref": "#/definitions/ComparisonData" +}, +"peakKvaLastSevenDays": { +"type": "number", +"example": 55.296 +}, +"peakKvaLastSevenDaysPercentage": { +"type": "number", +"example": 55.296 +}, +"peakKvaLastSevenDaysContractualKva": { +"type": "number", +"example": 55.296 +}, +"peakKvaLastSevenDaysTime": { +"type": "integer", +"example": 55.296 +}, +"soldAmps": { +"type": "integer", +"example": 123, +"description": "circuit description when the levelType is circuit. Null otherwise." +}, +"primaryKva": { +"type": "number", +"example": 28.31, +"description": "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" +}, +"redundantKva": { +"type": "number", +"example": 26.092, +"description": "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" +}, +"kw": { +"type": "string", +"example": "NA", +"description": "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions\n" +}, +"powerFactor": { +"type": "string", +"example": "NA", +"description": "The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be \"NA\" for AMER and APAC regions\n" +}, +"readingTime": { +"type": "string", +"example": "1497410400000", +"description": "date-time when the latest value was read in (epoc - milliseconds).\n" +}, +"lastUpdatedTime": { +"type": "string", +"example": "1497410520000", +"description": "date-time when the latest value was updated (epoc - milliseconds).\n" +}, +"customerName": { +"type": "string", +"example": "ABC" +} +} +}, +"ComparisonData": { +"type": "object", +"description": "comparison of readings with the current reading for specified datapoint\n", +"properties": { +"datapoint": { +"type": "string", +"description": "datapoint on which the comparison is done.", +"enum": [ +"percentageKva" +] +}, +"yesterday": { +"type": "number", +"example": 0.147, +"description": "comparison for the current value of the datapoint with yesterday's \nvalue\n" +}, +"lastWeek": { +"type": "number", +"example": -0.295, +"description": "comparison for the current value of the datapoint with last week's \nvalue\n" +}, +"lastMonth": { +"type": "number", +"example": -0.184, +"description": "comparison for the current value of the datapoint with the last \nmonth's value\n" +}, +"lastQuarter": { +"type": "number", +"example": 52.434, +"description": "comparison for the current value of the datapoint with the last \nquarter's value \n" +} +} +}, +"ComparisonData_Trend": { +"type": "object", +"description": "date and corresponding values\n", +"properties": { +"datetime": { +"type": "string", +"example": "201701010004", +"description": "datetime." +}, +"value": { +"type": "string", +"example": "0.147", +"description": "trending values" +} +} +}, +"PowerCurrentPostRequest": { +"type": "object", +"description": "date and corresponding values\n", +"properties": { +"accountNo": { +"type": "string", +"example": "1234", +"description": " Customer Account Number" +}, +"ibx": { +"type": "string", +"example": "0.147", +"description": "trending values" +}, +"levelType": { +"type": "string", +"example": "0.147", +"description": "level type allowed value [ibx|cage|cabinet|circuit]", +"enum": [ +"ibx", +"cage", +"cabinet", +"circuit" +] +} +} +} +} +} \ No newline at end of file diff --git a/spec/services/smartview/oas3.fetched/spec_2.yaml b/spec/services/smartview/oas3.fetched/spec_2.yaml new file mode 100644 index 00000000..7a4750d5 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_2.yaml @@ -0,0 +1,543 @@ +{ + "swagger": "2.0", + "info": { + "title": "Smart View Environment APIs", + "description": "Empower yourself with Smart View Environment APIs. Use these APIs to fetch current and trending environmental data (humidity and temperature). Given an account number, IBX code, get current and trending environment data for a level value. The environment info (temperature and humidity) is returned for input IBX, zone, cage and sensor.\n", + "version": "1.0", + "termsOfService": "https://www.equinix.com/about/legal/terms", + "contact": { + "name": "Equinix API Support", + "url": "https://docs.equinix.com/api-support.htm" + } + }, + "tags": [ + { + "name": "Smart View Environment", + "description": "Access Environment Information" + } + ], + "host": "api.equinix.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "paths": { + "/environment/v1/current": { + "get": { + "tags": [ + "Smart View Environment" + ], + "summary": "Get current environmental data", + "description": "The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor)", + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + }, + { + "name": "accountNo", + "in": "query", + "description": "Customer Account Number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "IBX Code", + "type": "string", + "required": true + }, + { + "name": "levelType", + "in": "query", + "description": "Level Type", + "type": "string", + "enum": [ + "IBX", + "ZONE", + "CAGE", + "SENSOR" + ], + "required": true + }, + { + "name": "levelValue", + "in": "query", + "description": "Level Value is ibxCode, zoneUsID, cageUsID, sensorid for \nlevelType ibx, zone, cage, sensor resp.\n", + "type": "string", + "required": true + } + ], + "responses": { + "200": { + "description": "Environment Details", + "schema": { + "$ref": "#/definitions/EnvironmentData" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/environment/v1/listCurrent": { + "get": { + "tags": [ + "Smart View Environment" + ], + "summary": "Fetch list of environmental data", + "description": "The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR\n", + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + }, + { + "name": "accountNo", + "in": "query", + "description": "Customer Account Number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "IBX Code", + "type": "string", + "required": true + }, + { + "name": "levelType", + "in": "query", + "description": "Level Type", + "type": "string", + "enum": [ + "IBX", + "ZONE", + "CAGE", + "SENSOR" + ], + "required": true + } + ], + "responses": { + "200": { + "description": "Environment Details", + "schema": { + "$ref": "#/definitions/EnvironmentDataResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/environment/v1/trending": { + "get": { + "tags": [ + "Smart View Environment" + ], + "summary": "Fetch trending environmental data", + "description": "The endpoint returns trending environment information (temperature and humidity) for\ninput ibx, zone, cage, sensor \n", + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + }, + { + "name": "accountNo", + "in": "query", + "description": "Customer Account Number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "IBX Code", + "type": "number", + "required": true + }, + { + "name": "dataPoint", + "in": "query", + "type": "string", + "description": "data point", + "required": true, + "enum": [ + "temperature", + "humidity" + ] + }, + { + "name": "levelType", + "in": "query", + "description": "Level Type", + "type": "string", + "enum": [ + "IBX", + "ZONE", + "CAGE", + "SENSOR" + ], + "required": true + }, + { + "name": "levelValue", + "in": "query", + "description": "Level Value is ibxCode, zone, cage, sensorid for \nlevelType ibx, zone, cage, sensor resp.\n", + "type": "string", + "required": true + }, + { + "name": "interval", + "in": "query", + "type": "string", + "enum": [ + "reading", + "1h", + "1d" + ], + "required": true + }, + { + "name": "fromDate", + "in": "query", + "description": "date in long", + "type": "string", + "format": "date-time", + "required": true + }, + { + "name": "toDate", + "in": "query", + "description": "date in long", + "type": "string", + "format": "date-time", + "required": true + } + ], + "responses": { + "200": { + "description": "Trending Environment Data Response", + "schema": { + "$ref": "#/definitions/TrendingEnvironmentData" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + } + }, + "definitions": { + "EnvironmentDataResponse": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "description": "total number of data values", + "example": 1 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/EnvironmentDataForArray" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages " + } + } + } + } + }, + "EnvironmentData": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "ibx": { + "type": "string", + "description": "ibx code", + "example": "CH1" + }, + "accountNo": { + "type": "string", + "description": "account number", + "example": "1" + }, + "zone": { + "type": "string", + "description": "zone unique space id", + "example": "CH1:1:05:ColoArea:2" + }, + "cage": { + "type": "string", + "description": "cage unique space id", + "example": "CH1:05:000550" + }, + "cabinet": { + "type": "string", + "description": "cabinet unique space id", + "example": "CH1:05:000550:0105" + }, + "sensor": { + "type": "string", + "description": "sensor id", + "example": "CH1.Colo.CH1_05_000550_0105" + }, + "temperature": { + "type": "string", + "description": "current temperature", + "example": "20.0" + }, + "humidity": { + "type": "string", + "description": "current humidity", + "example": "43.00" + }, + "timestamp": { + "type": "string", + "description": "epoch timestamp when the current reading was read", + "example": "1506665106579" + }, + "temperatureUom": { + "type": "string", + "description": "unit of measure for temperature values", + "example": "°C" + }, + "humidityUom": { + "type": "string", + "description": "unit of measure for humidity", + "example": "%" + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages" + } + } + } + } + }, + "EnvironmentDataForArray": { + "type": "object", + "properties": { + "ibx": { + "type": "string", + "description": "ibx code", + "example": "CH1" + }, + "accountNo": { + "type": "string", + "description": "account number", + "example": "1" + }, + "zone": { + "type": "string", + "description": "zone unique space id", + "example": "CH1:1:05:ColoArea:2" + }, + "cage": { + "type": "string", + "description": "cage unique space id", + "example": "CH1:05:000550" + }, + "cabinet": { + "type": "string", + "description": "cabinet unique space id", + "example": "CH1:05:000550:0105" + }, + "sensor": { + "type": "string", + "description": "sensor id", + "example": "CH1.Colo.CH1_05_000550_0105" + }, + "temperature": { + "type": "string", + "description": "current temperature", + "example": "20.0" + }, + "humidity": { + "type": "string", + "description": "current humidity", + "example": "43.00" + }, + "timestamp": { + "type": "string", + "description": "epoch timestamp when the current reading was read", + "example": "1506665106579" + }, + "temperatureUom": { + "type": "string", + "description": "unit of measure for temperature values", + "example": "°C" + }, + "humidityUom": { + "type": "string", + "description": "unit of measure for humidity", + "example": "%" + } + } + }, + "DataValue": { + "type": "object", + "description": "This object contains a single reading for the data point.", + "properties": { + "value": { + "type": "string", + "description": "reading value for the datapoint", + "example": "21.11" + }, + "modifiers": { + "type": "array", + "description": "modifiers applicable for the reading value", + "items": { + "type": "string", + "example": "recorded" + } + }, + "datetime": { + "type": "string", + "description": "timestamp since epoch. reading timestamp", + "example": "1483977600000" + } + } + }, + "TrendingEnvironmentData": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "ibx": { + "type": "string", + "description": "ibx code", + "example": "CH1" + }, + "accountNo": { + "type": "string", + "description": "customer account num", + "example": "1" + }, + "interval": { + "type": "string", + "description": "interval", + "example": "reading" + }, + "datapoint": { + "type": "string", + "description": "data point for which the timeseries data is fetched", + "example": "temperature" + }, + "uom": { + "type": "string", + "description": "unit of measure used for the datapoint", + "example": "°C" + }, + "series": { + "type": "array", + "description": "Time series data for the data point", + "items": { + "$ref": "#/definitions/DataValue" + } + } + } + } + } + }, + "Error": { + "type": "object", + "properties": { + "payLoad": { + "type": "object" + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "ERROR" + ] + }, + "statuscode": { + "type": "number", + "example": "4000", + "description": "[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "INTERNAL_ERROR", + "description": "[Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages" + } + } + } + } + } + }, + "parameters": { + "authorizationHeader": { + "name": "Authorization", + "in": "header", + "description": "The OAuth Bearer token. Please add the prefix 'Bearer ' before the token.", + "type": "string", + "required": true, + "x-prefix": "Bearer " + } + } +} \ No newline at end of file diff --git a/spec/services/smartview/oas3.fetched/spec_3.yaml b/spec/services/smartview/oas3.fetched/spec_3.yaml new file mode 100644 index 00000000..b31dc8fd --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_3.yaml @@ -0,0 +1,1876 @@ +{ + "swagger" : "2.0", + "host" : "api.equinix.com", + "info" : { + "title" : "Streaming Subscription API", + "description" : "IBX SmartView's subscription API allows users to subscribe to near real-time message feeds for events occurring within an IBX. Users can specify the types of messages to receive for each IBX. Users are able to view all subscriptions within their organization and update any subscription to modify the message feed being received.", + "version" : "1.0", + "termsOfService" : "https://www.equinix.com/about/legal/terms", + "contact" : { + "name" : "Equinix API Support", + "url" : "https://docs.equinix.com/api-support.htm" + } + }, + "produces" : [ "application/json" ], + "consumes" : [ "application/json" ], + "schemes" : [ "https" ], + "paths" : { + "/smartview/v2/streaming/subscriptions" : { + "get" : { + "summary" : "Get all subscription endpoint", + "description" : "The endpoint allows users to fetch details for all streaming subscriptions for a given organization.", + "parameters" : [ { + "$ref" : "#/parameters/authorizationHeader" + } ], + "operationId" : "getAllSubscriptions", + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SubscriptionResponse" + } + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "500" : { + "description" : "Internal server error" + } + } + }, + "post" : { + "summary" : "Create subscription endpoint", + "description" : "The endpoint allows users to define and create a new streaming subscription for a given organization.", + "parameters" : [ { + "name" : "body", + "in" : "body", + "required" : false, + "schema" : { + "$ref" : "#/definitions/SubscriptionRequest" + } + }, { + "$ref" : "#/parameters/authorizationHeader" + } ], + "operationId" : "createSubscription", + "responses" : { + "201" : { + "description" : "Created", + "headers" : { + "Location" : { + "type" : "string", + "description" : "Location of created subscription. For Example: /smartview/v2/streaming/subscriptions/607460b4e4a78360425bca56" + } + } + }, + "400" : { + "description" : "Bad request" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "422" : { + "description" : "Unprocessable entity", + "schema" : { + "$ref" : "#/definitions/ApiError" + } + }, + "500" : { + "description" : "Internal server error" + } + } + } + }, + "/smartview/v2/streaming/subscriptions/{id}" : { + "get" : { + "summary" : "Get subscription endpoint", + "description" : "The endpoint allows users to fetch details for a given streaming subscription for a given organization.", + "parameters" : [ { + "name" : "id", + "in" : "path", + "type" : "string", + "required" : true + }, { + "$ref" : "#/parameters/authorizationHeader" + } ], + "operationId" : "getSubscriptionById", + "responses" : { + "200" : { + "description" : "OK", + "schema" : { + "$ref" : "#/definitions/SubscriptionResponse" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "500" : { + "description" : "Internal server error" + } + } + }, + "put" : { + "summary" : "Update subscription endpoint", + "description" : "The endpoint allows users to modify and update an existing streaming subscription for a given organization. Request payload replaces current subscription.", + "parameters" : [ { + "name" : "id", + "in" : "path", + "type" : "string", + "required" : true + }, { + "name" : "body", + "in" : "body", + "required" : false, + "schema" : { + "$ref" : "#/definitions/SubscriptionRequest" + } + }, { + "$ref" : "#/parameters/authorizationHeader" + } ], + "operationId" : "updateSubscription", + "responses" : { + "204" : { + "description" : "No Content" + }, + "400" : { + "description" : "Bad request" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "422" : { + "description" : "Unprocessable entity", + "schema" : { + "$ref" : "#/definitions/ApiError" + } + }, + "500" : { + "description" : "Internal server error" + } + } + }, + "delete" : { + "summary" : "Delete subscription endpoint", + "description" : "The endpoint allows users to delete and remove an existing streaming subscription for a given organization.", + "parameters" : [ { + "name" : "id", + "in" : "path", + "type" : "string", + "required" : true + }, { + "$ref" : "#/parameters/authorizationHeader" + } ], + "operationId" : "deleteSubscriptionById", + "responses" : { + "204" : { + "description" : "No Content" + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "500" : { + "description" : "Internal server error" + } + } + } + }, + "/smartview/v2/streaming/subscriptionData/{subscriptionId}": { + "get": { + "summary": "Get subscription data via REST", + "description": "obtain API+ near real time data via a simple REST endpoint by employing subscription ID alongside other specified criteria, enabling a comprehensive and targeted approach to data retrieval. Subscription data endpoint works for all channels and not just REST channel.", + "operationId": "getSubscriptionData", + "parameters": [ + { + "name": "subscriptionId", + "in": "path", + "description": "Subscription ID", + "required": true, + "type": "string" + }, + { + "name": "ibxs", + "in": "query", + "description": "Filter, set of IBXs", + "required": false, + "type": "array", + "items": { + "type": "string" + } + }, + { + "name": "messageTypes", + "in": "query", + "description": "Filter, set of message types", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ALARM", + "ALERT", + "ENVIRONMENTAL", + "METERED_POWER", + "POWER", + "TAG_POINT" + ] + } + }, + { + "name": "streamIds", + "in": "query", + "description": "Filter, set of stream IDs", + "required": false, + "type": "array", + "items": { + "type": "string" + } + }, + { + "name": "offset", + "in": "query", + "description": "Pagination, offset of the first item", + "required": false, + "type": "integer", + "format": "int32", + "default": 0 + }, + { + "name": "limit", + "in": "query", + "description": "Pagination, limit of items returned", + "required": false, + "type": "integer", + "format": "int32", + "default": 250 + },{ + "$ref" : "#/parameters/authorizationHeader" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SubscriptionData" + } + }, + "401" : { + "description" : "Unauthorized" + }, + "403" : { + "description" : "Forbidden" + }, + "404" : { + "description" : "Not Found" + }, + "500" : { + "description" : "Internal server error" + } + } + } + } + }, + "definitions" : { + "ApiError" : { + "type" : "object", + "description" : "ApiError provides information about the occurred error.", + "properties" : { + "errorCode" : { + "type" : "string", + "example" : "EQIX-ES-5000422" + }, + "errorMessage" : { + "type" : "string", + "example" : "Unprocessable Entity" + }, + "correlationId" : { + "type" : "string", + "example" : "06ce37f6-12af-4f47-9d15-e4f8fc77e1c5" + }, + "details" : { + "type" : "string", + "example" : "The submitted payload does not meet validation criteria." + }, + "help" : { + "type" : "string", + "example" : " " + }, + "additionalInfo" : { + "$ref" : "#/definitions/ApiErrorAdditionalInfo" + } + } + }, + "ApiErrorAdditionalInfo" : { + "type" : "object", + "properties" : { + "constraintCode" : { + "type" : "string", + "example" : "IbxesMustExistOnPaidView" + }, + "reason" : { + "type" : "string", + "example" : "the [PA8] have no access to paid view" + } + } + }, + "Asset" : { + "type" : "object", + "description" : "Asset messages provide the latest readings for environmental, electrical, and mechanical assets within an IBX", + "required" : [ "accountNumber", "ibx" ], + "properties" : { + "accountNumber" : { + "type" : "string", + "example" : "135888" + }, + "ibx" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string" + } + }, + "assetClassification" : { + "type" : "array", + "description" : "Asset Classification value if specified, otherwise all allowable classifications", + "uniqueItems" : true, + "items" : { + "type" : "string", + "enum" : [ "MECHANICAL", "ENVIRONMENTAL", "ELECTRICAL" ] + }, + "maxItems" : 2147483647, + "minItems" : 1 + }, + "assetId" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string" + }, + "maxItems" : 2147483647, + "minItems" : 1 + } + } + }, + "AwsIotCoreChannelConfiguration" : { + "type" : "object", + "description" : "The configuration for an 'AWS_IOT_CORE' channel", + "required" : [ "url" ], + "properties" : { + "url" : { + "type" : "string", + "example" : "https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com" + } + } + }, + "AzureChannelConfiguration" : { + "type" : "object", + "description" : "The configuration for an 'AZURE' channel", + "properties" : { + "numberOfRetries" : { + "type" : "integer", + "format" : "int32", + "minimum" : 1, + "maximum" : 5 + }, + "numberOfConcurrentCalls" : { + "type" : "integer", + "format" : "int32", + "minimum" : 20, + "maximum" : 50 + }, + "batchSize" : { + "type" : "integer", + "format" : "int32", + "minimum" : 5, + "maximum" : 20 + } + } + }, + "Channel" : { + "type" : "object", + "description" : "Subscription can be created using one channel.", + "properties" : { + "channelType" : { + "type" : "string", + "enum" : [ "AWS_IOT_CORE", "WEBHOOK", "AZURE" ] + }, + "awsIotCoreChannelConfiguration" : { + "$ref" : "#/definitions/AwsIotCoreChannelConfiguration" + }, + "webhookChannelConfiguration" : { + "$ref" : "#/definitions/WebhookChannelConfiguration" + }, + "azureChannelConfiguration" : { + "$ref" : "#/definitions/AzureChannelConfiguration" + } + } + }, + "CustomAlert" : { + "type" : "object", + "description" : "Custom Alert messages are sent when user-defined alert conditions become true. The message contains the data point value that triggered the alert.", + "required" : [ "accountNumber", "ibx" ], + "properties" : { + "accountNumber" : { + "type" : "string", + "example" : "135888" + }, + "ibx" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string" + } + }, + "user" : { + "type" : "string" + } + } + }, + "Environmental" : { + "type" : "object", + "description" : "Environmental messages provide the latest temperature and humidity readings at the IBX and zone levels.", + "required" : [ "accountNumber", "ibx" ], + "properties" : { + "accountNumber" : { + "type" : "string", + "example" : "135888" + }, + "ibx" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string" + } + }, + "level" : { + "type" : "array", + "description" : "This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided.", + "uniqueItems" : true, + "items" : { + "type" : "string", + "enum" : [ "ZONE", "IBX", "CAGE" ] + }, + "maxItems" : 3, + "minItems" : 1 + } + } + }, + "MessageType" : { + "type" : "object", + "description" : "Message type for a given subscription", + "properties" : { + "asset" : { + "type" : "array", + "description" : "List of asset message type to subscribe", + "items" : { + "$ref" : "#/definitions/Asset" + } + }, + "environmental" : { + "type" : "array", + "description" : "List of environmental message type to subscribe", + "items" : { + "$ref" : "#/definitions/Environmental" + } + }, + "power" : { + "type" : "array", + "description" : "List of power message type to subscribe", + "items" : { + "$ref" : "#/definitions/PowerMessage" + } + }, + "meteredPower" : { + "type" : "array", + "description" : "List of metered power message type to subscribe", + "items" : { + "$ref" : "#/definitions/MeteredPower" + } + }, + "systemAlert" : { + "type" : "array", + "description" : "List of system alert message type to subscribe", + "items" : { + "$ref" : "#/definitions/SystemAlert" + } + }, + "customAlert" : { + "type" : "array", + "description" : "List of custom alert message type to subscribe", + "items" : { + "$ref" : "#/definitions/CustomAlert" + } + } + } + }, + "PowerMessage" : { + "type" : "object", + "description" : "Power messages provide the latest power usage data at the circuit-level.", + "required" : [ "accountNumber", "ibx" ], + "properties" : { + "accountNumber" : { + "type" : "string", + "example" : "135888" + }, + "ibx" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string" + } + } + } + }, + "SubscriptionRequest" : { + "type" : "object", + "description" : "Subscription Request Payload", + "properties" : { + "messageType" : { + "$ref" : "#/definitions/MessageType" + }, + "channel" : { + "description" : "channel", + "$ref" : "#/definitions/Channel" + } + } + }, + "SubscriptionResponse" : { + "type" : "object", + "description" : "Subscription Response", + "properties" : { + "id" : { + "type" : "string" + }, + "status" : { + "type" : "string", + "enum" : [ "PENDING", "ACTIVE", "FAILED", "DELETE_IN_PROGRESS", "DELETED" ] + }, + "messageType" : { + "$ref" : "#/definitions/MessageType" + }, + "channel" : { + "$ref" : "#/definitions/Channel" + }, + "orgId" : { + "type" : "string" + }, + "createdBy" : { + "type" : "string" + }, + "createdDateTime" : { + "type" : "string", + "format" : "date-time" + }, + "updatedBy" : { + "type" : "string" + }, + "updatedDateTime" : { + "type" : "string", + "format" : "date-time" + } + } + }, + "SystemAlert" : { + "type" : "object", + "description" : "System Alert messages are sent when Equinix-defined alert conditions become true. The message contains the data point value that triggered the alert as well as the current value.", + "required" : [ "accountNumber", "ibx" ], + "properties" : { + "accountNumber" : { + "type" : "string", + "example" : "135888" + }, + "ibx" : { + "type" : "array", + "uniqueItems" : true, + "items" : { + "type" : "string" + } + } + } + }, + "WebhookChannelConfiguration" : { + "type" : "object", + "description" : "The configuration for a 'WEBHOOK' channel", + "required" : [ "url" ], + "properties" : { + "sslCertificate" : { + "type" : "string", + "example" : "ZkFzZLY1IGRpY31kZXI=" + }, + "url" : { + "type" : "string", + "example" : "https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com" + }, + "numberOfRetries" : { + "type" : "integer", + "format" : "int32", + "minimum" : 1, + "maximum" : 5 + }, + "numberOfConcurrentCalls" : { + "type" : "integer", + "format" : "int32", + "minimum" : 20, + "maximum" : 50 + }, + "batchSize" : { + "type" : "integer", + "format" : "int32", + "minimum" : 5, + "maximum" : 20 + } + } + }, + "Alarm": { + "required": [ + "asset", + "currentValue", + "definitionId", + "ibx", + "status", + "streamId", + "tag", + "threshold" + ], + "type": "object", + "properties": { + "streamId": { + "type": "string", + "description": "unique message id", + "example": "IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH" + }, + "ibx": { + "type": "string", + "description": "ibx", + "example": "IBX" + }, + "region": { + "type": "string", + "description": "region", + "example": "EMEA" + }, + "metro": { + "type": "string", + "description": "metro", + "example": "metro" + }, + "country": { + "type": "string", + "description": "country", + "example": "FR" + }, + "conditionName": { + "type": "string", + "description": "condition name", + "example": "High" + }, + "severity": { + "type": "integer", + "description": "severity", + "format": "int32", + "example": 900 + }, + "type": { + "type": "string", + "description": "type", + "example": "Absolute" + }, + "heartbeat": { + "type": "boolean", + "description": "heartbeat", + "example": true + }, + "triggerRule": { + "type": "string", + "description": "trigger rule", + "example": "RULE:123:1" + }, + "definitionId": { + "type": "string", + "description": "unique message id", + "example": "IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH" + }, + "currentValue": { + "$ref": "#/definitions/AlarmCurrentValueDetails" + }, + "asset": { + "$ref": "#/definitions/AlarmAssetDetails" + }, + "tag": { + "$ref": "#/definitions/AlarmTagDetails" + }, + "status": { + "$ref": "#/definitions/AlarmStatusDetails" + }, + "threshold": { + "$ref": "#/definitions/AlarmThresholdDetails" + }, + "triggeredTime": { + "type": "string", + "description": "alarm triggered time", + "example": "2023-10-03T13:09:32" + }, + "processedTime": { + "type": "string", + "description": "alarm processed time", + "example": "2023-10-03T13:09:32" + }, + "normalProcessedTime": { + "type": "string", + "description": "alarm normal processed time", + "example": "2023-10-03T13:09:32" + }, + "normalTriggeredTime": { + "type": "string", + "description": "alarm normal triggered time", + "example": "2023-10-03T13:09:32" + }, + "dataQuality": { + "type": "string", + "description": "data quality: Good | Bad | Uncertain", + "example": "Good" + } + }, + "description": "message data" + }, + "AlarmAssetDetails": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "asset id", + "example": "IBX.CRAH-EQ1-04" + }, + "type": { + "type": "string", + "description": "asset type", + "example": "CRAH" + }, + "classification": { + "type": "string", + "description": "asset classification", + "example": "Mechanical" + } + }, + "description": "asset details" + }, + "AlarmCurrentValueDetails": { + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "current value unit", + "example": "%" + }, + "value": { + "type": "string", + "description": "current value value", + "example": "35.023" + }, + "type": { + "type": "string", + "description": "current value type", + "example": "Float" + } + }, + "description": "currentValue details" + }, + "AlarmMessageData": { + "required": [ + "data", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "message type", + "example": "system-alert", + "default": "system-alert" + }, + "data": { + "$ref": "#/definitions/Alarm" + } + }, + "description": "alarm message data" + }, + "AlarmStatusDetails": { + "type": "object", + "properties": { + "acknowledged": { + "type": "boolean", + "description": "status acknowledged", + "example": false + }, + "acknowledgementTime": { + "type": "string", + "description": "status acknowledgement time", + "example": "2023-10-03T13:09:32" + }, + "cleared": { + "type": "boolean", + "description": "status cleared", + "example": false + }, + "active": { + "type": "boolean", + "description": "status active", + "example": true + } + }, + "description": "status details" + }, + "AlarmTagDetails": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "tag id", + "example": "IBX.CRAH-EQ1-04:dirtyfilter" + }, + "displayName": { + "type": "string", + "description": "tag display name", + "example": "Temperature7" + } + }, + "description": "tag details" + }, + "AlarmThresholdDetails": { + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "threshold unit", + "example": "%" + }, + "stateLimit": { + "type": "string", + "description": "threshold state limit", + "example": "20" + }, + "message": { + "type": "string", + "description": "threshold message", + "example": "NA" + } + }, + "description": "threshold details" + }, + "Alert": { + "required": [ + "asset", + "ibx", + "streamId", + "tag", + "threshold" + ], + "type": "object", + "properties": { + "streamId": { + "type": "string", + "description": "unique message id", + "example": "IBX.685306-15843739015670.6640131967865078" + }, + "ibx": { + "type": "string", + "description": "ibx", + "example": "IBX" + }, + "region": { + "type": "string", + "description": "region", + "example": "APAC" + }, + "id": { + "type": "string", + "description": "id", + "example": "IBX.685306-15843739015670.6640131967865078" + }, + "type": { + "type": "string", + "description": "type", + "example": "power" + }, + "typeId": { + "type": "string", + "description": "type id", + "example": "drawAmpFalls" + }, + "conditional": { + "type": "string", + "description": "conditional", + "example": "N" + }, + "eventType": { + "type": "string", + "description": "event type", + "example": "Falls below" + }, + "heartbeat": { + "type": "boolean", + "description": "heartbeat", + "example": true + }, + "asset": { + "$ref": "#/definitions/AlertAssetDetails" + }, + "tag": { + "$ref": "#/definitions/AlertTagDetails" + }, + "threshold": { + "$ref": "#/definitions/AlertThresholdDetails" + }, + "triggeredTime": { + "type": "string", + "description": "alert triggered time", + "example": "2023-10-03T13:09:32" + }, + "dataQuality": { + "type": "string", + "description": "data quality: Good | Bad | Uncertain", + "example": "Good" + } + }, + "description": "message data" + }, + "AlertAssetDetails": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "asset id", + "example": "1.20849261E7" + }, + "type": { + "type": "string", + "description": "asset type", + "example": "CIRCUIT" + }, + "classification": { + "type": "string", + "description": "asset classification", + "example": "Electrical" + } + }, + "description": "asset details" + }, + "AlertMessageData": { + "required": [ + "data", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "message type", + "example": "custom-alert", + "default": "custom-alert" + }, + "data": { + "$ref": "#/definitions/Alert" + } + }, + "description": "alert message data" + }, + "AlertTagDetails": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "tag id", + "example": "IBX.CIRCUIT-EQ1-04:dirtyfilter" + } + }, + "description": "tag details" + }, + "AlertThresholdDetails": { + "type": "object", + "properties": { + "unit": { + "type": "string", + "description": "threshold unit", + "example": "Amp" + }, + "maxValue": { + "type": "string", + "description": "threshold max value", + "example": "5" + }, + "minValue": { + "type": "string", + "description": "threshold min value", + "example": "1" + }, + "value": { + "type": "string", + "description": "threshold value", + "example": "10" + } + }, + "description": "threshold details" + }, + "Environment": { + "required": [ + "asset", + "ibx", + "reading", + "streamId", + "tag" + ], + "type": "object", + "properties": { + "streamId": { + "type": "string", + "description": "unique message id", + "example": "IBX.IBX:humidity" + }, + "ibx": { + "type": "string", + "description": "ibx", + "example": "IBX" + }, + "asset": { + "$ref": "#/definitions/EnvironmentAssetDetails" + }, + "reading": { + "$ref": "#/definitions/EnvironmentValueWithUnit" + }, + "tag": { + "$ref": "#/definitions/EnvironmentTagDetails" + }, + "readingTime": { + "type": "string", + "description": "message reading time", + "example": "2023-10-03T13:09:32" + }, + "dataQuality": { + "type": "string", + "description": "data quality: Good | Bad | Uncertain", + "example": "Good" + } + }, + "description": "message data" + }, + "EnvironmentAssetDetails": { + "required": [ + "id", + "level" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "asset id", + "example": "IBX" + }, + "level": { + "type": "string", + "description": "asset level", + "example": "IBX" + } + }, + "description": "asset details" + }, + "EnvironmentMessageData": { + "required": [ + "data", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "message type", + "example": "environmental", + "default": "environmental" + }, + "data": { + "$ref": "#/definitions/Environment" + } + }, + "description": "environment message data" + }, + "EnvironmentTagDetails": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "tag id", + "example": "humidity" + }, + "displayName": { + "type": "string", + "description": "tag display name", + "example": "Humidity" + } + }, + "description": "tag details" + }, + "EnvironmentValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Environmental reading value", + "example": "50.045" + }, + "unit": { + "type": "string", + "description": "Environmental reading unit", + "example": "PERCENT" + } + }, + "description": "reading details" + }, + "MeteredPower": { + "required": [ + "asset", + "ibx", + "reading", + "streamId", + "tag" + ], + "type": "object", + "properties": { + "streamId": { + "type": "string", + "description": "unique message id", + "example": "IBX.CBM-B1-4-1:kilowattHour" + }, + "ibx": { + "type": "string", + "description": "ibx", + "example": "IBX" + }, + "asset": { + "$ref": "#/definitions/MeteredPowerAssetDetails" + }, + "cage": { + "type": "string", + "description": "cage", + "example": "IBX:02:021305" + }, + "cageSerialNo": { + "type": "string", + "description": "cage serial number", + "example": "021305-20604711" + }, + "accountNumber": { + "type": "string", + "description": "account number", + "example": "123456" + }, + "tag": { + "$ref": "#/definitions/MeteredPowerTagDetails" + }, + "reading": { + "$ref": "#/definitions/MeteredPowerValueWithUnit" + }, + "readingTime": { + "type": "string", + "description": "message reading time", + "example": "2023-10-03T13:09:32" + }, + "dataQuality": { + "type": "string", + "description": "data quality: Good | Bad | Uncertain", + "example": "Good" + } + }, + "description": "message data" + }, + "MeteredPowerAssetDetails": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "asset id", + "example": "IBX.CBM-B1-4-1" + }, + "type": { + "type": "string", + "description": "asset type", + "example": "Customer Billing Meter" + } + }, + "description": "asset details" + }, + "MeteredPowerMessageData": { + "required": [ + "data", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "message type", + "example": "metered-power", + "default": "metered-power" + }, + "data": { + "$ref": "#/definitions/MeteredPower" + } + }, + "description": "metered-power message data" + }, + "MeteredPowerTagDetails": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "tag id", + "example": "IBX.CBM-B1-4-1:kilowattHour" + }, + "displayName": { + "type": "string", + "description": "tag display name", + "example": "kilowattHour" + } + }, + "description": "tag details" + }, + "MeteredPowerValueWithUnit": { + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "reading value", + "example": "412568.125" + }, + "unit": { + "type": "string", + "description": "reading unit", + "example": "kWh" + } + }, + "description": "reading details" + }, + "Pagination": { + "required": [ + "limit", + "offset", + "total" + ], + "type": "object", + "properties": { + "offset": { + "type": "integer", + "description": "offset of the first item in the given page", + "format": "int32", + "example": 100 + }, + "limit": { + "type": "integer", + "description": "limit specifies the maximum limit of items returned", + "format": "int32", + "example": 100 + }, + "total": { + "type": "integer", + "description": "number of total records", + "format": "int32", + "example": 500 + }, + "next": { + "type": "string", + "description": "relative URL to the next page, has value only when next page exists", + "example": "?offset=200&limit=100" + }, + "previous": { + "type": "string", + "description": "relative URL to the previous page, has value only when previous page exists", + "example": "?offset=0&limit=100" + } + }, + "description": "pagination" + }, + "Power": { + "required": [ + "asset", + "ibx", + "streamId" + ], + "type": "object", + "properties": { + "streamId": { + "type": "string", + "description": "unique message id", + "example": "IBX:140838" + }, + "ibx": { + "type": "string", + "description": "ibx", + "example": "IBX" + }, + "asset": { + "$ref": "#/definitions/PowerAssetDetails" + }, + "cage": { + "type": "string", + "description": "cage", + "example": "IBX:02:021305" + }, + "cabinet": { + "type": "string", + "description": "cabinet", + "example": "IBX:01:000Z4Z:0102" + }, + "accountNumber": { + "type": "string", + "description": "account number", + "example": "123456" + }, + "description": { + "type": "string", + "description": "description", + "example": "32-amp 230v Single Phase Primary AC Power" + }, + "oid": { + "type": "string", + "description": "oid", + "example": "1.3.6.1.2.1.299.36.10.1099" + }, + "circuitType": { + "type": "string", + "description": "circuit type", + "example": "PRIMARY" + }, + "realPower": { + "$ref": "#/definitions/PowerRealPowerValueWithUnit" + }, + "apparentPower": { + "$ref": "#/definitions/PowerApparentPowerValueWithUnit" + }, + "contractualPower": { + "$ref": "#/definitions/PowerContractualPowerValueWithUnit" + }, + "current": { + "$ref": "#/definitions/PowerCurrentValueWithUnit" + }, + "powerFactor": { + "$ref": "#/definitions/PowerPowerFactorValueWithUnit" + }, + "soldCurrent": { + "$ref": "#/definitions/PowerSoldCurrentValueWithUnit" + }, + "soldPower": { + "$ref": "#/definitions/PowerSoldPowerValueWithUnit" + }, + "powerConsumptionToContractual": { + "$ref": "#/definitions/PowerPowerConsumptionToContractualValueWithUnit" + }, + "cabinetRating": { + "$ref": "#/definitions/PowerCabinetRatingValueWithUnit" + }, + "peakLastSevenDays": { + "$ref": "#/definitions/PowerPeakLastSevenDaysValueWithUnit" + }, + "peakLastSevenDaysRatio": { + "$ref": "#/definitions/PowerPeakLastSevenDaysRatioValueWithUnit" + }, + "peakLastSevenDaysContractualPower": { + "$ref": "#/definitions/PowerPeakLastSevenDaysContractualPowerValueWithUnit" + }, + "peakLastSevenDaysTime": { + "type": "string", + "description": "peak last seven days time", + "example": "2023-10-03T13:09:32" + }, + "lastUpdated": { + "type": "string", + "description": "last updated time", + "example": "2023-10-03T13:09:32" + }, + "readingTime": { + "type": "string", + "description": "message reading time", + "example": "2023-10-03T13:09:32" + } + }, + "description": "message data" + }, + "PowerApparentPowerValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "ApparentPower reading value", + "example": "7.36" + }, + "unit": { + "type": "string", + "description": "ApparentPower reading unit", + "example": "kVA" + } + }, + "description": "apparentPower details" + }, + "PowerAssetDetails": { + "required": [ + "id", + "type" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "asset id", + "example": "IBX:140838" + }, + "type": { + "type": "string", + "description": "asset type", + "example": "CIRCUIT" + } + }, + "description": "asset details" + }, + "PowerCabinetRatingValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "CabinetRating reading value", + "example": "8.125" + }, + "unit": { + "type": "string", + "description": "CabinetRating reading unit", + "example": "kVA" + } + }, + "description": "cabinetRating details" + }, + "PowerContractualPowerValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "ContractualPower reading value", + "example": "0.0" + }, + "unit": { + "type": "string", + "description": "ContractualPower reading unit", + "example": "kVA" + } + }, + "description": "contractualPower details" + }, + "PowerCurrentValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "Current reading value", + "example": "7.36" + }, + "unit": { + "type": "string", + "description": "Current reading unit", + "example": "A" + } + }, + "description": "current details" + }, + "PowerMessageData": { + "required": [ + "data", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "message type", + "example": "power", + "default": "power" + }, + "data": { + "$ref": "#/definitions/Power" + } + }, + "description": "power message data" + }, + "PowerPeakLastSevenDaysContractualPowerValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "PeakLastSevenDaysContractualPower reading value", + "example": "0.0" + }, + "unit": { + "type": "string", + "description": "PeakLastSevenDaysContractualPower reading unit", + "example": "kVA" + } + }, + "description": "peakLastSevenDaysContractualPower details" + }, + "PowerPeakLastSevenDaysRatioValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "PeakLastSevenDaysRatio reading value", + "example": "48.125" + }, + "unit": { + "type": "string", + "description": "PeakLastSevenDaysRatio reading unit", + "example": "PERCENT" + } + }, + "description": "peakLastSevenDaysRatio details" + }, + "PowerPeakLastSevenDaysValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "PeakLastSevenDays reading value", + "example": "7.36" + }, + "unit": { + "type": "string", + "description": "PeakLastSevenDays reading unit", + "example": "kVA" + } + }, + "description": "peakLastSevenDays details" + }, + "PowerPowerConsumptionToContractualValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "PowerConsumptionToContractual reading value", + "example": "68.125" + }, + "unit": { + "type": "string", + "description": "PowerConsumptionToContractual reading unit", + "example": "PERCENT" + } + }, + "description": "powerConsumptionToContractual details" + }, + "PowerPowerFactorValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "PowerFactor reading value", + "example": "0.0" + }, + "unit": { + "type": "string", + "description": "PowerFactor reading unit", + "example": "pf" + } + }, + "description": "powerFactor details" + }, + "PowerRealPowerValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "RealPower reading value", + "example": "0.0" + }, + "unit": { + "type": "string", + "description": "RealPower reading unit", + "example": "kW" + } + }, + "description": "realPower details" + }, + "PowerSoldCurrentValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "SoldCurrent reading value", + "example": "7.36" + }, + "unit": { + "type": "string", + "description": "SoldCurrent reading unit", + "example": "A" + } + }, + "description": "soldCurrent details" + }, + "PowerSoldPowerValueWithUnit": { + "required": [ + "unit", + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "SoldPower reading value", + "example": "68.125" + }, + "unit": { + "type": "string", + "description": "SoldPower reading unit", + "example": "kVA" + } + }, + "description": "soldPower details" + }, + "SubscriptionData": { + "type": "object", + "properties": { + "alarmMessageData": { + "type": "array", + "description": "alarm message data", + "items": { + "$ref": "#/definitions/AlarmMessageData" + } + }, + "alertMessageData": { + "type": "array", + "description": "alert message data", + "items": { + "$ref": "#/definitions/AlertMessageData" + } + }, + "environmentMessageData": { + "type": "array", + "description": "environment message data", + "items": { + "$ref": "#/definitions/EnvironmentMessageData" + } + }, + "meteredPowerMessageData": { + "type": "array", + "description": "metered-power message data", + "items": { + "$ref": "#/definitions/MeteredPowerMessageData" + } + }, + "powerMessageData": { + "type": "array", + "description": "power message data", + "items": { + "$ref": "#/definitions/PowerMessageData" + } + }, + "tagPointMessageData": { + "type": "array", + "description": "tag-point message data", + "items": { + "$ref": "#/definitions/TagPointMessageData" + } + }, + "pagination": { + "$ref": "#/definitions/Pagination" + } + } + }, + "TagDetails": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "tag id", + "example": "IBX.ATS-M1-04:outputvoltageca" + }, + "displayName": { + "type": "string", + "description": "tag display name", + "example": "Output Voltage CA" + } + }, + "description": "tag details" + }, + "TagPoint": { + "required": [ + "dataQuality", + "ibx", + "reading", + "readingTime", + "streamId", + "tag" + ], + "type": "object", + "properties": { + "streamId": { + "type": "string", + "description": "unique message id", + "example": "IBX.ATS-M1-04:outputvoltageca" + }, + "ibx": { + "type": "string", + "description": "ibx", + "example": "IBX" + }, + "tag": { + "$ref": "#/definitions/TagDetails" + }, + "reading": { + "$ref": "#/definitions/TagPointValueWithUnit" + }, + "readingTime": { + "type": "string", + "description": "message reading time", + "example": "2023-10-03T13:09:32" + }, + "dataQuality": { + "type": "string", + "description": "data quality: Good | Bad | Uncertain", + "example": "Good" + } + }, + "description": "message data" + }, + "TagPointMessageData": { + "required": [ + "data", + "type" + ], + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "message type", + "example": "tag-point", + "default": "tag-point" + }, + "data": { + "$ref": "#/definitions/TagPoint" + } + }, + "description": "tag-point message data" + }, + "TagPointValueWithUnit": { + "required": [ + "value" + ], + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "reading value", + "example": "50.045" + }, + "unit": { + "type": "string", + "description": "reading unit", + "example": "V" + } + }, + "description": "reading details" + } + }, + "parameters" : { + "authorizationHeader" : { + "name" : "Authorization", + "in" : "header", + "type" : "string", + "description" : "The OAuth Bearer token. Please add the prefix 'Bearer ' before the token.", + "required" : true, + "x-prefix" : "Bearer " + } + } +} \ No newline at end of file diff --git a/spec/services/smartview/oas3.fetched/spec_4.yaml b/spec/services/smartview/oas3.fetched/spec_4.yaml new file mode 100644 index 00000000..6aacae82 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_4.yaml @@ -0,0 +1,604 @@ +swagger: '2.0' +info: + title: DCIM Alert APIs + description: | + Empower yourself with DCIM Alert APIs. Use these APIs to fetch SmartView custom alert information, that is user-generated. They return custom alert data and alert activity logs from requested inputs (ibx,category,event type,account number,page number,limit, order by, sort by, acknowledged). Bearer authorization token is the only required header information and mandatory query parameters for the endpoints are limit and page number. + termsOfService: https://www.equinix.com/about/legal/terms + version: 0.0.2 + contact: + name: Equinix API Support + url: https://docs.equinix.com/api-support.htm +tags: + - name: DCIM Alerts + description: Access alert information +host: api.equinix.com +schemes: + - https + +produces: + - application/json +paths: + /smartview/v1/alerts/getAlerts: + get: + tags: + - Alerts + operationId: getAlerts + summary: obtain active SmartView alerts. + description: > + The get alert endpoint returns alert info for inputs + (ibx,category,event type,account number,page number,limit, order by, sort by). + parameters: + - $ref: '#/parameters/authorizationHeader' + - name: ibx + in: query + description: IBX + type: string + - name: category + in: query + description: Category + type: string + - name: eventType + in: query + description: Event Type. + type: string + - name: accountNo + in: query + description: Account Number + type: string + - name: pageNum + in: query + required: true + description: Page Number + type: string + - name: limit + in: query + required: true + description: Limit + type: string + - name: orderBy + in: query + description: | + order by ascending or descending + type: string + - name: sortBy + in: query + description: | + sortBy value + type: string + responses: + '200': + description: Valid Response + schema: + $ref: '#/definitions/Alerts' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + /smartview/v1/alerts/getAlertActivityLog: + get: + tags: + - Alert Log + operationId: getAlertActivityLog + summary: get alert activity logs + description: > + This endpoint returns alert log for inputs + (ibx,category,event type,account number,page number,limit, order by, + sort by,acknowledged). + parameters: + - $ref: '#/parameters/authorizationHeader' + - name: ibx + in: query + description: IBX + type: string + - name: category + in: query + description: Category + type: string + - name: eventType + in: query + description: Event Type + type: string + - name: isAcknowledged + in: query + description: Is Acknowledged + type: string + - name: accountNo + in: query + description: Account Number + type: string + - name: pageNum + in: query + required: true + description: Page Number + type: string + - name: limit + in: query + required: true + description: Limit + type: string + - name: orderBy + in: query + description: | + order by ascending or descending + type: string + - name: sortBy + in: query + description: | + sortBy value + type: string + responses: + '200': + description: Valid Response + schema: + $ref: '#/definitions/AlertActivityLog' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' +definitions: + status: + type: object + properties: + type: + type: string + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + cause: + type: string + description: root cause for error + example: 'null' + info: + type: object + properties: + code: + type: number + example: '1000' + description: '[1000|3001|3002|3003|4000] are the possible status codes' + pattern: '^[0-9]{4}$' + minimum: 1000 + maximum: 7000 + msg: + type: string + example: OK + description: >- + [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid + LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To + Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the + possible messages + Alerts: + type: object + properties: + payLoad: + type: array + items: + $ref: '#/definitions/AlertObj' + status: + $ref: '#/definitions/status' + AlertActivityLog: + type: object + properties: + payLoad: + type: array + items: + $ref: '#/definitions/AlertActivityLogObj' + status: + $ref: '#/definitions/status' + AlertObj: + type: object + properties: + alerts: + type: array + items: + $ref: '#/definitions/AlertDto1' + totalCount: + type: number + example: '1000' + description: totalCount + pattern: '^[0-9]{4}$' + AlertActivityLogObj: + type: object + properties: + alerts: + type: array + items: + $ref: '#/definitions/AlertDto2' + totalCount: + type: number + example: '1000' + description: totalCount + pattern: '^[0-9]{4}$' + AlertDto1: + type: object + properties: + id: + type: string + example: 15476966877480.828 + ibx: + type: string + example: CH1 + alertType: + type: object + $ref: '#/definitions/AlertType' + section: + type: string + example: electrical + customerAssets: + type: array + items: + $ref: '#/definitions/CustomerAssets' + infraAssets: + type: array + items: + $ref: '#/definitions/CustomerAssets' + heartbeatType: + type: string + example: 'off' + recipients: + type: array + items: + $ref: '#/definitions/recipientsArray' + conditionalAlert: + type: string + example: test + thresholdUnit: + type: string + example: '%' + thresholdValueMin: + type: string + example: '12' + thresholdValueMax: + type: string + example: '12' + thresholdValue: + type: string + example: '12' + createdBy: + type: string + example: test + createdOn: + type: number + example: 1547696687748 + description: createdOn + pattern: '^[0-9]{4}$' + modifiedOn: + type: number + example: 1547696687748 + description: modifiedOn + pattern: '^[0-9]{4}$' + lastTriggeredOn: + type: number + example: 1547696687748 + description: lastTriggeredOn + pattern: '^[0-9]{4}$' + formatedSection: + type: string + example: Power Draw + enabledAction: + type: string + example: Enabled + isDuplicate: + type: boolean + example: false + userId: + type: string + example: userId + ucmid: + type: string + example: ucmid + accountNo: + type: string + example: 3213213 + uom: + type: string + example: STANDARD + status: + type: string + example: status + region: + type: string + example: APAC + country: + type: string + example: SG + metro: + type: string + example: SG + alertPaused: + type: boolean + example: true + description: isAlertPaused + AlertDto2: + type: object + properties: + id: + type: string + example: 15476966877480.828 + region: + type: string + example: APAC + ibx: + type: string + example: CH1 + createdOn: + type: number + example: 1547696687748 + description: createdOn + pattern: '^[0-9]{4}$' + modifiedOn: + type: number + example: 1547696687748 + description: modifiedOn + pattern: '^[0-9]{4}$' + alertType: + type: object + $ref: '#/definitions/AlertType' + section: + type: string + example: electrical + triggeredOn: + type: number + example: 1547696687748 + description: lastTriggeredOn + pattern: '^[0-9]{4}$' + asset: + type: string + example: SG3 + affectedCustomerAsset: + type: string + example: 1069 + alertTypeName: + type: string + example: tempExceeds + year: + type: string + example: 2019 + accountNo: + type: string + example: 115767 + conditionalAlert: + type: array + items: + $ref: '#/definitions/ConditionalAlert' + notificationType: + type: string + example: ALERT + currentvalue: + type: string + example: 23.38019323671497 + assettype: + type: string + example: IBX + tagid: + type: string + example: Temperature + eventtype: + type: string + example: Exceeds + assetclassification: + type: string + example: assetclassification + relatedincidents: + type: string + example: assetclassification + type: + type: string + example: ALERT + timeacknowledged: + type: string + example: 1547008897864 + lastmaintenance: + type: string + example: 1547008897864 + severity: + type: string + example: ALERT + resiliency: + type: string + example: 'off' + timeprocessed: + type: string + example: 'off' + timetriggeredMilisec: + type: string + example: '1547007734678' + assetname: + type: string + example: 'SG3' + uom: + type: string + example: 'STANDARD' + timeZone: + type: string + example: 'Asia/Singapore' + thresholdUnit: + type: string + example: '%' + thresholdValueMin: + type: string + example: '12' + thresholdValueMax: + type: string + example: '12' + thresholdValue: + type: string + example: '12' + country: + type: string + example: SG + metro: + type: string + example: SG + acknowledge: + type: boolean + example: true + CustomerAssets: + type: object + properties: + type: + type: string + example: cage + assets: + type: array + items: + example: '1069' + assetsName: + type: array + items: + example: 'SG1:03:A20011' + ConditionalAlert: + type: object + properties: + region: + type: string + example: APAC + ibx: + type: string + example: SG3 + uom: + type: string + example: STANDARD + section: + type: string + example: mechanical + affectedCustomerAsset: + type: string + example: '258' + customerAssets: + type: string + example: '258' + infraAssets: + type: string + example: '258' + measurementType: + type: string + example: '258' + alertType: + type: string + example: '258' + thresholdUnit: + type: string + example: '%' + thresholdValueMin: + type: string + example: '12' + thresholdValueMax: + type: string + example: '12' + thresholdValue: + type: string + example: '12' + asset: + type: string + example: '12' + condalerttypeid: + type: string + example: '12' + condassetclassification: + type: string + example: '12' + condassetid: + type: string + example: '12' + condcurrentvalue: + type: string + example: '12' + condeventtype: + type: string + example: '12' + condtagid: + type: string + example: '12' + assetname: + type: string + example: '12' + assettype: + type: string + example: '12' + recipientsArray: + type: object + properties: + firstName: + type: string + example: test + lastName: + type: string + example: test + email_address: + type: string + example: test + mobilePhoneCode: + type: string + example: test + mobilePhoneNumber: + type: string + example: test + self: + type: boolean + example: true + sms: + type: boolean + example: true + voice: + type: boolean + example: true + email: + type: boolean + example: true + AlertType: + type: object + properties: + id: + type: string + example: cageDrawExceeds + type: + type: string + example: value + value: + type: string + example: Cage Draw kVA to Contractual kVA% Exceeds + unit: + type: string + example: percentage + tagId: + type: string + example: '258' + defaultValue: + type: string + example: '258' + eventType: + type: string + example: Exceeds + PowerData_Error: + type: object + properties: + payLoad: + type: object + status: + type: object + properties: + type: + type: string + description: '[INFO|ERROR] are the possible values' + enum: + - ERROR + statuscode: + type: number + example: '4000' + description: '[1000|3001|3002|3003|4000] are the possible status codes' + msg: + type: string + example: INTERNAL_ERROR + description: >- + - Ok|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|Invalid + IBX|Invalid EventType|Invalid category|Missing Pagenum|Invalid + Pagenum|Missing Limit|Invalid Limit|Invalid OrderBy|Invalid SortBy + are the + possible messages +parameters: + authorizationHeader: + name: Authorization + in: header + description: Specify the Access token with prefix 'Bearer '. + type: string + required: true \ No newline at end of file diff --git a/spec/services/smartview/oas3.fetched/spec_5.yaml b/spec/services/smartview/oas3.fetched/spec_5.yaml new file mode 100644 index 00000000..c91dc599 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_5.yaml @@ -0,0 +1,1384 @@ +{ + "swagger": "2.0", + "info": { + "title": "Smart View Assets APIs", + "description": "Empower yourself with Smart View Assets API. These provide the ability to consumers to list infra asset, fetch infra asset details, get affected customer assets based on asset id. Given an account number, IBX code, cage and asset classification (Electrical, Mechanical), information about the asset in a hierarchical structure comprising of the category, template and asset is returned. Given a category and a template, a list of assets is returned.\n", + "version": "1.0", + "termsOfService": "https://www.equinix.com/about/legal/terms", + "contact": { + "name": "Equinix API Support", + "url": "https://docs.equinix.com/api-support.htm" + } + }, + "host": "api.equinix.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "tags": [ + { + "name": "Smart View Assets", + "description": "Access Asset Information" + } + ], + "paths": { + "/smartview/v1/asset/list": { + + "get": { + "tags": [ + "Smart View Assets" + ], + "operationId": "getAsset", + "summary": "get assets list information", + "description": "This endpoint returns information about asset in a hierarchical structure ( category / template / asset ) based on the input account number, IBX code, cage and asset classification (Electrical, Mechanical).", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "description": "customer account number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "ibx code", + "type": "string", + "required": true + }, + { + "name": "classification", + "in": "query", + "description": "asset classification (Electrical, Mechanical)", + "type": "string", + "enum": [ + "Electrical", + "Mechanical" + ], + "required": true + }, + { + "name": "cages", + "in": "query", + "type": "array", + "items": { + "type": "string" + }, + "description": "cage unique space id to be used to filter the assets list\nassumed to be all cage unique space id if no value is sent.\n" + } + ], + "responses": { + "200": { + "description": "Asset Details", + "schema": { + "$ref": "#/definitions/AssetsList" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + } + ] + }, + "/smartview/v1/asset/details": { + + "get": { + "tags": [ + "Smart View Assets" + ], + "operationId": "getAssetDetails", + "summary": "get details for an asset.", + "description": "This endpoint returns information about asset details including tag points lists for a given asset identifier.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "description": "customer account number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "ibx code", + "type": "string", + "required": true + }, + { + "name": "classification", + "in": "query", + "type": "string", + "description": "asset classification (Electrical, Mechanical)", + "required": true + }, + { + "name": "assetId", + "in": "query", + "description": "asset id", + "type": "string", + "required": true + } + ], + "responses": { + "200": { + "description": "Asset Details", + "schema": { + "$ref": "#/definitions/AssetDetailsGetResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + } + ], + "post": { + "tags": [ + "Smart View Assets" + ], + "summary": "get asset details", + "description": "This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "payload", + "in": "body", + "description": "request schema", + "schema": { + "$ref": "#/definitions/AssetDetailsRequest" + } + } + ], + "responses": { + "200": { + "description": "Asset Details response object", + "schema": { + "$ref": "#/definitions/AssetDetailsResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + + }, + "/smartview/v1/asset/tagpoint/affected-assets": { + + "get": { + "tags": [ + "Smart View Assets" + ], + "operationId": "getAffectedAsset", + "summary": "get affected customers assets hierarchy", + "description": "The endpoint returns information regarding the affected assets of customers for a given asset identifier", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "description": "customer account number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "ibx code", + "type": "string", + "required": true + }, + { + "name": "assetId", + "in": "query", + "description": "asset id", + "type": "string", + "required": true + }, + { + "name": "classification", + "in": "query", + "description": "asset classification(Electrical, Mechanical)", + "type": "string", + "required": true, + "enum": [ + "Electrical", + "Mechanical" + ] + } + ], + "responses": { + "200": { + "description": "Affect Customer Circuits ( Cage > Cabinet > Circuit hierarchy )", + "schema": { + "$ref": "#/definitions/HierarchyNode" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + } + ] + }, + "/smartview/v1/asset/search": { + + "get": { + "tags": [ + "Smart View Assets" + ], + "operationId": "searchAsset", + "summary": "Search for Assets matching identifiers", + "description": "This endpoint is used to search for assets using wild card search patterns matching the asset identifier.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "description": "Customer Account Number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "IBX Code", + "type": "string", + "required": true + }, + { + "name": "searchString", + "in": "query", + "description": "Search String", + "type": "string", + "required": true + } + ], + "responses": { + "200": { + "description": "Asset Details", + "schema": { + "$ref": "#/definitions/Assets" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + } + ] + }, + "/smartview/v1/asset/tagpoint/current": { + "get": { + "tags": [ + "Smart View Assets" + ], + "operationId": "getCurrentTagPoint", + "summary": "obtain latest tag point data", + "description": "This endpoint fetches and provides the most recent tag point information for a given tag identifier.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "type": "string", + "description": "customer account number", + "required": true + }, + { + "name": "ibx", + "in": "query", + "type": "string", + "description": "ibx code", + "required": true + }, + { + "name": "tagid", + "in": "query", + "type": "string", + "description": "tag id is the unique identifier for the tag point", + "required": true + } + ], + "responses": { + "200": { + "description": "the current tag point data", + "schema": { + "$ref": "#/definitions/TagPointData" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + } + ], + "post": { + "tags": [ + "Smart View Assets" + ], + "summary": "get current tag points data", + "description": "This endpoint fetches the latest read values for given tag points using given tag identifiers.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "payload", + "in": "body", + "schema": { + "$ref": "#/definitions/CurrentTagPointRequest" + } + } + ], + "responses": { + "200": { + "description": "data for tag points based on input payload", + "schema": { + "$ref": "#/definitions/TagPointData" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/smartview/v1/asset/tagpoint/trending": { + "get": { + "tags": [ + "Smart View Assets" + ], + "operationId": "getTagpointTrending", + "summary": "obtain trending tag point data", + "description": "This endpoint fetches and returns the trending tag point information for a given tag identifier.", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "type": "string", + "description": "customer account number", + "required": true + }, + { + "name": "ibx", + "in": "query", + "type": "string", + "description": "ibx code", + "required": true + }, + { + "name": "tagid", + "in": "query", + "type": "string", + "description": "tag id is the unique identifier for the tag point", + "required": true + }, + { + "name": "interval", + "in": "query", + "type": "string", + "required": true, + "description": "tag point data interval (1h, 1d, reading)" + }, + { + "name": "fromDate", + "in": "query", + "type": "integer", + "required": true, + "description": "from date UTC time (1494345600000)" + }, + { + "name": "toDate", + "in": "query", + "type": "integer", + "required": true, + "description": "to date UTC time (1494432000000)" + } + ], + "responses": { + "200": { + "description": "the current tag point data", + "schema": { + "$ref": "#/definitions/TagPointTrendingResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/authorizationHeader" + } + ] + } + }, + "definitions": { + "GenericRequest": { + "type": "object", + "properties": { + "accountNo": { + "type": "string", + "description": "customer account number" + }, + "ibx": { + "type": "string", + "description": "ibx code" + }, + "classification": { + "type": "string", + "description": "asset classification" + } + } + }, + "CurrentTagPointRequest": { + "type": "object", + "description": "request object for tagpoint/current POST request", + "properties": { + "accountNo": { + "type": "string", + "description": "customer account number" + }, + "tagIds": { + "type": "array", + "maxLength": 1000, + "items": { + "type": "string", + "description": "tag ids" + } + }, + "ibx": { + "type": "string", + "description": "ibx code" + } + } + }, + "AssetDetailsRequest": { + "allOf": [ + { + "$ref": "#/definitions/GenericRequest" + }, + { + "properties": { + "assetIds": { + "type": "array", + "items": { + "type": "string", + "description": "asset id" + } + } + } + } + ] + }, + "CurrentTagPointResponse": { + "type": "object", + "description": "response object for tagpoint/current POST request", + "properties": { + "totalCount": { + "description": "total number of current tag point" + } + } + }, + "AssetDetailsGetResponse": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "assetId": { + "type": "string", + "description": "asset id for the Asset", + "example": "CH1.Chiller-1" + }, + "assetType": { + "type": "string", + "description": "Template Name for the asset", + "example": "Cooling" + }, + "userPrefTimeZone": { + "type": "string", + "description": "Time zone for the user", + "example": "Asia/Katmandu" + }, + "tags": { + "type": "array", + "description": "List of tag points for the Asset", + "items": { + "$ref": "#/definitions/TagPointDataArray" + } + }, + "lastMaintenanceDate": { + "type": "string", + "example": "Aug 03,2016", + "description": "Datetime when the machine had its last maintenance" + }, + "manufacturerName": { + "type": "string", + "description": "Manufacturer name for the Asset", + "example": "SMARDT" + }, + "equipmentModelNumber": { + "type": "string", + "description": "Equipment Model Number", + "example": "SACAC110-3EXX-2A1-16A-010" + }, + "equipmentSerialNumber": { + "type": "string", + "description": "Equipment Serial Number", + "example": "FF0010I233Q1276" + }, + "alarmLastTriggeredTime": { + "type": "string", + "example": "Aug 21,2017 04:38 AM", + "description": "Datetime when the latest alarm was triggered on the asset" + }, + "alarmLastProcessedTime": { + "type": "string", + "example": "Aug 21,2017 05:52 AM", + "description": "Datetime when the latest alarm was processed on the asset" + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" + } + } + } + } + }, + "AssetDetailsResponse": { + "type": "object", + "description": "response object for asset/details POST request", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "totalCount": { + "description": "total number of assets that match the request filters", + "type": "integer", + "example": 1 + }, + "assetDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetDetails" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" + } + } + } + } + }, + "AssetDetailResponse": { + "type": "object", + "description": "response object for asset/details POST request", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "assetDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetDetails" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" + } + } + } + } + }, + "TagPointTrendingData": { + "type": "object", + "properties": { + "datetime": { + "type": "string", + "example": "1504779867508", + "description": "UTC time" + }, + "value": { + "type": "string", + "example": "0.0" + } + } + }, + "TagPointTrendingResponse": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "accountNumber": { + "type": "string", + "example": "1" + }, + "ibx": { + "type": "string", + "example": "CH1" + }, + "interval": { + "type": "string", + "example": "1h", + "description": "data sampling interval", + "enum": [ + "5m", + "15m", + "1h", + "1d" + ] + }, + "uom": { + "type": "string", + "example": "s" + }, + "tagId": { + "type": "string", + "example": "CH1.UPS-20:batterytimeremaining", + "description": "the unique identifiers for the tag point ids for which the trending point is requested.\n" + }, + "tagDisplayName": { + "type": "string", + "example": "Battery Time Remaining", + "description": "the \n" + }, + "dataType": { + "example": "Float", + "description": "data type of trend data vlaues", + "type": "string" + }, + "data": { + "type": "array", + "description": "trend data of tag", + "items": { + "$ref": "#/definitions/TagPointTrendingData" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages" + } + } + } + } + }, + "AssetsArray": { + "type": "object", + "properties": { + "assetId": { + "type": "string", + "example": "CH1.ASTS-1-2-A", + "description": "The assetid is the circuit number, sensor id, asset id, asset id \nfor type circuit, sensor, electrical and mechanical resp.\n" + }, + "type": { + "type": "string", + "example": "ASTS" + }, + "assetLabel": { + "type": "string", + "example": "CH1.ASTS-1-2-A", + "description": "Asset Label is the Circuit display label, Sensor ID, and Asset ID\nfor types circuit, sensor, electrical and mechanical resp. \n" + }, + "assetClassification": { + "type": "string", + "description": "Asset classification is electrical or mechanical\n", + "example": "Electrical" + } + } + }, + "TagPointDataArray": { + "type": "object", + "description": "Tag Point is a property of the Asset it is linked to.\n", + "properties": { + "value": { + "type": "string", + "description": "Current data value for the tag point\n", + "example": 4.9 + }, + "tagId": { + "type": "string", + "description": "ID for the tagPoint - Unique Identifier for the Tag Point\n", + "example": "CH1.Chiller-1:evapleavingwatertemperature" + }, + "tagDisplayName": { + "type": "string", + "description": "Generic label for the tag point\n", + "example": "Evaporator Leaving Water Temperature" + }, + "uom": { + "type": "string", + "description": "Unit of measure for the data value for the tag point\n", + "example": "°C" + }, + "alarmStatus": { + "type": "string", + "description": "Generic label for the tag point \n", + "example": "OK" + }, + "readingTime": { + "type": "string", + "example": "20170907060449", + "description": "date time when the tag point value was read from the device.\n" + } + } + }, + "TagPointDataArrayCurrent": { + "type": "object", + "description": "Tag Point is a property of the Asset it is linked to.\n", + "properties": { + "value": { + "type": "string", + "example": 4.9, + "description": "Current data value for the tag point\n" + }, + "tagId": { + "type": "string", + "example": "CH1.Chiller-1:evapleavingwatertemperature", + "description": "ID for the tagPoint - Unique Identifier for the Tag Point\n" + }, + "tagDisplayName": { + "type": "string", + "example": "Evaporator Leaving Water Temperature", + "description": "Generic label for the tag point\n" + }, + "uom": { + "type": "string", + "example": "°C", + "description": "Unit of measure for the data value for the tag point\n" + }, + "readingTime": { + "type": "string", + "example": "20170907125336", + "description": "date time when the tag point value was read from the device. \n" + } + } + }, + "AssetDetails": { + "type": "object", + "description": "Asset Details includes Tag Points with Data for the asset", + "properties": { + "assetId": { + "type": "string", + "description": "asset id for the Asset", + "example": "CH1.Chiller-1" + }, + "assetType": { + "type": "string", + "description": "Template Name for the asset", + "example": "Cooling" + }, + "userPrefTimeZone": { + "type": "string", + "description": "Time zone for the user", + "example": "Asia/Katmandu" + }, + "tags": { + "type": "array", + "description": "List of tag points for the Asset", + "items": { + "$ref": "#/definitions/TagPointDataArray" + } + }, + "lastMaintenanceDate": { + "type": "string", + "example": "Aug 03,2016", + "description": "Datetime when the machine had its last maintenance" + }, + "manufacturerName": { + "type": "string", + "description": "Manufacturer name for the Asset", + "example": "SMARDT" + }, + "equipmentModelNumber": { + "type": "string", + "description": "Equipment Model Number", + "example": "SACAC110-3EXX-2A1-16A-010" + }, + "equipmentSerialNumber": { + "type": "string", + "description": "Equipment Serial Number", + "example": "FF0010I233Q1276" + }, + "alarmLastTriggeredTime": { + "type": "string", + "example": "Aug 21,2017 04:38 AM", + "description": "Datetime when the latest alarm was triggered on the asset" + }, + "alarmLastProcessedTime": { + "type": "string", + "example": "Aug 21,2017 05:52 AM", + "description": "Datetime when the latest alarm was processed on the asset" + } + } + }, + "AssetDetailsTagPointData": { + "type": "object", + "properties": { + "payLoad": { + "type": "array", + "items": { + "$ref": "#/definitions/TagPointDataArray" + } + } + } + }, + "TagPointData": { + "type": "object", + "properties": { + "payLoad": { + "type": "array", + "items": { + "$ref": "#/definitions/TagPointDataArrayCurrent" + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the" + } + } + } + } + }, + "AssetsList": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "classification": { + "type": "string", + "description": "asset classification for the Electrical and Mechanical", + "example": "Mechanical" + }, + "categories": { + "type": "array", + "items": { + "$ref": "#/definitions/Category" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages" + } + } + } + } + }, + "Assets": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "example": 1 + }, + "assetsList": { + "type": "array", + "items": { + "$ref": "#/definitions/AssetsArray" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages " + } + } + } + } + }, + "Asset": { + "type": "object", + "properties": { + "assetId": { + "type": "string", + "description": "asset id for the asset", + "enum": [ + "CH1.Lead Chilled Water Manager", + "CH1.Chiller-6" + ] + }, + "ibx": { + "type": "string", + "description": "ibx code for the ibx in which the asset it present", + "enum": [ + "CH1", + "SG2" + ] + }, + "alarmStatus": { + "type": "string", + "description": "alarm status for the asset", + "enum": [ + "NOT OK", + "OK" + ] + }, + "resiliencyStatus": { + "type": "string", + "description": "resiliency status for the asset", + "enum": [ + "Resiliency as Designed", + "Resiliency at Fault", + "Resiliency in Maintenance" + ] + }, + "alarmLastTriggeredTime": { + "type": "string", + "example": "Aug 21,2017 04:52 AM", + "description": "datetime when the latest alarm on the asset was triggered" + }, + "alarmLastClearedTime": { + "type": "string", + "example": "Aug 21,2017 05:52 AM", + "description": "datetime when the latest alarm on the asset was cleared" + }, + "primaryParentAsset": { + "type": "string", + "description": "the primary parent of the current asset it can be multi-valued (provided via comma separated asset id)", + "enum": [ + "[CH1.UPS-5]", + "[CH1.UPS-5,CH1.UPS-6]" + ] + }, + "alternateParentAsset": { + "type": "string", + "description": "the alternate parent of the current asset it can be multi-valued (provided via comma separated asset id)", + "enum": [ + "[CH1.UPS-13]", + "[CH1.UPS-13,CH1.UPS-14]" + ] + } + } + }, + "Template": { + "type": "object", + "description": "template is a blueprint for an asset.", + "properties": { + "assets": { + "type": "array", + "items": { + "$ref": "#/definitions/Asset" + } + }, + "templateId": { + "type": "string", + "description": "template id - unique identifier for the template", + "example": "Cooling Plant" + } + } + }, + "Category": { + "type": "object", + "properties": { + "templates": { + "type": "array", + "items": { + "$ref": "#/definitions/Template" + } + }, + "categoryName": { + "type": "string", + "example": "Cooling" + } + } + }, + "Cages": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Cage Unique Space Id", + "example": "CH1:05:000430" + }, + "type": { + "type": "string", + "description": "type of the asset", + "example": "cage" + }, + "cabinets": { + "type": "array", + "items": { + "$ref": "#/definitions/Cabinets" + } + } + } + }, + "Cabinets": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + "CH1:05:000430:0105" + ] + }, + "type": { + "type": "string", + "example": "cabinet" + }, + "circuits": { + "type": "array", + "items": { + "$ref": "#/definitions/Circuits" + } + } + } + }, + "Circuits": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + 877484 + ] + }, + "type": { + "type": "string", + "enum": [ + "circuit" + ] + } + } + }, + "CircuitsMapWithCage": { + "type": "object", + "properties": { + "name": { + "type": "string", + "enum": [ + 877483 + ] + }, + "type": { + "type": "string", + "enum": [ + "circuit" + ] + } + } + }, + "HierarchyNode": { + "type": "object", + "properties": { + "payLoad": { + "type": "object", + "properties": { + "cages": { + "type": "array", + "items": { + "$ref": "#/definitions/Cages" + } + }, + "circuits": { + "type": "array", + "items": { + "$ref": "#/definitions/CircuitsMapWithCage" + } + } + } + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "INFO" + ] + }, + "statuscode": { + "type": "number", + "example": "1000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "OK", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" + } + } + } + } + }, + "Error": { + "type": "object", + "properties": { + "payLoad": { + "type": "object" + }, + "status": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "[INFO|ERROR] are the possible values", + "enum": [ + "ERROR" + ] + }, + "statuscode": { + "type": "number", + "example": "4000", + "description": "[1000|3001|3002|3003|4000] are the possible status codes" + }, + "msg": { + "type": "string", + "example": "INTERNAL_ERROR", + "description": "[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages" + } + } + } + } + } + }, + "parameters": { + "authorizationHeader": { + "name": "Authorization", + "in": "header", + "description": "Specify the Access token with prefix 'Bearer'.", + "type": "string", + "required": true + } + } +} \ No newline at end of file diff --git a/spec/services/smartview/oas3.fetched/spec_6.yaml b/spec/services/smartview/oas3.fetched/spec_6.yaml new file mode 100644 index 00000000..ce1c2720 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/spec_6.yaml @@ -0,0 +1,442 @@ +{ + "swagger": "2.0", + "info": { + "title": "Smart View Hierarchy APIs", + "contact": { + "name": "Equinix API Support", + "url": "https://docs.equinix.com/api-support.htm" + }, + "description": "Empower yourself with Smart View Hierarchy APIs. Use these APIs to obtain location and power hierarchy for invoking other APIs. Given an account number, IBX code, and an asset Id, returns the corresponding location and power hierarchy of related assets. Required query parameters to obtain a valid response from these endpoints are account number and IBX code.", + "version": "1.0", + "termsOfService": "https://www.equinix.com/about/legal/terms" + }, + "host": "api.equinix.com", + "schemes": [ + "https" + ], + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "tags": [ + { + "name": "Smart View Hierarchy APIs", + "description": "APIs to get Location, Power Hierarchy" + } + ], + "paths": { + "/smartview/v1/hierarchy/location": { + "get": { + "tags": [ + "Smart View Hierarchy APIs" + ], + "operationId": "getLocationHierarchy", + "summary": "Fetch the Location Hierarchy", + "description": "The location hierarchy endpoint returns the location hierarchy. This endpoint provides data for invoking other APIs such as Environmental APIs that require location hierarchy information.\n", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "description": "Customer Account Number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "IBX Code", + "type": "string", + "required": false + }, + { + "$ref": "#/parameters/authorizationHeader" + } + ], + "responses": { + "200": { + "description": "Location Hierarchy Details", + "schema": { + "$ref": "#/definitions/LocationResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/smartview/v1/hierarchy/power": { + "get": { + "tags": [ + "Smart View Hierarchy APIs" + ], + "operationId": "getPowerHierarchy", + "summary": "Fetch the Power Hierarchy", + "description": "The power hierarchy endpoint returns the power hierarchy. This endpoint provides data for invoking other APIs such as Power APIs that require power hierarchy information.\n", + "parameters": [ + { + "name": "Authorization", + "in": "header", + "description": "Specify the OAuth Bearer token with prefix 'Bearer '.", + "required": true, + "type": "string", + "x-prefix": "Bearer " + }, + { + "name": "accountNo", + "in": "query", + "description": "Customer Account Number", + "type": "string", + "required": true + }, + { + "name": "ibx", + "in": "query", + "description": "IBX Code", + "type": "string", + "required": false + }, + { + "$ref": "#/parameters/authorizationHeader" + } + ], + "responses": { + "200": { + "description": "Location Hierarchy Details", + "schema": { + "$ref": "#/definitions/PowerResponse" + } + }, + "default": { + "description": "Unexpected error", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + } + }, + "definitions": { + "LocationResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/HierarchyNode" + } + }, + "PowerResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/PowerHierarchyNode" + } + }, + "HierarchyNode": { + "type": "object", + "properties": { + "levelType": { + "type": "string", + "description": "levelType indicates which level in the location hierarchy \ndoes the node belong to.\n", + "enum": [ + "ibx", + "zone", + "cage", + "cabinet", + "sensor" + ], + "example": "ibx" + }, + "levelValue": { + "type": "string", + "description": "ibx code, zone us id, cage us id, cabinet us id, sensor number \nfor levelType ibx, zone, cage, cabinet, sensor resp.\n", + "example": "SV5" + }, + "label": { + "type": "string", + "description": "ibx code, zone unique space id, cage unique space id, \ncabinet unique space id, sensor number for levelType ibx, zone, cage, \ncabinet, sensor resp.\n", + "example": "SV5" + }, + "children": { + "type": "array", + "example": [ + { + "levelType": "ZONE", + "levelValue": "XY3:1:03:LocoArea:1", + "label": "XY3:1:03:LocoArea:1", + "children": [ + { + "levelType": "CAGE", + "levelValue": "495", + "label": "XY3:03:021720", + "children": [ + { + "levelType": "CABINET", + "levelValue": "105734", + "label": "XY3:03:021720:V0101:0199", + "children": [] + } + ] + }, + { + "levelType": "CAGE", + "levelValue": "506", + "label": "XY3:03:020900", + "children": [ + { + "levelType": "CABINET", + "levelValue": "13781", + "label": "XY3:03:020900:1010", + "children": [] + }, + { + "levelType": "CABINET", + "levelValue": "13782", + "label": "XY3:03:020900:1012", + "children": [] + } + ] + } + ] + }, + { + "levelType": "ZONE", + "levelValue": "XY3:1:03:Select Room:1", + "label": "XY3:1:03:Select Room:1", + "children": [ + { + "levelType": "CAGE", + "levelValue": "61274", + "label": "XY3:03:FE21720", + "children": [ + { + "levelType": "CABINET", + "levelValue": "105901", + "label": "XY3:03:FE21720:9999", + "children": [] + } + ] + }, + { + "levelType": "CAGE", + "levelValue": "61275", + "label": "XY3:03:FE50010", + "children": [ + { + "levelType": "CABINET", + "levelValue": "105958", + "label": "XY3:03:FE50010:9999", + "children": [] + }, + { + "levelType": "CABINET", + "levelValue": "139905", + "label": "XY3:03:FE50010:0000", + "children": [] + } + ] + } + ] + }, + { + "levelType": "ZONE", + "levelValue": "XY3:2:03:LocoArea:1", + "label": "XY3:2:03:LocoArea:1", + "children": [ + { + "levelType": "CAGE", + "levelValue": "5902", + "label": "XY3:03:021200", + "children": [ + { + "levelType": "CABINET", + "levelValue": "102563", + "label": "XY3:03:021200:0101", + "children": [] + }, + { + "levelType": "CABINET", + "levelValue": "102564", + "label": "XY3:03:021200:0102", + "children": [] + } + ] + } + ] + } + ], + "items": { + "$ref": "#/definitions/HierarchyNode" + } + } + } + }, + "PowerHierarchyNode": { + "type": "object", + "properties": { + "levelType": { + "type": "string", + "description": "levelType indicates which level in the power hierarchy \ndoes the node belong to.\n", + "enum": [ + "ibx", + "cage", + "cabinet", + "circuit" + ], + "example": "IBX" + }, + "levelValue": { + "type": "string", + "description": "ibx code, cage us id, cabinet us id, circuit number for \nlevelType ibx, cage, cabinet, circuit resp.\n", + "example": "XY1" + }, + "label": { + "type": "string", + "description": "ibx code, cage unique space id, cabinet unique space id, circuit label\nfor levelType ibx, cage, cabinet, circuit resp.\n", + "example": "XY1" + }, + "children": { + "type": "array", + "description": "ibx, cage, cabinet nodes can have cage, cabinet and circuit, \ncircuit nodes as children respectively.\n", + "example": [ + { + "levelType": "CAGE", + "levelValue": "5902", + "label": "XY1:06:061600", + "children": [ + { + "levelType": "CABINET", + "levelValue": "102563", + "label": "XY1:06:061600:0101", + "children": [ + { + "levelType": "CIRCUIT", + "levelValue": "XYZA3693", + "label": "208V 20A 1Ph Red (3693)", + "children": [] + } + ] + }, + { + "levelType": "CABINET", + "levelValue": "102564", + "label": "XY1:06:061600:0102", + "children": [ + { + "levelType": "CIRCUIT", + "levelValue": "XYZA3694", + "label": "208V 20A 1Ph Red (3694)", + "children": [] + }, + { + "levelType": "CIRCUIT", + "levelValue": "XYZA3692", + "label": "208V 20A 1Ph Pri (3692)", + "children": [] + } + ] + }, + { + "levelType": "CABINET", + "levelValue": "102582", + "label": "XY1:06:061600:0302", + "children": [ + { + "levelType": "CIRCUIT", + "levelValue": "XYZE7863", + "label": "120V 30A 1Ph Red (7863)", + "children": [] + }, + { + "levelType": "CIRCUIT", + "levelValue": "XYZE7862", + "label": "120V 30A 1Ph Pri (7862)", + "children": [] + } + ] + }, + { + "levelType": "CABINET", + "levelValue": "102587", + "label": "XY1:06:061600:0307", + "children": [ + { + "levelType": "CIRCUIT", + "levelValue": "XYZG4836", + "label": "208V 20A 1Ph Red (4836)", + "children": [] + } + ] + } + ] + }, + { + "levelType": "CAGE", + "levelValue": "60442", + "label": "XY1:06:063000", + "children": [ + { + "levelType": "CABINET", + "levelValue": "100798", + "label": "XY1:06:063000:0101", + "children": [ + { + "levelType": "CIRCUIT", + "levelValue": "XYZH2630", + "label": "120V 20A 1Ph Red (2630)", + "children": [] + }, + { + "levelType": "CIRCUIT", + "levelValue": "XYZH2629", + "label": "120V 20A 1Ph Pri (2629)", + "children": [] + } + ] + } + ] + } + ], + "items": { + "$ref": "#/definitions/PowerHierarchyNode" + } + } + } + }, + "Error": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "fields": { + "type": "string" + } + } + } + }, + "parameters": { + "authorizationHeader": { + "name": "Authorization", + "in": "header", + "description": "Specify the Access token with prefix 'Bearer'.", + "type": "string", + "required": true + } + } +} \ No newline at end of file From 2514446432fddc5ba58151241126d3229b9a4f10 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 15:31:08 -0500 Subject: [PATCH 3/8] wip: use go-swagger task to merge API specs for Smartview Signed-off-by: Marques Johansson --- .../smartview/oas3.fetched/merged-spec.yaml | 4672 +++++++++++++++++ 1 file changed, 4672 insertions(+) create mode 100644 spec/services/smartview/oas3.fetched/merged-spec.yaml diff --git a/spec/services/smartview/oas3.fetched/merged-spec.yaml b/spec/services/smartview/oas3.fetched/merged-spec.yaml new file mode 100644 index 00000000..103ee7b0 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/merged-spec.yaml @@ -0,0 +1,4672 @@ +consumes: + - application/json +produces: + - application/json +schemes: + - https +swagger: "2.0" +info: + contact: + name: Equinix API Support + url: https://docs.equinix.com/api-support.htm + description: Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + termsOfService: https://www.equinix.com/about/legal/terms + title: Smart View Environmental API + version: "2.0" +host: api.equinix.com +paths: + /environment/v1/current: + get: + description: The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor) + operationId: Mixin1 + parameters: + - $ref: '#/parameters/authorizationHeader' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: Level Type + enum: + - IBX + - ZONE + - CAGE + - SENSOR + in: query + name: levelType + required: true + type: string + - description: "Level Value is ibxCode, zoneUsID, cageUsID, sensorid for \nlevelType ibx, zone, cage, sensor resp.\n" + in: query + name: levelValue + required: true + type: string + responses: + "200": + description: Environment Details + schema: + $ref: '#/definitions/EnvironmentData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Get current environmental data + tags: + - Smart View Environment + /environment/v1/listCurrent: + get: + description: | + The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR + operationId: Mixin1 + parameters: + - $ref: '#/parameters/authorizationHeader' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: Level Type + enum: + - IBX + - ZONE + - CAGE + - SENSOR + in: query + name: levelType + required: true + type: string + responses: + "200": + description: Environment Details + schema: + $ref: '#/definitions/EnvironmentDataResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch list of environmental data + tags: + - Smart View Environment + /environment/v1/trending: + get: + description: "The endpoint returns trending environment information (temperature and humidity) for\ninput ibx, zone, cage, sensor \n" + operationId: Mixin1 + parameters: + - $ref: '#/parameters/authorizationHeader' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: number + - description: data point + enum: + - temperature + - humidity + in: query + name: dataPoint + required: true + type: string + - description: Level Type + enum: + - IBX + - ZONE + - CAGE + - SENSOR + in: query + name: levelType + required: true + type: string + - description: "Level Value is ibxCode, zone, cage, sensorid for \nlevelType ibx, zone, cage, sensor resp.\n" + in: query + name: levelValue + required: true + type: string + - enum: + - reading + - 1h + - 1d + in: query + name: interval + required: true + type: string + - description: date in long + format: date-time + in: query + name: fromDate + required: true + type: string + - description: date in long + format: date-time + in: query + name: toDate + required: true + type: string + responses: + "200": + description: Trending Environment Data Response + schema: + $ref: '#/definitions/TrendingEnvironmentData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch trending environmental data + tags: + - Smart View Environment + /power/v1/current: + get: + description: | + The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit. + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: level type allowed value [ibx|cage|cabinet|circuit] + enum: + - ibx + - cage + - cabinet + - circuit + in: query + name: levelType + required: true + type: string + - description: | + level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. + in: query + name: levelValue + required: true + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/PowerData' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: Fetch current power consumption data + tags: + - DCIM Power + post: + description: | + The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. + operationId: Mixin0 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: request payload + in: body + name: body + schema: + $ref: '#/definitions/PowerCurrentPostRequest' + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/PowerDataResponse_IBX' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: Fetch current power consumption data + tags: + - DCIM Power + /power/v1/trending: + get: + description: | + The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. + operationId: Mixin0 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: number + - description: '[ibx|cage|cabinet|circuit]' + enum: + - ibx + - cage + - cabinet + - circuit + in: query + name: levelType + required: true + type: string + - description: | + ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. + in: query + name: levelValue + required: true + type: string + - description: '[recording|1h|1d]' + in: query + name: interval + required: true + type: string + - description: timestamp expected to be epoch long ( milliseconds ). + in: query + name: fromDate + required: true + type: string + - description: timestamp expected to be epoch long ( milliseconds ). + in: query + name: toDate + required: true + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/TrendingPowerData' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: | + Fetch Trending Power Data. + tags: + - DCIM Power + /smartview/v1/alerts/getAlertActivityLog: + get: + description: | + This endpoint returns alert log for inputs (ibx,category,event type,account number,page number,limit, order by, sort by,acknowledged). + operationId: getAlertActivityLog + parameters: + - $ref: '#/parameters/authorizationHeader' + - description: IBX + in: query + name: ibx + type: string + - description: Category + in: query + name: category + type: string + - description: Event Type + in: query + name: eventType + type: string + - description: Is Acknowledged + in: query + name: isAcknowledged + type: string + - description: Account Number + in: query + name: accountNo + type: string + - description: Page Number + in: query + name: pageNum + required: true + type: string + - description: Limit + in: query + name: limit + required: true + type: string + - description: | + order by ascending or descending + in: query + name: orderBy + type: string + - description: | + sortBy value + in: query + name: sortBy + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/AlertActivityLog' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: get alert activity logs + tags: + - Alert Log + /smartview/v1/alerts/getAlerts: + get: + description: | + The get alert endpoint returns alert info for inputs (ibx,category,event type,account number,page number,limit, order by, sort by). + operationId: getAlerts + parameters: + - $ref: '#/parameters/authorizationHeader' + - description: IBX + in: query + name: ibx + type: string + - description: Category + in: query + name: category + type: string + - description: Event Type. + in: query + name: eventType + type: string + - description: Account Number + in: query + name: accountNo + type: string + - description: Page Number + in: query + name: pageNum + required: true + type: string + - description: Limit + in: query + name: limit + required: true + type: string + - description: | + order by ascending or descending + in: query + name: orderBy + type: string + - description: | + sortBy value + in: query + name: sortBy + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/Alerts' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: obtain active SmartView alerts. + tags: + - Alerts + /smartview/v1/asset/details: + get: + description: This endpoint returns information about asset details including tag points lists for a given asset identifier. + operationId: getAssetDetails + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: asset classification (Electrical, Mechanical) + in: query + name: classification + required: true + type: string + - description: asset id + in: query + name: assetId + required: true + type: string + responses: + "200": + description: Asset Details + schema: + $ref: '#/definitions/AssetDetailsGetResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get details for an asset. + tags: + - Smart View Assets + parameters: + - $ref: '#/parameters/authorizationHeader' + post: + description: This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers. + operationId: Mixin4 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: request schema + in: body + name: payload + schema: + $ref: '#/definitions/AssetDetailsRequest' + responses: + "200": + description: Asset Details response object + schema: + $ref: '#/definitions/AssetDetailsResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get asset details + tags: + - Smart View Assets + /smartview/v1/asset/list: + get: + description: This endpoint returns information about asset in a hierarchical structure ( category / template / asset ) based on the input account number, IBX code, cage and asset classification (Electrical, Mechanical). + operationId: getAsset + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: asset classification (Electrical, Mechanical) + enum: + - Electrical + - Mechanical + in: query + name: classification + required: true + type: string + - description: | + cage unique space id to be used to filter the assets list + assumed to be all cage unique space id if no value is sent. + in: query + items: + type: string + name: cages + type: array + responses: + "200": + description: Asset Details + schema: + $ref: '#/definitions/AssetsList' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get assets list information + tags: + - Smart View Assets + parameters: + - $ref: '#/parameters/authorizationHeader' + /smartview/v1/asset/search: + get: + description: This endpoint is used to search for assets using wild card search patterns matching the asset identifier. + operationId: searchAsset + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: Search String + in: query + name: searchString + required: true + type: string + responses: + "200": + description: Asset Details + schema: + $ref: '#/definitions/Assets' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Search for Assets matching identifiers + tags: + - Smart View Assets + parameters: + - $ref: '#/parameters/authorizationHeader' + /smartview/v1/asset/tagpoint/affected-assets: + get: + description: The endpoint returns information regarding the affected assets of customers for a given asset identifier + operationId: getAffectedAsset + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: asset id + in: query + name: assetId + required: true + type: string + - description: asset classification(Electrical, Mechanical) + enum: + - Electrical + - Mechanical + in: query + name: classification + required: true + type: string + responses: + "200": + description: Affect Customer Circuits ( Cage > Cabinet > Circuit hierarchy ) + schema: + $ref: '#/definitions/HierarchyNode' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get affected customers assets hierarchy + tags: + - Smart View Assets + parameters: + - $ref: '#/parameters/authorizationHeader' + /smartview/v1/asset/tagpoint/current: + get: + description: This endpoint fetches and provides the most recent tag point information for a given tag identifier. + operationId: getCurrentTagPoint + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: tag id is the unique identifier for the tag point + in: query + name: tagid + required: true + type: string + responses: + "200": + description: the current tag point data + schema: + $ref: '#/definitions/TagPointData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: obtain latest tag point data + tags: + - Smart View Assets + parameters: + - $ref: '#/parameters/authorizationHeader' + post: + description: This endpoint fetches the latest read values for given tag points using given tag identifiers. + operationId: Mixin4 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - in: body + name: payload + schema: + $ref: '#/definitions/CurrentTagPointRequest' + responses: + "200": + description: data for tag points based on input payload + schema: + $ref: '#/definitions/TagPointData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get current tag points data + tags: + - Smart View Assets + /smartview/v1/asset/tagpoint/trending: + get: + description: This endpoint fetches and returns the trending tag point information for a given tag identifier. + operationId: getTagpointTrending + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: tag id is the unique identifier for the tag point + in: query + name: tagid + required: true + type: string + - description: tag point data interval (1h, 1d, reading) + in: query + name: interval + required: true + type: string + - description: from date UTC time (1494345600000) + in: query + name: fromDate + required: true + type: integer + - description: to date UTC time (1494432000000) + in: query + name: toDate + required: true + type: integer + responses: + "200": + description: the current tag point data + schema: + $ref: '#/definitions/TagPointTrendingResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: obtain trending tag point data + tags: + - Smart View Assets + parameters: + - $ref: '#/parameters/authorizationHeader' + /smartview/v1/hierarchy/location: + get: + description: | + The location hierarchy endpoint returns the location hierarchy. This endpoint provides data for invoking other APIs such as Environmental APIs that require location hierarchy information. + operationId: getLocationHierarchy + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + type: string + - $ref: '#/parameters/authorizationHeader' + responses: + "200": + description: Location Hierarchy Details + schema: + $ref: '#/definitions/LocationResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch the Location Hierarchy + tags: + - Smart View Hierarchy APIs + /smartview/v1/hierarchy/power: + get: + description: | + The power hierarchy endpoint returns the power hierarchy. This endpoint provides data for invoking other APIs such as Power APIs that require power hierarchy information. + operationId: getPowerHierarchy + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + type: string + - $ref: '#/parameters/authorizationHeader' + responses: + "200": + description: Location Hierarchy Details + schema: + $ref: '#/definitions/PowerResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch the Power Hierarchy + tags: + - Smart View Hierarchy APIs + /smartview/v2/environmental/ibxs/{ibx}/sensors/readings: + get: + description: Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way. + operationId: getSensorReadings + parameters: + - description: IBX where the sensor is located. + in: path + name: ibx + required: true + type: string + x-example: CH2 + - description: Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included + in: query + name: type + type: string + x-example: HUMIDITY + - description: Zone name. Adding this parameter limits the query to sensors in the specified zone + in: query + name: zone + type: string + x-example: CH2:1:06:ColoArea:1 + - default: !!float 0 + description: Results offset you want to retrieve (0..N) + in: query + name: offset + type: integer + - default: !!float 20 + description: Number of records to retrieve per request. + in: query + name: limit + type: integer + - $ref: '#/parameters/authorizationHeader' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/SensorReadingsResponse' + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "422": + description: Unprocessable entity + summary: IBX sensors current readings + tags: + - Smart View Environmental + /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings: + get: + description: Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code. + operationId: getSingleSensorReadings + parameters: + - description: IBX where the sensor is located. + in: path + name: ibx + required: true + type: string + x-example: SV2 + - description: Id of sensor to read. + in: path + name: sensorId + required: true + type: string + x-example: CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03 + - $ref: '#/parameters/authorizationHeader' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/Sensor%20reading' + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "422": + description: Unprocessable entity + summary: Single sensor current value(s) + tags: + - Smart View Environmental + /smartview/v2/streaming/subscriptionData/{subscriptionId}: + get: + description: obtain API+ near real time data via a simple REST endpoint by employing subscription ID alongside other specified criteria, enabling a comprehensive and targeted approach to data retrieval. Subscription data endpoint works for all channels and not just REST channel. + operationId: getSubscriptionData + parameters: + - description: Subscription ID + in: path + name: subscriptionId + required: true + type: string + - description: Filter, set of IBXs + in: query + items: + type: string + name: ibxs + type: array + - description: Filter, set of message types + in: query + items: + enum: + - ALARM + - ALERT + - ENVIRONMENTAL + - METERED_POWER + - POWER + - TAG_POINT + type: string + name: messageTypes + type: array + - description: Filter, set of stream IDs + in: query + items: + type: string + name: streamIds + type: array + - default: !!float 0 + description: Pagination, offset of the first item + format: int32 + in: query + name: offset + type: integer + - default: !!float 250 + description: Pagination, limit of items returned + format: int32 + in: query + name: limit + type: integer + - $ref: '#/parameters/authorizationHeader' + responses: + "200": + description: OK + schema: + $ref: '#/definitions/SubscriptionData' + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Get subscription data via REST + /smartview/v2/streaming/subscriptions: + get: + description: The endpoint allows users to fetch details for all streaming subscriptions for a given organization. + operationId: getAllSubscriptions + parameters: + - $ref: '#/parameters/authorizationHeader' + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/SubscriptionResponse' + type: array + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Get all subscription endpoint + post: + description: The endpoint allows users to define and create a new streaming subscription for a given organization. + operationId: createSubscription + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/SubscriptionRequest' + - $ref: '#/parameters/authorizationHeader' + responses: + "201": + description: Created + headers: + Location: + description: 'Location of created subscription. For Example: /smartview/v2/streaming/subscriptions/607460b4e4a78360425bca56' + type: string + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "422": + description: Unprocessable entity + schema: + $ref: '#/definitions/ApiError' + "500": + description: Internal server error + summary: Create subscription endpoint + /smartview/v2/streaming/subscriptions/{id}: + delete: + description: The endpoint allows users to delete and remove an existing streaming subscription for a given organization. + operationId: deleteSubscriptionById + parameters: + - in: path + name: id + required: true + type: string + - $ref: '#/parameters/authorizationHeader' + responses: + "204": + description: No Content + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Delete subscription endpoint + get: + description: The endpoint allows users to fetch details for a given streaming subscription for a given organization. + operationId: getSubscriptionById + parameters: + - in: path + name: id + required: true + type: string + - $ref: '#/parameters/authorizationHeader' + responses: + "200": + description: OK + schema: + $ref: '#/definitions/SubscriptionResponse' + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Get subscription endpoint + put: + description: The endpoint allows users to modify and update an existing streaming subscription for a given organization. Request payload replaces current subscription. + operationId: updateSubscription + parameters: + - in: path + name: id + required: true + type: string + - in: body + name: body + schema: + $ref: '#/definitions/SubscriptionRequest' + - $ref: '#/parameters/authorizationHeader' + responses: + "204": + description: No Content + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "422": + description: Unprocessable entity + schema: + $ref: '#/definitions/ApiError' + "500": + description: Internal server error + summary: Update subscription endpoint +definitions: + Alarm: + description: message data + properties: + asset: + $ref: '#/definitions/AlarmAssetDetails' + x-order: !!float 12 + conditionName: + description: condition name + example: High + type: string + x-order: !!float 5 + country: + description: country + example: FR + type: string + x-order: !!float 4 + currentValue: + $ref: '#/definitions/AlarmCurrentValueDetails' + x-order: !!float 11 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 20 + definitionId: + description: unique message id + example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH + type: string + x-order: !!float 10 + heartbeat: + description: heartbeat + example: true + type: boolean + x-order: !!float 8 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + metro: + description: metro + example: metro + type: string + x-order: !!float 3 + normalProcessedTime: + description: alarm normal processed time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 18 + normalTriggeredTime: + description: alarm normal triggered time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 19 + processedTime: + description: alarm processed time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 17 + region: + description: region + example: EMEA + type: string + x-order: !!float 2 + severity: + description: severity + example: !!float 900 + format: int32 + type: integer + x-order: !!float 6 + status: + $ref: '#/definitions/AlarmStatusDetails' + x-order: !!float 14 + streamId: + description: unique message id + example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/AlarmTagDetails' + x-order: !!float 13 + threshold: + $ref: '#/definitions/AlarmThresholdDetails' + x-order: !!float 15 + triggerRule: + description: trigger rule + example: RULE:123:1 + type: string + x-order: !!float 9 + triggeredTime: + description: alarm triggered time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 16 + type: + description: type + example: Absolute + type: string + x-order: !!float 7 + required: + - asset + - currentValue + - definitionId + - ibx + - status + - streamId + - tag + - threshold + type: object + AlarmAssetDetails: + description: asset details + properties: + classification: + description: asset classification + example: Mechanical + type: string + x-order: !!float 2 + id: + description: asset id + example: IBX.CRAH-EQ1-04 + type: string + x-order: !!float 0 + type: + description: asset type + example: CRAH + type: string + x-order: !!float 1 + type: object + AlarmCurrentValueDetails: + description: currentValue details + properties: + type: + description: current value type + example: Float + type: string + x-order: !!float 2 + unit: + description: current value unit + example: '%' + type: string + x-order: !!float 0 + value: + description: current value value + example: "35.023" + type: string + x-order: !!float 1 + type: object + AlarmMessageData: + description: alarm message data + properties: + data: + $ref: '#/definitions/Alarm' + x-order: !!float 1 + type: + default: system-alert + description: message type + example: system-alert + type: string + x-order: !!float 0 + required: + - data + - type + type: object + AlarmStatusDetails: + description: status details + properties: + acknowledged: + description: status acknowledged + example: false + type: boolean + x-order: !!float 0 + acknowledgementTime: + description: status acknowledgement time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 1 + active: + description: status active + example: true + type: boolean + x-order: !!float 3 + cleared: + description: status cleared + example: false + type: boolean + x-order: !!float 2 + type: object + AlarmTagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: Temperature7 + type: string + x-order: !!float 1 + id: + description: tag id + example: IBX.CRAH-EQ1-04:dirtyfilter + type: string + x-order: !!float 0 + type: object + AlarmThresholdDetails: + description: threshold details + properties: + message: + description: threshold message + example: NA + type: string + x-order: !!float 2 + stateLimit: + description: threshold state limit + example: "20" + type: string + x-order: !!float 1 + unit: + description: threshold unit + example: '%' + type: string + x-order: !!float 0 + type: object + Alert: + description: message data + properties: + asset: + $ref: '#/definitions/AlertAssetDetails' + x-order: !!float 9 + conditional: + description: conditional + example: N + type: string + x-order: !!float 6 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 13 + eventType: + description: event type + example: Falls below + type: string + x-order: !!float 7 + heartbeat: + description: heartbeat + example: true + type: boolean + x-order: !!float 8 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + id: + description: id + example: IBX.685306-15843739015670.6640131967865078 + type: string + x-order: !!float 3 + region: + description: region + example: APAC + type: string + x-order: !!float 2 + streamId: + description: unique message id + example: IBX.685306-15843739015670.6640131967865078 + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/AlertTagDetails' + x-order: !!float 10 + threshold: + $ref: '#/definitions/AlertThresholdDetails' + x-order: !!float 11 + triggeredTime: + description: alert triggered time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 12 + type: + description: type + example: power + type: string + x-order: !!float 4 + typeId: + description: type id + example: drawAmpFalls + type: string + x-order: !!float 5 + required: + - asset + - ibx + - streamId + - tag + - threshold + type: object + AlertActivityLog: + properties: + payLoad: + items: + $ref: '#/definitions/AlertActivityLogObj' + type: array + x-order: !!float 0 + status: + $ref: '#/definitions/status' + x-order: !!float 1 + type: object + AlertActivityLogObj: + properties: + alerts: + items: + $ref: '#/definitions/AlertDto2' + type: array + x-order: !!float 0 + totalCount: + description: totalCount + example: "1000" + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 1 + type: object + AlertAssetDetails: + description: asset details + properties: + classification: + description: asset classification + example: Electrical + type: string + x-order: !!float 2 + id: + description: asset id + example: "1.20849261E7" + type: string + x-order: !!float 0 + type: + description: asset type + example: CIRCUIT + type: string + x-order: !!float 1 + type: object + AlertDto1: + properties: + accountNo: + example: !!float 3213213 + type: string + x-order: !!float 22 + alertPaused: + description: isAlertPaused + example: true + type: boolean + x-order: !!float 28 + alertType: + $ref: '#/definitions/AlertType' + type: object + x-order: !!float 2 + conditionalAlert: + example: test + type: string + x-order: !!float 8 + country: + example: SG + type: string + x-order: !!float 26 + createdBy: + example: test + type: string + x-order: !!float 13 + createdOn: + description: createdOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 14 + customerAssets: + items: + $ref: '#/definitions/CustomerAssets' + type: array + x-order: !!float 4 + enabledAction: + example: Enabled + type: string + x-order: !!float 18 + formatedSection: + example: Power Draw + type: string + x-order: !!float 17 + heartbeatType: + example: off + type: string + x-order: !!float 6 + ibx: + example: CH1 + type: string + x-order: !!float 1 + id: + example: 15476966877480.828 + type: string + x-order: !!float 0 + infraAssets: + items: + $ref: '#/definitions/CustomerAssets' + type: array + x-order: !!float 5 + isDuplicate: + example: false + type: boolean + x-order: !!float 19 + lastTriggeredOn: + description: lastTriggeredOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 16 + metro: + example: SG + type: string + x-order: !!float 27 + modifiedOn: + description: modifiedOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 15 + recipients: + items: + $ref: '#/definitions/recipientsArray' + type: array + x-order: !!float 7 + region: + example: APAC + type: string + x-order: !!float 25 + section: + example: electrical + type: string + x-order: !!float 3 + status: + example: status + type: string + x-order: !!float 24 + thresholdUnit: + example: '%' + type: string + x-order: !!float 9 + thresholdValue: + example: "12" + type: string + x-order: !!float 12 + thresholdValueMax: + example: "12" + type: string + x-order: !!float 11 + thresholdValueMin: + example: "12" + type: string + x-order: !!float 10 + ucmid: + example: ucmid + type: string + x-order: !!float 21 + uom: + example: STANDARD + type: string + x-order: !!float 23 + userId: + example: userId + type: string + x-order: !!float 20 + type: object + AlertDto2: + properties: + accountNo: + example: !!float 115767 + type: string + x-order: !!float 12 + acknowledge: + example: true + type: boolean + x-order: !!float 37 + affectedCustomerAsset: + example: !!float 1069 + type: string + x-order: !!float 9 + alertType: + $ref: '#/definitions/AlertType' + type: object + x-order: !!float 5 + alertTypeName: + example: tempExceeds + type: string + x-order: !!float 10 + asset: + example: SG3 + type: string + x-order: !!float 8 + assetclassification: + example: assetclassification + type: string + x-order: !!float 19 + assetname: + example: SG3 + type: string + x-order: !!float 28 + assettype: + example: IBX + type: string + x-order: !!float 16 + conditionalAlert: + items: + $ref: '#/definitions/ConditionalAlert' + type: array + x-order: !!float 13 + country: + example: SG + type: string + x-order: !!float 35 + createdOn: + description: createdOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 3 + currentvalue: + example: 23.38019323671497 + type: string + x-order: !!float 15 + eventtype: + example: Exceeds + type: string + x-order: !!float 18 + ibx: + example: CH1 + type: string + x-order: !!float 2 + id: + example: 15476966877480.828 + type: string + x-order: !!float 0 + lastmaintenance: + example: !!float 1547008897864 + type: string + x-order: !!float 23 + metro: + example: SG + type: string + x-order: !!float 36 + modifiedOn: + description: modifiedOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 4 + notificationType: + example: ALERT + type: string + x-order: !!float 14 + region: + example: APAC + type: string + x-order: !!float 1 + relatedincidents: + example: assetclassification + type: string + x-order: !!float 20 + resiliency: + example: off + type: string + x-order: !!float 25 + section: + example: electrical + type: string + x-order: !!float 6 + severity: + example: ALERT + type: string + x-order: !!float 24 + tagid: + example: Temperature + type: string + x-order: !!float 17 + thresholdUnit: + example: '%' + type: string + x-order: !!float 31 + thresholdValue: + example: "12" + type: string + x-order: !!float 34 + thresholdValueMax: + example: "12" + type: string + x-order: !!float 33 + thresholdValueMin: + example: "12" + type: string + x-order: !!float 32 + timeZone: + example: Asia/Singapore + type: string + x-order: !!float 30 + timeacknowledged: + example: !!float 1547008897864 + type: string + x-order: !!float 22 + timeprocessed: + example: off + type: string + x-order: !!float 26 + timetriggeredMilisec: + example: "1547007734678" + type: string + x-order: !!float 27 + triggeredOn: + description: lastTriggeredOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 7 + type: + example: ALERT + type: string + x-order: !!float 21 + uom: + example: STANDARD + type: string + x-order: !!float 29 + year: + example: !!float 2019 + type: string + x-order: !!float 11 + type: object + AlertMessageData: + description: alert message data + properties: + data: + $ref: '#/definitions/Alert' + x-order: !!float 1 + type: + default: custom-alert + description: message type + example: custom-alert + type: string + x-order: !!float 0 + required: + - data + - type + type: object + AlertObj: + properties: + alerts: + items: + $ref: '#/definitions/AlertDto1' + type: array + x-order: !!float 0 + totalCount: + description: totalCount + example: "1000" + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 1 + type: object + AlertTagDetails: + description: tag details + properties: + id: + description: tag id + example: IBX.CIRCUIT-EQ1-04:dirtyfilter + type: string + x-order: !!float 0 + type: object + AlertThresholdDetails: + description: threshold details + properties: + maxValue: + description: threshold max value + example: "5" + type: string + x-order: !!float 1 + minValue: + description: threshold min value + example: "1" + type: string + x-order: !!float 2 + unit: + description: threshold unit + example: Amp + type: string + x-order: !!float 0 + value: + description: threshold value + example: "10" + type: string + x-order: !!float 3 + type: object + AlertType: + properties: + defaultValue: + example: "258" + type: string + x-order: !!float 5 + eventType: + example: Exceeds + type: string + x-order: !!float 6 + id: + example: cageDrawExceeds + type: string + x-order: !!float 0 + tagId: + example: "258" + type: string + x-order: !!float 4 + type: + example: value + type: string + x-order: !!float 1 + unit: + example: percentage + type: string + x-order: !!float 3 + value: + example: Cage Draw kVA to Contractual kVA% Exceeds + type: string + x-order: !!float 2 + type: object + Alerts: + properties: + payLoad: + items: + $ref: '#/definitions/AlertObj' + type: array + x-order: !!float 0 + status: + $ref: '#/definitions/status' + x-order: !!float 1 + type: object + ApiError: + description: ApiError provides information about the occurred error. + properties: + additionalInfo: + $ref: '#/definitions/ApiErrorAdditionalInfo' + x-order: !!float 5 + correlationId: + example: 06ce37f6-12af-4f47-9d15-e4f8fc77e1c5 + type: string + x-order: !!float 2 + details: + example: The submitted payload does not meet validation criteria. + type: string + x-order: !!float 3 + errorCode: + example: EQIX-ES-5000422 + type: string + x-order: !!float 0 + errorMessage: + example: Unprocessable Entity + type: string + x-order: !!float 1 + help: + example: ' ' + type: string + x-order: !!float 4 + type: object + ApiErrorAdditionalInfo: + properties: + constraintCode: + example: IbxesMustExistOnPaidView + type: string + x-order: !!float 0 + reason: + example: the [PA8] have no access to paid view + type: string + x-order: !!float 1 + type: object + Asset: + description: Asset messages provide the latest readings for environmental, electrical, and mechanical assets within an IBX + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + assetClassification: + description: Asset Classification value if specified, otherwise all allowable classifications + items: + enum: + - MECHANICAL + - ENVIRONMENTAL + - ELECTRICAL + type: string + maxItems: !!float 2147483647 + minItems: !!float 1 + type: array + uniqueItems: true + x-order: !!float 2 + assetId: + items: + type: string + maxItems: !!float 2147483647 + minItems: !!float 1 + type: array + uniqueItems: true + x-order: !!float 3 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + required: + - accountNumber + - ibx + type: object + AssetDetailResponse: + description: response object for asset/details POST request + properties: + payLoad: + properties: + assetDetails: + items: + $ref: '#/definitions/AssetDetails' + type: array + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetDetails: + description: Asset Details includes Tag Points with Data for the asset + properties: + alarmLastProcessedTime: + description: Datetime when the latest alarm was processed on the asset + example: Aug 21,2017 05:52 AM + type: string + x-order: !!float 9 + alarmLastTriggeredTime: + description: Datetime when the latest alarm was triggered on the asset + example: Aug 21,2017 04:38 AM + type: string + x-order: !!float 8 + assetId: + description: asset id for the Asset + example: CH1.Chiller-1 + type: string + x-order: !!float 0 + assetType: + description: Template Name for the asset + example: Cooling + type: string + x-order: !!float 1 + equipmentModelNumber: + description: Equipment Model Number + example: SACAC110-3EXX-2A1-16A-010 + type: string + x-order: !!float 6 + equipmentSerialNumber: + description: Equipment Serial Number + example: FF0010I233Q1276 + type: string + x-order: !!float 7 + lastMaintenanceDate: + description: Datetime when the machine had its last maintenance + example: Aug 03,2016 + type: string + x-order: !!float 4 + manufacturerName: + description: Manufacturer name for the Asset + example: SMARDT + type: string + x-order: !!float 5 + tags: + description: List of tag points for the Asset + items: + $ref: '#/definitions/TagPointDataArray' + type: array + x-order: !!float 3 + userPrefTimeZone: + description: Time zone for the user + example: Asia/Katmandu + type: string + x-order: !!float 2 + type: object + AssetDetailsGetResponse: + properties: + payLoad: + properties: + alarmLastProcessedTime: + description: Datetime when the latest alarm was processed on the asset + example: Aug 21,2017 05:52 AM + type: string + x-order: !!float 9 + alarmLastTriggeredTime: + description: Datetime when the latest alarm was triggered on the asset + example: Aug 21,2017 04:38 AM + type: string + x-order: !!float 8 + assetId: + description: asset id for the Asset + example: CH1.Chiller-1 + type: string + x-order: !!float 0 + assetType: + description: Template Name for the asset + example: Cooling + type: string + x-order: !!float 1 + equipmentModelNumber: + description: Equipment Model Number + example: SACAC110-3EXX-2A1-16A-010 + type: string + x-order: !!float 6 + equipmentSerialNumber: + description: Equipment Serial Number + example: FF0010I233Q1276 + type: string + x-order: !!float 7 + lastMaintenanceDate: + description: Datetime when the machine had its last maintenance + example: Aug 03,2016 + type: string + x-order: !!float 4 + manufacturerName: + description: Manufacturer name for the Asset + example: SMARDT + type: string + x-order: !!float 5 + tags: + description: List of tag points for the Asset + items: + $ref: '#/definitions/TagPointDataArray' + type: array + x-order: !!float 3 + userPrefTimeZone: + description: Time zone for the user + example: Asia/Katmandu + type: string + x-order: !!float 2 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetDetailsRequest: + allOf: + - $ref: '#/definitions/GenericRequest' + - properties: + assetIds: + items: + description: asset id + type: string + type: array + AssetDetailsResponse: + description: response object for asset/details POST request + properties: + payLoad: + properties: + assetDetails: + items: + $ref: '#/definitions/AssetDetails' + type: array + x-order: !!float 1 + totalCount: + description: total number of assets that match the request filters + example: !!float 1 + type: integer + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetDetailsTagPointData: + properties: + payLoad: + items: + $ref: '#/definitions/TagPointDataArray' + type: array + x-order: !!float 0 + type: object + Assets: + properties: + payLoad: + properties: + assetsList: + items: + $ref: '#/definitions/AssetsArray' + type: array + x-order: !!float 1 + totalCount: + example: !!float 1 + type: integer + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages ' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetsArray: + properties: + assetClassification: + description: | + Asset classification is electrical or mechanical + example: Electrical + type: string + x-order: !!float 3 + assetId: + description: "The assetid is the circuit number, sensor id, asset id, asset id \nfor type circuit, sensor, electrical and mechanical resp.\n" + example: CH1.ASTS-1-2-A + type: string + x-order: !!float 0 + assetLabel: + description: "Asset Label is the Circuit display label, Sensor ID, and Asset ID\nfor types circuit, sensor, electrical and mechanical resp. \n" + example: CH1.ASTS-1-2-A + type: string + x-order: !!float 2 + type: + example: ASTS + type: string + x-order: !!float 1 + type: object + AssetsList: + properties: + payLoad: + properties: + categories: + items: + $ref: '#/definitions/Category' + type: array + x-order: !!float 1 + classification: + description: asset classification for the Electrical and Mechanical + example: Mechanical + type: string + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AwsIotCoreChannelConfiguration: + description: The configuration for an 'AWS_IOT_CORE' channel + properties: + url: + example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com + type: string + x-order: !!float 0 + required: + - url + type: object + AzureChannelConfiguration: + description: The configuration for an 'AZURE' channel + properties: + batchSize: + format: int32 + maximum: !!float 20 + minimum: !!float 5 + type: integer + x-order: !!float 2 + numberOfConcurrentCalls: + format: int32 + maximum: !!float 50 + minimum: !!float 20 + type: integer + x-order: !!float 1 + numberOfRetries: + format: int32 + maximum: !!float 5 + minimum: !!float 1 + type: integer + x-order: !!float 0 + type: object + Cabinets: + properties: + circuits: + items: + $ref: '#/definitions/Circuits' + type: array + x-order: !!float 2 + name: + enum: + - CH1:05:000430:0105 + type: string + x-order: !!float 0 + type: + example: cabinet + type: string + x-order: !!float 1 + type: object + Cages: + properties: + cabinets: + items: + $ref: '#/definitions/Cabinets' + type: array + x-order: !!float 2 + name: + description: Cage Unique Space Id + example: CH1:05:000430 + type: string + x-order: !!float 0 + type: + description: type of the asset + example: cage + type: string + x-order: !!float 1 + type: object + Category: + properties: + categoryName: + example: Cooling + type: string + x-order: !!float 1 + templates: + items: + $ref: '#/definitions/Template' + type: array + x-order: !!float 0 + type: object + Channel: + description: Subscription can be created using one channel. + properties: + awsIotCoreChannelConfiguration: + $ref: '#/definitions/AwsIotCoreChannelConfiguration' + x-order: !!float 1 + azureChannelConfiguration: + $ref: '#/definitions/AzureChannelConfiguration' + x-order: !!float 3 + channelType: + enum: + - AWS_IOT_CORE + - WEBHOOK + - AZURE + type: string + x-order: !!float 0 + webhookChannelConfiguration: + $ref: '#/definitions/WebhookChannelConfiguration' + x-order: !!float 2 + type: object + Circuits: + properties: + name: + enum: + - !!float 877484 + type: string + x-order: !!float 0 + type: + enum: + - circuit + type: string + x-order: !!float 1 + type: object + CircuitsMapWithCage: + properties: + name: + enum: + - !!float 877483 + type: string + x-order: !!float 0 + type: + enum: + - circuit + type: string + x-order: !!float 1 + type: object + ComparisonData: + description: | + comparison of readings with the current reading for specified datapoint + properties: + datapoint: + description: datapoint on which the comparison is done. + enum: + - percentageKva + type: string + x-order: !!float 0 + lastMonth: + description: "comparison for the current value of the datapoint with the last \nmonth's value\n" + example: -0.184 + type: number + x-order: !!float 3 + lastQuarter: + description: "comparison for the current value of the datapoint with the last \nquarter's value \n" + example: 52.434 + type: number + x-order: !!float 4 + lastWeek: + description: "comparison for the current value of the datapoint with last week's \nvalue\n" + example: -0.295 + type: number + x-order: !!float 2 + yesterday: + description: "comparison for the current value of the datapoint with yesterday's \nvalue\n" + example: 0.147 + type: number + x-order: !!float 1 + type: object + ComparisonData_Trend: + description: | + date and corresponding values + properties: + datetime: + description: datetime. + example: "201701010004" + type: string + x-order: !!float 0 + value: + description: trending values + example: "0.147" + type: string + x-order: !!float 1 + type: object + ConditionalAlert: + properties: + affectedCustomerAsset: + example: "258" + type: string + x-order: !!float 4 + alertType: + example: "258" + type: string + x-order: !!float 8 + asset: + example: "12" + type: string + x-order: !!float 13 + assetname: + example: "12" + type: string + x-order: !!float 20 + assettype: + example: "12" + type: string + x-order: !!float 21 + condalerttypeid: + example: "12" + type: string + x-order: !!float 14 + condassetclassification: + example: "12" + type: string + x-order: !!float 15 + condassetid: + example: "12" + type: string + x-order: !!float 16 + condcurrentvalue: + example: "12" + type: string + x-order: !!float 17 + condeventtype: + example: "12" + type: string + x-order: !!float 18 + condtagid: + example: "12" + type: string + x-order: !!float 19 + customerAssets: + example: "258" + type: string + x-order: !!float 5 + ibx: + example: SG3 + type: string + x-order: !!float 1 + infraAssets: + example: "258" + type: string + x-order: !!float 6 + measurementType: + example: "258" + type: string + x-order: !!float 7 + region: + example: APAC + type: string + x-order: !!float 0 + section: + example: mechanical + type: string + x-order: !!float 3 + thresholdUnit: + example: '%' + type: string + x-order: !!float 9 + thresholdValue: + example: "12" + type: string + x-order: !!float 12 + thresholdValueMax: + example: "12" + type: string + x-order: !!float 11 + thresholdValueMin: + example: "12" + type: string + x-order: !!float 10 + uom: + example: STANDARD + type: string + x-order: !!float 2 + type: object + CurrentTagPointRequest: + description: request object for tagpoint/current POST request + properties: + accountNo: + description: customer account number + type: string + x-order: !!float 0 + ibx: + description: ibx code + type: string + x-order: !!float 2 + tagIds: + items: + description: tag ids + type: string + maxLength: !!float 1000 + type: array + x-order: !!float 1 + type: object + CurrentTagPointResponse: + description: response object for tagpoint/current POST request + properties: + totalCount: + description: total number of current tag point + x-order: !!float 0 + type: object + CustomAlert: + description: Custom Alert messages are sent when user-defined alert conditions become true. The message contains the data point value that triggered the alert. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + user: + type: string + x-order: !!float 2 + required: + - accountNumber + - ibx + type: object + CustomerAssets: + properties: + assets: + items: + example: "1069" + type: array + x-order: !!float 1 + assetsName: + items: + example: SG1:03:A20011 + type: array + x-order: !!float 2 + type: + example: cage + type: string + x-order: !!float 0 + type: object + DataValue: + description: This object contains a single reading for the data point. + properties: + datetime: + description: timestamp since epoch. reading timestamp + example: "1483977600000" + type: string + x-order: !!float 2 + modifiers: + description: modifiers applicable for the reading value + items: + example: recorded + type: string + type: array + x-order: !!float 1 + value: + description: reading value for the datapoint + example: "21.11" + type: string + x-order: !!float 0 + type: object + Environment: + description: message data + properties: + asset: + $ref: '#/definitions/EnvironmentAssetDetails' + x-order: !!float 2 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 6 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + reading: + $ref: '#/definitions/EnvironmentValueWithUnit' + x-order: !!float 3 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 5 + streamId: + description: unique message id + example: IBX.IBX:humidity + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/EnvironmentTagDetails' + x-order: !!float 4 + required: + - asset + - ibx + - reading + - streamId + - tag + type: object + EnvironmentAssetDetails: + description: asset details + properties: + id: + description: asset id + example: IBX + type: string + x-order: !!float 0 + level: + description: asset level + example: IBX + type: string + x-order: !!float 1 + required: + - id + - level + type: object + EnvironmentData: + properties: + payLoad: + properties: + accountNo: + description: account number + example: "1" + type: string + x-order: !!float 1 + cabinet: + description: cabinet unique space id + example: CH1:05:000550:0105 + type: string + x-order: !!float 4 + cage: + description: cage unique space id + example: CH1:05:000550 + type: string + x-order: !!float 3 + humidity: + description: current humidity + example: "43.00" + type: string + x-order: !!float 7 + humidityUom: + description: unit of measure for humidity + example: '%' + type: string + x-order: !!float 10 + ibx: + description: ibx code + example: CH1 + type: string + x-order: !!float 0 + sensor: + description: sensor id + example: CH1.Colo.CH1_05_000550_0105 + type: string + x-order: !!float 5 + temperature: + description: current temperature + example: "20.0" + type: string + x-order: !!float 6 + temperatureUom: + description: unit of measure for temperature values + example: °C + type: string + x-order: !!float 9 + timestamp: + description: epoch timestamp when the current reading was read + example: "1506665106579" + type: string + x-order: !!float 8 + zone: + description: zone unique space id + example: CH1:1:05:ColoArea:2 + type: string + x-order: !!float 2 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + EnvironmentDataForArray: + properties: + accountNo: + description: account number + example: "1" + type: string + x-order: !!float 1 + cabinet: + description: cabinet unique space id + example: CH1:05:000550:0105 + type: string + x-order: !!float 4 + cage: + description: cage unique space id + example: CH1:05:000550 + type: string + x-order: !!float 3 + humidity: + description: current humidity + example: "43.00" + type: string + x-order: !!float 7 + humidityUom: + description: unit of measure for humidity + example: '%' + type: string + x-order: !!float 10 + ibx: + description: ibx code + example: CH1 + type: string + x-order: !!float 0 + sensor: + description: sensor id + example: CH1.Colo.CH1_05_000550_0105 + type: string + x-order: !!float 5 + temperature: + description: current temperature + example: "20.0" + type: string + x-order: !!float 6 + temperatureUom: + description: unit of measure for temperature values + example: °C + type: string + x-order: !!float 9 + timestamp: + description: epoch timestamp when the current reading was read + example: "1506665106579" + type: string + x-order: !!float 8 + zone: + description: zone unique space id + example: CH1:1:05:ColoArea:2 + type: string + x-order: !!float 2 + type: object + EnvironmentDataResponse: + properties: + payLoad: + properties: + data: + items: + $ref: '#/definitions/EnvironmentDataForArray' + type: array + x-order: !!float 1 + totalCount: + description: total number of data values + example: !!float 1 + type: integer + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages ' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + EnvironmentMessageData: + description: environment message data + properties: + data: + $ref: '#/definitions/Environment' + x-order: !!float 1 + type: + default: environmental + description: message type + example: environmental + type: string + x-order: !!float 0 + required: + - data + - type + type: object + EnvironmentTagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: Humidity + type: string + x-order: !!float 1 + id: + description: tag id + example: humidity + type: string + x-order: !!float 0 + required: + - id + type: object + EnvironmentValueWithUnit: + description: reading details + properties: + unit: + description: Environmental reading unit + example: PERCENT + type: string + x-order: !!float 1 + value: + description: Environmental reading value + example: "50.045" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + Environmental: + description: Environmental messages provide the latest temperature and humidity readings at the IBX and zone levels. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + level: + description: This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided. + items: + enum: + - ZONE + - IBX + - CAGE + type: string + maxItems: !!float 3 + minItems: !!float 1 + type: array + uniqueItems: true + x-order: !!float 2 + required: + - accountNumber + - ibx + type: object + Error: + properties: + payLoad: + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' + example: INTERNAL_ERROR + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' + example: "4000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - ERROR + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + GenericRequest: + properties: + accountNo: + description: customer account number + type: string + x-order: !!float 0 + classification: + description: asset classification + type: string + x-order: !!float 2 + ibx: + description: ibx code + type: string + x-order: !!float 1 + type: object + HierarchyNode: + properties: + payLoad: + properties: + cages: + items: + $ref: '#/definitions/Cages' + type: array + x-order: !!float 0 + circuits: + items: + $ref: '#/definitions/CircuitsMapWithCage' + type: array + x-order: !!float 1 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + LocationResponse: + items: + $ref: '#/definitions/HierarchyNode' + type: array + MessageType: + description: Message type for a given subscription + properties: + asset: + description: List of asset message type to subscribe + items: + $ref: '#/definitions/Asset' + type: array + x-order: !!float 0 + customAlert: + description: List of custom alert message type to subscribe + items: + $ref: '#/definitions/CustomAlert' + type: array + x-order: !!float 5 + environmental: + description: List of environmental message type to subscribe + items: + $ref: '#/definitions/Environmental' + type: array + x-order: !!float 1 + meteredPower: + description: List of metered power message type to subscribe + items: + $ref: '#/definitions/MeteredPower' + type: array + x-order: !!float 3 + power: + description: List of power message type to subscribe + items: + $ref: '#/definitions/PowerMessage' + type: array + x-order: !!float 2 + systemAlert: + description: List of system alert message type to subscribe + items: + $ref: '#/definitions/SystemAlert' + type: array + x-order: !!float 4 + type: object + MeteredPower: + description: message data + properties: + accountNumber: + description: account number + example: "123456" + type: string + x-order: !!float 5 + asset: + $ref: '#/definitions/MeteredPowerAssetDetails' + x-order: !!float 2 + cage: + description: cage + example: IBX:02:021305 + type: string + x-order: !!float 3 + cageSerialNo: + description: cage serial number + example: 021305-20604711 + type: string + x-order: !!float 4 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 9 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + reading: + $ref: '#/definitions/MeteredPowerValueWithUnit' + x-order: !!float 7 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 8 + streamId: + description: unique message id + example: IBX.CBM-B1-4-1:kilowattHour + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/MeteredPowerTagDetails' + x-order: !!float 6 + required: + - asset + - ibx + - reading + - streamId + - tag + type: object + MeteredPowerAssetDetails: + description: asset details + properties: + id: + description: asset id + example: IBX.CBM-B1-4-1 + type: string + x-order: !!float 0 + type: + description: asset type + example: Customer Billing Meter + type: string + x-order: !!float 1 + required: + - id + type: object + MeteredPowerMessageData: + description: metered-power message data + properties: + data: + $ref: '#/definitions/MeteredPower' + x-order: !!float 1 + type: + default: metered-power + description: message type + example: metered-power + type: string + x-order: !!float 0 + required: + - data + - type + type: object + MeteredPowerTagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: kilowattHour + type: string + x-order: !!float 1 + id: + description: tag id + example: IBX.CBM-B1-4-1:kilowattHour + type: string + x-order: !!float 0 + required: + - id + type: object + MeteredPowerValueWithUnit: + description: reading details + properties: + unit: + description: reading unit + example: kWh + type: string + x-order: !!float 1 + value: + description: reading value + example: "412568.125" + type: string + x-order: !!float 0 + required: + - value + type: object + Pagination: + description: Represents pagination component of the paginated response + properties: + limit: + description: The page size. + format: int64 + type: integer + next: + description: Represents a relative link to the next page. This can be empty if there is no next page available. + type: string + offset: + description: The number of elements to skip. + format: int64 + type: integer + previous: + description: Represents a relative link to the previous page. This can be empty if there is no previous page available. + type: string + total: + description: The total number of elements in the result set. + format: int64 + type: integer + required: + - limit + - offset + - total + type: object + Power: + description: message data + properties: + accountNumber: + description: account number + example: "123456" + type: string + x-order: !!float 5 + apparentPower: + $ref: '#/definitions/PowerApparentPowerValueWithUnit' + x-order: !!float 10 + asset: + $ref: '#/definitions/PowerAssetDetails' + x-order: !!float 2 + cabinet: + description: cabinet + example: IBX:01:000Z4Z:0102 + type: string + x-order: !!float 4 + cabinetRating: + $ref: '#/definitions/PowerCabinetRatingValueWithUnit' + x-order: !!float 17 + cage: + description: cage + example: IBX:02:021305 + type: string + x-order: !!float 3 + circuitType: + description: circuit type + example: PRIMARY + type: string + x-order: !!float 8 + contractualPower: + $ref: '#/definitions/PowerContractualPowerValueWithUnit' + x-order: !!float 11 + current: + $ref: '#/definitions/PowerCurrentValueWithUnit' + x-order: !!float 12 + description: + description: description + example: 32-amp 230v Single Phase Primary AC Power + type: string + x-order: !!float 6 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + lastUpdated: + description: last updated time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 22 + oid: + description: oid + example: 1.3.6.1.2.1.299.36.10.1099 + type: string + x-order: !!float 7 + peakLastSevenDays: + $ref: '#/definitions/PowerPeakLastSevenDaysValueWithUnit' + x-order: !!float 18 + peakLastSevenDaysContractualPower: + $ref: '#/definitions/PowerPeakLastSevenDaysContractualPowerValueWithUnit' + x-order: !!float 20 + peakLastSevenDaysRatio: + $ref: '#/definitions/PowerPeakLastSevenDaysRatioValueWithUnit' + x-order: !!float 19 + peakLastSevenDaysTime: + description: peak last seven days time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 21 + powerConsumptionToContractual: + $ref: '#/definitions/PowerPowerConsumptionToContractualValueWithUnit' + x-order: !!float 16 + powerFactor: + $ref: '#/definitions/PowerPowerFactorValueWithUnit' + x-order: !!float 13 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 23 + realPower: + $ref: '#/definitions/PowerRealPowerValueWithUnit' + x-order: !!float 9 + soldCurrent: + $ref: '#/definitions/PowerSoldCurrentValueWithUnit' + x-order: !!float 14 + soldPower: + $ref: '#/definitions/PowerSoldPowerValueWithUnit' + x-order: !!float 15 + streamId: + description: unique message id + example: IBX:140838 + type: string + x-order: !!float 0 + required: + - asset + - ibx + - streamId + type: object + PowerApparentPowerValueWithUnit: + description: apparentPower details + properties: + unit: + description: ApparentPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: ApparentPower reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerAssetDetails: + description: asset details + properties: + id: + description: asset id + example: IBX:140838 + type: string + x-order: !!float 0 + type: + description: asset type + example: CIRCUIT + type: string + x-order: !!float 1 + required: + - id + - type + type: object + PowerCabinetRatingValueWithUnit: + description: cabinetRating details + properties: + unit: + description: CabinetRating reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: CabinetRating reading value + example: "8.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerContractualPowerValueWithUnit: + description: contractualPower details + properties: + unit: + description: ContractualPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: ContractualPower reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerCurrentPostRequest: + description: | + date and corresponding values + properties: + accountNo: + description: ' Customer Account Number' + example: "1234" + type: string + x-order: !!float 0 + ibx: + description: trending values + example: "0.147" + type: string + x-order: !!float 1 + levelType: + description: level type allowed value [ibx|cage|cabinet|circuit] + enum: + - ibx + - cage + - cabinet + - circuit + example: "0.147" + type: string + x-order: !!float 2 + type: object + PowerCurrentValueWithUnit: + description: current details + properties: + unit: + description: Current reading unit + example: A + type: string + x-order: !!float 1 + value: + description: Current reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerData: + properties: + payLoad: + properties: + accountNo: + description: customer account number + example: ABC + type: string + x-order: !!float 1 + amps: + description: instantaneous current amp reading on circuits + example: !!float 123 + type: number + x-order: !!float 6 + cabinetRating: + description: maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise. + example: 341.54 + type: number + x-order: !!float 8 + comparisonData: + $ref: '#/definitions/ComparisonData' + x-order: !!float 11 + contractualKva: + description: "The maximum power draw contractually allowable in a \nprivate cage. \n" + example: 341.54 + type: number + x-order: !!float 9 + customerName: + example: ABC + type: string + x-order: !!float 23 + ibx: + description: ibx code + example: ABC + type: string + x-order: !!float 0 + isAlarm: + description: returns boolean based on breakertip alarm + example: "true" + type: string + x-order: !!float 4 + kva: + description: power consumption in kva + example: 54.402 + type: number + x-order: !!float 5 + kw: + description: "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions \n" + example: NA + type: string + x-order: !!float 19 + lastUpdatedTime: + description: | + date-time when the latest value was updated (epoc - milliseconds). + example: "1497410520000" + type: string + x-order: !!float 22 + levelType: + description: power hierarchy node levelType linked to the power data + enum: + - ibx + - cage + - cabinet + - circuit + example: ibx + type: string + x-order: !!float 2 + levelValue: + description: power hierarchy node levelValue linked to the power data + example: ABC + type: string + x-order: !!float 3 + peakKvaLastSevenDays: + example: 55.296 + type: number + x-order: !!float 12 + peakKvaLastSevenDaysContractualKva: + example: 55.296 + type: number + x-order: !!float 14 + peakKvaLastSevenDaysPercentage: + example: 55.296 + type: number + x-order: !!float 13 + peakKvaLastSevenDaysTime: + example: 55.296 + type: integer + x-order: !!float 15 + percentageKva: + description: calculated field kva / contractualKva + example: 341.54 + type: number + x-order: !!float 10 + powerFactor: + description: | + The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions + example: NA + type: string + x-order: !!float 20 + primaryKva: + description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" + example: 28.31 + type: number + x-order: !!float 17 + readingTime: + description: | + date-time when the latest value was read in (epoc - milliseconds). + example: "1497410400000" + type: string + x-order: !!float 21 + redundantKva: + description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" + example: 26.092 + type: number + x-order: !!float 18 + soldAmps: + description: circuit description when the levelType is circuit. Null otherwise. + example: !!float 123 + type: integer + x-order: !!float 16 + soldKva: + description: maximum amp draw allowable on a circuit + example: 598.349 + type: number + x-order: !!float 7 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + PowerDataResponse_IBX: + properties: + payLoad: + properties: + data: + items: + $ref: '#/definitions/PowerData_IBX' + type: array + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + PowerData_Error: + properties: + payLoad: + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: INTERNAL_ERROR + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "4000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - ERROR + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + PowerData_IBX: + properties: + accountNo: + description: customer account number + example: ABC + type: string + x-order: !!float 1 + amps: + description: instantaneous current amp reading on circuits + example: !!float 123 + type: number + x-order: !!float 6 + cabinetRating: + description: maximum kVA draw allowed for the cabinet + example: !!float 123 + type: number + x-order: !!float 8 + comparisonData: + $ref: '#/definitions/ComparisonData' + x-order: !!float 11 + contractualKva: + description: "The maximum power draw contractually allowable in a \nprivate cage. \nexample: 341.54\n" + type: number + x-order: !!float 9 + customerName: + example: ABC + type: string + x-order: !!float 23 + ibx: + description: ibx code + example: ABC + type: string + x-order: !!float 0 + isAlarm: + description: returns boolean based on breakertip alarm + example: "true" + type: string + x-order: !!float 4 + kva: + description: power consumption in kva + example: 54.402 + type: number + x-order: !!float 5 + kw: + description: | + measure of real power expressed in kilowatt applicable for ibxs + that have capability of energy meter reading|value will be "NA" for AMER and APAC regions + example: NA + type: string + x-order: !!float 19 + lastUpdatedTime: + description: | + date-time when the latest value was updated (epoc - milliseconds). + example: "1497410520000" + type: string + x-order: !!float 22 + levelType: + description: power hierarchy node levelType linked to the power data + enum: + - ibx + - cage + - cabinet + - circuit + example: ibx + type: string + x-order: !!float 2 + levelValue: + description: power hierarchy node levelValue linked to the power data + example: ABC + type: string + x-order: !!float 3 + peakKvaLastSevenDays: + example: 55.296 + type: number + x-order: !!float 12 + peakKvaLastSevenDaysContractualKva: + example: 55.296 + type: number + x-order: !!float 14 + peakKvaLastSevenDaysPercentage: + example: 55.296 + type: number + x-order: !!float 13 + peakKvaLastSevenDaysTime: + example: 55.296 + type: integer + x-order: !!float 15 + percentageKva: + description: calculated field kva / contractualKva + example: 15.928 + type: number + x-order: !!float 10 + powerFactor: + description: | + The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions + example: NA + type: string + x-order: !!float 20 + primaryKva: + description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" + example: 28.31 + type: number + x-order: !!float 17 + readingTime: + description: | + date-time when the latest value was read in (epoc - milliseconds). + example: "1497410400000" + type: string + x-order: !!float 21 + redundantKva: + description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" + example: 26.092 + type: number + x-order: !!float 18 + soldAmps: + description: circuit description when the levelType is circuit. Null otherwise. + example: !!float 123 + type: integer + x-order: !!float 16 + soldKva: + description: maximum amp draw allowable on a circuit + example: 598.349 + type: number + x-order: !!float 7 + type: object + PowerHierarchyNode: + properties: + children: + description: "ibx, cage, cabinet nodes can have cage, cabinet and circuit, \ncircuit nodes as children respectively.\n" + example: + - children: + - children: + - children: [] + label: 208V 20A 1Ph Red (3693) + levelType: CIRCUIT + levelValue: XYZA3693 + label: XY1:06:061600:0101 + levelType: CABINET + levelValue: "102563" + - children: + - children: [] + label: 208V 20A 1Ph Red (3694) + levelType: CIRCUIT + levelValue: XYZA3694 + - children: [] + label: 208V 20A 1Ph Pri (3692) + levelType: CIRCUIT + levelValue: XYZA3692 + label: XY1:06:061600:0102 + levelType: CABINET + levelValue: "102564" + - children: + - children: [] + label: 120V 30A 1Ph Red (7863) + levelType: CIRCUIT + levelValue: XYZE7863 + - children: [] + label: 120V 30A 1Ph Pri (7862) + levelType: CIRCUIT + levelValue: XYZE7862 + label: XY1:06:061600:0302 + levelType: CABINET + levelValue: "102582" + - children: + - children: [] + label: 208V 20A 1Ph Red (4836) + levelType: CIRCUIT + levelValue: XYZG4836 + label: XY1:06:061600:0307 + levelType: CABINET + levelValue: "102587" + label: XY1:06:061600 + levelType: CAGE + levelValue: "5902" + - children: + - children: + - children: [] + label: 120V 20A 1Ph Red (2630) + levelType: CIRCUIT + levelValue: XYZH2630 + - children: [] + label: 120V 20A 1Ph Pri (2629) + levelType: CIRCUIT + levelValue: XYZH2629 + label: XY1:06:063000:0101 + levelType: CABINET + levelValue: "100798" + label: XY1:06:063000 + levelType: CAGE + levelValue: "60442" + items: + $ref: '#/definitions/PowerHierarchyNode' + type: array + x-order: !!float 3 + label: + description: | + ibx code, cage unique space id, cabinet unique space id, circuit label + for levelType ibx, cage, cabinet, circuit resp. + example: XY1 + type: string + x-order: !!float 2 + levelType: + description: "levelType indicates which level in the power hierarchy \ndoes the node belong to.\n" + enum: + - ibx + - cage + - cabinet + - circuit + example: IBX + type: string + x-order: !!float 0 + levelValue: + description: "ibx code, cage us id, cabinet us id, circuit number for \nlevelType ibx, cage, cabinet, circuit resp.\n" + example: XY1 + type: string + x-order: !!float 1 + type: object + PowerMessage: + description: Power messages provide the latest power usage data at the circuit-level. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + required: + - accountNumber + - ibx + type: object + PowerMessageData: + description: power message data + properties: + data: + $ref: '#/definitions/Power' + x-order: !!float 1 + type: + default: power + description: message type + example: power + type: string + x-order: !!float 0 + required: + - data + - type + type: object + PowerPeakLastSevenDaysContractualPowerValueWithUnit: + description: peakLastSevenDaysContractualPower details + properties: + unit: + description: PeakLastSevenDaysContractualPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: PeakLastSevenDaysContractualPower reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPeakLastSevenDaysRatioValueWithUnit: + description: peakLastSevenDaysRatio details + properties: + unit: + description: PeakLastSevenDaysRatio reading unit + example: PERCENT + type: string + x-order: !!float 1 + value: + description: PeakLastSevenDaysRatio reading value + example: "48.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPeakLastSevenDaysValueWithUnit: + description: peakLastSevenDays details + properties: + unit: + description: PeakLastSevenDays reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: PeakLastSevenDays reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPowerConsumptionToContractualValueWithUnit: + description: powerConsumptionToContractual details + properties: + unit: + description: PowerConsumptionToContractual reading unit + example: PERCENT + type: string + x-order: !!float 1 + value: + description: PowerConsumptionToContractual reading value + example: "68.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPowerFactorValueWithUnit: + description: powerFactor details + properties: + unit: + description: PowerFactor reading unit + example: pf + type: string + x-order: !!float 1 + value: + description: PowerFactor reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerRealPowerValueWithUnit: + description: realPower details + properties: + unit: + description: RealPower reading unit + example: kW + type: string + x-order: !!float 1 + value: + description: RealPower reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerResponse: + items: + $ref: '#/definitions/PowerHierarchyNode' + type: array + PowerSoldCurrentValueWithUnit: + description: soldCurrent details + properties: + unit: + description: SoldCurrent reading unit + example: A + type: string + x-order: !!float 1 + value: + description: SoldCurrent reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerSoldPowerValueWithUnit: + description: soldPower details + properties: + unit: + description: SoldPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: SoldPower reading value + example: "68.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + Sensor reading: + description: Single environmental sensor reading. + properties: + humidity: + $ref: '#/definitions/ValueWithUnit' + description: 'Sensor reading: humidity' + example: '{ value: 33.3, unit: "%" }' + ibx: + description: The ibx identifier where the sensor is placed. + example: SV2 + type: string + sensorId: + description: The sensor identifier. + example: SV2.Environmental.Colo4-ZoneHumidity1 + type: string + temperature: + $ref: '#/definitions/ValueWithUnit' + description: 'Sensor reading: temperature' + example: '{ value: 23.08, unit: "CELSIUS" }' + zoneId: + description: The zone where the sensor is placed. + example: CH2:1:06:ColoArea:1 + type: string + required: + - ibx + - sensorId + - zoneId + type: object + SensorReadingsResponse: + properties: + data: + description: List of data objects + items: + $ref: '#/definitions/Sensor%20reading' + type: array + pagination: + $ref: '#/definitions/Pagination' + description: Pagination metadata + required: + - data + - pagination + type: object + SubscriptionData: + properties: + alarmMessageData: + description: alarm message data + items: + $ref: '#/definitions/AlarmMessageData' + type: array + x-order: !!float 0 + alertMessageData: + description: alert message data + items: + $ref: '#/definitions/AlertMessageData' + type: array + x-order: !!float 1 + environmentMessageData: + description: environment message data + items: + $ref: '#/definitions/EnvironmentMessageData' + type: array + x-order: !!float 2 + meteredPowerMessageData: + description: metered-power message data + items: + $ref: '#/definitions/MeteredPowerMessageData' + type: array + x-order: !!float 3 + pagination: + $ref: '#/definitions/Pagination' + x-order: !!float 6 + powerMessageData: + description: power message data + items: + $ref: '#/definitions/PowerMessageData' + type: array + x-order: !!float 4 + tagPointMessageData: + description: tag-point message data + items: + $ref: '#/definitions/TagPointMessageData' + type: array + x-order: !!float 5 + type: object + SubscriptionRequest: + description: Subscription Request Payload + properties: + channel: + $ref: '#/definitions/Channel' + description: channel + x-order: !!float 1 + messageType: + $ref: '#/definitions/MessageType' + x-order: !!float 0 + type: object + SubscriptionResponse: + description: Subscription Response + properties: + channel: + $ref: '#/definitions/Channel' + x-order: !!float 3 + createdBy: + type: string + x-order: !!float 5 + createdDateTime: + format: date-time + type: string + x-order: !!float 6 + id: + type: string + x-order: !!float 0 + messageType: + $ref: '#/definitions/MessageType' + x-order: !!float 2 + orgId: + type: string + x-order: !!float 4 + status: + enum: + - PENDING + - ACTIVE + - FAILED + - DELETE_IN_PROGRESS + - DELETED + type: string + x-order: !!float 1 + updatedBy: + type: string + x-order: !!float 7 + updatedDateTime: + format: date-time + type: string + x-order: !!float 8 + type: object + SystemAlert: + description: System Alert messages are sent when Equinix-defined alert conditions become true. The message contains the data point value that triggered the alert as well as the current value. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + required: + - accountNumber + - ibx + type: object + TagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: Output Voltage CA + type: string + x-order: !!float 1 + id: + description: tag id + example: IBX.ATS-M1-04:outputvoltageca + type: string + x-order: !!float 0 + required: + - id + type: object + TagPoint: + description: message data + properties: + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 5 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + reading: + $ref: '#/definitions/TagPointValueWithUnit' + x-order: !!float 3 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 4 + streamId: + description: unique message id + example: IBX.ATS-M1-04:outputvoltageca + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/TagDetails' + x-order: !!float 2 + required: + - dataQuality + - ibx + - reading + - readingTime + - streamId + - tag + type: object + TagPointData: + properties: + payLoad: + items: + $ref: '#/definitions/TagPointDataArrayCurrent' + type: array + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + TagPointDataArray: + description: | + Tag Point is a property of the Asset it is linked to. + properties: + alarmStatus: + description: "Generic label for the tag point \n" + example: OK + type: string + x-order: !!float 4 + readingTime: + description: | + date time when the tag point value was read from the device. + example: "20170907060449" + type: string + x-order: !!float 5 + tagDisplayName: + description: | + Generic label for the tag point + example: Evaporator Leaving Water Temperature + type: string + x-order: !!float 2 + tagId: + description: | + ID for the tagPoint - Unique Identifier for the Tag Point + example: CH1.Chiller-1:evapleavingwatertemperature + type: string + x-order: !!float 1 + uom: + description: | + Unit of measure for the data value for the tag point + example: °C + type: string + x-order: !!float 3 + value: + description: | + Current data value for the tag point + example: 4.9 + type: string + x-order: !!float 0 + type: object + TagPointDataArrayCurrent: + description: | + Tag Point is a property of the Asset it is linked to. + properties: + readingTime: + description: "date time when the tag point value was read from the device. \n" + example: "20170907125336" + type: string + x-order: !!float 4 + tagDisplayName: + description: | + Generic label for the tag point + example: Evaporator Leaving Water Temperature + type: string + x-order: !!float 2 + tagId: + description: | + ID for the tagPoint - Unique Identifier for the Tag Point + example: CH1.Chiller-1:evapleavingwatertemperature + type: string + x-order: !!float 1 + uom: + description: | + Unit of measure for the data value for the tag point + example: °C + type: string + x-order: !!float 3 + value: + description: | + Current data value for the tag point + example: 4.9 + type: string + x-order: !!float 0 + type: object + TagPointMessageData: + description: tag-point message data + properties: + data: + $ref: '#/definitions/TagPoint' + x-order: !!float 1 + type: + default: tag-point + description: message type + example: tag-point + type: string + x-order: !!float 0 + required: + - data + - type + type: object + TagPointTrendingData: + properties: + datetime: + description: UTC time + example: "1504779867508" + type: string + x-order: !!float 0 + value: + example: "0.0" + type: string + x-order: !!float 1 + type: object + TagPointTrendingResponse: + properties: + payLoad: + properties: + accountNumber: + example: "1" + type: string + x-order: !!float 0 + data: + description: trend data of tag + items: + $ref: '#/definitions/TagPointTrendingData' + type: array + x-order: !!float 7 + dataType: + description: data type of trend data vlaues + example: Float + type: string + x-order: !!float 6 + ibx: + example: CH1 + type: string + x-order: !!float 1 + interval: + description: data sampling interval + enum: + - 5m + - 15m + - 1h + - 1d + example: 1h + type: string + x-order: !!float 2 + tagDisplayName: + description: "the \n" + example: Battery Time Remaining + type: string + x-order: !!float 5 + tagId: + description: | + the unique identifiers for the tag point ids for which the trending point is requested. + example: CH1.UPS-20:batterytimeremaining + type: string + x-order: !!float 4 + uom: + example: s + type: string + x-order: !!float 3 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + TagPointValueWithUnit: + description: reading details + properties: + unit: + description: reading unit + example: V + type: string + x-order: !!float 1 + value: + description: reading value + example: "50.045" + type: string + x-order: !!float 0 + required: + - value + type: object + Template: + description: template is a blueprint for an asset. + properties: + assets: + items: + $ref: '#/definitions/Asset' + type: array + x-order: !!float 0 + templateId: + description: template id - unique identifier for the template + example: Cooling Plant + type: string + x-order: !!float 1 + type: object + TrendingEnvironmentData: + properties: + payLoad: + properties: + accountNo: + description: customer account num + example: "1" + type: string + x-order: !!float 1 + datapoint: + description: data point for which the timeseries data is fetched + example: temperature + type: string + x-order: !!float 3 + ibx: + description: ibx code + example: CH1 + type: string + x-order: !!float 0 + interval: + description: interval + example: reading + type: string + x-order: !!float 2 + series: + description: Time series data for the data point + items: + $ref: '#/definitions/DataValue' + type: array + x-order: !!float 5 + uom: + description: unit of measure used for the datapoint + example: °C + type: string + x-order: !!float 4 + type: object + x-order: !!float 0 + type: object + TrendingPowerData: + properties: + payLoad: + properties: + accountNumber: + example: "123456" + type: string + x-order: !!float 0 + data: + items: + $ref: '#/definitions/ComparisonData_Trend' + type: array + x-order: !!float 5 + ibx: + example: ABX + type: string + x-order: !!float 1 + interval: + description: serial number + enum: + - 5m + - 15m + - 1h + - 1d + example: 1h + type: string + x-order: !!float 4 + levelType: + description: power hierarchy node levelType linked to the power data + enum: + - ibx + - cage + - cabinet + - circuit + type: string + x-order: !!float 2 + levelValue: + description: ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp. + example: ABX + type: string + x-order: !!float 3 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + ValueWithUnit: + description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). + properties: + unit: + description: Unit for value. + example: CELSIUS + type: object + value: + description: Specific value, to be read together with unit. + example: "33.3" + type: object + required: + - unit + - value + type: object + ValueWithUnitDoubleHumidityUnit: + description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). + properties: + unit: + description: Unit for value. + enum: + - PERCENT + example: CELSIUS + type: string + value: + description: Specific value, to be read together with unit. + example: 33.3 + format: double + type: number + required: + - unit + - value + type: object + ValueWithUnitDoubleTemperatureUnit: + description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). + properties: + unit: + description: Unit for value. + enum: + - CELSIUS + - FAHRENHEIT + example: CELSIUS + type: string + value: + description: Specific value, to be read together with unit. + example: 33.3 + format: double + type: number + required: + - unit + - value + type: object + WebhookChannelConfiguration: + description: The configuration for a 'WEBHOOK' channel + properties: + batchSize: + format: int32 + maximum: !!float 20 + minimum: !!float 5 + type: integer + x-order: !!float 4 + numberOfConcurrentCalls: + format: int32 + maximum: !!float 50 + minimum: !!float 20 + type: integer + x-order: !!float 3 + numberOfRetries: + format: int32 + maximum: !!float 5 + minimum: !!float 1 + type: integer + x-order: !!float 2 + sslCertificate: + example: ZkFzZLY1IGRpY31kZXI= + type: string + x-order: !!float 0 + url: + example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com + type: string + x-order: !!float 1 + required: + - url + type: object + recipientsArray: + properties: + email: + example: true + type: boolean + x-order: !!float 8 + email_address: + example: test + type: string + x-order: !!float 2 + firstName: + example: test + type: string + x-order: !!float 0 + lastName: + example: test + type: string + x-order: !!float 1 + mobilePhoneCode: + example: test + type: string + x-order: !!float 3 + mobilePhoneNumber: + example: test + type: string + x-order: !!float 4 + self: + example: true + type: boolean + x-order: !!float 5 + sms: + example: true + type: boolean + x-order: !!float 6 + voice: + example: true + type: boolean + x-order: !!float 7 + type: object + status: + properties: + cause: + description: root cause for error + example: "null" + type: string + x-order: !!float 1 + info: + properties: + code: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + maximum: !!float 7000 + minimum: !!float 1000 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 0 + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 1 + type: object + x-order: !!float 2 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object +parameters: + authorizationHeader: + description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' +tags: + - description: Access Power Consumption Information + name: DCIM Power + - description: Access Environment Information + name: Smart View Environment + - description: Access alert information + name: DCIM Alerts + - description: Access Asset Information + name: Smart View Assets + - description: APIs to get Location, Power Hierarchy + name: Smart View Hierarchy APIs From c92b81c84a815d678fd036235a0cfe422e21774f Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 15:31:38 -0500 Subject: [PATCH 4/8] wip: use go-swagger task to flatten API specs for Smartview Signed-off-by: Marques Johansson --- .../oas3.fetched/flattened-spec.yaml | 4777 +++++++++++++++++ 1 file changed, 4777 insertions(+) create mode 100644 spec/services/smartview/oas3.fetched/flattened-spec.yaml diff --git a/spec/services/smartview/oas3.fetched/flattened-spec.yaml b/spec/services/smartview/oas3.fetched/flattened-spec.yaml new file mode 100644 index 00000000..cde7bfb8 --- /dev/null +++ b/spec/services/smartview/oas3.fetched/flattened-spec.yaml @@ -0,0 +1,4777 @@ +consumes: + - application/json +produces: + - application/json +schemes: + - https +swagger: "2.0" +info: + contact: + name: Equinix API Support + url: https://docs.equinix.com/api-support.htm + description: Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + termsOfService: https://www.equinix.com/about/legal/terms + title: Smart View Environmental API + version: "2.0" +host: api.equinix.com +paths: + /environment/v1/current: + get: + description: The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor) + operationId: Mixin1 + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: Level Type + enum: + - IBX + - ZONE + - CAGE + - SENSOR + in: query + name: levelType + required: true + type: string + - description: "Level Value is ibxCode, zoneUsID, cageUsID, sensorid for \nlevelType ibx, zone, cage, sensor resp.\n" + in: query + name: levelValue + required: true + type: string + responses: + "200": + description: Environment Details + schema: + $ref: '#/definitions/EnvironmentData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Get current environmental data + tags: + - Smart View Environment + /environment/v1/listCurrent: + get: + description: | + The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR + operationId: Mixin1 + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: Level Type + enum: + - IBX + - ZONE + - CAGE + - SENSOR + in: query + name: levelType + required: true + type: string + responses: + "200": + description: Environment Details + schema: + $ref: '#/definitions/EnvironmentDataResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch list of environmental data + tags: + - Smart View Environment + /environment/v1/trending: + get: + description: "The endpoint returns trending environment information (temperature and humidity) for\ninput ibx, zone, cage, sensor \n" + operationId: Mixin1 + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: number + - description: data point + enum: + - temperature + - humidity + in: query + name: dataPoint + required: true + type: string + - description: Level Type + enum: + - IBX + - ZONE + - CAGE + - SENSOR + in: query + name: levelType + required: true + type: string + - description: "Level Value is ibxCode, zone, cage, sensorid for \nlevelType ibx, zone, cage, sensor resp.\n" + in: query + name: levelValue + required: true + type: string + - enum: + - reading + - 1h + - 1d + in: query + name: interval + required: true + type: string + - description: date in long + format: date-time + in: query + name: fromDate + required: true + type: string + - description: date in long + format: date-time + in: query + name: toDate + required: true + type: string + responses: + "200": + description: Trending Environment Data Response + schema: + $ref: '#/definitions/TrendingEnvironmentData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch trending environmental data + tags: + - Smart View Environment + /power/v1/current: + get: + description: | + The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit. + operationId: Mixin0 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: level type allowed value [ibx|cage|cabinet|circuit] + enum: + - ibx + - cage + - cabinet + - circuit + in: query + name: levelType + required: true + type: string + - description: | + level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. + in: query + name: levelValue + required: true + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/PowerData' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: Fetch current power consumption data + tags: + - DCIM Power + post: + description: | + The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. + operationId: Mixin0 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: request payload + in: body + name: body + schema: + $ref: '#/definitions/PowerCurrentPostRequest' + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/PowerDataResponse_IBX' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: Fetch current power consumption data + tags: + - DCIM Power + /power/v1/trending: + get: + description: | + The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: number + - description: '[ibx|cage|cabinet|circuit]' + enum: + - ibx + - cage + - cabinet + - circuit + in: query + name: levelType + required: true + type: string + - description: | + ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. + in: query + name: levelValue + required: true + type: string + - description: '[recording|1h|1d]' + in: query + name: interval + required: true + type: string + - description: timestamp expected to be epoch long ( milliseconds ). + in: query + name: fromDate + required: true + type: string + - description: timestamp expected to be epoch long ( milliseconds ). + in: query + name: toDate + required: true + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/TrendingPowerData' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: | + Fetch Trending Power Data. + tags: + - DCIM Power + /smartview/v1/alerts/getAlertActivityLog: + get: + description: | + This endpoint returns alert log for inputs (ibx,category,event type,account number,page number,limit, order by, sort by,acknowledged). + operationId: getAlertActivityLog + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: IBX + in: query + name: ibx + type: string + - description: Category + in: query + name: category + type: string + - description: Event Type + in: query + name: eventType + type: string + - description: Is Acknowledged + in: query + name: isAcknowledged + type: string + - description: Account Number + in: query + name: accountNo + type: string + - description: Page Number + in: query + name: pageNum + required: true + type: string + - description: Limit + in: query + name: limit + required: true + type: string + - description: | + order by ascending or descending + in: query + name: orderBy + type: string + - description: | + sortBy value + in: query + name: sortBy + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/AlertActivityLog' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: get alert activity logs + tags: + - Alert Log + /smartview/v1/alerts/getAlerts: + get: + description: | + The get alert endpoint returns alert info for inputs (ibx,category,event type,account number,page number,limit, order by, sort by). + operationId: getAlerts + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: IBX + in: query + name: ibx + type: string + - description: Category + in: query + name: category + type: string + - description: Event Type. + in: query + name: eventType + type: string + - description: Account Number + in: query + name: accountNo + type: string + - description: Page Number + in: query + name: pageNum + required: true + type: string + - description: Limit + in: query + name: limit + required: true + type: string + - description: | + order by ascending or descending + in: query + name: orderBy + type: string + - description: | + sortBy value + in: query + name: sortBy + type: string + responses: + "200": + description: Valid Response + schema: + $ref: '#/definitions/Alerts' + default: + description: Error response + schema: + $ref: '#/definitions/PowerData_Error' + summary: obtain active SmartView alerts. + tags: + - Alerts + /smartview/v1/asset/details: + get: + description: This endpoint returns information about asset details including tag points lists for a given asset identifier. + operationId: getAssetDetails + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: asset classification (Electrical, Mechanical) + in: query + name: classification + required: true + type: string + - description: asset id + in: query + name: assetId + required: true + type: string + responses: + "200": + description: Asset Details + schema: + $ref: '#/definitions/AssetDetailsGetResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get details for an asset. + tags: + - Smart View Assets + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + post: + description: This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers. + operationId: Mixin4 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: request schema + in: body + name: payload + schema: + $ref: '#/definitions/AssetDetailsRequest' + responses: + "200": + description: Asset Details response object + schema: + $ref: '#/definitions/AssetDetailsResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get asset details + tags: + - Smart View Assets + /smartview/v1/asset/list: + get: + description: This endpoint returns information about asset in a hierarchical structure ( category / template / asset ) based on the input account number, IBX code, cage and asset classification (Electrical, Mechanical). + operationId: getAsset + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: asset classification (Electrical, Mechanical) + enum: + - Electrical + - Mechanical + in: query + name: classification + required: true + type: string + - description: | + cage unique space id to be used to filter the assets list + assumed to be all cage unique space id if no value is sent. + in: query + items: + type: string + name: cages + type: array + responses: + "200": + description: Asset Details + schema: + $ref: '#/definitions/AssetsList' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get assets list information + tags: + - Smart View Assets + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + /smartview/v1/asset/search: + get: + description: This endpoint is used to search for assets using wild card search patterns matching the asset identifier. + operationId: searchAsset + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + required: true + type: string + - description: Search String + in: query + name: searchString + required: true + type: string + responses: + "200": + description: Asset Details + schema: + $ref: '#/definitions/Assets' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Search for Assets matching identifiers + tags: + - Smart View Assets + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + /smartview/v1/asset/tagpoint/affected-assets: + get: + description: The endpoint returns information regarding the affected assets of customers for a given asset identifier + operationId: getAffectedAsset + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: asset id + in: query + name: assetId + required: true + type: string + - description: asset classification(Electrical, Mechanical) + enum: + - Electrical + - Mechanical + in: query + name: classification + required: true + type: string + responses: + "200": + description: Affect Customer Circuits ( Cage > Cabinet > Circuit hierarchy ) + schema: + $ref: '#/definitions/HierarchyNode' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get affected customers assets hierarchy + tags: + - Smart View Assets + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + /smartview/v1/asset/tagpoint/current: + get: + description: This endpoint fetches and provides the most recent tag point information for a given tag identifier. + operationId: getCurrentTagPoint + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: tag id is the unique identifier for the tag point + in: query + name: tagid + required: true + type: string + responses: + "200": + description: the current tag point data + schema: + $ref: '#/definitions/TagPointData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: obtain latest tag point data + tags: + - Smart View Assets + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + post: + description: This endpoint fetches the latest read values for given tag points using given tag identifiers. + operationId: Mixin4 + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - in: body + name: payload + schema: + $ref: '#/definitions/CurrentTagPointRequest' + responses: + "200": + description: data for tag points based on input payload + schema: + $ref: '#/definitions/TagPointData' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: get current tag points data + tags: + - Smart View Assets + /smartview/v1/asset/tagpoint/trending: + get: + description: This endpoint fetches and returns the trending tag point information for a given tag identifier. + operationId: getTagpointTrending + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: customer account number + in: query + name: accountNo + required: true + type: string + - description: ibx code + in: query + name: ibx + required: true + type: string + - description: tag id is the unique identifier for the tag point + in: query + name: tagid + required: true + type: string + - description: tag point data interval (1h, 1d, reading) + in: query + name: interval + required: true + type: string + - description: from date UTC time (1494345600000) + in: query + name: fromDate + required: true + type: integer + - description: to date UTC time (1494432000000) + in: query + name: toDate + required: true + type: integer + responses: + "200": + description: the current tag point data + schema: + $ref: '#/definitions/TagPointTrendingResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: obtain trending tag point data + tags: + - Smart View Assets + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + /smartview/v1/hierarchy/location: + get: + description: | + The location hierarchy endpoint returns the location hierarchy. This endpoint provides data for invoking other APIs such as Environmental APIs that require location hierarchy information. + operationId: getLocationHierarchy + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + type: string + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "200": + description: Location Hierarchy Details + schema: + $ref: '#/definitions/LocationResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch the Location Hierarchy + tags: + - Smart View Hierarchy APIs + /smartview/v1/hierarchy/power: + get: + description: | + The power hierarchy endpoint returns the power hierarchy. This endpoint provides data for invoking other APIs such as Power APIs that require power hierarchy information. + operationId: getPowerHierarchy + parameters: + - description: Specify the OAuth Bearer token with prefix 'Bearer '. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + - description: Customer Account Number + in: query + name: accountNo + required: true + type: string + - description: IBX Code + in: query + name: ibx + type: string + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "200": + description: Location Hierarchy Details + schema: + $ref: '#/definitions/PowerResponse' + default: + description: Unexpected error + schema: + $ref: '#/definitions/Error' + summary: Fetch the Power Hierarchy + tags: + - Smart View Hierarchy APIs + /smartview/v2/environmental/ibxs/{ibx}/sensors/readings: + get: + description: Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way. + operationId: getSensorReadings + parameters: + - description: IBX where the sensor is located. + in: path + name: ibx + required: true + type: string + x-example: CH2 + - description: Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included + in: query + name: type + type: string + x-example: HUMIDITY + - description: Zone name. Adding this parameter limits the query to sensors in the specified zone + in: query + name: zone + type: string + x-example: CH2:1:06:ColoArea:1 + - default: !!float 0 + description: Results offset you want to retrieve (0..N) + in: query + name: offset + type: integer + - default: !!float 20 + description: Number of records to retrieve per request. + in: query + name: limit + type: integer + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/SensorReadingsResponse' + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "422": + description: Unprocessable entity + summary: IBX sensors current readings + tags: + - Smart View Environmental + /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings: + get: + description: Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code. + operationId: getSingleSensorReadings + parameters: + - description: IBX where the sensor is located. + in: path + name: ibx + required: true + type: string + x-example: SV2 + - description: Id of sensor to read. + in: path + name: sensorId + required: true + type: string + x-example: CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03 + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/Sensor%20reading' + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "422": + description: Unprocessable entity + summary: Single sensor current value(s) + tags: + - Smart View Environmental + /smartview/v2/streaming/subscriptionData/{subscriptionId}: + get: + description: obtain API+ near real time data via a simple REST endpoint by employing subscription ID alongside other specified criteria, enabling a comprehensive and targeted approach to data retrieval. Subscription data endpoint works for all channels and not just REST channel. + operationId: getSubscriptionData + parameters: + - description: Subscription ID + in: path + name: subscriptionId + required: true + type: string + - description: Filter, set of IBXs + in: query + items: + type: string + name: ibxs + type: array + - description: Filter, set of message types + in: query + items: + enum: + - ALARM + - ALERT + - ENVIRONMENTAL + - METERED_POWER + - POWER + - TAG_POINT + type: string + name: messageTypes + type: array + - description: Filter, set of stream IDs + in: query + items: + type: string + name: streamIds + type: array + - default: !!float 0 + description: Pagination, offset of the first item + format: int32 + in: query + name: offset + type: integer + - default: !!float 250 + description: Pagination, limit of items returned + format: int32 + in: query + name: limit + type: integer + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "200": + description: OK + schema: + $ref: '#/definitions/SubscriptionData' + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Get subscription data via REST + /smartview/v2/streaming/subscriptions: + get: + description: The endpoint allows users to fetch details for all streaming subscriptions for a given organization. + operationId: getAllSubscriptions + parameters: + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/SubscriptionResponse' + type: array + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Get all subscription endpoint + post: + description: The endpoint allows users to define and create a new streaming subscription for a given organization. + operationId: createSubscription + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/SubscriptionRequest' + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "201": + description: Created + headers: + Location: + description: 'Location of created subscription. For Example: /smartview/v2/streaming/subscriptions/607460b4e4a78360425bca56' + type: string + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "422": + description: Unprocessable entity + schema: + $ref: '#/definitions/ApiError' + "500": + description: Internal server error + summary: Create subscription endpoint + /smartview/v2/streaming/subscriptions/{id}: + delete: + description: The endpoint allows users to delete and remove an existing streaming subscription for a given organization. + operationId: deleteSubscriptionById + parameters: + - in: path + name: id + required: true + type: string + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "204": + description: No Content + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Delete subscription endpoint + get: + description: The endpoint allows users to fetch details for a given streaming subscription for a given organization. + operationId: getSubscriptionById + parameters: + - in: path + name: id + required: true + type: string + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "200": + description: OK + schema: + $ref: '#/definitions/SubscriptionResponse' + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "500": + description: Internal server error + summary: Get subscription endpoint + put: + description: The endpoint allows users to modify and update an existing streaming subscription for a given organization. Request payload replaces current subscription. + operationId: updateSubscription + parameters: + - in: path + name: id + required: true + type: string + - in: body + name: body + schema: + $ref: '#/definitions/SubscriptionRequest' + - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' + responses: + "204": + description: No Content + "400": + description: Bad request + "401": + description: Unauthorized + "403": + description: Forbidden + "404": + description: Not Found + "422": + description: Unprocessable entity + schema: + $ref: '#/definitions/ApiError' + "500": + description: Internal server error + summary: Update subscription endpoint +definitions: + Alarm: + description: message data + properties: + asset: + $ref: '#/definitions/AlarmAssetDetails' + x-order: !!float 12 + conditionName: + description: condition name + example: High + type: string + x-order: !!float 5 + country: + description: country + example: FR + type: string + x-order: !!float 4 + currentValue: + $ref: '#/definitions/AlarmCurrentValueDetails' + x-order: !!float 11 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 20 + definitionId: + description: unique message id + example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH + type: string + x-order: !!float 10 + heartbeat: + description: heartbeat + example: true + type: boolean + x-order: !!float 8 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + metro: + description: metro + example: metro + type: string + x-order: !!float 3 + normalProcessedTime: + description: alarm normal processed time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 18 + normalTriggeredTime: + description: alarm normal triggered time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 19 + processedTime: + description: alarm processed time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 17 + region: + description: region + example: EMEA + type: string + x-order: !!float 2 + severity: + description: severity + example: !!float 900 + format: int32 + type: integer + x-order: !!float 6 + status: + $ref: '#/definitions/AlarmStatusDetails' + x-order: !!float 14 + streamId: + description: unique message id + example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/AlarmTagDetails' + x-order: !!float 13 + threshold: + $ref: '#/definitions/AlarmThresholdDetails' + x-order: !!float 15 + triggerRule: + description: trigger rule + example: RULE:123:1 + type: string + x-order: !!float 9 + triggeredTime: + description: alarm triggered time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 16 + type: + description: type + example: Absolute + type: string + x-order: !!float 7 + required: + - asset + - currentValue + - definitionId + - ibx + - status + - streamId + - tag + - threshold + type: object + AlarmAssetDetails: + description: asset details + properties: + classification: + description: asset classification + example: Mechanical + type: string + x-order: !!float 2 + id: + description: asset id + example: IBX.CRAH-EQ1-04 + type: string + x-order: !!float 0 + type: + description: asset type + example: CRAH + type: string + x-order: !!float 1 + type: object + AlarmCurrentValueDetails: + description: currentValue details + properties: + type: + description: current value type + example: Float + type: string + x-order: !!float 2 + unit: + description: current value unit + example: '%' + type: string + x-order: !!float 0 + value: + description: current value value + example: "35.023" + type: string + x-order: !!float 1 + type: object + AlarmMessageData: + description: alarm message data + properties: + data: + $ref: '#/definitions/Alarm' + x-order: !!float 1 + type: + default: system-alert + description: message type + example: system-alert + type: string + x-order: !!float 0 + required: + - data + - type + type: object + AlarmStatusDetails: + description: status details + properties: + acknowledged: + description: status acknowledged + example: false + type: boolean + x-order: !!float 0 + acknowledgementTime: + description: status acknowledgement time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 1 + active: + description: status active + example: true + type: boolean + x-order: !!float 3 + cleared: + description: status cleared + example: false + type: boolean + x-order: !!float 2 + type: object + AlarmTagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: Temperature7 + type: string + x-order: !!float 1 + id: + description: tag id + example: IBX.CRAH-EQ1-04:dirtyfilter + type: string + x-order: !!float 0 + type: object + AlarmThresholdDetails: + description: threshold details + properties: + message: + description: threshold message + example: NA + type: string + x-order: !!float 2 + stateLimit: + description: threshold state limit + example: "20" + type: string + x-order: !!float 1 + unit: + description: threshold unit + example: '%' + type: string + x-order: !!float 0 + type: object + Alert: + description: message data + properties: + asset: + $ref: '#/definitions/AlertAssetDetails' + x-order: !!float 9 + conditional: + description: conditional + example: N + type: string + x-order: !!float 6 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 13 + eventType: + description: event type + example: Falls below + type: string + x-order: !!float 7 + heartbeat: + description: heartbeat + example: true + type: boolean + x-order: !!float 8 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + id: + description: id + example: IBX.685306-15843739015670.6640131967865078 + type: string + x-order: !!float 3 + region: + description: region + example: APAC + type: string + x-order: !!float 2 + streamId: + description: unique message id + example: IBX.685306-15843739015670.6640131967865078 + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/AlertTagDetails' + x-order: !!float 10 + threshold: + $ref: '#/definitions/AlertThresholdDetails' + x-order: !!float 11 + triggeredTime: + description: alert triggered time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 12 + type: + description: type + example: power + type: string + x-order: !!float 4 + typeId: + description: type id + example: drawAmpFalls + type: string + x-order: !!float 5 + required: + - asset + - ibx + - streamId + - tag + - threshold + type: object + AlertActivityLog: + properties: + payLoad: + items: + $ref: '#/definitions/AlertActivityLogObj' + type: array + x-order: !!float 0 + status: + $ref: '#/definitions/status' + x-order: !!float 1 + type: object + AlertActivityLogObj: + properties: + alerts: + items: + $ref: '#/definitions/AlertDto2' + type: array + x-order: !!float 0 + totalCount: + description: totalCount + example: "1000" + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 1 + type: object + AlertAssetDetails: + description: asset details + properties: + classification: + description: asset classification + example: Electrical + type: string + x-order: !!float 2 + id: + description: asset id + example: "1.20849261E7" + type: string + x-order: !!float 0 + type: + description: asset type + example: CIRCUIT + type: string + x-order: !!float 1 + type: object + AlertDto1: + properties: + accountNo: + example: !!float 3213213 + type: string + x-order: !!float 22 + alertPaused: + description: isAlertPaused + example: true + type: boolean + x-order: !!float 28 + alertType: + $ref: '#/definitions/AlertType' + type: object + x-order: !!float 2 + conditionalAlert: + example: test + type: string + x-order: !!float 8 + country: + example: SG + type: string + x-order: !!float 26 + createdBy: + example: test + type: string + x-order: !!float 13 + createdOn: + description: createdOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 14 + customerAssets: + items: + $ref: '#/definitions/CustomerAssets' + type: array + x-order: !!float 4 + enabledAction: + example: Enabled + type: string + x-order: !!float 18 + formatedSection: + example: Power Draw + type: string + x-order: !!float 17 + heartbeatType: + example: off + type: string + x-order: !!float 6 + ibx: + example: CH1 + type: string + x-order: !!float 1 + id: + example: 15476966877480.828 + type: string + x-order: !!float 0 + infraAssets: + items: + $ref: '#/definitions/CustomerAssets' + type: array + x-order: !!float 5 + isDuplicate: + example: false + type: boolean + x-order: !!float 19 + lastTriggeredOn: + description: lastTriggeredOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 16 + metro: + example: SG + type: string + x-order: !!float 27 + modifiedOn: + description: modifiedOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 15 + recipients: + items: + $ref: '#/definitions/recipientsArray' + type: array + x-order: !!float 7 + region: + example: APAC + type: string + x-order: !!float 25 + section: + example: electrical + type: string + x-order: !!float 3 + status: + example: status + type: string + x-order: !!float 24 + thresholdUnit: + example: '%' + type: string + x-order: !!float 9 + thresholdValue: + example: "12" + type: string + x-order: !!float 12 + thresholdValueMax: + example: "12" + type: string + x-order: !!float 11 + thresholdValueMin: + example: "12" + type: string + x-order: !!float 10 + ucmid: + example: ucmid + type: string + x-order: !!float 21 + uom: + example: STANDARD + type: string + x-order: !!float 23 + userId: + example: userId + type: string + x-order: !!float 20 + type: object + AlertDto2: + properties: + accountNo: + example: !!float 115767 + type: string + x-order: !!float 12 + acknowledge: + example: true + type: boolean + x-order: !!float 37 + affectedCustomerAsset: + example: !!float 1069 + type: string + x-order: !!float 9 + alertType: + $ref: '#/definitions/AlertType' + type: object + x-order: !!float 5 + alertTypeName: + example: tempExceeds + type: string + x-order: !!float 10 + asset: + example: SG3 + type: string + x-order: !!float 8 + assetclassification: + example: assetclassification + type: string + x-order: !!float 19 + assetname: + example: SG3 + type: string + x-order: !!float 28 + assettype: + example: IBX + type: string + x-order: !!float 16 + conditionalAlert: + items: + $ref: '#/definitions/ConditionalAlert' + type: array + x-order: !!float 13 + country: + example: SG + type: string + x-order: !!float 35 + createdOn: + description: createdOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 3 + currentvalue: + example: 23.38019323671497 + type: string + x-order: !!float 15 + eventtype: + example: Exceeds + type: string + x-order: !!float 18 + ibx: + example: CH1 + type: string + x-order: !!float 2 + id: + example: 15476966877480.828 + type: string + x-order: !!float 0 + lastmaintenance: + example: !!float 1547008897864 + type: string + x-order: !!float 23 + metro: + example: SG + type: string + x-order: !!float 36 + modifiedOn: + description: modifiedOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 4 + notificationType: + example: ALERT + type: string + x-order: !!float 14 + region: + example: APAC + type: string + x-order: !!float 1 + relatedincidents: + example: assetclassification + type: string + x-order: !!float 20 + resiliency: + example: off + type: string + x-order: !!float 25 + section: + example: electrical + type: string + x-order: !!float 6 + severity: + example: ALERT + type: string + x-order: !!float 24 + tagid: + example: Temperature + type: string + x-order: !!float 17 + thresholdUnit: + example: '%' + type: string + x-order: !!float 31 + thresholdValue: + example: "12" + type: string + x-order: !!float 34 + thresholdValueMax: + example: "12" + type: string + x-order: !!float 33 + thresholdValueMin: + example: "12" + type: string + x-order: !!float 32 + timeZone: + example: Asia/Singapore + type: string + x-order: !!float 30 + timeacknowledged: + example: !!float 1547008897864 + type: string + x-order: !!float 22 + timeprocessed: + example: off + type: string + x-order: !!float 26 + timetriggeredMilisec: + example: "1547007734678" + type: string + x-order: !!float 27 + triggeredOn: + description: lastTriggeredOn + example: !!float 1547696687748 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 7 + type: + example: ALERT + type: string + x-order: !!float 21 + uom: + example: STANDARD + type: string + x-order: !!float 29 + year: + example: !!float 2019 + type: string + x-order: !!float 11 + type: object + AlertMessageData: + description: alert message data + properties: + data: + $ref: '#/definitions/Alert' + x-order: !!float 1 + type: + default: custom-alert + description: message type + example: custom-alert + type: string + x-order: !!float 0 + required: + - data + - type + type: object + AlertObj: + properties: + alerts: + items: + $ref: '#/definitions/AlertDto1' + type: array + x-order: !!float 0 + totalCount: + description: totalCount + example: "1000" + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 1 + type: object + AlertTagDetails: + description: tag details + properties: + id: + description: tag id + example: IBX.CIRCUIT-EQ1-04:dirtyfilter + type: string + x-order: !!float 0 + type: object + AlertThresholdDetails: + description: threshold details + properties: + maxValue: + description: threshold max value + example: "5" + type: string + x-order: !!float 1 + minValue: + description: threshold min value + example: "1" + type: string + x-order: !!float 2 + unit: + description: threshold unit + example: Amp + type: string + x-order: !!float 0 + value: + description: threshold value + example: "10" + type: string + x-order: !!float 3 + type: object + AlertType: + properties: + defaultValue: + example: "258" + type: string + x-order: !!float 5 + eventType: + example: Exceeds + type: string + x-order: !!float 6 + id: + example: cageDrawExceeds + type: string + x-order: !!float 0 + tagId: + example: "258" + type: string + x-order: !!float 4 + type: + example: value + type: string + x-order: !!float 1 + unit: + example: percentage + type: string + x-order: !!float 3 + value: + example: Cage Draw kVA to Contractual kVA% Exceeds + type: string + x-order: !!float 2 + type: object + Alerts: + properties: + payLoad: + items: + $ref: '#/definitions/AlertObj' + type: array + x-order: !!float 0 + status: + $ref: '#/definitions/status' + x-order: !!float 1 + type: object + ApiError: + description: ApiError provides information about the occurred error. + properties: + additionalInfo: + $ref: '#/definitions/ApiErrorAdditionalInfo' + x-order: !!float 5 + correlationId: + example: 06ce37f6-12af-4f47-9d15-e4f8fc77e1c5 + type: string + x-order: !!float 2 + details: + example: The submitted payload does not meet validation criteria. + type: string + x-order: !!float 3 + errorCode: + example: EQIX-ES-5000422 + type: string + x-order: !!float 0 + errorMessage: + example: Unprocessable Entity + type: string + x-order: !!float 1 + help: + example: ' ' + type: string + x-order: !!float 4 + type: object + ApiErrorAdditionalInfo: + properties: + constraintCode: + example: IbxesMustExistOnPaidView + type: string + x-order: !!float 0 + reason: + example: the [PA8] have no access to paid view + type: string + x-order: !!float 1 + type: object + Asset: + description: Asset messages provide the latest readings for environmental, electrical, and mechanical assets within an IBX + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + assetClassification: + description: Asset Classification value if specified, otherwise all allowable classifications + items: + enum: + - MECHANICAL + - ENVIRONMENTAL + - ELECTRICAL + type: string + maxItems: !!float 2147483647 + minItems: !!float 1 + type: array + uniqueItems: true + x-order: !!float 2 + assetId: + items: + type: string + maxItems: !!float 2147483647 + minItems: !!float 1 + type: array + uniqueItems: true + x-order: !!float 3 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + required: + - accountNumber + - ibx + type: object + AssetDetailResponse: + description: response object for asset/details POST request + properties: + payLoad: + properties: + assetDetails: + items: + $ref: '#/definitions/AssetDetails' + type: array + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetDetails: + description: Asset Details includes Tag Points with Data for the asset + properties: + alarmLastProcessedTime: + description: Datetime when the latest alarm was processed on the asset + example: Aug 21,2017 05:52 AM + type: string + x-order: !!float 9 + alarmLastTriggeredTime: + description: Datetime when the latest alarm was triggered on the asset + example: Aug 21,2017 04:38 AM + type: string + x-order: !!float 8 + assetId: + description: asset id for the Asset + example: CH1.Chiller-1 + type: string + x-order: !!float 0 + assetType: + description: Template Name for the asset + example: Cooling + type: string + x-order: !!float 1 + equipmentModelNumber: + description: Equipment Model Number + example: SACAC110-3EXX-2A1-16A-010 + type: string + x-order: !!float 6 + equipmentSerialNumber: + description: Equipment Serial Number + example: FF0010I233Q1276 + type: string + x-order: !!float 7 + lastMaintenanceDate: + description: Datetime when the machine had its last maintenance + example: Aug 03,2016 + type: string + x-order: !!float 4 + manufacturerName: + description: Manufacturer name for the Asset + example: SMARDT + type: string + x-order: !!float 5 + tags: + description: List of tag points for the Asset + items: + $ref: '#/definitions/TagPointDataArray' + type: array + x-order: !!float 3 + userPrefTimeZone: + description: Time zone for the user + example: Asia/Katmandu + type: string + x-order: !!float 2 + type: object + AssetDetailsGetResponse: + properties: + payLoad: + properties: + alarmLastProcessedTime: + description: Datetime when the latest alarm was processed on the asset + example: Aug 21,2017 05:52 AM + type: string + x-order: !!float 9 + alarmLastTriggeredTime: + description: Datetime when the latest alarm was triggered on the asset + example: Aug 21,2017 04:38 AM + type: string + x-order: !!float 8 + assetId: + description: asset id for the Asset + example: CH1.Chiller-1 + type: string + x-order: !!float 0 + assetType: + description: Template Name for the asset + example: Cooling + type: string + x-order: !!float 1 + equipmentModelNumber: + description: Equipment Model Number + example: SACAC110-3EXX-2A1-16A-010 + type: string + x-order: !!float 6 + equipmentSerialNumber: + description: Equipment Serial Number + example: FF0010I233Q1276 + type: string + x-order: !!float 7 + lastMaintenanceDate: + description: Datetime when the machine had its last maintenance + example: Aug 03,2016 + type: string + x-order: !!float 4 + manufacturerName: + description: Manufacturer name for the Asset + example: SMARDT + type: string + x-order: !!float 5 + tags: + description: List of tag points for the Asset + items: + $ref: '#/definitions/TagPointDataArray' + type: array + x-order: !!float 3 + userPrefTimeZone: + description: Time zone for the user + example: Asia/Katmandu + type: string + x-order: !!float 2 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetDetailsRequest: + allOf: + - $ref: '#/definitions/GenericRequest' + - properties: + assetIds: + items: + description: asset id + type: string + type: array + AssetDetailsResponse: + description: response object for asset/details POST request + properties: + payLoad: + properties: + assetDetails: + items: + $ref: '#/definitions/AssetDetails' + type: array + x-order: !!float 1 + totalCount: + description: total number of assets that match the request filters + example: !!float 1 + type: integer + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetDetailsTagPointData: + properties: + payLoad: + items: + $ref: '#/definitions/TagPointDataArray' + type: array + x-order: !!float 0 + type: object + Assets: + properties: + payLoad: + properties: + assetsList: + items: + $ref: '#/definitions/AssetsArray' + type: array + x-order: !!float 1 + totalCount: + example: !!float 1 + type: integer + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages ' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AssetsArray: + properties: + assetClassification: + description: | + Asset classification is electrical or mechanical + example: Electrical + type: string + x-order: !!float 3 + assetId: + description: "The assetid is the circuit number, sensor id, asset id, asset id \nfor type circuit, sensor, electrical and mechanical resp.\n" + example: CH1.ASTS-1-2-A + type: string + x-order: !!float 0 + assetLabel: + description: "Asset Label is the Circuit display label, Sensor ID, and Asset ID\nfor types circuit, sensor, electrical and mechanical resp. \n" + example: CH1.ASTS-1-2-A + type: string + x-order: !!float 2 + type: + example: ASTS + type: string + x-order: !!float 1 + type: object + AssetsList: + properties: + payLoad: + properties: + categories: + items: + $ref: '#/definitions/Category' + type: array + x-order: !!float 1 + classification: + description: asset classification for the Electrical and Mechanical + example: Mechanical + type: string + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + AwsIotCoreChannelConfiguration: + description: The configuration for an 'AWS_IOT_CORE' channel + properties: + url: + example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com + type: string + x-order: !!float 0 + required: + - url + type: object + AzureChannelConfiguration: + description: The configuration for an 'AZURE' channel + properties: + batchSize: + format: int32 + maximum: !!float 20 + minimum: !!float 5 + type: integer + x-order: !!float 2 + numberOfConcurrentCalls: + format: int32 + maximum: !!float 50 + minimum: !!float 20 + type: integer + x-order: !!float 1 + numberOfRetries: + format: int32 + maximum: !!float 5 + minimum: !!float 1 + type: integer + x-order: !!float 0 + type: object + Cabinets: + properties: + circuits: + items: + $ref: '#/definitions/Circuits' + type: array + x-order: !!float 2 + name: + enum: + - CH1:05:000430:0105 + type: string + x-order: !!float 0 + type: + example: cabinet + type: string + x-order: !!float 1 + type: object + Cages: + properties: + cabinets: + items: + $ref: '#/definitions/Cabinets' + type: array + x-order: !!float 2 + name: + description: Cage Unique Space Id + example: CH1:05:000430 + type: string + x-order: !!float 0 + type: + description: type of the asset + example: cage + type: string + x-order: !!float 1 + type: object + Category: + properties: + categoryName: + example: Cooling + type: string + x-order: !!float 1 + templates: + items: + $ref: '#/definitions/Template' + type: array + x-order: !!float 0 + type: object + Channel: + description: Subscription can be created using one channel. + properties: + awsIotCoreChannelConfiguration: + $ref: '#/definitions/AwsIotCoreChannelConfiguration' + x-order: !!float 1 + azureChannelConfiguration: + $ref: '#/definitions/AzureChannelConfiguration' + x-order: !!float 3 + channelType: + enum: + - AWS_IOT_CORE + - WEBHOOK + - AZURE + type: string + x-order: !!float 0 + webhookChannelConfiguration: + $ref: '#/definitions/WebhookChannelConfiguration' + x-order: !!float 2 + type: object + Circuits: + properties: + name: + enum: + - !!float 877484 + type: string + x-order: !!float 0 + type: + enum: + - circuit + type: string + x-order: !!float 1 + type: object + CircuitsMapWithCage: + properties: + name: + enum: + - !!float 877483 + type: string + x-order: !!float 0 + type: + enum: + - circuit + type: string + x-order: !!float 1 + type: object + ComparisonData: + description: | + comparison of readings with the current reading for specified datapoint + properties: + datapoint: + description: datapoint on which the comparison is done. + enum: + - percentageKva + type: string + x-order: !!float 0 + lastMonth: + description: "comparison for the current value of the datapoint with the last \nmonth's value\n" + example: -0.184 + type: number + x-order: !!float 3 + lastQuarter: + description: "comparison for the current value of the datapoint with the last \nquarter's value \n" + example: 52.434 + type: number + x-order: !!float 4 + lastWeek: + description: "comparison for the current value of the datapoint with last week's \nvalue\n" + example: -0.295 + type: number + x-order: !!float 2 + yesterday: + description: "comparison for the current value of the datapoint with yesterday's \nvalue\n" + example: 0.147 + type: number + x-order: !!float 1 + type: object + ComparisonData_Trend: + description: | + date and corresponding values + properties: + datetime: + description: datetime. + example: "201701010004" + type: string + x-order: !!float 0 + value: + description: trending values + example: "0.147" + type: string + x-order: !!float 1 + type: object + ConditionalAlert: + properties: + affectedCustomerAsset: + example: "258" + type: string + x-order: !!float 4 + alertType: + example: "258" + type: string + x-order: !!float 8 + asset: + example: "12" + type: string + x-order: !!float 13 + assetname: + example: "12" + type: string + x-order: !!float 20 + assettype: + example: "12" + type: string + x-order: !!float 21 + condalerttypeid: + example: "12" + type: string + x-order: !!float 14 + condassetclassification: + example: "12" + type: string + x-order: !!float 15 + condassetid: + example: "12" + type: string + x-order: !!float 16 + condcurrentvalue: + example: "12" + type: string + x-order: !!float 17 + condeventtype: + example: "12" + type: string + x-order: !!float 18 + condtagid: + example: "12" + type: string + x-order: !!float 19 + customerAssets: + example: "258" + type: string + x-order: !!float 5 + ibx: + example: SG3 + type: string + x-order: !!float 1 + infraAssets: + example: "258" + type: string + x-order: !!float 6 + measurementType: + example: "258" + type: string + x-order: !!float 7 + region: + example: APAC + type: string + x-order: !!float 0 + section: + example: mechanical + type: string + x-order: !!float 3 + thresholdUnit: + example: '%' + type: string + x-order: !!float 9 + thresholdValue: + example: "12" + type: string + x-order: !!float 12 + thresholdValueMax: + example: "12" + type: string + x-order: !!float 11 + thresholdValueMin: + example: "12" + type: string + x-order: !!float 10 + uom: + example: STANDARD + type: string + x-order: !!float 2 + type: object + CurrentTagPointRequest: + description: request object for tagpoint/current POST request + properties: + accountNo: + description: customer account number + type: string + x-order: !!float 0 + ibx: + description: ibx code + type: string + x-order: !!float 2 + tagIds: + items: + description: tag ids + type: string + maxLength: !!float 1000 + type: array + x-order: !!float 1 + type: object + CurrentTagPointResponse: + description: response object for tagpoint/current POST request + properties: + totalCount: + description: total number of current tag point + x-order: !!float 0 + type: object + CustomAlert: + description: Custom Alert messages are sent when user-defined alert conditions become true. The message contains the data point value that triggered the alert. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + user: + type: string + x-order: !!float 2 + required: + - accountNumber + - ibx + type: object + CustomerAssets: + properties: + assets: + items: + example: "1069" + type: array + x-order: !!float 1 + assetsName: + items: + example: SG1:03:A20011 + type: array + x-order: !!float 2 + type: + example: cage + type: string + x-order: !!float 0 + type: object + DataValue: + description: This object contains a single reading for the data point. + properties: + datetime: + description: timestamp since epoch. reading timestamp + example: "1483977600000" + type: string + x-order: !!float 2 + modifiers: + description: modifiers applicable for the reading value + items: + example: recorded + type: string + type: array + x-order: !!float 1 + value: + description: reading value for the datapoint + example: "21.11" + type: string + x-order: !!float 0 + type: object + Environment: + description: message data + properties: + asset: + $ref: '#/definitions/EnvironmentAssetDetails' + x-order: !!float 2 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 6 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + reading: + $ref: '#/definitions/EnvironmentValueWithUnit' + x-order: !!float 3 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 5 + streamId: + description: unique message id + example: IBX.IBX:humidity + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/EnvironmentTagDetails' + x-order: !!float 4 + required: + - asset + - ibx + - reading + - streamId + - tag + type: object + EnvironmentAssetDetails: + description: asset details + properties: + id: + description: asset id + example: IBX + type: string + x-order: !!float 0 + level: + description: asset level + example: IBX + type: string + x-order: !!float 1 + required: + - id + - level + type: object + EnvironmentData: + properties: + payLoad: + properties: + accountNo: + description: account number + example: "1" + type: string + x-order: !!float 1 + cabinet: + description: cabinet unique space id + example: CH1:05:000550:0105 + type: string + x-order: !!float 4 + cage: + description: cage unique space id + example: CH1:05:000550 + type: string + x-order: !!float 3 + humidity: + description: current humidity + example: "43.00" + type: string + x-order: !!float 7 + humidityUom: + description: unit of measure for humidity + example: '%' + type: string + x-order: !!float 10 + ibx: + description: ibx code + example: CH1 + type: string + x-order: !!float 0 + sensor: + description: sensor id + example: CH1.Colo.CH1_05_000550_0105 + type: string + x-order: !!float 5 + temperature: + description: current temperature + example: "20.0" + type: string + x-order: !!float 6 + temperatureUom: + description: unit of measure for temperature values + example: °C + type: string + x-order: !!float 9 + timestamp: + description: epoch timestamp when the current reading was read + example: "1506665106579" + type: string + x-order: !!float 8 + zone: + description: zone unique space id + example: CH1:1:05:ColoArea:2 + type: string + x-order: !!float 2 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + EnvironmentDataForArray: + properties: + accountNo: + description: account number + example: "1" + type: string + x-order: !!float 1 + cabinet: + description: cabinet unique space id + example: CH1:05:000550:0105 + type: string + x-order: !!float 4 + cage: + description: cage unique space id + example: CH1:05:000550 + type: string + x-order: !!float 3 + humidity: + description: current humidity + example: "43.00" + type: string + x-order: !!float 7 + humidityUom: + description: unit of measure for humidity + example: '%' + type: string + x-order: !!float 10 + ibx: + description: ibx code + example: CH1 + type: string + x-order: !!float 0 + sensor: + description: sensor id + example: CH1.Colo.CH1_05_000550_0105 + type: string + x-order: !!float 5 + temperature: + description: current temperature + example: "20.0" + type: string + x-order: !!float 6 + temperatureUom: + description: unit of measure for temperature values + example: °C + type: string + x-order: !!float 9 + timestamp: + description: epoch timestamp when the current reading was read + example: "1506665106579" + type: string + x-order: !!float 8 + zone: + description: zone unique space id + example: CH1:1:05:ColoArea:2 + type: string + x-order: !!float 2 + type: object + EnvironmentDataResponse: + properties: + payLoad: + properties: + data: + items: + $ref: '#/definitions/EnvironmentDataForArray' + type: array + x-order: !!float 1 + totalCount: + description: total number of data values + example: !!float 1 + type: integer + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages ' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + EnvironmentMessageData: + description: environment message data + properties: + data: + $ref: '#/definitions/Environment' + x-order: !!float 1 + type: + default: environmental + description: message type + example: environmental + type: string + x-order: !!float 0 + required: + - data + - type + type: object + EnvironmentTagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: Humidity + type: string + x-order: !!float 1 + id: + description: tag id + example: humidity + type: string + x-order: !!float 0 + required: + - id + type: object + EnvironmentValueWithUnit: + description: reading details + properties: + unit: + description: Environmental reading unit + example: PERCENT + type: string + x-order: !!float 1 + value: + description: Environmental reading value + example: "50.045" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + Environmental: + description: Environmental messages provide the latest temperature and humidity readings at the IBX and zone levels. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + level: + description: This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided. + items: + enum: + - ZONE + - IBX + - CAGE + type: string + maxItems: !!float 3 + minItems: !!float 1 + type: array + uniqueItems: true + x-order: !!float 2 + required: + - accountNumber + - ibx + type: object + Error: + properties: + payLoad: + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' + example: INTERNAL_ERROR + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' + example: "4000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - ERROR + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + GenericRequest: + properties: + accountNo: + description: customer account number + type: string + x-order: !!float 0 + classification: + description: asset classification + type: string + x-order: !!float 2 + ibx: + description: ibx code + type: string + x-order: !!float 1 + type: object + HierarchyNode: + properties: + payLoad: + properties: + cages: + items: + $ref: '#/definitions/Cages' + type: array + x-order: !!float 0 + circuits: + items: + $ref: '#/definitions/CircuitsMapWithCage' + type: array + x-order: !!float 1 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + LocationResponse: + items: + $ref: '#/definitions/HierarchyNode' + type: array + MessageType: + description: Message type for a given subscription + properties: + asset: + description: List of asset message type to subscribe + items: + $ref: '#/definitions/Asset' + type: array + x-order: !!float 0 + customAlert: + description: List of custom alert message type to subscribe + items: + $ref: '#/definitions/CustomAlert' + type: array + x-order: !!float 5 + environmental: + description: List of environmental message type to subscribe + items: + $ref: '#/definitions/Environmental' + type: array + x-order: !!float 1 + meteredPower: + description: List of metered power message type to subscribe + items: + $ref: '#/definitions/MeteredPower' + type: array + x-order: !!float 3 + power: + description: List of power message type to subscribe + items: + $ref: '#/definitions/PowerMessage' + type: array + x-order: !!float 2 + systemAlert: + description: List of system alert message type to subscribe + items: + $ref: '#/definitions/SystemAlert' + type: array + x-order: !!float 4 + type: object + MeteredPower: + description: message data + properties: + accountNumber: + description: account number + example: "123456" + type: string + x-order: !!float 5 + asset: + $ref: '#/definitions/MeteredPowerAssetDetails' + x-order: !!float 2 + cage: + description: cage + example: IBX:02:021305 + type: string + x-order: !!float 3 + cageSerialNo: + description: cage serial number + example: 021305-20604711 + type: string + x-order: !!float 4 + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 9 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + reading: + $ref: '#/definitions/MeteredPowerValueWithUnit' + x-order: !!float 7 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 8 + streamId: + description: unique message id + example: IBX.CBM-B1-4-1:kilowattHour + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/MeteredPowerTagDetails' + x-order: !!float 6 + required: + - asset + - ibx + - reading + - streamId + - tag + type: object + MeteredPowerAssetDetails: + description: asset details + properties: + id: + description: asset id + example: IBX.CBM-B1-4-1 + type: string + x-order: !!float 0 + type: + description: asset type + example: Customer Billing Meter + type: string + x-order: !!float 1 + required: + - id + type: object + MeteredPowerMessageData: + description: metered-power message data + properties: + data: + $ref: '#/definitions/MeteredPower' + x-order: !!float 1 + type: + default: metered-power + description: message type + example: metered-power + type: string + x-order: !!float 0 + required: + - data + - type + type: object + MeteredPowerTagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: kilowattHour + type: string + x-order: !!float 1 + id: + description: tag id + example: IBX.CBM-B1-4-1:kilowattHour + type: string + x-order: !!float 0 + required: + - id + type: object + MeteredPowerValueWithUnit: + description: reading details + properties: + unit: + description: reading unit + example: kWh + type: string + x-order: !!float 1 + value: + description: reading value + example: "412568.125" + type: string + x-order: !!float 0 + required: + - value + type: object + Pagination: + description: Represents pagination component of the paginated response + properties: + limit: + description: The page size. + format: int64 + type: integer + next: + description: Represents a relative link to the next page. This can be empty if there is no next page available. + type: string + offset: + description: The number of elements to skip. + format: int64 + type: integer + previous: + description: Represents a relative link to the previous page. This can be empty if there is no previous page available. + type: string + total: + description: The total number of elements in the result set. + format: int64 + type: integer + required: + - limit + - offset + - total + type: object + Power: + description: message data + properties: + accountNumber: + description: account number + example: "123456" + type: string + x-order: !!float 5 + apparentPower: + $ref: '#/definitions/PowerApparentPowerValueWithUnit' + x-order: !!float 10 + asset: + $ref: '#/definitions/PowerAssetDetails' + x-order: !!float 2 + cabinet: + description: cabinet + example: IBX:01:000Z4Z:0102 + type: string + x-order: !!float 4 + cabinetRating: + $ref: '#/definitions/PowerCabinetRatingValueWithUnit' + x-order: !!float 17 + cage: + description: cage + example: IBX:02:021305 + type: string + x-order: !!float 3 + circuitType: + description: circuit type + example: PRIMARY + type: string + x-order: !!float 8 + contractualPower: + $ref: '#/definitions/PowerContractualPowerValueWithUnit' + x-order: !!float 11 + current: + $ref: '#/definitions/PowerCurrentValueWithUnit' + x-order: !!float 12 + description: + description: description + example: 32-amp 230v Single Phase Primary AC Power + type: string + x-order: !!float 6 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + lastUpdated: + description: last updated time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 22 + oid: + description: oid + example: 1.3.6.1.2.1.299.36.10.1099 + type: string + x-order: !!float 7 + peakLastSevenDays: + $ref: '#/definitions/PowerPeakLastSevenDaysValueWithUnit' + x-order: !!float 18 + peakLastSevenDaysContractualPower: + $ref: '#/definitions/PowerPeakLastSevenDaysContractualPowerValueWithUnit' + x-order: !!float 20 + peakLastSevenDaysRatio: + $ref: '#/definitions/PowerPeakLastSevenDaysRatioValueWithUnit' + x-order: !!float 19 + peakLastSevenDaysTime: + description: peak last seven days time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 21 + powerConsumptionToContractual: + $ref: '#/definitions/PowerPowerConsumptionToContractualValueWithUnit' + x-order: !!float 16 + powerFactor: + $ref: '#/definitions/PowerPowerFactorValueWithUnit' + x-order: !!float 13 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 23 + realPower: + $ref: '#/definitions/PowerRealPowerValueWithUnit' + x-order: !!float 9 + soldCurrent: + $ref: '#/definitions/PowerSoldCurrentValueWithUnit' + x-order: !!float 14 + soldPower: + $ref: '#/definitions/PowerSoldPowerValueWithUnit' + x-order: !!float 15 + streamId: + description: unique message id + example: IBX:140838 + type: string + x-order: !!float 0 + required: + - asset + - ibx + - streamId + type: object + PowerApparentPowerValueWithUnit: + description: apparentPower details + properties: + unit: + description: ApparentPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: ApparentPower reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerAssetDetails: + description: asset details + properties: + id: + description: asset id + example: IBX:140838 + type: string + x-order: !!float 0 + type: + description: asset type + example: CIRCUIT + type: string + x-order: !!float 1 + required: + - id + - type + type: object + PowerCabinetRatingValueWithUnit: + description: cabinetRating details + properties: + unit: + description: CabinetRating reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: CabinetRating reading value + example: "8.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerContractualPowerValueWithUnit: + description: contractualPower details + properties: + unit: + description: ContractualPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: ContractualPower reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerCurrentPostRequest: + description: | + date and corresponding values + properties: + accountNo: + description: ' Customer Account Number' + example: "1234" + type: string + x-order: !!float 0 + ibx: + description: trending values + example: "0.147" + type: string + x-order: !!float 1 + levelType: + description: level type allowed value [ibx|cage|cabinet|circuit] + enum: + - ibx + - cage + - cabinet + - circuit + example: "0.147" + type: string + x-order: !!float 2 + type: object + PowerCurrentValueWithUnit: + description: current details + properties: + unit: + description: Current reading unit + example: A + type: string + x-order: !!float 1 + value: + description: Current reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerData: + properties: + payLoad: + properties: + accountNo: + description: customer account number + example: ABC + type: string + x-order: !!float 1 + amps: + description: instantaneous current amp reading on circuits + example: !!float 123 + type: number + x-order: !!float 6 + cabinetRating: + description: maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise. + example: 341.54 + type: number + x-order: !!float 8 + comparisonData: + $ref: '#/definitions/ComparisonData' + x-order: !!float 11 + contractualKva: + description: "The maximum power draw contractually allowable in a \nprivate cage. \n" + example: 341.54 + type: number + x-order: !!float 9 + customerName: + example: ABC + type: string + x-order: !!float 23 + ibx: + description: ibx code + example: ABC + type: string + x-order: !!float 0 + isAlarm: + description: returns boolean based on breakertip alarm + example: "true" + type: string + x-order: !!float 4 + kva: + description: power consumption in kva + example: 54.402 + type: number + x-order: !!float 5 + kw: + description: "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions \n" + example: NA + type: string + x-order: !!float 19 + lastUpdatedTime: + description: | + date-time when the latest value was updated (epoc - milliseconds). + example: "1497410520000" + type: string + x-order: !!float 22 + levelType: + description: power hierarchy node levelType linked to the power data + enum: + - ibx + - cage + - cabinet + - circuit + example: ibx + type: string + x-order: !!float 2 + levelValue: + description: power hierarchy node levelValue linked to the power data + example: ABC + type: string + x-order: !!float 3 + peakKvaLastSevenDays: + example: 55.296 + type: number + x-order: !!float 12 + peakKvaLastSevenDaysContractualKva: + example: 55.296 + type: number + x-order: !!float 14 + peakKvaLastSevenDaysPercentage: + example: 55.296 + type: number + x-order: !!float 13 + peakKvaLastSevenDaysTime: + example: 55.296 + type: integer + x-order: !!float 15 + percentageKva: + description: calculated field kva / contractualKva + example: 341.54 + type: number + x-order: !!float 10 + powerFactor: + description: | + The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions + example: NA + type: string + x-order: !!float 20 + primaryKva: + description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" + example: 28.31 + type: number + x-order: !!float 17 + readingTime: + description: | + date-time when the latest value was read in (epoc - milliseconds). + example: "1497410400000" + type: string + x-order: !!float 21 + redundantKva: + description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" + example: 26.092 + type: number + x-order: !!float 18 + soldAmps: + description: circuit description when the levelType is circuit. Null otherwise. + example: !!float 123 + type: integer + x-order: !!float 16 + soldKva: + description: maximum amp draw allowable on a circuit + example: 598.349 + type: number + x-order: !!float 7 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + PowerDataResponse_IBX: + properties: + payLoad: + properties: + data: + items: + $ref: '#/definitions/PowerData_IBX' + type: array + x-order: !!float 0 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + PowerData_Error: + properties: + payLoad: + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: INTERNAL_ERROR + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "4000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - ERROR + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + PowerData_IBX: + properties: + accountNo: + description: customer account number + example: ABC + type: string + x-order: !!float 1 + amps: + description: instantaneous current amp reading on circuits + example: !!float 123 + type: number + x-order: !!float 6 + cabinetRating: + description: maximum kVA draw allowed for the cabinet + example: !!float 123 + type: number + x-order: !!float 8 + comparisonData: + $ref: '#/definitions/ComparisonData' + x-order: !!float 11 + contractualKva: + description: "The maximum power draw contractually allowable in a \nprivate cage. \nexample: 341.54\n" + type: number + x-order: !!float 9 + customerName: + example: ABC + type: string + x-order: !!float 23 + ibx: + description: ibx code + example: ABC + type: string + x-order: !!float 0 + isAlarm: + description: returns boolean based on breakertip alarm + example: "true" + type: string + x-order: !!float 4 + kva: + description: power consumption in kva + example: 54.402 + type: number + x-order: !!float 5 + kw: + description: | + measure of real power expressed in kilowatt applicable for ibxs + that have capability of energy meter reading|value will be "NA" for AMER and APAC regions + example: NA + type: string + x-order: !!float 19 + lastUpdatedTime: + description: | + date-time when the latest value was updated (epoc - milliseconds). + example: "1497410520000" + type: string + x-order: !!float 22 + levelType: + description: power hierarchy node levelType linked to the power data + enum: + - ibx + - cage + - cabinet + - circuit + example: ibx + type: string + x-order: !!float 2 + levelValue: + description: power hierarchy node levelValue linked to the power data + example: ABC + type: string + x-order: !!float 3 + peakKvaLastSevenDays: + example: 55.296 + type: number + x-order: !!float 12 + peakKvaLastSevenDaysContractualKva: + example: 55.296 + type: number + x-order: !!float 14 + peakKvaLastSevenDaysPercentage: + example: 55.296 + type: number + x-order: !!float 13 + peakKvaLastSevenDaysTime: + example: 55.296 + type: integer + x-order: !!float 15 + percentageKva: + description: calculated field kva / contractualKva + example: 15.928 + type: number + x-order: !!float 10 + powerFactor: + description: | + The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions + example: NA + type: string + x-order: !!float 20 + primaryKva: + description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" + example: 28.31 + type: number + x-order: !!float 17 + readingTime: + description: | + date-time when the latest value was read in (epoc - milliseconds). + example: "1497410400000" + type: string + x-order: !!float 21 + redundantKva: + description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" + example: 26.092 + type: number + x-order: !!float 18 + soldAmps: + description: circuit description when the levelType is circuit. Null otherwise. + example: !!float 123 + type: integer + x-order: !!float 16 + soldKva: + description: maximum amp draw allowable on a circuit + example: 598.349 + type: number + x-order: !!float 7 + type: object + PowerHierarchyNode: + properties: + children: + description: "ibx, cage, cabinet nodes can have cage, cabinet and circuit, \ncircuit nodes as children respectively.\n" + example: + - children: + - children: + - children: [] + label: 208V 20A 1Ph Red (3693) + levelType: CIRCUIT + levelValue: XYZA3693 + label: XY1:06:061600:0101 + levelType: CABINET + levelValue: "102563" + - children: + - children: [] + label: 208V 20A 1Ph Red (3694) + levelType: CIRCUIT + levelValue: XYZA3694 + - children: [] + label: 208V 20A 1Ph Pri (3692) + levelType: CIRCUIT + levelValue: XYZA3692 + label: XY1:06:061600:0102 + levelType: CABINET + levelValue: "102564" + - children: + - children: [] + label: 120V 30A 1Ph Red (7863) + levelType: CIRCUIT + levelValue: XYZE7863 + - children: [] + label: 120V 30A 1Ph Pri (7862) + levelType: CIRCUIT + levelValue: XYZE7862 + label: XY1:06:061600:0302 + levelType: CABINET + levelValue: "102582" + - children: + - children: [] + label: 208V 20A 1Ph Red (4836) + levelType: CIRCUIT + levelValue: XYZG4836 + label: XY1:06:061600:0307 + levelType: CABINET + levelValue: "102587" + label: XY1:06:061600 + levelType: CAGE + levelValue: "5902" + - children: + - children: + - children: [] + label: 120V 20A 1Ph Red (2630) + levelType: CIRCUIT + levelValue: XYZH2630 + - children: [] + label: 120V 20A 1Ph Pri (2629) + levelType: CIRCUIT + levelValue: XYZH2629 + label: XY1:06:063000:0101 + levelType: CABINET + levelValue: "100798" + label: XY1:06:063000 + levelType: CAGE + levelValue: "60442" + items: + $ref: '#/definitions/PowerHierarchyNode' + type: array + x-order: !!float 3 + label: + description: | + ibx code, cage unique space id, cabinet unique space id, circuit label + for levelType ibx, cage, cabinet, circuit resp. + example: XY1 + type: string + x-order: !!float 2 + levelType: + description: "levelType indicates which level in the power hierarchy \ndoes the node belong to.\n" + enum: + - ibx + - cage + - cabinet + - circuit + example: IBX + type: string + x-order: !!float 0 + levelValue: + description: "ibx code, cage us id, cabinet us id, circuit number for \nlevelType ibx, cage, cabinet, circuit resp.\n" + example: XY1 + type: string + x-order: !!float 1 + type: object + PowerMessage: + description: Power messages provide the latest power usage data at the circuit-level. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + required: + - accountNumber + - ibx + type: object + PowerMessageData: + description: power message data + properties: + data: + $ref: '#/definitions/Power' + x-order: !!float 1 + type: + default: power + description: message type + example: power + type: string + x-order: !!float 0 + required: + - data + - type + type: object + PowerPeakLastSevenDaysContractualPowerValueWithUnit: + description: peakLastSevenDaysContractualPower details + properties: + unit: + description: PeakLastSevenDaysContractualPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: PeakLastSevenDaysContractualPower reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPeakLastSevenDaysRatioValueWithUnit: + description: peakLastSevenDaysRatio details + properties: + unit: + description: PeakLastSevenDaysRatio reading unit + example: PERCENT + type: string + x-order: !!float 1 + value: + description: PeakLastSevenDaysRatio reading value + example: "48.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPeakLastSevenDaysValueWithUnit: + description: peakLastSevenDays details + properties: + unit: + description: PeakLastSevenDays reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: PeakLastSevenDays reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPowerConsumptionToContractualValueWithUnit: + description: powerConsumptionToContractual details + properties: + unit: + description: PowerConsumptionToContractual reading unit + example: PERCENT + type: string + x-order: !!float 1 + value: + description: PowerConsumptionToContractual reading value + example: "68.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerPowerFactorValueWithUnit: + description: powerFactor details + properties: + unit: + description: PowerFactor reading unit + example: pf + type: string + x-order: !!float 1 + value: + description: PowerFactor reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerRealPowerValueWithUnit: + description: realPower details + properties: + unit: + description: RealPower reading unit + example: kW + type: string + x-order: !!float 1 + value: + description: RealPower reading value + example: "0.0" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerResponse: + items: + $ref: '#/definitions/PowerHierarchyNode' + type: array + PowerSoldCurrentValueWithUnit: + description: soldCurrent details + properties: + unit: + description: SoldCurrent reading unit + example: A + type: string + x-order: !!float 1 + value: + description: SoldCurrent reading value + example: "7.36" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + PowerSoldPowerValueWithUnit: + description: soldPower details + properties: + unit: + description: SoldPower reading unit + example: kVA + type: string + x-order: !!float 1 + value: + description: SoldPower reading value + example: "68.125" + type: string + x-order: !!float 0 + required: + - unit + - value + type: object + Sensor reading: + description: Single environmental sensor reading. + properties: + humidity: + $ref: '#/definitions/ValueWithUnit' + description: 'Sensor reading: humidity' + example: '{ value: 33.3, unit: "%" }' + ibx: + description: The ibx identifier where the sensor is placed. + example: SV2 + type: string + sensorId: + description: The sensor identifier. + example: SV2.Environmental.Colo4-ZoneHumidity1 + type: string + temperature: + $ref: '#/definitions/ValueWithUnit' + description: 'Sensor reading: temperature' + example: '{ value: 23.08, unit: "CELSIUS" }' + zoneId: + description: The zone where the sensor is placed. + example: CH2:1:06:ColoArea:1 + type: string + required: + - ibx + - sensorId + - zoneId + type: object + SensorReadingsResponse: + properties: + data: + description: List of data objects + items: + $ref: '#/definitions/Sensor%20reading' + type: array + pagination: + $ref: '#/definitions/Pagination' + description: Pagination metadata + required: + - data + - pagination + type: object + SubscriptionData: + properties: + alarmMessageData: + description: alarm message data + items: + $ref: '#/definitions/AlarmMessageData' + type: array + x-order: !!float 0 + alertMessageData: + description: alert message data + items: + $ref: '#/definitions/AlertMessageData' + type: array + x-order: !!float 1 + environmentMessageData: + description: environment message data + items: + $ref: '#/definitions/EnvironmentMessageData' + type: array + x-order: !!float 2 + meteredPowerMessageData: + description: metered-power message data + items: + $ref: '#/definitions/MeteredPowerMessageData' + type: array + x-order: !!float 3 + pagination: + $ref: '#/definitions/Pagination' + x-order: !!float 6 + powerMessageData: + description: power message data + items: + $ref: '#/definitions/PowerMessageData' + type: array + x-order: !!float 4 + tagPointMessageData: + description: tag-point message data + items: + $ref: '#/definitions/TagPointMessageData' + type: array + x-order: !!float 5 + type: object + SubscriptionRequest: + description: Subscription Request Payload + properties: + channel: + $ref: '#/definitions/Channel' + description: channel + x-order: !!float 1 + messageType: + $ref: '#/definitions/MessageType' + x-order: !!float 0 + type: object + SubscriptionResponse: + description: Subscription Response + properties: + channel: + $ref: '#/definitions/Channel' + x-order: !!float 3 + createdBy: + type: string + x-order: !!float 5 + createdDateTime: + format: date-time + type: string + x-order: !!float 6 + id: + type: string + x-order: !!float 0 + messageType: + $ref: '#/definitions/MessageType' + x-order: !!float 2 + orgId: + type: string + x-order: !!float 4 + status: + enum: + - PENDING + - ACTIVE + - FAILED + - DELETE_IN_PROGRESS + - DELETED + type: string + x-order: !!float 1 + updatedBy: + type: string + x-order: !!float 7 + updatedDateTime: + format: date-time + type: string + x-order: !!float 8 + type: object + SystemAlert: + description: System Alert messages are sent when Equinix-defined alert conditions become true. The message contains the data point value that triggered the alert as well as the current value. + properties: + accountNumber: + example: "135888" + type: string + x-order: !!float 0 + ibx: + items: + type: string + type: array + uniqueItems: true + x-order: !!float 1 + required: + - accountNumber + - ibx + type: object + TagDetails: + description: tag details + properties: + displayName: + description: tag display name + example: Output Voltage CA + type: string + x-order: !!float 1 + id: + description: tag id + example: IBX.ATS-M1-04:outputvoltageca + type: string + x-order: !!float 0 + required: + - id + type: object + TagPoint: + description: message data + properties: + dataQuality: + description: 'data quality: Good | Bad | Uncertain' + example: Good + type: string + x-order: !!float 5 + ibx: + description: ibx + example: IBX + type: string + x-order: !!float 1 + reading: + $ref: '#/definitions/TagPointValueWithUnit' + x-order: !!float 3 + readingTime: + description: message reading time + example: 2023-10-03T13:09:32 + type: string + x-order: !!float 4 + streamId: + description: unique message id + example: IBX.ATS-M1-04:outputvoltageca + type: string + x-order: !!float 0 + tag: + $ref: '#/definitions/TagDetails' + x-order: !!float 2 + required: + - dataQuality + - ibx + - reading + - readingTime + - streamId + - tag + type: object + TagPointData: + properties: + payLoad: + items: + $ref: '#/definitions/TagPointDataArrayCurrent' + type: array + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + TagPointDataArray: + description: | + Tag Point is a property of the Asset it is linked to. + properties: + alarmStatus: + description: "Generic label for the tag point \n" + example: OK + type: string + x-order: !!float 4 + readingTime: + description: | + date time when the tag point value was read from the device. + example: "20170907060449" + type: string + x-order: !!float 5 + tagDisplayName: + description: | + Generic label for the tag point + example: Evaporator Leaving Water Temperature + type: string + x-order: !!float 2 + tagId: + description: | + ID for the tagPoint - Unique Identifier for the Tag Point + example: CH1.Chiller-1:evapleavingwatertemperature + type: string + x-order: !!float 1 + uom: + description: | + Unit of measure for the data value for the tag point + example: °C + type: string + x-order: !!float 3 + value: + description: | + Current data value for the tag point + example: 4.9 + type: string + x-order: !!float 0 + type: object + TagPointDataArrayCurrent: + description: | + Tag Point is a property of the Asset it is linked to. + properties: + readingTime: + description: "date time when the tag point value was read from the device. \n" + example: "20170907125336" + type: string + x-order: !!float 4 + tagDisplayName: + description: | + Generic label for the tag point + example: Evaporator Leaving Water Temperature + type: string + x-order: !!float 2 + tagId: + description: | + ID for the tagPoint - Unique Identifier for the Tag Point + example: CH1.Chiller-1:evapleavingwatertemperature + type: string + x-order: !!float 1 + uom: + description: | + Unit of measure for the data value for the tag point + example: °C + type: string + x-order: !!float 3 + value: + description: | + Current data value for the tag point + example: 4.9 + type: string + x-order: !!float 0 + type: object + TagPointMessageData: + description: tag-point message data + properties: + data: + $ref: '#/definitions/TagPoint' + x-order: !!float 1 + type: + default: tag-point + description: message type + example: tag-point + type: string + x-order: !!float 0 + required: + - data + - type + type: object + TagPointTrendingData: + properties: + datetime: + description: UTC time + example: "1504779867508" + type: string + x-order: !!float 0 + value: + example: "0.0" + type: string + x-order: !!float 1 + type: object + TagPointTrendingResponse: + properties: + payLoad: + properties: + accountNumber: + example: "1" + type: string + x-order: !!float 0 + data: + description: trend data of tag + items: + $ref: '#/definitions/TagPointTrendingData' + type: array + x-order: !!float 7 + dataType: + description: data type of trend data vlaues + example: Float + type: string + x-order: !!float 6 + ibx: + example: CH1 + type: string + x-order: !!float 1 + interval: + description: data sampling interval + enum: + - 5m + - 15m + - 1h + - 1d + example: 1h + type: string + x-order: !!float 2 + tagDisplayName: + description: "the \n" + example: Battery Time Remaining + type: string + x-order: !!float 5 + tagId: + description: | + the unique identifiers for the tag point ids for which the trending point is requested. + example: CH1.UPS-20:batterytimeremaining + type: string + x-order: !!float 4 + uom: + example: s + type: string + x-order: !!float 3 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + TagPointValueWithUnit: + description: reading details + properties: + unit: + description: reading unit + example: V + type: string + x-order: !!float 1 + value: + description: reading value + example: "50.045" + type: string + x-order: !!float 0 + required: + - value + type: object + Template: + description: template is a blueprint for an asset. + properties: + assets: + items: + $ref: '#/definitions/Asset' + type: array + x-order: !!float 0 + templateId: + description: template id - unique identifier for the template + example: Cooling Plant + type: string + x-order: !!float 1 + type: object + TrendingEnvironmentData: + properties: + payLoad: + properties: + accountNo: + description: customer account num + example: "1" + type: string + x-order: !!float 1 + datapoint: + description: data point for which the timeseries data is fetched + example: temperature + type: string + x-order: !!float 3 + ibx: + description: ibx code + example: CH1 + type: string + x-order: !!float 0 + interval: + description: interval + example: reading + type: string + x-order: !!float 2 + series: + description: Time series data for the data point + items: + $ref: '#/definitions/DataValue' + type: array + x-order: !!float 5 + uom: + description: unit of measure used for the datapoint + example: °C + type: string + x-order: !!float 4 + type: object + x-order: !!float 0 + type: object + TrendingPowerData: + properties: + payLoad: + properties: + accountNumber: + example: "123456" + type: string + x-order: !!float 0 + data: + items: + $ref: '#/definitions/ComparisonData_Trend' + type: array + x-order: !!float 5 + ibx: + example: ABX + type: string + x-order: !!float 1 + interval: + description: serial number + enum: + - 5m + - 15m + - 1h + - 1d + example: 1h + type: string + x-order: !!float 4 + levelType: + description: power hierarchy node levelType linked to the power data + enum: + - ibx + - cage + - cabinet + - circuit + type: string + x-order: !!float 2 + levelValue: + description: ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp. + example: ABX + type: string + x-order: !!float 3 + type: object + x-order: !!float 0 + status: + properties: + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 2 + statuscode: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + type: number + x-order: !!float 1 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object + x-order: !!float 1 + type: object + ValueWithUnit: + description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). + properties: + unit: + description: Unit for value. + example: CELSIUS + type: object + value: + description: Specific value, to be read together with unit. + example: "33.3" + type: object + required: + - unit + - value + type: object + ValueWithUnitDoubleHumidityUnit: + description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). + properties: + unit: + description: Unit for value. + enum: + - PERCENT + example: CELSIUS + type: string + value: + description: Specific value, to be read together with unit. + example: 33.3 + format: double + type: number + required: + - unit + - value + type: object + ValueWithUnitDoubleTemperatureUnit: + description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). + properties: + unit: + description: Unit for value. + enum: + - CELSIUS + - FAHRENHEIT + example: CELSIUS + type: string + value: + description: Specific value, to be read together with unit. + example: 33.3 + format: double + type: number + required: + - unit + - value + type: object + WebhookChannelConfiguration: + description: The configuration for a 'WEBHOOK' channel + properties: + batchSize: + format: int32 + maximum: !!float 20 + minimum: !!float 5 + type: integer + x-order: !!float 4 + numberOfConcurrentCalls: + format: int32 + maximum: !!float 50 + minimum: !!float 20 + type: integer + x-order: !!float 3 + numberOfRetries: + format: int32 + maximum: !!float 5 + minimum: !!float 1 + type: integer + x-order: !!float 2 + sslCertificate: + example: ZkFzZLY1IGRpY31kZXI= + type: string + x-order: !!float 0 + url: + example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com + type: string + x-order: !!float 1 + required: + - url + type: object + recipientsArray: + properties: + email: + example: true + type: boolean + x-order: !!float 8 + email_address: + example: test + type: string + x-order: !!float 2 + firstName: + example: test + type: string + x-order: !!float 0 + lastName: + example: test + type: string + x-order: !!float 1 + mobilePhoneCode: + example: test + type: string + x-order: !!float 3 + mobilePhoneNumber: + example: test + type: string + x-order: !!float 4 + self: + example: true + type: boolean + x-order: !!float 5 + sms: + example: true + type: boolean + x-order: !!float 6 + voice: + example: true + type: boolean + x-order: !!float 7 + type: object + status: + properties: + cause: + description: root cause for error + example: "null" + type: string + x-order: !!float 1 + info: + properties: + code: + description: '[1000|3001|3002|3003|4000] are the possible status codes' + example: "1000" + maximum: !!float 7000 + minimum: !!float 1000 + pattern: ^[0-9]{4}$ + type: number + x-order: !!float 0 + msg: + description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' + example: OK + type: string + x-order: !!float 1 + type: object + x-order: !!float 2 + type: + description: '[INFO|ERROR] are the possible values' + enum: + - INFO + type: string + x-order: !!float 0 + type: object +parameters: + authorizationHeader: + description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + in: header + name: Authorization + required: true + type: string + x-prefix: 'Bearer ' +tags: + - description: Access Power Consumption Information + name: DCIM Power + - description: Access Environment Information + name: Smart View Environment + - description: Access alert information + name: DCIM Alerts + - description: Access Asset Information + name: Smart View Assets + - description: APIs to get Location, Power Hierarchy + name: Smart View Hierarchy APIs From dde7fe41c20e2c66937e99af898af244496e99aa Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 15:33:43 -0500 Subject: [PATCH 5/8] wip: rename flattened Smartview spec to swagger.yaml Signed-off-by: Marques Johansson --- .../oas3.fetched/{flattened-spec.yaml => swagger.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename spec/services/smartview/oas3.fetched/{flattened-spec.yaml => swagger.yaml} (100%) diff --git a/spec/services/smartview/oas3.fetched/flattened-spec.yaml b/spec/services/smartview/oas3.fetched/swagger.yaml similarity index 100% rename from spec/services/smartview/oas3.fetched/flattened-spec.yaml rename to spec/services/smartview/oas3.fetched/swagger.yaml index cde7bfb8..7a947d21 100644 --- a/spec/services/smartview/oas3.fetched/flattened-spec.yaml +++ b/spec/services/smartview/oas3.fetched/swagger.yaml @@ -187,7 +187,6 @@ paths: get: description: | The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit. - operationId: Mixin0 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -265,6 +264,7 @@ paths: get: description: | The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. + operationId: Mixin0 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header From a855ffb8e5f867ef1ea11e7f3c5ae79cb0f564c4 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 15:34:49 -0500 Subject: [PATCH 6/8] chore: add artifacts of "make -f Makefile.smartview codegen" Signed-off-by: Marques Johansson --- services/smartview/.gitignore | 24 + services/smartview/.openapi-generator-ignore | 23 + services/smartview/README.md | 299 ++++ services/smartview/api_alert_log.go | 234 +++ services/smartview/api_alerts.go | 224 +++ services/smartview/api_dcim_power.go | 510 ++++++ services/smartview/api_default.go | 755 ++++++++ services/smartview/api_smart_view_assets.go | 1247 ++++++++++++++ .../smartview/api_smart_view_environment.go | 545 ++++++ .../smartview/api_smart_view_environmental.go | 296 ++++ .../api_smart_view_hierarchy_apis.go | 325 ++++ services/smartview/client.go | 681 ++++++++ services/smartview/configuration.go | 215 +++ services/smartview/docs/Alarm.md | 536 ++++++ services/smartview/docs/AlarmAssetDetails.md | 108 ++ .../docs/AlarmCurrentValueDetails.md | 108 ++ services/smartview/docs/AlarmMessageData.md | 72 + services/smartview/docs/AlarmStatusDetails.md | 134 ++ services/smartview/docs/AlarmTagDetails.md | 82 + .../smartview/docs/AlarmThresholdDetails.md | 108 ++ services/smartview/docs/Alert.md | 369 ++++ services/smartview/docs/AlertActivityLog.md | 82 + .../smartview/docs/AlertActivityLogObj.md | 82 + services/smartview/docs/AlertAssetDetails.md | 108 ++ services/smartview/docs/AlertDto1.md | 784 +++++++++ services/smartview/docs/AlertDto2.md | 1018 +++++++++++ services/smartview/docs/AlertLogApi.md | 93 + services/smartview/docs/AlertMessageData.md | 72 + services/smartview/docs/AlertObj.md | 82 + services/smartview/docs/AlertTagDetails.md | 56 + .../smartview/docs/AlertThresholdDetails.md | 134 ++ services/smartview/docs/AlertType.md | 212 +++ services/smartview/docs/Alerts.md | 82 + services/smartview/docs/AlertsApi.md | 91 + services/smartview/docs/ApiError.md | 186 ++ .../smartview/docs/ApiErrorAdditionalInfo.md | 82 + services/smartview/docs/Asset.md | 124 ++ .../docs/AssetAssetClassificationInner.md | 15 + .../smartview/docs/AssetDetailResponse.md | 82 + .../docs/AssetDetailResponsePayLoad.md | 56 + .../docs/AssetDetailResponseStatus.md | 108 ++ .../docs/AssetDetailResponseStatusType.md | 11 + services/smartview/docs/AssetDetails.md | 290 ++++ .../smartview/docs/AssetDetailsGetResponse.md | 82 + .../docs/AssetDetailsGetResponsePayLoad.md | 290 ++++ .../smartview/docs/AssetDetailsRequest.md | 134 ++ .../smartview/docs/AssetDetailsResponse.md | 82 + .../docs/AssetDetailsResponsePayLoad.md | 82 + .../docs/AssetDetailsTagPointData.md | 56 + services/smartview/docs/Assets.md | 82 + services/smartview/docs/AssetsArray.md | 134 ++ services/smartview/docs/AssetsList.md | 82 + services/smartview/docs/AssetsListPayLoad.md | 82 + services/smartview/docs/AssetsListStatus.md | 108 ++ services/smartview/docs/AssetsPayLoad.md | 82 + services/smartview/docs/AssetsStatus.md | 108 ++ .../docs/AwsIotCoreChannelConfiguration.md | 51 + .../docs/AzureChannelConfiguration.md | 108 ++ services/smartview/docs/Cabinets.md | 108 ++ services/smartview/docs/CabinetsName.md | 11 + services/smartview/docs/Cages.md | 108 ++ services/smartview/docs/Category.md | 82 + services/smartview/docs/Channel.md | 134 ++ services/smartview/docs/ChannelChannelType.md | 15 + services/smartview/docs/Circuits.md | 82 + .../smartview/docs/CircuitsMapWithCage.md | 82 + .../smartview/docs/CircuitsMapWithCageName.md | 11 + services/smartview/docs/CircuitsName.md | 11 + services/smartview/docs/CircuitsType.md | 11 + services/smartview/docs/ComparisonData.md | 160 ++ .../smartview/docs/ComparisonDataDatapoint.md | 11 + .../smartview/docs/ComparisonDataTrend.md | 82 + services/smartview/docs/ConditionalAlert.md | 602 +++++++ .../smartview/docs/CurrentTagPointRequest.md | 108 ++ .../smartview/docs/CurrentTagPointResponse.md | 56 + services/smartview/docs/CustomAlert.md | 98 ++ services/smartview/docs/CustomerAssets.md | 108 ++ services/smartview/docs/DCIMPowerApi.md | 233 +++ services/smartview/docs/DataValue.md | 108 ++ services/smartview/docs/DefaultApi.md | 442 +++++ services/smartview/docs/Environment.md | 187 ++ .../smartview/docs/EnvironmentAssetDetails.md | 72 + services/smartview/docs/EnvironmentData.md | 82 + .../smartview/docs/EnvironmentDataForArray.md | 316 ++++ .../smartview/docs/EnvironmentDataPayLoad.md | 316 ++++ .../smartview/docs/EnvironmentDataResponse.md | 82 + .../docs/EnvironmentDataResponsePayLoad.md | 82 + .../docs/EnvironmentDataResponseStatus.md | 108 ++ .../smartview/docs/EnvironmentDataStatus.md | 108 ++ .../smartview/docs/EnvironmentMessageData.md | 72 + .../smartview/docs/EnvironmentTagDetails.md | 77 + .../docs/EnvironmentValueWithUnit.md | 72 + services/smartview/docs/Environmental.md | 98 ++ .../smartview/docs/EnvironmentalLevelInner.md | 15 + services/smartview/docs/Error.md | 82 + services/smartview/docs/ErrorStatus.md | 108 ++ services/smartview/docs/ErrorStatusType.md | 11 + services/smartview/docs/GenericRequest.md | 108 ++ .../docs/GetAssetClassificationParameter.md | 13 + ...scriptionDataMessageTypesParameterInner.md | 21 + services/smartview/docs/HierarchyNode.md | 82 + .../smartview/docs/HierarchyNodePayLoad.md | 82 + services/smartview/docs/MessageType.md | 186 ++ services/smartview/docs/MeteredPower.md | 265 +++ .../docs/MeteredPowerAssetDetails.md | 77 + .../smartview/docs/MeteredPowerMessageData.md | 72 + .../smartview/docs/MeteredPowerTagDetails.md | 77 + .../docs/MeteredPowerValueWithUnit.md | 77 + .../docs/Mixin1DataPointParameter.md | 13 + .../smartview/docs/Mixin1IntervalParameter.md | 15 + .../docs/Mixin1LevelTypeParameter.md | 17 + services/smartview/docs/Pagination.md | 145 ++ services/smartview/docs/Power.md | 639 +++++++ .../docs/PowerApparentPowerValueWithUnit.md | 72 + services/smartview/docs/PowerAssetDetails.md | 72 + .../docs/PowerCabinetRatingValueWithUnit.md | 72 + .../PowerContractualPowerValueWithUnit.md | 72 + .../smartview/docs/PowerCurrentPostRequest.md | 108 ++ .../docs/PowerCurrentPostRequestLevelType.md | 17 + .../docs/PowerCurrentValueWithUnit.md | 72 + services/smartview/docs/PowerData.md | 82 + services/smartview/docs/PowerDataError.md | 82 + .../smartview/docs/PowerDataErrorStatus.md | 108 ++ services/smartview/docs/PowerDataIBX.md | 654 +++++++ services/smartview/docs/PowerDataPayLoad.md | 654 +++++++ .../docs/PowerDataPayLoadLevelType.md | 17 + .../smartview/docs/PowerDataResponseIBX.md | 82 + .../docs/PowerDataResponseIBXPayLoad.md | 56 + services/smartview/docs/PowerHierarchyNode.md | 134 ++ .../docs/PowerHierarchyNodeLevelType.md | 17 + services/smartview/docs/PowerMessage.md | 72 + services/smartview/docs/PowerMessageData.md | 72 + ...tSevenDaysContractualPowerValueWithUnit.md | 72 + ...owerPeakLastSevenDaysRatioValueWithUnit.md | 72 + .../PowerPeakLastSevenDaysValueWithUnit.md | 72 + ...erConsumptionToContractualValueWithUnit.md | 72 + .../docs/PowerPowerFactorValueWithUnit.md | 72 + .../docs/PowerRealPowerValueWithUnit.md | 72 + .../docs/PowerSoldCurrentValueWithUnit.md | 72 + .../docs/PowerSoldPowerValueWithUnit.md | 72 + .../PowerV1CurrentGetLevelTypeParameter.md | 17 + services/smartview/docs/RecipientsArray.md | 264 +++ services/smartview/docs/SensorReading.md | 145 ++ .../smartview/docs/SensorReadingsResponse.md | 72 + services/smartview/docs/SmartViewAssetsApi.md | 596 +++++++ .../smartview/docs/SmartViewEnvironmentApi.md | 240 +++ .../docs/SmartViewEnvironmentalApi.md | 165 ++ .../docs/SmartViewHierarchyAPIsApi.md | 154 ++ services/smartview/docs/Status.md | 108 ++ services/smartview/docs/StatusInfo.md | 82 + services/smartview/docs/SubscriptionData.md | 212 +++ .../smartview/docs/SubscriptionRequest.md | 82 + .../smartview/docs/SubscriptionResponse.md | 264 +++ .../docs/SubscriptionResponseStatus.md | 19 + services/smartview/docs/SystemAlert.md | 72 + services/smartview/docs/TagDetails.md | 77 + services/smartview/docs/TagPoint.md | 156 ++ services/smartview/docs/TagPointData.md | 82 + services/smartview/docs/TagPointDataArray.md | 186 ++ .../docs/TagPointDataArrayCurrent.md | 160 ++ services/smartview/docs/TagPointDataStatus.md | 108 ++ .../smartview/docs/TagPointMessageData.md | 72 + .../smartview/docs/TagPointTrendingData.md | 82 + .../docs/TagPointTrendingResponse.md | 82 + .../docs/TagPointTrendingResponsePayLoad.md | 238 +++ ...TagPointTrendingResponsePayLoadInterval.md | 17 + .../docs/TagPointTrendingResponseStatus.md | 108 ++ .../smartview/docs/TagPointValueWithUnit.md | 77 + services/smartview/docs/Template.md | 82 + .../smartview/docs/TrendingEnvironmentData.md | 56 + .../docs/TrendingEnvironmentDataPayLoad.md | 186 ++ services/smartview/docs/TrendingPowerData.md | 82 + .../docs/TrendingPowerDataPayLoad.md | 186 ++ .../docs/TrendingPowerDataPayLoadInterval.md | 17 + .../docs/TrendingPowerDataPayLoadLevelType.md | 17 + .../smartview/docs/TrendingPowerDataStatus.md | 108 ++ services/smartview/docs/ValueWithUnit.md | 72 + .../docs/ValueWithUnitDoubleHumidityUnit.md | 72 + .../ValueWithUnitDoubleHumidityUnitUnit.md | 11 + .../ValueWithUnitDoubleTemperatureUnit.md | 72 + .../ValueWithUnitDoubleTemperatureUnitUnit.md | 13 + .../docs/WebhookChannelConfiguration.md | 155 ++ services/smartview/go.mod | 6 + services/smartview/go.sum | 11 + ...wer_v1_current_get_level_type_parameter.go | 115 ++ services/smartview/model_alarm.go | 868 ++++++++++ .../smartview/model_alarm_asset_details.go | 232 +++ .../model_alarm_current_value_details.go | 232 +++ .../smartview/model_alarm_message_data.go | 200 +++ .../smartview/model_alarm_status_details.go | 270 +++ services/smartview/model_alarm_tag_details.go | 194 +++ .../model_alarm_threshold_details.go | 232 +++ services/smartview/model_alert.go | 628 +++++++ .../smartview/model_alert_activity_log.go | 192 +++ .../smartview/model_alert_activity_log_obj.go | 193 +++ .../smartview/model_alert_asset_details.go | 232 +++ services/smartview/model_alert_dto1.go | 1195 +++++++++++++ services/smartview/model_alert_dto2.go | 1527 +++++++++++++++++ .../smartview/model_alert_message_data.go | 200 +++ services/smartview/model_alert_obj.go | 193 +++ services/smartview/model_alert_tag_details.go | 156 ++ .../model_alert_threshold_details.go | 270 +++ services/smartview/model_alert_type.go | 377 ++++ services/smartview/model_alerts.go | 192 +++ services/smartview/model_api_error.go | 340 ++++ .../model_api_error_additional_info.go | 192 +++ services/smartview/model_asset.go | 272 +++ .../model_asset_asset_classification_inner.go | 113 ++ .../smartview/model_asset_detail_response.go | 192 +++ .../model_asset_detail_response_pay_load.go | 155 ++ .../model_asset_detail_response_status.go | 231 +++ ...model_asset_detail_response_status_type.go | 109 ++ services/smartview/model_asset_details.go | 498 ++++++ .../model_asset_details_get_response.go | 192 +++ ...del_asset_details_get_response_pay_load.go | 498 ++++++ .../smartview/model_asset_details_request.go | 269 +++ .../smartview/model_asset_details_response.go | 192 +++ .../model_asset_details_response_pay_load.go | 193 +++ .../model_asset_details_tag_point_data.go | 155 ++ services/smartview/model_assets.go | 192 +++ services/smartview/model_assets_array.go | 269 +++ services/smartview/model_assets_list.go | 192 +++ .../smartview/model_assets_list_pay_load.go | 193 +++ .../smartview/model_assets_list_status.go | 231 +++ services/smartview/model_assets_pay_load.go | 192 +++ services/smartview/model_assets_status.go | 231 +++ ...odel_aws_iot_core_channel_configuration.go | 168 ++ .../model_azure_channel_configuration.go | 229 +++ services/smartview/model_cabinets.go | 229 +++ services/smartview/model_cabinets_name.go | 109 ++ services/smartview/model_cages.go | 231 +++ services/smartview/model_category.go | 192 +++ services/smartview/model_channel.go | 266 +++ .../smartview/model_channel_channel_type.go | 113 ++ services/smartview/model_circuits.go | 192 +++ .../smartview/model_circuits_map_with_cage.go | 192 +++ .../model_circuits_map_with_cage_name.go | 109 ++ services/smartview/model_circuits_name.go | 109 ++ services/smartview/model_circuits_type.go | 109 ++ services/smartview/model_comparison_data.go | 307 ++++ .../model_comparison_data_datapoint.go | 109 ++ .../smartview/model_comparison_data_trend.go | 194 +++ services/smartview/model_conditional_alert.go | 932 ++++++++++ .../model_current_tag_point_request.go | 231 +++ .../model_current_tag_point_response.go | 156 ++ services/smartview/model_custom_alert.go | 234 +++ services/smartview/model_customer_assets.go | 229 +++ services/smartview/model_data_value.go | 232 +++ services/smartview/model_environment.go | 362 ++++ .../model_environment_asset_details.go | 199 +++ services/smartview/model_environment_data.go | 192 +++ .../model_environment_data_for_array.go | 536 ++++++ .../model_environment_data_pay_load.go | 536 ++++++ .../model_environment_data_response.go | 192 +++ ...odel_environment_data_response_pay_load.go | 193 +++ .../model_environment_data_response_status.go | 231 +++ .../model_environment_data_status.go | 231 +++ .../model_environment_message_data.go | 200 +++ .../model_environment_tag_details.go | 207 +++ .../model_environment_value_with_unit.go | 199 +++ services/smartview/model_environmental.go | 235 +++ .../model_environmental_level_inner.go | 113 ++ services/smartview/model_error.go | 192 +++ services/smartview/model_error_status.go | 231 +++ services/smartview/model_error_status_type.go | 109 ++ services/smartview/model_generic_request.go | 232 +++ ...odel_get_asset_classification_parameter.go | 111 ++ ...tion_data_message_types_parameter_inner.go | 119 ++ services/smartview/model_hierarchy_node.go | 192 +++ .../model_hierarchy_node_pay_load.go | 192 +++ services/smartview/model_message_type.go | 346 ++++ services/smartview/model_metered_power.go | 476 +++++ .../model_metered_power_asset_details.go | 207 +++ .../model_metered_power_message_data.go | 200 +++ .../model_metered_power_tag_details.go | 207 +++ .../model_metered_power_value_with_unit.go | 207 +++ .../model_mixin1_data_point_parameter.go | 111 ++ .../model_mixin1_interval_parameter.go | 113 ++ .../model_mixin1_level_type_parameter.go | 115 ++ services/smartview/model_pagination.go | 305 ++++ services/smartview/model_power.go | 1014 +++++++++++ ...el_power_apparent_power_value_with_unit.go | 199 +++ .../smartview/model_power_asset_details.go | 199 +++ ...el_power_cabinet_rating_value_with_unit.go | 199 +++ ...power_contractual_power_value_with_unit.go | 199 +++ .../model_power_current_post_request.go | 231 +++ ...l_power_current_post_request_level_type.go | 115 ++ .../model_power_current_value_with_unit.go | 199 +++ services/smartview/model_power_data.go | 192 +++ services/smartview/model_power_data_error.go | 192 +++ .../model_power_data_error_status.go | 231 +++ services/smartview/model_power_data_ibx.go | 1023 +++++++++++ .../smartview/model_power_data_pay_load.go | 1023 +++++++++++ .../model_power_data_pay_load_level_type.go | 115 ++ .../model_power_data_response_ibx.go | 192 +++ .../model_power_data_response_ibx_pay_load.go | 155 ++ .../smartview/model_power_hierarchy_node.go | 269 +++ .../model_power_hierarchy_node_level_type.go | 115 ++ services/smartview/model_power_message.go | 197 +++ .../smartview/model_power_message_data.go | 200 +++ ..._days_contractual_power_value_with_unit.go | 199 +++ ...k_last_seven_days_ratio_value_with_unit.go | 199 +++ ...er_peak_last_seven_days_value_with_unit.go | 199 +++ ...sumption_to_contractual_value_with_unit.go | 199 +++ ...odel_power_power_factor_value_with_unit.go | 199 +++ .../model_power_real_power_value_with_unit.go | 199 +++ ...odel_power_sold_current_value_with_unit.go | 199 +++ .../model_power_sold_power_value_with_unit.go | 199 +++ services/smartview/model_recipients_array.go | 451 +++++ services/smartview/model_sensor_reading.go | 303 ++++ .../model_sensor_readings_response.go | 198 +++ services/smartview/model_status.go | 230 +++ services/smartview/model_status_info.go | 194 +++ services/smartview/model_subscription_data.go | 383 +++++ .../smartview/model_subscription_request.go | 192 +++ .../smartview/model_subscription_response.go | 452 +++++ .../model_subscription_response_status.go | 117 ++ services/smartview/model_system_alert.go | 197 +++ services/smartview/model_tag_details.go | 207 +++ services/smartview/model_tag_point.go | 317 ++++ services/smartview/model_tag_point_data.go | 192 +++ .../smartview/model_tag_point_data_array.go | 346 ++++ .../model_tag_point_data_array_current.go | 308 ++++ .../smartview/model_tag_point_data_status.go | 231 +++ .../smartview/model_tag_point_message_data.go | 200 +++ .../model_tag_point_trending_data.go | 193 +++ .../model_tag_point_trending_response.go | 192 +++ ...el_tag_point_trending_response_pay_load.go | 418 +++++ ...int_trending_response_pay_load_interval.go | 115 ++ ...odel_tag_point_trending_response_status.go | 231 +++ .../model_tag_point_value_with_unit.go | 207 +++ services/smartview/model_template.go | 193 +++ .../model_trending_environment_data.go | 155 ++ ...odel_trending_environment_data_pay_load.go | 346 ++++ .../smartview/model_trending_power_data.go | 192 +++ .../model_trending_power_data_pay_load.go | 341 ++++ ...l_trending_power_data_pay_load_interval.go | 115 ++ ...trending_power_data_pay_load_level_type.go | 115 ++ .../model_trending_power_data_status.go | 231 +++ services/smartview/model_value_with_unit.go | 199 +++ ...el_value_with_unit_double_humidity_unit.go | 198 +++ ...lue_with_unit_double_humidity_unit_unit.go | 109 ++ ...value_with_unit_double_temperature_unit.go | 198 +++ ..._with_unit_double_temperature_unit_unit.go | 111 ++ .../model_webhook_channel_configuration.go | 316 ++++ services/smartview/response.go | 47 + services/smartview/test/api_alert_log_test.go | 37 + services/smartview/test/api_alerts_test.go | 37 + .../smartview/test/api_dcim_power_test.go | 61 + services/smartview/test/api_default_test.go | 38 + .../test/api_smart_view_assets_test.go | 121 ++ .../test/api_smart_view_environment_test.go | 61 + .../test/api_smart_view_environmental_test.go | 54 + .../api_smart_view_hierarchy_apis_test.go | 49 + services/smartview/utils.go | 347 ++++ 355 files changed, 69280 insertions(+) create mode 100644 services/smartview/.gitignore create mode 100644 services/smartview/.openapi-generator-ignore create mode 100644 services/smartview/README.md create mode 100644 services/smartview/api_alert_log.go create mode 100644 services/smartview/api_alerts.go create mode 100644 services/smartview/api_dcim_power.go create mode 100644 services/smartview/api_default.go create mode 100644 services/smartview/api_smart_view_assets.go create mode 100644 services/smartview/api_smart_view_environment.go create mode 100644 services/smartview/api_smart_view_environmental.go create mode 100644 services/smartview/api_smart_view_hierarchy_apis.go create mode 100644 services/smartview/client.go create mode 100644 services/smartview/configuration.go create mode 100644 services/smartview/docs/Alarm.md create mode 100644 services/smartview/docs/AlarmAssetDetails.md create mode 100644 services/smartview/docs/AlarmCurrentValueDetails.md create mode 100644 services/smartview/docs/AlarmMessageData.md create mode 100644 services/smartview/docs/AlarmStatusDetails.md create mode 100644 services/smartview/docs/AlarmTagDetails.md create mode 100644 services/smartview/docs/AlarmThresholdDetails.md create mode 100644 services/smartview/docs/Alert.md create mode 100644 services/smartview/docs/AlertActivityLog.md create mode 100644 services/smartview/docs/AlertActivityLogObj.md create mode 100644 services/smartview/docs/AlertAssetDetails.md create mode 100644 services/smartview/docs/AlertDto1.md create mode 100644 services/smartview/docs/AlertDto2.md create mode 100644 services/smartview/docs/AlertLogApi.md create mode 100644 services/smartview/docs/AlertMessageData.md create mode 100644 services/smartview/docs/AlertObj.md create mode 100644 services/smartview/docs/AlertTagDetails.md create mode 100644 services/smartview/docs/AlertThresholdDetails.md create mode 100644 services/smartview/docs/AlertType.md create mode 100644 services/smartview/docs/Alerts.md create mode 100644 services/smartview/docs/AlertsApi.md create mode 100644 services/smartview/docs/ApiError.md create mode 100644 services/smartview/docs/ApiErrorAdditionalInfo.md create mode 100644 services/smartview/docs/Asset.md create mode 100644 services/smartview/docs/AssetAssetClassificationInner.md create mode 100644 services/smartview/docs/AssetDetailResponse.md create mode 100644 services/smartview/docs/AssetDetailResponsePayLoad.md create mode 100644 services/smartview/docs/AssetDetailResponseStatus.md create mode 100644 services/smartview/docs/AssetDetailResponseStatusType.md create mode 100644 services/smartview/docs/AssetDetails.md create mode 100644 services/smartview/docs/AssetDetailsGetResponse.md create mode 100644 services/smartview/docs/AssetDetailsGetResponsePayLoad.md create mode 100644 services/smartview/docs/AssetDetailsRequest.md create mode 100644 services/smartview/docs/AssetDetailsResponse.md create mode 100644 services/smartview/docs/AssetDetailsResponsePayLoad.md create mode 100644 services/smartview/docs/AssetDetailsTagPointData.md create mode 100644 services/smartview/docs/Assets.md create mode 100644 services/smartview/docs/AssetsArray.md create mode 100644 services/smartview/docs/AssetsList.md create mode 100644 services/smartview/docs/AssetsListPayLoad.md create mode 100644 services/smartview/docs/AssetsListStatus.md create mode 100644 services/smartview/docs/AssetsPayLoad.md create mode 100644 services/smartview/docs/AssetsStatus.md create mode 100644 services/smartview/docs/AwsIotCoreChannelConfiguration.md create mode 100644 services/smartview/docs/AzureChannelConfiguration.md create mode 100644 services/smartview/docs/Cabinets.md create mode 100644 services/smartview/docs/CabinetsName.md create mode 100644 services/smartview/docs/Cages.md create mode 100644 services/smartview/docs/Category.md create mode 100644 services/smartview/docs/Channel.md create mode 100644 services/smartview/docs/ChannelChannelType.md create mode 100644 services/smartview/docs/Circuits.md create mode 100644 services/smartview/docs/CircuitsMapWithCage.md create mode 100644 services/smartview/docs/CircuitsMapWithCageName.md create mode 100644 services/smartview/docs/CircuitsName.md create mode 100644 services/smartview/docs/CircuitsType.md create mode 100644 services/smartview/docs/ComparisonData.md create mode 100644 services/smartview/docs/ComparisonDataDatapoint.md create mode 100644 services/smartview/docs/ComparisonDataTrend.md create mode 100644 services/smartview/docs/ConditionalAlert.md create mode 100644 services/smartview/docs/CurrentTagPointRequest.md create mode 100644 services/smartview/docs/CurrentTagPointResponse.md create mode 100644 services/smartview/docs/CustomAlert.md create mode 100644 services/smartview/docs/CustomerAssets.md create mode 100644 services/smartview/docs/DCIMPowerApi.md create mode 100644 services/smartview/docs/DataValue.md create mode 100644 services/smartview/docs/DefaultApi.md create mode 100644 services/smartview/docs/Environment.md create mode 100644 services/smartview/docs/EnvironmentAssetDetails.md create mode 100644 services/smartview/docs/EnvironmentData.md create mode 100644 services/smartview/docs/EnvironmentDataForArray.md create mode 100644 services/smartview/docs/EnvironmentDataPayLoad.md create mode 100644 services/smartview/docs/EnvironmentDataResponse.md create mode 100644 services/smartview/docs/EnvironmentDataResponsePayLoad.md create mode 100644 services/smartview/docs/EnvironmentDataResponseStatus.md create mode 100644 services/smartview/docs/EnvironmentDataStatus.md create mode 100644 services/smartview/docs/EnvironmentMessageData.md create mode 100644 services/smartview/docs/EnvironmentTagDetails.md create mode 100644 services/smartview/docs/EnvironmentValueWithUnit.md create mode 100644 services/smartview/docs/Environmental.md create mode 100644 services/smartview/docs/EnvironmentalLevelInner.md create mode 100644 services/smartview/docs/Error.md create mode 100644 services/smartview/docs/ErrorStatus.md create mode 100644 services/smartview/docs/ErrorStatusType.md create mode 100644 services/smartview/docs/GenericRequest.md create mode 100644 services/smartview/docs/GetAssetClassificationParameter.md create mode 100644 services/smartview/docs/GetSubscriptionDataMessageTypesParameterInner.md create mode 100644 services/smartview/docs/HierarchyNode.md create mode 100644 services/smartview/docs/HierarchyNodePayLoad.md create mode 100644 services/smartview/docs/MessageType.md create mode 100644 services/smartview/docs/MeteredPower.md create mode 100644 services/smartview/docs/MeteredPowerAssetDetails.md create mode 100644 services/smartview/docs/MeteredPowerMessageData.md create mode 100644 services/smartview/docs/MeteredPowerTagDetails.md create mode 100644 services/smartview/docs/MeteredPowerValueWithUnit.md create mode 100644 services/smartview/docs/Mixin1DataPointParameter.md create mode 100644 services/smartview/docs/Mixin1IntervalParameter.md create mode 100644 services/smartview/docs/Mixin1LevelTypeParameter.md create mode 100644 services/smartview/docs/Pagination.md create mode 100644 services/smartview/docs/Power.md create mode 100644 services/smartview/docs/PowerApparentPowerValueWithUnit.md create mode 100644 services/smartview/docs/PowerAssetDetails.md create mode 100644 services/smartview/docs/PowerCabinetRatingValueWithUnit.md create mode 100644 services/smartview/docs/PowerContractualPowerValueWithUnit.md create mode 100644 services/smartview/docs/PowerCurrentPostRequest.md create mode 100644 services/smartview/docs/PowerCurrentPostRequestLevelType.md create mode 100644 services/smartview/docs/PowerCurrentValueWithUnit.md create mode 100644 services/smartview/docs/PowerData.md create mode 100644 services/smartview/docs/PowerDataError.md create mode 100644 services/smartview/docs/PowerDataErrorStatus.md create mode 100644 services/smartview/docs/PowerDataIBX.md create mode 100644 services/smartview/docs/PowerDataPayLoad.md create mode 100644 services/smartview/docs/PowerDataPayLoadLevelType.md create mode 100644 services/smartview/docs/PowerDataResponseIBX.md create mode 100644 services/smartview/docs/PowerDataResponseIBXPayLoad.md create mode 100644 services/smartview/docs/PowerHierarchyNode.md create mode 100644 services/smartview/docs/PowerHierarchyNodeLevelType.md create mode 100644 services/smartview/docs/PowerMessage.md create mode 100644 services/smartview/docs/PowerMessageData.md create mode 100644 services/smartview/docs/PowerPeakLastSevenDaysContractualPowerValueWithUnit.md create mode 100644 services/smartview/docs/PowerPeakLastSevenDaysRatioValueWithUnit.md create mode 100644 services/smartview/docs/PowerPeakLastSevenDaysValueWithUnit.md create mode 100644 services/smartview/docs/PowerPowerConsumptionToContractualValueWithUnit.md create mode 100644 services/smartview/docs/PowerPowerFactorValueWithUnit.md create mode 100644 services/smartview/docs/PowerRealPowerValueWithUnit.md create mode 100644 services/smartview/docs/PowerSoldCurrentValueWithUnit.md create mode 100644 services/smartview/docs/PowerSoldPowerValueWithUnit.md create mode 100644 services/smartview/docs/PowerV1CurrentGetLevelTypeParameter.md create mode 100644 services/smartview/docs/RecipientsArray.md create mode 100644 services/smartview/docs/SensorReading.md create mode 100644 services/smartview/docs/SensorReadingsResponse.md create mode 100644 services/smartview/docs/SmartViewAssetsApi.md create mode 100644 services/smartview/docs/SmartViewEnvironmentApi.md create mode 100644 services/smartview/docs/SmartViewEnvironmentalApi.md create mode 100644 services/smartview/docs/SmartViewHierarchyAPIsApi.md create mode 100644 services/smartview/docs/Status.md create mode 100644 services/smartview/docs/StatusInfo.md create mode 100644 services/smartview/docs/SubscriptionData.md create mode 100644 services/smartview/docs/SubscriptionRequest.md create mode 100644 services/smartview/docs/SubscriptionResponse.md create mode 100644 services/smartview/docs/SubscriptionResponseStatus.md create mode 100644 services/smartview/docs/SystemAlert.md create mode 100644 services/smartview/docs/TagDetails.md create mode 100644 services/smartview/docs/TagPoint.md create mode 100644 services/smartview/docs/TagPointData.md create mode 100644 services/smartview/docs/TagPointDataArray.md create mode 100644 services/smartview/docs/TagPointDataArrayCurrent.md create mode 100644 services/smartview/docs/TagPointDataStatus.md create mode 100644 services/smartview/docs/TagPointMessageData.md create mode 100644 services/smartview/docs/TagPointTrendingData.md create mode 100644 services/smartview/docs/TagPointTrendingResponse.md create mode 100644 services/smartview/docs/TagPointTrendingResponsePayLoad.md create mode 100644 services/smartview/docs/TagPointTrendingResponsePayLoadInterval.md create mode 100644 services/smartview/docs/TagPointTrendingResponseStatus.md create mode 100644 services/smartview/docs/TagPointValueWithUnit.md create mode 100644 services/smartview/docs/Template.md create mode 100644 services/smartview/docs/TrendingEnvironmentData.md create mode 100644 services/smartview/docs/TrendingEnvironmentDataPayLoad.md create mode 100644 services/smartview/docs/TrendingPowerData.md create mode 100644 services/smartview/docs/TrendingPowerDataPayLoad.md create mode 100644 services/smartview/docs/TrendingPowerDataPayLoadInterval.md create mode 100644 services/smartview/docs/TrendingPowerDataPayLoadLevelType.md create mode 100644 services/smartview/docs/TrendingPowerDataStatus.md create mode 100644 services/smartview/docs/ValueWithUnit.md create mode 100644 services/smartview/docs/ValueWithUnitDoubleHumidityUnit.md create mode 100644 services/smartview/docs/ValueWithUnitDoubleHumidityUnitUnit.md create mode 100644 services/smartview/docs/ValueWithUnitDoubleTemperatureUnit.md create mode 100644 services/smartview/docs/ValueWithUnitDoubleTemperatureUnitUnit.md create mode 100644 services/smartview/docs/WebhookChannelConfiguration.md create mode 100644 services/smartview/go.mod create mode 100644 services/smartview/go.sum create mode 100644 services/smartview/model__power_v1_current_get_level_type_parameter.go create mode 100644 services/smartview/model_alarm.go create mode 100644 services/smartview/model_alarm_asset_details.go create mode 100644 services/smartview/model_alarm_current_value_details.go create mode 100644 services/smartview/model_alarm_message_data.go create mode 100644 services/smartview/model_alarm_status_details.go create mode 100644 services/smartview/model_alarm_tag_details.go create mode 100644 services/smartview/model_alarm_threshold_details.go create mode 100644 services/smartview/model_alert.go create mode 100644 services/smartview/model_alert_activity_log.go create mode 100644 services/smartview/model_alert_activity_log_obj.go create mode 100644 services/smartview/model_alert_asset_details.go create mode 100644 services/smartview/model_alert_dto1.go create mode 100644 services/smartview/model_alert_dto2.go create mode 100644 services/smartview/model_alert_message_data.go create mode 100644 services/smartview/model_alert_obj.go create mode 100644 services/smartview/model_alert_tag_details.go create mode 100644 services/smartview/model_alert_threshold_details.go create mode 100644 services/smartview/model_alert_type.go create mode 100644 services/smartview/model_alerts.go create mode 100644 services/smartview/model_api_error.go create mode 100644 services/smartview/model_api_error_additional_info.go create mode 100644 services/smartview/model_asset.go create mode 100644 services/smartview/model_asset_asset_classification_inner.go create mode 100644 services/smartview/model_asset_detail_response.go create mode 100644 services/smartview/model_asset_detail_response_pay_load.go create mode 100644 services/smartview/model_asset_detail_response_status.go create mode 100644 services/smartview/model_asset_detail_response_status_type.go create mode 100644 services/smartview/model_asset_details.go create mode 100644 services/smartview/model_asset_details_get_response.go create mode 100644 services/smartview/model_asset_details_get_response_pay_load.go create mode 100644 services/smartview/model_asset_details_request.go create mode 100644 services/smartview/model_asset_details_response.go create mode 100644 services/smartview/model_asset_details_response_pay_load.go create mode 100644 services/smartview/model_asset_details_tag_point_data.go create mode 100644 services/smartview/model_assets.go create mode 100644 services/smartview/model_assets_array.go create mode 100644 services/smartview/model_assets_list.go create mode 100644 services/smartview/model_assets_list_pay_load.go create mode 100644 services/smartview/model_assets_list_status.go create mode 100644 services/smartview/model_assets_pay_load.go create mode 100644 services/smartview/model_assets_status.go create mode 100644 services/smartview/model_aws_iot_core_channel_configuration.go create mode 100644 services/smartview/model_azure_channel_configuration.go create mode 100644 services/smartview/model_cabinets.go create mode 100644 services/smartview/model_cabinets_name.go create mode 100644 services/smartview/model_cages.go create mode 100644 services/smartview/model_category.go create mode 100644 services/smartview/model_channel.go create mode 100644 services/smartview/model_channel_channel_type.go create mode 100644 services/smartview/model_circuits.go create mode 100644 services/smartview/model_circuits_map_with_cage.go create mode 100644 services/smartview/model_circuits_map_with_cage_name.go create mode 100644 services/smartview/model_circuits_name.go create mode 100644 services/smartview/model_circuits_type.go create mode 100644 services/smartview/model_comparison_data.go create mode 100644 services/smartview/model_comparison_data_datapoint.go create mode 100644 services/smartview/model_comparison_data_trend.go create mode 100644 services/smartview/model_conditional_alert.go create mode 100644 services/smartview/model_current_tag_point_request.go create mode 100644 services/smartview/model_current_tag_point_response.go create mode 100644 services/smartview/model_custom_alert.go create mode 100644 services/smartview/model_customer_assets.go create mode 100644 services/smartview/model_data_value.go create mode 100644 services/smartview/model_environment.go create mode 100644 services/smartview/model_environment_asset_details.go create mode 100644 services/smartview/model_environment_data.go create mode 100644 services/smartview/model_environment_data_for_array.go create mode 100644 services/smartview/model_environment_data_pay_load.go create mode 100644 services/smartview/model_environment_data_response.go create mode 100644 services/smartview/model_environment_data_response_pay_load.go create mode 100644 services/smartview/model_environment_data_response_status.go create mode 100644 services/smartview/model_environment_data_status.go create mode 100644 services/smartview/model_environment_message_data.go create mode 100644 services/smartview/model_environment_tag_details.go create mode 100644 services/smartview/model_environment_value_with_unit.go create mode 100644 services/smartview/model_environmental.go create mode 100644 services/smartview/model_environmental_level_inner.go create mode 100644 services/smartview/model_error.go create mode 100644 services/smartview/model_error_status.go create mode 100644 services/smartview/model_error_status_type.go create mode 100644 services/smartview/model_generic_request.go create mode 100644 services/smartview/model_get_asset_classification_parameter.go create mode 100644 services/smartview/model_get_subscription_data_message_types_parameter_inner.go create mode 100644 services/smartview/model_hierarchy_node.go create mode 100644 services/smartview/model_hierarchy_node_pay_load.go create mode 100644 services/smartview/model_message_type.go create mode 100644 services/smartview/model_metered_power.go create mode 100644 services/smartview/model_metered_power_asset_details.go create mode 100644 services/smartview/model_metered_power_message_data.go create mode 100644 services/smartview/model_metered_power_tag_details.go create mode 100644 services/smartview/model_metered_power_value_with_unit.go create mode 100644 services/smartview/model_mixin1_data_point_parameter.go create mode 100644 services/smartview/model_mixin1_interval_parameter.go create mode 100644 services/smartview/model_mixin1_level_type_parameter.go create mode 100644 services/smartview/model_pagination.go create mode 100644 services/smartview/model_power.go create mode 100644 services/smartview/model_power_apparent_power_value_with_unit.go create mode 100644 services/smartview/model_power_asset_details.go create mode 100644 services/smartview/model_power_cabinet_rating_value_with_unit.go create mode 100644 services/smartview/model_power_contractual_power_value_with_unit.go create mode 100644 services/smartview/model_power_current_post_request.go create mode 100644 services/smartview/model_power_current_post_request_level_type.go create mode 100644 services/smartview/model_power_current_value_with_unit.go create mode 100644 services/smartview/model_power_data.go create mode 100644 services/smartview/model_power_data_error.go create mode 100644 services/smartview/model_power_data_error_status.go create mode 100644 services/smartview/model_power_data_ibx.go create mode 100644 services/smartview/model_power_data_pay_load.go create mode 100644 services/smartview/model_power_data_pay_load_level_type.go create mode 100644 services/smartview/model_power_data_response_ibx.go create mode 100644 services/smartview/model_power_data_response_ibx_pay_load.go create mode 100644 services/smartview/model_power_hierarchy_node.go create mode 100644 services/smartview/model_power_hierarchy_node_level_type.go create mode 100644 services/smartview/model_power_message.go create mode 100644 services/smartview/model_power_message_data.go create mode 100644 services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go create mode 100644 services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go create mode 100644 services/smartview/model_power_peak_last_seven_days_value_with_unit.go create mode 100644 services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go create mode 100644 services/smartview/model_power_power_factor_value_with_unit.go create mode 100644 services/smartview/model_power_real_power_value_with_unit.go create mode 100644 services/smartview/model_power_sold_current_value_with_unit.go create mode 100644 services/smartview/model_power_sold_power_value_with_unit.go create mode 100644 services/smartview/model_recipients_array.go create mode 100644 services/smartview/model_sensor_reading.go create mode 100644 services/smartview/model_sensor_readings_response.go create mode 100644 services/smartview/model_status.go create mode 100644 services/smartview/model_status_info.go create mode 100644 services/smartview/model_subscription_data.go create mode 100644 services/smartview/model_subscription_request.go create mode 100644 services/smartview/model_subscription_response.go create mode 100644 services/smartview/model_subscription_response_status.go create mode 100644 services/smartview/model_system_alert.go create mode 100644 services/smartview/model_tag_details.go create mode 100644 services/smartview/model_tag_point.go create mode 100644 services/smartview/model_tag_point_data.go create mode 100644 services/smartview/model_tag_point_data_array.go create mode 100644 services/smartview/model_tag_point_data_array_current.go create mode 100644 services/smartview/model_tag_point_data_status.go create mode 100644 services/smartview/model_tag_point_message_data.go create mode 100644 services/smartview/model_tag_point_trending_data.go create mode 100644 services/smartview/model_tag_point_trending_response.go create mode 100644 services/smartview/model_tag_point_trending_response_pay_load.go create mode 100644 services/smartview/model_tag_point_trending_response_pay_load_interval.go create mode 100644 services/smartview/model_tag_point_trending_response_status.go create mode 100644 services/smartview/model_tag_point_value_with_unit.go create mode 100644 services/smartview/model_template.go create mode 100644 services/smartview/model_trending_environment_data.go create mode 100644 services/smartview/model_trending_environment_data_pay_load.go create mode 100644 services/smartview/model_trending_power_data.go create mode 100644 services/smartview/model_trending_power_data_pay_load.go create mode 100644 services/smartview/model_trending_power_data_pay_load_interval.go create mode 100644 services/smartview/model_trending_power_data_pay_load_level_type.go create mode 100644 services/smartview/model_trending_power_data_status.go create mode 100644 services/smartview/model_value_with_unit.go create mode 100644 services/smartview/model_value_with_unit_double_humidity_unit.go create mode 100644 services/smartview/model_value_with_unit_double_humidity_unit_unit.go create mode 100644 services/smartview/model_value_with_unit_double_temperature_unit.go create mode 100644 services/smartview/model_value_with_unit_double_temperature_unit_unit.go create mode 100644 services/smartview/model_webhook_channel_configuration.go create mode 100644 services/smartview/response.go create mode 100644 services/smartview/test/api_alert_log_test.go create mode 100644 services/smartview/test/api_alerts_test.go create mode 100644 services/smartview/test/api_dcim_power_test.go create mode 100644 services/smartview/test/api_default_test.go create mode 100644 services/smartview/test/api_smart_view_assets_test.go create mode 100644 services/smartview/test/api_smart_view_environment_test.go create mode 100644 services/smartview/test/api_smart_view_environmental_test.go create mode 100644 services/smartview/test/api_smart_view_hierarchy_apis_test.go create mode 100644 services/smartview/utils.go diff --git a/services/smartview/.gitignore b/services/smartview/.gitignore new file mode 100644 index 00000000..daf913b1 --- /dev/null +++ b/services/smartview/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/services/smartview/.openapi-generator-ignore b/services/smartview/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/services/smartview/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/services/smartview/README.md b/services/smartview/README.md new file mode 100644 index 00000000..62efa348 --- /dev/null +++ b/services/smartview/README.md @@ -0,0 +1,299 @@ +# Go API client for smartview + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 2.0 +- Package version: 0.47.0 +- Generator version: 7.4.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen +For more information, please visit [https://docs.equinix.com/api-support.htm](https://docs.equinix.com/api-support.htm) + +## Installation + +Install the following dependencies: + +```sh +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```go +import smartview "github.com/equinix/equinix-sdk-go/services/smartview" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `smartview.ContextServerIndex` of type `int`. + +```go +ctx := context.WithValue(context.Background(), smartview.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `smartview.ContextServerVariables` of type `map[string]string`. + +```go +ctx := context.WithValue(context.Background(), smartview.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `smartview.ContextOperationServerIndices` and `smartview.ContextOperationServerVariables` context maps. + +```go +ctx := context.WithValue(context.Background(), smartview.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), smartview.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.equinix.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AlertLogApi* | [**GetAlertActivityLog**](docs/AlertLogApi.md#getalertactivitylog) | **Get** /smartview/v1/alerts/getAlertActivityLog | get alert activity logs +*AlertsApi* | [**GetAlerts**](docs/AlertsApi.md#getalerts) | **Get** /smartview/v1/alerts/getAlerts | obtain active SmartView alerts. +*DCIMPowerApi* | [**Mixin0**](docs/DCIMPowerApi.md#mixin0) | **Post** /power/v1/current | Fetch current power consumption data +*DCIMPowerApi* | [**Mixin0_0**](docs/DCIMPowerApi.md#mixin0_0) | **Get** /power/v1/trending | Fetch Trending Power Data. +*DCIMPowerApi* | [**PowerV1CurrentGet**](docs/DCIMPowerApi.md#powerv1currentget) | **Get** /power/v1/current | Fetch current power consumption data +*DefaultApi* | [**CreateSubscription**](docs/DefaultApi.md#createsubscription) | **Post** /smartview/v2/streaming/subscriptions | Create subscription endpoint +*DefaultApi* | [**DeleteSubscriptionById**](docs/DefaultApi.md#deletesubscriptionbyid) | **Delete** /smartview/v2/streaming/subscriptions/{id} | Delete subscription endpoint +*DefaultApi* | [**GetAllSubscriptions**](docs/DefaultApi.md#getallsubscriptions) | **Get** /smartview/v2/streaming/subscriptions | Get all subscription endpoint +*DefaultApi* | [**GetSubscriptionById**](docs/DefaultApi.md#getsubscriptionbyid) | **Get** /smartview/v2/streaming/subscriptions/{id} | Get subscription endpoint +*DefaultApi* | [**GetSubscriptionData**](docs/DefaultApi.md#getsubscriptiondata) | **Get** /smartview/v2/streaming/subscriptionData/{subscriptionId} | Get subscription data via REST +*DefaultApi* | [**UpdateSubscription**](docs/DefaultApi.md#updatesubscription) | **Put** /smartview/v2/streaming/subscriptions/{id} | Update subscription endpoint +*SmartViewAssetsApi* | [**GetAffectedAsset**](docs/SmartViewAssetsApi.md#getaffectedasset) | **Get** /smartview/v1/asset/tagpoint/affected-assets | get affected customers assets hierarchy +*SmartViewAssetsApi* | [**GetAsset**](docs/SmartViewAssetsApi.md#getasset) | **Get** /smartview/v1/asset/list | get assets list information +*SmartViewAssetsApi* | [**GetAssetDetails**](docs/SmartViewAssetsApi.md#getassetdetails) | **Get** /smartview/v1/asset/details | get details for an asset. +*SmartViewAssetsApi* | [**GetCurrentTagPoint**](docs/SmartViewAssetsApi.md#getcurrenttagpoint) | **Get** /smartview/v1/asset/tagpoint/current | obtain latest tag point data +*SmartViewAssetsApi* | [**GetTagpointTrending**](docs/SmartViewAssetsApi.md#gettagpointtrending) | **Get** /smartview/v1/asset/tagpoint/trending | obtain trending tag point data +*SmartViewAssetsApi* | [**Mixin4**](docs/SmartViewAssetsApi.md#mixin4) | **Post** /smartview/v1/asset/details | get asset details +*SmartViewAssetsApi* | [**Mixin4_0**](docs/SmartViewAssetsApi.md#mixin4_0) | **Post** /smartview/v1/asset/tagpoint/current | get current tag points data +*SmartViewAssetsApi* | [**SearchAsset**](docs/SmartViewAssetsApi.md#searchasset) | **Get** /smartview/v1/asset/search | Search for Assets matching identifiers +*SmartViewEnvironmentApi* | [**Mixin1**](docs/SmartViewEnvironmentApi.md#mixin1) | **Get** /environment/v1/current | Get current environmental data +*SmartViewEnvironmentApi* | [**Mixin1_0**](docs/SmartViewEnvironmentApi.md#mixin1_0) | **Get** /environment/v1/listCurrent | Fetch list of environmental data +*SmartViewEnvironmentApi* | [**Mixin1_1**](docs/SmartViewEnvironmentApi.md#mixin1_1) | **Get** /environment/v1/trending | Fetch trending environmental data +*SmartViewEnvironmentalApi* | [**GetSensorReadings**](docs/SmartViewEnvironmentalApi.md#getsensorreadings) | **Get** /smartview/v2/environmental/ibxs/{ibx}/sensors/readings | IBX sensors current readings +*SmartViewEnvironmentalApi* | [**GetSingleSensorReadings**](docs/SmartViewEnvironmentalApi.md#getsinglesensorreadings) | **Get** /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings | Single sensor current value(s) +*SmartViewHierarchyAPIsApi* | [**GetLocationHierarchy**](docs/SmartViewHierarchyAPIsApi.md#getlocationhierarchy) | **Get** /smartview/v1/hierarchy/location | Fetch the Location Hierarchy +*SmartViewHierarchyAPIsApi* | [**GetPowerHierarchy**](docs/SmartViewHierarchyAPIsApi.md#getpowerhierarchy) | **Get** /smartview/v1/hierarchy/power | Fetch the Power Hierarchy + + +## Documentation For Models + + - [Alarm](docs/Alarm.md) + - [AlarmAssetDetails](docs/AlarmAssetDetails.md) + - [AlarmCurrentValueDetails](docs/AlarmCurrentValueDetails.md) + - [AlarmMessageData](docs/AlarmMessageData.md) + - [AlarmStatusDetails](docs/AlarmStatusDetails.md) + - [AlarmTagDetails](docs/AlarmTagDetails.md) + - [AlarmThresholdDetails](docs/AlarmThresholdDetails.md) + - [Alert](docs/Alert.md) + - [AlertActivityLog](docs/AlertActivityLog.md) + - [AlertActivityLogObj](docs/AlertActivityLogObj.md) + - [AlertAssetDetails](docs/AlertAssetDetails.md) + - [AlertDto1](docs/AlertDto1.md) + - [AlertDto2](docs/AlertDto2.md) + - [AlertMessageData](docs/AlertMessageData.md) + - [AlertObj](docs/AlertObj.md) + - [AlertTagDetails](docs/AlertTagDetails.md) + - [AlertThresholdDetails](docs/AlertThresholdDetails.md) + - [AlertType](docs/AlertType.md) + - [Alerts](docs/Alerts.md) + - [ApiError](docs/ApiError.md) + - [ApiErrorAdditionalInfo](docs/ApiErrorAdditionalInfo.md) + - [Asset](docs/Asset.md) + - [AssetAssetClassificationInner](docs/AssetAssetClassificationInner.md) + - [AssetDetailResponse](docs/AssetDetailResponse.md) + - [AssetDetailResponsePayLoad](docs/AssetDetailResponsePayLoad.md) + - [AssetDetailResponseStatus](docs/AssetDetailResponseStatus.md) + - [AssetDetailResponseStatusType](docs/AssetDetailResponseStatusType.md) + - [AssetDetails](docs/AssetDetails.md) + - [AssetDetailsGetResponse](docs/AssetDetailsGetResponse.md) + - [AssetDetailsGetResponsePayLoad](docs/AssetDetailsGetResponsePayLoad.md) + - [AssetDetailsRequest](docs/AssetDetailsRequest.md) + - [AssetDetailsResponse](docs/AssetDetailsResponse.md) + - [AssetDetailsResponsePayLoad](docs/AssetDetailsResponsePayLoad.md) + - [AssetDetailsTagPointData](docs/AssetDetailsTagPointData.md) + - [Assets](docs/Assets.md) + - [AssetsArray](docs/AssetsArray.md) + - [AssetsList](docs/AssetsList.md) + - [AssetsListPayLoad](docs/AssetsListPayLoad.md) + - [AssetsListStatus](docs/AssetsListStatus.md) + - [AssetsPayLoad](docs/AssetsPayLoad.md) + - [AssetsStatus](docs/AssetsStatus.md) + - [AwsIotCoreChannelConfiguration](docs/AwsIotCoreChannelConfiguration.md) + - [AzureChannelConfiguration](docs/AzureChannelConfiguration.md) + - [Cabinets](docs/Cabinets.md) + - [CabinetsName](docs/CabinetsName.md) + - [Cages](docs/Cages.md) + - [Category](docs/Category.md) + - [Channel](docs/Channel.md) + - [ChannelChannelType](docs/ChannelChannelType.md) + - [Circuits](docs/Circuits.md) + - [CircuitsMapWithCage](docs/CircuitsMapWithCage.md) + - [CircuitsMapWithCageName](docs/CircuitsMapWithCageName.md) + - [CircuitsName](docs/CircuitsName.md) + - [CircuitsType](docs/CircuitsType.md) + - [ComparisonData](docs/ComparisonData.md) + - [ComparisonDataDatapoint](docs/ComparisonDataDatapoint.md) + - [ComparisonDataTrend](docs/ComparisonDataTrend.md) + - [ConditionalAlert](docs/ConditionalAlert.md) + - [CurrentTagPointRequest](docs/CurrentTagPointRequest.md) + - [CurrentTagPointResponse](docs/CurrentTagPointResponse.md) + - [CustomAlert](docs/CustomAlert.md) + - [CustomerAssets](docs/CustomerAssets.md) + - [DataValue](docs/DataValue.md) + - [Environment](docs/Environment.md) + - [EnvironmentAssetDetails](docs/EnvironmentAssetDetails.md) + - [EnvironmentData](docs/EnvironmentData.md) + - [EnvironmentDataForArray](docs/EnvironmentDataForArray.md) + - [EnvironmentDataPayLoad](docs/EnvironmentDataPayLoad.md) + - [EnvironmentDataResponse](docs/EnvironmentDataResponse.md) + - [EnvironmentDataResponsePayLoad](docs/EnvironmentDataResponsePayLoad.md) + - [EnvironmentDataResponseStatus](docs/EnvironmentDataResponseStatus.md) + - [EnvironmentDataStatus](docs/EnvironmentDataStatus.md) + - [EnvironmentMessageData](docs/EnvironmentMessageData.md) + - [EnvironmentTagDetails](docs/EnvironmentTagDetails.md) + - [EnvironmentValueWithUnit](docs/EnvironmentValueWithUnit.md) + - [Environmental](docs/Environmental.md) + - [EnvironmentalLevelInner](docs/EnvironmentalLevelInner.md) + - [Error](docs/Error.md) + - [ErrorStatus](docs/ErrorStatus.md) + - [ErrorStatusType](docs/ErrorStatusType.md) + - [GenericRequest](docs/GenericRequest.md) + - [GetAssetClassificationParameter](docs/GetAssetClassificationParameter.md) + - [GetSubscriptionDataMessageTypesParameterInner](docs/GetSubscriptionDataMessageTypesParameterInner.md) + - [HierarchyNode](docs/HierarchyNode.md) + - [HierarchyNodePayLoad](docs/HierarchyNodePayLoad.md) + - [MessageType](docs/MessageType.md) + - [MeteredPower](docs/MeteredPower.md) + - [MeteredPowerAssetDetails](docs/MeteredPowerAssetDetails.md) + - [MeteredPowerMessageData](docs/MeteredPowerMessageData.md) + - [MeteredPowerTagDetails](docs/MeteredPowerTagDetails.md) + - [MeteredPowerValueWithUnit](docs/MeteredPowerValueWithUnit.md) + - [Mixin1DataPointParameter](docs/Mixin1DataPointParameter.md) + - [Mixin1IntervalParameter](docs/Mixin1IntervalParameter.md) + - [Mixin1LevelTypeParameter](docs/Mixin1LevelTypeParameter.md) + - [Pagination](docs/Pagination.md) + - [Power](docs/Power.md) + - [PowerApparentPowerValueWithUnit](docs/PowerApparentPowerValueWithUnit.md) + - [PowerAssetDetails](docs/PowerAssetDetails.md) + - [PowerCabinetRatingValueWithUnit](docs/PowerCabinetRatingValueWithUnit.md) + - [PowerContractualPowerValueWithUnit](docs/PowerContractualPowerValueWithUnit.md) + - [PowerCurrentPostRequest](docs/PowerCurrentPostRequest.md) + - [PowerCurrentPostRequestLevelType](docs/PowerCurrentPostRequestLevelType.md) + - [PowerCurrentValueWithUnit](docs/PowerCurrentValueWithUnit.md) + - [PowerData](docs/PowerData.md) + - [PowerDataError](docs/PowerDataError.md) + - [PowerDataErrorStatus](docs/PowerDataErrorStatus.md) + - [PowerDataIBX](docs/PowerDataIBX.md) + - [PowerDataPayLoad](docs/PowerDataPayLoad.md) + - [PowerDataPayLoadLevelType](docs/PowerDataPayLoadLevelType.md) + - [PowerDataResponseIBX](docs/PowerDataResponseIBX.md) + - [PowerDataResponseIBXPayLoad](docs/PowerDataResponseIBXPayLoad.md) + - [PowerHierarchyNode](docs/PowerHierarchyNode.md) + - [PowerHierarchyNodeLevelType](docs/PowerHierarchyNodeLevelType.md) + - [PowerMessage](docs/PowerMessage.md) + - [PowerMessageData](docs/PowerMessageData.md) + - [PowerPeakLastSevenDaysContractualPowerValueWithUnit](docs/PowerPeakLastSevenDaysContractualPowerValueWithUnit.md) + - [PowerPeakLastSevenDaysRatioValueWithUnit](docs/PowerPeakLastSevenDaysRatioValueWithUnit.md) + - [PowerPeakLastSevenDaysValueWithUnit](docs/PowerPeakLastSevenDaysValueWithUnit.md) + - [PowerPowerConsumptionToContractualValueWithUnit](docs/PowerPowerConsumptionToContractualValueWithUnit.md) + - [PowerPowerFactorValueWithUnit](docs/PowerPowerFactorValueWithUnit.md) + - [PowerRealPowerValueWithUnit](docs/PowerRealPowerValueWithUnit.md) + - [PowerSoldCurrentValueWithUnit](docs/PowerSoldCurrentValueWithUnit.md) + - [PowerSoldPowerValueWithUnit](docs/PowerSoldPowerValueWithUnit.md) + - [PowerV1CurrentGetLevelTypeParameter](docs/PowerV1CurrentGetLevelTypeParameter.md) + - [RecipientsArray](docs/RecipientsArray.md) + - [SensorReading](docs/SensorReading.md) + - [SensorReadingsResponse](docs/SensorReadingsResponse.md) + - [Status](docs/Status.md) + - [StatusInfo](docs/StatusInfo.md) + - [SubscriptionData](docs/SubscriptionData.md) + - [SubscriptionRequest](docs/SubscriptionRequest.md) + - [SubscriptionResponse](docs/SubscriptionResponse.md) + - [SubscriptionResponseStatus](docs/SubscriptionResponseStatus.md) + - [SystemAlert](docs/SystemAlert.md) + - [TagDetails](docs/TagDetails.md) + - [TagPoint](docs/TagPoint.md) + - [TagPointData](docs/TagPointData.md) + - [TagPointDataArray](docs/TagPointDataArray.md) + - [TagPointDataArrayCurrent](docs/TagPointDataArrayCurrent.md) + - [TagPointDataStatus](docs/TagPointDataStatus.md) + - [TagPointMessageData](docs/TagPointMessageData.md) + - [TagPointTrendingData](docs/TagPointTrendingData.md) + - [TagPointTrendingResponse](docs/TagPointTrendingResponse.md) + - [TagPointTrendingResponsePayLoad](docs/TagPointTrendingResponsePayLoad.md) + - [TagPointTrendingResponsePayLoadInterval](docs/TagPointTrendingResponsePayLoadInterval.md) + - [TagPointTrendingResponseStatus](docs/TagPointTrendingResponseStatus.md) + - [TagPointValueWithUnit](docs/TagPointValueWithUnit.md) + - [Template](docs/Template.md) + - [TrendingEnvironmentData](docs/TrendingEnvironmentData.md) + - [TrendingEnvironmentDataPayLoad](docs/TrendingEnvironmentDataPayLoad.md) + - [TrendingPowerData](docs/TrendingPowerData.md) + - [TrendingPowerDataPayLoad](docs/TrendingPowerDataPayLoad.md) + - [TrendingPowerDataPayLoadInterval](docs/TrendingPowerDataPayLoadInterval.md) + - [TrendingPowerDataPayLoadLevelType](docs/TrendingPowerDataPayLoadLevelType.md) + - [TrendingPowerDataStatus](docs/TrendingPowerDataStatus.md) + - [ValueWithUnit](docs/ValueWithUnit.md) + - [ValueWithUnitDoubleHumidityUnit](docs/ValueWithUnitDoubleHumidityUnit.md) + - [ValueWithUnitDoubleHumidityUnitUnit](docs/ValueWithUnitDoubleHumidityUnitUnit.md) + - [ValueWithUnitDoubleTemperatureUnit](docs/ValueWithUnitDoubleTemperatureUnit.md) + - [ValueWithUnitDoubleTemperatureUnitUnit](docs/ValueWithUnitDoubleTemperatureUnitUnit.md) + - [WebhookChannelConfiguration](docs/WebhookChannelConfiguration.md) + + +## Documentation For Authorization + +Endpoints do not require authorization. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/services/smartview/api_alert_log.go b/services/smartview/api_alert_log.go new file mode 100644 index 00000000..f0eba112 --- /dev/null +++ b/services/smartview/api_alert_log.go @@ -0,0 +1,234 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// AlertLogApiService AlertLogApi service +type AlertLogApiService service + +type ApiGetAlertActivityLogRequest struct { + ctx context.Context + ApiService *AlertLogApiService + authorization *string + pageNum *string + limit *string + ibx *string + category *string + eventType *string + isAcknowledged *string + accountNo *string + orderBy *string + sortBy *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetAlertActivityLogRequest) Authorization(authorization string) ApiGetAlertActivityLogRequest { + r.authorization = &authorization + return r +} + +// Page Number +func (r ApiGetAlertActivityLogRequest) PageNum(pageNum string) ApiGetAlertActivityLogRequest { + r.pageNum = &pageNum + return r +} + +// Limit +func (r ApiGetAlertActivityLogRequest) Limit(limit string) ApiGetAlertActivityLogRequest { + r.limit = &limit + return r +} + +// IBX +func (r ApiGetAlertActivityLogRequest) Ibx(ibx string) ApiGetAlertActivityLogRequest { + r.ibx = &ibx + return r +} + +// Category +func (r ApiGetAlertActivityLogRequest) Category(category string) ApiGetAlertActivityLogRequest { + r.category = &category + return r +} + +// Event Type +func (r ApiGetAlertActivityLogRequest) EventType(eventType string) ApiGetAlertActivityLogRequest { + r.eventType = &eventType + return r +} + +// Is Acknowledged +func (r ApiGetAlertActivityLogRequest) IsAcknowledged(isAcknowledged string) ApiGetAlertActivityLogRequest { + r.isAcknowledged = &isAcknowledged + return r +} + +// Account Number +func (r ApiGetAlertActivityLogRequest) AccountNo(accountNo string) ApiGetAlertActivityLogRequest { + r.accountNo = &accountNo + return r +} + +// order by ascending or descending +func (r ApiGetAlertActivityLogRequest) OrderBy(orderBy string) ApiGetAlertActivityLogRequest { + r.orderBy = &orderBy + return r +} + +// sortBy value +func (r ApiGetAlertActivityLogRequest) SortBy(sortBy string) ApiGetAlertActivityLogRequest { + r.sortBy = &sortBy + return r +} + +func (r ApiGetAlertActivityLogRequest) Execute() (*AlertActivityLog, *http.Response, error) { + return r.ApiService.GetAlertActivityLogExecute(r) +} + +/* +GetAlertActivityLog get alert activity logs + +This endpoint returns alert log for inputs (ibx,category,event type,account number,page number,limit, order by, sort by,acknowledged). + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertActivityLogRequest +*/ +func (a *AlertLogApiService) GetAlertActivityLog(ctx context.Context) ApiGetAlertActivityLogRequest { + return ApiGetAlertActivityLogRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AlertActivityLog +func (a *AlertLogApiService) GetAlertActivityLogExecute(r ApiGetAlertActivityLogRequest) (*AlertActivityLog, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AlertActivityLog + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AlertLogApiService.GetAlertActivityLog") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/alerts/getAlertActivityLog" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.pageNum == nil { + return localVarReturnValue, nil, reportError("pageNum is required and must be specified") + } + if r.limit == nil { + return localVarReturnValue, nil, reportError("limit is required and must be specified") + } + + if r.ibx != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + } + if r.category != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "category", r.category, "") + } + if r.eventType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "eventType", r.eventType, "") + } + if r.isAcknowledged != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "isAcknowledged", r.isAcknowledged, "") + } + if r.accountNo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "pageNum", r.pageNum, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy", r.orderBy, "") + } + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sortBy", r.sortBy, "") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v PowerDataError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/api_alerts.go b/services/smartview/api_alerts.go new file mode 100644 index 00000000..7622f170 --- /dev/null +++ b/services/smartview/api_alerts.go @@ -0,0 +1,224 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// AlertsApiService AlertsApi service +type AlertsApiService service + +type ApiGetAlertsRequest struct { + ctx context.Context + ApiService *AlertsApiService + authorization *string + pageNum *string + limit *string + ibx *string + category *string + eventType *string + accountNo *string + orderBy *string + sortBy *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetAlertsRequest) Authorization(authorization string) ApiGetAlertsRequest { + r.authorization = &authorization + return r +} + +// Page Number +func (r ApiGetAlertsRequest) PageNum(pageNum string) ApiGetAlertsRequest { + r.pageNum = &pageNum + return r +} + +// Limit +func (r ApiGetAlertsRequest) Limit(limit string) ApiGetAlertsRequest { + r.limit = &limit + return r +} + +// IBX +func (r ApiGetAlertsRequest) Ibx(ibx string) ApiGetAlertsRequest { + r.ibx = &ibx + return r +} + +// Category +func (r ApiGetAlertsRequest) Category(category string) ApiGetAlertsRequest { + r.category = &category + return r +} + +// Event Type. +func (r ApiGetAlertsRequest) EventType(eventType string) ApiGetAlertsRequest { + r.eventType = &eventType + return r +} + +// Account Number +func (r ApiGetAlertsRequest) AccountNo(accountNo string) ApiGetAlertsRequest { + r.accountNo = &accountNo + return r +} + +// order by ascending or descending +func (r ApiGetAlertsRequest) OrderBy(orderBy string) ApiGetAlertsRequest { + r.orderBy = &orderBy + return r +} + +// sortBy value +func (r ApiGetAlertsRequest) SortBy(sortBy string) ApiGetAlertsRequest { + r.sortBy = &sortBy + return r +} + +func (r ApiGetAlertsRequest) Execute() (*Alerts, *http.Response, error) { + return r.ApiService.GetAlertsExecute(r) +} + +/* +GetAlerts obtain active SmartView alerts. + +The get alert endpoint returns alert info for inputs (ibx,category,event type,account number,page number,limit, order by, sort by). + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAlertsRequest +*/ +func (a *AlertsApiService) GetAlerts(ctx context.Context) ApiGetAlertsRequest { + return ApiGetAlertsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Alerts +func (a *AlertsApiService) GetAlertsExecute(r ApiGetAlertsRequest) (*Alerts, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Alerts + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AlertsApiService.GetAlerts") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/alerts/getAlerts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.pageNum == nil { + return localVarReturnValue, nil, reportError("pageNum is required and must be specified") + } + if r.limit == nil { + return localVarReturnValue, nil, reportError("limit is required and must be specified") + } + + if r.ibx != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + } + if r.category != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "category", r.category, "") + } + if r.eventType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "eventType", r.eventType, "") + } + if r.accountNo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "pageNum", r.pageNum, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.orderBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "orderBy", r.orderBy, "") + } + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sortBy", r.sortBy, "") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v PowerDataError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/api_dcim_power.go b/services/smartview/api_dcim_power.go new file mode 100644 index 00000000..37834222 --- /dev/null +++ b/services/smartview/api_dcim_power.go @@ -0,0 +1,510 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DCIMPowerApiService DCIMPowerApi service +type DCIMPowerApiService service + +type ApiMixin0Request struct { + ctx context.Context + ApiService *DCIMPowerApiService + authorization *string + body *PowerCurrentPostRequest +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiMixin0Request) Authorization(authorization string) ApiMixin0Request { + r.authorization = &authorization + return r +} + +// request payload +func (r ApiMixin0Request) Body(body PowerCurrentPostRequest) ApiMixin0Request { + r.body = &body + return r +} + +func (r ApiMixin0Request) Execute() (*PowerDataResponseIBX, *http.Response, error) { + return r.ApiService.Mixin0Execute(r) +} + +/* +Mixin0 Fetch current power consumption data + +The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin0Request +*/ +func (a *DCIMPowerApiService) Mixin0(ctx context.Context) ApiMixin0Request { + return ApiMixin0Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PowerDataResponseIBX +func (a *DCIMPowerApiService) Mixin0Execute(r ApiMixin0Request) (*PowerDataResponseIBX, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerDataResponseIBX + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.Mixin0") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/power/v1/current" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.body + 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, + } + var v PowerDataError + 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 ApiMixin0_0Request struct { + ctx context.Context + ApiService *DCIMPowerApiService + authorization *string + accountNo *string + ibx *float32 + levelType *PowerV1CurrentGetLevelTypeParameter + levelValue *string + interval *string + fromDate *string + toDate *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiMixin0_0Request) Authorization(authorization string) ApiMixin0_0Request { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiMixin0_0Request) AccountNo(accountNo string) ApiMixin0_0Request { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiMixin0_0Request) Ibx(ibx float32) ApiMixin0_0Request { + r.ibx = &ibx + return r +} + +// [ibx|cage|cabinet|circuit] +func (r ApiMixin0_0Request) LevelType(levelType PowerV1CurrentGetLevelTypeParameter) ApiMixin0_0Request { + r.levelType = &levelType + return r +} + +// ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. +func (r ApiMixin0_0Request) LevelValue(levelValue string) ApiMixin0_0Request { + r.levelValue = &levelValue + return r +} + +// [recording|1h|1d] +func (r ApiMixin0_0Request) Interval(interval string) ApiMixin0_0Request { + r.interval = &interval + return r +} + +// timestamp expected to be epoch long ( milliseconds ). +func (r ApiMixin0_0Request) FromDate(fromDate string) ApiMixin0_0Request { + r.fromDate = &fromDate + return r +} + +// timestamp expected to be epoch long ( milliseconds ). +func (r ApiMixin0_0Request) ToDate(toDate string) ApiMixin0_0Request { + r.toDate = &toDate + return r +} + +func (r ApiMixin0_0Request) Execute() (*TrendingPowerData, *http.Response, error) { + return r.ApiService.Mixin0_1Execute(r) +} + +/* +Mixin0_0 Fetch Trending Power Data. + +The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin0_0Request +*/ +func (a *DCIMPowerApiService) Mixin0_1(ctx context.Context) ApiMixin0_0Request { + return ApiMixin0_0Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TrendingPowerData +func (a *DCIMPowerApiService) Mixin0_1Execute(r ApiMixin0_0Request) (*TrendingPowerData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TrendingPowerData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.Mixin0_1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/power/v1/trending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.levelType == nil { + return localVarReturnValue, nil, reportError("levelType is required and must be specified") + } + if r.levelValue == nil { + return localVarReturnValue, nil, reportError("levelValue is required and must be specified") + } + if r.interval == nil { + return localVarReturnValue, nil, reportError("interval is required and must be specified") + } + if r.fromDate == nil { + return localVarReturnValue, nil, reportError("fromDate is required and must be specified") + } + if r.toDate == nil { + return localVarReturnValue, nil, reportError("toDate is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "fromDate", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "toDate", r.toDate, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v PowerDataError + 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 ApiPowerV1CurrentGetRequest struct { + ctx context.Context + ApiService *DCIMPowerApiService + authorization *string + accountNo *string + ibx *string + levelType *PowerV1CurrentGetLevelTypeParameter + levelValue *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiPowerV1CurrentGetRequest) Authorization(authorization string) ApiPowerV1CurrentGetRequest { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiPowerV1CurrentGetRequest) AccountNo(accountNo string) ApiPowerV1CurrentGetRequest { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiPowerV1CurrentGetRequest) Ibx(ibx string) ApiPowerV1CurrentGetRequest { + r.ibx = &ibx + return r +} + +// level type allowed value [ibx|cage|cabinet|circuit] +func (r ApiPowerV1CurrentGetRequest) LevelType(levelType PowerV1CurrentGetLevelTypeParameter) ApiPowerV1CurrentGetRequest { + r.levelType = &levelType + return r +} + +// level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. +func (r ApiPowerV1CurrentGetRequest) LevelValue(levelValue string) ApiPowerV1CurrentGetRequest { + r.levelValue = &levelValue + return r +} + +func (r ApiPowerV1CurrentGetRequest) Execute() (*PowerData, *http.Response, error) { + return r.ApiService.PowerV1CurrentGetExecute(r) +} + +/* +PowerV1CurrentGet Fetch current power consumption data + +The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPowerV1CurrentGetRequest +*/ +func (a *DCIMPowerApiService) PowerV1CurrentGet(ctx context.Context) ApiPowerV1CurrentGetRequest { + return ApiPowerV1CurrentGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PowerData +func (a *DCIMPowerApiService) PowerV1CurrentGetExecute(r ApiPowerV1CurrentGetRequest) (*PowerData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.PowerV1CurrentGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/power/v1/current" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.levelType == nil { + return localVarReturnValue, nil, reportError("levelType is required and must be specified") + } + if r.levelValue == nil { + return localVarReturnValue, nil, reportError("levelValue is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v PowerDataError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/api_default.go b/services/smartview/api_default.go new file mode 100644 index 00000000..679a6173 --- /dev/null +++ b/services/smartview/api_default.go @@ -0,0 +1,755 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// DefaultApiService DefaultApi service +type DefaultApiService service + +type ApiCreateSubscriptionRequest struct { + ctx context.Context + ApiService *DefaultApiService + authorization *string + body *SubscriptionRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiCreateSubscriptionRequest) Authorization(authorization string) ApiCreateSubscriptionRequest { + r.authorization = &authorization + return r +} + +func (r ApiCreateSubscriptionRequest) Body(body SubscriptionRequest) ApiCreateSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiCreateSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.CreateSubscriptionExecute(r) +} + +/* +CreateSubscription Create subscription endpoint + +The endpoint allows users to define and create a new streaming subscription for a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateSubscriptionRequest +*/ +func (a *DefaultApiService) CreateSubscription(ctx context.Context) ApiCreateSubscriptionRequest { + return ApiCreateSubscriptionRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) CreateSubscriptionExecute(r ApiCreateSubscriptionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateSubscription") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/streaming/subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteSubscriptionByIdRequest struct { + ctx context.Context + ApiService *DefaultApiService + id string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiDeleteSubscriptionByIdRequest) Authorization(authorization string) ApiDeleteSubscriptionByIdRequest { + r.authorization = &authorization + return r +} + +func (r ApiDeleteSubscriptionByIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteSubscriptionByIdExecute(r) +} + +/* +DeleteSubscriptionById Delete subscription endpoint + +The endpoint allows users to delete and remove an existing streaming subscription for a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiDeleteSubscriptionByIdRequest +*/ +func (a *DefaultApiService) DeleteSubscriptionById(ctx context.Context, id string) ApiDeleteSubscriptionByIdRequest { + return ApiDeleteSubscriptionByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DefaultApiService) DeleteSubscriptionByIdExecute(r ApiDeleteSubscriptionByIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteSubscriptionById") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/streaming/subscriptions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // 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{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetAllSubscriptionsRequest struct { + ctx context.Context + ApiService *DefaultApiService + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetAllSubscriptionsRequest) Authorization(authorization string) ApiGetAllSubscriptionsRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetAllSubscriptionsRequest) Execute() ([]SubscriptionResponse, *http.Response, error) { + return r.ApiService.GetAllSubscriptionsExecute(r) +} + +/* +GetAllSubscriptions Get all subscription endpoint + +The endpoint allows users to fetch details for all streaming subscriptions for a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAllSubscriptionsRequest +*/ +func (a *DefaultApiService) GetAllSubscriptions(ctx context.Context) ApiGetAllSubscriptionsRequest { + return ApiGetAllSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []SubscriptionResponse +func (a *DefaultApiService) GetAllSubscriptionsExecute(r ApiGetAllSubscriptionsRequest) ([]SubscriptionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SubscriptionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetAllSubscriptions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/streaming/subscriptions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + 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 ApiGetSubscriptionByIdRequest struct { + ctx context.Context + ApiService *DefaultApiService + id string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetSubscriptionByIdRequest) Authorization(authorization string) ApiGetSubscriptionByIdRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetSubscriptionByIdRequest) Execute() (*SubscriptionResponse, *http.Response, error) { + return r.ApiService.GetSubscriptionByIdExecute(r) +} + +/* +GetSubscriptionById Get subscription endpoint + +The endpoint allows users to fetch details for a given streaming subscription for a given organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiGetSubscriptionByIdRequest +*/ +func (a *DefaultApiService) GetSubscriptionById(ctx context.Context, id string) ApiGetSubscriptionByIdRequest { + return ApiGetSubscriptionByIdRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return SubscriptionResponse +func (a *DefaultApiService) GetSubscriptionByIdExecute(r ApiGetSubscriptionByIdRequest) (*SubscriptionResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SubscriptionResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSubscriptionById") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/streaming/subscriptions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + 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 ApiGetSubscriptionDataRequest struct { + ctx context.Context + ApiService *DefaultApiService + subscriptionId string + authorization *string + ibxs *[]string + messageTypes *[]GetSubscriptionDataMessageTypesParameterInner + streamIds *[]string + offset *int32 + limit *int32 +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetSubscriptionDataRequest) Authorization(authorization string) ApiGetSubscriptionDataRequest { + r.authorization = &authorization + return r +} + +// Filter, set of IBXs +func (r ApiGetSubscriptionDataRequest) Ibxs(ibxs []string) ApiGetSubscriptionDataRequest { + r.ibxs = &ibxs + return r +} + +// Filter, set of message types +func (r ApiGetSubscriptionDataRequest) MessageTypes(messageTypes []GetSubscriptionDataMessageTypesParameterInner) ApiGetSubscriptionDataRequest { + r.messageTypes = &messageTypes + return r +} + +// Filter, set of stream IDs +func (r ApiGetSubscriptionDataRequest) StreamIds(streamIds []string) ApiGetSubscriptionDataRequest { + r.streamIds = &streamIds + return r +} + +// Pagination, offset of the first item +func (r ApiGetSubscriptionDataRequest) Offset(offset int32) ApiGetSubscriptionDataRequest { + r.offset = &offset + return r +} + +// Pagination, limit of items returned +func (r ApiGetSubscriptionDataRequest) Limit(limit int32) ApiGetSubscriptionDataRequest { + r.limit = &limit + return r +} + +func (r ApiGetSubscriptionDataRequest) Execute() (*SubscriptionData, *http.Response, error) { + return r.ApiService.GetSubscriptionDataExecute(r) +} + +/* +GetSubscriptionData Get subscription data via REST + +obtain API+ near real time data via a simple REST endpoint by employing subscription ID alongside other specified criteria, enabling a comprehensive and targeted approach to data retrieval. Subscription data endpoint works for all channels and not just REST channel. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param subscriptionId Subscription ID + @return ApiGetSubscriptionDataRequest +*/ +func (a *DefaultApiService) GetSubscriptionData(ctx context.Context, subscriptionId string) ApiGetSubscriptionDataRequest { + return ApiGetSubscriptionDataRequest{ + ApiService: a, + ctx: ctx, + subscriptionId: subscriptionId, + } +} + +// Execute executes the request +// @return SubscriptionData +func (a *DefaultApiService) GetSubscriptionDataExecute(r ApiGetSubscriptionDataRequest) (*SubscriptionData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SubscriptionData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetSubscriptionData") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/streaming/subscriptionData/{subscriptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionId"+"}", url.PathEscape(parameterValueToString(r.subscriptionId, "subscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.ibxs != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ibxs", r.ibxs, "csv") + } + if r.messageTypes != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "messageTypes", r.messageTypes, "csv") + } + if r.streamIds != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "streamIds", r.streamIds, "csv") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + 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 ApiUpdateSubscriptionRequest struct { + ctx context.Context + ApiService *DefaultApiService + id string + authorization *string + body *SubscriptionRequest +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiUpdateSubscriptionRequest) Authorization(authorization string) ApiUpdateSubscriptionRequest { + r.authorization = &authorization + return r +} + +func (r ApiUpdateSubscriptionRequest) Body(body SubscriptionRequest) ApiUpdateSubscriptionRequest { + r.body = &body + return r +} + +func (r ApiUpdateSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.UpdateSubscriptionExecute(r) +} + +/* +UpdateSubscription Update subscription endpoint + +The endpoint allows users to modify and update an existing streaming subscription for a given organization. Request payload replaces current subscription. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiUpdateSubscriptionRequest +*/ +func (a *DefaultApiService) UpdateSubscription(ctx context.Context, id string) ApiUpdateSubscriptionRequest { + return ApiUpdateSubscriptionRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DefaultApiService) UpdateSubscriptionExecute(r ApiUpdateSubscriptionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateSubscription") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/streaming/subscriptions/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 422 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/services/smartview/api_smart_view_assets.go b/services/smartview/api_smart_view_assets.go new file mode 100644 index 00000000..5c0b0f26 --- /dev/null +++ b/services/smartview/api_smart_view_assets.go @@ -0,0 +1,1247 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// SmartViewAssetsApiService SmartViewAssetsApi service +type SmartViewAssetsApiService service + +type ApiGetAffectedAssetRequest struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + accountNo *string + ibx *string + assetId *string + classification *GetAssetClassificationParameter +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetAffectedAssetRequest) Authorization(authorization string) ApiGetAffectedAssetRequest { + r.authorization = &authorization + return r +} + +// customer account number +func (r ApiGetAffectedAssetRequest) AccountNo(accountNo string) ApiGetAffectedAssetRequest { + r.accountNo = &accountNo + return r +} + +// ibx code +func (r ApiGetAffectedAssetRequest) Ibx(ibx string) ApiGetAffectedAssetRequest { + r.ibx = &ibx + return r +} + +// asset id +func (r ApiGetAffectedAssetRequest) AssetId(assetId string) ApiGetAffectedAssetRequest { + r.assetId = &assetId + return r +} + +// asset classification(Electrical, Mechanical) +func (r ApiGetAffectedAssetRequest) Classification(classification GetAssetClassificationParameter) ApiGetAffectedAssetRequest { + r.classification = &classification + return r +} + +func (r ApiGetAffectedAssetRequest) Execute() (*HierarchyNode, *http.Response, error) { + return r.ApiService.GetAffectedAssetExecute(r) +} + +/* +GetAffectedAsset get affected customers assets hierarchy + +The endpoint returns information regarding the affected assets of customers for a given asset identifier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAffectedAssetRequest +*/ +func (a *SmartViewAssetsApiService) GetAffectedAsset(ctx context.Context) ApiGetAffectedAssetRequest { + return ApiGetAffectedAssetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HierarchyNode +func (a *SmartViewAssetsApiService) GetAffectedAssetExecute(r ApiGetAffectedAssetRequest) (*HierarchyNode, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HierarchyNode + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.GetAffectedAsset") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/tagpoint/affected-assets" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.assetId == nil { + return localVarReturnValue, nil, reportError("assetId is required and must be specified") + } + if r.classification == nil { + return localVarReturnValue, nil, reportError("classification is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assetId", r.assetId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "classification", r.classification, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiGetAssetRequest struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + accountNo *string + ibx *string + classification *GetAssetClassificationParameter + cages *[]string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetAssetRequest) Authorization(authorization string) ApiGetAssetRequest { + r.authorization = &authorization + return r +} + +// customer account number +func (r ApiGetAssetRequest) AccountNo(accountNo string) ApiGetAssetRequest { + r.accountNo = &accountNo + return r +} + +// ibx code +func (r ApiGetAssetRequest) Ibx(ibx string) ApiGetAssetRequest { + r.ibx = &ibx + return r +} + +// asset classification (Electrical, Mechanical) +func (r ApiGetAssetRequest) Classification(classification GetAssetClassificationParameter) ApiGetAssetRequest { + r.classification = &classification + return r +} + +// cage unique space id to be used to filter the assets list assumed to be all cage unique space id if no value is sent. +func (r ApiGetAssetRequest) Cages(cages []string) ApiGetAssetRequest { + r.cages = &cages + return r +} + +func (r ApiGetAssetRequest) Execute() (*AssetsList, *http.Response, error) { + return r.ApiService.GetAssetExecute(r) +} + +/* +GetAsset get assets list information + +This endpoint returns information about asset in a hierarchical structure ( category / template / asset ) based on the input account number, IBX code, cage and asset classification (Electrical, Mechanical). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAssetRequest +*/ +func (a *SmartViewAssetsApiService) GetAsset(ctx context.Context) ApiGetAssetRequest { + return ApiGetAssetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AssetsList +func (a *SmartViewAssetsApiService) GetAssetExecute(r ApiGetAssetRequest) (*AssetsList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetsList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.GetAsset") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/list" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.classification == nil { + return localVarReturnValue, nil, reportError("classification is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "classification", r.classification, "") + if r.cages != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cages", r.cages, "csv") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiGetAssetDetailsRequest struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + accountNo *string + ibx *string + classification *string + assetId *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetAssetDetailsRequest) Authorization(authorization string) ApiGetAssetDetailsRequest { + r.authorization = &authorization + return r +} + +// customer account number +func (r ApiGetAssetDetailsRequest) AccountNo(accountNo string) ApiGetAssetDetailsRequest { + r.accountNo = &accountNo + return r +} + +// ibx code +func (r ApiGetAssetDetailsRequest) Ibx(ibx string) ApiGetAssetDetailsRequest { + r.ibx = &ibx + return r +} + +// asset classification (Electrical, Mechanical) +func (r ApiGetAssetDetailsRequest) Classification(classification string) ApiGetAssetDetailsRequest { + r.classification = &classification + return r +} + +// asset id +func (r ApiGetAssetDetailsRequest) AssetId(assetId string) ApiGetAssetDetailsRequest { + r.assetId = &assetId + return r +} + +func (r ApiGetAssetDetailsRequest) Execute() (*AssetDetailsGetResponse, *http.Response, error) { + return r.ApiService.GetAssetDetailsExecute(r) +} + +/* +GetAssetDetails get details for an asset. + +This endpoint returns information about asset details including tag points lists for a given asset identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAssetDetailsRequest +*/ +func (a *SmartViewAssetsApiService) GetAssetDetails(ctx context.Context) ApiGetAssetDetailsRequest { + return ApiGetAssetDetailsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AssetDetailsGetResponse +func (a *SmartViewAssetsApiService) GetAssetDetailsExecute(r ApiGetAssetDetailsRequest) (*AssetDetailsGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailsGetResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.GetAssetDetails") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/details" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.classification == nil { + return localVarReturnValue, nil, reportError("classification is required and must be specified") + } + if r.assetId == nil { + return localVarReturnValue, nil, reportError("assetId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "classification", r.classification, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "assetId", r.assetId, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiGetCurrentTagPointRequest struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + accountNo *string + ibx *string + tagid *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetCurrentTagPointRequest) Authorization(authorization string) ApiGetCurrentTagPointRequest { + r.authorization = &authorization + return r +} + +// customer account number +func (r ApiGetCurrentTagPointRequest) AccountNo(accountNo string) ApiGetCurrentTagPointRequest { + r.accountNo = &accountNo + return r +} + +// ibx code +func (r ApiGetCurrentTagPointRequest) Ibx(ibx string) ApiGetCurrentTagPointRequest { + r.ibx = &ibx + return r +} + +// tag id is the unique identifier for the tag point +func (r ApiGetCurrentTagPointRequest) Tagid(tagid string) ApiGetCurrentTagPointRequest { + r.tagid = &tagid + return r +} + +func (r ApiGetCurrentTagPointRequest) Execute() (*TagPointData, *http.Response, error) { + return r.ApiService.GetCurrentTagPointExecute(r) +} + +/* +GetCurrentTagPoint obtain latest tag point data + +This endpoint fetches and provides the most recent tag point information for a given tag identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetCurrentTagPointRequest +*/ +func (a *SmartViewAssetsApiService) GetCurrentTagPoint(ctx context.Context) ApiGetCurrentTagPointRequest { + return ApiGetCurrentTagPointRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TagPointData +func (a *SmartViewAssetsApiService) GetCurrentTagPointExecute(r ApiGetCurrentTagPointRequest) (*TagPointData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TagPointData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.GetCurrentTagPoint") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/tagpoint/current" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.tagid == nil { + return localVarReturnValue, nil, reportError("tagid is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tagid", r.tagid, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiGetTagpointTrendingRequest struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + accountNo *string + ibx *string + tagid *string + interval *string + fromDate *int32 + toDate *int32 +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetTagpointTrendingRequest) Authorization(authorization string) ApiGetTagpointTrendingRequest { + r.authorization = &authorization + return r +} + +// customer account number +func (r ApiGetTagpointTrendingRequest) AccountNo(accountNo string) ApiGetTagpointTrendingRequest { + r.accountNo = &accountNo + return r +} + +// ibx code +func (r ApiGetTagpointTrendingRequest) Ibx(ibx string) ApiGetTagpointTrendingRequest { + r.ibx = &ibx + return r +} + +// tag id is the unique identifier for the tag point +func (r ApiGetTagpointTrendingRequest) Tagid(tagid string) ApiGetTagpointTrendingRequest { + r.tagid = &tagid + return r +} + +// tag point data interval (1h, 1d, reading) +func (r ApiGetTagpointTrendingRequest) Interval(interval string) ApiGetTagpointTrendingRequest { + r.interval = &interval + return r +} + +// from date UTC time (1494345600000) +func (r ApiGetTagpointTrendingRequest) FromDate(fromDate int32) ApiGetTagpointTrendingRequest { + r.fromDate = &fromDate + return r +} + +// to date UTC time (1494432000000) +func (r ApiGetTagpointTrendingRequest) ToDate(toDate int32) ApiGetTagpointTrendingRequest { + r.toDate = &toDate + return r +} + +func (r ApiGetTagpointTrendingRequest) Execute() (*TagPointTrendingResponse, *http.Response, error) { + return r.ApiService.GetTagpointTrendingExecute(r) +} + +/* +GetTagpointTrending obtain trending tag point data + +This endpoint fetches and returns the trending tag point information for a given tag identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTagpointTrendingRequest +*/ +func (a *SmartViewAssetsApiService) GetTagpointTrending(ctx context.Context) ApiGetTagpointTrendingRequest { + return ApiGetTagpointTrendingRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TagPointTrendingResponse +func (a *SmartViewAssetsApiService) GetTagpointTrendingExecute(r ApiGetTagpointTrendingRequest) (*TagPointTrendingResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TagPointTrendingResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.GetTagpointTrending") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/tagpoint/trending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.tagid == nil { + return localVarReturnValue, nil, reportError("tagid is required and must be specified") + } + if r.interval == nil { + return localVarReturnValue, nil, reportError("interval is required and must be specified") + } + if r.fromDate == nil { + return localVarReturnValue, nil, reportError("fromDate is required and must be specified") + } + if r.toDate == nil { + return localVarReturnValue, nil, reportError("toDate is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tagid", r.tagid, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "fromDate", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "toDate", r.toDate, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiMixin4Request struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + payload *AssetDetailsRequest +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiMixin4Request) Authorization(authorization string) ApiMixin4Request { + r.authorization = &authorization + return r +} + +// request schema +func (r ApiMixin4Request) Payload(payload AssetDetailsRequest) ApiMixin4Request { + r.payload = &payload + return r +} + +func (r ApiMixin4Request) Execute() (*AssetDetailsResponse, *http.Response, error) { + return r.ApiService.Mixin4Execute(r) +} + +/* +Mixin4 get asset details + +This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin4Request +*/ +func (a *SmartViewAssetsApiService) Mixin4(ctx context.Context) ApiMixin4Request { + return ApiMixin4Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AssetDetailsResponse +func (a *SmartViewAssetsApiService) Mixin4Execute(r ApiMixin4Request) (*AssetDetailsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.Mixin4") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/details" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.payload + 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, + } + var v Error + 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 ApiMixin4_0Request struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + payload *CurrentTagPointRequest +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiMixin4_0Request) Authorization(authorization string) ApiMixin4_0Request { + r.authorization = &authorization + return r +} + +func (r ApiMixin4_0Request) Payload(payload CurrentTagPointRequest) ApiMixin4_0Request { + r.payload = &payload + return r +} + +func (r ApiMixin4_0Request) Execute() (*TagPointData, *http.Response, error) { + return r.ApiService.Mixin4_1Execute(r) +} + +/* +Mixin4_0 get current tag points data + +This endpoint fetches the latest read values for given tag points using given tag identifiers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin4_0Request +*/ +func (a *SmartViewAssetsApiService) Mixin4_1(ctx context.Context) ApiMixin4_0Request { + return ApiMixin4_0Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TagPointData +func (a *SmartViewAssetsApiService) Mixin4_1Execute(r ApiMixin4_0Request) (*TagPointData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TagPointData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.Mixin4_1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/tagpoint/current" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.payload + 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, + } + var v Error + 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 ApiSearchAssetRequest struct { + ctx context.Context + ApiService *SmartViewAssetsApiService + authorization *string + accountNo *string + ibx *string + searchString *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiSearchAssetRequest) Authorization(authorization string) ApiSearchAssetRequest { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiSearchAssetRequest) AccountNo(accountNo string) ApiSearchAssetRequest { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiSearchAssetRequest) Ibx(ibx string) ApiSearchAssetRequest { + r.ibx = &ibx + return r +} + +// Search String +func (r ApiSearchAssetRequest) SearchString(searchString string) ApiSearchAssetRequest { + r.searchString = &searchString + return r +} + +func (r ApiSearchAssetRequest) Execute() (*Assets, *http.Response, error) { + return r.ApiService.SearchAssetExecute(r) +} + +/* +SearchAsset Search for Assets matching identifiers + +This endpoint is used to search for assets using wild card search patterns matching the asset identifier. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSearchAssetRequest +*/ +func (a *SmartViewAssetsApiService) SearchAsset(ctx context.Context) ApiSearchAssetRequest { + return ApiSearchAssetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Assets +func (a *SmartViewAssetsApiService) SearchAssetExecute(r ApiSearchAssetRequest) (*Assets, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Assets + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.SearchAsset") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/asset/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.searchString == nil { + return localVarReturnValue, nil, reportError("searchString is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "searchString", r.searchString, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/api_smart_view_environment.go b/services/smartview/api_smart_view_environment.go new file mode 100644 index 00000000..8714488b --- /dev/null +++ b/services/smartview/api_smart_view_environment.go @@ -0,0 +1,545 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "time" +) + + +// SmartViewEnvironmentApiService SmartViewEnvironmentApi service +type SmartViewEnvironmentApiService service + +type ApiMixin1Request struct { + ctx context.Context + ApiService *SmartViewEnvironmentApiService + authorization *string + accountNo *string + ibx *string + levelType *Mixin1LevelTypeParameter + levelValue *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiMixin1Request) Authorization(authorization string) ApiMixin1Request { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiMixin1Request) AccountNo(accountNo string) ApiMixin1Request { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiMixin1Request) Ibx(ibx string) ApiMixin1Request { + r.ibx = &ibx + return r +} + +// Level Type +func (r ApiMixin1Request) LevelType(levelType Mixin1LevelTypeParameter) ApiMixin1Request { + r.levelType = &levelType + return r +} + +// Level Value is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor resp. +func (r ApiMixin1Request) LevelValue(levelValue string) ApiMixin1Request { + r.levelValue = &levelValue + return r +} + +func (r ApiMixin1Request) Execute() (*EnvironmentData, *http.Response, error) { + return r.ApiService.Mixin1Execute(r) +} + +/* +Mixin1 Get current environmental data + +The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin1Request +*/ +func (a *SmartViewEnvironmentApiService) Mixin1(ctx context.Context) ApiMixin1Request { + return ApiMixin1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return EnvironmentData +func (a *SmartViewEnvironmentApiService) Mixin1Execute(r ApiMixin1Request) (*EnvironmentData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environment/v1/current" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.levelType == nil { + return localVarReturnValue, nil, reportError("levelType is required and must be specified") + } + if r.levelValue == nil { + return localVarReturnValue, nil, reportError("levelValue is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiMixin1_0Request struct { + ctx context.Context + ApiService *SmartViewEnvironmentApiService + authorization *string + accountNo *string + ibx *string + levelType *Mixin1LevelTypeParameter +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiMixin1_0Request) Authorization(authorization string) ApiMixin1_0Request { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiMixin1_0Request) AccountNo(accountNo string) ApiMixin1_0Request { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiMixin1_0Request) Ibx(ibx string) ApiMixin1_0Request { + r.ibx = &ibx + return r +} + +// Level Type +func (r ApiMixin1_0Request) LevelType(levelType Mixin1LevelTypeParameter) ApiMixin1_0Request { + r.levelType = &levelType + return r +} + +func (r ApiMixin1_0Request) Execute() (*EnvironmentDataResponse, *http.Response, error) { + return r.ApiService.Mixin1_1Execute(r) +} + +/* +Mixin1_0 Fetch list of environmental data + +The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin1_0Request +*/ +func (a *SmartViewEnvironmentApiService) Mixin1_1(ctx context.Context) ApiMixin1_0Request { + return ApiMixin1_0Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return EnvironmentDataResponse +func (a *SmartViewEnvironmentApiService) Mixin1_1Execute(r ApiMixin1_0Request) (*EnvironmentDataResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EnvironmentDataResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin1_1") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environment/v1/listCurrent" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.levelType == nil { + return localVarReturnValue, nil, reportError("levelType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + 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 ApiMixin1_1Request struct { + ctx context.Context + ApiService *SmartViewEnvironmentApiService + authorization *string + accountNo *string + ibx *float32 + dataPoint *Mixin1DataPointParameter + levelType *Mixin1LevelTypeParameter + levelValue *string + interval *Mixin1IntervalParameter + fromDate *time.Time + toDate *time.Time +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiMixin1_1Request) Authorization(authorization string) ApiMixin1_1Request { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiMixin1_1Request) AccountNo(accountNo string) ApiMixin1_1Request { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiMixin1_1Request) Ibx(ibx float32) ApiMixin1_1Request { + r.ibx = &ibx + return r +} + +// data point +func (r ApiMixin1_1Request) DataPoint(dataPoint Mixin1DataPointParameter) ApiMixin1_1Request { + r.dataPoint = &dataPoint + return r +} + +// Level Type +func (r ApiMixin1_1Request) LevelType(levelType Mixin1LevelTypeParameter) ApiMixin1_1Request { + r.levelType = &levelType + return r +} + +// Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor resp. +func (r ApiMixin1_1Request) LevelValue(levelValue string) ApiMixin1_1Request { + r.levelValue = &levelValue + return r +} + +func (r ApiMixin1_1Request) Interval(interval Mixin1IntervalParameter) ApiMixin1_1Request { + r.interval = &interval + return r +} + +// date in long +func (r ApiMixin1_1Request) FromDate(fromDate time.Time) ApiMixin1_1Request { + r.fromDate = &fromDate + return r +} + +// date in long +func (r ApiMixin1_1Request) ToDate(toDate time.Time) ApiMixin1_1Request { + r.toDate = &toDate + return r +} + +func (r ApiMixin1_1Request) Execute() (*TrendingEnvironmentData, *http.Response, error) { + return r.ApiService.Mixin1_2Execute(r) +} + +/* +Mixin1_1 Fetch trending environmental data + +The endpoint returns trending environment information (temperature and humidity) for +input ibx, zone, cage, sensor + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMixin1_1Request +*/ +func (a *SmartViewEnvironmentApiService) Mixin1_2(ctx context.Context) ApiMixin1_1Request { + return ApiMixin1_1Request{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return TrendingEnvironmentData +func (a *SmartViewEnvironmentApiService) Mixin1_2Execute(r ApiMixin1_1Request) (*TrendingEnvironmentData, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TrendingEnvironmentData + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin1_2") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/environment/v1/trending" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.dataPoint == nil { + return localVarReturnValue, nil, reportError("dataPoint is required and must be specified") + } + if r.levelType == nil { + return localVarReturnValue, nil, reportError("levelType is required and must be specified") + } + if r.levelValue == nil { + return localVarReturnValue, nil, reportError("levelValue is required and must be specified") + } + if r.interval == nil { + return localVarReturnValue, nil, reportError("interval is required and must be specified") + } + if r.fromDate == nil { + return localVarReturnValue, nil, reportError("fromDate is required and must be specified") + } + if r.toDate == nil { + return localVarReturnValue, nil, reportError("toDate is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "dataPoint", r.dataPoint, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "fromDate", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "toDate", r.toDate, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/api_smart_view_environmental.go b/services/smartview/api_smart_view_environmental.go new file mode 100644 index 00000000..7b4ed181 --- /dev/null +++ b/services/smartview/api_smart_view_environmental.go @@ -0,0 +1,296 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// SmartViewEnvironmentalApiService SmartViewEnvironmentalApi service +type SmartViewEnvironmentalApiService service + +type ApiGetSensorReadingsRequest struct { + ctx context.Context + ApiService *SmartViewEnvironmentalApiService + ibx string + authorization *string + type_ *string + zone *string + offset *int32 + limit *int32 +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetSensorReadingsRequest) Authorization(authorization string) ApiGetSensorReadingsRequest { + r.authorization = &authorization + return r +} + +// Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included +func (r ApiGetSensorReadingsRequest) Type_(type_ string) ApiGetSensorReadingsRequest { + r.type_ = &type_ + return r +} + +// Zone name. Adding this parameter limits the query to sensors in the specified zone +func (r ApiGetSensorReadingsRequest) Zone(zone string) ApiGetSensorReadingsRequest { + r.zone = &zone + return r +} + +// Results offset you want to retrieve (0..N) +func (r ApiGetSensorReadingsRequest) Offset(offset int32) ApiGetSensorReadingsRequest { + r.offset = &offset + return r +} + +// Number of records to retrieve per request. +func (r ApiGetSensorReadingsRequest) Limit(limit int32) ApiGetSensorReadingsRequest { + r.limit = &limit + return r +} + +func (r ApiGetSensorReadingsRequest) Execute() (*SensorReadingsResponse, *http.Response, error) { + return r.ApiService.GetSensorReadingsExecute(r) +} + +/* +GetSensorReadings IBX sensors current readings + +Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ibx IBX where the sensor is located. + @return ApiGetSensorReadingsRequest +*/ +func (a *SmartViewEnvironmentalApiService) GetSensorReadings(ctx context.Context, ibx string) ApiGetSensorReadingsRequest { + return ApiGetSensorReadingsRequest{ + ApiService: a, + ctx: ctx, + ibx: ibx, + } +} + +// Execute executes the request +// @return SensorReadingsResponse +func (a *SmartViewEnvironmentalApiService) GetSensorReadingsExecute(r ApiGetSensorReadingsRequest) (*SensorReadingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SensorReadingsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentalApiService.GetSensorReadings") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/environmental/ibxs/{ibx}/sensors/readings" + localVarPath = strings.Replace(localVarPath, "{"+"ibx"+"}", url.PathEscape(parameterValueToString(r.ibx, "ibx")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + if r.type_ != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + } + if r.zone != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "zone", r.zone, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + 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 ApiGetSingleSensorReadingsRequest struct { + ctx context.Context + ApiService *SmartViewEnvironmentalApiService + ibx string + sensorId string + authorization *string +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetSingleSensorReadingsRequest) Authorization(authorization string) ApiGetSingleSensorReadingsRequest { + r.authorization = &authorization + return r +} + +func (r ApiGetSingleSensorReadingsRequest) Execute() (*SensorReading, *http.Response, error) { + return r.ApiService.GetSingleSensorReadingsExecute(r) +} + +/* +GetSingleSensorReadings Single sensor current value(s) + +Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ibx IBX where the sensor is located. + @param sensorId Id of sensor to read. + @return ApiGetSingleSensorReadingsRequest +*/ +func (a *SmartViewEnvironmentalApiService) GetSingleSensorReadings(ctx context.Context, ibx string, sensorId string) ApiGetSingleSensorReadingsRequest { + return ApiGetSingleSensorReadingsRequest{ + ApiService: a, + ctx: ctx, + ibx: ibx, + sensorId: sensorId, + } +} + +// Execute executes the request +// @return SensorReading +func (a *SmartViewEnvironmentalApiService) GetSingleSensorReadingsExecute(r ApiGetSingleSensorReadingsRequest) (*SensorReading, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SensorReading + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentalApiService.GetSingleSensorReadings") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings" + localVarPath = strings.Replace(localVarPath, "{"+"ibx"+"}", url.PathEscape(parameterValueToString(r.ibx, "ibx")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"sensorId"+"}", url.PathEscape(parameterValueToString(r.sensorId, "sensorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/api_smart_view_hierarchy_apis.go b/services/smartview/api_smart_view_hierarchy_apis.go new file mode 100644 index 00000000..46f831e7 --- /dev/null +++ b/services/smartview/api_smart_view_hierarchy_apis.go @@ -0,0 +1,325 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// SmartViewHierarchyAPIsApiService SmartViewHierarchyAPIsApi service +type SmartViewHierarchyAPIsApiService service + +type ApiGetLocationHierarchyRequest struct { + ctx context.Context + ApiService *SmartViewHierarchyAPIsApiService + authorization *string + accountNo *string + authorization2 *string + ibx *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetLocationHierarchyRequest) Authorization(authorization string) ApiGetLocationHierarchyRequest { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiGetLocationHierarchyRequest) AccountNo(accountNo string) ApiGetLocationHierarchyRequest { + r.accountNo = &accountNo + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetLocationHierarchyRequest) Authorization2(authorization2 string) ApiGetLocationHierarchyRequest { + r.authorization2 = &authorization2 + return r +} + +// IBX Code +func (r ApiGetLocationHierarchyRequest) Ibx(ibx string) ApiGetLocationHierarchyRequest { + r.ibx = &ibx + return r +} + +func (r ApiGetLocationHierarchyRequest) Execute() ([]HierarchyNode, *http.Response, error) { + return r.ApiService.GetLocationHierarchyExecute(r) +} + +/* +GetLocationHierarchy Fetch the Location Hierarchy + +The location hierarchy endpoint returns the location hierarchy. This endpoint provides data for invoking other APIs such as Environmental APIs that require location hierarchy information. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetLocationHierarchyRequest +*/ +func (a *SmartViewHierarchyAPIsApiService) GetLocationHierarchy(ctx context.Context) ApiGetLocationHierarchyRequest { + return ApiGetLocationHierarchyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []HierarchyNode +func (a *SmartViewHierarchyAPIsApiService) GetLocationHierarchyExecute(r ApiGetLocationHierarchyRequest) ([]HierarchyNode, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []HierarchyNode + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewHierarchyAPIsApiService.GetLocationHierarchy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/hierarchy/location" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.authorization2 == nil { + return localVarReturnValue, nil, reportError("authorization2 is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + if r.ibx != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization2, "") + 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, + } + var v Error + 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 ApiGetPowerHierarchyRequest struct { + ctx context.Context + ApiService *SmartViewHierarchyAPIsApiService + authorization *string + accountNo *string + authorization2 *string + ibx *string +} + +// Specify the OAuth Bearer token with prefix 'Bearer '. +func (r ApiGetPowerHierarchyRequest) Authorization(authorization string) ApiGetPowerHierarchyRequest { + r.authorization = &authorization + return r +} + +// Customer Account Number +func (r ApiGetPowerHierarchyRequest) AccountNo(accountNo string) ApiGetPowerHierarchyRequest { + r.accountNo = &accountNo + return r +} + +// The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. +func (r ApiGetPowerHierarchyRequest) Authorization2(authorization2 string) ApiGetPowerHierarchyRequest { + r.authorization2 = &authorization2 + return r +} + +// IBX Code +func (r ApiGetPowerHierarchyRequest) Ibx(ibx string) ApiGetPowerHierarchyRequest { + r.ibx = &ibx + return r +} + +func (r ApiGetPowerHierarchyRequest) Execute() ([]PowerHierarchyNode, *http.Response, error) { + return r.ApiService.GetPowerHierarchyExecute(r) +} + +/* +GetPowerHierarchy Fetch the Power Hierarchy + +The power hierarchy endpoint returns the power hierarchy. This endpoint provides data for invoking other APIs such as Power APIs that require power hierarchy information. + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPowerHierarchyRequest +*/ +func (a *SmartViewHierarchyAPIsApiService) GetPowerHierarchy(ctx context.Context) ApiGetPowerHierarchyRequest { + return ApiGetPowerHierarchyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []PowerHierarchyNode +func (a *SmartViewHierarchyAPIsApiService) GetPowerHierarchyExecute(r ApiGetPowerHierarchyRequest) ([]PowerHierarchyNode, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerHierarchyNode + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewHierarchyAPIsApiService.GetPowerHierarchy") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/smartview/v1/hierarchy/power" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.authorization2 == nil { + return localVarReturnValue, nil, reportError("authorization2 is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + if r.ibx != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + } + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization2, "") + 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, + } + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/smartview/client.go b/services/smartview/client.go new file mode 100644 index 00000000..6a0dbbe8 --- /dev/null +++ b/services/smartview/client.go @@ -0,0 +1,681 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the Smart View Environmental API API v2.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + AlertLogApi *AlertLogApiService + + AlertsApi *AlertsApiService + + DCIMPowerApi *DCIMPowerApiService + + DefaultApi *DefaultApiService + + SmartViewAssetsApi *SmartViewAssetsApiService + + SmartViewEnvironmentApi *SmartViewEnvironmentApiService + + SmartViewEnvironmentalApi *SmartViewEnvironmentalApiService + + SmartViewHierarchyAPIsApi *SmartViewHierarchyAPIsApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.AlertLogApi = (*AlertLogApiService)(&c.common) + c.AlertsApi = (*AlertsApiService)(&c.common) + c.DCIMPowerApi = (*DCIMPowerApiService)(&c.common) + c.DefaultApi = (*DefaultApiService)(&c.common) + c.SmartViewAssetsApi = (*SmartViewAssetsApiService)(&c.common) + c.SmartViewEnvironmentApi = (*SmartViewEnvironmentApiService)(&c.common) + c.SmartViewEnvironmentalApi = (*SmartViewEnvironmentalApiService)(&c.common) + c.SmartViewHierarchyAPIsApi = (*SmartViewHierarchyAPIsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/smartview/configuration.go b/services/smartview/configuration.go new file mode 100644 index 00000000..73f163c3 --- /dev/null +++ b/services/smartview/configuration.go @@ -0,0 +1,215 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "equinix-sdk-go/0.47.0", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "https://api.equinix.com", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/services/smartview/docs/Alarm.md b/services/smartview/docs/Alarm.md new file mode 100644 index 00000000..8dc5f76a --- /dev/null +++ b/services/smartview/docs/Alarm.md @@ -0,0 +1,536 @@ +# Alarm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Asset** | [**AlarmAssetDetails**](AlarmAssetDetails.md) | | +**ConditionName** | Pointer to **string** | condition name | [optional] +**Country** | Pointer to **string** | country | [optional] +**CurrentValue** | [**AlarmCurrentValueDetails**](AlarmCurrentValueDetails.md) | | +**DataQuality** | Pointer to **string** | data quality: Good | Bad | Uncertain | [optional] +**DefinitionId** | **string** | unique message id | +**Heartbeat** | Pointer to **bool** | heartbeat | [optional] +**Ibx** | **string** | ibx | +**Metro** | Pointer to **string** | metro | [optional] +**NormalProcessedTime** | Pointer to **string** | alarm normal processed time | [optional] +**NormalTriggeredTime** | Pointer to **string** | alarm normal triggered time | [optional] +**ProcessedTime** | Pointer to **string** | alarm processed time | [optional] +**Region** | Pointer to **string** | region | [optional] +**Severity** | Pointer to **int32** | severity | [optional] +**Status** | [**AlarmStatusDetails**](AlarmStatusDetails.md) | | +**StreamId** | **string** | unique message id | +**Tag** | [**AlarmTagDetails**](AlarmTagDetails.md) | | +**Threshold** | [**AlarmThresholdDetails**](AlarmThresholdDetails.md) | | +**TriggerRule** | Pointer to **string** | trigger rule | [optional] +**TriggeredTime** | Pointer to **string** | alarm triggered time | [optional] +**Type** | Pointer to **string** | type | [optional] + +## Methods + +### NewAlarm + +`func NewAlarm(asset AlarmAssetDetails, currentValue AlarmCurrentValueDetails, definitionId string, ibx string, status AlarmStatusDetails, streamId string, tag AlarmTagDetails, threshold AlarmThresholdDetails, ) *Alarm` + +NewAlarm instantiates a new Alarm 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 + +### NewAlarmWithDefaults + +`func NewAlarmWithDefaults() *Alarm` + +NewAlarmWithDefaults instantiates a new Alarm 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 + +### GetAsset + +`func (o *Alarm) GetAsset() AlarmAssetDetails` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *Alarm) GetAssetOk() (*AlarmAssetDetails, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *Alarm) SetAsset(v AlarmAssetDetails)` + +SetAsset sets Asset field to given value. + + +### GetConditionName + +`func (o *Alarm) GetConditionName() string` + +GetConditionName returns the ConditionName field if non-nil, zero value otherwise. + +### GetConditionNameOk + +`func (o *Alarm) GetConditionNameOk() (*string, bool)` + +GetConditionNameOk returns a tuple with the ConditionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditionName + +`func (o *Alarm) SetConditionName(v string)` + +SetConditionName sets ConditionName field to given value. + +### HasConditionName + +`func (o *Alarm) HasConditionName() bool` + +HasConditionName returns a boolean if a field has been set. + +### GetCountry + +`func (o *Alarm) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *Alarm) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *Alarm) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *Alarm) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + +### GetCurrentValue + +`func (o *Alarm) GetCurrentValue() AlarmCurrentValueDetails` + +GetCurrentValue returns the CurrentValue field if non-nil, zero value otherwise. + +### GetCurrentValueOk + +`func (o *Alarm) GetCurrentValueOk() (*AlarmCurrentValueDetails, bool)` + +GetCurrentValueOk returns a tuple with the CurrentValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentValue + +`func (o *Alarm) SetCurrentValue(v AlarmCurrentValueDetails)` + +SetCurrentValue sets CurrentValue field to given value. + + +### GetDataQuality + +`func (o *Alarm) GetDataQuality() string` + +GetDataQuality returns the DataQuality field if non-nil, zero value otherwise. + +### GetDataQualityOk + +`func (o *Alarm) GetDataQualityOk() (*string, bool)` + +GetDataQualityOk returns a tuple with the DataQuality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataQuality + +`func (o *Alarm) SetDataQuality(v string)` + +SetDataQuality sets DataQuality field to given value. + +### HasDataQuality + +`func (o *Alarm) HasDataQuality() bool` + +HasDataQuality returns a boolean if a field has been set. + +### GetDefinitionId + +`func (o *Alarm) GetDefinitionId() string` + +GetDefinitionId returns the DefinitionId field if non-nil, zero value otherwise. + +### GetDefinitionIdOk + +`func (o *Alarm) GetDefinitionIdOk() (*string, bool)` + +GetDefinitionIdOk returns a tuple with the DefinitionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefinitionId + +`func (o *Alarm) SetDefinitionId(v string)` + +SetDefinitionId sets DefinitionId field to given value. + + +### GetHeartbeat + +`func (o *Alarm) GetHeartbeat() bool` + +GetHeartbeat returns the Heartbeat field if non-nil, zero value otherwise. + +### GetHeartbeatOk + +`func (o *Alarm) GetHeartbeatOk() (*bool, bool)` + +GetHeartbeatOk returns a tuple with the Heartbeat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeartbeat + +`func (o *Alarm) SetHeartbeat(v bool)` + +SetHeartbeat sets Heartbeat field to given value. + +### HasHeartbeat + +`func (o *Alarm) HasHeartbeat() bool` + +HasHeartbeat returns a boolean if a field has been set. + +### GetIbx + +`func (o *Alarm) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *Alarm) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *Alarm) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetMetro + +`func (o *Alarm) GetMetro() string` + +GetMetro returns the Metro field if non-nil, zero value otherwise. + +### GetMetroOk + +`func (o *Alarm) GetMetroOk() (*string, bool)` + +GetMetroOk returns a tuple with the Metro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetro + +`func (o *Alarm) SetMetro(v string)` + +SetMetro sets Metro field to given value. + +### HasMetro + +`func (o *Alarm) HasMetro() bool` + +HasMetro returns a boolean if a field has been set. + +### GetNormalProcessedTime + +`func (o *Alarm) GetNormalProcessedTime() string` + +GetNormalProcessedTime returns the NormalProcessedTime field if non-nil, zero value otherwise. + +### GetNormalProcessedTimeOk + +`func (o *Alarm) GetNormalProcessedTimeOk() (*string, bool)` + +GetNormalProcessedTimeOk returns a tuple with the NormalProcessedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNormalProcessedTime + +`func (o *Alarm) SetNormalProcessedTime(v string)` + +SetNormalProcessedTime sets NormalProcessedTime field to given value. + +### HasNormalProcessedTime + +`func (o *Alarm) HasNormalProcessedTime() bool` + +HasNormalProcessedTime returns a boolean if a field has been set. + +### GetNormalTriggeredTime + +`func (o *Alarm) GetNormalTriggeredTime() string` + +GetNormalTriggeredTime returns the NormalTriggeredTime field if non-nil, zero value otherwise. + +### GetNormalTriggeredTimeOk + +`func (o *Alarm) GetNormalTriggeredTimeOk() (*string, bool)` + +GetNormalTriggeredTimeOk returns a tuple with the NormalTriggeredTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNormalTriggeredTime + +`func (o *Alarm) SetNormalTriggeredTime(v string)` + +SetNormalTriggeredTime sets NormalTriggeredTime field to given value. + +### HasNormalTriggeredTime + +`func (o *Alarm) HasNormalTriggeredTime() bool` + +HasNormalTriggeredTime returns a boolean if a field has been set. + +### GetProcessedTime + +`func (o *Alarm) GetProcessedTime() string` + +GetProcessedTime returns the ProcessedTime field if non-nil, zero value otherwise. + +### GetProcessedTimeOk + +`func (o *Alarm) GetProcessedTimeOk() (*string, bool)` + +GetProcessedTimeOk returns a tuple with the ProcessedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessedTime + +`func (o *Alarm) SetProcessedTime(v string)` + +SetProcessedTime sets ProcessedTime field to given value. + +### HasProcessedTime + +`func (o *Alarm) HasProcessedTime() bool` + +HasProcessedTime returns a boolean if a field has been set. + +### GetRegion + +`func (o *Alarm) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Alarm) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Alarm) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Alarm) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetSeverity + +`func (o *Alarm) GetSeverity() int32` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *Alarm) GetSeverityOk() (*int32, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *Alarm) SetSeverity(v int32)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *Alarm) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### GetStatus + +`func (o *Alarm) GetStatus() AlarmStatusDetails` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Alarm) GetStatusOk() (*AlarmStatusDetails, 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 *Alarm) SetStatus(v AlarmStatusDetails)` + +SetStatus sets Status field to given value. + + +### GetStreamId + +`func (o *Alarm) GetStreamId() string` + +GetStreamId returns the StreamId field if non-nil, zero value otherwise. + +### GetStreamIdOk + +`func (o *Alarm) GetStreamIdOk() (*string, bool)` + +GetStreamIdOk returns a tuple with the StreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamId + +`func (o *Alarm) SetStreamId(v string)` + +SetStreamId sets StreamId field to given value. + + +### GetTag + +`func (o *Alarm) GetTag() AlarmTagDetails` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *Alarm) GetTagOk() (*AlarmTagDetails, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *Alarm) SetTag(v AlarmTagDetails)` + +SetTag sets Tag field to given value. + + +### GetThreshold + +`func (o *Alarm) GetThreshold() AlarmThresholdDetails` + +GetThreshold returns the Threshold field if non-nil, zero value otherwise. + +### GetThresholdOk + +`func (o *Alarm) GetThresholdOk() (*AlarmThresholdDetails, bool)` + +GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThreshold + +`func (o *Alarm) SetThreshold(v AlarmThresholdDetails)` + +SetThreshold sets Threshold field to given value. + + +### GetTriggerRule + +`func (o *Alarm) GetTriggerRule() string` + +GetTriggerRule returns the TriggerRule field if non-nil, zero value otherwise. + +### GetTriggerRuleOk + +`func (o *Alarm) GetTriggerRuleOk() (*string, bool)` + +GetTriggerRuleOk returns a tuple with the TriggerRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerRule + +`func (o *Alarm) SetTriggerRule(v string)` + +SetTriggerRule sets TriggerRule field to given value. + +### HasTriggerRule + +`func (o *Alarm) HasTriggerRule() bool` + +HasTriggerRule returns a boolean if a field has been set. + +### GetTriggeredTime + +`func (o *Alarm) GetTriggeredTime() string` + +GetTriggeredTime returns the TriggeredTime field if non-nil, zero value otherwise. + +### GetTriggeredTimeOk + +`func (o *Alarm) GetTriggeredTimeOk() (*string, bool)` + +GetTriggeredTimeOk returns a tuple with the TriggeredTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredTime + +`func (o *Alarm) SetTriggeredTime(v string)` + +SetTriggeredTime sets TriggeredTime field to given value. + +### HasTriggeredTime + +`func (o *Alarm) HasTriggeredTime() bool` + +HasTriggeredTime returns a boolean if a field has been set. + +### GetType + +`func (o *Alarm) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Alarm) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Alarm) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Alarm) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlarmAssetDetails.md b/services/smartview/docs/AlarmAssetDetails.md new file mode 100644 index 00000000..0ec1cea0 --- /dev/null +++ b/services/smartview/docs/AlarmAssetDetails.md @@ -0,0 +1,108 @@ +# AlarmAssetDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Classification** | Pointer to **string** | asset classification | [optional] +**Id** | Pointer to **string** | asset id | [optional] +**Type** | Pointer to **string** | asset type | [optional] + +## Methods + +### NewAlarmAssetDetails + +`func NewAlarmAssetDetails() *AlarmAssetDetails` + +NewAlarmAssetDetails instantiates a new AlarmAssetDetails 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 + +### NewAlarmAssetDetailsWithDefaults + +`func NewAlarmAssetDetailsWithDefaults() *AlarmAssetDetails` + +NewAlarmAssetDetailsWithDefaults instantiates a new AlarmAssetDetails 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 + +### GetClassification + +`func (o *AlarmAssetDetails) GetClassification() string` + +GetClassification returns the Classification field if non-nil, zero value otherwise. + +### GetClassificationOk + +`func (o *AlarmAssetDetails) GetClassificationOk() (*string, bool)` + +GetClassificationOk returns a tuple with the Classification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassification + +`func (o *AlarmAssetDetails) SetClassification(v string)` + +SetClassification sets Classification field to given value. + +### HasClassification + +`func (o *AlarmAssetDetails) HasClassification() bool` + +HasClassification returns a boolean if a field has been set. + +### GetId + +`func (o *AlarmAssetDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlarmAssetDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlarmAssetDetails) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlarmAssetDetails) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetType + +`func (o *AlarmAssetDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlarmAssetDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlarmAssetDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AlarmAssetDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlarmCurrentValueDetails.md b/services/smartview/docs/AlarmCurrentValueDetails.md new file mode 100644 index 00000000..9947f46d --- /dev/null +++ b/services/smartview/docs/AlarmCurrentValueDetails.md @@ -0,0 +1,108 @@ +# AlarmCurrentValueDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | current value type | [optional] +**Unit** | Pointer to **string** | current value unit | [optional] +**Value** | Pointer to **string** | current value value | [optional] + +## Methods + +### NewAlarmCurrentValueDetails + +`func NewAlarmCurrentValueDetails() *AlarmCurrentValueDetails` + +NewAlarmCurrentValueDetails instantiates a new AlarmCurrentValueDetails 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 + +### NewAlarmCurrentValueDetailsWithDefaults + +`func NewAlarmCurrentValueDetailsWithDefaults() *AlarmCurrentValueDetails` + +NewAlarmCurrentValueDetailsWithDefaults instantiates a new AlarmCurrentValueDetails 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 + +### GetType + +`func (o *AlarmCurrentValueDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlarmCurrentValueDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlarmCurrentValueDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AlarmCurrentValueDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUnit + +`func (o *AlarmCurrentValueDetails) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *AlarmCurrentValueDetails) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *AlarmCurrentValueDetails) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *AlarmCurrentValueDetails) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetValue + +`func (o *AlarmCurrentValueDetails) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AlarmCurrentValueDetails) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AlarmCurrentValueDetails) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AlarmCurrentValueDetails) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlarmMessageData.md b/services/smartview/docs/AlarmMessageData.md new file mode 100644 index 00000000..e8347115 --- /dev/null +++ b/services/smartview/docs/AlarmMessageData.md @@ -0,0 +1,72 @@ +# AlarmMessageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Alarm**](Alarm.md) | | +**Type** | **string** | message type | [default to "system-alert"] + +## Methods + +### NewAlarmMessageData + +`func NewAlarmMessageData(data Alarm, type_ string, ) *AlarmMessageData` + +NewAlarmMessageData instantiates a new AlarmMessageData 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 + +### NewAlarmMessageDataWithDefaults + +`func NewAlarmMessageDataWithDefaults() *AlarmMessageData` + +NewAlarmMessageDataWithDefaults instantiates a new AlarmMessageData 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 *AlarmMessageData) GetData() Alarm` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AlarmMessageData) GetDataOk() (*Alarm, 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 *AlarmMessageData) SetData(v Alarm)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *AlarmMessageData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlarmMessageData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlarmMessageData) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlarmStatusDetails.md b/services/smartview/docs/AlarmStatusDetails.md new file mode 100644 index 00000000..653e57d9 --- /dev/null +++ b/services/smartview/docs/AlarmStatusDetails.md @@ -0,0 +1,134 @@ +# AlarmStatusDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Acknowledged** | Pointer to **bool** | status acknowledged | [optional] +**AcknowledgementTime** | Pointer to **string** | status acknowledgement time | [optional] +**Active** | Pointer to **bool** | status active | [optional] +**Cleared** | Pointer to **bool** | status cleared | [optional] + +## Methods + +### NewAlarmStatusDetails + +`func NewAlarmStatusDetails() *AlarmStatusDetails` + +NewAlarmStatusDetails instantiates a new AlarmStatusDetails 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 + +### NewAlarmStatusDetailsWithDefaults + +`func NewAlarmStatusDetailsWithDefaults() *AlarmStatusDetails` + +NewAlarmStatusDetailsWithDefaults instantiates a new AlarmStatusDetails 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 + +### GetAcknowledged + +`func (o *AlarmStatusDetails) GetAcknowledged() bool` + +GetAcknowledged returns the Acknowledged field if non-nil, zero value otherwise. + +### GetAcknowledgedOk + +`func (o *AlarmStatusDetails) GetAcknowledgedOk() (*bool, bool)` + +GetAcknowledgedOk returns a tuple with the Acknowledged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcknowledged + +`func (o *AlarmStatusDetails) SetAcknowledged(v bool)` + +SetAcknowledged sets Acknowledged field to given value. + +### HasAcknowledged + +`func (o *AlarmStatusDetails) HasAcknowledged() bool` + +HasAcknowledged returns a boolean if a field has been set. + +### GetAcknowledgementTime + +`func (o *AlarmStatusDetails) GetAcknowledgementTime() string` + +GetAcknowledgementTime returns the AcknowledgementTime field if non-nil, zero value otherwise. + +### GetAcknowledgementTimeOk + +`func (o *AlarmStatusDetails) GetAcknowledgementTimeOk() (*string, bool)` + +GetAcknowledgementTimeOk returns a tuple with the AcknowledgementTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcknowledgementTime + +`func (o *AlarmStatusDetails) SetAcknowledgementTime(v string)` + +SetAcknowledgementTime sets AcknowledgementTime field to given value. + +### HasAcknowledgementTime + +`func (o *AlarmStatusDetails) HasAcknowledgementTime() bool` + +HasAcknowledgementTime returns a boolean if a field has been set. + +### GetActive + +`func (o *AlarmStatusDetails) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *AlarmStatusDetails) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *AlarmStatusDetails) SetActive(v bool)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *AlarmStatusDetails) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetCleared + +`func (o *AlarmStatusDetails) GetCleared() bool` + +GetCleared returns the Cleared field if non-nil, zero value otherwise. + +### GetClearedOk + +`func (o *AlarmStatusDetails) GetClearedOk() (*bool, bool)` + +GetClearedOk returns a tuple with the Cleared field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCleared + +`func (o *AlarmStatusDetails) SetCleared(v bool)` + +SetCleared sets Cleared field to given value. + +### HasCleared + +`func (o *AlarmStatusDetails) HasCleared() bool` + +HasCleared returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlarmTagDetails.md b/services/smartview/docs/AlarmTagDetails.md new file mode 100644 index 00000000..1dab7ef0 --- /dev/null +++ b/services/smartview/docs/AlarmTagDetails.md @@ -0,0 +1,82 @@ +# AlarmTagDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | tag display name | [optional] +**Id** | Pointer to **string** | tag id | [optional] + +## Methods + +### NewAlarmTagDetails + +`func NewAlarmTagDetails() *AlarmTagDetails` + +NewAlarmTagDetails instantiates a new AlarmTagDetails 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 + +### NewAlarmTagDetailsWithDefaults + +`func NewAlarmTagDetailsWithDefaults() *AlarmTagDetails` + +NewAlarmTagDetailsWithDefaults instantiates a new AlarmTagDetails 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 + +### GetDisplayName + +`func (o *AlarmTagDetails) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *AlarmTagDetails) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *AlarmTagDetails) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *AlarmTagDetails) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *AlarmTagDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlarmTagDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlarmTagDetails) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlarmTagDetails) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlarmThresholdDetails.md b/services/smartview/docs/AlarmThresholdDetails.md new file mode 100644 index 00000000..f1185909 --- /dev/null +++ b/services/smartview/docs/AlarmThresholdDetails.md @@ -0,0 +1,108 @@ +# AlarmThresholdDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | threshold message | [optional] +**StateLimit** | Pointer to **string** | threshold state limit | [optional] +**Unit** | Pointer to **string** | threshold unit | [optional] + +## Methods + +### NewAlarmThresholdDetails + +`func NewAlarmThresholdDetails() *AlarmThresholdDetails` + +NewAlarmThresholdDetails instantiates a new AlarmThresholdDetails 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 + +### NewAlarmThresholdDetailsWithDefaults + +`func NewAlarmThresholdDetailsWithDefaults() *AlarmThresholdDetails` + +NewAlarmThresholdDetailsWithDefaults instantiates a new AlarmThresholdDetails 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 + +### GetMessage + +`func (o *AlarmThresholdDetails) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *AlarmThresholdDetails) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *AlarmThresholdDetails) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *AlarmThresholdDetails) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetStateLimit + +`func (o *AlarmThresholdDetails) GetStateLimit() string` + +GetStateLimit returns the StateLimit field if non-nil, zero value otherwise. + +### GetStateLimitOk + +`func (o *AlarmThresholdDetails) GetStateLimitOk() (*string, bool)` + +GetStateLimitOk returns a tuple with the StateLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateLimit + +`func (o *AlarmThresholdDetails) SetStateLimit(v string)` + +SetStateLimit sets StateLimit field to given value. + +### HasStateLimit + +`func (o *AlarmThresholdDetails) HasStateLimit() bool` + +HasStateLimit returns a boolean if a field has been set. + +### GetUnit + +`func (o *AlarmThresholdDetails) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *AlarmThresholdDetails) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *AlarmThresholdDetails) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *AlarmThresholdDetails) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Alert.md b/services/smartview/docs/Alert.md new file mode 100644 index 00000000..0e52c2eb --- /dev/null +++ b/services/smartview/docs/Alert.md @@ -0,0 +1,369 @@ +# Alert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Asset** | [**AlertAssetDetails**](AlertAssetDetails.md) | | +**Conditional** | Pointer to **string** | conditional | [optional] +**DataQuality** | Pointer to **string** | data quality: Good | Bad | Uncertain | [optional] +**EventType** | Pointer to **string** | event type | [optional] +**Heartbeat** | Pointer to **bool** | heartbeat | [optional] +**Ibx** | **string** | ibx | +**Id** | Pointer to **string** | id | [optional] +**Region** | Pointer to **string** | region | [optional] +**StreamId** | **string** | unique message id | +**Tag** | [**AlertTagDetails**](AlertTagDetails.md) | | +**Threshold** | [**AlertThresholdDetails**](AlertThresholdDetails.md) | | +**TriggeredTime** | Pointer to **string** | alert triggered time | [optional] +**Type** | Pointer to **string** | type | [optional] +**TypeId** | Pointer to **string** | type id | [optional] + +## Methods + +### NewAlert + +`func NewAlert(asset AlertAssetDetails, ibx string, streamId string, tag AlertTagDetails, threshold AlertThresholdDetails, ) *Alert` + +NewAlert instantiates a new Alert 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 + +### NewAlertWithDefaults + +`func NewAlertWithDefaults() *Alert` + +NewAlertWithDefaults instantiates a new Alert 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 + +### GetAsset + +`func (o *Alert) GetAsset() AlertAssetDetails` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *Alert) GetAssetOk() (*AlertAssetDetails, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *Alert) SetAsset(v AlertAssetDetails)` + +SetAsset sets Asset field to given value. + + +### GetConditional + +`func (o *Alert) GetConditional() string` + +GetConditional returns the Conditional field if non-nil, zero value otherwise. + +### GetConditionalOk + +`func (o *Alert) GetConditionalOk() (*string, bool)` + +GetConditionalOk returns a tuple with the Conditional field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditional + +`func (o *Alert) SetConditional(v string)` + +SetConditional sets Conditional field to given value. + +### HasConditional + +`func (o *Alert) HasConditional() bool` + +HasConditional returns a boolean if a field has been set. + +### GetDataQuality + +`func (o *Alert) GetDataQuality() string` + +GetDataQuality returns the DataQuality field if non-nil, zero value otherwise. + +### GetDataQualityOk + +`func (o *Alert) GetDataQualityOk() (*string, bool)` + +GetDataQualityOk returns a tuple with the DataQuality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataQuality + +`func (o *Alert) SetDataQuality(v string)` + +SetDataQuality sets DataQuality field to given value. + +### HasDataQuality + +`func (o *Alert) HasDataQuality() bool` + +HasDataQuality returns a boolean if a field has been set. + +### GetEventType + +`func (o *Alert) GetEventType() string` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *Alert) GetEventTypeOk() (*string, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *Alert) SetEventType(v string)` + +SetEventType sets EventType field to given value. + +### HasEventType + +`func (o *Alert) HasEventType() bool` + +HasEventType returns a boolean if a field has been set. + +### GetHeartbeat + +`func (o *Alert) GetHeartbeat() bool` + +GetHeartbeat returns the Heartbeat field if non-nil, zero value otherwise. + +### GetHeartbeatOk + +`func (o *Alert) GetHeartbeatOk() (*bool, bool)` + +GetHeartbeatOk returns a tuple with the Heartbeat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeartbeat + +`func (o *Alert) SetHeartbeat(v bool)` + +SetHeartbeat sets Heartbeat field to given value. + +### HasHeartbeat + +`func (o *Alert) HasHeartbeat() bool` + +HasHeartbeat returns a boolean if a field has been set. + +### GetIbx + +`func (o *Alert) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *Alert) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *Alert) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetId + +`func (o *Alert) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Alert) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Alert) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *Alert) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRegion + +`func (o *Alert) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Alert) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Alert) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Alert) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetStreamId + +`func (o *Alert) GetStreamId() string` + +GetStreamId returns the StreamId field if non-nil, zero value otherwise. + +### GetStreamIdOk + +`func (o *Alert) GetStreamIdOk() (*string, bool)` + +GetStreamIdOk returns a tuple with the StreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamId + +`func (o *Alert) SetStreamId(v string)` + +SetStreamId sets StreamId field to given value. + + +### GetTag + +`func (o *Alert) GetTag() AlertTagDetails` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *Alert) GetTagOk() (*AlertTagDetails, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *Alert) SetTag(v AlertTagDetails)` + +SetTag sets Tag field to given value. + + +### GetThreshold + +`func (o *Alert) GetThreshold() AlertThresholdDetails` + +GetThreshold returns the Threshold field if non-nil, zero value otherwise. + +### GetThresholdOk + +`func (o *Alert) GetThresholdOk() (*AlertThresholdDetails, bool)` + +GetThresholdOk returns a tuple with the Threshold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThreshold + +`func (o *Alert) SetThreshold(v AlertThresholdDetails)` + +SetThreshold sets Threshold field to given value. + + +### GetTriggeredTime + +`func (o *Alert) GetTriggeredTime() string` + +GetTriggeredTime returns the TriggeredTime field if non-nil, zero value otherwise. + +### GetTriggeredTimeOk + +`func (o *Alert) GetTriggeredTimeOk() (*string, bool)` + +GetTriggeredTimeOk returns a tuple with the TriggeredTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredTime + +`func (o *Alert) SetTriggeredTime(v string)` + +SetTriggeredTime sets TriggeredTime field to given value. + +### HasTriggeredTime + +`func (o *Alert) HasTriggeredTime() bool` + +HasTriggeredTime returns a boolean if a field has been set. + +### GetType + +`func (o *Alert) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Alert) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Alert) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Alert) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetTypeId + +`func (o *Alert) GetTypeId() string` + +GetTypeId returns the TypeId field if non-nil, zero value otherwise. + +### GetTypeIdOk + +`func (o *Alert) GetTypeIdOk() (*string, bool)` + +GetTypeIdOk returns a tuple with the TypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeId + +`func (o *Alert) SetTypeId(v string)` + +SetTypeId sets TypeId field to given value. + +### HasTypeId + +`func (o *Alert) HasTypeId() bool` + +HasTypeId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertActivityLog.md b/services/smartview/docs/AlertActivityLog.md new file mode 100644 index 00000000..d0653946 --- /dev/null +++ b/services/smartview/docs/AlertActivityLog.md @@ -0,0 +1,82 @@ +# AlertActivityLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**[]AlertActivityLogObj**](AlertActivityLogObj.md) | | [optional] +**Status** | Pointer to [**Status**](Status.md) | | [optional] + +## Methods + +### NewAlertActivityLog + +`func NewAlertActivityLog() *AlertActivityLog` + +NewAlertActivityLog instantiates a new AlertActivityLog 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 + +### NewAlertActivityLogWithDefaults + +`func NewAlertActivityLogWithDefaults() *AlertActivityLog` + +NewAlertActivityLogWithDefaults instantiates a new AlertActivityLog 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 + +### GetPayLoad + +`func (o *AlertActivityLog) GetPayLoad() []AlertActivityLogObj` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *AlertActivityLog) GetPayLoadOk() (*[]AlertActivityLogObj, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *AlertActivityLog) SetPayLoad(v []AlertActivityLogObj)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *AlertActivityLog) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *AlertActivityLog) GetStatus() Status` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AlertActivityLog) GetStatusOk() (*Status, 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 *AlertActivityLog) SetStatus(v Status)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AlertActivityLog) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertActivityLogObj.md b/services/smartview/docs/AlertActivityLogObj.md new file mode 100644 index 00000000..0cf07421 --- /dev/null +++ b/services/smartview/docs/AlertActivityLogObj.md @@ -0,0 +1,82 @@ +# AlertActivityLogObj + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alerts** | Pointer to [**[]AlertDto2**](AlertDto2.md) | | [optional] +**TotalCount** | Pointer to **float32** | totalCount | [optional] + +## Methods + +### NewAlertActivityLogObj + +`func NewAlertActivityLogObj() *AlertActivityLogObj` + +NewAlertActivityLogObj instantiates a new AlertActivityLogObj 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 + +### NewAlertActivityLogObjWithDefaults + +`func NewAlertActivityLogObjWithDefaults() *AlertActivityLogObj` + +NewAlertActivityLogObjWithDefaults instantiates a new AlertActivityLogObj 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 + +### GetAlerts + +`func (o *AlertActivityLogObj) GetAlerts() []AlertDto2` + +GetAlerts returns the Alerts field if non-nil, zero value otherwise. + +### GetAlertsOk + +`func (o *AlertActivityLogObj) GetAlertsOk() (*[]AlertDto2, bool)` + +GetAlertsOk returns a tuple with the Alerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlerts + +`func (o *AlertActivityLogObj) SetAlerts(v []AlertDto2)` + +SetAlerts sets Alerts field to given value. + +### HasAlerts + +`func (o *AlertActivityLogObj) HasAlerts() bool` + +HasAlerts returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *AlertActivityLogObj) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *AlertActivityLogObj) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *AlertActivityLogObj) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *AlertActivityLogObj) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertAssetDetails.md b/services/smartview/docs/AlertAssetDetails.md new file mode 100644 index 00000000..082d87fa --- /dev/null +++ b/services/smartview/docs/AlertAssetDetails.md @@ -0,0 +1,108 @@ +# AlertAssetDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Classification** | Pointer to **string** | asset classification | [optional] +**Id** | Pointer to **string** | asset id | [optional] +**Type** | Pointer to **string** | asset type | [optional] + +## Methods + +### NewAlertAssetDetails + +`func NewAlertAssetDetails() *AlertAssetDetails` + +NewAlertAssetDetails instantiates a new AlertAssetDetails 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 + +### NewAlertAssetDetailsWithDefaults + +`func NewAlertAssetDetailsWithDefaults() *AlertAssetDetails` + +NewAlertAssetDetailsWithDefaults instantiates a new AlertAssetDetails 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 + +### GetClassification + +`func (o *AlertAssetDetails) GetClassification() string` + +GetClassification returns the Classification field if non-nil, zero value otherwise. + +### GetClassificationOk + +`func (o *AlertAssetDetails) GetClassificationOk() (*string, bool)` + +GetClassificationOk returns a tuple with the Classification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassification + +`func (o *AlertAssetDetails) SetClassification(v string)` + +SetClassification sets Classification field to given value. + +### HasClassification + +`func (o *AlertAssetDetails) HasClassification() bool` + +HasClassification returns a boolean if a field has been set. + +### GetId + +`func (o *AlertAssetDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertAssetDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertAssetDetails) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertAssetDetails) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetType + +`func (o *AlertAssetDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlertAssetDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlertAssetDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AlertAssetDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertDto1.md b/services/smartview/docs/AlertDto1.md new file mode 100644 index 00000000..19b4c61a --- /dev/null +++ b/services/smartview/docs/AlertDto1.md @@ -0,0 +1,784 @@ +# AlertDto1 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | | [optional] +**AlertPaused** | Pointer to **bool** | isAlertPaused | [optional] +**AlertType** | Pointer to [**AlertType**](AlertType.md) | | [optional] +**ConditionalAlert** | Pointer to **string** | | [optional] +**Country** | Pointer to **string** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedOn** | Pointer to **float32** | createdOn | [optional] +**CustomerAssets** | Pointer to [**[]CustomerAssets**](CustomerAssets.md) | | [optional] +**EnabledAction** | Pointer to **string** | | [optional] +**FormatedSection** | Pointer to **string** | | [optional] +**HeartbeatType** | Pointer to **string** | | [optional] +**Ibx** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**InfraAssets** | Pointer to [**[]CustomerAssets**](CustomerAssets.md) | | [optional] +**IsDuplicate** | Pointer to **bool** | | [optional] +**LastTriggeredOn** | Pointer to **float32** | lastTriggeredOn | [optional] +**Metro** | Pointer to **string** | | [optional] +**ModifiedOn** | Pointer to **float32** | modifiedOn | [optional] +**Recipients** | Pointer to [**[]RecipientsArray**](RecipientsArray.md) | | [optional] +**Region** | Pointer to **string** | | [optional] +**Section** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**ThresholdUnit** | Pointer to **string** | | [optional] +**ThresholdValue** | Pointer to **string** | | [optional] +**ThresholdValueMax** | Pointer to **string** | | [optional] +**ThresholdValueMin** | Pointer to **string** | | [optional] +**Ucmid** | Pointer to **string** | | [optional] +**Uom** | Pointer to **string** | | [optional] +**UserId** | Pointer to **string** | | [optional] + +## Methods + +### NewAlertDto1 + +`func NewAlertDto1() *AlertDto1` + +NewAlertDto1 instantiates a new AlertDto1 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 + +### NewAlertDto1WithDefaults + +`func NewAlertDto1WithDefaults() *AlertDto1` + +NewAlertDto1WithDefaults instantiates a new AlertDto1 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 + +### GetAccountNo + +`func (o *AlertDto1) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *AlertDto1) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *AlertDto1) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *AlertDto1) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetAlertPaused + +`func (o *AlertDto1) GetAlertPaused() bool` + +GetAlertPaused returns the AlertPaused field if non-nil, zero value otherwise. + +### GetAlertPausedOk + +`func (o *AlertDto1) GetAlertPausedOk() (*bool, bool)` + +GetAlertPausedOk returns a tuple with the AlertPaused field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertPaused + +`func (o *AlertDto1) SetAlertPaused(v bool)` + +SetAlertPaused sets AlertPaused field to given value. + +### HasAlertPaused + +`func (o *AlertDto1) HasAlertPaused() bool` + +HasAlertPaused returns a boolean if a field has been set. + +### GetAlertType + +`func (o *AlertDto1) GetAlertType() AlertType` + +GetAlertType returns the AlertType field if non-nil, zero value otherwise. + +### GetAlertTypeOk + +`func (o *AlertDto1) GetAlertTypeOk() (*AlertType, bool)` + +GetAlertTypeOk returns a tuple with the AlertType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertType + +`func (o *AlertDto1) SetAlertType(v AlertType)` + +SetAlertType sets AlertType field to given value. + +### HasAlertType + +`func (o *AlertDto1) HasAlertType() bool` + +HasAlertType returns a boolean if a field has been set. + +### GetConditionalAlert + +`func (o *AlertDto1) GetConditionalAlert() string` + +GetConditionalAlert returns the ConditionalAlert field if non-nil, zero value otherwise. + +### GetConditionalAlertOk + +`func (o *AlertDto1) GetConditionalAlertOk() (*string, bool)` + +GetConditionalAlertOk returns a tuple with the ConditionalAlert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditionalAlert + +`func (o *AlertDto1) SetConditionalAlert(v string)` + +SetConditionalAlert sets ConditionalAlert field to given value. + +### HasConditionalAlert + +`func (o *AlertDto1) HasConditionalAlert() bool` + +HasConditionalAlert returns a boolean if a field has been set. + +### GetCountry + +`func (o *AlertDto1) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *AlertDto1) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *AlertDto1) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *AlertDto1) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *AlertDto1) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *AlertDto1) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *AlertDto1) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *AlertDto1) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedOn + +`func (o *AlertDto1) GetCreatedOn() float32` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *AlertDto1) GetCreatedOnOk() (*float32, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *AlertDto1) SetCreatedOn(v float32)` + +SetCreatedOn sets CreatedOn field to given value. + +### HasCreatedOn + +`func (o *AlertDto1) HasCreatedOn() bool` + +HasCreatedOn returns a boolean if a field has been set. + +### GetCustomerAssets + +`func (o *AlertDto1) GetCustomerAssets() []CustomerAssets` + +GetCustomerAssets returns the CustomerAssets field if non-nil, zero value otherwise. + +### GetCustomerAssetsOk + +`func (o *AlertDto1) GetCustomerAssetsOk() (*[]CustomerAssets, bool)` + +GetCustomerAssetsOk returns a tuple with the CustomerAssets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerAssets + +`func (o *AlertDto1) SetCustomerAssets(v []CustomerAssets)` + +SetCustomerAssets sets CustomerAssets field to given value. + +### HasCustomerAssets + +`func (o *AlertDto1) HasCustomerAssets() bool` + +HasCustomerAssets returns a boolean if a field has been set. + +### GetEnabledAction + +`func (o *AlertDto1) GetEnabledAction() string` + +GetEnabledAction returns the EnabledAction field if non-nil, zero value otherwise. + +### GetEnabledActionOk + +`func (o *AlertDto1) GetEnabledActionOk() (*string, bool)` + +GetEnabledActionOk returns a tuple with the EnabledAction field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledAction + +`func (o *AlertDto1) SetEnabledAction(v string)` + +SetEnabledAction sets EnabledAction field to given value. + +### HasEnabledAction + +`func (o *AlertDto1) HasEnabledAction() bool` + +HasEnabledAction returns a boolean if a field has been set. + +### GetFormatedSection + +`func (o *AlertDto1) GetFormatedSection() string` + +GetFormatedSection returns the FormatedSection field if non-nil, zero value otherwise. + +### GetFormatedSectionOk + +`func (o *AlertDto1) GetFormatedSectionOk() (*string, bool)` + +GetFormatedSectionOk returns a tuple with the FormatedSection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormatedSection + +`func (o *AlertDto1) SetFormatedSection(v string)` + +SetFormatedSection sets FormatedSection field to given value. + +### HasFormatedSection + +`func (o *AlertDto1) HasFormatedSection() bool` + +HasFormatedSection returns a boolean if a field has been set. + +### GetHeartbeatType + +`func (o *AlertDto1) GetHeartbeatType() string` + +GetHeartbeatType returns the HeartbeatType field if non-nil, zero value otherwise. + +### GetHeartbeatTypeOk + +`func (o *AlertDto1) GetHeartbeatTypeOk() (*string, bool)` + +GetHeartbeatTypeOk returns a tuple with the HeartbeatType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeartbeatType + +`func (o *AlertDto1) SetHeartbeatType(v string)` + +SetHeartbeatType sets HeartbeatType field to given value. + +### HasHeartbeatType + +`func (o *AlertDto1) HasHeartbeatType() bool` + +HasHeartbeatType returns a boolean if a field has been set. + +### GetIbx + +`func (o *AlertDto1) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *AlertDto1) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *AlertDto1) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *AlertDto1) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetId + +`func (o *AlertDto1) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertDto1) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertDto1) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertDto1) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetInfraAssets + +`func (o *AlertDto1) GetInfraAssets() []CustomerAssets` + +GetInfraAssets returns the InfraAssets field if non-nil, zero value otherwise. + +### GetInfraAssetsOk + +`func (o *AlertDto1) GetInfraAssetsOk() (*[]CustomerAssets, bool)` + +GetInfraAssetsOk returns a tuple with the InfraAssets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfraAssets + +`func (o *AlertDto1) SetInfraAssets(v []CustomerAssets)` + +SetInfraAssets sets InfraAssets field to given value. + +### HasInfraAssets + +`func (o *AlertDto1) HasInfraAssets() bool` + +HasInfraAssets returns a boolean if a field has been set. + +### GetIsDuplicate + +`func (o *AlertDto1) GetIsDuplicate() bool` + +GetIsDuplicate returns the IsDuplicate field if non-nil, zero value otherwise. + +### GetIsDuplicateOk + +`func (o *AlertDto1) GetIsDuplicateOk() (*bool, bool)` + +GetIsDuplicateOk returns a tuple with the IsDuplicate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDuplicate + +`func (o *AlertDto1) SetIsDuplicate(v bool)` + +SetIsDuplicate sets IsDuplicate field to given value. + +### HasIsDuplicate + +`func (o *AlertDto1) HasIsDuplicate() bool` + +HasIsDuplicate returns a boolean if a field has been set. + +### GetLastTriggeredOn + +`func (o *AlertDto1) GetLastTriggeredOn() float32` + +GetLastTriggeredOn returns the LastTriggeredOn field if non-nil, zero value otherwise. + +### GetLastTriggeredOnOk + +`func (o *AlertDto1) GetLastTriggeredOnOk() (*float32, bool)` + +GetLastTriggeredOnOk returns a tuple with the LastTriggeredOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastTriggeredOn + +`func (o *AlertDto1) SetLastTriggeredOn(v float32)` + +SetLastTriggeredOn sets LastTriggeredOn field to given value. + +### HasLastTriggeredOn + +`func (o *AlertDto1) HasLastTriggeredOn() bool` + +HasLastTriggeredOn returns a boolean if a field has been set. + +### GetMetro + +`func (o *AlertDto1) GetMetro() string` + +GetMetro returns the Metro field if non-nil, zero value otherwise. + +### GetMetroOk + +`func (o *AlertDto1) GetMetroOk() (*string, bool)` + +GetMetroOk returns a tuple with the Metro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetro + +`func (o *AlertDto1) SetMetro(v string)` + +SetMetro sets Metro field to given value. + +### HasMetro + +`func (o *AlertDto1) HasMetro() bool` + +HasMetro returns a boolean if a field has been set. + +### GetModifiedOn + +`func (o *AlertDto1) GetModifiedOn() float32` + +GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise. + +### GetModifiedOnOk + +`func (o *AlertDto1) GetModifiedOnOk() (*float32, bool)` + +GetModifiedOnOk returns a tuple with the ModifiedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedOn + +`func (o *AlertDto1) SetModifiedOn(v float32)` + +SetModifiedOn sets ModifiedOn field to given value. + +### HasModifiedOn + +`func (o *AlertDto1) HasModifiedOn() bool` + +HasModifiedOn returns a boolean if a field has been set. + +### GetRecipients + +`func (o *AlertDto1) GetRecipients() []RecipientsArray` + +GetRecipients returns the Recipients field if non-nil, zero value otherwise. + +### GetRecipientsOk + +`func (o *AlertDto1) GetRecipientsOk() (*[]RecipientsArray, bool)` + +GetRecipientsOk returns a tuple with the Recipients field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecipients + +`func (o *AlertDto1) SetRecipients(v []RecipientsArray)` + +SetRecipients sets Recipients field to given value. + +### HasRecipients + +`func (o *AlertDto1) HasRecipients() bool` + +HasRecipients returns a boolean if a field has been set. + +### GetRegion + +`func (o *AlertDto1) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *AlertDto1) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *AlertDto1) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *AlertDto1) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetSection + +`func (o *AlertDto1) GetSection() string` + +GetSection returns the Section field if non-nil, zero value otherwise. + +### GetSectionOk + +`func (o *AlertDto1) GetSectionOk() (*string, bool)` + +GetSectionOk returns a tuple with the Section field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSection + +`func (o *AlertDto1) SetSection(v string)` + +SetSection sets Section field to given value. + +### HasSection + +`func (o *AlertDto1) HasSection() bool` + +HasSection returns a boolean if a field has been set. + +### GetStatus + +`func (o *AlertDto1) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AlertDto1) 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 *AlertDto1) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AlertDto1) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetThresholdUnit + +`func (o *AlertDto1) GetThresholdUnit() string` + +GetThresholdUnit returns the ThresholdUnit field if non-nil, zero value otherwise. + +### GetThresholdUnitOk + +`func (o *AlertDto1) GetThresholdUnitOk() (*string, bool)` + +GetThresholdUnitOk returns a tuple with the ThresholdUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdUnit + +`func (o *AlertDto1) SetThresholdUnit(v string)` + +SetThresholdUnit sets ThresholdUnit field to given value. + +### HasThresholdUnit + +`func (o *AlertDto1) HasThresholdUnit() bool` + +HasThresholdUnit returns a boolean if a field has been set. + +### GetThresholdValue + +`func (o *AlertDto1) GetThresholdValue() string` + +GetThresholdValue returns the ThresholdValue field if non-nil, zero value otherwise. + +### GetThresholdValueOk + +`func (o *AlertDto1) GetThresholdValueOk() (*string, bool)` + +GetThresholdValueOk returns a tuple with the ThresholdValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValue + +`func (o *AlertDto1) SetThresholdValue(v string)` + +SetThresholdValue sets ThresholdValue field to given value. + +### HasThresholdValue + +`func (o *AlertDto1) HasThresholdValue() bool` + +HasThresholdValue returns a boolean if a field has been set. + +### GetThresholdValueMax + +`func (o *AlertDto1) GetThresholdValueMax() string` + +GetThresholdValueMax returns the ThresholdValueMax field if non-nil, zero value otherwise. + +### GetThresholdValueMaxOk + +`func (o *AlertDto1) GetThresholdValueMaxOk() (*string, bool)` + +GetThresholdValueMaxOk returns a tuple with the ThresholdValueMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValueMax + +`func (o *AlertDto1) SetThresholdValueMax(v string)` + +SetThresholdValueMax sets ThresholdValueMax field to given value. + +### HasThresholdValueMax + +`func (o *AlertDto1) HasThresholdValueMax() bool` + +HasThresholdValueMax returns a boolean if a field has been set. + +### GetThresholdValueMin + +`func (o *AlertDto1) GetThresholdValueMin() string` + +GetThresholdValueMin returns the ThresholdValueMin field if non-nil, zero value otherwise. + +### GetThresholdValueMinOk + +`func (o *AlertDto1) GetThresholdValueMinOk() (*string, bool)` + +GetThresholdValueMinOk returns a tuple with the ThresholdValueMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValueMin + +`func (o *AlertDto1) SetThresholdValueMin(v string)` + +SetThresholdValueMin sets ThresholdValueMin field to given value. + +### HasThresholdValueMin + +`func (o *AlertDto1) HasThresholdValueMin() bool` + +HasThresholdValueMin returns a boolean if a field has been set. + +### GetUcmid + +`func (o *AlertDto1) GetUcmid() string` + +GetUcmid returns the Ucmid field if non-nil, zero value otherwise. + +### GetUcmidOk + +`func (o *AlertDto1) GetUcmidOk() (*string, bool)` + +GetUcmidOk returns a tuple with the Ucmid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUcmid + +`func (o *AlertDto1) SetUcmid(v string)` + +SetUcmid sets Ucmid field to given value. + +### HasUcmid + +`func (o *AlertDto1) HasUcmid() bool` + +HasUcmid returns a boolean if a field has been set. + +### GetUom + +`func (o *AlertDto1) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *AlertDto1) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *AlertDto1) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *AlertDto1) HasUom() bool` + +HasUom returns a boolean if a field has been set. + +### GetUserId + +`func (o *AlertDto1) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *AlertDto1) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *AlertDto1) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *AlertDto1) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertDto2.md b/services/smartview/docs/AlertDto2.md new file mode 100644 index 00000000..a78b1328 --- /dev/null +++ b/services/smartview/docs/AlertDto2.md @@ -0,0 +1,1018 @@ +# AlertDto2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | | [optional] +**Acknowledge** | Pointer to **bool** | | [optional] +**AffectedCustomerAsset** | Pointer to **string** | | [optional] +**AlertType** | Pointer to [**AlertType**](AlertType.md) | | [optional] +**AlertTypeName** | Pointer to **string** | | [optional] +**Asset** | Pointer to **string** | | [optional] +**Assetclassification** | Pointer to **string** | | [optional] +**Assetname** | Pointer to **string** | | [optional] +**Assettype** | Pointer to **string** | | [optional] +**ConditionalAlert** | Pointer to [**[]ConditionalAlert**](ConditionalAlert.md) | | [optional] +**Country** | Pointer to **string** | | [optional] +**CreatedOn** | Pointer to **float32** | createdOn | [optional] +**Currentvalue** | Pointer to **string** | | [optional] +**Eventtype** | Pointer to **string** | | [optional] +**Ibx** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Lastmaintenance** | Pointer to **string** | | [optional] +**Metro** | Pointer to **string** | | [optional] +**ModifiedOn** | Pointer to **float32** | modifiedOn | [optional] +**NotificationType** | Pointer to **string** | | [optional] +**Region** | Pointer to **string** | | [optional] +**Relatedincidents** | Pointer to **string** | | [optional] +**Resiliency** | Pointer to **string** | | [optional] +**Section** | Pointer to **string** | | [optional] +**Severity** | Pointer to **string** | | [optional] +**Tagid** | Pointer to **string** | | [optional] +**ThresholdUnit** | Pointer to **string** | | [optional] +**ThresholdValue** | Pointer to **string** | | [optional] +**ThresholdValueMax** | Pointer to **string** | | [optional] +**ThresholdValueMin** | Pointer to **string** | | [optional] +**TimeZone** | Pointer to **string** | | [optional] +**Timeacknowledged** | Pointer to **string** | | [optional] +**Timeprocessed** | Pointer to **string** | | [optional] +**TimetriggeredMilisec** | Pointer to **string** | | [optional] +**TriggeredOn** | Pointer to **float32** | lastTriggeredOn | [optional] +**Type** | Pointer to **string** | | [optional] +**Uom** | Pointer to **string** | | [optional] +**Year** | Pointer to **string** | | [optional] + +## Methods + +### NewAlertDto2 + +`func NewAlertDto2() *AlertDto2` + +NewAlertDto2 instantiates a new AlertDto2 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 + +### NewAlertDto2WithDefaults + +`func NewAlertDto2WithDefaults() *AlertDto2` + +NewAlertDto2WithDefaults instantiates a new AlertDto2 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 + +### GetAccountNo + +`func (o *AlertDto2) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *AlertDto2) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *AlertDto2) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *AlertDto2) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetAcknowledge + +`func (o *AlertDto2) GetAcknowledge() bool` + +GetAcknowledge returns the Acknowledge field if non-nil, zero value otherwise. + +### GetAcknowledgeOk + +`func (o *AlertDto2) GetAcknowledgeOk() (*bool, bool)` + +GetAcknowledgeOk returns a tuple with the Acknowledge field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcknowledge + +`func (o *AlertDto2) SetAcknowledge(v bool)` + +SetAcknowledge sets Acknowledge field to given value. + +### HasAcknowledge + +`func (o *AlertDto2) HasAcknowledge() bool` + +HasAcknowledge returns a boolean if a field has been set. + +### GetAffectedCustomerAsset + +`func (o *AlertDto2) GetAffectedCustomerAsset() string` + +GetAffectedCustomerAsset returns the AffectedCustomerAsset field if non-nil, zero value otherwise. + +### GetAffectedCustomerAssetOk + +`func (o *AlertDto2) GetAffectedCustomerAssetOk() (*string, bool)` + +GetAffectedCustomerAssetOk returns a tuple with the AffectedCustomerAsset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAffectedCustomerAsset + +`func (o *AlertDto2) SetAffectedCustomerAsset(v string)` + +SetAffectedCustomerAsset sets AffectedCustomerAsset field to given value. + +### HasAffectedCustomerAsset + +`func (o *AlertDto2) HasAffectedCustomerAsset() bool` + +HasAffectedCustomerAsset returns a boolean if a field has been set. + +### GetAlertType + +`func (o *AlertDto2) GetAlertType() AlertType` + +GetAlertType returns the AlertType field if non-nil, zero value otherwise. + +### GetAlertTypeOk + +`func (o *AlertDto2) GetAlertTypeOk() (*AlertType, bool)` + +GetAlertTypeOk returns a tuple with the AlertType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertType + +`func (o *AlertDto2) SetAlertType(v AlertType)` + +SetAlertType sets AlertType field to given value. + +### HasAlertType + +`func (o *AlertDto2) HasAlertType() bool` + +HasAlertType returns a boolean if a field has been set. + +### GetAlertTypeName + +`func (o *AlertDto2) GetAlertTypeName() string` + +GetAlertTypeName returns the AlertTypeName field if non-nil, zero value otherwise. + +### GetAlertTypeNameOk + +`func (o *AlertDto2) GetAlertTypeNameOk() (*string, bool)` + +GetAlertTypeNameOk returns a tuple with the AlertTypeName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertTypeName + +`func (o *AlertDto2) SetAlertTypeName(v string)` + +SetAlertTypeName sets AlertTypeName field to given value. + +### HasAlertTypeName + +`func (o *AlertDto2) HasAlertTypeName() bool` + +HasAlertTypeName returns a boolean if a field has been set. + +### GetAsset + +`func (o *AlertDto2) GetAsset() string` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *AlertDto2) GetAssetOk() (*string, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *AlertDto2) SetAsset(v string)` + +SetAsset sets Asset field to given value. + +### HasAsset + +`func (o *AlertDto2) HasAsset() bool` + +HasAsset returns a boolean if a field has been set. + +### GetAssetclassification + +`func (o *AlertDto2) GetAssetclassification() string` + +GetAssetclassification returns the Assetclassification field if non-nil, zero value otherwise. + +### GetAssetclassificationOk + +`func (o *AlertDto2) GetAssetclassificationOk() (*string, bool)` + +GetAssetclassificationOk returns a tuple with the Assetclassification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetclassification + +`func (o *AlertDto2) SetAssetclassification(v string)` + +SetAssetclassification sets Assetclassification field to given value. + +### HasAssetclassification + +`func (o *AlertDto2) HasAssetclassification() bool` + +HasAssetclassification returns a boolean if a field has been set. + +### GetAssetname + +`func (o *AlertDto2) GetAssetname() string` + +GetAssetname returns the Assetname field if non-nil, zero value otherwise. + +### GetAssetnameOk + +`func (o *AlertDto2) GetAssetnameOk() (*string, bool)` + +GetAssetnameOk returns a tuple with the Assetname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetname + +`func (o *AlertDto2) SetAssetname(v string)` + +SetAssetname sets Assetname field to given value. + +### HasAssetname + +`func (o *AlertDto2) HasAssetname() bool` + +HasAssetname returns a boolean if a field has been set. + +### GetAssettype + +`func (o *AlertDto2) GetAssettype() string` + +GetAssettype returns the Assettype field if non-nil, zero value otherwise. + +### GetAssettypeOk + +`func (o *AlertDto2) GetAssettypeOk() (*string, bool)` + +GetAssettypeOk returns a tuple with the Assettype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssettype + +`func (o *AlertDto2) SetAssettype(v string)` + +SetAssettype sets Assettype field to given value. + +### HasAssettype + +`func (o *AlertDto2) HasAssettype() bool` + +HasAssettype returns a boolean if a field has been set. + +### GetConditionalAlert + +`func (o *AlertDto2) GetConditionalAlert() []ConditionalAlert` + +GetConditionalAlert returns the ConditionalAlert field if non-nil, zero value otherwise. + +### GetConditionalAlertOk + +`func (o *AlertDto2) GetConditionalAlertOk() (*[]ConditionalAlert, bool)` + +GetConditionalAlertOk returns a tuple with the ConditionalAlert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConditionalAlert + +`func (o *AlertDto2) SetConditionalAlert(v []ConditionalAlert)` + +SetConditionalAlert sets ConditionalAlert field to given value. + +### HasConditionalAlert + +`func (o *AlertDto2) HasConditionalAlert() bool` + +HasConditionalAlert returns a boolean if a field has been set. + +### GetCountry + +`func (o *AlertDto2) GetCountry() string` + +GetCountry returns the Country field if non-nil, zero value otherwise. + +### GetCountryOk + +`func (o *AlertDto2) GetCountryOk() (*string, bool)` + +GetCountryOk returns a tuple with the Country field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCountry + +`func (o *AlertDto2) SetCountry(v string)` + +SetCountry sets Country field to given value. + +### HasCountry + +`func (o *AlertDto2) HasCountry() bool` + +HasCountry returns a boolean if a field has been set. + +### GetCreatedOn + +`func (o *AlertDto2) GetCreatedOn() float32` + +GetCreatedOn returns the CreatedOn field if non-nil, zero value otherwise. + +### GetCreatedOnOk + +`func (o *AlertDto2) GetCreatedOnOk() (*float32, bool)` + +GetCreatedOnOk returns a tuple with the CreatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedOn + +`func (o *AlertDto2) SetCreatedOn(v float32)` + +SetCreatedOn sets CreatedOn field to given value. + +### HasCreatedOn + +`func (o *AlertDto2) HasCreatedOn() bool` + +HasCreatedOn returns a boolean if a field has been set. + +### GetCurrentvalue + +`func (o *AlertDto2) GetCurrentvalue() string` + +GetCurrentvalue returns the Currentvalue field if non-nil, zero value otherwise. + +### GetCurrentvalueOk + +`func (o *AlertDto2) GetCurrentvalueOk() (*string, bool)` + +GetCurrentvalueOk returns a tuple with the Currentvalue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentvalue + +`func (o *AlertDto2) SetCurrentvalue(v string)` + +SetCurrentvalue sets Currentvalue field to given value. + +### HasCurrentvalue + +`func (o *AlertDto2) HasCurrentvalue() bool` + +HasCurrentvalue returns a boolean if a field has been set. + +### GetEventtype + +`func (o *AlertDto2) GetEventtype() string` + +GetEventtype returns the Eventtype field if non-nil, zero value otherwise. + +### GetEventtypeOk + +`func (o *AlertDto2) GetEventtypeOk() (*string, bool)` + +GetEventtypeOk returns a tuple with the Eventtype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventtype + +`func (o *AlertDto2) SetEventtype(v string)` + +SetEventtype sets Eventtype field to given value. + +### HasEventtype + +`func (o *AlertDto2) HasEventtype() bool` + +HasEventtype returns a boolean if a field has been set. + +### GetIbx + +`func (o *AlertDto2) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *AlertDto2) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *AlertDto2) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *AlertDto2) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetId + +`func (o *AlertDto2) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertDto2) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertDto2) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertDto2) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastmaintenance + +`func (o *AlertDto2) GetLastmaintenance() string` + +GetLastmaintenance returns the Lastmaintenance field if non-nil, zero value otherwise. + +### GetLastmaintenanceOk + +`func (o *AlertDto2) GetLastmaintenanceOk() (*string, bool)` + +GetLastmaintenanceOk returns a tuple with the Lastmaintenance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastmaintenance + +`func (o *AlertDto2) SetLastmaintenance(v string)` + +SetLastmaintenance sets Lastmaintenance field to given value. + +### HasLastmaintenance + +`func (o *AlertDto2) HasLastmaintenance() bool` + +HasLastmaintenance returns a boolean if a field has been set. + +### GetMetro + +`func (o *AlertDto2) GetMetro() string` + +GetMetro returns the Metro field if non-nil, zero value otherwise. + +### GetMetroOk + +`func (o *AlertDto2) GetMetroOk() (*string, bool)` + +GetMetroOk returns a tuple with the Metro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetro + +`func (o *AlertDto2) SetMetro(v string)` + +SetMetro sets Metro field to given value. + +### HasMetro + +`func (o *AlertDto2) HasMetro() bool` + +HasMetro returns a boolean if a field has been set. + +### GetModifiedOn + +`func (o *AlertDto2) GetModifiedOn() float32` + +GetModifiedOn returns the ModifiedOn field if non-nil, zero value otherwise. + +### GetModifiedOnOk + +`func (o *AlertDto2) GetModifiedOnOk() (*float32, bool)` + +GetModifiedOnOk returns a tuple with the ModifiedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiedOn + +`func (o *AlertDto2) SetModifiedOn(v float32)` + +SetModifiedOn sets ModifiedOn field to given value. + +### HasModifiedOn + +`func (o *AlertDto2) HasModifiedOn() bool` + +HasModifiedOn returns a boolean if a field has been set. + +### GetNotificationType + +`func (o *AlertDto2) GetNotificationType() string` + +GetNotificationType returns the NotificationType field if non-nil, zero value otherwise. + +### GetNotificationTypeOk + +`func (o *AlertDto2) GetNotificationTypeOk() (*string, bool)` + +GetNotificationTypeOk returns a tuple with the NotificationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotificationType + +`func (o *AlertDto2) SetNotificationType(v string)` + +SetNotificationType sets NotificationType field to given value. + +### HasNotificationType + +`func (o *AlertDto2) HasNotificationType() bool` + +HasNotificationType returns a boolean if a field has been set. + +### GetRegion + +`func (o *AlertDto2) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *AlertDto2) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *AlertDto2) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *AlertDto2) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetRelatedincidents + +`func (o *AlertDto2) GetRelatedincidents() string` + +GetRelatedincidents returns the Relatedincidents field if non-nil, zero value otherwise. + +### GetRelatedincidentsOk + +`func (o *AlertDto2) GetRelatedincidentsOk() (*string, bool)` + +GetRelatedincidentsOk returns a tuple with the Relatedincidents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedincidents + +`func (o *AlertDto2) SetRelatedincidents(v string)` + +SetRelatedincidents sets Relatedincidents field to given value. + +### HasRelatedincidents + +`func (o *AlertDto2) HasRelatedincidents() bool` + +HasRelatedincidents returns a boolean if a field has been set. + +### GetResiliency + +`func (o *AlertDto2) GetResiliency() string` + +GetResiliency returns the Resiliency field if non-nil, zero value otherwise. + +### GetResiliencyOk + +`func (o *AlertDto2) GetResiliencyOk() (*string, bool)` + +GetResiliencyOk returns a tuple with the Resiliency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResiliency + +`func (o *AlertDto2) SetResiliency(v string)` + +SetResiliency sets Resiliency field to given value. + +### HasResiliency + +`func (o *AlertDto2) HasResiliency() bool` + +HasResiliency returns a boolean if a field has been set. + +### GetSection + +`func (o *AlertDto2) GetSection() string` + +GetSection returns the Section field if non-nil, zero value otherwise. + +### GetSectionOk + +`func (o *AlertDto2) GetSectionOk() (*string, bool)` + +GetSectionOk returns a tuple with the Section field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSection + +`func (o *AlertDto2) SetSection(v string)` + +SetSection sets Section field to given value. + +### HasSection + +`func (o *AlertDto2) HasSection() bool` + +HasSection returns a boolean if a field has been set. + +### GetSeverity + +`func (o *AlertDto2) GetSeverity() string` + +GetSeverity returns the Severity field if non-nil, zero value otherwise. + +### GetSeverityOk + +`func (o *AlertDto2) GetSeverityOk() (*string, bool)` + +GetSeverityOk returns a tuple with the Severity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeverity + +`func (o *AlertDto2) SetSeverity(v string)` + +SetSeverity sets Severity field to given value. + +### HasSeverity + +`func (o *AlertDto2) HasSeverity() bool` + +HasSeverity returns a boolean if a field has been set. + +### GetTagid + +`func (o *AlertDto2) GetTagid() string` + +GetTagid returns the Tagid field if non-nil, zero value otherwise. + +### GetTagidOk + +`func (o *AlertDto2) GetTagidOk() (*string, bool)` + +GetTagidOk returns a tuple with the Tagid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagid + +`func (o *AlertDto2) SetTagid(v string)` + +SetTagid sets Tagid field to given value. + +### HasTagid + +`func (o *AlertDto2) HasTagid() bool` + +HasTagid returns a boolean if a field has been set. + +### GetThresholdUnit + +`func (o *AlertDto2) GetThresholdUnit() string` + +GetThresholdUnit returns the ThresholdUnit field if non-nil, zero value otherwise. + +### GetThresholdUnitOk + +`func (o *AlertDto2) GetThresholdUnitOk() (*string, bool)` + +GetThresholdUnitOk returns a tuple with the ThresholdUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdUnit + +`func (o *AlertDto2) SetThresholdUnit(v string)` + +SetThresholdUnit sets ThresholdUnit field to given value. + +### HasThresholdUnit + +`func (o *AlertDto2) HasThresholdUnit() bool` + +HasThresholdUnit returns a boolean if a field has been set. + +### GetThresholdValue + +`func (o *AlertDto2) GetThresholdValue() string` + +GetThresholdValue returns the ThresholdValue field if non-nil, zero value otherwise. + +### GetThresholdValueOk + +`func (o *AlertDto2) GetThresholdValueOk() (*string, bool)` + +GetThresholdValueOk returns a tuple with the ThresholdValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValue + +`func (o *AlertDto2) SetThresholdValue(v string)` + +SetThresholdValue sets ThresholdValue field to given value. + +### HasThresholdValue + +`func (o *AlertDto2) HasThresholdValue() bool` + +HasThresholdValue returns a boolean if a field has been set. + +### GetThresholdValueMax + +`func (o *AlertDto2) GetThresholdValueMax() string` + +GetThresholdValueMax returns the ThresholdValueMax field if non-nil, zero value otherwise. + +### GetThresholdValueMaxOk + +`func (o *AlertDto2) GetThresholdValueMaxOk() (*string, bool)` + +GetThresholdValueMaxOk returns a tuple with the ThresholdValueMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValueMax + +`func (o *AlertDto2) SetThresholdValueMax(v string)` + +SetThresholdValueMax sets ThresholdValueMax field to given value. + +### HasThresholdValueMax + +`func (o *AlertDto2) HasThresholdValueMax() bool` + +HasThresholdValueMax returns a boolean if a field has been set. + +### GetThresholdValueMin + +`func (o *AlertDto2) GetThresholdValueMin() string` + +GetThresholdValueMin returns the ThresholdValueMin field if non-nil, zero value otherwise. + +### GetThresholdValueMinOk + +`func (o *AlertDto2) GetThresholdValueMinOk() (*string, bool)` + +GetThresholdValueMinOk returns a tuple with the ThresholdValueMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValueMin + +`func (o *AlertDto2) SetThresholdValueMin(v string)` + +SetThresholdValueMin sets ThresholdValueMin field to given value. + +### HasThresholdValueMin + +`func (o *AlertDto2) HasThresholdValueMin() bool` + +HasThresholdValueMin returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *AlertDto2) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *AlertDto2) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *AlertDto2) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *AlertDto2) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### GetTimeacknowledged + +`func (o *AlertDto2) GetTimeacknowledged() string` + +GetTimeacknowledged returns the Timeacknowledged field if non-nil, zero value otherwise. + +### GetTimeacknowledgedOk + +`func (o *AlertDto2) GetTimeacknowledgedOk() (*string, bool)` + +GetTimeacknowledgedOk returns a tuple with the Timeacknowledged field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeacknowledged + +`func (o *AlertDto2) SetTimeacknowledged(v string)` + +SetTimeacknowledged sets Timeacknowledged field to given value. + +### HasTimeacknowledged + +`func (o *AlertDto2) HasTimeacknowledged() bool` + +HasTimeacknowledged returns a boolean if a field has been set. + +### GetTimeprocessed + +`func (o *AlertDto2) GetTimeprocessed() string` + +GetTimeprocessed returns the Timeprocessed field if non-nil, zero value otherwise. + +### GetTimeprocessedOk + +`func (o *AlertDto2) GetTimeprocessedOk() (*string, bool)` + +GetTimeprocessedOk returns a tuple with the Timeprocessed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeprocessed + +`func (o *AlertDto2) SetTimeprocessed(v string)` + +SetTimeprocessed sets Timeprocessed field to given value. + +### HasTimeprocessed + +`func (o *AlertDto2) HasTimeprocessed() bool` + +HasTimeprocessed returns a boolean if a field has been set. + +### GetTimetriggeredMilisec + +`func (o *AlertDto2) GetTimetriggeredMilisec() string` + +GetTimetriggeredMilisec returns the TimetriggeredMilisec field if non-nil, zero value otherwise. + +### GetTimetriggeredMilisecOk + +`func (o *AlertDto2) GetTimetriggeredMilisecOk() (*string, bool)` + +GetTimetriggeredMilisecOk returns a tuple with the TimetriggeredMilisec field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimetriggeredMilisec + +`func (o *AlertDto2) SetTimetriggeredMilisec(v string)` + +SetTimetriggeredMilisec sets TimetriggeredMilisec field to given value. + +### HasTimetriggeredMilisec + +`func (o *AlertDto2) HasTimetriggeredMilisec() bool` + +HasTimetriggeredMilisec returns a boolean if a field has been set. + +### GetTriggeredOn + +`func (o *AlertDto2) GetTriggeredOn() float32` + +GetTriggeredOn returns the TriggeredOn field if non-nil, zero value otherwise. + +### GetTriggeredOnOk + +`func (o *AlertDto2) GetTriggeredOnOk() (*float32, bool)` + +GetTriggeredOnOk returns a tuple with the TriggeredOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredOn + +`func (o *AlertDto2) SetTriggeredOn(v float32)` + +SetTriggeredOn sets TriggeredOn field to given value. + +### HasTriggeredOn + +`func (o *AlertDto2) HasTriggeredOn() bool` + +HasTriggeredOn returns a boolean if a field has been set. + +### GetType + +`func (o *AlertDto2) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlertDto2) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlertDto2) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AlertDto2) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUom + +`func (o *AlertDto2) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *AlertDto2) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *AlertDto2) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *AlertDto2) HasUom() bool` + +HasUom returns a boolean if a field has been set. + +### GetYear + +`func (o *AlertDto2) GetYear() string` + +GetYear returns the Year field if non-nil, zero value otherwise. + +### GetYearOk + +`func (o *AlertDto2) GetYearOk() (*string, bool)` + +GetYearOk returns a tuple with the Year field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetYear + +`func (o *AlertDto2) SetYear(v string)` + +SetYear sets Year field to given value. + +### HasYear + +`func (o *AlertDto2) HasYear() bool` + +HasYear returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertLogApi.md b/services/smartview/docs/AlertLogApi.md new file mode 100644 index 00000000..fa5f3b3c --- /dev/null +++ b/services/smartview/docs/AlertLogApi.md @@ -0,0 +1,93 @@ +# \AlertLogApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAlertActivityLog**](AlertLogApi.md#GetAlertActivityLog) | **Get** /smartview/v1/alerts/getAlertActivityLog | get alert activity logs + + + +## GetAlertActivityLog + +> AlertActivityLog GetAlertActivityLog(ctx).Authorization(authorization).PageNum(pageNum).Limit(limit).Ibx(ibx).Category(category).EventType(eventType).IsAcknowledged(isAcknowledged).AccountNo(accountNo).OrderBy(orderBy).SortBy(sortBy).Execute() + +get alert activity logs + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + pageNum := "pageNum_example" // string | Page Number + limit := "limit_example" // string | Limit + ibx := "ibx_example" // string | IBX (optional) + category := "category_example" // string | Category (optional) + eventType := "eventType_example" // string | Event Type (optional) + isAcknowledged := "isAcknowledged_example" // string | Is Acknowledged (optional) + accountNo := "accountNo_example" // string | Account Number (optional) + orderBy := "orderBy_example" // string | order by ascending or descending (optional) + sortBy := "sortBy_example" // string | sortBy value (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AlertLogApi.GetAlertActivityLog(context.Background()).Authorization(authorization).PageNum(pageNum).Limit(limit).Ibx(ibx).Category(category).EventType(eventType).IsAcknowledged(isAcknowledged).AccountNo(accountNo).OrderBy(orderBy).SortBy(sortBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AlertLogApi.GetAlertActivityLog``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlertActivityLog`: AlertActivityLog + fmt.Fprintf(os.Stdout, "Response from `AlertLogApi.GetAlertActivityLog`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertActivityLogRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **pageNum** | **string** | Page Number | + **limit** | **string** | Limit | + **ibx** | **string** | IBX | + **category** | **string** | Category | + **eventType** | **string** | Event Type | + **isAcknowledged** | **string** | Is Acknowledged | + **accountNo** | **string** | Account Number | + **orderBy** | **string** | order by ascending or descending | + **sortBy** | **string** | sortBy value | + +### Return type + +[**AlertActivityLog**](AlertActivityLog.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/AlertMessageData.md b/services/smartview/docs/AlertMessageData.md new file mode 100644 index 00000000..161a1954 --- /dev/null +++ b/services/smartview/docs/AlertMessageData.md @@ -0,0 +1,72 @@ +# AlertMessageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Alert**](Alert.md) | | +**Type** | **string** | message type | [default to "custom-alert"] + +## Methods + +### NewAlertMessageData + +`func NewAlertMessageData(data Alert, type_ string, ) *AlertMessageData` + +NewAlertMessageData instantiates a new AlertMessageData 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 + +### NewAlertMessageDataWithDefaults + +`func NewAlertMessageDataWithDefaults() *AlertMessageData` + +NewAlertMessageDataWithDefaults instantiates a new AlertMessageData 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 *AlertMessageData) GetData() Alert` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AlertMessageData) GetDataOk() (*Alert, 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 *AlertMessageData) SetData(v Alert)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *AlertMessageData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlertMessageData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlertMessageData) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertObj.md b/services/smartview/docs/AlertObj.md new file mode 100644 index 00000000..adbae104 --- /dev/null +++ b/services/smartview/docs/AlertObj.md @@ -0,0 +1,82 @@ +# AlertObj + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alerts** | Pointer to [**[]AlertDto1**](AlertDto1.md) | | [optional] +**TotalCount** | Pointer to **float32** | totalCount | [optional] + +## Methods + +### NewAlertObj + +`func NewAlertObj() *AlertObj` + +NewAlertObj instantiates a new AlertObj 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 + +### NewAlertObjWithDefaults + +`func NewAlertObjWithDefaults() *AlertObj` + +NewAlertObjWithDefaults instantiates a new AlertObj 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 + +### GetAlerts + +`func (o *AlertObj) GetAlerts() []AlertDto1` + +GetAlerts returns the Alerts field if non-nil, zero value otherwise. + +### GetAlertsOk + +`func (o *AlertObj) GetAlertsOk() (*[]AlertDto1, bool)` + +GetAlertsOk returns a tuple with the Alerts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlerts + +`func (o *AlertObj) SetAlerts(v []AlertDto1)` + +SetAlerts sets Alerts field to given value. + +### HasAlerts + +`func (o *AlertObj) HasAlerts() bool` + +HasAlerts returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *AlertObj) GetTotalCount() float32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *AlertObj) GetTotalCountOk() (*float32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *AlertObj) SetTotalCount(v float32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *AlertObj) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertTagDetails.md b/services/smartview/docs/AlertTagDetails.md new file mode 100644 index 00000000..a4c1a106 --- /dev/null +++ b/services/smartview/docs/AlertTagDetails.md @@ -0,0 +1,56 @@ +# AlertTagDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | tag id | [optional] + +## Methods + +### NewAlertTagDetails + +`func NewAlertTagDetails() *AlertTagDetails` + +NewAlertTagDetails instantiates a new AlertTagDetails 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 + +### NewAlertTagDetailsWithDefaults + +`func NewAlertTagDetailsWithDefaults() *AlertTagDetails` + +NewAlertTagDetailsWithDefaults instantiates a new AlertTagDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AlertTagDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertTagDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertTagDetails) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertTagDetails) HasId() bool` + +HasId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertThresholdDetails.md b/services/smartview/docs/AlertThresholdDetails.md new file mode 100644 index 00000000..8ae55f8a --- /dev/null +++ b/services/smartview/docs/AlertThresholdDetails.md @@ -0,0 +1,134 @@ +# AlertThresholdDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxValue** | Pointer to **string** | threshold max value | [optional] +**MinValue** | Pointer to **string** | threshold min value | [optional] +**Unit** | Pointer to **string** | threshold unit | [optional] +**Value** | Pointer to **string** | threshold value | [optional] + +## Methods + +### NewAlertThresholdDetails + +`func NewAlertThresholdDetails() *AlertThresholdDetails` + +NewAlertThresholdDetails instantiates a new AlertThresholdDetails 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 + +### NewAlertThresholdDetailsWithDefaults + +`func NewAlertThresholdDetailsWithDefaults() *AlertThresholdDetails` + +NewAlertThresholdDetailsWithDefaults instantiates a new AlertThresholdDetails 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 + +### GetMaxValue + +`func (o *AlertThresholdDetails) GetMaxValue() string` + +GetMaxValue returns the MaxValue field if non-nil, zero value otherwise. + +### GetMaxValueOk + +`func (o *AlertThresholdDetails) GetMaxValueOk() (*string, bool)` + +GetMaxValueOk returns a tuple with the MaxValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxValue + +`func (o *AlertThresholdDetails) SetMaxValue(v string)` + +SetMaxValue sets MaxValue field to given value. + +### HasMaxValue + +`func (o *AlertThresholdDetails) HasMaxValue() bool` + +HasMaxValue returns a boolean if a field has been set. + +### GetMinValue + +`func (o *AlertThresholdDetails) GetMinValue() string` + +GetMinValue returns the MinValue field if non-nil, zero value otherwise. + +### GetMinValueOk + +`func (o *AlertThresholdDetails) GetMinValueOk() (*string, bool)` + +GetMinValueOk returns a tuple with the MinValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinValue + +`func (o *AlertThresholdDetails) SetMinValue(v string)` + +SetMinValue sets MinValue field to given value. + +### HasMinValue + +`func (o *AlertThresholdDetails) HasMinValue() bool` + +HasMinValue returns a boolean if a field has been set. + +### GetUnit + +`func (o *AlertThresholdDetails) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *AlertThresholdDetails) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *AlertThresholdDetails) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *AlertThresholdDetails) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetValue + +`func (o *AlertThresholdDetails) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AlertThresholdDetails) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AlertThresholdDetails) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AlertThresholdDetails) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertType.md b/services/smartview/docs/AlertType.md new file mode 100644 index 00000000..efec082e --- /dev/null +++ b/services/smartview/docs/AlertType.md @@ -0,0 +1,212 @@ +# AlertType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultValue** | Pointer to **string** | | [optional] +**EventType** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**TagId** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**Unit** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewAlertType + +`func NewAlertType() *AlertType` + +NewAlertType instantiates a new AlertType 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 + +### NewAlertTypeWithDefaults + +`func NewAlertTypeWithDefaults() *AlertType` + +NewAlertTypeWithDefaults instantiates a new AlertType 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 + +### GetDefaultValue + +`func (o *AlertType) GetDefaultValue() string` + +GetDefaultValue returns the DefaultValue field if non-nil, zero value otherwise. + +### GetDefaultValueOk + +`func (o *AlertType) GetDefaultValueOk() (*string, bool)` + +GetDefaultValueOk returns a tuple with the DefaultValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultValue + +`func (o *AlertType) SetDefaultValue(v string)` + +SetDefaultValue sets DefaultValue field to given value. + +### HasDefaultValue + +`func (o *AlertType) HasDefaultValue() bool` + +HasDefaultValue returns a boolean if a field has been set. + +### GetEventType + +`func (o *AlertType) GetEventType() string` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *AlertType) GetEventTypeOk() (*string, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *AlertType) SetEventType(v string)` + +SetEventType sets EventType field to given value. + +### HasEventType + +`func (o *AlertType) HasEventType() bool` + +HasEventType returns a boolean if a field has been set. + +### GetId + +`func (o *AlertType) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AlertType) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AlertType) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AlertType) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetTagId + +`func (o *AlertType) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *AlertType) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *AlertType) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *AlertType) HasTagId() bool` + +HasTagId returns a boolean if a field has been set. + +### GetType + +`func (o *AlertType) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AlertType) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AlertType) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AlertType) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUnit + +`func (o *AlertType) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *AlertType) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *AlertType) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *AlertType) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetValue + +`func (o *AlertType) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *AlertType) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *AlertType) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *AlertType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Alerts.md b/services/smartview/docs/Alerts.md new file mode 100644 index 00000000..d4023b55 --- /dev/null +++ b/services/smartview/docs/Alerts.md @@ -0,0 +1,82 @@ +# Alerts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**[]AlertObj**](AlertObj.md) | | [optional] +**Status** | Pointer to [**Status**](Status.md) | | [optional] + +## Methods + +### NewAlerts + +`func NewAlerts() *Alerts` + +NewAlerts instantiates a new Alerts 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 + +### NewAlertsWithDefaults + +`func NewAlertsWithDefaults() *Alerts` + +NewAlertsWithDefaults instantiates a new Alerts 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 + +### GetPayLoad + +`func (o *Alerts) GetPayLoad() []AlertObj` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *Alerts) GetPayLoadOk() (*[]AlertObj, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *Alerts) SetPayLoad(v []AlertObj)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *Alerts) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *Alerts) GetStatus() Status` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Alerts) GetStatusOk() (*Status, 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 *Alerts) SetStatus(v Status)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Alerts) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AlertsApi.md b/services/smartview/docs/AlertsApi.md new file mode 100644 index 00000000..86743872 --- /dev/null +++ b/services/smartview/docs/AlertsApi.md @@ -0,0 +1,91 @@ +# \AlertsApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAlerts**](AlertsApi.md#GetAlerts) | **Get** /smartview/v1/alerts/getAlerts | obtain active SmartView alerts. + + + +## GetAlerts + +> Alerts GetAlerts(ctx).Authorization(authorization).PageNum(pageNum).Limit(limit).Ibx(ibx).Category(category).EventType(eventType).AccountNo(accountNo).OrderBy(orderBy).SortBy(sortBy).Execute() + +obtain active SmartView alerts. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + pageNum := "pageNum_example" // string | Page Number + limit := "limit_example" // string | Limit + ibx := "ibx_example" // string | IBX (optional) + category := "category_example" // string | Category (optional) + eventType := "eventType_example" // string | Event Type. (optional) + accountNo := "accountNo_example" // string | Account Number (optional) + orderBy := "orderBy_example" // string | order by ascending or descending (optional) + sortBy := "sortBy_example" // string | sortBy value (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AlertsApi.GetAlerts(context.Background()).Authorization(authorization).PageNum(pageNum).Limit(limit).Ibx(ibx).Category(category).EventType(eventType).AccountNo(accountNo).OrderBy(orderBy).SortBy(sortBy).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AlertsApi.GetAlerts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAlerts`: Alerts + fmt.Fprintf(os.Stdout, "Response from `AlertsApi.GetAlerts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAlertsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **pageNum** | **string** | Page Number | + **limit** | **string** | Limit | + **ibx** | **string** | IBX | + **category** | **string** | Category | + **eventType** | **string** | Event Type. | + **accountNo** | **string** | Account Number | + **orderBy** | **string** | order by ascending or descending | + **sortBy** | **string** | sortBy value | + +### Return type + +[**Alerts**](Alerts.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/ApiError.md b/services/smartview/docs/ApiError.md new file mode 100644 index 00000000..6258a0c4 --- /dev/null +++ b/services/smartview/docs/ApiError.md @@ -0,0 +1,186 @@ +# ApiError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AdditionalInfo** | Pointer to [**ApiErrorAdditionalInfo**](ApiErrorAdditionalInfo.md) | | [optional] +**CorrelationId** | Pointer to **string** | | [optional] +**Details** | Pointer to **string** | | [optional] +**ErrorCode** | Pointer to **string** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**Help** | Pointer to **string** | | [optional] + +## Methods + +### NewApiError + +`func NewApiError() *ApiError` + +NewApiError instantiates a new ApiError 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 + +### NewApiErrorWithDefaults + +`func NewApiErrorWithDefaults() *ApiError` + +NewApiErrorWithDefaults instantiates a new ApiError 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 + +### GetAdditionalInfo + +`func (o *ApiError) GetAdditionalInfo() ApiErrorAdditionalInfo` + +GetAdditionalInfo returns the AdditionalInfo field if non-nil, zero value otherwise. + +### GetAdditionalInfoOk + +`func (o *ApiError) GetAdditionalInfoOk() (*ApiErrorAdditionalInfo, bool)` + +GetAdditionalInfoOk returns a tuple with the AdditionalInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalInfo + +`func (o *ApiError) SetAdditionalInfo(v ApiErrorAdditionalInfo)` + +SetAdditionalInfo sets AdditionalInfo field to given value. + +### HasAdditionalInfo + +`func (o *ApiError) HasAdditionalInfo() bool` + +HasAdditionalInfo returns a boolean if a field has been set. + +### GetCorrelationId + +`func (o *ApiError) GetCorrelationId() string` + +GetCorrelationId returns the CorrelationId field if non-nil, zero value otherwise. + +### GetCorrelationIdOk + +`func (o *ApiError) GetCorrelationIdOk() (*string, bool)` + +GetCorrelationIdOk returns a tuple with the CorrelationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCorrelationId + +`func (o *ApiError) SetCorrelationId(v string)` + +SetCorrelationId sets CorrelationId field to given value. + +### HasCorrelationId + +`func (o *ApiError) HasCorrelationId() bool` + +HasCorrelationId returns a boolean if a field has been set. + +### GetDetails + +`func (o *ApiError) GetDetails() string` + +GetDetails returns the Details field if non-nil, zero value otherwise. + +### GetDetailsOk + +`func (o *ApiError) GetDetailsOk() (*string, bool)` + +GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDetails + +`func (o *ApiError) SetDetails(v string)` + +SetDetails sets Details field to given value. + +### HasDetails + +`func (o *ApiError) HasDetails() bool` + +HasDetails returns a boolean if a field has been set. + +### GetErrorCode + +`func (o *ApiError) GetErrorCode() string` + +GetErrorCode returns the ErrorCode field if non-nil, zero value otherwise. + +### GetErrorCodeOk + +`func (o *ApiError) GetErrorCodeOk() (*string, bool)` + +GetErrorCodeOk returns a tuple with the ErrorCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorCode + +`func (o *ApiError) SetErrorCode(v string)` + +SetErrorCode sets ErrorCode field to given value. + +### HasErrorCode + +`func (o *ApiError) HasErrorCode() bool` + +HasErrorCode returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *ApiError) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *ApiError) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *ApiError) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *ApiError) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetHelp + +`func (o *ApiError) GetHelp() string` + +GetHelp returns the Help field if non-nil, zero value otherwise. + +### GetHelpOk + +`func (o *ApiError) GetHelpOk() (*string, bool)` + +GetHelpOk returns a tuple with the Help field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHelp + +`func (o *ApiError) SetHelp(v string)` + +SetHelp sets Help field to given value. + +### HasHelp + +`func (o *ApiError) HasHelp() bool` + +HasHelp returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ApiErrorAdditionalInfo.md b/services/smartview/docs/ApiErrorAdditionalInfo.md new file mode 100644 index 00000000..f1ef0c9f --- /dev/null +++ b/services/smartview/docs/ApiErrorAdditionalInfo.md @@ -0,0 +1,82 @@ +# ApiErrorAdditionalInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConstraintCode** | Pointer to **string** | | [optional] +**Reason** | Pointer to **string** | | [optional] + +## Methods + +### NewApiErrorAdditionalInfo + +`func NewApiErrorAdditionalInfo() *ApiErrorAdditionalInfo` + +NewApiErrorAdditionalInfo instantiates a new ApiErrorAdditionalInfo 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 + +### NewApiErrorAdditionalInfoWithDefaults + +`func NewApiErrorAdditionalInfoWithDefaults() *ApiErrorAdditionalInfo` + +NewApiErrorAdditionalInfoWithDefaults instantiates a new ApiErrorAdditionalInfo 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 + +### GetConstraintCode + +`func (o *ApiErrorAdditionalInfo) GetConstraintCode() string` + +GetConstraintCode returns the ConstraintCode field if non-nil, zero value otherwise. + +### GetConstraintCodeOk + +`func (o *ApiErrorAdditionalInfo) GetConstraintCodeOk() (*string, bool)` + +GetConstraintCodeOk returns a tuple with the ConstraintCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConstraintCode + +`func (o *ApiErrorAdditionalInfo) SetConstraintCode(v string)` + +SetConstraintCode sets ConstraintCode field to given value. + +### HasConstraintCode + +`func (o *ApiErrorAdditionalInfo) HasConstraintCode() bool` + +HasConstraintCode returns a boolean if a field has been set. + +### GetReason + +`func (o *ApiErrorAdditionalInfo) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *ApiErrorAdditionalInfo) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *ApiErrorAdditionalInfo) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *ApiErrorAdditionalInfo) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Asset.md b/services/smartview/docs/Asset.md new file mode 100644 index 00000000..2e2979f9 --- /dev/null +++ b/services/smartview/docs/Asset.md @@ -0,0 +1,124 @@ +# Asset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | **string** | | +**AssetClassification** | Pointer to [**[]AssetAssetClassificationInner**](AssetAssetClassificationInner.md) | Asset Classification value if specified, otherwise all allowable classifications | [optional] +**AssetId** | Pointer to **[]string** | | [optional] +**Ibx** | **[]string** | | + +## Methods + +### NewAsset + +`func NewAsset(accountNumber string, ibx []string, ) *Asset` + +NewAsset instantiates a new Asset 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 + +### NewAssetWithDefaults + +`func NewAssetWithDefaults() *Asset` + +NewAssetWithDefaults instantiates a new Asset 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 + +### GetAccountNumber + +`func (o *Asset) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *Asset) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *Asset) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + + +### GetAssetClassification + +`func (o *Asset) GetAssetClassification() []AssetAssetClassificationInner` + +GetAssetClassification returns the AssetClassification field if non-nil, zero value otherwise. + +### GetAssetClassificationOk + +`func (o *Asset) GetAssetClassificationOk() (*[]AssetAssetClassificationInner, bool)` + +GetAssetClassificationOk returns a tuple with the AssetClassification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetClassification + +`func (o *Asset) SetAssetClassification(v []AssetAssetClassificationInner)` + +SetAssetClassification sets AssetClassification field to given value. + +### HasAssetClassification + +`func (o *Asset) HasAssetClassification() bool` + +HasAssetClassification returns a boolean if a field has been set. + +### GetAssetId + +`func (o *Asset) GetAssetId() []string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *Asset) GetAssetIdOk() (*[]string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *Asset) SetAssetId(v []string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *Asset) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetIbx + +`func (o *Asset) GetIbx() []string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *Asset) GetIbxOk() (*[]string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *Asset) SetIbx(v []string)` + +SetIbx sets Ibx 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/services/smartview/docs/AssetAssetClassificationInner.md b/services/smartview/docs/AssetAssetClassificationInner.md new file mode 100644 index 00000000..483486d8 --- /dev/null +++ b/services/smartview/docs/AssetAssetClassificationInner.md @@ -0,0 +1,15 @@ +# AssetAssetClassificationInner + +## Enum + + +* `MECHANICAL` (value: `"MECHANICAL"`) + +* `ENVIRONMENTAL` (value: `"ENVIRONMENTAL"`) + +* `ELECTRICAL` (value: `"ELECTRICAL"`) + + +[[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/services/smartview/docs/AssetDetailResponse.md b/services/smartview/docs/AssetDetailResponse.md new file mode 100644 index 00000000..1fdce0c0 --- /dev/null +++ b/services/smartview/docs/AssetDetailResponse.md @@ -0,0 +1,82 @@ +# AssetDetailResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**AssetDetailResponsePayLoad**](AssetDetailResponsePayLoad.md) | | [optional] +**Status** | Pointer to [**AssetDetailResponseStatus**](AssetDetailResponseStatus.md) | | [optional] + +## Methods + +### NewAssetDetailResponse + +`func NewAssetDetailResponse() *AssetDetailResponse` + +NewAssetDetailResponse instantiates a new AssetDetailResponse 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 + +### NewAssetDetailResponseWithDefaults + +`func NewAssetDetailResponseWithDefaults() *AssetDetailResponse` + +NewAssetDetailResponseWithDefaults instantiates a new AssetDetailResponse 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 + +### GetPayLoad + +`func (o *AssetDetailResponse) GetPayLoad() AssetDetailResponsePayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *AssetDetailResponse) GetPayLoadOk() (*AssetDetailResponsePayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *AssetDetailResponse) SetPayLoad(v AssetDetailResponsePayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *AssetDetailResponse) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *AssetDetailResponse) GetStatus() AssetDetailResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AssetDetailResponse) GetStatusOk() (*AssetDetailResponseStatus, 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 *AssetDetailResponse) SetStatus(v AssetDetailResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AssetDetailResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailResponsePayLoad.md b/services/smartview/docs/AssetDetailResponsePayLoad.md new file mode 100644 index 00000000..7f16cb09 --- /dev/null +++ b/services/smartview/docs/AssetDetailResponsePayLoad.md @@ -0,0 +1,56 @@ +# AssetDetailResponsePayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetDetails** | Pointer to [**[]AssetDetails**](AssetDetails.md) | | [optional] + +## Methods + +### NewAssetDetailResponsePayLoad + +`func NewAssetDetailResponsePayLoad() *AssetDetailResponsePayLoad` + +NewAssetDetailResponsePayLoad instantiates a new AssetDetailResponsePayLoad 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 + +### NewAssetDetailResponsePayLoadWithDefaults + +`func NewAssetDetailResponsePayLoadWithDefaults() *AssetDetailResponsePayLoad` + +NewAssetDetailResponsePayLoadWithDefaults instantiates a new AssetDetailResponsePayLoad 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 + +### GetAssetDetails + +`func (o *AssetDetailResponsePayLoad) GetAssetDetails() []AssetDetails` + +GetAssetDetails returns the AssetDetails field if non-nil, zero value otherwise. + +### GetAssetDetailsOk + +`func (o *AssetDetailResponsePayLoad) GetAssetDetailsOk() (*[]AssetDetails, bool)` + +GetAssetDetailsOk returns a tuple with the AssetDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetDetails + +`func (o *AssetDetailResponsePayLoad) SetAssetDetails(v []AssetDetails)` + +SetAssetDetails sets AssetDetails field to given value. + +### HasAssetDetails + +`func (o *AssetDetailResponsePayLoad) HasAssetDetails() bool` + +HasAssetDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailResponseStatus.md b/services/smartview/docs/AssetDetailResponseStatus.md new file mode 100644 index 00000000..13e3a8b8 --- /dev/null +++ b/services/smartview/docs/AssetDetailResponseStatus.md @@ -0,0 +1,108 @@ +# AssetDetailResponseStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewAssetDetailResponseStatus + +`func NewAssetDetailResponseStatus() *AssetDetailResponseStatus` + +NewAssetDetailResponseStatus instantiates a new AssetDetailResponseStatus 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 + +### NewAssetDetailResponseStatusWithDefaults + +`func NewAssetDetailResponseStatusWithDefaults() *AssetDetailResponseStatus` + +NewAssetDetailResponseStatusWithDefaults instantiates a new AssetDetailResponseStatus 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 + +### GetMsg + +`func (o *AssetDetailResponseStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *AssetDetailResponseStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *AssetDetailResponseStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *AssetDetailResponseStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *AssetDetailResponseStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *AssetDetailResponseStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *AssetDetailResponseStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *AssetDetailResponseStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *AssetDetailResponseStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AssetDetailResponseStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AssetDetailResponseStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AssetDetailResponseStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailResponseStatusType.md b/services/smartview/docs/AssetDetailResponseStatusType.md new file mode 100644 index 00000000..9b190cf7 --- /dev/null +++ b/services/smartview/docs/AssetDetailResponseStatusType.md @@ -0,0 +1,11 @@ +# AssetDetailResponseStatusType + +## Enum + + +* `INFO` (value: `"INFO"`) + + +[[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/services/smartview/docs/AssetDetails.md b/services/smartview/docs/AssetDetails.md new file mode 100644 index 00000000..2100c670 --- /dev/null +++ b/services/smartview/docs/AssetDetails.md @@ -0,0 +1,290 @@ +# AssetDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlarmLastProcessedTime** | Pointer to **string** | Datetime when the latest alarm was processed on the asset | [optional] +**AlarmLastTriggeredTime** | Pointer to **string** | Datetime when the latest alarm was triggered on the asset | [optional] +**AssetId** | Pointer to **string** | asset id for the Asset | [optional] +**AssetType** | Pointer to **string** | Template Name for the asset | [optional] +**EquipmentModelNumber** | Pointer to **string** | Equipment Model Number | [optional] +**EquipmentSerialNumber** | Pointer to **string** | Equipment Serial Number | [optional] +**LastMaintenanceDate** | Pointer to **string** | Datetime when the machine had its last maintenance | [optional] +**ManufacturerName** | Pointer to **string** | Manufacturer name for the Asset | [optional] +**Tags** | Pointer to [**[]TagPointDataArray**](TagPointDataArray.md) | List of tag points for the Asset | [optional] +**UserPrefTimeZone** | Pointer to **string** | Time zone for the user | [optional] + +## Methods + +### NewAssetDetails + +`func NewAssetDetails() *AssetDetails` + +NewAssetDetails instantiates a new AssetDetails 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 + +### NewAssetDetailsWithDefaults + +`func NewAssetDetailsWithDefaults() *AssetDetails` + +NewAssetDetailsWithDefaults instantiates a new AssetDetails 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 + +### GetAlarmLastProcessedTime + +`func (o *AssetDetails) GetAlarmLastProcessedTime() string` + +GetAlarmLastProcessedTime returns the AlarmLastProcessedTime field if non-nil, zero value otherwise. + +### GetAlarmLastProcessedTimeOk + +`func (o *AssetDetails) GetAlarmLastProcessedTimeOk() (*string, bool)` + +GetAlarmLastProcessedTimeOk returns a tuple with the AlarmLastProcessedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlarmLastProcessedTime + +`func (o *AssetDetails) SetAlarmLastProcessedTime(v string)` + +SetAlarmLastProcessedTime sets AlarmLastProcessedTime field to given value. + +### HasAlarmLastProcessedTime + +`func (o *AssetDetails) HasAlarmLastProcessedTime() bool` + +HasAlarmLastProcessedTime returns a boolean if a field has been set. + +### GetAlarmLastTriggeredTime + +`func (o *AssetDetails) GetAlarmLastTriggeredTime() string` + +GetAlarmLastTriggeredTime returns the AlarmLastTriggeredTime field if non-nil, zero value otherwise. + +### GetAlarmLastTriggeredTimeOk + +`func (o *AssetDetails) GetAlarmLastTriggeredTimeOk() (*string, bool)` + +GetAlarmLastTriggeredTimeOk returns a tuple with the AlarmLastTriggeredTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlarmLastTriggeredTime + +`func (o *AssetDetails) SetAlarmLastTriggeredTime(v string)` + +SetAlarmLastTriggeredTime sets AlarmLastTriggeredTime field to given value. + +### HasAlarmLastTriggeredTime + +`func (o *AssetDetails) HasAlarmLastTriggeredTime() bool` + +HasAlarmLastTriggeredTime returns a boolean if a field has been set. + +### GetAssetId + +`func (o *AssetDetails) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *AssetDetails) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *AssetDetails) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *AssetDetails) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetType + +`func (o *AssetDetails) GetAssetType() string` + +GetAssetType returns the AssetType field if non-nil, zero value otherwise. + +### GetAssetTypeOk + +`func (o *AssetDetails) GetAssetTypeOk() (*string, bool)` + +GetAssetTypeOk returns a tuple with the AssetType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetType + +`func (o *AssetDetails) SetAssetType(v string)` + +SetAssetType sets AssetType field to given value. + +### HasAssetType + +`func (o *AssetDetails) HasAssetType() bool` + +HasAssetType returns a boolean if a field has been set. + +### GetEquipmentModelNumber + +`func (o *AssetDetails) GetEquipmentModelNumber() string` + +GetEquipmentModelNumber returns the EquipmentModelNumber field if non-nil, zero value otherwise. + +### GetEquipmentModelNumberOk + +`func (o *AssetDetails) GetEquipmentModelNumberOk() (*string, bool)` + +GetEquipmentModelNumberOk returns a tuple with the EquipmentModelNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEquipmentModelNumber + +`func (o *AssetDetails) SetEquipmentModelNumber(v string)` + +SetEquipmentModelNumber sets EquipmentModelNumber field to given value. + +### HasEquipmentModelNumber + +`func (o *AssetDetails) HasEquipmentModelNumber() bool` + +HasEquipmentModelNumber returns a boolean if a field has been set. + +### GetEquipmentSerialNumber + +`func (o *AssetDetails) GetEquipmentSerialNumber() string` + +GetEquipmentSerialNumber returns the EquipmentSerialNumber field if non-nil, zero value otherwise. + +### GetEquipmentSerialNumberOk + +`func (o *AssetDetails) GetEquipmentSerialNumberOk() (*string, bool)` + +GetEquipmentSerialNumberOk returns a tuple with the EquipmentSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEquipmentSerialNumber + +`func (o *AssetDetails) SetEquipmentSerialNumber(v string)` + +SetEquipmentSerialNumber sets EquipmentSerialNumber field to given value. + +### HasEquipmentSerialNumber + +`func (o *AssetDetails) HasEquipmentSerialNumber() bool` + +HasEquipmentSerialNumber returns a boolean if a field has been set. + +### GetLastMaintenanceDate + +`func (o *AssetDetails) GetLastMaintenanceDate() string` + +GetLastMaintenanceDate returns the LastMaintenanceDate field if non-nil, zero value otherwise. + +### GetLastMaintenanceDateOk + +`func (o *AssetDetails) GetLastMaintenanceDateOk() (*string, bool)` + +GetLastMaintenanceDateOk returns a tuple with the LastMaintenanceDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastMaintenanceDate + +`func (o *AssetDetails) SetLastMaintenanceDate(v string)` + +SetLastMaintenanceDate sets LastMaintenanceDate field to given value. + +### HasLastMaintenanceDate + +`func (o *AssetDetails) HasLastMaintenanceDate() bool` + +HasLastMaintenanceDate returns a boolean if a field has been set. + +### GetManufacturerName + +`func (o *AssetDetails) GetManufacturerName() string` + +GetManufacturerName returns the ManufacturerName field if non-nil, zero value otherwise. + +### GetManufacturerNameOk + +`func (o *AssetDetails) GetManufacturerNameOk() (*string, bool)` + +GetManufacturerNameOk returns a tuple with the ManufacturerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturerName + +`func (o *AssetDetails) SetManufacturerName(v string)` + +SetManufacturerName sets ManufacturerName field to given value. + +### HasManufacturerName + +`func (o *AssetDetails) HasManufacturerName() bool` + +HasManufacturerName returns a boolean if a field has been set. + +### GetTags + +`func (o *AssetDetails) GetTags() []TagPointDataArray` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *AssetDetails) GetTagsOk() (*[]TagPointDataArray, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *AssetDetails) SetTags(v []TagPointDataArray)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *AssetDetails) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUserPrefTimeZone + +`func (o *AssetDetails) GetUserPrefTimeZone() string` + +GetUserPrefTimeZone returns the UserPrefTimeZone field if non-nil, zero value otherwise. + +### GetUserPrefTimeZoneOk + +`func (o *AssetDetails) GetUserPrefTimeZoneOk() (*string, bool)` + +GetUserPrefTimeZoneOk returns a tuple with the UserPrefTimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserPrefTimeZone + +`func (o *AssetDetails) SetUserPrefTimeZone(v string)` + +SetUserPrefTimeZone sets UserPrefTimeZone field to given value. + +### HasUserPrefTimeZone + +`func (o *AssetDetails) HasUserPrefTimeZone() bool` + +HasUserPrefTimeZone returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailsGetResponse.md b/services/smartview/docs/AssetDetailsGetResponse.md new file mode 100644 index 00000000..f2717a95 --- /dev/null +++ b/services/smartview/docs/AssetDetailsGetResponse.md @@ -0,0 +1,82 @@ +# AssetDetailsGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**AssetDetailsGetResponsePayLoad**](AssetDetailsGetResponsePayLoad.md) | | [optional] +**Status** | Pointer to [**AssetDetailResponseStatus**](AssetDetailResponseStatus.md) | | [optional] + +## Methods + +### NewAssetDetailsGetResponse + +`func NewAssetDetailsGetResponse() *AssetDetailsGetResponse` + +NewAssetDetailsGetResponse instantiates a new AssetDetailsGetResponse 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 + +### NewAssetDetailsGetResponseWithDefaults + +`func NewAssetDetailsGetResponseWithDefaults() *AssetDetailsGetResponse` + +NewAssetDetailsGetResponseWithDefaults instantiates a new AssetDetailsGetResponse 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 + +### GetPayLoad + +`func (o *AssetDetailsGetResponse) GetPayLoad() AssetDetailsGetResponsePayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *AssetDetailsGetResponse) GetPayLoadOk() (*AssetDetailsGetResponsePayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *AssetDetailsGetResponse) SetPayLoad(v AssetDetailsGetResponsePayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *AssetDetailsGetResponse) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *AssetDetailsGetResponse) GetStatus() AssetDetailResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AssetDetailsGetResponse) GetStatusOk() (*AssetDetailResponseStatus, 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 *AssetDetailsGetResponse) SetStatus(v AssetDetailResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AssetDetailsGetResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailsGetResponsePayLoad.md b/services/smartview/docs/AssetDetailsGetResponsePayLoad.md new file mode 100644 index 00000000..9c87a020 --- /dev/null +++ b/services/smartview/docs/AssetDetailsGetResponsePayLoad.md @@ -0,0 +1,290 @@ +# AssetDetailsGetResponsePayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlarmLastProcessedTime** | Pointer to **string** | Datetime when the latest alarm was processed on the asset | [optional] +**AlarmLastTriggeredTime** | Pointer to **string** | Datetime when the latest alarm was triggered on the asset | [optional] +**AssetId** | Pointer to **string** | asset id for the Asset | [optional] +**AssetType** | Pointer to **string** | Template Name for the asset | [optional] +**EquipmentModelNumber** | Pointer to **string** | Equipment Model Number | [optional] +**EquipmentSerialNumber** | Pointer to **string** | Equipment Serial Number | [optional] +**LastMaintenanceDate** | Pointer to **string** | Datetime when the machine had its last maintenance | [optional] +**ManufacturerName** | Pointer to **string** | Manufacturer name for the Asset | [optional] +**Tags** | Pointer to [**[]TagPointDataArray**](TagPointDataArray.md) | List of tag points for the Asset | [optional] +**UserPrefTimeZone** | Pointer to **string** | Time zone for the user | [optional] + +## Methods + +### NewAssetDetailsGetResponsePayLoad + +`func NewAssetDetailsGetResponsePayLoad() *AssetDetailsGetResponsePayLoad` + +NewAssetDetailsGetResponsePayLoad instantiates a new AssetDetailsGetResponsePayLoad 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 + +### NewAssetDetailsGetResponsePayLoadWithDefaults + +`func NewAssetDetailsGetResponsePayLoadWithDefaults() *AssetDetailsGetResponsePayLoad` + +NewAssetDetailsGetResponsePayLoadWithDefaults instantiates a new AssetDetailsGetResponsePayLoad 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 + +### GetAlarmLastProcessedTime + +`func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastProcessedTime() string` + +GetAlarmLastProcessedTime returns the AlarmLastProcessedTime field if non-nil, zero value otherwise. + +### GetAlarmLastProcessedTimeOk + +`func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastProcessedTimeOk() (*string, bool)` + +GetAlarmLastProcessedTimeOk returns a tuple with the AlarmLastProcessedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlarmLastProcessedTime + +`func (o *AssetDetailsGetResponsePayLoad) SetAlarmLastProcessedTime(v string)` + +SetAlarmLastProcessedTime sets AlarmLastProcessedTime field to given value. + +### HasAlarmLastProcessedTime + +`func (o *AssetDetailsGetResponsePayLoad) HasAlarmLastProcessedTime() bool` + +HasAlarmLastProcessedTime returns a boolean if a field has been set. + +### GetAlarmLastTriggeredTime + +`func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastTriggeredTime() string` + +GetAlarmLastTriggeredTime returns the AlarmLastTriggeredTime field if non-nil, zero value otherwise. + +### GetAlarmLastTriggeredTimeOk + +`func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastTriggeredTimeOk() (*string, bool)` + +GetAlarmLastTriggeredTimeOk returns a tuple with the AlarmLastTriggeredTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlarmLastTriggeredTime + +`func (o *AssetDetailsGetResponsePayLoad) SetAlarmLastTriggeredTime(v string)` + +SetAlarmLastTriggeredTime sets AlarmLastTriggeredTime field to given value. + +### HasAlarmLastTriggeredTime + +`func (o *AssetDetailsGetResponsePayLoad) HasAlarmLastTriggeredTime() bool` + +HasAlarmLastTriggeredTime returns a boolean if a field has been set. + +### GetAssetId + +`func (o *AssetDetailsGetResponsePayLoad) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *AssetDetailsGetResponsePayLoad) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *AssetDetailsGetResponsePayLoad) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *AssetDetailsGetResponsePayLoad) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetType + +`func (o *AssetDetailsGetResponsePayLoad) GetAssetType() string` + +GetAssetType returns the AssetType field if non-nil, zero value otherwise. + +### GetAssetTypeOk + +`func (o *AssetDetailsGetResponsePayLoad) GetAssetTypeOk() (*string, bool)` + +GetAssetTypeOk returns a tuple with the AssetType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetType + +`func (o *AssetDetailsGetResponsePayLoad) SetAssetType(v string)` + +SetAssetType sets AssetType field to given value. + +### HasAssetType + +`func (o *AssetDetailsGetResponsePayLoad) HasAssetType() bool` + +HasAssetType returns a boolean if a field has been set. + +### GetEquipmentModelNumber + +`func (o *AssetDetailsGetResponsePayLoad) GetEquipmentModelNumber() string` + +GetEquipmentModelNumber returns the EquipmentModelNumber field if non-nil, zero value otherwise. + +### GetEquipmentModelNumberOk + +`func (o *AssetDetailsGetResponsePayLoad) GetEquipmentModelNumberOk() (*string, bool)` + +GetEquipmentModelNumberOk returns a tuple with the EquipmentModelNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEquipmentModelNumber + +`func (o *AssetDetailsGetResponsePayLoad) SetEquipmentModelNumber(v string)` + +SetEquipmentModelNumber sets EquipmentModelNumber field to given value. + +### HasEquipmentModelNumber + +`func (o *AssetDetailsGetResponsePayLoad) HasEquipmentModelNumber() bool` + +HasEquipmentModelNumber returns a boolean if a field has been set. + +### GetEquipmentSerialNumber + +`func (o *AssetDetailsGetResponsePayLoad) GetEquipmentSerialNumber() string` + +GetEquipmentSerialNumber returns the EquipmentSerialNumber field if non-nil, zero value otherwise. + +### GetEquipmentSerialNumberOk + +`func (o *AssetDetailsGetResponsePayLoad) GetEquipmentSerialNumberOk() (*string, bool)` + +GetEquipmentSerialNumberOk returns a tuple with the EquipmentSerialNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEquipmentSerialNumber + +`func (o *AssetDetailsGetResponsePayLoad) SetEquipmentSerialNumber(v string)` + +SetEquipmentSerialNumber sets EquipmentSerialNumber field to given value. + +### HasEquipmentSerialNumber + +`func (o *AssetDetailsGetResponsePayLoad) HasEquipmentSerialNumber() bool` + +HasEquipmentSerialNumber returns a boolean if a field has been set. + +### GetLastMaintenanceDate + +`func (o *AssetDetailsGetResponsePayLoad) GetLastMaintenanceDate() string` + +GetLastMaintenanceDate returns the LastMaintenanceDate field if non-nil, zero value otherwise. + +### GetLastMaintenanceDateOk + +`func (o *AssetDetailsGetResponsePayLoad) GetLastMaintenanceDateOk() (*string, bool)` + +GetLastMaintenanceDateOk returns a tuple with the LastMaintenanceDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastMaintenanceDate + +`func (o *AssetDetailsGetResponsePayLoad) SetLastMaintenanceDate(v string)` + +SetLastMaintenanceDate sets LastMaintenanceDate field to given value. + +### HasLastMaintenanceDate + +`func (o *AssetDetailsGetResponsePayLoad) HasLastMaintenanceDate() bool` + +HasLastMaintenanceDate returns a boolean if a field has been set. + +### GetManufacturerName + +`func (o *AssetDetailsGetResponsePayLoad) GetManufacturerName() string` + +GetManufacturerName returns the ManufacturerName field if non-nil, zero value otherwise. + +### GetManufacturerNameOk + +`func (o *AssetDetailsGetResponsePayLoad) GetManufacturerNameOk() (*string, bool)` + +GetManufacturerNameOk returns a tuple with the ManufacturerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturerName + +`func (o *AssetDetailsGetResponsePayLoad) SetManufacturerName(v string)` + +SetManufacturerName sets ManufacturerName field to given value. + +### HasManufacturerName + +`func (o *AssetDetailsGetResponsePayLoad) HasManufacturerName() bool` + +HasManufacturerName returns a boolean if a field has been set. + +### GetTags + +`func (o *AssetDetailsGetResponsePayLoad) GetTags() []TagPointDataArray` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *AssetDetailsGetResponsePayLoad) GetTagsOk() (*[]TagPointDataArray, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *AssetDetailsGetResponsePayLoad) SetTags(v []TagPointDataArray)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *AssetDetailsGetResponsePayLoad) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUserPrefTimeZone + +`func (o *AssetDetailsGetResponsePayLoad) GetUserPrefTimeZone() string` + +GetUserPrefTimeZone returns the UserPrefTimeZone field if non-nil, zero value otherwise. + +### GetUserPrefTimeZoneOk + +`func (o *AssetDetailsGetResponsePayLoad) GetUserPrefTimeZoneOk() (*string, bool)` + +GetUserPrefTimeZoneOk returns a tuple with the UserPrefTimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserPrefTimeZone + +`func (o *AssetDetailsGetResponsePayLoad) SetUserPrefTimeZone(v string)` + +SetUserPrefTimeZone sets UserPrefTimeZone field to given value. + +### HasUserPrefTimeZone + +`func (o *AssetDetailsGetResponsePayLoad) HasUserPrefTimeZone() bool` + +HasUserPrefTimeZone returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailsRequest.md b/services/smartview/docs/AssetDetailsRequest.md new file mode 100644 index 00000000..6d846dba --- /dev/null +++ b/services/smartview/docs/AssetDetailsRequest.md @@ -0,0 +1,134 @@ +# AssetDetailsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | customer account number | [optional] +**Classification** | Pointer to **string** | asset classification | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**AssetIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewAssetDetailsRequest + +`func NewAssetDetailsRequest() *AssetDetailsRequest` + +NewAssetDetailsRequest instantiates a new AssetDetailsRequest 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 + +### NewAssetDetailsRequestWithDefaults + +`func NewAssetDetailsRequestWithDefaults() *AssetDetailsRequest` + +NewAssetDetailsRequestWithDefaults instantiates a new AssetDetailsRequest 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 + +### GetAccountNo + +`func (o *AssetDetailsRequest) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *AssetDetailsRequest) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *AssetDetailsRequest) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *AssetDetailsRequest) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetClassification + +`func (o *AssetDetailsRequest) GetClassification() string` + +GetClassification returns the Classification field if non-nil, zero value otherwise. + +### GetClassificationOk + +`func (o *AssetDetailsRequest) GetClassificationOk() (*string, bool)` + +GetClassificationOk returns a tuple with the Classification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassification + +`func (o *AssetDetailsRequest) SetClassification(v string)` + +SetClassification sets Classification field to given value. + +### HasClassification + +`func (o *AssetDetailsRequest) HasClassification() bool` + +HasClassification returns a boolean if a field has been set. + +### GetIbx + +`func (o *AssetDetailsRequest) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *AssetDetailsRequest) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *AssetDetailsRequest) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *AssetDetailsRequest) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetAssetIds + +`func (o *AssetDetailsRequest) GetAssetIds() []string` + +GetAssetIds returns the AssetIds field if non-nil, zero value otherwise. + +### GetAssetIdsOk + +`func (o *AssetDetailsRequest) GetAssetIdsOk() (*[]string, bool)` + +GetAssetIdsOk returns a tuple with the AssetIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetIds + +`func (o *AssetDetailsRequest) SetAssetIds(v []string)` + +SetAssetIds sets AssetIds field to given value. + +### HasAssetIds + +`func (o *AssetDetailsRequest) HasAssetIds() bool` + +HasAssetIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailsResponse.md b/services/smartview/docs/AssetDetailsResponse.md new file mode 100644 index 00000000..8592e152 --- /dev/null +++ b/services/smartview/docs/AssetDetailsResponse.md @@ -0,0 +1,82 @@ +# AssetDetailsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**AssetDetailsResponsePayLoad**](AssetDetailsResponsePayLoad.md) | | [optional] +**Status** | Pointer to [**AssetDetailResponseStatus**](AssetDetailResponseStatus.md) | | [optional] + +## Methods + +### NewAssetDetailsResponse + +`func NewAssetDetailsResponse() *AssetDetailsResponse` + +NewAssetDetailsResponse instantiates a new AssetDetailsResponse 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 + +### NewAssetDetailsResponseWithDefaults + +`func NewAssetDetailsResponseWithDefaults() *AssetDetailsResponse` + +NewAssetDetailsResponseWithDefaults instantiates a new AssetDetailsResponse 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 + +### GetPayLoad + +`func (o *AssetDetailsResponse) GetPayLoad() AssetDetailsResponsePayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *AssetDetailsResponse) GetPayLoadOk() (*AssetDetailsResponsePayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *AssetDetailsResponse) SetPayLoad(v AssetDetailsResponsePayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *AssetDetailsResponse) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *AssetDetailsResponse) GetStatus() AssetDetailResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AssetDetailsResponse) GetStatusOk() (*AssetDetailResponseStatus, 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 *AssetDetailsResponse) SetStatus(v AssetDetailResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AssetDetailsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailsResponsePayLoad.md b/services/smartview/docs/AssetDetailsResponsePayLoad.md new file mode 100644 index 00000000..13809b1a --- /dev/null +++ b/services/smartview/docs/AssetDetailsResponsePayLoad.md @@ -0,0 +1,82 @@ +# AssetDetailsResponsePayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetDetails** | Pointer to [**[]AssetDetails**](AssetDetails.md) | | [optional] +**TotalCount** | Pointer to **int32** | total number of assets that match the request filters | [optional] + +## Methods + +### NewAssetDetailsResponsePayLoad + +`func NewAssetDetailsResponsePayLoad() *AssetDetailsResponsePayLoad` + +NewAssetDetailsResponsePayLoad instantiates a new AssetDetailsResponsePayLoad 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 + +### NewAssetDetailsResponsePayLoadWithDefaults + +`func NewAssetDetailsResponsePayLoadWithDefaults() *AssetDetailsResponsePayLoad` + +NewAssetDetailsResponsePayLoadWithDefaults instantiates a new AssetDetailsResponsePayLoad 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 + +### GetAssetDetails + +`func (o *AssetDetailsResponsePayLoad) GetAssetDetails() []AssetDetails` + +GetAssetDetails returns the AssetDetails field if non-nil, zero value otherwise. + +### GetAssetDetailsOk + +`func (o *AssetDetailsResponsePayLoad) GetAssetDetailsOk() (*[]AssetDetails, bool)` + +GetAssetDetailsOk returns a tuple with the AssetDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetDetails + +`func (o *AssetDetailsResponsePayLoad) SetAssetDetails(v []AssetDetails)` + +SetAssetDetails sets AssetDetails field to given value. + +### HasAssetDetails + +`func (o *AssetDetailsResponsePayLoad) HasAssetDetails() bool` + +HasAssetDetails returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *AssetDetailsResponsePayLoad) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *AssetDetailsResponsePayLoad) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *AssetDetailsResponsePayLoad) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *AssetDetailsResponsePayLoad) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetDetailsTagPointData.md b/services/smartview/docs/AssetDetailsTagPointData.md new file mode 100644 index 00000000..0b7ee018 --- /dev/null +++ b/services/smartview/docs/AssetDetailsTagPointData.md @@ -0,0 +1,56 @@ +# AssetDetailsTagPointData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**[]TagPointDataArray**](TagPointDataArray.md) | | [optional] + +## Methods + +### NewAssetDetailsTagPointData + +`func NewAssetDetailsTagPointData() *AssetDetailsTagPointData` + +NewAssetDetailsTagPointData instantiates a new AssetDetailsTagPointData 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 + +### NewAssetDetailsTagPointDataWithDefaults + +`func NewAssetDetailsTagPointDataWithDefaults() *AssetDetailsTagPointData` + +NewAssetDetailsTagPointDataWithDefaults instantiates a new AssetDetailsTagPointData 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 + +### GetPayLoad + +`func (o *AssetDetailsTagPointData) GetPayLoad() []TagPointDataArray` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *AssetDetailsTagPointData) GetPayLoadOk() (*[]TagPointDataArray, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *AssetDetailsTagPointData) SetPayLoad(v []TagPointDataArray)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *AssetDetailsTagPointData) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Assets.md b/services/smartview/docs/Assets.md new file mode 100644 index 00000000..86553ef5 --- /dev/null +++ b/services/smartview/docs/Assets.md @@ -0,0 +1,82 @@ +# Assets + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**AssetsPayLoad**](AssetsPayLoad.md) | | [optional] +**Status** | Pointer to [**AssetsStatus**](AssetsStatus.md) | | [optional] + +## Methods + +### NewAssets + +`func NewAssets() *Assets` + +NewAssets instantiates a new Assets 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 + +### NewAssetsWithDefaults + +`func NewAssetsWithDefaults() *Assets` + +NewAssetsWithDefaults instantiates a new Assets 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 + +### GetPayLoad + +`func (o *Assets) GetPayLoad() AssetsPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *Assets) GetPayLoadOk() (*AssetsPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *Assets) SetPayLoad(v AssetsPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *Assets) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *Assets) GetStatus() AssetsStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Assets) GetStatusOk() (*AssetsStatus, 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 *Assets) SetStatus(v AssetsStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Assets) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetsArray.md b/services/smartview/docs/AssetsArray.md new file mode 100644 index 00000000..e9e0f481 --- /dev/null +++ b/services/smartview/docs/AssetsArray.md @@ -0,0 +1,134 @@ +# AssetsArray + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetClassification** | Pointer to **string** | Asset classification is electrical or mechanical | [optional] +**AssetId** | Pointer to **string** | The assetid is the circuit number, sensor id, asset id, asset id for type circuit, sensor, electrical and mechanical resp. | [optional] +**AssetLabel** | Pointer to **string** | Asset Label is the Circuit display label, Sensor ID, and Asset ID for types circuit, sensor, electrical and mechanical resp. | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewAssetsArray + +`func NewAssetsArray() *AssetsArray` + +NewAssetsArray instantiates a new AssetsArray 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 + +### NewAssetsArrayWithDefaults + +`func NewAssetsArrayWithDefaults() *AssetsArray` + +NewAssetsArrayWithDefaults instantiates a new AssetsArray 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 + +### GetAssetClassification + +`func (o *AssetsArray) GetAssetClassification() string` + +GetAssetClassification returns the AssetClassification field if non-nil, zero value otherwise. + +### GetAssetClassificationOk + +`func (o *AssetsArray) GetAssetClassificationOk() (*string, bool)` + +GetAssetClassificationOk returns a tuple with the AssetClassification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetClassification + +`func (o *AssetsArray) SetAssetClassification(v string)` + +SetAssetClassification sets AssetClassification field to given value. + +### HasAssetClassification + +`func (o *AssetsArray) HasAssetClassification() bool` + +HasAssetClassification returns a boolean if a field has been set. + +### GetAssetId + +`func (o *AssetsArray) GetAssetId() string` + +GetAssetId returns the AssetId field if non-nil, zero value otherwise. + +### GetAssetIdOk + +`func (o *AssetsArray) GetAssetIdOk() (*string, bool)` + +GetAssetIdOk returns a tuple with the AssetId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetId + +`func (o *AssetsArray) SetAssetId(v string)` + +SetAssetId sets AssetId field to given value. + +### HasAssetId + +`func (o *AssetsArray) HasAssetId() bool` + +HasAssetId returns a boolean if a field has been set. + +### GetAssetLabel + +`func (o *AssetsArray) GetAssetLabel() string` + +GetAssetLabel returns the AssetLabel field if non-nil, zero value otherwise. + +### GetAssetLabelOk + +`func (o *AssetsArray) GetAssetLabelOk() (*string, bool)` + +GetAssetLabelOk returns a tuple with the AssetLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetLabel + +`func (o *AssetsArray) SetAssetLabel(v string)` + +SetAssetLabel sets AssetLabel field to given value. + +### HasAssetLabel + +`func (o *AssetsArray) HasAssetLabel() bool` + +HasAssetLabel returns a boolean if a field has been set. + +### GetType + +`func (o *AssetsArray) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AssetsArray) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AssetsArray) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AssetsArray) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetsList.md b/services/smartview/docs/AssetsList.md new file mode 100644 index 00000000..1a442495 --- /dev/null +++ b/services/smartview/docs/AssetsList.md @@ -0,0 +1,82 @@ +# AssetsList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**AssetsListPayLoad**](AssetsListPayLoad.md) | | [optional] +**Status** | Pointer to [**AssetsListStatus**](AssetsListStatus.md) | | [optional] + +## Methods + +### NewAssetsList + +`func NewAssetsList() *AssetsList` + +NewAssetsList instantiates a new AssetsList 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 + +### NewAssetsListWithDefaults + +`func NewAssetsListWithDefaults() *AssetsList` + +NewAssetsListWithDefaults instantiates a new AssetsList 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 + +### GetPayLoad + +`func (o *AssetsList) GetPayLoad() AssetsListPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *AssetsList) GetPayLoadOk() (*AssetsListPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *AssetsList) SetPayLoad(v AssetsListPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *AssetsList) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *AssetsList) GetStatus() AssetsListStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AssetsList) GetStatusOk() (*AssetsListStatus, 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 *AssetsList) SetStatus(v AssetsListStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *AssetsList) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetsListPayLoad.md b/services/smartview/docs/AssetsListPayLoad.md new file mode 100644 index 00000000..160d6082 --- /dev/null +++ b/services/smartview/docs/AssetsListPayLoad.md @@ -0,0 +1,82 @@ +# AssetsListPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Categories** | Pointer to [**[]Category**](Category.md) | | [optional] +**Classification** | Pointer to **string** | asset classification for the Electrical and Mechanical | [optional] + +## Methods + +### NewAssetsListPayLoad + +`func NewAssetsListPayLoad() *AssetsListPayLoad` + +NewAssetsListPayLoad instantiates a new AssetsListPayLoad 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 + +### NewAssetsListPayLoadWithDefaults + +`func NewAssetsListPayLoadWithDefaults() *AssetsListPayLoad` + +NewAssetsListPayLoadWithDefaults instantiates a new AssetsListPayLoad 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 + +### GetCategories + +`func (o *AssetsListPayLoad) GetCategories() []Category` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *AssetsListPayLoad) GetCategoriesOk() (*[]Category, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *AssetsListPayLoad) SetCategories(v []Category)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *AssetsListPayLoad) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### GetClassification + +`func (o *AssetsListPayLoad) GetClassification() string` + +GetClassification returns the Classification field if non-nil, zero value otherwise. + +### GetClassificationOk + +`func (o *AssetsListPayLoad) GetClassificationOk() (*string, bool)` + +GetClassificationOk returns a tuple with the Classification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassification + +`func (o *AssetsListPayLoad) SetClassification(v string)` + +SetClassification sets Classification field to given value. + +### HasClassification + +`func (o *AssetsListPayLoad) HasClassification() bool` + +HasClassification returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetsListStatus.md b/services/smartview/docs/AssetsListStatus.md new file mode 100644 index 00000000..0b859255 --- /dev/null +++ b/services/smartview/docs/AssetsListStatus.md @@ -0,0 +1,108 @@ +# AssetsListStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewAssetsListStatus + +`func NewAssetsListStatus() *AssetsListStatus` + +NewAssetsListStatus instantiates a new AssetsListStatus 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 + +### NewAssetsListStatusWithDefaults + +`func NewAssetsListStatusWithDefaults() *AssetsListStatus` + +NewAssetsListStatusWithDefaults instantiates a new AssetsListStatus 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 + +### GetMsg + +`func (o *AssetsListStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *AssetsListStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *AssetsListStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *AssetsListStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *AssetsListStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *AssetsListStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *AssetsListStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *AssetsListStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *AssetsListStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AssetsListStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AssetsListStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AssetsListStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetsPayLoad.md b/services/smartview/docs/AssetsPayLoad.md new file mode 100644 index 00000000..bc406f5c --- /dev/null +++ b/services/smartview/docs/AssetsPayLoad.md @@ -0,0 +1,82 @@ +# AssetsPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetsList** | Pointer to [**[]AssetsArray**](AssetsArray.md) | | [optional] +**TotalCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewAssetsPayLoad + +`func NewAssetsPayLoad() *AssetsPayLoad` + +NewAssetsPayLoad instantiates a new AssetsPayLoad 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 + +### NewAssetsPayLoadWithDefaults + +`func NewAssetsPayLoadWithDefaults() *AssetsPayLoad` + +NewAssetsPayLoadWithDefaults instantiates a new AssetsPayLoad 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 + +### GetAssetsList + +`func (o *AssetsPayLoad) GetAssetsList() []AssetsArray` + +GetAssetsList returns the AssetsList field if non-nil, zero value otherwise. + +### GetAssetsListOk + +`func (o *AssetsPayLoad) GetAssetsListOk() (*[]AssetsArray, bool)` + +GetAssetsListOk returns a tuple with the AssetsList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetsList + +`func (o *AssetsPayLoad) SetAssetsList(v []AssetsArray)` + +SetAssetsList sets AssetsList field to given value. + +### HasAssetsList + +`func (o *AssetsPayLoad) HasAssetsList() bool` + +HasAssetsList returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *AssetsPayLoad) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *AssetsPayLoad) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *AssetsPayLoad) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *AssetsPayLoad) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AssetsStatus.md b/services/smartview/docs/AssetsStatus.md new file mode 100644 index 00000000..e15317b1 --- /dev/null +++ b/services/smartview/docs/AssetsStatus.md @@ -0,0 +1,108 @@ +# AssetsStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewAssetsStatus + +`func NewAssetsStatus() *AssetsStatus` + +NewAssetsStatus instantiates a new AssetsStatus 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 + +### NewAssetsStatusWithDefaults + +`func NewAssetsStatusWithDefaults() *AssetsStatus` + +NewAssetsStatusWithDefaults instantiates a new AssetsStatus 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 + +### GetMsg + +`func (o *AssetsStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *AssetsStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *AssetsStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *AssetsStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *AssetsStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *AssetsStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *AssetsStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *AssetsStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *AssetsStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AssetsStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AssetsStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AssetsStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/AwsIotCoreChannelConfiguration.md b/services/smartview/docs/AwsIotCoreChannelConfiguration.md new file mode 100644 index 00000000..47a4235e --- /dev/null +++ b/services/smartview/docs/AwsIotCoreChannelConfiguration.md @@ -0,0 +1,51 @@ +# AwsIotCoreChannelConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | + +## Methods + +### NewAwsIotCoreChannelConfiguration + +`func NewAwsIotCoreChannelConfiguration(url string, ) *AwsIotCoreChannelConfiguration` + +NewAwsIotCoreChannelConfiguration instantiates a new AwsIotCoreChannelConfiguration 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 + +### NewAwsIotCoreChannelConfigurationWithDefaults + +`func NewAwsIotCoreChannelConfigurationWithDefaults() *AwsIotCoreChannelConfiguration` + +NewAwsIotCoreChannelConfigurationWithDefaults instantiates a new AwsIotCoreChannelConfiguration 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 + +### GetUrl + +`func (o *AwsIotCoreChannelConfiguration) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *AwsIotCoreChannelConfiguration) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *AwsIotCoreChannelConfiguration) SetUrl(v string)` + +SetUrl sets Url 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/services/smartview/docs/AzureChannelConfiguration.md b/services/smartview/docs/AzureChannelConfiguration.md new file mode 100644 index 00000000..9935fe58 --- /dev/null +++ b/services/smartview/docs/AzureChannelConfiguration.md @@ -0,0 +1,108 @@ +# AzureChannelConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchSize** | Pointer to **int32** | | [optional] +**NumberOfConcurrentCalls** | Pointer to **int32** | | [optional] +**NumberOfRetries** | Pointer to **int32** | | [optional] + +## Methods + +### NewAzureChannelConfiguration + +`func NewAzureChannelConfiguration() *AzureChannelConfiguration` + +NewAzureChannelConfiguration instantiates a new AzureChannelConfiguration 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 + +### NewAzureChannelConfigurationWithDefaults + +`func NewAzureChannelConfigurationWithDefaults() *AzureChannelConfiguration` + +NewAzureChannelConfigurationWithDefaults instantiates a new AzureChannelConfiguration 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 + +### GetBatchSize + +`func (o *AzureChannelConfiguration) GetBatchSize() int32` + +GetBatchSize returns the BatchSize field if non-nil, zero value otherwise. + +### GetBatchSizeOk + +`func (o *AzureChannelConfiguration) GetBatchSizeOk() (*int32, bool)` + +GetBatchSizeOk returns a tuple with the BatchSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchSize + +`func (o *AzureChannelConfiguration) SetBatchSize(v int32)` + +SetBatchSize sets BatchSize field to given value. + +### HasBatchSize + +`func (o *AzureChannelConfiguration) HasBatchSize() bool` + +HasBatchSize returns a boolean if a field has been set. + +### GetNumberOfConcurrentCalls + +`func (o *AzureChannelConfiguration) GetNumberOfConcurrentCalls() int32` + +GetNumberOfConcurrentCalls returns the NumberOfConcurrentCalls field if non-nil, zero value otherwise. + +### GetNumberOfConcurrentCallsOk + +`func (o *AzureChannelConfiguration) GetNumberOfConcurrentCallsOk() (*int32, bool)` + +GetNumberOfConcurrentCallsOk returns a tuple with the NumberOfConcurrentCalls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberOfConcurrentCalls + +`func (o *AzureChannelConfiguration) SetNumberOfConcurrentCalls(v int32)` + +SetNumberOfConcurrentCalls sets NumberOfConcurrentCalls field to given value. + +### HasNumberOfConcurrentCalls + +`func (o *AzureChannelConfiguration) HasNumberOfConcurrentCalls() bool` + +HasNumberOfConcurrentCalls returns a boolean if a field has been set. + +### GetNumberOfRetries + +`func (o *AzureChannelConfiguration) GetNumberOfRetries() int32` + +GetNumberOfRetries returns the NumberOfRetries field if non-nil, zero value otherwise. + +### GetNumberOfRetriesOk + +`func (o *AzureChannelConfiguration) GetNumberOfRetriesOk() (*int32, bool)` + +GetNumberOfRetriesOk returns a tuple with the NumberOfRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberOfRetries + +`func (o *AzureChannelConfiguration) SetNumberOfRetries(v int32)` + +SetNumberOfRetries sets NumberOfRetries field to given value. + +### HasNumberOfRetries + +`func (o *AzureChannelConfiguration) HasNumberOfRetries() bool` + +HasNumberOfRetries returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Cabinets.md b/services/smartview/docs/Cabinets.md new file mode 100644 index 00000000..dc8f0a7f --- /dev/null +++ b/services/smartview/docs/Cabinets.md @@ -0,0 +1,108 @@ +# Cabinets + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Circuits** | Pointer to [**[]Circuits**](Circuits.md) | | [optional] +**Name** | Pointer to [**CabinetsName**](CabinetsName.md) | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewCabinets + +`func NewCabinets() *Cabinets` + +NewCabinets instantiates a new Cabinets 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 + +### NewCabinetsWithDefaults + +`func NewCabinetsWithDefaults() *Cabinets` + +NewCabinetsWithDefaults instantiates a new Cabinets 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 + +### GetCircuits + +`func (o *Cabinets) GetCircuits() []Circuits` + +GetCircuits returns the Circuits field if non-nil, zero value otherwise. + +### GetCircuitsOk + +`func (o *Cabinets) GetCircuitsOk() (*[]Circuits, bool)` + +GetCircuitsOk returns a tuple with the Circuits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuits + +`func (o *Cabinets) SetCircuits(v []Circuits)` + +SetCircuits sets Circuits field to given value. + +### HasCircuits + +`func (o *Cabinets) HasCircuits() bool` + +HasCircuits returns a boolean if a field has been set. + +### GetName + +`func (o *Cabinets) GetName() CabinetsName` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Cabinets) GetNameOk() (*CabinetsName, 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 *Cabinets) SetName(v CabinetsName)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Cabinets) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *Cabinets) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cabinets) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cabinets) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Cabinets) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CabinetsName.md b/services/smartview/docs/CabinetsName.md new file mode 100644 index 00000000..675e5b93 --- /dev/null +++ b/services/smartview/docs/CabinetsName.md @@ -0,0 +1,11 @@ +# CabinetsName + +## Enum + + +* `CH1050004300105` (value: `"CH1:05:000430:0105"`) + + +[[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/services/smartview/docs/Cages.md b/services/smartview/docs/Cages.md new file mode 100644 index 00000000..6658e61d --- /dev/null +++ b/services/smartview/docs/Cages.md @@ -0,0 +1,108 @@ +# Cages + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cabinets** | Pointer to [**[]Cabinets**](Cabinets.md) | | [optional] +**Name** | Pointer to **string** | Cage Unique Space Id | [optional] +**Type** | Pointer to **string** | type of the asset | [optional] + +## Methods + +### NewCages + +`func NewCages() *Cages` + +NewCages instantiates a new Cages 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 + +### NewCagesWithDefaults + +`func NewCagesWithDefaults() *Cages` + +NewCagesWithDefaults instantiates a new Cages 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 + +### GetCabinets + +`func (o *Cages) GetCabinets() []Cabinets` + +GetCabinets returns the Cabinets field if non-nil, zero value otherwise. + +### GetCabinetsOk + +`func (o *Cages) GetCabinetsOk() (*[]Cabinets, bool)` + +GetCabinetsOk returns a tuple with the Cabinets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinets + +`func (o *Cages) SetCabinets(v []Cabinets)` + +SetCabinets sets Cabinets field to given value. + +### HasCabinets + +`func (o *Cages) HasCabinets() bool` + +HasCabinets returns a boolean if a field has been set. + +### GetName + +`func (o *Cages) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Cages) 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 *Cages) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Cages) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *Cages) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cages) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cages) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Cages) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Category.md b/services/smartview/docs/Category.md new file mode 100644 index 00000000..48311b2a --- /dev/null +++ b/services/smartview/docs/Category.md @@ -0,0 +1,82 @@ +# Category + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CategoryName** | Pointer to **string** | | [optional] +**Templates** | Pointer to [**[]Template**](Template.md) | | [optional] + +## Methods + +### NewCategory + +`func NewCategory() *Category` + +NewCategory instantiates a new Category 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 + +### NewCategoryWithDefaults + +`func NewCategoryWithDefaults() *Category` + +NewCategoryWithDefaults instantiates a new Category 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 + +### GetCategoryName + +`func (o *Category) GetCategoryName() string` + +GetCategoryName returns the CategoryName field if non-nil, zero value otherwise. + +### GetCategoryNameOk + +`func (o *Category) GetCategoryNameOk() (*string, bool)` + +GetCategoryNameOk returns a tuple with the CategoryName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategoryName + +`func (o *Category) SetCategoryName(v string)` + +SetCategoryName sets CategoryName field to given value. + +### HasCategoryName + +`func (o *Category) HasCategoryName() bool` + +HasCategoryName returns a boolean if a field has been set. + +### GetTemplates + +`func (o *Category) GetTemplates() []Template` + +GetTemplates returns the Templates field if non-nil, zero value otherwise. + +### GetTemplatesOk + +`func (o *Category) GetTemplatesOk() (*[]Template, bool)` + +GetTemplatesOk returns a tuple with the Templates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplates + +`func (o *Category) SetTemplates(v []Template)` + +SetTemplates sets Templates field to given value. + +### HasTemplates + +`func (o *Category) HasTemplates() bool` + +HasTemplates returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/Channel.md b/services/smartview/docs/Channel.md new file mode 100644 index 00000000..3f2478ef --- /dev/null +++ b/services/smartview/docs/Channel.md @@ -0,0 +1,134 @@ +# Channel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AwsIotCoreChannelConfiguration** | Pointer to [**AwsIotCoreChannelConfiguration**](AwsIotCoreChannelConfiguration.md) | | [optional] +**AzureChannelConfiguration** | Pointer to [**AzureChannelConfiguration**](AzureChannelConfiguration.md) | | [optional] +**ChannelType** | Pointer to [**ChannelChannelType**](ChannelChannelType.md) | | [optional] +**WebhookChannelConfiguration** | Pointer to [**WebhookChannelConfiguration**](WebhookChannelConfiguration.md) | | [optional] + +## Methods + +### NewChannel + +`func NewChannel() *Channel` + +NewChannel instantiates a new Channel 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 + +### NewChannelWithDefaults + +`func NewChannelWithDefaults() *Channel` + +NewChannelWithDefaults instantiates a new Channel 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 + +### GetAwsIotCoreChannelConfiguration + +`func (o *Channel) GetAwsIotCoreChannelConfiguration() AwsIotCoreChannelConfiguration` + +GetAwsIotCoreChannelConfiguration returns the AwsIotCoreChannelConfiguration field if non-nil, zero value otherwise. + +### GetAwsIotCoreChannelConfigurationOk + +`func (o *Channel) GetAwsIotCoreChannelConfigurationOk() (*AwsIotCoreChannelConfiguration, bool)` + +GetAwsIotCoreChannelConfigurationOk returns a tuple with the AwsIotCoreChannelConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsIotCoreChannelConfiguration + +`func (o *Channel) SetAwsIotCoreChannelConfiguration(v AwsIotCoreChannelConfiguration)` + +SetAwsIotCoreChannelConfiguration sets AwsIotCoreChannelConfiguration field to given value. + +### HasAwsIotCoreChannelConfiguration + +`func (o *Channel) HasAwsIotCoreChannelConfiguration() bool` + +HasAwsIotCoreChannelConfiguration returns a boolean if a field has been set. + +### GetAzureChannelConfiguration + +`func (o *Channel) GetAzureChannelConfiguration() AzureChannelConfiguration` + +GetAzureChannelConfiguration returns the AzureChannelConfiguration field if non-nil, zero value otherwise. + +### GetAzureChannelConfigurationOk + +`func (o *Channel) GetAzureChannelConfigurationOk() (*AzureChannelConfiguration, bool)` + +GetAzureChannelConfigurationOk returns a tuple with the AzureChannelConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureChannelConfiguration + +`func (o *Channel) SetAzureChannelConfiguration(v AzureChannelConfiguration)` + +SetAzureChannelConfiguration sets AzureChannelConfiguration field to given value. + +### HasAzureChannelConfiguration + +`func (o *Channel) HasAzureChannelConfiguration() bool` + +HasAzureChannelConfiguration returns a boolean if a field has been set. + +### GetChannelType + +`func (o *Channel) GetChannelType() ChannelChannelType` + +GetChannelType returns the ChannelType field if non-nil, zero value otherwise. + +### GetChannelTypeOk + +`func (o *Channel) GetChannelTypeOk() (*ChannelChannelType, bool)` + +GetChannelTypeOk returns a tuple with the ChannelType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannelType + +`func (o *Channel) SetChannelType(v ChannelChannelType)` + +SetChannelType sets ChannelType field to given value. + +### HasChannelType + +`func (o *Channel) HasChannelType() bool` + +HasChannelType returns a boolean if a field has been set. + +### GetWebhookChannelConfiguration + +`func (o *Channel) GetWebhookChannelConfiguration() WebhookChannelConfiguration` + +GetWebhookChannelConfiguration returns the WebhookChannelConfiguration field if non-nil, zero value otherwise. + +### GetWebhookChannelConfigurationOk + +`func (o *Channel) GetWebhookChannelConfigurationOk() (*WebhookChannelConfiguration, bool)` + +GetWebhookChannelConfigurationOk returns a tuple with the WebhookChannelConfiguration field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebhookChannelConfiguration + +`func (o *Channel) SetWebhookChannelConfiguration(v WebhookChannelConfiguration)` + +SetWebhookChannelConfiguration sets WebhookChannelConfiguration field to given value. + +### HasWebhookChannelConfiguration + +`func (o *Channel) HasWebhookChannelConfiguration() bool` + +HasWebhookChannelConfiguration returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ChannelChannelType.md b/services/smartview/docs/ChannelChannelType.md new file mode 100644 index 00000000..e9c62b82 --- /dev/null +++ b/services/smartview/docs/ChannelChannelType.md @@ -0,0 +1,15 @@ +# ChannelChannelType + +## Enum + + +* `AWS_IOT_CORE` (value: `"AWS_IOT_CORE"`) + +* `WEBHOOK` (value: `"WEBHOOK"`) + +* `AZURE` (value: `"AZURE"`) + + +[[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/services/smartview/docs/Circuits.md b/services/smartview/docs/Circuits.md new file mode 100644 index 00000000..2b468a7f --- /dev/null +++ b/services/smartview/docs/Circuits.md @@ -0,0 +1,82 @@ +# Circuits + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to [**CircuitsName**](CircuitsName.md) | | [optional] +**Type** | Pointer to [**CircuitsType**](CircuitsType.md) | | [optional] + +## Methods + +### NewCircuits + +`func NewCircuits() *Circuits` + +NewCircuits instantiates a new Circuits 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 + +### NewCircuitsWithDefaults + +`func NewCircuitsWithDefaults() *Circuits` + +NewCircuitsWithDefaults instantiates a new Circuits 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 *Circuits) GetName() CircuitsName` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *Circuits) GetNameOk() (*CircuitsName, 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 *Circuits) SetName(v CircuitsName)` + +SetName sets Name field to given value. + +### HasName + +`func (o *Circuits) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *Circuits) GetType() CircuitsType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Circuits) GetTypeOk() (*CircuitsType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Circuits) SetType(v CircuitsType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Circuits) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CircuitsMapWithCage.md b/services/smartview/docs/CircuitsMapWithCage.md new file mode 100644 index 00000000..edf0a0c9 --- /dev/null +++ b/services/smartview/docs/CircuitsMapWithCage.md @@ -0,0 +1,82 @@ +# CircuitsMapWithCage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to [**CircuitsMapWithCageName**](CircuitsMapWithCageName.md) | | [optional] +**Type** | Pointer to [**CircuitsType**](CircuitsType.md) | | [optional] + +## Methods + +### NewCircuitsMapWithCage + +`func NewCircuitsMapWithCage() *CircuitsMapWithCage` + +NewCircuitsMapWithCage instantiates a new CircuitsMapWithCage 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 + +### NewCircuitsMapWithCageWithDefaults + +`func NewCircuitsMapWithCageWithDefaults() *CircuitsMapWithCage` + +NewCircuitsMapWithCageWithDefaults instantiates a new CircuitsMapWithCage 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 *CircuitsMapWithCage) GetName() CircuitsMapWithCageName` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CircuitsMapWithCage) GetNameOk() (*CircuitsMapWithCageName, 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 *CircuitsMapWithCage) SetName(v CircuitsMapWithCageName)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CircuitsMapWithCage) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *CircuitsMapWithCage) GetType() CircuitsType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CircuitsMapWithCage) GetTypeOk() (*CircuitsType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CircuitsMapWithCage) SetType(v CircuitsType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CircuitsMapWithCage) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CircuitsMapWithCageName.md b/services/smartview/docs/CircuitsMapWithCageName.md new file mode 100644 index 00000000..aba9ded9 --- /dev/null +++ b/services/smartview/docs/CircuitsMapWithCageName.md @@ -0,0 +1,11 @@ +# CircuitsMapWithCageName + +## Enum + + +* `_877483_0` (value: `"877483.0"`) + + +[[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/services/smartview/docs/CircuitsName.md b/services/smartview/docs/CircuitsName.md new file mode 100644 index 00000000..1e02167b --- /dev/null +++ b/services/smartview/docs/CircuitsName.md @@ -0,0 +1,11 @@ +# CircuitsName + +## Enum + + +* `_877484_0` (value: `"877484.0"`) + + +[[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/services/smartview/docs/CircuitsType.md b/services/smartview/docs/CircuitsType.md new file mode 100644 index 00000000..439ec01a --- /dev/null +++ b/services/smartview/docs/CircuitsType.md @@ -0,0 +1,11 @@ +# CircuitsType + +## Enum + + +* `CIRCUIT` (value: `"circuit"`) + + +[[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/services/smartview/docs/ComparisonData.md b/services/smartview/docs/ComparisonData.md new file mode 100644 index 00000000..efde5422 --- /dev/null +++ b/services/smartview/docs/ComparisonData.md @@ -0,0 +1,160 @@ +# ComparisonData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Datapoint** | Pointer to [**ComparisonDataDatapoint**](ComparisonDataDatapoint.md) | | [optional] +**LastMonth** | Pointer to **float32** | comparison for the current value of the datapoint with the last month's value | [optional] +**LastQuarter** | Pointer to **float32** | comparison for the current value of the datapoint with the last quarter's value | [optional] +**LastWeek** | Pointer to **float32** | comparison for the current value of the datapoint with last week's value | [optional] +**Yesterday** | Pointer to **float32** | comparison for the current value of the datapoint with yesterday's value | [optional] + +## Methods + +### NewComparisonData + +`func NewComparisonData() *ComparisonData` + +NewComparisonData instantiates a new ComparisonData 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 + +### NewComparisonDataWithDefaults + +`func NewComparisonDataWithDefaults() *ComparisonData` + +NewComparisonDataWithDefaults instantiates a new ComparisonData 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 + +### GetDatapoint + +`func (o *ComparisonData) GetDatapoint() ComparisonDataDatapoint` + +GetDatapoint returns the Datapoint field if non-nil, zero value otherwise. + +### GetDatapointOk + +`func (o *ComparisonData) GetDatapointOk() (*ComparisonDataDatapoint, bool)` + +GetDatapointOk returns a tuple with the Datapoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatapoint + +`func (o *ComparisonData) SetDatapoint(v ComparisonDataDatapoint)` + +SetDatapoint sets Datapoint field to given value. + +### HasDatapoint + +`func (o *ComparisonData) HasDatapoint() bool` + +HasDatapoint returns a boolean if a field has been set. + +### GetLastMonth + +`func (o *ComparisonData) GetLastMonth() float32` + +GetLastMonth returns the LastMonth field if non-nil, zero value otherwise. + +### GetLastMonthOk + +`func (o *ComparisonData) GetLastMonthOk() (*float32, bool)` + +GetLastMonthOk returns a tuple with the LastMonth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastMonth + +`func (o *ComparisonData) SetLastMonth(v float32)` + +SetLastMonth sets LastMonth field to given value. + +### HasLastMonth + +`func (o *ComparisonData) HasLastMonth() bool` + +HasLastMonth returns a boolean if a field has been set. + +### GetLastQuarter + +`func (o *ComparisonData) GetLastQuarter() float32` + +GetLastQuarter returns the LastQuarter field if non-nil, zero value otherwise. + +### GetLastQuarterOk + +`func (o *ComparisonData) GetLastQuarterOk() (*float32, bool)` + +GetLastQuarterOk returns a tuple with the LastQuarter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastQuarter + +`func (o *ComparisonData) SetLastQuarter(v float32)` + +SetLastQuarter sets LastQuarter field to given value. + +### HasLastQuarter + +`func (o *ComparisonData) HasLastQuarter() bool` + +HasLastQuarter returns a boolean if a field has been set. + +### GetLastWeek + +`func (o *ComparisonData) GetLastWeek() float32` + +GetLastWeek returns the LastWeek field if non-nil, zero value otherwise. + +### GetLastWeekOk + +`func (o *ComparisonData) GetLastWeekOk() (*float32, bool)` + +GetLastWeekOk returns a tuple with the LastWeek field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastWeek + +`func (o *ComparisonData) SetLastWeek(v float32)` + +SetLastWeek sets LastWeek field to given value. + +### HasLastWeek + +`func (o *ComparisonData) HasLastWeek() bool` + +HasLastWeek returns a boolean if a field has been set. + +### GetYesterday + +`func (o *ComparisonData) GetYesterday() float32` + +GetYesterday returns the Yesterday field if non-nil, zero value otherwise. + +### GetYesterdayOk + +`func (o *ComparisonData) GetYesterdayOk() (*float32, bool)` + +GetYesterdayOk returns a tuple with the Yesterday field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetYesterday + +`func (o *ComparisonData) SetYesterday(v float32)` + +SetYesterday sets Yesterday field to given value. + +### HasYesterday + +`func (o *ComparisonData) HasYesterday() bool` + +HasYesterday returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ComparisonDataDatapoint.md b/services/smartview/docs/ComparisonDataDatapoint.md new file mode 100644 index 00000000..8cf2c25d --- /dev/null +++ b/services/smartview/docs/ComparisonDataDatapoint.md @@ -0,0 +1,11 @@ +# ComparisonDataDatapoint + +## Enum + + +* `PERCENTAGE_KVA` (value: `"percentageKva"`) + + +[[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/services/smartview/docs/ComparisonDataTrend.md b/services/smartview/docs/ComparisonDataTrend.md new file mode 100644 index 00000000..a46e8a45 --- /dev/null +++ b/services/smartview/docs/ComparisonDataTrend.md @@ -0,0 +1,82 @@ +# ComparisonDataTrend + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Datetime** | Pointer to **string** | datetime. | [optional] +**Value** | Pointer to **string** | trending values | [optional] + +## Methods + +### NewComparisonDataTrend + +`func NewComparisonDataTrend() *ComparisonDataTrend` + +NewComparisonDataTrend instantiates a new ComparisonDataTrend 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 + +### NewComparisonDataTrendWithDefaults + +`func NewComparisonDataTrendWithDefaults() *ComparisonDataTrend` + +NewComparisonDataTrendWithDefaults instantiates a new ComparisonDataTrend 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 + +### GetDatetime + +`func (o *ComparisonDataTrend) GetDatetime() string` + +GetDatetime returns the Datetime field if non-nil, zero value otherwise. + +### GetDatetimeOk + +`func (o *ComparisonDataTrend) GetDatetimeOk() (*string, bool)` + +GetDatetimeOk returns a tuple with the Datetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatetime + +`func (o *ComparisonDataTrend) SetDatetime(v string)` + +SetDatetime sets Datetime field to given value. + +### HasDatetime + +`func (o *ComparisonDataTrend) HasDatetime() bool` + +HasDatetime returns a boolean if a field has been set. + +### GetValue + +`func (o *ComparisonDataTrend) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ComparisonDataTrend) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ComparisonDataTrend) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ComparisonDataTrend) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ConditionalAlert.md b/services/smartview/docs/ConditionalAlert.md new file mode 100644 index 00000000..61e07c5b --- /dev/null +++ b/services/smartview/docs/ConditionalAlert.md @@ -0,0 +1,602 @@ +# ConditionalAlert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AffectedCustomerAsset** | Pointer to **string** | | [optional] +**AlertType** | Pointer to **string** | | [optional] +**Asset** | Pointer to **string** | | [optional] +**Assetname** | Pointer to **string** | | [optional] +**Assettype** | Pointer to **string** | | [optional] +**Condalerttypeid** | Pointer to **string** | | [optional] +**Condassetclassification** | Pointer to **string** | | [optional] +**Condassetid** | Pointer to **string** | | [optional] +**Condcurrentvalue** | Pointer to **string** | | [optional] +**Condeventtype** | Pointer to **string** | | [optional] +**Condtagid** | Pointer to **string** | | [optional] +**CustomerAssets** | Pointer to **string** | | [optional] +**Ibx** | Pointer to **string** | | [optional] +**InfraAssets** | Pointer to **string** | | [optional] +**MeasurementType** | Pointer to **string** | | [optional] +**Region** | Pointer to **string** | | [optional] +**Section** | Pointer to **string** | | [optional] +**ThresholdUnit** | Pointer to **string** | | [optional] +**ThresholdValue** | Pointer to **string** | | [optional] +**ThresholdValueMax** | Pointer to **string** | | [optional] +**ThresholdValueMin** | Pointer to **string** | | [optional] +**Uom** | Pointer to **string** | | [optional] + +## Methods + +### NewConditionalAlert + +`func NewConditionalAlert() *ConditionalAlert` + +NewConditionalAlert instantiates a new ConditionalAlert 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 + +### NewConditionalAlertWithDefaults + +`func NewConditionalAlertWithDefaults() *ConditionalAlert` + +NewConditionalAlertWithDefaults instantiates a new ConditionalAlert 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 + +### GetAffectedCustomerAsset + +`func (o *ConditionalAlert) GetAffectedCustomerAsset() string` + +GetAffectedCustomerAsset returns the AffectedCustomerAsset field if non-nil, zero value otherwise. + +### GetAffectedCustomerAssetOk + +`func (o *ConditionalAlert) GetAffectedCustomerAssetOk() (*string, bool)` + +GetAffectedCustomerAssetOk returns a tuple with the AffectedCustomerAsset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAffectedCustomerAsset + +`func (o *ConditionalAlert) SetAffectedCustomerAsset(v string)` + +SetAffectedCustomerAsset sets AffectedCustomerAsset field to given value. + +### HasAffectedCustomerAsset + +`func (o *ConditionalAlert) HasAffectedCustomerAsset() bool` + +HasAffectedCustomerAsset returns a boolean if a field has been set. + +### GetAlertType + +`func (o *ConditionalAlert) GetAlertType() string` + +GetAlertType returns the AlertType field if non-nil, zero value otherwise. + +### GetAlertTypeOk + +`func (o *ConditionalAlert) GetAlertTypeOk() (*string, bool)` + +GetAlertTypeOk returns a tuple with the AlertType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertType + +`func (o *ConditionalAlert) SetAlertType(v string)` + +SetAlertType sets AlertType field to given value. + +### HasAlertType + +`func (o *ConditionalAlert) HasAlertType() bool` + +HasAlertType returns a boolean if a field has been set. + +### GetAsset + +`func (o *ConditionalAlert) GetAsset() string` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *ConditionalAlert) GetAssetOk() (*string, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *ConditionalAlert) SetAsset(v string)` + +SetAsset sets Asset field to given value. + +### HasAsset + +`func (o *ConditionalAlert) HasAsset() bool` + +HasAsset returns a boolean if a field has been set. + +### GetAssetname + +`func (o *ConditionalAlert) GetAssetname() string` + +GetAssetname returns the Assetname field if non-nil, zero value otherwise. + +### GetAssetnameOk + +`func (o *ConditionalAlert) GetAssetnameOk() (*string, bool)` + +GetAssetnameOk returns a tuple with the Assetname field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetname + +`func (o *ConditionalAlert) SetAssetname(v string)` + +SetAssetname sets Assetname field to given value. + +### HasAssetname + +`func (o *ConditionalAlert) HasAssetname() bool` + +HasAssetname returns a boolean if a field has been set. + +### GetAssettype + +`func (o *ConditionalAlert) GetAssettype() string` + +GetAssettype returns the Assettype field if non-nil, zero value otherwise. + +### GetAssettypeOk + +`func (o *ConditionalAlert) GetAssettypeOk() (*string, bool)` + +GetAssettypeOk returns a tuple with the Assettype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssettype + +`func (o *ConditionalAlert) SetAssettype(v string)` + +SetAssettype sets Assettype field to given value. + +### HasAssettype + +`func (o *ConditionalAlert) HasAssettype() bool` + +HasAssettype returns a boolean if a field has been set. + +### GetCondalerttypeid + +`func (o *ConditionalAlert) GetCondalerttypeid() string` + +GetCondalerttypeid returns the Condalerttypeid field if non-nil, zero value otherwise. + +### GetCondalerttypeidOk + +`func (o *ConditionalAlert) GetCondalerttypeidOk() (*string, bool)` + +GetCondalerttypeidOk returns a tuple with the Condalerttypeid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondalerttypeid + +`func (o *ConditionalAlert) SetCondalerttypeid(v string)` + +SetCondalerttypeid sets Condalerttypeid field to given value. + +### HasCondalerttypeid + +`func (o *ConditionalAlert) HasCondalerttypeid() bool` + +HasCondalerttypeid returns a boolean if a field has been set. + +### GetCondassetclassification + +`func (o *ConditionalAlert) GetCondassetclassification() string` + +GetCondassetclassification returns the Condassetclassification field if non-nil, zero value otherwise. + +### GetCondassetclassificationOk + +`func (o *ConditionalAlert) GetCondassetclassificationOk() (*string, bool)` + +GetCondassetclassificationOk returns a tuple with the Condassetclassification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondassetclassification + +`func (o *ConditionalAlert) SetCondassetclassification(v string)` + +SetCondassetclassification sets Condassetclassification field to given value. + +### HasCondassetclassification + +`func (o *ConditionalAlert) HasCondassetclassification() bool` + +HasCondassetclassification returns a boolean if a field has been set. + +### GetCondassetid + +`func (o *ConditionalAlert) GetCondassetid() string` + +GetCondassetid returns the Condassetid field if non-nil, zero value otherwise. + +### GetCondassetidOk + +`func (o *ConditionalAlert) GetCondassetidOk() (*string, bool)` + +GetCondassetidOk returns a tuple with the Condassetid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondassetid + +`func (o *ConditionalAlert) SetCondassetid(v string)` + +SetCondassetid sets Condassetid field to given value. + +### HasCondassetid + +`func (o *ConditionalAlert) HasCondassetid() bool` + +HasCondassetid returns a boolean if a field has been set. + +### GetCondcurrentvalue + +`func (o *ConditionalAlert) GetCondcurrentvalue() string` + +GetCondcurrentvalue returns the Condcurrentvalue field if non-nil, zero value otherwise. + +### GetCondcurrentvalueOk + +`func (o *ConditionalAlert) GetCondcurrentvalueOk() (*string, bool)` + +GetCondcurrentvalueOk returns a tuple with the Condcurrentvalue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondcurrentvalue + +`func (o *ConditionalAlert) SetCondcurrentvalue(v string)` + +SetCondcurrentvalue sets Condcurrentvalue field to given value. + +### HasCondcurrentvalue + +`func (o *ConditionalAlert) HasCondcurrentvalue() bool` + +HasCondcurrentvalue returns a boolean if a field has been set. + +### GetCondeventtype + +`func (o *ConditionalAlert) GetCondeventtype() string` + +GetCondeventtype returns the Condeventtype field if non-nil, zero value otherwise. + +### GetCondeventtypeOk + +`func (o *ConditionalAlert) GetCondeventtypeOk() (*string, bool)` + +GetCondeventtypeOk returns a tuple with the Condeventtype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondeventtype + +`func (o *ConditionalAlert) SetCondeventtype(v string)` + +SetCondeventtype sets Condeventtype field to given value. + +### HasCondeventtype + +`func (o *ConditionalAlert) HasCondeventtype() bool` + +HasCondeventtype returns a boolean if a field has been set. + +### GetCondtagid + +`func (o *ConditionalAlert) GetCondtagid() string` + +GetCondtagid returns the Condtagid field if non-nil, zero value otherwise. + +### GetCondtagidOk + +`func (o *ConditionalAlert) GetCondtagidOk() (*string, bool)` + +GetCondtagidOk returns a tuple with the Condtagid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCondtagid + +`func (o *ConditionalAlert) SetCondtagid(v string)` + +SetCondtagid sets Condtagid field to given value. + +### HasCondtagid + +`func (o *ConditionalAlert) HasCondtagid() bool` + +HasCondtagid returns a boolean if a field has been set. + +### GetCustomerAssets + +`func (o *ConditionalAlert) GetCustomerAssets() string` + +GetCustomerAssets returns the CustomerAssets field if non-nil, zero value otherwise. + +### GetCustomerAssetsOk + +`func (o *ConditionalAlert) GetCustomerAssetsOk() (*string, bool)` + +GetCustomerAssetsOk returns a tuple with the CustomerAssets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerAssets + +`func (o *ConditionalAlert) SetCustomerAssets(v string)` + +SetCustomerAssets sets CustomerAssets field to given value. + +### HasCustomerAssets + +`func (o *ConditionalAlert) HasCustomerAssets() bool` + +HasCustomerAssets returns a boolean if a field has been set. + +### GetIbx + +`func (o *ConditionalAlert) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *ConditionalAlert) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *ConditionalAlert) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *ConditionalAlert) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetInfraAssets + +`func (o *ConditionalAlert) GetInfraAssets() string` + +GetInfraAssets returns the InfraAssets field if non-nil, zero value otherwise. + +### GetInfraAssetsOk + +`func (o *ConditionalAlert) GetInfraAssetsOk() (*string, bool)` + +GetInfraAssetsOk returns a tuple with the InfraAssets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfraAssets + +`func (o *ConditionalAlert) SetInfraAssets(v string)` + +SetInfraAssets sets InfraAssets field to given value. + +### HasInfraAssets + +`func (o *ConditionalAlert) HasInfraAssets() bool` + +HasInfraAssets returns a boolean if a field has been set. + +### GetMeasurementType + +`func (o *ConditionalAlert) GetMeasurementType() string` + +GetMeasurementType returns the MeasurementType field if non-nil, zero value otherwise. + +### GetMeasurementTypeOk + +`func (o *ConditionalAlert) GetMeasurementTypeOk() (*string, bool)` + +GetMeasurementTypeOk returns a tuple with the MeasurementType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeasurementType + +`func (o *ConditionalAlert) SetMeasurementType(v string)` + +SetMeasurementType sets MeasurementType field to given value. + +### HasMeasurementType + +`func (o *ConditionalAlert) HasMeasurementType() bool` + +HasMeasurementType returns a boolean if a field has been set. + +### GetRegion + +`func (o *ConditionalAlert) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *ConditionalAlert) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *ConditionalAlert) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *ConditionalAlert) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### GetSection + +`func (o *ConditionalAlert) GetSection() string` + +GetSection returns the Section field if non-nil, zero value otherwise. + +### GetSectionOk + +`func (o *ConditionalAlert) GetSectionOk() (*string, bool)` + +GetSectionOk returns a tuple with the Section field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSection + +`func (o *ConditionalAlert) SetSection(v string)` + +SetSection sets Section field to given value. + +### HasSection + +`func (o *ConditionalAlert) HasSection() bool` + +HasSection returns a boolean if a field has been set. + +### GetThresholdUnit + +`func (o *ConditionalAlert) GetThresholdUnit() string` + +GetThresholdUnit returns the ThresholdUnit field if non-nil, zero value otherwise. + +### GetThresholdUnitOk + +`func (o *ConditionalAlert) GetThresholdUnitOk() (*string, bool)` + +GetThresholdUnitOk returns a tuple with the ThresholdUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdUnit + +`func (o *ConditionalAlert) SetThresholdUnit(v string)` + +SetThresholdUnit sets ThresholdUnit field to given value. + +### HasThresholdUnit + +`func (o *ConditionalAlert) HasThresholdUnit() bool` + +HasThresholdUnit returns a boolean if a field has been set. + +### GetThresholdValue + +`func (o *ConditionalAlert) GetThresholdValue() string` + +GetThresholdValue returns the ThresholdValue field if non-nil, zero value otherwise. + +### GetThresholdValueOk + +`func (o *ConditionalAlert) GetThresholdValueOk() (*string, bool)` + +GetThresholdValueOk returns a tuple with the ThresholdValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValue + +`func (o *ConditionalAlert) SetThresholdValue(v string)` + +SetThresholdValue sets ThresholdValue field to given value. + +### HasThresholdValue + +`func (o *ConditionalAlert) HasThresholdValue() bool` + +HasThresholdValue returns a boolean if a field has been set. + +### GetThresholdValueMax + +`func (o *ConditionalAlert) GetThresholdValueMax() string` + +GetThresholdValueMax returns the ThresholdValueMax field if non-nil, zero value otherwise. + +### GetThresholdValueMaxOk + +`func (o *ConditionalAlert) GetThresholdValueMaxOk() (*string, bool)` + +GetThresholdValueMaxOk returns a tuple with the ThresholdValueMax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValueMax + +`func (o *ConditionalAlert) SetThresholdValueMax(v string)` + +SetThresholdValueMax sets ThresholdValueMax field to given value. + +### HasThresholdValueMax + +`func (o *ConditionalAlert) HasThresholdValueMax() bool` + +HasThresholdValueMax returns a boolean if a field has been set. + +### GetThresholdValueMin + +`func (o *ConditionalAlert) GetThresholdValueMin() string` + +GetThresholdValueMin returns the ThresholdValueMin field if non-nil, zero value otherwise. + +### GetThresholdValueMinOk + +`func (o *ConditionalAlert) GetThresholdValueMinOk() (*string, bool)` + +GetThresholdValueMinOk returns a tuple with the ThresholdValueMin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThresholdValueMin + +`func (o *ConditionalAlert) SetThresholdValueMin(v string)` + +SetThresholdValueMin sets ThresholdValueMin field to given value. + +### HasThresholdValueMin + +`func (o *ConditionalAlert) HasThresholdValueMin() bool` + +HasThresholdValueMin returns a boolean if a field has been set. + +### GetUom + +`func (o *ConditionalAlert) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *ConditionalAlert) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *ConditionalAlert) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *ConditionalAlert) HasUom() bool` + +HasUom returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CurrentTagPointRequest.md b/services/smartview/docs/CurrentTagPointRequest.md new file mode 100644 index 00000000..be096576 --- /dev/null +++ b/services/smartview/docs/CurrentTagPointRequest.md @@ -0,0 +1,108 @@ +# CurrentTagPointRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | customer account number | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**TagIds** | Pointer to **[]string** | | [optional] + +## Methods + +### NewCurrentTagPointRequest + +`func NewCurrentTagPointRequest() *CurrentTagPointRequest` + +NewCurrentTagPointRequest instantiates a new CurrentTagPointRequest 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 + +### NewCurrentTagPointRequestWithDefaults + +`func NewCurrentTagPointRequestWithDefaults() *CurrentTagPointRequest` + +NewCurrentTagPointRequestWithDefaults instantiates a new CurrentTagPointRequest 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 + +### GetAccountNo + +`func (o *CurrentTagPointRequest) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *CurrentTagPointRequest) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *CurrentTagPointRequest) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *CurrentTagPointRequest) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetIbx + +`func (o *CurrentTagPointRequest) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *CurrentTagPointRequest) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *CurrentTagPointRequest) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *CurrentTagPointRequest) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetTagIds + +`func (o *CurrentTagPointRequest) GetTagIds() []string` + +GetTagIds returns the TagIds field if non-nil, zero value otherwise. + +### GetTagIdsOk + +`func (o *CurrentTagPointRequest) GetTagIdsOk() (*[]string, bool)` + +GetTagIdsOk returns a tuple with the TagIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagIds + +`func (o *CurrentTagPointRequest) SetTagIds(v []string)` + +SetTagIds sets TagIds field to given value. + +### HasTagIds + +`func (o *CurrentTagPointRequest) HasTagIds() bool` + +HasTagIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CurrentTagPointResponse.md b/services/smartview/docs/CurrentTagPointResponse.md new file mode 100644 index 00000000..ed37df0b --- /dev/null +++ b/services/smartview/docs/CurrentTagPointResponse.md @@ -0,0 +1,56 @@ +# CurrentTagPointResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalCount** | Pointer to **map[string]interface{}** | total number of current tag point | [optional] + +## Methods + +### NewCurrentTagPointResponse + +`func NewCurrentTagPointResponse() *CurrentTagPointResponse` + +NewCurrentTagPointResponse instantiates a new CurrentTagPointResponse 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 + +### NewCurrentTagPointResponseWithDefaults + +`func NewCurrentTagPointResponseWithDefaults() *CurrentTagPointResponse` + +NewCurrentTagPointResponseWithDefaults instantiates a new CurrentTagPointResponse 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 + +### GetTotalCount + +`func (o *CurrentTagPointResponse) GetTotalCount() map[string]interface{}` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *CurrentTagPointResponse) GetTotalCountOk() (*map[string]interface{}, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *CurrentTagPointResponse) SetTotalCount(v map[string]interface{})` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *CurrentTagPointResponse) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CustomAlert.md b/services/smartview/docs/CustomAlert.md new file mode 100644 index 00000000..72e89690 --- /dev/null +++ b/services/smartview/docs/CustomAlert.md @@ -0,0 +1,98 @@ +# CustomAlert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | **string** | | +**Ibx** | **[]string** | | +**User** | Pointer to **string** | | [optional] + +## Methods + +### NewCustomAlert + +`func NewCustomAlert(accountNumber string, ibx []string, ) *CustomAlert` + +NewCustomAlert instantiates a new CustomAlert 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 + +### NewCustomAlertWithDefaults + +`func NewCustomAlertWithDefaults() *CustomAlert` + +NewCustomAlertWithDefaults instantiates a new CustomAlert 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 + +### GetAccountNumber + +`func (o *CustomAlert) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *CustomAlert) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *CustomAlert) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + + +### GetIbx + +`func (o *CustomAlert) GetIbx() []string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *CustomAlert) GetIbxOk() (*[]string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *CustomAlert) SetIbx(v []string)` + +SetIbx sets Ibx field to given value. + + +### GetUser + +`func (o *CustomAlert) GetUser() string` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *CustomAlert) GetUserOk() (*string, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *CustomAlert) SetUser(v string)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *CustomAlert) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/CustomerAssets.md b/services/smartview/docs/CustomerAssets.md new file mode 100644 index 00000000..e491594c --- /dev/null +++ b/services/smartview/docs/CustomerAssets.md @@ -0,0 +1,108 @@ +# CustomerAssets + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assets** | Pointer to **[]map[string]interface{}** | | [optional] +**AssetsName** | Pointer to **[]map[string]interface{}** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewCustomerAssets + +`func NewCustomerAssets() *CustomerAssets` + +NewCustomerAssets instantiates a new CustomerAssets 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 + +### NewCustomerAssetsWithDefaults + +`func NewCustomerAssetsWithDefaults() *CustomerAssets` + +NewCustomerAssetsWithDefaults instantiates a new CustomerAssets 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 + +### GetAssets + +`func (o *CustomerAssets) GetAssets() []map[string]interface{}` + +GetAssets returns the Assets field if non-nil, zero value otherwise. + +### GetAssetsOk + +`func (o *CustomerAssets) GetAssetsOk() (*[]map[string]interface{}, bool)` + +GetAssetsOk returns a tuple with the Assets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssets + +`func (o *CustomerAssets) SetAssets(v []map[string]interface{})` + +SetAssets sets Assets field to given value. + +### HasAssets + +`func (o *CustomerAssets) HasAssets() bool` + +HasAssets returns a boolean if a field has been set. + +### GetAssetsName + +`func (o *CustomerAssets) GetAssetsName() []map[string]interface{}` + +GetAssetsName returns the AssetsName field if non-nil, zero value otherwise. + +### GetAssetsNameOk + +`func (o *CustomerAssets) GetAssetsNameOk() (*[]map[string]interface{}, bool)` + +GetAssetsNameOk returns a tuple with the AssetsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetsName + +`func (o *CustomerAssets) SetAssetsName(v []map[string]interface{})` + +SetAssetsName sets AssetsName field to given value. + +### HasAssetsName + +`func (o *CustomerAssets) HasAssetsName() bool` + +HasAssetsName returns a boolean if a field has been set. + +### GetType + +`func (o *CustomerAssets) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CustomerAssets) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CustomerAssets) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CustomerAssets) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/DCIMPowerApi.md b/services/smartview/docs/DCIMPowerApi.md new file mode 100644 index 00000000..16320aa9 --- /dev/null +++ b/services/smartview/docs/DCIMPowerApi.md @@ -0,0 +1,233 @@ +# \DCIMPowerApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Mixin0**](DCIMPowerApi.md#Mixin0) | **Post** /power/v1/current | Fetch current power consumption data +[**Mixin0_0**](DCIMPowerApi.md#Mixin0_0) | **Get** /power/v1/trending | Fetch Trending Power Data. +[**PowerV1CurrentGet**](DCIMPowerApi.md#PowerV1CurrentGet) | **Get** /power/v1/current | Fetch current power consumption data + + + +## Mixin0 + +> PowerDataResponseIBX Mixin0(ctx).Authorization(authorization).Body(body).Execute() + +Fetch current power consumption data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + body := *openapiclient.NewPowerCurrentPostRequest() // PowerCurrentPostRequest | request payload (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DCIMPowerApi.Mixin0(context.Background()).Authorization(authorization).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.Mixin0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin0`: PowerDataResponseIBX + fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.Mixin0`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin0Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **body** | [**PowerCurrentPostRequest**](PowerCurrentPostRequest.md) | request payload | + +### Return type + +[**PowerDataResponseIBX**](PowerDataResponseIBX.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Mixin0_0 + +> TrendingPowerData Mixin0_0(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + +Fetch Trending Power Data. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | Customer Account Number + ibx := float32(8.14) // float32 | IBX Code + levelType := openapiclient._power_v1_current_get_levelType_parameter("ibx") // PowerV1CurrentGetLevelTypeParameter | [ibx|cage|cabinet|circuit] + levelValue := "levelValue_example" // string | ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. + interval := "interval_example" // string | [recording|1h|1d] + fromDate := "fromDate_example" // string | timestamp expected to be epoch long ( milliseconds ). + toDate := "toDate_example" // string | timestamp expected to be epoch long ( milliseconds ). + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DCIMPowerApi.Mixin0_0(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.Mixin0_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin0_0`: TrendingPowerData + fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.Mixin0_0`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin0_1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | Customer Account Number | + **ibx** | **float32** | IBX Code | + **levelType** | [**PowerV1CurrentGetLevelTypeParameter**](PowerV1CurrentGetLevelTypeParameter.md) | [ibx|cage|cabinet|circuit] | + **levelValue** | **string** | ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. | + **interval** | **string** | [recording|1h|1d] | + **fromDate** | **string** | timestamp expected to be epoch long ( milliseconds ). | + **toDate** | **string** | timestamp expected to be epoch long ( milliseconds ). | + +### Return type + +[**TrendingPowerData**](TrendingPowerData.md) + +### Authorization + +No authorization required + +### 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) + + +## PowerV1CurrentGet + +> PowerData PowerV1CurrentGet(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() + +Fetch current power consumption data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | Customer Account Number + ibx := "ibx_example" // string | IBX Code + levelType := openapiclient._power_v1_current_get_levelType_parameter("ibx") // PowerV1CurrentGetLevelTypeParameter | level type allowed value [ibx|cage|cabinet|circuit] + levelValue := "levelValue_example" // string | level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DCIMPowerApi.PowerV1CurrentGet(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.PowerV1CurrentGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PowerV1CurrentGet`: PowerData + fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.PowerV1CurrentGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPowerV1CurrentGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | Customer Account Number | + **ibx** | **string** | IBX Code | + **levelType** | [**PowerV1CurrentGetLevelTypeParameter**](PowerV1CurrentGetLevelTypeParameter.md) | level type allowed value [ibx|cage|cabinet|circuit] | + **levelValue** | **string** | level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. | + +### Return type + +[**PowerData**](PowerData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/DataValue.md b/services/smartview/docs/DataValue.md new file mode 100644 index 00000000..df3725a6 --- /dev/null +++ b/services/smartview/docs/DataValue.md @@ -0,0 +1,108 @@ +# DataValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Datetime** | Pointer to **string** | timestamp since epoch. reading timestamp | [optional] +**Modifiers** | Pointer to **[]string** | modifiers applicable for the reading value | [optional] +**Value** | Pointer to **string** | reading value for the datapoint | [optional] + +## Methods + +### NewDataValue + +`func NewDataValue() *DataValue` + +NewDataValue instantiates a new DataValue 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 + +### NewDataValueWithDefaults + +`func NewDataValueWithDefaults() *DataValue` + +NewDataValueWithDefaults instantiates a new DataValue 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 + +### GetDatetime + +`func (o *DataValue) GetDatetime() string` + +GetDatetime returns the Datetime field if non-nil, zero value otherwise. + +### GetDatetimeOk + +`func (o *DataValue) GetDatetimeOk() (*string, bool)` + +GetDatetimeOk returns a tuple with the Datetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatetime + +`func (o *DataValue) SetDatetime(v string)` + +SetDatetime sets Datetime field to given value. + +### HasDatetime + +`func (o *DataValue) HasDatetime() bool` + +HasDatetime returns a boolean if a field has been set. + +### GetModifiers + +`func (o *DataValue) GetModifiers() []string` + +GetModifiers returns the Modifiers field if non-nil, zero value otherwise. + +### GetModifiersOk + +`func (o *DataValue) GetModifiersOk() (*[]string, bool)` + +GetModifiersOk returns a tuple with the Modifiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModifiers + +`func (o *DataValue) SetModifiers(v []string)` + +SetModifiers sets Modifiers field to given value. + +### HasModifiers + +`func (o *DataValue) HasModifiers() bool` + +HasModifiers returns a boolean if a field has been set. + +### GetValue + +`func (o *DataValue) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataValue) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DataValue) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataValue) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/DefaultApi.md b/services/smartview/docs/DefaultApi.md new file mode 100644 index 00000000..2db24ca1 --- /dev/null +++ b/services/smartview/docs/DefaultApi.md @@ -0,0 +1,442 @@ +# \DefaultApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSubscription**](DefaultApi.md#CreateSubscription) | **Post** /smartview/v2/streaming/subscriptions | Create subscription endpoint +[**DeleteSubscriptionById**](DefaultApi.md#DeleteSubscriptionById) | **Delete** /smartview/v2/streaming/subscriptions/{id} | Delete subscription endpoint +[**GetAllSubscriptions**](DefaultApi.md#GetAllSubscriptions) | **Get** /smartview/v2/streaming/subscriptions | Get all subscription endpoint +[**GetSubscriptionById**](DefaultApi.md#GetSubscriptionById) | **Get** /smartview/v2/streaming/subscriptions/{id} | Get subscription endpoint +[**GetSubscriptionData**](DefaultApi.md#GetSubscriptionData) | **Get** /smartview/v2/streaming/subscriptionData/{subscriptionId} | Get subscription data via REST +[**UpdateSubscription**](DefaultApi.md#UpdateSubscription) | **Put** /smartview/v2/streaming/subscriptions/{id} | Update subscription endpoint + + + +## CreateSubscription + +> CreateSubscription(ctx).Authorization(authorization).Body(body).Execute() + +Create subscription endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + body := *openapiclient.NewSubscriptionRequest() // SubscriptionRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.CreateSubscription(context.Background()).Authorization(authorization).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **body** | [**SubscriptionRequest**](SubscriptionRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteSubscriptionById + +> DeleteSubscriptionById(ctx, id).Authorization(authorization).Execute() + +Delete subscription endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + id := "id_example" // string | + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.DeleteSubscriptionById(context.Background(), id).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteSubscriptionById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteSubscriptionByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[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) + + +## GetAllSubscriptions + +> []SubscriptionResponse GetAllSubscriptions(ctx).Authorization(authorization).Execute() + +Get all subscription endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetAllSubscriptions(context.Background()).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetAllSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAllSubscriptions`: []SubscriptionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetAllSubscriptions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAllSubscriptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**[]SubscriptionResponse**](SubscriptionResponse.md) + +### Authorization + +No authorization required + +### 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) + + +## GetSubscriptionById + +> SubscriptionResponse GetSubscriptionById(ctx, id).Authorization(authorization).Execute() + +Get subscription endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + id := "id_example" // string | + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetSubscriptionById(context.Background(), id).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSubscriptionById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSubscriptionById`: SubscriptionResponse + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSubscriptionById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSubscriptionByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**SubscriptionResponse**](SubscriptionResponse.md) + +### Authorization + +No authorization required + +### 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) + + +## GetSubscriptionData + +> SubscriptionData GetSubscriptionData(ctx, subscriptionId).Authorization(authorization).Ibxs(ibxs).MessageTypes(messageTypes).StreamIds(streamIds).Offset(offset).Limit(limit).Execute() + +Get subscription data via REST + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + subscriptionId := "subscriptionId_example" // string | Subscription ID + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + ibxs := []string{"Inner_example"} // []string | Filter, set of IBXs (optional) + messageTypes := []openapiclient.GetSubscriptionDataMessageTypesParameterInner{openapiclient.getSubscriptionData_messageTypes_parameter_inner("ALARM")} // []GetSubscriptionDataMessageTypesParameterInner | Filter, set of message types (optional) + streamIds := []string{"Inner_example"} // []string | Filter, set of stream IDs (optional) + offset := int32(56) // int32 | Pagination, offset of the first item (optional) + limit := int32(56) // int32 | Pagination, limit of items returned (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DefaultApi.GetSubscriptionData(context.Background(), subscriptionId).Authorization(authorization).Ibxs(ibxs).MessageTypes(messageTypes).StreamIds(streamIds).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetSubscriptionData``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSubscriptionData`: SubscriptionData + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetSubscriptionData`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subscriptionId** | **string** | Subscription ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSubscriptionDataRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **ibxs** | **[]string** | Filter, set of IBXs | + **messageTypes** | [**[]GetSubscriptionDataMessageTypesParameterInner**](GetSubscriptionDataMessageTypesParameterInner.md) | Filter, set of message types | + **streamIds** | **[]string** | Filter, set of stream IDs | + **offset** | **int32** | Pagination, offset of the first item | + **limit** | **int32** | Pagination, limit of items returned | + +### Return type + +[**SubscriptionData**](SubscriptionData.md) + +### Authorization + +No authorization required + +### 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) + + +## UpdateSubscription + +> UpdateSubscription(ctx, id).Authorization(authorization).Body(body).Execute() + +Update subscription endpoint + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + id := "id_example" // string | + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + body := *openapiclient.NewSubscriptionRequest() // SubscriptionRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.UpdateSubscription(context.Background(), id).Authorization(authorization).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **body** | [**SubscriptionRequest**](SubscriptionRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/Environment.md b/services/smartview/docs/Environment.md new file mode 100644 index 00000000..f03af58c --- /dev/null +++ b/services/smartview/docs/Environment.md @@ -0,0 +1,187 @@ +# Environment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Asset** | [**EnvironmentAssetDetails**](EnvironmentAssetDetails.md) | | +**DataQuality** | Pointer to **string** | data quality: Good | Bad | Uncertain | [optional] +**Ibx** | **string** | ibx | +**Reading** | [**EnvironmentValueWithUnit**](EnvironmentValueWithUnit.md) | | +**ReadingTime** | Pointer to **string** | message reading time | [optional] +**StreamId** | **string** | unique message id | +**Tag** | [**EnvironmentTagDetails**](EnvironmentTagDetails.md) | | + +## Methods + +### NewEnvironment + +`func NewEnvironment(asset EnvironmentAssetDetails, ibx string, reading EnvironmentValueWithUnit, streamId string, tag EnvironmentTagDetails, ) *Environment` + +NewEnvironment instantiates a new Environment 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 + +### NewEnvironmentWithDefaults + +`func NewEnvironmentWithDefaults() *Environment` + +NewEnvironmentWithDefaults instantiates a new Environment 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 + +### GetAsset + +`func (o *Environment) GetAsset() EnvironmentAssetDetails` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *Environment) GetAssetOk() (*EnvironmentAssetDetails, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *Environment) SetAsset(v EnvironmentAssetDetails)` + +SetAsset sets Asset field to given value. + + +### GetDataQuality + +`func (o *Environment) GetDataQuality() string` + +GetDataQuality returns the DataQuality field if non-nil, zero value otherwise. + +### GetDataQualityOk + +`func (o *Environment) GetDataQualityOk() (*string, bool)` + +GetDataQualityOk returns a tuple with the DataQuality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataQuality + +`func (o *Environment) SetDataQuality(v string)` + +SetDataQuality sets DataQuality field to given value. + +### HasDataQuality + +`func (o *Environment) HasDataQuality() bool` + +HasDataQuality returns a boolean if a field has been set. + +### GetIbx + +`func (o *Environment) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *Environment) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *Environment) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetReading + +`func (o *Environment) GetReading() EnvironmentValueWithUnit` + +GetReading returns the Reading field if non-nil, zero value otherwise. + +### GetReadingOk + +`func (o *Environment) GetReadingOk() (*EnvironmentValueWithUnit, bool)` + +GetReadingOk returns a tuple with the Reading field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReading + +`func (o *Environment) SetReading(v EnvironmentValueWithUnit)` + +SetReading sets Reading field to given value. + + +### GetReadingTime + +`func (o *Environment) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *Environment) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *Environment) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *Environment) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetStreamId + +`func (o *Environment) GetStreamId() string` + +GetStreamId returns the StreamId field if non-nil, zero value otherwise. + +### GetStreamIdOk + +`func (o *Environment) GetStreamIdOk() (*string, bool)` + +GetStreamIdOk returns a tuple with the StreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamId + +`func (o *Environment) SetStreamId(v string)` + +SetStreamId sets StreamId field to given value. + + +### GetTag + +`func (o *Environment) GetTag() EnvironmentTagDetails` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *Environment) GetTagOk() (*EnvironmentTagDetails, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *Environment) SetTag(v EnvironmentTagDetails)` + +SetTag sets Tag 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/services/smartview/docs/EnvironmentAssetDetails.md b/services/smartview/docs/EnvironmentAssetDetails.md new file mode 100644 index 00000000..aa69027f --- /dev/null +++ b/services/smartview/docs/EnvironmentAssetDetails.md @@ -0,0 +1,72 @@ +# EnvironmentAssetDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | asset id | +**Level** | **string** | asset level | + +## Methods + +### NewEnvironmentAssetDetails + +`func NewEnvironmentAssetDetails(id string, level string, ) *EnvironmentAssetDetails` + +NewEnvironmentAssetDetails instantiates a new EnvironmentAssetDetails 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 + +### NewEnvironmentAssetDetailsWithDefaults + +`func NewEnvironmentAssetDetailsWithDefaults() *EnvironmentAssetDetails` + +NewEnvironmentAssetDetailsWithDefaults instantiates a new EnvironmentAssetDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *EnvironmentAssetDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EnvironmentAssetDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EnvironmentAssetDetails) SetId(v string)` + +SetId sets Id field to given value. + + +### GetLevel + +`func (o *EnvironmentAssetDetails) GetLevel() string` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *EnvironmentAssetDetails) GetLevelOk() (*string, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *EnvironmentAssetDetails) SetLevel(v string)` + +SetLevel sets Level 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/services/smartview/docs/EnvironmentData.md b/services/smartview/docs/EnvironmentData.md new file mode 100644 index 00000000..d980678f --- /dev/null +++ b/services/smartview/docs/EnvironmentData.md @@ -0,0 +1,82 @@ +# EnvironmentData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**EnvironmentDataPayLoad**](EnvironmentDataPayLoad.md) | | [optional] +**Status** | Pointer to [**EnvironmentDataStatus**](EnvironmentDataStatus.md) | | [optional] + +## Methods + +### NewEnvironmentData + +`func NewEnvironmentData() *EnvironmentData` + +NewEnvironmentData instantiates a new EnvironmentData 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 + +### NewEnvironmentDataWithDefaults + +`func NewEnvironmentDataWithDefaults() *EnvironmentData` + +NewEnvironmentDataWithDefaults instantiates a new EnvironmentData 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 + +### GetPayLoad + +`func (o *EnvironmentData) GetPayLoad() EnvironmentDataPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *EnvironmentData) GetPayLoadOk() (*EnvironmentDataPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *EnvironmentData) SetPayLoad(v EnvironmentDataPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *EnvironmentData) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *EnvironmentData) GetStatus() EnvironmentDataStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *EnvironmentData) GetStatusOk() (*EnvironmentDataStatus, 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 *EnvironmentData) SetStatus(v EnvironmentDataStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *EnvironmentData) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentDataForArray.md b/services/smartview/docs/EnvironmentDataForArray.md new file mode 100644 index 00000000..e57ce693 --- /dev/null +++ b/services/smartview/docs/EnvironmentDataForArray.md @@ -0,0 +1,316 @@ +# EnvironmentDataForArray + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | account number | [optional] +**Cabinet** | Pointer to **string** | cabinet unique space id | [optional] +**Cage** | Pointer to **string** | cage unique space id | [optional] +**Humidity** | Pointer to **string** | current humidity | [optional] +**HumidityUom** | Pointer to **string** | unit of measure for humidity | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**Sensor** | Pointer to **string** | sensor id | [optional] +**Temperature** | Pointer to **string** | current temperature | [optional] +**TemperatureUom** | Pointer to **string** | unit of measure for temperature values | [optional] +**Timestamp** | Pointer to **string** | epoch timestamp when the current reading was read | [optional] +**Zone** | Pointer to **string** | zone unique space id | [optional] + +## Methods + +### NewEnvironmentDataForArray + +`func NewEnvironmentDataForArray() *EnvironmentDataForArray` + +NewEnvironmentDataForArray instantiates a new EnvironmentDataForArray 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 + +### NewEnvironmentDataForArrayWithDefaults + +`func NewEnvironmentDataForArrayWithDefaults() *EnvironmentDataForArray` + +NewEnvironmentDataForArrayWithDefaults instantiates a new EnvironmentDataForArray 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 + +### GetAccountNo + +`func (o *EnvironmentDataForArray) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *EnvironmentDataForArray) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *EnvironmentDataForArray) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *EnvironmentDataForArray) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetCabinet + +`func (o *EnvironmentDataForArray) GetCabinet() string` + +GetCabinet returns the Cabinet field if non-nil, zero value otherwise. + +### GetCabinetOk + +`func (o *EnvironmentDataForArray) GetCabinetOk() (*string, bool)` + +GetCabinetOk returns a tuple with the Cabinet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinet + +`func (o *EnvironmentDataForArray) SetCabinet(v string)` + +SetCabinet sets Cabinet field to given value. + +### HasCabinet + +`func (o *EnvironmentDataForArray) HasCabinet() bool` + +HasCabinet returns a boolean if a field has been set. + +### GetCage + +`func (o *EnvironmentDataForArray) GetCage() string` + +GetCage returns the Cage field if non-nil, zero value otherwise. + +### GetCageOk + +`func (o *EnvironmentDataForArray) GetCageOk() (*string, bool)` + +GetCageOk returns a tuple with the Cage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCage + +`func (o *EnvironmentDataForArray) SetCage(v string)` + +SetCage sets Cage field to given value. + +### HasCage + +`func (o *EnvironmentDataForArray) HasCage() bool` + +HasCage returns a boolean if a field has been set. + +### GetHumidity + +`func (o *EnvironmentDataForArray) GetHumidity() string` + +GetHumidity returns the Humidity field if non-nil, zero value otherwise. + +### GetHumidityOk + +`func (o *EnvironmentDataForArray) GetHumidityOk() (*string, bool)` + +GetHumidityOk returns a tuple with the Humidity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHumidity + +`func (o *EnvironmentDataForArray) SetHumidity(v string)` + +SetHumidity sets Humidity field to given value. + +### HasHumidity + +`func (o *EnvironmentDataForArray) HasHumidity() bool` + +HasHumidity returns a boolean if a field has been set. + +### GetHumidityUom + +`func (o *EnvironmentDataForArray) GetHumidityUom() string` + +GetHumidityUom returns the HumidityUom field if non-nil, zero value otherwise. + +### GetHumidityUomOk + +`func (o *EnvironmentDataForArray) GetHumidityUomOk() (*string, bool)` + +GetHumidityUomOk returns a tuple with the HumidityUom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHumidityUom + +`func (o *EnvironmentDataForArray) SetHumidityUom(v string)` + +SetHumidityUom sets HumidityUom field to given value. + +### HasHumidityUom + +`func (o *EnvironmentDataForArray) HasHumidityUom() bool` + +HasHumidityUom returns a boolean if a field has been set. + +### GetIbx + +`func (o *EnvironmentDataForArray) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *EnvironmentDataForArray) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *EnvironmentDataForArray) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *EnvironmentDataForArray) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetSensor + +`func (o *EnvironmentDataForArray) GetSensor() string` + +GetSensor returns the Sensor field if non-nil, zero value otherwise. + +### GetSensorOk + +`func (o *EnvironmentDataForArray) GetSensorOk() (*string, bool)` + +GetSensorOk returns a tuple with the Sensor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSensor + +`func (o *EnvironmentDataForArray) SetSensor(v string)` + +SetSensor sets Sensor field to given value. + +### HasSensor + +`func (o *EnvironmentDataForArray) HasSensor() bool` + +HasSensor returns a boolean if a field has been set. + +### GetTemperature + +`func (o *EnvironmentDataForArray) GetTemperature() string` + +GetTemperature returns the Temperature field if non-nil, zero value otherwise. + +### GetTemperatureOk + +`func (o *EnvironmentDataForArray) GetTemperatureOk() (*string, bool)` + +GetTemperatureOk returns a tuple with the Temperature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperature + +`func (o *EnvironmentDataForArray) SetTemperature(v string)` + +SetTemperature sets Temperature field to given value. + +### HasTemperature + +`func (o *EnvironmentDataForArray) HasTemperature() bool` + +HasTemperature returns a boolean if a field has been set. + +### GetTemperatureUom + +`func (o *EnvironmentDataForArray) GetTemperatureUom() string` + +GetTemperatureUom returns the TemperatureUom field if non-nil, zero value otherwise. + +### GetTemperatureUomOk + +`func (o *EnvironmentDataForArray) GetTemperatureUomOk() (*string, bool)` + +GetTemperatureUomOk returns a tuple with the TemperatureUom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperatureUom + +`func (o *EnvironmentDataForArray) SetTemperatureUom(v string)` + +SetTemperatureUom sets TemperatureUom field to given value. + +### HasTemperatureUom + +`func (o *EnvironmentDataForArray) HasTemperatureUom() bool` + +HasTemperatureUom returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *EnvironmentDataForArray) GetTimestamp() string` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *EnvironmentDataForArray) GetTimestampOk() (*string, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *EnvironmentDataForArray) SetTimestamp(v string)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *EnvironmentDataForArray) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetZone + +`func (o *EnvironmentDataForArray) GetZone() string` + +GetZone returns the Zone field if non-nil, zero value otherwise. + +### GetZoneOk + +`func (o *EnvironmentDataForArray) GetZoneOk() (*string, bool)` + +GetZoneOk returns a tuple with the Zone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZone + +`func (o *EnvironmentDataForArray) SetZone(v string)` + +SetZone sets Zone field to given value. + +### HasZone + +`func (o *EnvironmentDataForArray) HasZone() bool` + +HasZone returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentDataPayLoad.md b/services/smartview/docs/EnvironmentDataPayLoad.md new file mode 100644 index 00000000..4e11091c --- /dev/null +++ b/services/smartview/docs/EnvironmentDataPayLoad.md @@ -0,0 +1,316 @@ +# EnvironmentDataPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | account number | [optional] +**Cabinet** | Pointer to **string** | cabinet unique space id | [optional] +**Cage** | Pointer to **string** | cage unique space id | [optional] +**Humidity** | Pointer to **string** | current humidity | [optional] +**HumidityUom** | Pointer to **string** | unit of measure for humidity | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**Sensor** | Pointer to **string** | sensor id | [optional] +**Temperature** | Pointer to **string** | current temperature | [optional] +**TemperatureUom** | Pointer to **string** | unit of measure for temperature values | [optional] +**Timestamp** | Pointer to **string** | epoch timestamp when the current reading was read | [optional] +**Zone** | Pointer to **string** | zone unique space id | [optional] + +## Methods + +### NewEnvironmentDataPayLoad + +`func NewEnvironmentDataPayLoad() *EnvironmentDataPayLoad` + +NewEnvironmentDataPayLoad instantiates a new EnvironmentDataPayLoad 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 + +### NewEnvironmentDataPayLoadWithDefaults + +`func NewEnvironmentDataPayLoadWithDefaults() *EnvironmentDataPayLoad` + +NewEnvironmentDataPayLoadWithDefaults instantiates a new EnvironmentDataPayLoad 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 + +### GetAccountNo + +`func (o *EnvironmentDataPayLoad) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *EnvironmentDataPayLoad) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *EnvironmentDataPayLoad) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *EnvironmentDataPayLoad) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetCabinet + +`func (o *EnvironmentDataPayLoad) GetCabinet() string` + +GetCabinet returns the Cabinet field if non-nil, zero value otherwise. + +### GetCabinetOk + +`func (o *EnvironmentDataPayLoad) GetCabinetOk() (*string, bool)` + +GetCabinetOk returns a tuple with the Cabinet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinet + +`func (o *EnvironmentDataPayLoad) SetCabinet(v string)` + +SetCabinet sets Cabinet field to given value. + +### HasCabinet + +`func (o *EnvironmentDataPayLoad) HasCabinet() bool` + +HasCabinet returns a boolean if a field has been set. + +### GetCage + +`func (o *EnvironmentDataPayLoad) GetCage() string` + +GetCage returns the Cage field if non-nil, zero value otherwise. + +### GetCageOk + +`func (o *EnvironmentDataPayLoad) GetCageOk() (*string, bool)` + +GetCageOk returns a tuple with the Cage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCage + +`func (o *EnvironmentDataPayLoad) SetCage(v string)` + +SetCage sets Cage field to given value. + +### HasCage + +`func (o *EnvironmentDataPayLoad) HasCage() bool` + +HasCage returns a boolean if a field has been set. + +### GetHumidity + +`func (o *EnvironmentDataPayLoad) GetHumidity() string` + +GetHumidity returns the Humidity field if non-nil, zero value otherwise. + +### GetHumidityOk + +`func (o *EnvironmentDataPayLoad) GetHumidityOk() (*string, bool)` + +GetHumidityOk returns a tuple with the Humidity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHumidity + +`func (o *EnvironmentDataPayLoad) SetHumidity(v string)` + +SetHumidity sets Humidity field to given value. + +### HasHumidity + +`func (o *EnvironmentDataPayLoad) HasHumidity() bool` + +HasHumidity returns a boolean if a field has been set. + +### GetHumidityUom + +`func (o *EnvironmentDataPayLoad) GetHumidityUom() string` + +GetHumidityUom returns the HumidityUom field if non-nil, zero value otherwise. + +### GetHumidityUomOk + +`func (o *EnvironmentDataPayLoad) GetHumidityUomOk() (*string, bool)` + +GetHumidityUomOk returns a tuple with the HumidityUom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHumidityUom + +`func (o *EnvironmentDataPayLoad) SetHumidityUom(v string)` + +SetHumidityUom sets HumidityUom field to given value. + +### HasHumidityUom + +`func (o *EnvironmentDataPayLoad) HasHumidityUom() bool` + +HasHumidityUom returns a boolean if a field has been set. + +### GetIbx + +`func (o *EnvironmentDataPayLoad) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *EnvironmentDataPayLoad) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *EnvironmentDataPayLoad) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *EnvironmentDataPayLoad) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetSensor + +`func (o *EnvironmentDataPayLoad) GetSensor() string` + +GetSensor returns the Sensor field if non-nil, zero value otherwise. + +### GetSensorOk + +`func (o *EnvironmentDataPayLoad) GetSensorOk() (*string, bool)` + +GetSensorOk returns a tuple with the Sensor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSensor + +`func (o *EnvironmentDataPayLoad) SetSensor(v string)` + +SetSensor sets Sensor field to given value. + +### HasSensor + +`func (o *EnvironmentDataPayLoad) HasSensor() bool` + +HasSensor returns a boolean if a field has been set. + +### GetTemperature + +`func (o *EnvironmentDataPayLoad) GetTemperature() string` + +GetTemperature returns the Temperature field if non-nil, zero value otherwise. + +### GetTemperatureOk + +`func (o *EnvironmentDataPayLoad) GetTemperatureOk() (*string, bool)` + +GetTemperatureOk returns a tuple with the Temperature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperature + +`func (o *EnvironmentDataPayLoad) SetTemperature(v string)` + +SetTemperature sets Temperature field to given value. + +### HasTemperature + +`func (o *EnvironmentDataPayLoad) HasTemperature() bool` + +HasTemperature returns a boolean if a field has been set. + +### GetTemperatureUom + +`func (o *EnvironmentDataPayLoad) GetTemperatureUom() string` + +GetTemperatureUom returns the TemperatureUom field if non-nil, zero value otherwise. + +### GetTemperatureUomOk + +`func (o *EnvironmentDataPayLoad) GetTemperatureUomOk() (*string, bool)` + +GetTemperatureUomOk returns a tuple with the TemperatureUom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperatureUom + +`func (o *EnvironmentDataPayLoad) SetTemperatureUom(v string)` + +SetTemperatureUom sets TemperatureUom field to given value. + +### HasTemperatureUom + +`func (o *EnvironmentDataPayLoad) HasTemperatureUom() bool` + +HasTemperatureUom returns a boolean if a field has been set. + +### GetTimestamp + +`func (o *EnvironmentDataPayLoad) GetTimestamp() string` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *EnvironmentDataPayLoad) GetTimestampOk() (*string, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *EnvironmentDataPayLoad) SetTimestamp(v string)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *EnvironmentDataPayLoad) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### GetZone + +`func (o *EnvironmentDataPayLoad) GetZone() string` + +GetZone returns the Zone field if non-nil, zero value otherwise. + +### GetZoneOk + +`func (o *EnvironmentDataPayLoad) GetZoneOk() (*string, bool)` + +GetZoneOk returns a tuple with the Zone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZone + +`func (o *EnvironmentDataPayLoad) SetZone(v string)` + +SetZone sets Zone field to given value. + +### HasZone + +`func (o *EnvironmentDataPayLoad) HasZone() bool` + +HasZone returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentDataResponse.md b/services/smartview/docs/EnvironmentDataResponse.md new file mode 100644 index 00000000..e7cfb88f --- /dev/null +++ b/services/smartview/docs/EnvironmentDataResponse.md @@ -0,0 +1,82 @@ +# EnvironmentDataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**EnvironmentDataResponsePayLoad**](EnvironmentDataResponsePayLoad.md) | | [optional] +**Status** | Pointer to [**EnvironmentDataResponseStatus**](EnvironmentDataResponseStatus.md) | | [optional] + +## Methods + +### NewEnvironmentDataResponse + +`func NewEnvironmentDataResponse() *EnvironmentDataResponse` + +NewEnvironmentDataResponse instantiates a new EnvironmentDataResponse 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 + +### NewEnvironmentDataResponseWithDefaults + +`func NewEnvironmentDataResponseWithDefaults() *EnvironmentDataResponse` + +NewEnvironmentDataResponseWithDefaults instantiates a new EnvironmentDataResponse 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 + +### GetPayLoad + +`func (o *EnvironmentDataResponse) GetPayLoad() EnvironmentDataResponsePayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *EnvironmentDataResponse) GetPayLoadOk() (*EnvironmentDataResponsePayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *EnvironmentDataResponse) SetPayLoad(v EnvironmentDataResponsePayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *EnvironmentDataResponse) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *EnvironmentDataResponse) GetStatus() EnvironmentDataResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *EnvironmentDataResponse) GetStatusOk() (*EnvironmentDataResponseStatus, 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 *EnvironmentDataResponse) SetStatus(v EnvironmentDataResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *EnvironmentDataResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentDataResponsePayLoad.md b/services/smartview/docs/EnvironmentDataResponsePayLoad.md new file mode 100644 index 00000000..126e6064 --- /dev/null +++ b/services/smartview/docs/EnvironmentDataResponsePayLoad.md @@ -0,0 +1,82 @@ +# EnvironmentDataResponsePayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]EnvironmentDataForArray**](EnvironmentDataForArray.md) | | [optional] +**TotalCount** | Pointer to **int32** | total number of data values | [optional] + +## Methods + +### NewEnvironmentDataResponsePayLoad + +`func NewEnvironmentDataResponsePayLoad() *EnvironmentDataResponsePayLoad` + +NewEnvironmentDataResponsePayLoad instantiates a new EnvironmentDataResponsePayLoad 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 + +### NewEnvironmentDataResponsePayLoadWithDefaults + +`func NewEnvironmentDataResponsePayLoadWithDefaults() *EnvironmentDataResponsePayLoad` + +NewEnvironmentDataResponsePayLoadWithDefaults instantiates a new EnvironmentDataResponsePayLoad 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 *EnvironmentDataResponsePayLoad) GetData() []EnvironmentDataForArray` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EnvironmentDataResponsePayLoad) GetDataOk() (*[]EnvironmentDataForArray, 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 *EnvironmentDataResponsePayLoad) SetData(v []EnvironmentDataForArray)` + +SetData sets Data field to given value. + +### HasData + +`func (o *EnvironmentDataResponsePayLoad) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *EnvironmentDataResponsePayLoad) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *EnvironmentDataResponsePayLoad) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *EnvironmentDataResponsePayLoad) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *EnvironmentDataResponsePayLoad) HasTotalCount() bool` + +HasTotalCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentDataResponseStatus.md b/services/smartview/docs/EnvironmentDataResponseStatus.md new file mode 100644 index 00000000..f88cb038 --- /dev/null +++ b/services/smartview/docs/EnvironmentDataResponseStatus.md @@ -0,0 +1,108 @@ +# EnvironmentDataResponseStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewEnvironmentDataResponseStatus + +`func NewEnvironmentDataResponseStatus() *EnvironmentDataResponseStatus` + +NewEnvironmentDataResponseStatus instantiates a new EnvironmentDataResponseStatus 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 + +### NewEnvironmentDataResponseStatusWithDefaults + +`func NewEnvironmentDataResponseStatusWithDefaults() *EnvironmentDataResponseStatus` + +NewEnvironmentDataResponseStatusWithDefaults instantiates a new EnvironmentDataResponseStatus 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 + +### GetMsg + +`func (o *EnvironmentDataResponseStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *EnvironmentDataResponseStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *EnvironmentDataResponseStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *EnvironmentDataResponseStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *EnvironmentDataResponseStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *EnvironmentDataResponseStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *EnvironmentDataResponseStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *EnvironmentDataResponseStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *EnvironmentDataResponseStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *EnvironmentDataResponseStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *EnvironmentDataResponseStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *EnvironmentDataResponseStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentDataStatus.md b/services/smartview/docs/EnvironmentDataStatus.md new file mode 100644 index 00000000..d3041561 --- /dev/null +++ b/services/smartview/docs/EnvironmentDataStatus.md @@ -0,0 +1,108 @@ +# EnvironmentDataStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewEnvironmentDataStatus + +`func NewEnvironmentDataStatus() *EnvironmentDataStatus` + +NewEnvironmentDataStatus instantiates a new EnvironmentDataStatus 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 + +### NewEnvironmentDataStatusWithDefaults + +`func NewEnvironmentDataStatusWithDefaults() *EnvironmentDataStatus` + +NewEnvironmentDataStatusWithDefaults instantiates a new EnvironmentDataStatus 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 + +### GetMsg + +`func (o *EnvironmentDataStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *EnvironmentDataStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *EnvironmentDataStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *EnvironmentDataStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *EnvironmentDataStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *EnvironmentDataStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *EnvironmentDataStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *EnvironmentDataStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *EnvironmentDataStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *EnvironmentDataStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *EnvironmentDataStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *EnvironmentDataStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentMessageData.md b/services/smartview/docs/EnvironmentMessageData.md new file mode 100644 index 00000000..56db5ab9 --- /dev/null +++ b/services/smartview/docs/EnvironmentMessageData.md @@ -0,0 +1,72 @@ +# EnvironmentMessageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Environment**](Environment.md) | | +**Type** | **string** | message type | [default to "environmental"] + +## Methods + +### NewEnvironmentMessageData + +`func NewEnvironmentMessageData(data Environment, type_ string, ) *EnvironmentMessageData` + +NewEnvironmentMessageData instantiates a new EnvironmentMessageData 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 + +### NewEnvironmentMessageDataWithDefaults + +`func NewEnvironmentMessageDataWithDefaults() *EnvironmentMessageData` + +NewEnvironmentMessageDataWithDefaults instantiates a new EnvironmentMessageData 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 *EnvironmentMessageData) GetData() Environment` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EnvironmentMessageData) GetDataOk() (*Environment, 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 *EnvironmentMessageData) SetData(v Environment)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *EnvironmentMessageData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *EnvironmentMessageData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *EnvironmentMessageData) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentTagDetails.md b/services/smartview/docs/EnvironmentTagDetails.md new file mode 100644 index 00000000..b15bcf9e --- /dev/null +++ b/services/smartview/docs/EnvironmentTagDetails.md @@ -0,0 +1,77 @@ +# EnvironmentTagDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | tag display name | [optional] +**Id** | **string** | tag id | + +## Methods + +### NewEnvironmentTagDetails + +`func NewEnvironmentTagDetails(id string, ) *EnvironmentTagDetails` + +NewEnvironmentTagDetails instantiates a new EnvironmentTagDetails 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 + +### NewEnvironmentTagDetailsWithDefaults + +`func NewEnvironmentTagDetailsWithDefaults() *EnvironmentTagDetails` + +NewEnvironmentTagDetailsWithDefaults instantiates a new EnvironmentTagDetails 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 + +### GetDisplayName + +`func (o *EnvironmentTagDetails) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *EnvironmentTagDetails) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *EnvironmentTagDetails) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *EnvironmentTagDetails) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *EnvironmentTagDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EnvironmentTagDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EnvironmentTagDetails) SetId(v string)` + +SetId sets Id 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/services/smartview/docs/EnvironmentValueWithUnit.md b/services/smartview/docs/EnvironmentValueWithUnit.md new file mode 100644 index 00000000..f5a31777 --- /dev/null +++ b/services/smartview/docs/EnvironmentValueWithUnit.md @@ -0,0 +1,72 @@ +# EnvironmentValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | Environmental reading unit | +**Value** | **string** | Environmental reading value | + +## Methods + +### NewEnvironmentValueWithUnit + +`func NewEnvironmentValueWithUnit(unit string, value string, ) *EnvironmentValueWithUnit` + +NewEnvironmentValueWithUnit instantiates a new EnvironmentValueWithUnit 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 + +### NewEnvironmentValueWithUnitWithDefaults + +`func NewEnvironmentValueWithUnitWithDefaults() *EnvironmentValueWithUnit` + +NewEnvironmentValueWithUnitWithDefaults instantiates a new EnvironmentValueWithUnit 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 + +### GetUnit + +`func (o *EnvironmentValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *EnvironmentValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *EnvironmentValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *EnvironmentValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *EnvironmentValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *EnvironmentValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/Environmental.md b/services/smartview/docs/Environmental.md new file mode 100644 index 00000000..72832eb2 --- /dev/null +++ b/services/smartview/docs/Environmental.md @@ -0,0 +1,98 @@ +# Environmental + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | **string** | | +**Ibx** | **[]string** | | +**Level** | Pointer to [**[]EnvironmentalLevelInner**](EnvironmentalLevelInner.md) | This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided. | [optional] + +## Methods + +### NewEnvironmental + +`func NewEnvironmental(accountNumber string, ibx []string, ) *Environmental` + +NewEnvironmental instantiates a new Environmental 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 + +### NewEnvironmentalWithDefaults + +`func NewEnvironmentalWithDefaults() *Environmental` + +NewEnvironmentalWithDefaults instantiates a new Environmental 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 + +### GetAccountNumber + +`func (o *Environmental) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *Environmental) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *Environmental) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + + +### GetIbx + +`func (o *Environmental) GetIbx() []string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *Environmental) GetIbxOk() (*[]string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *Environmental) SetIbx(v []string)` + +SetIbx sets Ibx field to given value. + + +### GetLevel + +`func (o *Environmental) GetLevel() []EnvironmentalLevelInner` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *Environmental) GetLevelOk() (*[]EnvironmentalLevelInner, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *Environmental) SetLevel(v []EnvironmentalLevelInner)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *Environmental) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/EnvironmentalLevelInner.md b/services/smartview/docs/EnvironmentalLevelInner.md new file mode 100644 index 00000000..13ee2d47 --- /dev/null +++ b/services/smartview/docs/EnvironmentalLevelInner.md @@ -0,0 +1,15 @@ +# EnvironmentalLevelInner + +## Enum + + +* `ZONE` (value: `"ZONE"`) + +* `IBX` (value: `"IBX"`) + +* `CAGE` (value: `"CAGE"`) + + +[[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/services/smartview/docs/Error.md b/services/smartview/docs/Error.md new file mode 100644 index 00000000..7eb15b52 --- /dev/null +++ b/services/smartview/docs/Error.md @@ -0,0 +1,82 @@ +# Error + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to **map[string]interface{}** | | [optional] +**Status** | Pointer to [**ErrorStatus**](ErrorStatus.md) | | [optional] + +## Methods + +### NewError + +`func NewError() *Error` + +NewError instantiates a new Error 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 + +### NewErrorWithDefaults + +`func NewErrorWithDefaults() *Error` + +NewErrorWithDefaults instantiates a new Error 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 + +### GetPayLoad + +`func (o *Error) GetPayLoad() map[string]interface{}` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *Error) GetPayLoadOk() (*map[string]interface{}, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *Error) SetPayLoad(v map[string]interface{})` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *Error) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *Error) GetStatus() ErrorStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Error) GetStatusOk() (*ErrorStatus, 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 *Error) SetStatus(v ErrorStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Error) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ErrorStatus.md b/services/smartview/docs/ErrorStatus.md new file mode 100644 index 00000000..2ecc1855 --- /dev/null +++ b/services/smartview/docs/ErrorStatus.md @@ -0,0 +1,108 @@ +# ErrorStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes | [optional] +**Type** | Pointer to [**ErrorStatusType**](ErrorStatusType.md) | | [optional] + +## Methods + +### NewErrorStatus + +`func NewErrorStatus() *ErrorStatus` + +NewErrorStatus instantiates a new ErrorStatus 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 + +### NewErrorStatusWithDefaults + +`func NewErrorStatusWithDefaults() *ErrorStatus` + +NewErrorStatusWithDefaults instantiates a new ErrorStatus 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 + +### GetMsg + +`func (o *ErrorStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *ErrorStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *ErrorStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *ErrorStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *ErrorStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *ErrorStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *ErrorStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *ErrorStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *ErrorStatus) GetType() ErrorStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ErrorStatus) GetTypeOk() (*ErrorStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ErrorStatus) SetType(v ErrorStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *ErrorStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ErrorStatusType.md b/services/smartview/docs/ErrorStatusType.md new file mode 100644 index 00000000..d764008a --- /dev/null +++ b/services/smartview/docs/ErrorStatusType.md @@ -0,0 +1,11 @@ +# ErrorStatusType + +## Enum + + +* `ERROR` (value: `"ERROR"`) + + +[[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/services/smartview/docs/GenericRequest.md b/services/smartview/docs/GenericRequest.md new file mode 100644 index 00000000..750ade07 --- /dev/null +++ b/services/smartview/docs/GenericRequest.md @@ -0,0 +1,108 @@ +# GenericRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | customer account number | [optional] +**Classification** | Pointer to **string** | asset classification | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] + +## Methods + +### NewGenericRequest + +`func NewGenericRequest() *GenericRequest` + +NewGenericRequest instantiates a new GenericRequest 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 + +### NewGenericRequestWithDefaults + +`func NewGenericRequestWithDefaults() *GenericRequest` + +NewGenericRequestWithDefaults instantiates a new GenericRequest 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 + +### GetAccountNo + +`func (o *GenericRequest) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *GenericRequest) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *GenericRequest) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *GenericRequest) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetClassification + +`func (o *GenericRequest) GetClassification() string` + +GetClassification returns the Classification field if non-nil, zero value otherwise. + +### GetClassificationOk + +`func (o *GenericRequest) GetClassificationOk() (*string, bool)` + +GetClassificationOk returns a tuple with the Classification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClassification + +`func (o *GenericRequest) SetClassification(v string)` + +SetClassification sets Classification field to given value. + +### HasClassification + +`func (o *GenericRequest) HasClassification() bool` + +HasClassification returns a boolean if a field has been set. + +### GetIbx + +`func (o *GenericRequest) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *GenericRequest) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *GenericRequest) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *GenericRequest) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/GetAssetClassificationParameter.md b/services/smartview/docs/GetAssetClassificationParameter.md new file mode 100644 index 00000000..9d0b3d3b --- /dev/null +++ b/services/smartview/docs/GetAssetClassificationParameter.md @@ -0,0 +1,13 @@ +# GetAssetClassificationParameter + +## Enum + + +* `ELECTRICAL` (value: `"Electrical"`) + +* `MECHANICAL` (value: `"Mechanical"`) + + +[[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/services/smartview/docs/GetSubscriptionDataMessageTypesParameterInner.md b/services/smartview/docs/GetSubscriptionDataMessageTypesParameterInner.md new file mode 100644 index 00000000..4aea7397 --- /dev/null +++ b/services/smartview/docs/GetSubscriptionDataMessageTypesParameterInner.md @@ -0,0 +1,21 @@ +# GetSubscriptionDataMessageTypesParameterInner + +## Enum + + +* `ALARM` (value: `"ALARM"`) + +* `ALERT` (value: `"ALERT"`) + +* `ENVIRONMENTAL` (value: `"ENVIRONMENTAL"`) + +* `METERED_POWER` (value: `"METERED_POWER"`) + +* `POWER` (value: `"POWER"`) + +* `TAG_POINT` (value: `"TAG_POINT"`) + + +[[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/services/smartview/docs/HierarchyNode.md b/services/smartview/docs/HierarchyNode.md new file mode 100644 index 00000000..3e8d3707 --- /dev/null +++ b/services/smartview/docs/HierarchyNode.md @@ -0,0 +1,82 @@ +# HierarchyNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**HierarchyNodePayLoad**](HierarchyNodePayLoad.md) | | [optional] +**Status** | Pointer to [**AssetDetailResponseStatus**](AssetDetailResponseStatus.md) | | [optional] + +## Methods + +### NewHierarchyNode + +`func NewHierarchyNode() *HierarchyNode` + +NewHierarchyNode instantiates a new HierarchyNode 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 + +### NewHierarchyNodeWithDefaults + +`func NewHierarchyNodeWithDefaults() *HierarchyNode` + +NewHierarchyNodeWithDefaults instantiates a new HierarchyNode 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 + +### GetPayLoad + +`func (o *HierarchyNode) GetPayLoad() HierarchyNodePayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *HierarchyNode) GetPayLoadOk() (*HierarchyNodePayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *HierarchyNode) SetPayLoad(v HierarchyNodePayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *HierarchyNode) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *HierarchyNode) GetStatus() AssetDetailResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *HierarchyNode) GetStatusOk() (*AssetDetailResponseStatus, 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 *HierarchyNode) SetStatus(v AssetDetailResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *HierarchyNode) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/HierarchyNodePayLoad.md b/services/smartview/docs/HierarchyNodePayLoad.md new file mode 100644 index 00000000..6d71f339 --- /dev/null +++ b/services/smartview/docs/HierarchyNodePayLoad.md @@ -0,0 +1,82 @@ +# HierarchyNodePayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cages** | Pointer to [**[]Cages**](Cages.md) | | [optional] +**Circuits** | Pointer to [**[]CircuitsMapWithCage**](CircuitsMapWithCage.md) | | [optional] + +## Methods + +### NewHierarchyNodePayLoad + +`func NewHierarchyNodePayLoad() *HierarchyNodePayLoad` + +NewHierarchyNodePayLoad instantiates a new HierarchyNodePayLoad 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 + +### NewHierarchyNodePayLoadWithDefaults + +`func NewHierarchyNodePayLoadWithDefaults() *HierarchyNodePayLoad` + +NewHierarchyNodePayLoadWithDefaults instantiates a new HierarchyNodePayLoad 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 + +### GetCages + +`func (o *HierarchyNodePayLoad) GetCages() []Cages` + +GetCages returns the Cages field if non-nil, zero value otherwise. + +### GetCagesOk + +`func (o *HierarchyNodePayLoad) GetCagesOk() (*[]Cages, bool)` + +GetCagesOk returns a tuple with the Cages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCages + +`func (o *HierarchyNodePayLoad) SetCages(v []Cages)` + +SetCages sets Cages field to given value. + +### HasCages + +`func (o *HierarchyNodePayLoad) HasCages() bool` + +HasCages returns a boolean if a field has been set. + +### GetCircuits + +`func (o *HierarchyNodePayLoad) GetCircuits() []CircuitsMapWithCage` + +GetCircuits returns the Circuits field if non-nil, zero value otherwise. + +### GetCircuitsOk + +`func (o *HierarchyNodePayLoad) GetCircuitsOk() (*[]CircuitsMapWithCage, bool)` + +GetCircuitsOk returns a tuple with the Circuits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuits + +`func (o *HierarchyNodePayLoad) SetCircuits(v []CircuitsMapWithCage)` + +SetCircuits sets Circuits field to given value. + +### HasCircuits + +`func (o *HierarchyNodePayLoad) HasCircuits() bool` + +HasCircuits returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/MessageType.md b/services/smartview/docs/MessageType.md new file mode 100644 index 00000000..bbe5e06f --- /dev/null +++ b/services/smartview/docs/MessageType.md @@ -0,0 +1,186 @@ +# MessageType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Asset** | Pointer to [**[]Asset**](Asset.md) | List of asset message type to subscribe | [optional] +**CustomAlert** | Pointer to [**[]CustomAlert**](CustomAlert.md) | List of custom alert message type to subscribe | [optional] +**Environmental** | Pointer to [**[]Environmental**](Environmental.md) | List of environmental message type to subscribe | [optional] +**MeteredPower** | Pointer to [**[]MeteredPower**](MeteredPower.md) | List of metered power message type to subscribe | [optional] +**Power** | Pointer to [**[]PowerMessage**](PowerMessage.md) | List of power message type to subscribe | [optional] +**SystemAlert** | Pointer to [**[]SystemAlert**](SystemAlert.md) | List of system alert message type to subscribe | [optional] + +## Methods + +### NewMessageType + +`func NewMessageType() *MessageType` + +NewMessageType instantiates a new MessageType 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 + +### NewMessageTypeWithDefaults + +`func NewMessageTypeWithDefaults() *MessageType` + +NewMessageTypeWithDefaults instantiates a new MessageType 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 + +### GetAsset + +`func (o *MessageType) GetAsset() []Asset` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *MessageType) GetAssetOk() (*[]Asset, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *MessageType) SetAsset(v []Asset)` + +SetAsset sets Asset field to given value. + +### HasAsset + +`func (o *MessageType) HasAsset() bool` + +HasAsset returns a boolean if a field has been set. + +### GetCustomAlert + +`func (o *MessageType) GetCustomAlert() []CustomAlert` + +GetCustomAlert returns the CustomAlert field if non-nil, zero value otherwise. + +### GetCustomAlertOk + +`func (o *MessageType) GetCustomAlertOk() (*[]CustomAlert, bool)` + +GetCustomAlertOk returns a tuple with the CustomAlert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomAlert + +`func (o *MessageType) SetCustomAlert(v []CustomAlert)` + +SetCustomAlert sets CustomAlert field to given value. + +### HasCustomAlert + +`func (o *MessageType) HasCustomAlert() bool` + +HasCustomAlert returns a boolean if a field has been set. + +### GetEnvironmental + +`func (o *MessageType) GetEnvironmental() []Environmental` + +GetEnvironmental returns the Environmental field if non-nil, zero value otherwise. + +### GetEnvironmentalOk + +`func (o *MessageType) GetEnvironmentalOk() (*[]Environmental, bool)` + +GetEnvironmentalOk returns a tuple with the Environmental field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmental + +`func (o *MessageType) SetEnvironmental(v []Environmental)` + +SetEnvironmental sets Environmental field to given value. + +### HasEnvironmental + +`func (o *MessageType) HasEnvironmental() bool` + +HasEnvironmental returns a boolean if a field has been set. + +### GetMeteredPower + +`func (o *MessageType) GetMeteredPower() []MeteredPower` + +GetMeteredPower returns the MeteredPower field if non-nil, zero value otherwise. + +### GetMeteredPowerOk + +`func (o *MessageType) GetMeteredPowerOk() (*[]MeteredPower, bool)` + +GetMeteredPowerOk returns a tuple with the MeteredPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeteredPower + +`func (o *MessageType) SetMeteredPower(v []MeteredPower)` + +SetMeteredPower sets MeteredPower field to given value. + +### HasMeteredPower + +`func (o *MessageType) HasMeteredPower() bool` + +HasMeteredPower returns a boolean if a field has been set. + +### GetPower + +`func (o *MessageType) GetPower() []PowerMessage` + +GetPower returns the Power field if non-nil, zero value otherwise. + +### GetPowerOk + +`func (o *MessageType) GetPowerOk() (*[]PowerMessage, bool)` + +GetPowerOk returns a tuple with the Power field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPower + +`func (o *MessageType) SetPower(v []PowerMessage)` + +SetPower sets Power field to given value. + +### HasPower + +`func (o *MessageType) HasPower() bool` + +HasPower returns a boolean if a field has been set. + +### GetSystemAlert + +`func (o *MessageType) GetSystemAlert() []SystemAlert` + +GetSystemAlert returns the SystemAlert field if non-nil, zero value otherwise. + +### GetSystemAlertOk + +`func (o *MessageType) GetSystemAlertOk() (*[]SystemAlert, bool)` + +GetSystemAlertOk returns a tuple with the SystemAlert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSystemAlert + +`func (o *MessageType) SetSystemAlert(v []SystemAlert)` + +SetSystemAlert sets SystemAlert field to given value. + +### HasSystemAlert + +`func (o *MessageType) HasSystemAlert() bool` + +HasSystemAlert returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/MeteredPower.md b/services/smartview/docs/MeteredPower.md new file mode 100644 index 00000000..a8c9be64 --- /dev/null +++ b/services/smartview/docs/MeteredPower.md @@ -0,0 +1,265 @@ +# MeteredPower + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | account number | [optional] +**Asset** | [**MeteredPowerAssetDetails**](MeteredPowerAssetDetails.md) | | +**Cage** | Pointer to **string** | cage | [optional] +**CageSerialNo** | Pointer to **string** | cage serial number | [optional] +**DataQuality** | Pointer to **string** | data quality: Good | Bad | Uncertain | [optional] +**Ibx** | **string** | ibx | +**Reading** | [**MeteredPowerValueWithUnit**](MeteredPowerValueWithUnit.md) | | +**ReadingTime** | Pointer to **string** | message reading time | [optional] +**StreamId** | **string** | unique message id | +**Tag** | [**MeteredPowerTagDetails**](MeteredPowerTagDetails.md) | | + +## Methods + +### NewMeteredPower + +`func NewMeteredPower(asset MeteredPowerAssetDetails, ibx string, reading MeteredPowerValueWithUnit, streamId string, tag MeteredPowerTagDetails, ) *MeteredPower` + +NewMeteredPower instantiates a new MeteredPower 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 + +### NewMeteredPowerWithDefaults + +`func NewMeteredPowerWithDefaults() *MeteredPower` + +NewMeteredPowerWithDefaults instantiates a new MeteredPower 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 + +### GetAccountNumber + +`func (o *MeteredPower) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *MeteredPower) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *MeteredPower) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *MeteredPower) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAsset + +`func (o *MeteredPower) GetAsset() MeteredPowerAssetDetails` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *MeteredPower) GetAssetOk() (*MeteredPowerAssetDetails, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *MeteredPower) SetAsset(v MeteredPowerAssetDetails)` + +SetAsset sets Asset field to given value. + + +### GetCage + +`func (o *MeteredPower) GetCage() string` + +GetCage returns the Cage field if non-nil, zero value otherwise. + +### GetCageOk + +`func (o *MeteredPower) GetCageOk() (*string, bool)` + +GetCageOk returns a tuple with the Cage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCage + +`func (o *MeteredPower) SetCage(v string)` + +SetCage sets Cage field to given value. + +### HasCage + +`func (o *MeteredPower) HasCage() bool` + +HasCage returns a boolean if a field has been set. + +### GetCageSerialNo + +`func (o *MeteredPower) GetCageSerialNo() string` + +GetCageSerialNo returns the CageSerialNo field if non-nil, zero value otherwise. + +### GetCageSerialNoOk + +`func (o *MeteredPower) GetCageSerialNoOk() (*string, bool)` + +GetCageSerialNoOk returns a tuple with the CageSerialNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCageSerialNo + +`func (o *MeteredPower) SetCageSerialNo(v string)` + +SetCageSerialNo sets CageSerialNo field to given value. + +### HasCageSerialNo + +`func (o *MeteredPower) HasCageSerialNo() bool` + +HasCageSerialNo returns a boolean if a field has been set. + +### GetDataQuality + +`func (o *MeteredPower) GetDataQuality() string` + +GetDataQuality returns the DataQuality field if non-nil, zero value otherwise. + +### GetDataQualityOk + +`func (o *MeteredPower) GetDataQualityOk() (*string, bool)` + +GetDataQualityOk returns a tuple with the DataQuality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataQuality + +`func (o *MeteredPower) SetDataQuality(v string)` + +SetDataQuality sets DataQuality field to given value. + +### HasDataQuality + +`func (o *MeteredPower) HasDataQuality() bool` + +HasDataQuality returns a boolean if a field has been set. + +### GetIbx + +`func (o *MeteredPower) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *MeteredPower) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *MeteredPower) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetReading + +`func (o *MeteredPower) GetReading() MeteredPowerValueWithUnit` + +GetReading returns the Reading field if non-nil, zero value otherwise. + +### GetReadingOk + +`func (o *MeteredPower) GetReadingOk() (*MeteredPowerValueWithUnit, bool)` + +GetReadingOk returns a tuple with the Reading field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReading + +`func (o *MeteredPower) SetReading(v MeteredPowerValueWithUnit)` + +SetReading sets Reading field to given value. + + +### GetReadingTime + +`func (o *MeteredPower) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *MeteredPower) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *MeteredPower) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *MeteredPower) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetStreamId + +`func (o *MeteredPower) GetStreamId() string` + +GetStreamId returns the StreamId field if non-nil, zero value otherwise. + +### GetStreamIdOk + +`func (o *MeteredPower) GetStreamIdOk() (*string, bool)` + +GetStreamIdOk returns a tuple with the StreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamId + +`func (o *MeteredPower) SetStreamId(v string)` + +SetStreamId sets StreamId field to given value. + + +### GetTag + +`func (o *MeteredPower) GetTag() MeteredPowerTagDetails` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *MeteredPower) GetTagOk() (*MeteredPowerTagDetails, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *MeteredPower) SetTag(v MeteredPowerTagDetails)` + +SetTag sets Tag 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/services/smartview/docs/MeteredPowerAssetDetails.md b/services/smartview/docs/MeteredPowerAssetDetails.md new file mode 100644 index 00000000..acd2886b --- /dev/null +++ b/services/smartview/docs/MeteredPowerAssetDetails.md @@ -0,0 +1,77 @@ +# MeteredPowerAssetDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | asset id | +**Type** | Pointer to **string** | asset type | [optional] + +## Methods + +### NewMeteredPowerAssetDetails + +`func NewMeteredPowerAssetDetails(id string, ) *MeteredPowerAssetDetails` + +NewMeteredPowerAssetDetails instantiates a new MeteredPowerAssetDetails 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 + +### NewMeteredPowerAssetDetailsWithDefaults + +`func NewMeteredPowerAssetDetailsWithDefaults() *MeteredPowerAssetDetails` + +NewMeteredPowerAssetDetailsWithDefaults instantiates a new MeteredPowerAssetDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *MeteredPowerAssetDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MeteredPowerAssetDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MeteredPowerAssetDetails) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *MeteredPowerAssetDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MeteredPowerAssetDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MeteredPowerAssetDetails) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *MeteredPowerAssetDetails) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/MeteredPowerMessageData.md b/services/smartview/docs/MeteredPowerMessageData.md new file mode 100644 index 00000000..00e252d5 --- /dev/null +++ b/services/smartview/docs/MeteredPowerMessageData.md @@ -0,0 +1,72 @@ +# MeteredPowerMessageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**MeteredPower**](MeteredPower.md) | | +**Type** | **string** | message type | [default to "metered-power"] + +## Methods + +### NewMeteredPowerMessageData + +`func NewMeteredPowerMessageData(data MeteredPower, type_ string, ) *MeteredPowerMessageData` + +NewMeteredPowerMessageData instantiates a new MeteredPowerMessageData 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 + +### NewMeteredPowerMessageDataWithDefaults + +`func NewMeteredPowerMessageDataWithDefaults() *MeteredPowerMessageData` + +NewMeteredPowerMessageDataWithDefaults instantiates a new MeteredPowerMessageData 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 *MeteredPowerMessageData) GetData() MeteredPower` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *MeteredPowerMessageData) GetDataOk() (*MeteredPower, 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 *MeteredPowerMessageData) SetData(v MeteredPower)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *MeteredPowerMessageData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *MeteredPowerMessageData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *MeteredPowerMessageData) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/MeteredPowerTagDetails.md b/services/smartview/docs/MeteredPowerTagDetails.md new file mode 100644 index 00000000..b9c9dc53 --- /dev/null +++ b/services/smartview/docs/MeteredPowerTagDetails.md @@ -0,0 +1,77 @@ +# MeteredPowerTagDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | tag display name | [optional] +**Id** | **string** | tag id | + +## Methods + +### NewMeteredPowerTagDetails + +`func NewMeteredPowerTagDetails(id string, ) *MeteredPowerTagDetails` + +NewMeteredPowerTagDetails instantiates a new MeteredPowerTagDetails 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 + +### NewMeteredPowerTagDetailsWithDefaults + +`func NewMeteredPowerTagDetailsWithDefaults() *MeteredPowerTagDetails` + +NewMeteredPowerTagDetailsWithDefaults instantiates a new MeteredPowerTagDetails 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 + +### GetDisplayName + +`func (o *MeteredPowerTagDetails) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *MeteredPowerTagDetails) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *MeteredPowerTagDetails) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *MeteredPowerTagDetails) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *MeteredPowerTagDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *MeteredPowerTagDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *MeteredPowerTagDetails) SetId(v string)` + +SetId sets Id 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/services/smartview/docs/MeteredPowerValueWithUnit.md b/services/smartview/docs/MeteredPowerValueWithUnit.md new file mode 100644 index 00000000..87d07eea --- /dev/null +++ b/services/smartview/docs/MeteredPowerValueWithUnit.md @@ -0,0 +1,77 @@ +# MeteredPowerValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | Pointer to **string** | reading unit | [optional] +**Value** | **string** | reading value | + +## Methods + +### NewMeteredPowerValueWithUnit + +`func NewMeteredPowerValueWithUnit(value string, ) *MeteredPowerValueWithUnit` + +NewMeteredPowerValueWithUnit instantiates a new MeteredPowerValueWithUnit 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 + +### NewMeteredPowerValueWithUnitWithDefaults + +`func NewMeteredPowerValueWithUnitWithDefaults() *MeteredPowerValueWithUnit` + +NewMeteredPowerValueWithUnitWithDefaults instantiates a new MeteredPowerValueWithUnit 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 + +### GetUnit + +`func (o *MeteredPowerValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *MeteredPowerValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *MeteredPowerValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *MeteredPowerValueWithUnit) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetValue + +`func (o *MeteredPowerValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *MeteredPowerValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *MeteredPowerValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/Mixin1DataPointParameter.md b/services/smartview/docs/Mixin1DataPointParameter.md new file mode 100644 index 00000000..9ffb400b --- /dev/null +++ b/services/smartview/docs/Mixin1DataPointParameter.md @@ -0,0 +1,13 @@ +# Mixin1DataPointParameter + +## Enum + + +* `TEMPERATURE` (value: `"temperature"`) + +* `HUMIDITY` (value: `"humidity"`) + + +[[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/services/smartview/docs/Mixin1IntervalParameter.md b/services/smartview/docs/Mixin1IntervalParameter.md new file mode 100644 index 00000000..0c1794ac --- /dev/null +++ b/services/smartview/docs/Mixin1IntervalParameter.md @@ -0,0 +1,15 @@ +# Mixin1IntervalParameter + +## Enum + + +* `READING` (value: `"reading"`) + +* `_1H` (value: `"1h"`) + +* `_1D` (value: `"1d"`) + + +[[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/services/smartview/docs/Mixin1LevelTypeParameter.md b/services/smartview/docs/Mixin1LevelTypeParameter.md new file mode 100644 index 00000000..8901859a --- /dev/null +++ b/services/smartview/docs/Mixin1LevelTypeParameter.md @@ -0,0 +1,17 @@ +# Mixin1LevelTypeParameter + +## Enum + + +* `IBX` (value: `"IBX"`) + +* `ZONE` (value: `"ZONE"`) + +* `CAGE` (value: `"CAGE"`) + +* `SENSOR` (value: `"SENSOR"`) + + +[[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/services/smartview/docs/Pagination.md b/services/smartview/docs/Pagination.md new file mode 100644 index 00000000..1d70d43d --- /dev/null +++ b/services/smartview/docs/Pagination.md @@ -0,0 +1,145 @@ +# Pagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Limit** | **int64** | The page size. | +**Next** | Pointer to **string** | Represents a relative link to the next page. This can be empty if there is no next page available. | [optional] +**Offset** | **int64** | The number of elements to skip. | +**Previous** | Pointer to **string** | Represents a relative link to the previous page. This can be empty if there is no previous page available. | [optional] +**Total** | **int64** | The total number of elements in the result set. | + +## Methods + +### NewPagination + +`func NewPagination(limit int64, offset int64, total int64, ) *Pagination` + +NewPagination instantiates a new Pagination 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 + +### NewPaginationWithDefaults + +`func NewPaginationWithDefaults() *Pagination` + +NewPaginationWithDefaults instantiates a new Pagination 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 + +### GetLimit + +`func (o *Pagination) GetLimit() int64` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *Pagination) GetLimitOk() (*int64, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *Pagination) SetLimit(v int64)` + +SetLimit sets Limit field to given value. + + +### GetNext + +`func (o *Pagination) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *Pagination) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *Pagination) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *Pagination) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetOffset + +`func (o *Pagination) GetOffset() int64` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *Pagination) GetOffsetOk() (*int64, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *Pagination) SetOffset(v int64)` + +SetOffset sets Offset field to given value. + + +### GetPrevious + +`func (o *Pagination) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *Pagination) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *Pagination) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *Pagination) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetTotal + +`func (o *Pagination) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *Pagination) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *Pagination) SetTotal(v int64)` + +SetTotal sets Total 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/services/smartview/docs/Power.md b/services/smartview/docs/Power.md new file mode 100644 index 00000000..8be5a13e --- /dev/null +++ b/services/smartview/docs/Power.md @@ -0,0 +1,639 @@ +# Power + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | account number | [optional] +**ApparentPower** | Pointer to [**PowerApparentPowerValueWithUnit**](PowerApparentPowerValueWithUnit.md) | | [optional] +**Asset** | [**PowerAssetDetails**](PowerAssetDetails.md) | | +**Cabinet** | Pointer to **string** | cabinet | [optional] +**CabinetRating** | Pointer to [**PowerCabinetRatingValueWithUnit**](PowerCabinetRatingValueWithUnit.md) | | [optional] +**Cage** | Pointer to **string** | cage | [optional] +**CircuitType** | Pointer to **string** | circuit type | [optional] +**ContractualPower** | Pointer to [**PowerContractualPowerValueWithUnit**](PowerContractualPowerValueWithUnit.md) | | [optional] +**Current** | Pointer to [**PowerCurrentValueWithUnit**](PowerCurrentValueWithUnit.md) | | [optional] +**Description** | Pointer to **string** | description | [optional] +**Ibx** | **string** | ibx | +**LastUpdated** | Pointer to **string** | last updated time | [optional] +**Oid** | Pointer to **string** | oid | [optional] +**PeakLastSevenDays** | Pointer to [**PowerPeakLastSevenDaysValueWithUnit**](PowerPeakLastSevenDaysValueWithUnit.md) | | [optional] +**PeakLastSevenDaysContractualPower** | Pointer to [**PowerPeakLastSevenDaysContractualPowerValueWithUnit**](PowerPeakLastSevenDaysContractualPowerValueWithUnit.md) | | [optional] +**PeakLastSevenDaysRatio** | Pointer to [**PowerPeakLastSevenDaysRatioValueWithUnit**](PowerPeakLastSevenDaysRatioValueWithUnit.md) | | [optional] +**PeakLastSevenDaysTime** | Pointer to **string** | peak last seven days time | [optional] +**PowerConsumptionToContractual** | Pointer to [**PowerPowerConsumptionToContractualValueWithUnit**](PowerPowerConsumptionToContractualValueWithUnit.md) | | [optional] +**PowerFactor** | Pointer to [**PowerPowerFactorValueWithUnit**](PowerPowerFactorValueWithUnit.md) | | [optional] +**ReadingTime** | Pointer to **string** | message reading time | [optional] +**RealPower** | Pointer to [**PowerRealPowerValueWithUnit**](PowerRealPowerValueWithUnit.md) | | [optional] +**SoldCurrent** | Pointer to [**PowerSoldCurrentValueWithUnit**](PowerSoldCurrentValueWithUnit.md) | | [optional] +**SoldPower** | Pointer to [**PowerSoldPowerValueWithUnit**](PowerSoldPowerValueWithUnit.md) | | [optional] +**StreamId** | **string** | unique message id | + +## Methods + +### NewPower + +`func NewPower(asset PowerAssetDetails, ibx string, streamId string, ) *Power` + +NewPower instantiates a new Power 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 + +### NewPowerWithDefaults + +`func NewPowerWithDefaults() *Power` + +NewPowerWithDefaults instantiates a new Power 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 + +### GetAccountNumber + +`func (o *Power) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *Power) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *Power) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *Power) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetApparentPower + +`func (o *Power) GetApparentPower() PowerApparentPowerValueWithUnit` + +GetApparentPower returns the ApparentPower field if non-nil, zero value otherwise. + +### GetApparentPowerOk + +`func (o *Power) GetApparentPowerOk() (*PowerApparentPowerValueWithUnit, bool)` + +GetApparentPowerOk returns a tuple with the ApparentPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApparentPower + +`func (o *Power) SetApparentPower(v PowerApparentPowerValueWithUnit)` + +SetApparentPower sets ApparentPower field to given value. + +### HasApparentPower + +`func (o *Power) HasApparentPower() bool` + +HasApparentPower returns a boolean if a field has been set. + +### GetAsset + +`func (o *Power) GetAsset() PowerAssetDetails` + +GetAsset returns the Asset field if non-nil, zero value otherwise. + +### GetAssetOk + +`func (o *Power) GetAssetOk() (*PowerAssetDetails, bool)` + +GetAssetOk returns a tuple with the Asset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsset + +`func (o *Power) SetAsset(v PowerAssetDetails)` + +SetAsset sets Asset field to given value. + + +### GetCabinet + +`func (o *Power) GetCabinet() string` + +GetCabinet returns the Cabinet field if non-nil, zero value otherwise. + +### GetCabinetOk + +`func (o *Power) GetCabinetOk() (*string, bool)` + +GetCabinetOk returns a tuple with the Cabinet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinet + +`func (o *Power) SetCabinet(v string)` + +SetCabinet sets Cabinet field to given value. + +### HasCabinet + +`func (o *Power) HasCabinet() bool` + +HasCabinet returns a boolean if a field has been set. + +### GetCabinetRating + +`func (o *Power) GetCabinetRating() PowerCabinetRatingValueWithUnit` + +GetCabinetRating returns the CabinetRating field if non-nil, zero value otherwise. + +### GetCabinetRatingOk + +`func (o *Power) GetCabinetRatingOk() (*PowerCabinetRatingValueWithUnit, bool)` + +GetCabinetRatingOk returns a tuple with the CabinetRating field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinetRating + +`func (o *Power) SetCabinetRating(v PowerCabinetRatingValueWithUnit)` + +SetCabinetRating sets CabinetRating field to given value. + +### HasCabinetRating + +`func (o *Power) HasCabinetRating() bool` + +HasCabinetRating returns a boolean if a field has been set. + +### GetCage + +`func (o *Power) GetCage() string` + +GetCage returns the Cage field if non-nil, zero value otherwise. + +### GetCageOk + +`func (o *Power) GetCageOk() (*string, bool)` + +GetCageOk returns a tuple with the Cage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCage + +`func (o *Power) SetCage(v string)` + +SetCage sets Cage field to given value. + +### HasCage + +`func (o *Power) HasCage() bool` + +HasCage returns a boolean if a field has been set. + +### GetCircuitType + +`func (o *Power) GetCircuitType() string` + +GetCircuitType returns the CircuitType field if non-nil, zero value otherwise. + +### GetCircuitTypeOk + +`func (o *Power) GetCircuitTypeOk() (*string, bool)` + +GetCircuitTypeOk returns a tuple with the CircuitType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitType + +`func (o *Power) SetCircuitType(v string)` + +SetCircuitType sets CircuitType field to given value. + +### HasCircuitType + +`func (o *Power) HasCircuitType() bool` + +HasCircuitType returns a boolean if a field has been set. + +### GetContractualPower + +`func (o *Power) GetContractualPower() PowerContractualPowerValueWithUnit` + +GetContractualPower returns the ContractualPower field if non-nil, zero value otherwise. + +### GetContractualPowerOk + +`func (o *Power) GetContractualPowerOk() (*PowerContractualPowerValueWithUnit, bool)` + +GetContractualPowerOk returns a tuple with the ContractualPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractualPower + +`func (o *Power) SetContractualPower(v PowerContractualPowerValueWithUnit)` + +SetContractualPower sets ContractualPower field to given value. + +### HasContractualPower + +`func (o *Power) HasContractualPower() bool` + +HasContractualPower returns a boolean if a field has been set. + +### GetCurrent + +`func (o *Power) GetCurrent() PowerCurrentValueWithUnit` + +GetCurrent returns the Current field if non-nil, zero value otherwise. + +### GetCurrentOk + +`func (o *Power) GetCurrentOk() (*PowerCurrentValueWithUnit, bool)` + +GetCurrentOk returns a tuple with the Current field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrent + +`func (o *Power) SetCurrent(v PowerCurrentValueWithUnit)` + +SetCurrent sets Current field to given value. + +### HasCurrent + +`func (o *Power) HasCurrent() bool` + +HasCurrent returns a boolean if a field has been set. + +### GetDescription + +`func (o *Power) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Power) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Power) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Power) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetIbx + +`func (o *Power) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *Power) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *Power) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetLastUpdated + +`func (o *Power) GetLastUpdated() string` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Power) GetLastUpdatedOk() (*string, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Power) SetLastUpdated(v string)` + +SetLastUpdated sets LastUpdated field to given value. + +### HasLastUpdated + +`func (o *Power) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. + +### GetOid + +`func (o *Power) GetOid() string` + +GetOid returns the Oid field if non-nil, zero value otherwise. + +### GetOidOk + +`func (o *Power) GetOidOk() (*string, bool)` + +GetOidOk returns a tuple with the Oid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOid + +`func (o *Power) SetOid(v string)` + +SetOid sets Oid field to given value. + +### HasOid + +`func (o *Power) HasOid() bool` + +HasOid returns a boolean if a field has been set. + +### GetPeakLastSevenDays + +`func (o *Power) GetPeakLastSevenDays() PowerPeakLastSevenDaysValueWithUnit` + +GetPeakLastSevenDays returns the PeakLastSevenDays field if non-nil, zero value otherwise. + +### GetPeakLastSevenDaysOk + +`func (o *Power) GetPeakLastSevenDaysOk() (*PowerPeakLastSevenDaysValueWithUnit, bool)` + +GetPeakLastSevenDaysOk returns a tuple with the PeakLastSevenDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakLastSevenDays + +`func (o *Power) SetPeakLastSevenDays(v PowerPeakLastSevenDaysValueWithUnit)` + +SetPeakLastSevenDays sets PeakLastSevenDays field to given value. + +### HasPeakLastSevenDays + +`func (o *Power) HasPeakLastSevenDays() bool` + +HasPeakLastSevenDays returns a boolean if a field has been set. + +### GetPeakLastSevenDaysContractualPower + +`func (o *Power) GetPeakLastSevenDaysContractualPower() PowerPeakLastSevenDaysContractualPowerValueWithUnit` + +GetPeakLastSevenDaysContractualPower returns the PeakLastSevenDaysContractualPower field if non-nil, zero value otherwise. + +### GetPeakLastSevenDaysContractualPowerOk + +`func (o *Power) GetPeakLastSevenDaysContractualPowerOk() (*PowerPeakLastSevenDaysContractualPowerValueWithUnit, bool)` + +GetPeakLastSevenDaysContractualPowerOk returns a tuple with the PeakLastSevenDaysContractualPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakLastSevenDaysContractualPower + +`func (o *Power) SetPeakLastSevenDaysContractualPower(v PowerPeakLastSevenDaysContractualPowerValueWithUnit)` + +SetPeakLastSevenDaysContractualPower sets PeakLastSevenDaysContractualPower field to given value. + +### HasPeakLastSevenDaysContractualPower + +`func (o *Power) HasPeakLastSevenDaysContractualPower() bool` + +HasPeakLastSevenDaysContractualPower returns a boolean if a field has been set. + +### GetPeakLastSevenDaysRatio + +`func (o *Power) GetPeakLastSevenDaysRatio() PowerPeakLastSevenDaysRatioValueWithUnit` + +GetPeakLastSevenDaysRatio returns the PeakLastSevenDaysRatio field if non-nil, zero value otherwise. + +### GetPeakLastSevenDaysRatioOk + +`func (o *Power) GetPeakLastSevenDaysRatioOk() (*PowerPeakLastSevenDaysRatioValueWithUnit, bool)` + +GetPeakLastSevenDaysRatioOk returns a tuple with the PeakLastSevenDaysRatio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakLastSevenDaysRatio + +`func (o *Power) SetPeakLastSevenDaysRatio(v PowerPeakLastSevenDaysRatioValueWithUnit)` + +SetPeakLastSevenDaysRatio sets PeakLastSevenDaysRatio field to given value. + +### HasPeakLastSevenDaysRatio + +`func (o *Power) HasPeakLastSevenDaysRatio() bool` + +HasPeakLastSevenDaysRatio returns a boolean if a field has been set. + +### GetPeakLastSevenDaysTime + +`func (o *Power) GetPeakLastSevenDaysTime() string` + +GetPeakLastSevenDaysTime returns the PeakLastSevenDaysTime field if non-nil, zero value otherwise. + +### GetPeakLastSevenDaysTimeOk + +`func (o *Power) GetPeakLastSevenDaysTimeOk() (*string, bool)` + +GetPeakLastSevenDaysTimeOk returns a tuple with the PeakLastSevenDaysTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakLastSevenDaysTime + +`func (o *Power) SetPeakLastSevenDaysTime(v string)` + +SetPeakLastSevenDaysTime sets PeakLastSevenDaysTime field to given value. + +### HasPeakLastSevenDaysTime + +`func (o *Power) HasPeakLastSevenDaysTime() bool` + +HasPeakLastSevenDaysTime returns a boolean if a field has been set. + +### GetPowerConsumptionToContractual + +`func (o *Power) GetPowerConsumptionToContractual() PowerPowerConsumptionToContractualValueWithUnit` + +GetPowerConsumptionToContractual returns the PowerConsumptionToContractual field if non-nil, zero value otherwise. + +### GetPowerConsumptionToContractualOk + +`func (o *Power) GetPowerConsumptionToContractualOk() (*PowerPowerConsumptionToContractualValueWithUnit, bool)` + +GetPowerConsumptionToContractualOk returns a tuple with the PowerConsumptionToContractual field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerConsumptionToContractual + +`func (o *Power) SetPowerConsumptionToContractual(v PowerPowerConsumptionToContractualValueWithUnit)` + +SetPowerConsumptionToContractual sets PowerConsumptionToContractual field to given value. + +### HasPowerConsumptionToContractual + +`func (o *Power) HasPowerConsumptionToContractual() bool` + +HasPowerConsumptionToContractual returns a boolean if a field has been set. + +### GetPowerFactor + +`func (o *Power) GetPowerFactor() PowerPowerFactorValueWithUnit` + +GetPowerFactor returns the PowerFactor field if non-nil, zero value otherwise. + +### GetPowerFactorOk + +`func (o *Power) GetPowerFactorOk() (*PowerPowerFactorValueWithUnit, bool)` + +GetPowerFactorOk returns a tuple with the PowerFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerFactor + +`func (o *Power) SetPowerFactor(v PowerPowerFactorValueWithUnit)` + +SetPowerFactor sets PowerFactor field to given value. + +### HasPowerFactor + +`func (o *Power) HasPowerFactor() bool` + +HasPowerFactor returns a boolean if a field has been set. + +### GetReadingTime + +`func (o *Power) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *Power) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *Power) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *Power) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetRealPower + +`func (o *Power) GetRealPower() PowerRealPowerValueWithUnit` + +GetRealPower returns the RealPower field if non-nil, zero value otherwise. + +### GetRealPowerOk + +`func (o *Power) GetRealPowerOk() (*PowerRealPowerValueWithUnit, bool)` + +GetRealPowerOk returns a tuple with the RealPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRealPower + +`func (o *Power) SetRealPower(v PowerRealPowerValueWithUnit)` + +SetRealPower sets RealPower field to given value. + +### HasRealPower + +`func (o *Power) HasRealPower() bool` + +HasRealPower returns a boolean if a field has been set. + +### GetSoldCurrent + +`func (o *Power) GetSoldCurrent() PowerSoldCurrentValueWithUnit` + +GetSoldCurrent returns the SoldCurrent field if non-nil, zero value otherwise. + +### GetSoldCurrentOk + +`func (o *Power) GetSoldCurrentOk() (*PowerSoldCurrentValueWithUnit, bool)` + +GetSoldCurrentOk returns a tuple with the SoldCurrent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoldCurrent + +`func (o *Power) SetSoldCurrent(v PowerSoldCurrentValueWithUnit)` + +SetSoldCurrent sets SoldCurrent field to given value. + +### HasSoldCurrent + +`func (o *Power) HasSoldCurrent() bool` + +HasSoldCurrent returns a boolean if a field has been set. + +### GetSoldPower + +`func (o *Power) GetSoldPower() PowerSoldPowerValueWithUnit` + +GetSoldPower returns the SoldPower field if non-nil, zero value otherwise. + +### GetSoldPowerOk + +`func (o *Power) GetSoldPowerOk() (*PowerSoldPowerValueWithUnit, bool)` + +GetSoldPowerOk returns a tuple with the SoldPower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoldPower + +`func (o *Power) SetSoldPower(v PowerSoldPowerValueWithUnit)` + +SetSoldPower sets SoldPower field to given value. + +### HasSoldPower + +`func (o *Power) HasSoldPower() bool` + +HasSoldPower returns a boolean if a field has been set. + +### GetStreamId + +`func (o *Power) GetStreamId() string` + +GetStreamId returns the StreamId field if non-nil, zero value otherwise. + +### GetStreamIdOk + +`func (o *Power) GetStreamIdOk() (*string, bool)` + +GetStreamIdOk returns a tuple with the StreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamId + +`func (o *Power) SetStreamId(v string)` + +SetStreamId sets StreamId 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/services/smartview/docs/PowerApparentPowerValueWithUnit.md b/services/smartview/docs/PowerApparentPowerValueWithUnit.md new file mode 100644 index 00000000..2d8b228f --- /dev/null +++ b/services/smartview/docs/PowerApparentPowerValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerApparentPowerValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | ApparentPower reading unit | +**Value** | **string** | ApparentPower reading value | + +## Methods + +### NewPowerApparentPowerValueWithUnit + +`func NewPowerApparentPowerValueWithUnit(unit string, value string, ) *PowerApparentPowerValueWithUnit` + +NewPowerApparentPowerValueWithUnit instantiates a new PowerApparentPowerValueWithUnit 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 + +### NewPowerApparentPowerValueWithUnitWithDefaults + +`func NewPowerApparentPowerValueWithUnitWithDefaults() *PowerApparentPowerValueWithUnit` + +NewPowerApparentPowerValueWithUnitWithDefaults instantiates a new PowerApparentPowerValueWithUnit 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 + +### GetUnit + +`func (o *PowerApparentPowerValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerApparentPowerValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerApparentPowerValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerApparentPowerValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerApparentPowerValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerApparentPowerValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerAssetDetails.md b/services/smartview/docs/PowerAssetDetails.md new file mode 100644 index 00000000..0d4229e9 --- /dev/null +++ b/services/smartview/docs/PowerAssetDetails.md @@ -0,0 +1,72 @@ +# PowerAssetDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | asset id | +**Type** | **string** | asset type | + +## Methods + +### NewPowerAssetDetails + +`func NewPowerAssetDetails(id string, type_ string, ) *PowerAssetDetails` + +NewPowerAssetDetails instantiates a new PowerAssetDetails 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 + +### NewPowerAssetDetailsWithDefaults + +`func NewPowerAssetDetailsWithDefaults() *PowerAssetDetails` + +NewPowerAssetDetailsWithDefaults instantiates a new PowerAssetDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PowerAssetDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PowerAssetDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PowerAssetDetails) SetId(v string)` + +SetId sets Id field to given value. + + +### GetType + +`func (o *PowerAssetDetails) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerAssetDetails) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerAssetDetails) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerCabinetRatingValueWithUnit.md b/services/smartview/docs/PowerCabinetRatingValueWithUnit.md new file mode 100644 index 00000000..00d29cce --- /dev/null +++ b/services/smartview/docs/PowerCabinetRatingValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerCabinetRatingValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | CabinetRating reading unit | +**Value** | **string** | CabinetRating reading value | + +## Methods + +### NewPowerCabinetRatingValueWithUnit + +`func NewPowerCabinetRatingValueWithUnit(unit string, value string, ) *PowerCabinetRatingValueWithUnit` + +NewPowerCabinetRatingValueWithUnit instantiates a new PowerCabinetRatingValueWithUnit 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 + +### NewPowerCabinetRatingValueWithUnitWithDefaults + +`func NewPowerCabinetRatingValueWithUnitWithDefaults() *PowerCabinetRatingValueWithUnit` + +NewPowerCabinetRatingValueWithUnitWithDefaults instantiates a new PowerCabinetRatingValueWithUnit 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 + +### GetUnit + +`func (o *PowerCabinetRatingValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerCabinetRatingValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerCabinetRatingValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerCabinetRatingValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerCabinetRatingValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerCabinetRatingValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerContractualPowerValueWithUnit.md b/services/smartview/docs/PowerContractualPowerValueWithUnit.md new file mode 100644 index 00000000..90766229 --- /dev/null +++ b/services/smartview/docs/PowerContractualPowerValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerContractualPowerValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | ContractualPower reading unit | +**Value** | **string** | ContractualPower reading value | + +## Methods + +### NewPowerContractualPowerValueWithUnit + +`func NewPowerContractualPowerValueWithUnit(unit string, value string, ) *PowerContractualPowerValueWithUnit` + +NewPowerContractualPowerValueWithUnit instantiates a new PowerContractualPowerValueWithUnit 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 + +### NewPowerContractualPowerValueWithUnitWithDefaults + +`func NewPowerContractualPowerValueWithUnitWithDefaults() *PowerContractualPowerValueWithUnit` + +NewPowerContractualPowerValueWithUnitWithDefaults instantiates a new PowerContractualPowerValueWithUnit 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 + +### GetUnit + +`func (o *PowerContractualPowerValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerContractualPowerValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerContractualPowerValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerContractualPowerValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerContractualPowerValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerContractualPowerValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerCurrentPostRequest.md b/services/smartview/docs/PowerCurrentPostRequest.md new file mode 100644 index 00000000..f8722c9d --- /dev/null +++ b/services/smartview/docs/PowerCurrentPostRequest.md @@ -0,0 +1,108 @@ +# PowerCurrentPostRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | Customer Account Number | [optional] +**Ibx** | Pointer to **string** | trending values | [optional] +**LevelType** | Pointer to [**PowerCurrentPostRequestLevelType**](PowerCurrentPostRequestLevelType.md) | | [optional] + +## Methods + +### NewPowerCurrentPostRequest + +`func NewPowerCurrentPostRequest() *PowerCurrentPostRequest` + +NewPowerCurrentPostRequest instantiates a new PowerCurrentPostRequest 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 + +### NewPowerCurrentPostRequestWithDefaults + +`func NewPowerCurrentPostRequestWithDefaults() *PowerCurrentPostRequest` + +NewPowerCurrentPostRequestWithDefaults instantiates a new PowerCurrentPostRequest 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 + +### GetAccountNo + +`func (o *PowerCurrentPostRequest) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *PowerCurrentPostRequest) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *PowerCurrentPostRequest) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *PowerCurrentPostRequest) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetIbx + +`func (o *PowerCurrentPostRequest) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *PowerCurrentPostRequest) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *PowerCurrentPostRequest) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *PowerCurrentPostRequest) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetLevelType + +`func (o *PowerCurrentPostRequest) GetLevelType() PowerCurrentPostRequestLevelType` + +GetLevelType returns the LevelType field if non-nil, zero value otherwise. + +### GetLevelTypeOk + +`func (o *PowerCurrentPostRequest) GetLevelTypeOk() (*PowerCurrentPostRequestLevelType, bool)` + +GetLevelTypeOk returns a tuple with the LevelType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelType + +`func (o *PowerCurrentPostRequest) SetLevelType(v PowerCurrentPostRequestLevelType)` + +SetLevelType sets LevelType field to given value. + +### HasLevelType + +`func (o *PowerCurrentPostRequest) HasLevelType() bool` + +HasLevelType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerCurrentPostRequestLevelType.md b/services/smartview/docs/PowerCurrentPostRequestLevelType.md new file mode 100644 index 00000000..dc0db9a5 --- /dev/null +++ b/services/smartview/docs/PowerCurrentPostRequestLevelType.md @@ -0,0 +1,17 @@ +# PowerCurrentPostRequestLevelType + +## Enum + + +* `IBX` (value: `"ibx"`) + +* `CAGE` (value: `"cage"`) + +* `CABINET` (value: `"cabinet"`) + +* `CIRCUIT` (value: `"circuit"`) + + +[[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/services/smartview/docs/PowerCurrentValueWithUnit.md b/services/smartview/docs/PowerCurrentValueWithUnit.md new file mode 100644 index 00000000..0633a374 --- /dev/null +++ b/services/smartview/docs/PowerCurrentValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerCurrentValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | Current reading unit | +**Value** | **string** | Current reading value | + +## Methods + +### NewPowerCurrentValueWithUnit + +`func NewPowerCurrentValueWithUnit(unit string, value string, ) *PowerCurrentValueWithUnit` + +NewPowerCurrentValueWithUnit instantiates a new PowerCurrentValueWithUnit 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 + +### NewPowerCurrentValueWithUnitWithDefaults + +`func NewPowerCurrentValueWithUnitWithDefaults() *PowerCurrentValueWithUnit` + +NewPowerCurrentValueWithUnitWithDefaults instantiates a new PowerCurrentValueWithUnit 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 + +### GetUnit + +`func (o *PowerCurrentValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerCurrentValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerCurrentValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerCurrentValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerCurrentValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerCurrentValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerData.md b/services/smartview/docs/PowerData.md new file mode 100644 index 00000000..24665e74 --- /dev/null +++ b/services/smartview/docs/PowerData.md @@ -0,0 +1,82 @@ +# PowerData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**PowerDataPayLoad**](PowerDataPayLoad.md) | | [optional] +**Status** | Pointer to [**AssetDetailResponseStatus**](AssetDetailResponseStatus.md) | | [optional] + +## Methods + +### NewPowerData + +`func NewPowerData() *PowerData` + +NewPowerData instantiates a new PowerData 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 + +### NewPowerDataWithDefaults + +`func NewPowerDataWithDefaults() *PowerData` + +NewPowerDataWithDefaults instantiates a new PowerData 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 + +### GetPayLoad + +`func (o *PowerData) GetPayLoad() PowerDataPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *PowerData) GetPayLoadOk() (*PowerDataPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *PowerData) SetPayLoad(v PowerDataPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *PowerData) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *PowerData) GetStatus() AssetDetailResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PowerData) GetStatusOk() (*AssetDetailResponseStatus, 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 *PowerData) SetStatus(v AssetDetailResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PowerData) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerDataError.md b/services/smartview/docs/PowerDataError.md new file mode 100644 index 00000000..f6e9d0a2 --- /dev/null +++ b/services/smartview/docs/PowerDataError.md @@ -0,0 +1,82 @@ +# PowerDataError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to **map[string]interface{}** | | [optional] +**Status** | Pointer to [**PowerDataErrorStatus**](PowerDataErrorStatus.md) | | [optional] + +## Methods + +### NewPowerDataError + +`func NewPowerDataError() *PowerDataError` + +NewPowerDataError instantiates a new PowerDataError 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 + +### NewPowerDataErrorWithDefaults + +`func NewPowerDataErrorWithDefaults() *PowerDataError` + +NewPowerDataErrorWithDefaults instantiates a new PowerDataError 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 + +### GetPayLoad + +`func (o *PowerDataError) GetPayLoad() map[string]interface{}` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *PowerDataError) GetPayLoadOk() (*map[string]interface{}, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *PowerDataError) SetPayLoad(v map[string]interface{})` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *PowerDataError) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *PowerDataError) GetStatus() PowerDataErrorStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PowerDataError) GetStatusOk() (*PowerDataErrorStatus, 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 *PowerDataError) SetStatus(v PowerDataErrorStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PowerDataError) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerDataErrorStatus.md b/services/smartview/docs/PowerDataErrorStatus.md new file mode 100644 index 00000000..e822bd92 --- /dev/null +++ b/services/smartview/docs/PowerDataErrorStatus.md @@ -0,0 +1,108 @@ +# PowerDataErrorStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Type** | Pointer to [**ErrorStatusType**](ErrorStatusType.md) | | [optional] + +## Methods + +### NewPowerDataErrorStatus + +`func NewPowerDataErrorStatus() *PowerDataErrorStatus` + +NewPowerDataErrorStatus instantiates a new PowerDataErrorStatus 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 + +### NewPowerDataErrorStatusWithDefaults + +`func NewPowerDataErrorStatusWithDefaults() *PowerDataErrorStatus` + +NewPowerDataErrorStatusWithDefaults instantiates a new PowerDataErrorStatus 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 + +### GetMsg + +`func (o *PowerDataErrorStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *PowerDataErrorStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *PowerDataErrorStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *PowerDataErrorStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *PowerDataErrorStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *PowerDataErrorStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *PowerDataErrorStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *PowerDataErrorStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *PowerDataErrorStatus) GetType() ErrorStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerDataErrorStatus) GetTypeOk() (*ErrorStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerDataErrorStatus) SetType(v ErrorStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerDataErrorStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerDataIBX.md b/services/smartview/docs/PowerDataIBX.md new file mode 100644 index 00000000..4248d017 --- /dev/null +++ b/services/smartview/docs/PowerDataIBX.md @@ -0,0 +1,654 @@ +# PowerDataIBX + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | customer account number | [optional] +**Amps** | Pointer to **float32** | instantaneous current amp reading on circuits | [optional] +**CabinetRating** | Pointer to **float32** | maximum kVA draw allowed for the cabinet | [optional] +**ComparisonData** | Pointer to [**ComparisonData**](ComparisonData.md) | | [optional] +**ContractualKva** | Pointer to **float32** | The maximum power draw contractually allowable in a private cage. example: 341.54 | [optional] +**CustomerName** | Pointer to **string** | | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**IsAlarm** | Pointer to **string** | returns boolean based on breakertip alarm | [optional] +**Kva** | Pointer to **float32** | power consumption in kva | [optional] +**Kw** | Pointer to **string** | measure of real power expressed in kilowatt applicable for ibxs that have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions | [optional] +**LastUpdatedTime** | Pointer to **string** | date-time when the latest value was updated (epoc - milliseconds). | [optional] +**LevelType** | Pointer to [**PowerDataPayLoadLevelType**](PowerDataPayLoadLevelType.md) | | [optional] +**LevelValue** | Pointer to **string** | power hierarchy node levelValue linked to the power data | [optional] +**PeakKvaLastSevenDays** | Pointer to **float32** | | [optional] +**PeakKvaLastSevenDaysContractualKva** | Pointer to **float32** | | [optional] +**PeakKvaLastSevenDaysPercentage** | Pointer to **float32** | | [optional] +**PeakKvaLastSevenDaysTime** | Pointer to **int32** | | [optional] +**PercentageKva** | Pointer to **float32** | calculated field kva / contractualKva | [optional] +**PowerFactor** | Pointer to **string** | The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be \"NA\" for AMER and APAC regions | [optional] +**PrimaryKva** | Pointer to **float32** | the sum of instantaneous power draw reading on all the primary circuits within the levelType. | [optional] +**ReadingTime** | Pointer to **string** | date-time when the latest value was read in (epoc - milliseconds). | [optional] +**RedundantKva** | Pointer to **float32** | the sum of instantaneous power draw reading on all the redundant circuits within the levelType. | [optional] +**SoldAmps** | Pointer to **int32** | circuit description when the levelType is circuit. Null otherwise. | [optional] +**SoldKva** | Pointer to **float32** | maximum amp draw allowable on a circuit | [optional] + +## Methods + +### NewPowerDataIBX + +`func NewPowerDataIBX() *PowerDataIBX` + +NewPowerDataIBX instantiates a new PowerDataIBX 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 + +### NewPowerDataIBXWithDefaults + +`func NewPowerDataIBXWithDefaults() *PowerDataIBX` + +NewPowerDataIBXWithDefaults instantiates a new PowerDataIBX 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 + +### GetAccountNo + +`func (o *PowerDataIBX) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *PowerDataIBX) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *PowerDataIBX) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *PowerDataIBX) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetAmps + +`func (o *PowerDataIBX) GetAmps() float32` + +GetAmps returns the Amps field if non-nil, zero value otherwise. + +### GetAmpsOk + +`func (o *PowerDataIBX) GetAmpsOk() (*float32, bool)` + +GetAmpsOk returns a tuple with the Amps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmps + +`func (o *PowerDataIBX) SetAmps(v float32)` + +SetAmps sets Amps field to given value. + +### HasAmps + +`func (o *PowerDataIBX) HasAmps() bool` + +HasAmps returns a boolean if a field has been set. + +### GetCabinetRating + +`func (o *PowerDataIBX) GetCabinetRating() float32` + +GetCabinetRating returns the CabinetRating field if non-nil, zero value otherwise. + +### GetCabinetRatingOk + +`func (o *PowerDataIBX) GetCabinetRatingOk() (*float32, bool)` + +GetCabinetRatingOk returns a tuple with the CabinetRating field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinetRating + +`func (o *PowerDataIBX) SetCabinetRating(v float32)` + +SetCabinetRating sets CabinetRating field to given value. + +### HasCabinetRating + +`func (o *PowerDataIBX) HasCabinetRating() bool` + +HasCabinetRating returns a boolean if a field has been set. + +### GetComparisonData + +`func (o *PowerDataIBX) GetComparisonData() ComparisonData` + +GetComparisonData returns the ComparisonData field if non-nil, zero value otherwise. + +### GetComparisonDataOk + +`func (o *PowerDataIBX) GetComparisonDataOk() (*ComparisonData, bool)` + +GetComparisonDataOk returns a tuple with the ComparisonData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComparisonData + +`func (o *PowerDataIBX) SetComparisonData(v ComparisonData)` + +SetComparisonData sets ComparisonData field to given value. + +### HasComparisonData + +`func (o *PowerDataIBX) HasComparisonData() bool` + +HasComparisonData returns a boolean if a field has been set. + +### GetContractualKva + +`func (o *PowerDataIBX) GetContractualKva() float32` + +GetContractualKva returns the ContractualKva field if non-nil, zero value otherwise. + +### GetContractualKvaOk + +`func (o *PowerDataIBX) GetContractualKvaOk() (*float32, bool)` + +GetContractualKvaOk returns a tuple with the ContractualKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractualKva + +`func (o *PowerDataIBX) SetContractualKva(v float32)` + +SetContractualKva sets ContractualKva field to given value. + +### HasContractualKva + +`func (o *PowerDataIBX) HasContractualKva() bool` + +HasContractualKva returns a boolean if a field has been set. + +### GetCustomerName + +`func (o *PowerDataIBX) GetCustomerName() string` + +GetCustomerName returns the CustomerName field if non-nil, zero value otherwise. + +### GetCustomerNameOk + +`func (o *PowerDataIBX) GetCustomerNameOk() (*string, bool)` + +GetCustomerNameOk returns a tuple with the CustomerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerName + +`func (o *PowerDataIBX) SetCustomerName(v string)` + +SetCustomerName sets CustomerName field to given value. + +### HasCustomerName + +`func (o *PowerDataIBX) HasCustomerName() bool` + +HasCustomerName returns a boolean if a field has been set. + +### GetIbx + +`func (o *PowerDataIBX) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *PowerDataIBX) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *PowerDataIBX) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *PowerDataIBX) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetIsAlarm + +`func (o *PowerDataIBX) GetIsAlarm() string` + +GetIsAlarm returns the IsAlarm field if non-nil, zero value otherwise. + +### GetIsAlarmOk + +`func (o *PowerDataIBX) GetIsAlarmOk() (*string, bool)` + +GetIsAlarmOk returns a tuple with the IsAlarm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAlarm + +`func (o *PowerDataIBX) SetIsAlarm(v string)` + +SetIsAlarm sets IsAlarm field to given value. + +### HasIsAlarm + +`func (o *PowerDataIBX) HasIsAlarm() bool` + +HasIsAlarm returns a boolean if a field has been set. + +### GetKva + +`func (o *PowerDataIBX) GetKva() float32` + +GetKva returns the Kva field if non-nil, zero value otherwise. + +### GetKvaOk + +`func (o *PowerDataIBX) GetKvaOk() (*float32, bool)` + +GetKvaOk returns a tuple with the Kva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKva + +`func (o *PowerDataIBX) SetKva(v float32)` + +SetKva sets Kva field to given value. + +### HasKva + +`func (o *PowerDataIBX) HasKva() bool` + +HasKva returns a boolean if a field has been set. + +### GetKw + +`func (o *PowerDataIBX) GetKw() string` + +GetKw returns the Kw field if non-nil, zero value otherwise. + +### GetKwOk + +`func (o *PowerDataIBX) GetKwOk() (*string, bool)` + +GetKwOk returns a tuple with the Kw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKw + +`func (o *PowerDataIBX) SetKw(v string)` + +SetKw sets Kw field to given value. + +### HasKw + +`func (o *PowerDataIBX) HasKw() bool` + +HasKw returns a boolean if a field has been set. + +### GetLastUpdatedTime + +`func (o *PowerDataIBX) GetLastUpdatedTime() string` + +GetLastUpdatedTime returns the LastUpdatedTime field if non-nil, zero value otherwise. + +### GetLastUpdatedTimeOk + +`func (o *PowerDataIBX) GetLastUpdatedTimeOk() (*string, bool)` + +GetLastUpdatedTimeOk returns a tuple with the LastUpdatedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedTime + +`func (o *PowerDataIBX) SetLastUpdatedTime(v string)` + +SetLastUpdatedTime sets LastUpdatedTime field to given value. + +### HasLastUpdatedTime + +`func (o *PowerDataIBX) HasLastUpdatedTime() bool` + +HasLastUpdatedTime returns a boolean if a field has been set. + +### GetLevelType + +`func (o *PowerDataIBX) GetLevelType() PowerDataPayLoadLevelType` + +GetLevelType returns the LevelType field if non-nil, zero value otherwise. + +### GetLevelTypeOk + +`func (o *PowerDataIBX) GetLevelTypeOk() (*PowerDataPayLoadLevelType, bool)` + +GetLevelTypeOk returns a tuple with the LevelType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelType + +`func (o *PowerDataIBX) SetLevelType(v PowerDataPayLoadLevelType)` + +SetLevelType sets LevelType field to given value. + +### HasLevelType + +`func (o *PowerDataIBX) HasLevelType() bool` + +HasLevelType returns a boolean if a field has been set. + +### GetLevelValue + +`func (o *PowerDataIBX) GetLevelValue() string` + +GetLevelValue returns the LevelValue field if non-nil, zero value otherwise. + +### GetLevelValueOk + +`func (o *PowerDataIBX) GetLevelValueOk() (*string, bool)` + +GetLevelValueOk returns a tuple with the LevelValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelValue + +`func (o *PowerDataIBX) SetLevelValue(v string)` + +SetLevelValue sets LevelValue field to given value. + +### HasLevelValue + +`func (o *PowerDataIBX) HasLevelValue() bool` + +HasLevelValue returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDays + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDays() float32` + +GetPeakKvaLastSevenDays returns the PeakKvaLastSevenDays field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysOk + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysOk() (*float32, bool)` + +GetPeakKvaLastSevenDaysOk returns a tuple with the PeakKvaLastSevenDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDays + +`func (o *PowerDataIBX) SetPeakKvaLastSevenDays(v float32)` + +SetPeakKvaLastSevenDays sets PeakKvaLastSevenDays field to given value. + +### HasPeakKvaLastSevenDays + +`func (o *PowerDataIBX) HasPeakKvaLastSevenDays() bool` + +HasPeakKvaLastSevenDays returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDaysContractualKva + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysContractualKva() float32` + +GetPeakKvaLastSevenDaysContractualKva returns the PeakKvaLastSevenDaysContractualKva field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysContractualKvaOk + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysContractualKvaOk() (*float32, bool)` + +GetPeakKvaLastSevenDaysContractualKvaOk returns a tuple with the PeakKvaLastSevenDaysContractualKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDaysContractualKva + +`func (o *PowerDataIBX) SetPeakKvaLastSevenDaysContractualKva(v float32)` + +SetPeakKvaLastSevenDaysContractualKva sets PeakKvaLastSevenDaysContractualKva field to given value. + +### HasPeakKvaLastSevenDaysContractualKva + +`func (o *PowerDataIBX) HasPeakKvaLastSevenDaysContractualKva() bool` + +HasPeakKvaLastSevenDaysContractualKva returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDaysPercentage + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysPercentage() float32` + +GetPeakKvaLastSevenDaysPercentage returns the PeakKvaLastSevenDaysPercentage field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysPercentageOk + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysPercentageOk() (*float32, bool)` + +GetPeakKvaLastSevenDaysPercentageOk returns a tuple with the PeakKvaLastSevenDaysPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDaysPercentage + +`func (o *PowerDataIBX) SetPeakKvaLastSevenDaysPercentage(v float32)` + +SetPeakKvaLastSevenDaysPercentage sets PeakKvaLastSevenDaysPercentage field to given value. + +### HasPeakKvaLastSevenDaysPercentage + +`func (o *PowerDataIBX) HasPeakKvaLastSevenDaysPercentage() bool` + +HasPeakKvaLastSevenDaysPercentage returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDaysTime + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysTime() int32` + +GetPeakKvaLastSevenDaysTime returns the PeakKvaLastSevenDaysTime field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysTimeOk + +`func (o *PowerDataIBX) GetPeakKvaLastSevenDaysTimeOk() (*int32, bool)` + +GetPeakKvaLastSevenDaysTimeOk returns a tuple with the PeakKvaLastSevenDaysTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDaysTime + +`func (o *PowerDataIBX) SetPeakKvaLastSevenDaysTime(v int32)` + +SetPeakKvaLastSevenDaysTime sets PeakKvaLastSevenDaysTime field to given value. + +### HasPeakKvaLastSevenDaysTime + +`func (o *PowerDataIBX) HasPeakKvaLastSevenDaysTime() bool` + +HasPeakKvaLastSevenDaysTime returns a boolean if a field has been set. + +### GetPercentageKva + +`func (o *PowerDataIBX) GetPercentageKva() float32` + +GetPercentageKva returns the PercentageKva field if non-nil, zero value otherwise. + +### GetPercentageKvaOk + +`func (o *PowerDataIBX) GetPercentageKvaOk() (*float32, bool)` + +GetPercentageKvaOk returns a tuple with the PercentageKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentageKva + +`func (o *PowerDataIBX) SetPercentageKva(v float32)` + +SetPercentageKva sets PercentageKva field to given value. + +### HasPercentageKva + +`func (o *PowerDataIBX) HasPercentageKva() bool` + +HasPercentageKva returns a boolean if a field has been set. + +### GetPowerFactor + +`func (o *PowerDataIBX) GetPowerFactor() string` + +GetPowerFactor returns the PowerFactor field if non-nil, zero value otherwise. + +### GetPowerFactorOk + +`func (o *PowerDataIBX) GetPowerFactorOk() (*string, bool)` + +GetPowerFactorOk returns a tuple with the PowerFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerFactor + +`func (o *PowerDataIBX) SetPowerFactor(v string)` + +SetPowerFactor sets PowerFactor field to given value. + +### HasPowerFactor + +`func (o *PowerDataIBX) HasPowerFactor() bool` + +HasPowerFactor returns a boolean if a field has been set. + +### GetPrimaryKva + +`func (o *PowerDataIBX) GetPrimaryKva() float32` + +GetPrimaryKva returns the PrimaryKva field if non-nil, zero value otherwise. + +### GetPrimaryKvaOk + +`func (o *PowerDataIBX) GetPrimaryKvaOk() (*float32, bool)` + +GetPrimaryKvaOk returns a tuple with the PrimaryKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryKva + +`func (o *PowerDataIBX) SetPrimaryKva(v float32)` + +SetPrimaryKva sets PrimaryKva field to given value. + +### HasPrimaryKva + +`func (o *PowerDataIBX) HasPrimaryKva() bool` + +HasPrimaryKva returns a boolean if a field has been set. + +### GetReadingTime + +`func (o *PowerDataIBX) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *PowerDataIBX) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *PowerDataIBX) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *PowerDataIBX) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetRedundantKva + +`func (o *PowerDataIBX) GetRedundantKva() float32` + +GetRedundantKva returns the RedundantKva field if non-nil, zero value otherwise. + +### GetRedundantKvaOk + +`func (o *PowerDataIBX) GetRedundantKvaOk() (*float32, bool)` + +GetRedundantKvaOk returns a tuple with the RedundantKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundantKva + +`func (o *PowerDataIBX) SetRedundantKva(v float32)` + +SetRedundantKva sets RedundantKva field to given value. + +### HasRedundantKva + +`func (o *PowerDataIBX) HasRedundantKva() bool` + +HasRedundantKva returns a boolean if a field has been set. + +### GetSoldAmps + +`func (o *PowerDataIBX) GetSoldAmps() int32` + +GetSoldAmps returns the SoldAmps field if non-nil, zero value otherwise. + +### GetSoldAmpsOk + +`func (o *PowerDataIBX) GetSoldAmpsOk() (*int32, bool)` + +GetSoldAmpsOk returns a tuple with the SoldAmps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoldAmps + +`func (o *PowerDataIBX) SetSoldAmps(v int32)` + +SetSoldAmps sets SoldAmps field to given value. + +### HasSoldAmps + +`func (o *PowerDataIBX) HasSoldAmps() bool` + +HasSoldAmps returns a boolean if a field has been set. + +### GetSoldKva + +`func (o *PowerDataIBX) GetSoldKva() float32` + +GetSoldKva returns the SoldKva field if non-nil, zero value otherwise. + +### GetSoldKvaOk + +`func (o *PowerDataIBX) GetSoldKvaOk() (*float32, bool)` + +GetSoldKvaOk returns a tuple with the SoldKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoldKva + +`func (o *PowerDataIBX) SetSoldKva(v float32)` + +SetSoldKva sets SoldKva field to given value. + +### HasSoldKva + +`func (o *PowerDataIBX) HasSoldKva() bool` + +HasSoldKva returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerDataPayLoad.md b/services/smartview/docs/PowerDataPayLoad.md new file mode 100644 index 00000000..30475f87 --- /dev/null +++ b/services/smartview/docs/PowerDataPayLoad.md @@ -0,0 +1,654 @@ +# PowerDataPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | customer account number | [optional] +**Amps** | Pointer to **float32** | instantaneous current amp reading on circuits | [optional] +**CabinetRating** | Pointer to **float32** | maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise. | [optional] +**ComparisonData** | Pointer to [**ComparisonData**](ComparisonData.md) | | [optional] +**ContractualKva** | Pointer to **float32** | The maximum power draw contractually allowable in a private cage. | [optional] +**CustomerName** | Pointer to **string** | | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**IsAlarm** | Pointer to **string** | returns boolean based on breakertip alarm | [optional] +**Kva** | Pointer to **float32** | power consumption in kva | [optional] +**Kw** | Pointer to **string** | measure of real power expressed in kilowatt applicable for ibxs that have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions | [optional] +**LastUpdatedTime** | Pointer to **string** | date-time when the latest value was updated (epoc - milliseconds). | [optional] +**LevelType** | Pointer to [**PowerDataPayLoadLevelType**](PowerDataPayLoadLevelType.md) | | [optional] +**LevelValue** | Pointer to **string** | power hierarchy node levelValue linked to the power data | [optional] +**PeakKvaLastSevenDays** | Pointer to **float32** | | [optional] +**PeakKvaLastSevenDaysContractualKva** | Pointer to **float32** | | [optional] +**PeakKvaLastSevenDaysPercentage** | Pointer to **float32** | | [optional] +**PeakKvaLastSevenDaysTime** | Pointer to **int32** | | [optional] +**PercentageKva** | Pointer to **float32** | calculated field kva / contractualKva | [optional] +**PowerFactor** | Pointer to **string** | The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be \"NA\" for AMER and APAC regions | [optional] +**PrimaryKva** | Pointer to **float32** | the sum of instantaneous power draw reading on all the primary circuits within the levelType. | [optional] +**ReadingTime** | Pointer to **string** | date-time when the latest value was read in (epoc - milliseconds). | [optional] +**RedundantKva** | Pointer to **float32** | the sum of instantaneous power draw reading on all the redundant circuits within the levelType. | [optional] +**SoldAmps** | Pointer to **int32** | circuit description when the levelType is circuit. Null otherwise. | [optional] +**SoldKva** | Pointer to **float32** | maximum amp draw allowable on a circuit | [optional] + +## Methods + +### NewPowerDataPayLoad + +`func NewPowerDataPayLoad() *PowerDataPayLoad` + +NewPowerDataPayLoad instantiates a new PowerDataPayLoad 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 + +### NewPowerDataPayLoadWithDefaults + +`func NewPowerDataPayLoadWithDefaults() *PowerDataPayLoad` + +NewPowerDataPayLoadWithDefaults instantiates a new PowerDataPayLoad 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 + +### GetAccountNo + +`func (o *PowerDataPayLoad) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *PowerDataPayLoad) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *PowerDataPayLoad) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *PowerDataPayLoad) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetAmps + +`func (o *PowerDataPayLoad) GetAmps() float32` + +GetAmps returns the Amps field if non-nil, zero value otherwise. + +### GetAmpsOk + +`func (o *PowerDataPayLoad) GetAmpsOk() (*float32, bool)` + +GetAmpsOk returns a tuple with the Amps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmps + +`func (o *PowerDataPayLoad) SetAmps(v float32)` + +SetAmps sets Amps field to given value. + +### HasAmps + +`func (o *PowerDataPayLoad) HasAmps() bool` + +HasAmps returns a boolean if a field has been set. + +### GetCabinetRating + +`func (o *PowerDataPayLoad) GetCabinetRating() float32` + +GetCabinetRating returns the CabinetRating field if non-nil, zero value otherwise. + +### GetCabinetRatingOk + +`func (o *PowerDataPayLoad) GetCabinetRatingOk() (*float32, bool)` + +GetCabinetRatingOk returns a tuple with the CabinetRating field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCabinetRating + +`func (o *PowerDataPayLoad) SetCabinetRating(v float32)` + +SetCabinetRating sets CabinetRating field to given value. + +### HasCabinetRating + +`func (o *PowerDataPayLoad) HasCabinetRating() bool` + +HasCabinetRating returns a boolean if a field has been set. + +### GetComparisonData + +`func (o *PowerDataPayLoad) GetComparisonData() ComparisonData` + +GetComparisonData returns the ComparisonData field if non-nil, zero value otherwise. + +### GetComparisonDataOk + +`func (o *PowerDataPayLoad) GetComparisonDataOk() (*ComparisonData, bool)` + +GetComparisonDataOk returns a tuple with the ComparisonData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComparisonData + +`func (o *PowerDataPayLoad) SetComparisonData(v ComparisonData)` + +SetComparisonData sets ComparisonData field to given value. + +### HasComparisonData + +`func (o *PowerDataPayLoad) HasComparisonData() bool` + +HasComparisonData returns a boolean if a field has been set. + +### GetContractualKva + +`func (o *PowerDataPayLoad) GetContractualKva() float32` + +GetContractualKva returns the ContractualKva field if non-nil, zero value otherwise. + +### GetContractualKvaOk + +`func (o *PowerDataPayLoad) GetContractualKvaOk() (*float32, bool)` + +GetContractualKvaOk returns a tuple with the ContractualKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContractualKva + +`func (o *PowerDataPayLoad) SetContractualKva(v float32)` + +SetContractualKva sets ContractualKva field to given value. + +### HasContractualKva + +`func (o *PowerDataPayLoad) HasContractualKva() bool` + +HasContractualKva returns a boolean if a field has been set. + +### GetCustomerName + +`func (o *PowerDataPayLoad) GetCustomerName() string` + +GetCustomerName returns the CustomerName field if non-nil, zero value otherwise. + +### GetCustomerNameOk + +`func (o *PowerDataPayLoad) GetCustomerNameOk() (*string, bool)` + +GetCustomerNameOk returns a tuple with the CustomerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerName + +`func (o *PowerDataPayLoad) SetCustomerName(v string)` + +SetCustomerName sets CustomerName field to given value. + +### HasCustomerName + +`func (o *PowerDataPayLoad) HasCustomerName() bool` + +HasCustomerName returns a boolean if a field has been set. + +### GetIbx + +`func (o *PowerDataPayLoad) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *PowerDataPayLoad) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *PowerDataPayLoad) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *PowerDataPayLoad) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetIsAlarm + +`func (o *PowerDataPayLoad) GetIsAlarm() string` + +GetIsAlarm returns the IsAlarm field if non-nil, zero value otherwise. + +### GetIsAlarmOk + +`func (o *PowerDataPayLoad) GetIsAlarmOk() (*string, bool)` + +GetIsAlarmOk returns a tuple with the IsAlarm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAlarm + +`func (o *PowerDataPayLoad) SetIsAlarm(v string)` + +SetIsAlarm sets IsAlarm field to given value. + +### HasIsAlarm + +`func (o *PowerDataPayLoad) HasIsAlarm() bool` + +HasIsAlarm returns a boolean if a field has been set. + +### GetKva + +`func (o *PowerDataPayLoad) GetKva() float32` + +GetKva returns the Kva field if non-nil, zero value otherwise. + +### GetKvaOk + +`func (o *PowerDataPayLoad) GetKvaOk() (*float32, bool)` + +GetKvaOk returns a tuple with the Kva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKva + +`func (o *PowerDataPayLoad) SetKva(v float32)` + +SetKva sets Kva field to given value. + +### HasKva + +`func (o *PowerDataPayLoad) HasKva() bool` + +HasKva returns a boolean if a field has been set. + +### GetKw + +`func (o *PowerDataPayLoad) GetKw() string` + +GetKw returns the Kw field if non-nil, zero value otherwise. + +### GetKwOk + +`func (o *PowerDataPayLoad) GetKwOk() (*string, bool)` + +GetKwOk returns a tuple with the Kw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKw + +`func (o *PowerDataPayLoad) SetKw(v string)` + +SetKw sets Kw field to given value. + +### HasKw + +`func (o *PowerDataPayLoad) HasKw() bool` + +HasKw returns a boolean if a field has been set. + +### GetLastUpdatedTime + +`func (o *PowerDataPayLoad) GetLastUpdatedTime() string` + +GetLastUpdatedTime returns the LastUpdatedTime field if non-nil, zero value otherwise. + +### GetLastUpdatedTimeOk + +`func (o *PowerDataPayLoad) GetLastUpdatedTimeOk() (*string, bool)` + +GetLastUpdatedTimeOk returns a tuple with the LastUpdatedTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdatedTime + +`func (o *PowerDataPayLoad) SetLastUpdatedTime(v string)` + +SetLastUpdatedTime sets LastUpdatedTime field to given value. + +### HasLastUpdatedTime + +`func (o *PowerDataPayLoad) HasLastUpdatedTime() bool` + +HasLastUpdatedTime returns a boolean if a field has been set. + +### GetLevelType + +`func (o *PowerDataPayLoad) GetLevelType() PowerDataPayLoadLevelType` + +GetLevelType returns the LevelType field if non-nil, zero value otherwise. + +### GetLevelTypeOk + +`func (o *PowerDataPayLoad) GetLevelTypeOk() (*PowerDataPayLoadLevelType, bool)` + +GetLevelTypeOk returns a tuple with the LevelType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelType + +`func (o *PowerDataPayLoad) SetLevelType(v PowerDataPayLoadLevelType)` + +SetLevelType sets LevelType field to given value. + +### HasLevelType + +`func (o *PowerDataPayLoad) HasLevelType() bool` + +HasLevelType returns a boolean if a field has been set. + +### GetLevelValue + +`func (o *PowerDataPayLoad) GetLevelValue() string` + +GetLevelValue returns the LevelValue field if non-nil, zero value otherwise. + +### GetLevelValueOk + +`func (o *PowerDataPayLoad) GetLevelValueOk() (*string, bool)` + +GetLevelValueOk returns a tuple with the LevelValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelValue + +`func (o *PowerDataPayLoad) SetLevelValue(v string)` + +SetLevelValue sets LevelValue field to given value. + +### HasLevelValue + +`func (o *PowerDataPayLoad) HasLevelValue() bool` + +HasLevelValue returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDays + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDays() float32` + +GetPeakKvaLastSevenDays returns the PeakKvaLastSevenDays field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysOk + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysOk() (*float32, bool)` + +GetPeakKvaLastSevenDaysOk returns a tuple with the PeakKvaLastSevenDays field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDays + +`func (o *PowerDataPayLoad) SetPeakKvaLastSevenDays(v float32)` + +SetPeakKvaLastSevenDays sets PeakKvaLastSevenDays field to given value. + +### HasPeakKvaLastSevenDays + +`func (o *PowerDataPayLoad) HasPeakKvaLastSevenDays() bool` + +HasPeakKvaLastSevenDays returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDaysContractualKva + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysContractualKva() float32` + +GetPeakKvaLastSevenDaysContractualKva returns the PeakKvaLastSevenDaysContractualKva field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysContractualKvaOk + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysContractualKvaOk() (*float32, bool)` + +GetPeakKvaLastSevenDaysContractualKvaOk returns a tuple with the PeakKvaLastSevenDaysContractualKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDaysContractualKva + +`func (o *PowerDataPayLoad) SetPeakKvaLastSevenDaysContractualKva(v float32)` + +SetPeakKvaLastSevenDaysContractualKva sets PeakKvaLastSevenDaysContractualKva field to given value. + +### HasPeakKvaLastSevenDaysContractualKva + +`func (o *PowerDataPayLoad) HasPeakKvaLastSevenDaysContractualKva() bool` + +HasPeakKvaLastSevenDaysContractualKva returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDaysPercentage + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysPercentage() float32` + +GetPeakKvaLastSevenDaysPercentage returns the PeakKvaLastSevenDaysPercentage field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysPercentageOk + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysPercentageOk() (*float32, bool)` + +GetPeakKvaLastSevenDaysPercentageOk returns a tuple with the PeakKvaLastSevenDaysPercentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDaysPercentage + +`func (o *PowerDataPayLoad) SetPeakKvaLastSevenDaysPercentage(v float32)` + +SetPeakKvaLastSevenDaysPercentage sets PeakKvaLastSevenDaysPercentage field to given value. + +### HasPeakKvaLastSevenDaysPercentage + +`func (o *PowerDataPayLoad) HasPeakKvaLastSevenDaysPercentage() bool` + +HasPeakKvaLastSevenDaysPercentage returns a boolean if a field has been set. + +### GetPeakKvaLastSevenDaysTime + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysTime() int32` + +GetPeakKvaLastSevenDaysTime returns the PeakKvaLastSevenDaysTime field if non-nil, zero value otherwise. + +### GetPeakKvaLastSevenDaysTimeOk + +`func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysTimeOk() (*int32, bool)` + +GetPeakKvaLastSevenDaysTimeOk returns a tuple with the PeakKvaLastSevenDaysTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPeakKvaLastSevenDaysTime + +`func (o *PowerDataPayLoad) SetPeakKvaLastSevenDaysTime(v int32)` + +SetPeakKvaLastSevenDaysTime sets PeakKvaLastSevenDaysTime field to given value. + +### HasPeakKvaLastSevenDaysTime + +`func (o *PowerDataPayLoad) HasPeakKvaLastSevenDaysTime() bool` + +HasPeakKvaLastSevenDaysTime returns a boolean if a field has been set. + +### GetPercentageKva + +`func (o *PowerDataPayLoad) GetPercentageKva() float32` + +GetPercentageKva returns the PercentageKva field if non-nil, zero value otherwise. + +### GetPercentageKvaOk + +`func (o *PowerDataPayLoad) GetPercentageKvaOk() (*float32, bool)` + +GetPercentageKvaOk returns a tuple with the PercentageKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentageKva + +`func (o *PowerDataPayLoad) SetPercentageKva(v float32)` + +SetPercentageKva sets PercentageKva field to given value. + +### HasPercentageKva + +`func (o *PowerDataPayLoad) HasPercentageKva() bool` + +HasPercentageKva returns a boolean if a field has been set. + +### GetPowerFactor + +`func (o *PowerDataPayLoad) GetPowerFactor() string` + +GetPowerFactor returns the PowerFactor field if non-nil, zero value otherwise. + +### GetPowerFactorOk + +`func (o *PowerDataPayLoad) GetPowerFactorOk() (*string, bool)` + +GetPowerFactorOk returns a tuple with the PowerFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerFactor + +`func (o *PowerDataPayLoad) SetPowerFactor(v string)` + +SetPowerFactor sets PowerFactor field to given value. + +### HasPowerFactor + +`func (o *PowerDataPayLoad) HasPowerFactor() bool` + +HasPowerFactor returns a boolean if a field has been set. + +### GetPrimaryKva + +`func (o *PowerDataPayLoad) GetPrimaryKva() float32` + +GetPrimaryKva returns the PrimaryKva field if non-nil, zero value otherwise. + +### GetPrimaryKvaOk + +`func (o *PowerDataPayLoad) GetPrimaryKvaOk() (*float32, bool)` + +GetPrimaryKvaOk returns a tuple with the PrimaryKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrimaryKva + +`func (o *PowerDataPayLoad) SetPrimaryKva(v float32)` + +SetPrimaryKva sets PrimaryKva field to given value. + +### HasPrimaryKva + +`func (o *PowerDataPayLoad) HasPrimaryKva() bool` + +HasPrimaryKva returns a boolean if a field has been set. + +### GetReadingTime + +`func (o *PowerDataPayLoad) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *PowerDataPayLoad) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *PowerDataPayLoad) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *PowerDataPayLoad) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetRedundantKva + +`func (o *PowerDataPayLoad) GetRedundantKva() float32` + +GetRedundantKva returns the RedundantKva field if non-nil, zero value otherwise. + +### GetRedundantKvaOk + +`func (o *PowerDataPayLoad) GetRedundantKvaOk() (*float32, bool)` + +GetRedundantKvaOk returns a tuple with the RedundantKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRedundantKva + +`func (o *PowerDataPayLoad) SetRedundantKva(v float32)` + +SetRedundantKva sets RedundantKva field to given value. + +### HasRedundantKva + +`func (o *PowerDataPayLoad) HasRedundantKva() bool` + +HasRedundantKva returns a boolean if a field has been set. + +### GetSoldAmps + +`func (o *PowerDataPayLoad) GetSoldAmps() int32` + +GetSoldAmps returns the SoldAmps field if non-nil, zero value otherwise. + +### GetSoldAmpsOk + +`func (o *PowerDataPayLoad) GetSoldAmpsOk() (*int32, bool)` + +GetSoldAmpsOk returns a tuple with the SoldAmps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoldAmps + +`func (o *PowerDataPayLoad) SetSoldAmps(v int32)` + +SetSoldAmps sets SoldAmps field to given value. + +### HasSoldAmps + +`func (o *PowerDataPayLoad) HasSoldAmps() bool` + +HasSoldAmps returns a boolean if a field has been set. + +### GetSoldKva + +`func (o *PowerDataPayLoad) GetSoldKva() float32` + +GetSoldKva returns the SoldKva field if non-nil, zero value otherwise. + +### GetSoldKvaOk + +`func (o *PowerDataPayLoad) GetSoldKvaOk() (*float32, bool)` + +GetSoldKvaOk returns a tuple with the SoldKva field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSoldKva + +`func (o *PowerDataPayLoad) SetSoldKva(v float32)` + +SetSoldKva sets SoldKva field to given value. + +### HasSoldKva + +`func (o *PowerDataPayLoad) HasSoldKva() bool` + +HasSoldKva returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerDataPayLoadLevelType.md b/services/smartview/docs/PowerDataPayLoadLevelType.md new file mode 100644 index 00000000..24d39dc6 --- /dev/null +++ b/services/smartview/docs/PowerDataPayLoadLevelType.md @@ -0,0 +1,17 @@ +# PowerDataPayLoadLevelType + +## Enum + + +* `IBX` (value: `"ibx"`) + +* `CAGE` (value: `"cage"`) + +* `CABINET` (value: `"cabinet"`) + +* `CIRCUIT` (value: `"circuit"`) + + +[[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/services/smartview/docs/PowerDataResponseIBX.md b/services/smartview/docs/PowerDataResponseIBX.md new file mode 100644 index 00000000..5d4a5851 --- /dev/null +++ b/services/smartview/docs/PowerDataResponseIBX.md @@ -0,0 +1,82 @@ +# PowerDataResponseIBX + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**PowerDataResponseIBXPayLoad**](PowerDataResponseIBXPayLoad.md) | | [optional] +**Status** | Pointer to [**AssetDetailResponseStatus**](AssetDetailResponseStatus.md) | | [optional] + +## Methods + +### NewPowerDataResponseIBX + +`func NewPowerDataResponseIBX() *PowerDataResponseIBX` + +NewPowerDataResponseIBX instantiates a new PowerDataResponseIBX 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 + +### NewPowerDataResponseIBXWithDefaults + +`func NewPowerDataResponseIBXWithDefaults() *PowerDataResponseIBX` + +NewPowerDataResponseIBXWithDefaults instantiates a new PowerDataResponseIBX 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 + +### GetPayLoad + +`func (o *PowerDataResponseIBX) GetPayLoad() PowerDataResponseIBXPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *PowerDataResponseIBX) GetPayLoadOk() (*PowerDataResponseIBXPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *PowerDataResponseIBX) SetPayLoad(v PowerDataResponseIBXPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *PowerDataResponseIBX) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *PowerDataResponseIBX) GetStatus() AssetDetailResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PowerDataResponseIBX) GetStatusOk() (*AssetDetailResponseStatus, 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 *PowerDataResponseIBX) SetStatus(v AssetDetailResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PowerDataResponseIBX) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerDataResponseIBXPayLoad.md b/services/smartview/docs/PowerDataResponseIBXPayLoad.md new file mode 100644 index 00000000..76abd88b --- /dev/null +++ b/services/smartview/docs/PowerDataResponseIBXPayLoad.md @@ -0,0 +1,56 @@ +# PowerDataResponseIBXPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]PowerDataIBX**](PowerDataIBX.md) | | [optional] + +## Methods + +### NewPowerDataResponseIBXPayLoad + +`func NewPowerDataResponseIBXPayLoad() *PowerDataResponseIBXPayLoad` + +NewPowerDataResponseIBXPayLoad instantiates a new PowerDataResponseIBXPayLoad 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 + +### NewPowerDataResponseIBXPayLoadWithDefaults + +`func NewPowerDataResponseIBXPayLoadWithDefaults() *PowerDataResponseIBXPayLoad` + +NewPowerDataResponseIBXPayLoadWithDefaults instantiates a new PowerDataResponseIBXPayLoad 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 *PowerDataResponseIBXPayLoad) GetData() []PowerDataIBX` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PowerDataResponseIBXPayLoad) GetDataOk() (*[]PowerDataIBX, 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 *PowerDataResponseIBXPayLoad) SetData(v []PowerDataIBX)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PowerDataResponseIBXPayLoad) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerHierarchyNode.md b/services/smartview/docs/PowerHierarchyNode.md new file mode 100644 index 00000000..9596048c --- /dev/null +++ b/services/smartview/docs/PowerHierarchyNode.md @@ -0,0 +1,134 @@ +# PowerHierarchyNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Children** | Pointer to [**[]PowerHierarchyNode**](PowerHierarchyNode.md) | ibx, cage, cabinet nodes can have cage, cabinet and circuit, circuit nodes as children respectively. | [optional] +**Label** | Pointer to **string** | ibx code, cage unique space id, cabinet unique space id, circuit label for levelType ibx, cage, cabinet, circuit resp. | [optional] +**LevelType** | Pointer to [**PowerHierarchyNodeLevelType**](PowerHierarchyNodeLevelType.md) | | [optional] +**LevelValue** | Pointer to **string** | ibx code, cage us id, cabinet us id, circuit number for levelType ibx, cage, cabinet, circuit resp. | [optional] + +## Methods + +### NewPowerHierarchyNode + +`func NewPowerHierarchyNode() *PowerHierarchyNode` + +NewPowerHierarchyNode instantiates a new PowerHierarchyNode 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 + +### NewPowerHierarchyNodeWithDefaults + +`func NewPowerHierarchyNodeWithDefaults() *PowerHierarchyNode` + +NewPowerHierarchyNodeWithDefaults instantiates a new PowerHierarchyNode 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 + +### GetChildren + +`func (o *PowerHierarchyNode) GetChildren() []PowerHierarchyNode` + +GetChildren returns the Children field if non-nil, zero value otherwise. + +### GetChildrenOk + +`func (o *PowerHierarchyNode) GetChildrenOk() (*[]PowerHierarchyNode, bool)` + +GetChildrenOk returns a tuple with the Children field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChildren + +`func (o *PowerHierarchyNode) SetChildren(v []PowerHierarchyNode)` + +SetChildren sets Children field to given value. + +### HasChildren + +`func (o *PowerHierarchyNode) HasChildren() bool` + +HasChildren returns a boolean if a field has been set. + +### GetLabel + +`func (o *PowerHierarchyNode) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerHierarchyNode) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerHierarchyNode) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerHierarchyNode) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetLevelType + +`func (o *PowerHierarchyNode) GetLevelType() PowerHierarchyNodeLevelType` + +GetLevelType returns the LevelType field if non-nil, zero value otherwise. + +### GetLevelTypeOk + +`func (o *PowerHierarchyNode) GetLevelTypeOk() (*PowerHierarchyNodeLevelType, bool)` + +GetLevelTypeOk returns a tuple with the LevelType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelType + +`func (o *PowerHierarchyNode) SetLevelType(v PowerHierarchyNodeLevelType)` + +SetLevelType sets LevelType field to given value. + +### HasLevelType + +`func (o *PowerHierarchyNode) HasLevelType() bool` + +HasLevelType returns a boolean if a field has been set. + +### GetLevelValue + +`func (o *PowerHierarchyNode) GetLevelValue() string` + +GetLevelValue returns the LevelValue field if non-nil, zero value otherwise. + +### GetLevelValueOk + +`func (o *PowerHierarchyNode) GetLevelValueOk() (*string, bool)` + +GetLevelValueOk returns a tuple with the LevelValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelValue + +`func (o *PowerHierarchyNode) SetLevelValue(v string)` + +SetLevelValue sets LevelValue field to given value. + +### HasLevelValue + +`func (o *PowerHierarchyNode) HasLevelValue() bool` + +HasLevelValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerHierarchyNodeLevelType.md b/services/smartview/docs/PowerHierarchyNodeLevelType.md new file mode 100644 index 00000000..2eba63b2 --- /dev/null +++ b/services/smartview/docs/PowerHierarchyNodeLevelType.md @@ -0,0 +1,17 @@ +# PowerHierarchyNodeLevelType + +## Enum + + +* `IBX` (value: `"ibx"`) + +* `CAGE` (value: `"cage"`) + +* `CABINET` (value: `"cabinet"`) + +* `CIRCUIT` (value: `"circuit"`) + + +[[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/services/smartview/docs/PowerMessage.md b/services/smartview/docs/PowerMessage.md new file mode 100644 index 00000000..144c8a8f --- /dev/null +++ b/services/smartview/docs/PowerMessage.md @@ -0,0 +1,72 @@ +# PowerMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | **string** | | +**Ibx** | **[]string** | | + +## Methods + +### NewPowerMessage + +`func NewPowerMessage(accountNumber string, ibx []string, ) *PowerMessage` + +NewPowerMessage instantiates a new PowerMessage 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 + +### NewPowerMessageWithDefaults + +`func NewPowerMessageWithDefaults() *PowerMessage` + +NewPowerMessageWithDefaults instantiates a new PowerMessage 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 + +### GetAccountNumber + +`func (o *PowerMessage) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *PowerMessage) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *PowerMessage) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + + +### GetIbx + +`func (o *PowerMessage) GetIbx() []string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *PowerMessage) GetIbxOk() (*[]string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *PowerMessage) SetIbx(v []string)` + +SetIbx sets Ibx 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/services/smartview/docs/PowerMessageData.md b/services/smartview/docs/PowerMessageData.md new file mode 100644 index 00000000..d60a6e40 --- /dev/null +++ b/services/smartview/docs/PowerMessageData.md @@ -0,0 +1,72 @@ +# PowerMessageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Power**](Power.md) | | +**Type** | **string** | message type | [default to "power"] + +## Methods + +### NewPowerMessageData + +`func NewPowerMessageData(data Power, type_ string, ) *PowerMessageData` + +NewPowerMessageData instantiates a new PowerMessageData 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 + +### NewPowerMessageDataWithDefaults + +`func NewPowerMessageDataWithDefaults() *PowerMessageData` + +NewPowerMessageDataWithDefaults instantiates a new PowerMessageData 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 *PowerMessageData) GetData() Power` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PowerMessageData) GetDataOk() (*Power, 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 *PowerMessageData) SetData(v Power)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *PowerMessageData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerMessageData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerMessageData) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/PowerPeakLastSevenDaysContractualPowerValueWithUnit.md b/services/smartview/docs/PowerPeakLastSevenDaysContractualPowerValueWithUnit.md new file mode 100644 index 00000000..c2ebeb92 --- /dev/null +++ b/services/smartview/docs/PowerPeakLastSevenDaysContractualPowerValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerPeakLastSevenDaysContractualPowerValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | PeakLastSevenDaysContractualPower reading unit | +**Value** | **string** | PeakLastSevenDaysContractualPower reading value | + +## Methods + +### NewPowerPeakLastSevenDaysContractualPowerValueWithUnit + +`func NewPowerPeakLastSevenDaysContractualPowerValueWithUnit(unit string, value string, ) *PowerPeakLastSevenDaysContractualPowerValueWithUnit` + +NewPowerPeakLastSevenDaysContractualPowerValueWithUnit instantiates a new PowerPeakLastSevenDaysContractualPowerValueWithUnit 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 + +### NewPowerPeakLastSevenDaysContractualPowerValueWithUnitWithDefaults + +`func NewPowerPeakLastSevenDaysContractualPowerValueWithUnitWithDefaults() *PowerPeakLastSevenDaysContractualPowerValueWithUnit` + +NewPowerPeakLastSevenDaysContractualPowerValueWithUnitWithDefaults instantiates a new PowerPeakLastSevenDaysContractualPowerValueWithUnit 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 + +### GetUnit + +`func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerPeakLastSevenDaysRatioValueWithUnit.md b/services/smartview/docs/PowerPeakLastSevenDaysRatioValueWithUnit.md new file mode 100644 index 00000000..effe04fd --- /dev/null +++ b/services/smartview/docs/PowerPeakLastSevenDaysRatioValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerPeakLastSevenDaysRatioValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | PeakLastSevenDaysRatio reading unit | +**Value** | **string** | PeakLastSevenDaysRatio reading value | + +## Methods + +### NewPowerPeakLastSevenDaysRatioValueWithUnit + +`func NewPowerPeakLastSevenDaysRatioValueWithUnit(unit string, value string, ) *PowerPeakLastSevenDaysRatioValueWithUnit` + +NewPowerPeakLastSevenDaysRatioValueWithUnit instantiates a new PowerPeakLastSevenDaysRatioValueWithUnit 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 + +### NewPowerPeakLastSevenDaysRatioValueWithUnitWithDefaults + +`func NewPowerPeakLastSevenDaysRatioValueWithUnitWithDefaults() *PowerPeakLastSevenDaysRatioValueWithUnit` + +NewPowerPeakLastSevenDaysRatioValueWithUnitWithDefaults instantiates a new PowerPeakLastSevenDaysRatioValueWithUnit 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 + +### GetUnit + +`func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerPeakLastSevenDaysRatioValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPeakLastSevenDaysRatioValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerPeakLastSevenDaysValueWithUnit.md b/services/smartview/docs/PowerPeakLastSevenDaysValueWithUnit.md new file mode 100644 index 00000000..78129c1e --- /dev/null +++ b/services/smartview/docs/PowerPeakLastSevenDaysValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerPeakLastSevenDaysValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | PeakLastSevenDays reading unit | +**Value** | **string** | PeakLastSevenDays reading value | + +## Methods + +### NewPowerPeakLastSevenDaysValueWithUnit + +`func NewPowerPeakLastSevenDaysValueWithUnit(unit string, value string, ) *PowerPeakLastSevenDaysValueWithUnit` + +NewPowerPeakLastSevenDaysValueWithUnit instantiates a new PowerPeakLastSevenDaysValueWithUnit 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 + +### NewPowerPeakLastSevenDaysValueWithUnitWithDefaults + +`func NewPowerPeakLastSevenDaysValueWithUnitWithDefaults() *PowerPeakLastSevenDaysValueWithUnit` + +NewPowerPeakLastSevenDaysValueWithUnitWithDefaults instantiates a new PowerPeakLastSevenDaysValueWithUnit 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 + +### GetUnit + +`func (o *PowerPeakLastSevenDaysValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerPeakLastSevenDaysValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerPeakLastSevenDaysValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerPeakLastSevenDaysValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPeakLastSevenDaysValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPeakLastSevenDaysValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerPowerConsumptionToContractualValueWithUnit.md b/services/smartview/docs/PowerPowerConsumptionToContractualValueWithUnit.md new file mode 100644 index 00000000..80437bce --- /dev/null +++ b/services/smartview/docs/PowerPowerConsumptionToContractualValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerPowerConsumptionToContractualValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | PowerConsumptionToContractual reading unit | +**Value** | **string** | PowerConsumptionToContractual reading value | + +## Methods + +### NewPowerPowerConsumptionToContractualValueWithUnit + +`func NewPowerPowerConsumptionToContractualValueWithUnit(unit string, value string, ) *PowerPowerConsumptionToContractualValueWithUnit` + +NewPowerPowerConsumptionToContractualValueWithUnit instantiates a new PowerPowerConsumptionToContractualValueWithUnit 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 + +### NewPowerPowerConsumptionToContractualValueWithUnitWithDefaults + +`func NewPowerPowerConsumptionToContractualValueWithUnitWithDefaults() *PowerPowerConsumptionToContractualValueWithUnit` + +NewPowerPowerConsumptionToContractualValueWithUnitWithDefaults instantiates a new PowerPowerConsumptionToContractualValueWithUnit 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 + +### GetUnit + +`func (o *PowerPowerConsumptionToContractualValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerPowerConsumptionToContractualValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerPowerConsumptionToContractualValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerPowerConsumptionToContractualValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPowerConsumptionToContractualValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPowerConsumptionToContractualValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerPowerFactorValueWithUnit.md b/services/smartview/docs/PowerPowerFactorValueWithUnit.md new file mode 100644 index 00000000..62253f41 --- /dev/null +++ b/services/smartview/docs/PowerPowerFactorValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerPowerFactorValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | PowerFactor reading unit | +**Value** | **string** | PowerFactor reading value | + +## Methods + +### NewPowerPowerFactorValueWithUnit + +`func NewPowerPowerFactorValueWithUnit(unit string, value string, ) *PowerPowerFactorValueWithUnit` + +NewPowerPowerFactorValueWithUnit instantiates a new PowerPowerFactorValueWithUnit 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 + +### NewPowerPowerFactorValueWithUnitWithDefaults + +`func NewPowerPowerFactorValueWithUnitWithDefaults() *PowerPowerFactorValueWithUnit` + +NewPowerPowerFactorValueWithUnitWithDefaults instantiates a new PowerPowerFactorValueWithUnit 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 + +### GetUnit + +`func (o *PowerPowerFactorValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerPowerFactorValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerPowerFactorValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerPowerFactorValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPowerFactorValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPowerFactorValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerRealPowerValueWithUnit.md b/services/smartview/docs/PowerRealPowerValueWithUnit.md new file mode 100644 index 00000000..fb13b0ef --- /dev/null +++ b/services/smartview/docs/PowerRealPowerValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerRealPowerValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | RealPower reading unit | +**Value** | **string** | RealPower reading value | + +## Methods + +### NewPowerRealPowerValueWithUnit + +`func NewPowerRealPowerValueWithUnit(unit string, value string, ) *PowerRealPowerValueWithUnit` + +NewPowerRealPowerValueWithUnit instantiates a new PowerRealPowerValueWithUnit 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 + +### NewPowerRealPowerValueWithUnitWithDefaults + +`func NewPowerRealPowerValueWithUnitWithDefaults() *PowerRealPowerValueWithUnit` + +NewPowerRealPowerValueWithUnitWithDefaults instantiates a new PowerRealPowerValueWithUnit 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 + +### GetUnit + +`func (o *PowerRealPowerValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerRealPowerValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerRealPowerValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerRealPowerValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerRealPowerValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerRealPowerValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerSoldCurrentValueWithUnit.md b/services/smartview/docs/PowerSoldCurrentValueWithUnit.md new file mode 100644 index 00000000..ee3d24b6 --- /dev/null +++ b/services/smartview/docs/PowerSoldCurrentValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerSoldCurrentValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | SoldCurrent reading unit | +**Value** | **string** | SoldCurrent reading value | + +## Methods + +### NewPowerSoldCurrentValueWithUnit + +`func NewPowerSoldCurrentValueWithUnit(unit string, value string, ) *PowerSoldCurrentValueWithUnit` + +NewPowerSoldCurrentValueWithUnit instantiates a new PowerSoldCurrentValueWithUnit 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 + +### NewPowerSoldCurrentValueWithUnitWithDefaults + +`func NewPowerSoldCurrentValueWithUnitWithDefaults() *PowerSoldCurrentValueWithUnit` + +NewPowerSoldCurrentValueWithUnitWithDefaults instantiates a new PowerSoldCurrentValueWithUnit 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 + +### GetUnit + +`func (o *PowerSoldCurrentValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerSoldCurrentValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerSoldCurrentValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerSoldCurrentValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerSoldCurrentValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerSoldCurrentValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerSoldPowerValueWithUnit.md b/services/smartview/docs/PowerSoldPowerValueWithUnit.md new file mode 100644 index 00000000..fc2350b7 --- /dev/null +++ b/services/smartview/docs/PowerSoldPowerValueWithUnit.md @@ -0,0 +1,72 @@ +# PowerSoldPowerValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **string** | SoldPower reading unit | +**Value** | **string** | SoldPower reading value | + +## Methods + +### NewPowerSoldPowerValueWithUnit + +`func NewPowerSoldPowerValueWithUnit(unit string, value string, ) *PowerSoldPowerValueWithUnit` + +NewPowerSoldPowerValueWithUnit instantiates a new PowerSoldPowerValueWithUnit 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 + +### NewPowerSoldPowerValueWithUnitWithDefaults + +`func NewPowerSoldPowerValueWithUnitWithDefaults() *PowerSoldPowerValueWithUnit` + +NewPowerSoldPowerValueWithUnitWithDefaults instantiates a new PowerSoldPowerValueWithUnit 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 + +### GetUnit + +`func (o *PowerSoldPowerValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *PowerSoldPowerValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *PowerSoldPowerValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *PowerSoldPowerValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerSoldPowerValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerSoldPowerValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/PowerV1CurrentGetLevelTypeParameter.md b/services/smartview/docs/PowerV1CurrentGetLevelTypeParameter.md new file mode 100644 index 00000000..3f04c1c6 --- /dev/null +++ b/services/smartview/docs/PowerV1CurrentGetLevelTypeParameter.md @@ -0,0 +1,17 @@ +# PowerV1CurrentGetLevelTypeParameter + +## Enum + + +* `IBX` (value: `"ibx"`) + +* `CAGE` (value: `"cage"`) + +* `CABINET` (value: `"cabinet"`) + +* `CIRCUIT` (value: `"circuit"`) + + +[[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/services/smartview/docs/RecipientsArray.md b/services/smartview/docs/RecipientsArray.md new file mode 100644 index 00000000..cb73eef0 --- /dev/null +++ b/services/smartview/docs/RecipientsArray.md @@ -0,0 +1,264 @@ +# RecipientsArray + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **bool** | | [optional] +**EmailAddress** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**MobilePhoneCode** | Pointer to **string** | | [optional] +**MobilePhoneNumber** | Pointer to **string** | | [optional] +**Self** | Pointer to **bool** | | [optional] +**Sms** | Pointer to **bool** | | [optional] +**Voice** | Pointer to **bool** | | [optional] + +## Methods + +### NewRecipientsArray + +`func NewRecipientsArray() *RecipientsArray` + +NewRecipientsArray instantiates a new RecipientsArray 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 + +### NewRecipientsArrayWithDefaults + +`func NewRecipientsArrayWithDefaults() *RecipientsArray` + +NewRecipientsArrayWithDefaults instantiates a new RecipientsArray 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 + +### GetEmail + +`func (o *RecipientsArray) GetEmail() bool` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *RecipientsArray) GetEmailOk() (*bool, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *RecipientsArray) SetEmail(v bool)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *RecipientsArray) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetEmailAddress + +`func (o *RecipientsArray) GetEmailAddress() string` + +GetEmailAddress returns the EmailAddress field if non-nil, zero value otherwise. + +### GetEmailAddressOk + +`func (o *RecipientsArray) GetEmailAddressOk() (*string, bool)` + +GetEmailAddressOk returns a tuple with the EmailAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailAddress + +`func (o *RecipientsArray) SetEmailAddress(v string)` + +SetEmailAddress sets EmailAddress field to given value. + +### HasEmailAddress + +`func (o *RecipientsArray) HasEmailAddress() bool` + +HasEmailAddress returns a boolean if a field has been set. + +### GetFirstName + +`func (o *RecipientsArray) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *RecipientsArray) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *RecipientsArray) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *RecipientsArray) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *RecipientsArray) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *RecipientsArray) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *RecipientsArray) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *RecipientsArray) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetMobilePhoneCode + +`func (o *RecipientsArray) GetMobilePhoneCode() string` + +GetMobilePhoneCode returns the MobilePhoneCode field if non-nil, zero value otherwise. + +### GetMobilePhoneCodeOk + +`func (o *RecipientsArray) GetMobilePhoneCodeOk() (*string, bool)` + +GetMobilePhoneCodeOk returns a tuple with the MobilePhoneCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMobilePhoneCode + +`func (o *RecipientsArray) SetMobilePhoneCode(v string)` + +SetMobilePhoneCode sets MobilePhoneCode field to given value. + +### HasMobilePhoneCode + +`func (o *RecipientsArray) HasMobilePhoneCode() bool` + +HasMobilePhoneCode returns a boolean if a field has been set. + +### GetMobilePhoneNumber + +`func (o *RecipientsArray) GetMobilePhoneNumber() string` + +GetMobilePhoneNumber returns the MobilePhoneNumber field if non-nil, zero value otherwise. + +### GetMobilePhoneNumberOk + +`func (o *RecipientsArray) GetMobilePhoneNumberOk() (*string, bool)` + +GetMobilePhoneNumberOk returns a tuple with the MobilePhoneNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMobilePhoneNumber + +`func (o *RecipientsArray) SetMobilePhoneNumber(v string)` + +SetMobilePhoneNumber sets MobilePhoneNumber field to given value. + +### HasMobilePhoneNumber + +`func (o *RecipientsArray) HasMobilePhoneNumber() bool` + +HasMobilePhoneNumber returns a boolean if a field has been set. + +### GetSelf + +`func (o *RecipientsArray) GetSelf() bool` + +GetSelf returns the Self field if non-nil, zero value otherwise. + +### GetSelfOk + +`func (o *RecipientsArray) GetSelfOk() (*bool, bool)` + +GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelf + +`func (o *RecipientsArray) SetSelf(v bool)` + +SetSelf sets Self field to given value. + +### HasSelf + +`func (o *RecipientsArray) HasSelf() bool` + +HasSelf returns a boolean if a field has been set. + +### GetSms + +`func (o *RecipientsArray) GetSms() bool` + +GetSms returns the Sms field if non-nil, zero value otherwise. + +### GetSmsOk + +`func (o *RecipientsArray) GetSmsOk() (*bool, bool)` + +GetSmsOk returns a tuple with the Sms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSms + +`func (o *RecipientsArray) SetSms(v bool)` + +SetSms sets Sms field to given value. + +### HasSms + +`func (o *RecipientsArray) HasSms() bool` + +HasSms returns a boolean if a field has been set. + +### GetVoice + +`func (o *RecipientsArray) GetVoice() bool` + +GetVoice returns the Voice field if non-nil, zero value otherwise. + +### GetVoiceOk + +`func (o *RecipientsArray) GetVoiceOk() (*bool, bool)` + +GetVoiceOk returns a tuple with the Voice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoice + +`func (o *RecipientsArray) SetVoice(v bool)` + +SetVoice sets Voice field to given value. + +### HasVoice + +`func (o *RecipientsArray) HasVoice() bool` + +HasVoice returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/SensorReading.md b/services/smartview/docs/SensorReading.md new file mode 100644 index 00000000..56770c04 --- /dev/null +++ b/services/smartview/docs/SensorReading.md @@ -0,0 +1,145 @@ +# SensorReading + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Humidity** | Pointer to [**ValueWithUnit**](ValueWithUnit.md) | | [optional] +**Ibx** | **string** | The ibx identifier where the sensor is placed. | +**SensorId** | **string** | The sensor identifier. | +**Temperature** | Pointer to [**ValueWithUnit**](ValueWithUnit.md) | | [optional] +**ZoneId** | **string** | The zone where the sensor is placed. | + +## Methods + +### NewSensorReading + +`func NewSensorReading(ibx string, sensorId string, zoneId string, ) *SensorReading` + +NewSensorReading instantiates a new SensorReading 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 + +### NewSensorReadingWithDefaults + +`func NewSensorReadingWithDefaults() *SensorReading` + +NewSensorReadingWithDefaults instantiates a new SensorReading 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 + +### GetHumidity + +`func (o *SensorReading) GetHumidity() ValueWithUnit` + +GetHumidity returns the Humidity field if non-nil, zero value otherwise. + +### GetHumidityOk + +`func (o *SensorReading) GetHumidityOk() (*ValueWithUnit, bool)` + +GetHumidityOk returns a tuple with the Humidity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHumidity + +`func (o *SensorReading) SetHumidity(v ValueWithUnit)` + +SetHumidity sets Humidity field to given value. + +### HasHumidity + +`func (o *SensorReading) HasHumidity() bool` + +HasHumidity returns a boolean if a field has been set. + +### GetIbx + +`func (o *SensorReading) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *SensorReading) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *SensorReading) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetSensorId + +`func (o *SensorReading) GetSensorId() string` + +GetSensorId returns the SensorId field if non-nil, zero value otherwise. + +### GetSensorIdOk + +`func (o *SensorReading) GetSensorIdOk() (*string, bool)` + +GetSensorIdOk returns a tuple with the SensorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSensorId + +`func (o *SensorReading) SetSensorId(v string)` + +SetSensorId sets SensorId field to given value. + + +### GetTemperature + +`func (o *SensorReading) GetTemperature() ValueWithUnit` + +GetTemperature returns the Temperature field if non-nil, zero value otherwise. + +### GetTemperatureOk + +`func (o *SensorReading) GetTemperatureOk() (*ValueWithUnit, bool)` + +GetTemperatureOk returns a tuple with the Temperature field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemperature + +`func (o *SensorReading) SetTemperature(v ValueWithUnit)` + +SetTemperature sets Temperature field to given value. + +### HasTemperature + +`func (o *SensorReading) HasTemperature() bool` + +HasTemperature returns a boolean if a field has been set. + +### GetZoneId + +`func (o *SensorReading) GetZoneId() string` + +GetZoneId returns the ZoneId field if non-nil, zero value otherwise. + +### GetZoneIdOk + +`func (o *SensorReading) GetZoneIdOk() (*string, bool)` + +GetZoneIdOk returns a tuple with the ZoneId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZoneId + +`func (o *SensorReading) SetZoneId(v string)` + +SetZoneId sets ZoneId 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/services/smartview/docs/SensorReadingsResponse.md b/services/smartview/docs/SensorReadingsResponse.md new file mode 100644 index 00000000..de3fea2c --- /dev/null +++ b/services/smartview/docs/SensorReadingsResponse.md @@ -0,0 +1,72 @@ +# SensorReadingsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]SensorReading**](SensorReading.md) | List of data objects | +**Pagination** | [**Pagination**](Pagination.md) | | + +## Methods + +### NewSensorReadingsResponse + +`func NewSensorReadingsResponse(data []SensorReading, pagination Pagination, ) *SensorReadingsResponse` + +NewSensorReadingsResponse instantiates a new SensorReadingsResponse 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 + +### NewSensorReadingsResponseWithDefaults + +`func NewSensorReadingsResponseWithDefaults() *SensorReadingsResponse` + +NewSensorReadingsResponseWithDefaults instantiates a new SensorReadingsResponse 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 *SensorReadingsResponse) GetData() []SensorReading` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *SensorReadingsResponse) GetDataOk() (*[]SensorReading, 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 *SensorReadingsResponse) SetData(v []SensorReading)` + +SetData sets Data field to given value. + + +### GetPagination + +`func (o *SensorReadingsResponse) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *SensorReadingsResponse) GetPaginationOk() (*Pagination, 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 *SensorReadingsResponse) SetPagination(v Pagination)` + +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/services/smartview/docs/SmartViewAssetsApi.md b/services/smartview/docs/SmartViewAssetsApi.md new file mode 100644 index 00000000..5353a6fd --- /dev/null +++ b/services/smartview/docs/SmartViewAssetsApi.md @@ -0,0 +1,596 @@ +# \SmartViewAssetsApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetAffectedAsset**](SmartViewAssetsApi.md#GetAffectedAsset) | **Get** /smartview/v1/asset/tagpoint/affected-assets | get affected customers assets hierarchy +[**GetAsset**](SmartViewAssetsApi.md#GetAsset) | **Get** /smartview/v1/asset/list | get assets list information +[**GetAssetDetails**](SmartViewAssetsApi.md#GetAssetDetails) | **Get** /smartview/v1/asset/details | get details for an asset. +[**GetCurrentTagPoint**](SmartViewAssetsApi.md#GetCurrentTagPoint) | **Get** /smartview/v1/asset/tagpoint/current | obtain latest tag point data +[**GetTagpointTrending**](SmartViewAssetsApi.md#GetTagpointTrending) | **Get** /smartview/v1/asset/tagpoint/trending | obtain trending tag point data +[**Mixin4**](SmartViewAssetsApi.md#Mixin4) | **Post** /smartview/v1/asset/details | get asset details +[**Mixin4_0**](SmartViewAssetsApi.md#Mixin4_0) | **Post** /smartview/v1/asset/tagpoint/current | get current tag points data +[**SearchAsset**](SmartViewAssetsApi.md#SearchAsset) | **Get** /smartview/v1/asset/search | Search for Assets matching identifiers + + + +## GetAffectedAsset + +> HierarchyNode GetAffectedAsset(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).AssetId(assetId).Classification(classification).Execute() + +get affected customers assets hierarchy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | customer account number + ibx := "ibx_example" // string | ibx code + assetId := "assetId_example" // string | asset id + classification := openapiclient.getAsset_classification_parameter("Electrical") // GetAssetClassificationParameter | asset classification(Electrical, Mechanical) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.GetAffectedAsset(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).AssetId(assetId).Classification(classification).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.GetAffectedAsset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAffectedAsset`: HierarchyNode + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.GetAffectedAsset`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAffectedAssetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | customer account number | + **ibx** | **string** | ibx code | + **assetId** | **string** | asset id | + **classification** | [**GetAssetClassificationParameter**](GetAssetClassificationParameter.md) | asset classification(Electrical, Mechanical) | + +### Return type + +[**HierarchyNode**](HierarchyNode.md) + +### Authorization + +No authorization required + +### 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) + + +## GetAsset + +> AssetsList GetAsset(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Classification(classification).Cages(cages).Execute() + +get assets list information + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | customer account number + ibx := "ibx_example" // string | ibx code + classification := openapiclient.getAsset_classification_parameter("Electrical") // GetAssetClassificationParameter | asset classification (Electrical, Mechanical) + cages := []string{"Inner_example"} // []string | cage unique space id to be used to filter the assets list assumed to be all cage unique space id if no value is sent. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.GetAsset(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Classification(classification).Cages(cages).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.GetAsset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAsset`: AssetsList + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.GetAsset`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAssetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | customer account number | + **ibx** | **string** | ibx code | + **classification** | [**GetAssetClassificationParameter**](GetAssetClassificationParameter.md) | asset classification (Electrical, Mechanical) | + **cages** | **[]string** | cage unique space id to be used to filter the assets list assumed to be all cage unique space id if no value is sent. | + +### Return type + +[**AssetsList**](AssetsList.md) + +### Authorization + +No authorization required + +### 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) + + +## GetAssetDetails + +> AssetDetailsGetResponse GetAssetDetails(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Classification(classification).AssetId(assetId).Execute() + +get details for an asset. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | customer account number + ibx := "ibx_example" // string | ibx code + classification := "classification_example" // string | asset classification (Electrical, Mechanical) + assetId := "assetId_example" // string | asset id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.GetAssetDetails(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Classification(classification).AssetId(assetId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.GetAssetDetails``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAssetDetails`: AssetDetailsGetResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.GetAssetDetails`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAssetDetailsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | customer account number | + **ibx** | **string** | ibx code | + **classification** | **string** | asset classification (Electrical, Mechanical) | + **assetId** | **string** | asset id | + +### Return type + +[**AssetDetailsGetResponse**](AssetDetailsGetResponse.md) + +### Authorization + +No authorization required + +### 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) + + +## GetCurrentTagPoint + +> TagPointData GetCurrentTagPoint(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Tagid(tagid).Execute() + +obtain latest tag point data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | customer account number + ibx := "ibx_example" // string | ibx code + tagid := "tagid_example" // string | tag id is the unique identifier for the tag point + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.GetCurrentTagPoint(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Tagid(tagid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.GetCurrentTagPoint``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetCurrentTagPoint`: TagPointData + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.GetCurrentTagPoint`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetCurrentTagPointRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | customer account number | + **ibx** | **string** | ibx code | + **tagid** | **string** | tag id is the unique identifier for the tag point | + +### Return type + +[**TagPointData**](TagPointData.md) + +### Authorization + +No authorization required + +### 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) + + +## GetTagpointTrending + +> TagPointTrendingResponse GetTagpointTrending(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Tagid(tagid).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + +obtain trending tag point data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | customer account number + ibx := "ibx_example" // string | ibx code + tagid := "tagid_example" // string | tag id is the unique identifier for the tag point + interval := "interval_example" // string | tag point data interval (1h, 1d, reading) + fromDate := int32(56) // int32 | from date UTC time (1494345600000) + toDate := int32(56) // int32 | to date UTC time (1494432000000) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.GetTagpointTrending(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).Tagid(tagid).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.GetTagpointTrending``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTagpointTrending`: TagPointTrendingResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.GetTagpointTrending`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTagpointTrendingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | customer account number | + **ibx** | **string** | ibx code | + **tagid** | **string** | tag id is the unique identifier for the tag point | + **interval** | **string** | tag point data interval (1h, 1d, reading) | + **fromDate** | **int32** | from date UTC time (1494345600000) | + **toDate** | **int32** | to date UTC time (1494432000000) | + +### Return type + +[**TagPointTrendingResponse**](TagPointTrendingResponse.md) + +### Authorization + +No authorization required + +### 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) + + +## Mixin4 + +> AssetDetailsResponse Mixin4(ctx).Authorization(authorization).Payload(payload).Execute() + +get asset details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + payload := *openapiclient.NewAssetDetailsRequest() // AssetDetailsRequest | request schema (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.Mixin4(context.Background()).Authorization(authorization).Payload(payload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.Mixin4``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin4`: AssetDetailsResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.Mixin4`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin4Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **payload** | [**AssetDetailsRequest**](AssetDetailsRequest.md) | request schema | + +### Return type + +[**AssetDetailsResponse**](AssetDetailsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Mixin4_0 + +> TagPointData Mixin4_0(ctx).Authorization(authorization).Payload(payload).Execute() + +get current tag points data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + payload := *openapiclient.NewCurrentTagPointRequest() // CurrentTagPointRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.Mixin4_0(context.Background()).Authorization(authorization).Payload(payload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.Mixin4_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin4_0`: TagPointData + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.Mixin4_0`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin4_1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **payload** | [**CurrentTagPointRequest**](CurrentTagPointRequest.md) | | + +### Return type + +[**TagPointData**](TagPointData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## SearchAsset + +> Assets SearchAsset(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).SearchString(searchString).Execute() + +Search for Assets matching identifiers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | Customer Account Number + ibx := "ibx_example" // string | IBX Code + searchString := "searchString_example" // string | Search String + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewAssetsApi.SearchAsset(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).SearchString(searchString).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.SearchAsset``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SearchAsset`: Assets + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.SearchAsset`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiSearchAssetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | Customer Account Number | + **ibx** | **string** | IBX Code | + **searchString** | **string** | Search String | + +### Return type + +[**Assets**](Assets.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/SmartViewEnvironmentApi.md b/services/smartview/docs/SmartViewEnvironmentApi.md new file mode 100644 index 00000000..32a8be37 --- /dev/null +++ b/services/smartview/docs/SmartViewEnvironmentApi.md @@ -0,0 +1,240 @@ +# \SmartViewEnvironmentApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Mixin1**](SmartViewEnvironmentApi.md#Mixin1) | **Get** /environment/v1/current | Get current environmental data +[**Mixin1_0**](SmartViewEnvironmentApi.md#Mixin1_0) | **Get** /environment/v1/listCurrent | Fetch list of environmental data +[**Mixin1_1**](SmartViewEnvironmentApi.md#Mixin1_1) | **Get** /environment/v1/trending | Fetch trending environmental data + + + +## Mixin1 + +> EnvironmentData Mixin1(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() + +Get current environmental data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountNo := "accountNo_example" // string | Customer Account Number + ibx := "ibx_example" // string | IBX Code + levelType := openapiclient.Mixin1_levelType_parameter("IBX") // Mixin1LevelTypeParameter | Level Type + levelValue := "levelValue_example" // string | Level Value is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor resp. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin1(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin1`: EnvironmentData + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountNo** | **string** | Customer Account Number | + **ibx** | **string** | IBX Code | + **levelType** | [**Mixin1LevelTypeParameter**](Mixin1LevelTypeParameter.md) | Level Type | + **levelValue** | **string** | Level Value is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor resp. | + +### Return type + +[**EnvironmentData**](EnvironmentData.md) + +### Authorization + +No authorization required + +### 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) + + +## Mixin1_0 + +> EnvironmentDataResponse Mixin1_0(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).Execute() + +Fetch list of environmental data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountNo := "accountNo_example" // string | Customer Account Number + ibx := "ibx_example" // string | IBX Code + levelType := openapiclient.Mixin1_levelType_parameter("IBX") // Mixin1LevelTypeParameter | Level Type + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin1_0(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin1_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin1_0`: EnvironmentDataResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin1_0`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin1_1Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountNo** | **string** | Customer Account Number | + **ibx** | **string** | IBX Code | + **levelType** | [**Mixin1LevelTypeParameter**](Mixin1LevelTypeParameter.md) | Level Type | + +### Return type + +[**EnvironmentDataResponse**](EnvironmentDataResponse.md) + +### Authorization + +No authorization required + +### 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) + + +## Mixin1_1 + +> TrendingEnvironmentData Mixin1_1(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).DataPoint(dataPoint).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + +Fetch trending environmental data + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + accountNo := "accountNo_example" // string | Customer Account Number + ibx := float32(8.14) // float32 | IBX Code + dataPoint := openapiclient.Mixin1_dataPoint_parameter("temperature") // Mixin1DataPointParameter | data point + levelType := openapiclient.Mixin1_levelType_parameter("IBX") // Mixin1LevelTypeParameter | Level Type + levelValue := "levelValue_example" // string | Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor resp. + interval := openapiclient.Mixin1_interval_parameter("reading") // Mixin1IntervalParameter | + fromDate := time.Now() // time.Time | date in long + toDate := time.Now() // time.Time | date in long + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin1_1(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).DataPoint(dataPoint).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin1_1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Mixin1_1`: TrendingEnvironmentData + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin1_1`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiMixin1_2Request struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **accountNo** | **string** | Customer Account Number | + **ibx** | **float32** | IBX Code | + **dataPoint** | [**Mixin1DataPointParameter**](Mixin1DataPointParameter.md) | data point | + **levelType** | [**Mixin1LevelTypeParameter**](Mixin1LevelTypeParameter.md) | Level Type | + **levelValue** | **string** | Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor resp. | + **interval** | [**Mixin1IntervalParameter**](Mixin1IntervalParameter.md) | | + **fromDate** | **time.Time** | date in long | + **toDate** | **time.Time** | date in long | + +### Return type + +[**TrendingEnvironmentData**](TrendingEnvironmentData.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/SmartViewEnvironmentalApi.md b/services/smartview/docs/SmartViewEnvironmentalApi.md new file mode 100644 index 00000000..e6d960b9 --- /dev/null +++ b/services/smartview/docs/SmartViewEnvironmentalApi.md @@ -0,0 +1,165 @@ +# \SmartViewEnvironmentalApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetSensorReadings**](SmartViewEnvironmentalApi.md#GetSensorReadings) | **Get** /smartview/v2/environmental/ibxs/{ibx}/sensors/readings | IBX sensors current readings +[**GetSingleSensorReadings**](SmartViewEnvironmentalApi.md#GetSingleSensorReadings) | **Get** /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings | Single sensor current value(s) + + + +## GetSensorReadings + +> SensorReadingsResponse GetSensorReadings(ctx, ibx).Authorization(authorization).Type_(type_).Zone(zone).Offset(offset).Limit(limit).Execute() + +IBX sensors current readings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + ibx := "CH2" // string | IBX where the sensor is located. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + type_ := "HUMIDITY" // string | Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included (optional) + zone := "CH2:1:06:ColoArea:1" // string | Zone name. Adding this parameter limits the query to sensors in the specified zone (optional) + offset := int32(56) // int32 | Results offset you want to retrieve (0..N) (optional) + limit := int32(56) // int32 | Number of records to retrieve per request. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewEnvironmentalApi.GetSensorReadings(context.Background(), ibx).Authorization(authorization).Type_(type_).Zone(zone).Offset(offset).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentalApi.GetSensorReadings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSensorReadings`: SensorReadingsResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentalApi.GetSensorReadings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ibx** | **string** | IBX where the sensor is located. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSensorReadingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **type_** | **string** | Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included | + **zone** | **string** | Zone name. Adding this parameter limits the query to sensors in the specified zone | + **offset** | **int32** | Results offset you want to retrieve (0..N) | + **limit** | **int32** | Number of records to retrieve per request. | + +### Return type + +[**SensorReadingsResponse**](SensorReadingsResponse.md) + +### Authorization + +No authorization required + +### 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) + + +## GetSingleSensorReadings + +> SensorReading GetSingleSensorReadings(ctx, ibx, sensorId).Authorization(authorization).Execute() + +Single sensor current value(s) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + ibx := "SV2" // string | IBX where the sensor is located. + sensorId := "CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03" // string | Id of sensor to read. + authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewEnvironmentalApi.GetSingleSensorReadings(context.Background(), ibx, sensorId).Authorization(authorization).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentalApi.GetSingleSensorReadings``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetSingleSensorReadings`: SensorReading + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentalApi.GetSingleSensorReadings`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ibx** | **string** | IBX where the sensor is located. | +**sensorId** | **string** | Id of sensor to read. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetSingleSensorReadingsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + +### Return type + +[**SensorReading**](SensorReading.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/SmartViewHierarchyAPIsApi.md b/services/smartview/docs/SmartViewHierarchyAPIsApi.md new file mode 100644 index 00000000..966fbfd4 --- /dev/null +++ b/services/smartview/docs/SmartViewHierarchyAPIsApi.md @@ -0,0 +1,154 @@ +# \SmartViewHierarchyAPIsApi + +All URIs are relative to *https://api.equinix.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetLocationHierarchy**](SmartViewHierarchyAPIsApi.md#GetLocationHierarchy) | **Get** /smartview/v1/hierarchy/location | Fetch the Location Hierarchy +[**GetPowerHierarchy**](SmartViewHierarchyAPIsApi.md#GetPowerHierarchy) | **Get** /smartview/v1/hierarchy/power | Fetch the Power Hierarchy + + + +## GetLocationHierarchy + +> []HierarchyNode GetLocationHierarchy(ctx).Authorization(authorization).AccountNo(accountNo).Authorization2(authorization2).Ibx(ibx).Execute() + +Fetch the Location Hierarchy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | Customer Account Number + authorization2 := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + ibx := "ibx_example" // string | IBX Code (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewHierarchyAPIsApi.GetLocationHierarchy(context.Background()).Authorization(authorization).AccountNo(accountNo).Authorization2(authorization2).Ibx(ibx).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewHierarchyAPIsApi.GetLocationHierarchy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetLocationHierarchy`: []HierarchyNode + fmt.Fprintf(os.Stdout, "Response from `SmartViewHierarchyAPIsApi.GetLocationHierarchy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetLocationHierarchyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | Customer Account Number | + **authorization2** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **ibx** | **string** | IBX Code | + +### Return type + +[**[]HierarchyNode**](HierarchyNode.md) + +### Authorization + +No authorization required + +### 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) + + +## GetPowerHierarchy + +> []PowerHierarchyNode GetPowerHierarchy(ctx).Authorization(authorization).AccountNo(accountNo).Authorization2(authorization2).Ibx(ibx).Execute() + +Fetch the Power Hierarchy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func main() { + authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. + accountNo := "accountNo_example" // string | Customer Account Number + authorization2 := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. + ibx := "ibx_example" // string | IBX Code (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SmartViewHierarchyAPIsApi.GetPowerHierarchy(context.Background()).Authorization(authorization).AccountNo(accountNo).Authorization2(authorization2).Ibx(ibx).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewHierarchyAPIsApi.GetPowerHierarchy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetPowerHierarchy`: []PowerHierarchyNode + fmt.Fprintf(os.Stdout, "Response from `SmartViewHierarchyAPIsApi.GetPowerHierarchy`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetPowerHierarchyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | + **accountNo** | **string** | Customer Account Number | + **authorization2** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | + **ibx** | **string** | IBX Code | + +### Return type + +[**[]PowerHierarchyNode**](PowerHierarchyNode.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/services/smartview/docs/Status.md b/services/smartview/docs/Status.md new file mode 100644 index 00000000..5e3b72db --- /dev/null +++ b/services/smartview/docs/Status.md @@ -0,0 +1,108 @@ +# Status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cause** | Pointer to **string** | root cause for error | [optional] +**Info** | Pointer to [**StatusInfo**](StatusInfo.md) | | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewStatus + +`func NewStatus() *Status` + +NewStatus instantiates a new Status 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 + +### NewStatusWithDefaults + +`func NewStatusWithDefaults() *Status` + +NewStatusWithDefaults instantiates a new Status 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 + +### GetCause + +`func (o *Status) GetCause() string` + +GetCause returns the Cause field if non-nil, zero value otherwise. + +### GetCauseOk + +`func (o *Status) GetCauseOk() (*string, bool)` + +GetCauseOk returns a tuple with the Cause field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCause + +`func (o *Status) SetCause(v string)` + +SetCause sets Cause field to given value. + +### HasCause + +`func (o *Status) HasCause() bool` + +HasCause returns a boolean if a field has been set. + +### GetInfo + +`func (o *Status) GetInfo() StatusInfo` + +GetInfo returns the Info field if non-nil, zero value otherwise. + +### GetInfoOk + +`func (o *Status) GetInfoOk() (*StatusInfo, bool)` + +GetInfoOk returns a tuple with the Info field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfo + +`func (o *Status) SetInfo(v StatusInfo)` + +SetInfo sets Info field to given value. + +### HasInfo + +`func (o *Status) HasInfo() bool` + +HasInfo returns a boolean if a field has been set. + +### GetType + +`func (o *Status) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Status) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Status) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Status) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/StatusInfo.md b/services/smartview/docs/StatusInfo.md new file mode 100644 index 00000000..a99556bf --- /dev/null +++ b/services/smartview/docs/StatusInfo.md @@ -0,0 +1,82 @@ +# StatusInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages | [optional] + +## Methods + +### NewStatusInfo + +`func NewStatusInfo() *StatusInfo` + +NewStatusInfo instantiates a new StatusInfo 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 + +### NewStatusInfoWithDefaults + +`func NewStatusInfoWithDefaults() *StatusInfo` + +NewStatusInfoWithDefaults instantiates a new StatusInfo 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 + +### GetCode + +`func (o *StatusInfo) GetCode() float32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *StatusInfo) GetCodeOk() (*float32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *StatusInfo) SetCode(v float32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *StatusInfo) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetMsg + +`func (o *StatusInfo) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *StatusInfo) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *StatusInfo) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *StatusInfo) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/SubscriptionData.md b/services/smartview/docs/SubscriptionData.md new file mode 100644 index 00000000..c0392c41 --- /dev/null +++ b/services/smartview/docs/SubscriptionData.md @@ -0,0 +1,212 @@ +# SubscriptionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlarmMessageData** | Pointer to [**[]AlarmMessageData**](AlarmMessageData.md) | alarm message data | [optional] +**AlertMessageData** | Pointer to [**[]AlertMessageData**](AlertMessageData.md) | alert message data | [optional] +**EnvironmentMessageData** | Pointer to [**[]EnvironmentMessageData**](EnvironmentMessageData.md) | environment message data | [optional] +**MeteredPowerMessageData** | Pointer to [**[]MeteredPowerMessageData**](MeteredPowerMessageData.md) | metered-power message data | [optional] +**Pagination** | Pointer to [**Pagination**](Pagination.md) | | [optional] +**PowerMessageData** | Pointer to [**[]PowerMessageData**](PowerMessageData.md) | power message data | [optional] +**TagPointMessageData** | Pointer to [**[]TagPointMessageData**](TagPointMessageData.md) | tag-point message data | [optional] + +## Methods + +### NewSubscriptionData + +`func NewSubscriptionData() *SubscriptionData` + +NewSubscriptionData instantiates a new SubscriptionData 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 + +### NewSubscriptionDataWithDefaults + +`func NewSubscriptionDataWithDefaults() *SubscriptionData` + +NewSubscriptionDataWithDefaults instantiates a new SubscriptionData 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 + +### GetAlarmMessageData + +`func (o *SubscriptionData) GetAlarmMessageData() []AlarmMessageData` + +GetAlarmMessageData returns the AlarmMessageData field if non-nil, zero value otherwise. + +### GetAlarmMessageDataOk + +`func (o *SubscriptionData) GetAlarmMessageDataOk() (*[]AlarmMessageData, bool)` + +GetAlarmMessageDataOk returns a tuple with the AlarmMessageData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlarmMessageData + +`func (o *SubscriptionData) SetAlarmMessageData(v []AlarmMessageData)` + +SetAlarmMessageData sets AlarmMessageData field to given value. + +### HasAlarmMessageData + +`func (o *SubscriptionData) HasAlarmMessageData() bool` + +HasAlarmMessageData returns a boolean if a field has been set. + +### GetAlertMessageData + +`func (o *SubscriptionData) GetAlertMessageData() []AlertMessageData` + +GetAlertMessageData returns the AlertMessageData field if non-nil, zero value otherwise. + +### GetAlertMessageDataOk + +`func (o *SubscriptionData) GetAlertMessageDataOk() (*[]AlertMessageData, bool)` + +GetAlertMessageDataOk returns a tuple with the AlertMessageData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlertMessageData + +`func (o *SubscriptionData) SetAlertMessageData(v []AlertMessageData)` + +SetAlertMessageData sets AlertMessageData field to given value. + +### HasAlertMessageData + +`func (o *SubscriptionData) HasAlertMessageData() bool` + +HasAlertMessageData returns a boolean if a field has been set. + +### GetEnvironmentMessageData + +`func (o *SubscriptionData) GetEnvironmentMessageData() []EnvironmentMessageData` + +GetEnvironmentMessageData returns the EnvironmentMessageData field if non-nil, zero value otherwise. + +### GetEnvironmentMessageDataOk + +`func (o *SubscriptionData) GetEnvironmentMessageDataOk() (*[]EnvironmentMessageData, bool)` + +GetEnvironmentMessageDataOk returns a tuple with the EnvironmentMessageData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentMessageData + +`func (o *SubscriptionData) SetEnvironmentMessageData(v []EnvironmentMessageData)` + +SetEnvironmentMessageData sets EnvironmentMessageData field to given value. + +### HasEnvironmentMessageData + +`func (o *SubscriptionData) HasEnvironmentMessageData() bool` + +HasEnvironmentMessageData returns a boolean if a field has been set. + +### GetMeteredPowerMessageData + +`func (o *SubscriptionData) GetMeteredPowerMessageData() []MeteredPowerMessageData` + +GetMeteredPowerMessageData returns the MeteredPowerMessageData field if non-nil, zero value otherwise. + +### GetMeteredPowerMessageDataOk + +`func (o *SubscriptionData) GetMeteredPowerMessageDataOk() (*[]MeteredPowerMessageData, bool)` + +GetMeteredPowerMessageDataOk returns a tuple with the MeteredPowerMessageData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMeteredPowerMessageData + +`func (o *SubscriptionData) SetMeteredPowerMessageData(v []MeteredPowerMessageData)` + +SetMeteredPowerMessageData sets MeteredPowerMessageData field to given value. + +### HasMeteredPowerMessageData + +`func (o *SubscriptionData) HasMeteredPowerMessageData() bool` + +HasMeteredPowerMessageData returns a boolean if a field has been set. + +### GetPagination + +`func (o *SubscriptionData) GetPagination() Pagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *SubscriptionData) GetPaginationOk() (*Pagination, 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 *SubscriptionData) SetPagination(v Pagination)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *SubscriptionData) HasPagination() bool` + +HasPagination returns a boolean if a field has been set. + +### GetPowerMessageData + +`func (o *SubscriptionData) GetPowerMessageData() []PowerMessageData` + +GetPowerMessageData returns the PowerMessageData field if non-nil, zero value otherwise. + +### GetPowerMessageDataOk + +`func (o *SubscriptionData) GetPowerMessageDataOk() (*[]PowerMessageData, bool)` + +GetPowerMessageDataOk returns a tuple with the PowerMessageData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerMessageData + +`func (o *SubscriptionData) SetPowerMessageData(v []PowerMessageData)` + +SetPowerMessageData sets PowerMessageData field to given value. + +### HasPowerMessageData + +`func (o *SubscriptionData) HasPowerMessageData() bool` + +HasPowerMessageData returns a boolean if a field has been set. + +### GetTagPointMessageData + +`func (o *SubscriptionData) GetTagPointMessageData() []TagPointMessageData` + +GetTagPointMessageData returns the TagPointMessageData field if non-nil, zero value otherwise. + +### GetTagPointMessageDataOk + +`func (o *SubscriptionData) GetTagPointMessageDataOk() (*[]TagPointMessageData, bool)` + +GetTagPointMessageDataOk returns a tuple with the TagPointMessageData field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagPointMessageData + +`func (o *SubscriptionData) SetTagPointMessageData(v []TagPointMessageData)` + +SetTagPointMessageData sets TagPointMessageData field to given value. + +### HasTagPointMessageData + +`func (o *SubscriptionData) HasTagPointMessageData() bool` + +HasTagPointMessageData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/SubscriptionRequest.md b/services/smartview/docs/SubscriptionRequest.md new file mode 100644 index 00000000..592cc0e6 --- /dev/null +++ b/services/smartview/docs/SubscriptionRequest.md @@ -0,0 +1,82 @@ +# SubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to [**Channel**](Channel.md) | | [optional] +**MessageType** | Pointer to [**MessageType**](MessageType.md) | | [optional] + +## Methods + +### NewSubscriptionRequest + +`func NewSubscriptionRequest() *SubscriptionRequest` + +NewSubscriptionRequest instantiates a new SubscriptionRequest 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 + +### NewSubscriptionRequestWithDefaults + +`func NewSubscriptionRequestWithDefaults() *SubscriptionRequest` + +NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest 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 + +### GetChannel + +`func (o *SubscriptionRequest) GetChannel() Channel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *SubscriptionRequest) GetChannelOk() (*Channel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *SubscriptionRequest) SetChannel(v Channel)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *SubscriptionRequest) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetMessageType + +`func (o *SubscriptionRequest) GetMessageType() MessageType` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *SubscriptionRequest) GetMessageTypeOk() (*MessageType, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *SubscriptionRequest) SetMessageType(v MessageType)` + +SetMessageType sets MessageType field to given value. + +### HasMessageType + +`func (o *SubscriptionRequest) HasMessageType() bool` + +HasMessageType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/SubscriptionResponse.md b/services/smartview/docs/SubscriptionResponse.md new file mode 100644 index 00000000..c2ca1689 --- /dev/null +++ b/services/smartview/docs/SubscriptionResponse.md @@ -0,0 +1,264 @@ +# SubscriptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to [**Channel**](Channel.md) | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**CreatedDateTime** | Pointer to **time.Time** | | [optional] +**Id** | Pointer to **string** | | [optional] +**MessageType** | Pointer to [**MessageType**](MessageType.md) | | [optional] +**OrgId** | Pointer to **string** | | [optional] +**Status** | Pointer to [**SubscriptionResponseStatus**](SubscriptionResponseStatus.md) | | [optional] +**UpdatedBy** | Pointer to **string** | | [optional] +**UpdatedDateTime** | Pointer to **time.Time** | | [optional] + +## Methods + +### NewSubscriptionResponse + +`func NewSubscriptionResponse() *SubscriptionResponse` + +NewSubscriptionResponse instantiates a new SubscriptionResponse 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 + +### NewSubscriptionResponseWithDefaults + +`func NewSubscriptionResponseWithDefaults() *SubscriptionResponse` + +NewSubscriptionResponseWithDefaults instantiates a new SubscriptionResponse 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 + +### GetChannel + +`func (o *SubscriptionResponse) GetChannel() Channel` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *SubscriptionResponse) GetChannelOk() (*Channel, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *SubscriptionResponse) SetChannel(v Channel)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *SubscriptionResponse) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *SubscriptionResponse) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *SubscriptionResponse) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *SubscriptionResponse) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *SubscriptionResponse) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetCreatedDateTime + +`func (o *SubscriptionResponse) GetCreatedDateTime() time.Time` + +GetCreatedDateTime returns the CreatedDateTime field if non-nil, zero value otherwise. + +### GetCreatedDateTimeOk + +`func (o *SubscriptionResponse) GetCreatedDateTimeOk() (*time.Time, bool)` + +GetCreatedDateTimeOk returns a tuple with the CreatedDateTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedDateTime + +`func (o *SubscriptionResponse) SetCreatedDateTime(v time.Time)` + +SetCreatedDateTime sets CreatedDateTime field to given value. + +### HasCreatedDateTime + +`func (o *SubscriptionResponse) HasCreatedDateTime() bool` + +HasCreatedDateTime returns a boolean if a field has been set. + +### GetId + +`func (o *SubscriptionResponse) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SubscriptionResponse) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SubscriptionResponse) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SubscriptionResponse) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetMessageType + +`func (o *SubscriptionResponse) GetMessageType() MessageType` + +GetMessageType returns the MessageType field if non-nil, zero value otherwise. + +### GetMessageTypeOk + +`func (o *SubscriptionResponse) GetMessageTypeOk() (*MessageType, bool)` + +GetMessageTypeOk returns a tuple with the MessageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessageType + +`func (o *SubscriptionResponse) SetMessageType(v MessageType)` + +SetMessageType sets MessageType field to given value. + +### HasMessageType + +`func (o *SubscriptionResponse) HasMessageType() bool` + +HasMessageType returns a boolean if a field has been set. + +### GetOrgId + +`func (o *SubscriptionResponse) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *SubscriptionResponse) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *SubscriptionResponse) SetOrgId(v string)` + +SetOrgId sets OrgId field to given value. + +### HasOrgId + +`func (o *SubscriptionResponse) HasOrgId() bool` + +HasOrgId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SubscriptionResponse) GetStatus() SubscriptionResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SubscriptionResponse) GetStatusOk() (*SubscriptionResponseStatus, 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 *SubscriptionResponse) SetStatus(v SubscriptionResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SubscriptionResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUpdatedBy + +`func (o *SubscriptionResponse) GetUpdatedBy() string` + +GetUpdatedBy returns the UpdatedBy field if non-nil, zero value otherwise. + +### GetUpdatedByOk + +`func (o *SubscriptionResponse) GetUpdatedByOk() (*string, bool)` + +GetUpdatedByOk returns a tuple with the UpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedBy + +`func (o *SubscriptionResponse) SetUpdatedBy(v string)` + +SetUpdatedBy sets UpdatedBy field to given value. + +### HasUpdatedBy + +`func (o *SubscriptionResponse) HasUpdatedBy() bool` + +HasUpdatedBy returns a boolean if a field has been set. + +### GetUpdatedDateTime + +`func (o *SubscriptionResponse) GetUpdatedDateTime() time.Time` + +GetUpdatedDateTime returns the UpdatedDateTime field if non-nil, zero value otherwise. + +### GetUpdatedDateTimeOk + +`func (o *SubscriptionResponse) GetUpdatedDateTimeOk() (*time.Time, bool)` + +GetUpdatedDateTimeOk returns a tuple with the UpdatedDateTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedDateTime + +`func (o *SubscriptionResponse) SetUpdatedDateTime(v time.Time)` + +SetUpdatedDateTime sets UpdatedDateTime field to given value. + +### HasUpdatedDateTime + +`func (o *SubscriptionResponse) HasUpdatedDateTime() bool` + +HasUpdatedDateTime returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/SubscriptionResponseStatus.md b/services/smartview/docs/SubscriptionResponseStatus.md new file mode 100644 index 00000000..a3544894 --- /dev/null +++ b/services/smartview/docs/SubscriptionResponseStatus.md @@ -0,0 +1,19 @@ +# SubscriptionResponseStatus + +## Enum + + +* `PENDING` (value: `"PENDING"`) + +* `ACTIVE` (value: `"ACTIVE"`) + +* `FAILED` (value: `"FAILED"`) + +* `DELETE_IN_PROGRESS` (value: `"DELETE_IN_PROGRESS"`) + +* `DELETED` (value: `"DELETED"`) + + +[[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/services/smartview/docs/SystemAlert.md b/services/smartview/docs/SystemAlert.md new file mode 100644 index 00000000..4ae70ea6 --- /dev/null +++ b/services/smartview/docs/SystemAlert.md @@ -0,0 +1,72 @@ +# SystemAlert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | **string** | | +**Ibx** | **[]string** | | + +## Methods + +### NewSystemAlert + +`func NewSystemAlert(accountNumber string, ibx []string, ) *SystemAlert` + +NewSystemAlert instantiates a new SystemAlert 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 + +### NewSystemAlertWithDefaults + +`func NewSystemAlertWithDefaults() *SystemAlert` + +NewSystemAlertWithDefaults instantiates a new SystemAlert 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 + +### GetAccountNumber + +`func (o *SystemAlert) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *SystemAlert) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *SystemAlert) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + + +### GetIbx + +`func (o *SystemAlert) GetIbx() []string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *SystemAlert) GetIbxOk() (*[]string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *SystemAlert) SetIbx(v []string)` + +SetIbx sets Ibx 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/services/smartview/docs/TagDetails.md b/services/smartview/docs/TagDetails.md new file mode 100644 index 00000000..30a8282c --- /dev/null +++ b/services/smartview/docs/TagDetails.md @@ -0,0 +1,77 @@ +# TagDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | tag display name | [optional] +**Id** | **string** | tag id | + +## Methods + +### NewTagDetails + +`func NewTagDetails(id string, ) *TagDetails` + +NewTagDetails instantiates a new TagDetails 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 + +### NewTagDetailsWithDefaults + +`func NewTagDetailsWithDefaults() *TagDetails` + +NewTagDetailsWithDefaults instantiates a new TagDetails 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 + +### GetDisplayName + +`func (o *TagDetails) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *TagDetails) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *TagDetails) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *TagDetails) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *TagDetails) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TagDetails) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TagDetails) SetId(v string)` + +SetId sets Id 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/services/smartview/docs/TagPoint.md b/services/smartview/docs/TagPoint.md new file mode 100644 index 00000000..4abaa978 --- /dev/null +++ b/services/smartview/docs/TagPoint.md @@ -0,0 +1,156 @@ +# TagPoint + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DataQuality** | **string** | data quality: Good | Bad | Uncertain | +**Ibx** | **string** | ibx | +**Reading** | [**TagPointValueWithUnit**](TagPointValueWithUnit.md) | | +**ReadingTime** | **string** | message reading time | +**StreamId** | **string** | unique message id | +**Tag** | [**TagDetails**](TagDetails.md) | | + +## Methods + +### NewTagPoint + +`func NewTagPoint(dataQuality string, ibx string, reading TagPointValueWithUnit, readingTime string, streamId string, tag TagDetails, ) *TagPoint` + +NewTagPoint instantiates a new TagPoint 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 + +### NewTagPointWithDefaults + +`func NewTagPointWithDefaults() *TagPoint` + +NewTagPointWithDefaults instantiates a new TagPoint 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 + +### GetDataQuality + +`func (o *TagPoint) GetDataQuality() string` + +GetDataQuality returns the DataQuality field if non-nil, zero value otherwise. + +### GetDataQualityOk + +`func (o *TagPoint) GetDataQualityOk() (*string, bool)` + +GetDataQualityOk returns a tuple with the DataQuality field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataQuality + +`func (o *TagPoint) SetDataQuality(v string)` + +SetDataQuality sets DataQuality field to given value. + + +### GetIbx + +`func (o *TagPoint) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *TagPoint) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *TagPoint) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + + +### GetReading + +`func (o *TagPoint) GetReading() TagPointValueWithUnit` + +GetReading returns the Reading field if non-nil, zero value otherwise. + +### GetReadingOk + +`func (o *TagPoint) GetReadingOk() (*TagPointValueWithUnit, bool)` + +GetReadingOk returns a tuple with the Reading field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReading + +`func (o *TagPoint) SetReading(v TagPointValueWithUnit)` + +SetReading sets Reading field to given value. + + +### GetReadingTime + +`func (o *TagPoint) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *TagPoint) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *TagPoint) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + + +### GetStreamId + +`func (o *TagPoint) GetStreamId() string` + +GetStreamId returns the StreamId field if non-nil, zero value otherwise. + +### GetStreamIdOk + +`func (o *TagPoint) GetStreamIdOk() (*string, bool)` + +GetStreamIdOk returns a tuple with the StreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStreamId + +`func (o *TagPoint) SetStreamId(v string)` + +SetStreamId sets StreamId field to given value. + + +### GetTag + +`func (o *TagPoint) GetTag() TagDetails` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *TagPoint) GetTagOk() (*TagDetails, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *TagPoint) SetTag(v TagDetails)` + +SetTag sets Tag 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/services/smartview/docs/TagPointData.md b/services/smartview/docs/TagPointData.md new file mode 100644 index 00000000..12b95615 --- /dev/null +++ b/services/smartview/docs/TagPointData.md @@ -0,0 +1,82 @@ +# TagPointData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**[]TagPointDataArrayCurrent**](TagPointDataArrayCurrent.md) | | [optional] +**Status** | Pointer to [**TagPointDataStatus**](TagPointDataStatus.md) | | [optional] + +## Methods + +### NewTagPointData + +`func NewTagPointData() *TagPointData` + +NewTagPointData instantiates a new TagPointData 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 + +### NewTagPointDataWithDefaults + +`func NewTagPointDataWithDefaults() *TagPointData` + +NewTagPointDataWithDefaults instantiates a new TagPointData 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 + +### GetPayLoad + +`func (o *TagPointData) GetPayLoad() []TagPointDataArrayCurrent` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *TagPointData) GetPayLoadOk() (*[]TagPointDataArrayCurrent, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *TagPointData) SetPayLoad(v []TagPointDataArrayCurrent)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *TagPointData) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *TagPointData) GetStatus() TagPointDataStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TagPointData) GetStatusOk() (*TagPointDataStatus, 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 *TagPointData) SetStatus(v TagPointDataStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *TagPointData) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointDataArray.md b/services/smartview/docs/TagPointDataArray.md new file mode 100644 index 00000000..9dcd0f0a --- /dev/null +++ b/services/smartview/docs/TagPointDataArray.md @@ -0,0 +1,186 @@ +# TagPointDataArray + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlarmStatus** | Pointer to **string** | Generic label for the tag point | [optional] +**ReadingTime** | Pointer to **string** | date time when the tag point value was read from the device. | [optional] +**TagDisplayName** | Pointer to **string** | Generic label for the tag point | [optional] +**TagId** | Pointer to **string** | ID for the tagPoint - Unique Identifier for the Tag Point | [optional] +**Uom** | Pointer to **string** | Unit of measure for the data value for the tag point | [optional] +**Value** | Pointer to **string** | Current data value for the tag point | [optional] + +## Methods + +### NewTagPointDataArray + +`func NewTagPointDataArray() *TagPointDataArray` + +NewTagPointDataArray instantiates a new TagPointDataArray 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 + +### NewTagPointDataArrayWithDefaults + +`func NewTagPointDataArrayWithDefaults() *TagPointDataArray` + +NewTagPointDataArrayWithDefaults instantiates a new TagPointDataArray 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 + +### GetAlarmStatus + +`func (o *TagPointDataArray) GetAlarmStatus() string` + +GetAlarmStatus returns the AlarmStatus field if non-nil, zero value otherwise. + +### GetAlarmStatusOk + +`func (o *TagPointDataArray) GetAlarmStatusOk() (*string, bool)` + +GetAlarmStatusOk returns a tuple with the AlarmStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlarmStatus + +`func (o *TagPointDataArray) SetAlarmStatus(v string)` + +SetAlarmStatus sets AlarmStatus field to given value. + +### HasAlarmStatus + +`func (o *TagPointDataArray) HasAlarmStatus() bool` + +HasAlarmStatus returns a boolean if a field has been set. + +### GetReadingTime + +`func (o *TagPointDataArray) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *TagPointDataArray) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *TagPointDataArray) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *TagPointDataArray) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetTagDisplayName + +`func (o *TagPointDataArray) GetTagDisplayName() string` + +GetTagDisplayName returns the TagDisplayName field if non-nil, zero value otherwise. + +### GetTagDisplayNameOk + +`func (o *TagPointDataArray) GetTagDisplayNameOk() (*string, bool)` + +GetTagDisplayNameOk returns a tuple with the TagDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagDisplayName + +`func (o *TagPointDataArray) SetTagDisplayName(v string)` + +SetTagDisplayName sets TagDisplayName field to given value. + +### HasTagDisplayName + +`func (o *TagPointDataArray) HasTagDisplayName() bool` + +HasTagDisplayName returns a boolean if a field has been set. + +### GetTagId + +`func (o *TagPointDataArray) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *TagPointDataArray) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *TagPointDataArray) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *TagPointDataArray) HasTagId() bool` + +HasTagId returns a boolean if a field has been set. + +### GetUom + +`func (o *TagPointDataArray) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *TagPointDataArray) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *TagPointDataArray) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *TagPointDataArray) HasUom() bool` + +HasUom returns a boolean if a field has been set. + +### GetValue + +`func (o *TagPointDataArray) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TagPointDataArray) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TagPointDataArray) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TagPointDataArray) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointDataArrayCurrent.md b/services/smartview/docs/TagPointDataArrayCurrent.md new file mode 100644 index 00000000..061d583b --- /dev/null +++ b/services/smartview/docs/TagPointDataArrayCurrent.md @@ -0,0 +1,160 @@ +# TagPointDataArrayCurrent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReadingTime** | Pointer to **string** | date time when the tag point value was read from the device. | [optional] +**TagDisplayName** | Pointer to **string** | Generic label for the tag point | [optional] +**TagId** | Pointer to **string** | ID for the tagPoint - Unique Identifier for the Tag Point | [optional] +**Uom** | Pointer to **string** | Unit of measure for the data value for the tag point | [optional] +**Value** | Pointer to **string** | Current data value for the tag point | [optional] + +## Methods + +### NewTagPointDataArrayCurrent + +`func NewTagPointDataArrayCurrent() *TagPointDataArrayCurrent` + +NewTagPointDataArrayCurrent instantiates a new TagPointDataArrayCurrent 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 + +### NewTagPointDataArrayCurrentWithDefaults + +`func NewTagPointDataArrayCurrentWithDefaults() *TagPointDataArrayCurrent` + +NewTagPointDataArrayCurrentWithDefaults instantiates a new TagPointDataArrayCurrent 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 + +### GetReadingTime + +`func (o *TagPointDataArrayCurrent) GetReadingTime() string` + +GetReadingTime returns the ReadingTime field if non-nil, zero value otherwise. + +### GetReadingTimeOk + +`func (o *TagPointDataArrayCurrent) GetReadingTimeOk() (*string, bool)` + +GetReadingTimeOk returns a tuple with the ReadingTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadingTime + +`func (o *TagPointDataArrayCurrent) SetReadingTime(v string)` + +SetReadingTime sets ReadingTime field to given value. + +### HasReadingTime + +`func (o *TagPointDataArrayCurrent) HasReadingTime() bool` + +HasReadingTime returns a boolean if a field has been set. + +### GetTagDisplayName + +`func (o *TagPointDataArrayCurrent) GetTagDisplayName() string` + +GetTagDisplayName returns the TagDisplayName field if non-nil, zero value otherwise. + +### GetTagDisplayNameOk + +`func (o *TagPointDataArrayCurrent) GetTagDisplayNameOk() (*string, bool)` + +GetTagDisplayNameOk returns a tuple with the TagDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagDisplayName + +`func (o *TagPointDataArrayCurrent) SetTagDisplayName(v string)` + +SetTagDisplayName sets TagDisplayName field to given value. + +### HasTagDisplayName + +`func (o *TagPointDataArrayCurrent) HasTagDisplayName() bool` + +HasTagDisplayName returns a boolean if a field has been set. + +### GetTagId + +`func (o *TagPointDataArrayCurrent) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *TagPointDataArrayCurrent) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *TagPointDataArrayCurrent) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *TagPointDataArrayCurrent) HasTagId() bool` + +HasTagId returns a boolean if a field has been set. + +### GetUom + +`func (o *TagPointDataArrayCurrent) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *TagPointDataArrayCurrent) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *TagPointDataArrayCurrent) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *TagPointDataArrayCurrent) HasUom() bool` + +HasUom returns a boolean if a field has been set. + +### GetValue + +`func (o *TagPointDataArrayCurrent) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TagPointDataArrayCurrent) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TagPointDataArrayCurrent) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TagPointDataArrayCurrent) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointDataStatus.md b/services/smartview/docs/TagPointDataStatus.md new file mode 100644 index 00000000..fa04b8f4 --- /dev/null +++ b/services/smartview/docs/TagPointDataStatus.md @@ -0,0 +1,108 @@ +# TagPointDataStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewTagPointDataStatus + +`func NewTagPointDataStatus() *TagPointDataStatus` + +NewTagPointDataStatus instantiates a new TagPointDataStatus 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 + +### NewTagPointDataStatusWithDefaults + +`func NewTagPointDataStatusWithDefaults() *TagPointDataStatus` + +NewTagPointDataStatusWithDefaults instantiates a new TagPointDataStatus 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 + +### GetMsg + +`func (o *TagPointDataStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *TagPointDataStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *TagPointDataStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *TagPointDataStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *TagPointDataStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *TagPointDataStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *TagPointDataStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *TagPointDataStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *TagPointDataStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagPointDataStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TagPointDataStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *TagPointDataStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointMessageData.md b/services/smartview/docs/TagPointMessageData.md new file mode 100644 index 00000000..2a63b57d --- /dev/null +++ b/services/smartview/docs/TagPointMessageData.md @@ -0,0 +1,72 @@ +# TagPointMessageData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TagPoint**](TagPoint.md) | | +**Type** | **string** | message type | [default to "tag-point"] + +## Methods + +### NewTagPointMessageData + +`func NewTagPointMessageData(data TagPoint, type_ string, ) *TagPointMessageData` + +NewTagPointMessageData instantiates a new TagPointMessageData 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 + +### NewTagPointMessageDataWithDefaults + +`func NewTagPointMessageDataWithDefaults() *TagPointMessageData` + +NewTagPointMessageDataWithDefaults instantiates a new TagPointMessageData 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 *TagPointMessageData) GetData() TagPoint` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *TagPointMessageData) GetDataOk() (*TagPoint, 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 *TagPointMessageData) SetData(v TagPoint)` + +SetData sets Data field to given value. + + +### GetType + +`func (o *TagPointMessageData) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagPointMessageData) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TagPointMessageData) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointTrendingData.md b/services/smartview/docs/TagPointTrendingData.md new file mode 100644 index 00000000..85524f84 --- /dev/null +++ b/services/smartview/docs/TagPointTrendingData.md @@ -0,0 +1,82 @@ +# TagPointTrendingData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Datetime** | Pointer to **string** | UTC time | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewTagPointTrendingData + +`func NewTagPointTrendingData() *TagPointTrendingData` + +NewTagPointTrendingData instantiates a new TagPointTrendingData 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 + +### NewTagPointTrendingDataWithDefaults + +`func NewTagPointTrendingDataWithDefaults() *TagPointTrendingData` + +NewTagPointTrendingDataWithDefaults instantiates a new TagPointTrendingData 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 + +### GetDatetime + +`func (o *TagPointTrendingData) GetDatetime() string` + +GetDatetime returns the Datetime field if non-nil, zero value otherwise. + +### GetDatetimeOk + +`func (o *TagPointTrendingData) GetDatetimeOk() (*string, bool)` + +GetDatetimeOk returns a tuple with the Datetime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatetime + +`func (o *TagPointTrendingData) SetDatetime(v string)` + +SetDatetime sets Datetime field to given value. + +### HasDatetime + +`func (o *TagPointTrendingData) HasDatetime() bool` + +HasDatetime returns a boolean if a field has been set. + +### GetValue + +`func (o *TagPointTrendingData) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TagPointTrendingData) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TagPointTrendingData) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TagPointTrendingData) HasValue() bool` + +HasValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointTrendingResponse.md b/services/smartview/docs/TagPointTrendingResponse.md new file mode 100644 index 00000000..0c3d69de --- /dev/null +++ b/services/smartview/docs/TagPointTrendingResponse.md @@ -0,0 +1,82 @@ +# TagPointTrendingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**TagPointTrendingResponsePayLoad**](TagPointTrendingResponsePayLoad.md) | | [optional] +**Status** | Pointer to [**TagPointTrendingResponseStatus**](TagPointTrendingResponseStatus.md) | | [optional] + +## Methods + +### NewTagPointTrendingResponse + +`func NewTagPointTrendingResponse() *TagPointTrendingResponse` + +NewTagPointTrendingResponse instantiates a new TagPointTrendingResponse 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 + +### NewTagPointTrendingResponseWithDefaults + +`func NewTagPointTrendingResponseWithDefaults() *TagPointTrendingResponse` + +NewTagPointTrendingResponseWithDefaults instantiates a new TagPointTrendingResponse 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 + +### GetPayLoad + +`func (o *TagPointTrendingResponse) GetPayLoad() TagPointTrendingResponsePayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *TagPointTrendingResponse) GetPayLoadOk() (*TagPointTrendingResponsePayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *TagPointTrendingResponse) SetPayLoad(v TagPointTrendingResponsePayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *TagPointTrendingResponse) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *TagPointTrendingResponse) GetStatus() TagPointTrendingResponseStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TagPointTrendingResponse) GetStatusOk() (*TagPointTrendingResponseStatus, 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 *TagPointTrendingResponse) SetStatus(v TagPointTrendingResponseStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *TagPointTrendingResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointTrendingResponsePayLoad.md b/services/smartview/docs/TagPointTrendingResponsePayLoad.md new file mode 100644 index 00000000..3233bc37 --- /dev/null +++ b/services/smartview/docs/TagPointTrendingResponsePayLoad.md @@ -0,0 +1,238 @@ +# TagPointTrendingResponsePayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | | [optional] +**Data** | Pointer to [**[]TagPointTrendingData**](TagPointTrendingData.md) | trend data of tag | [optional] +**DataType** | Pointer to **string** | data type of trend data vlaues | [optional] +**Ibx** | Pointer to **string** | | [optional] +**Interval** | Pointer to [**TagPointTrendingResponsePayLoadInterval**](TagPointTrendingResponsePayLoadInterval.md) | | [optional] +**TagDisplayName** | Pointer to **string** | the | [optional] +**TagId** | Pointer to **string** | the unique identifiers for the tag point ids for which the trending point is requested. | [optional] +**Uom** | Pointer to **string** | | [optional] + +## Methods + +### NewTagPointTrendingResponsePayLoad + +`func NewTagPointTrendingResponsePayLoad() *TagPointTrendingResponsePayLoad` + +NewTagPointTrendingResponsePayLoad instantiates a new TagPointTrendingResponsePayLoad 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 + +### NewTagPointTrendingResponsePayLoadWithDefaults + +`func NewTagPointTrendingResponsePayLoadWithDefaults() *TagPointTrendingResponsePayLoad` + +NewTagPointTrendingResponsePayLoadWithDefaults instantiates a new TagPointTrendingResponsePayLoad 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 + +### GetAccountNumber + +`func (o *TagPointTrendingResponsePayLoad) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *TagPointTrendingResponsePayLoad) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *TagPointTrendingResponsePayLoad) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *TagPointTrendingResponsePayLoad) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetData + +`func (o *TagPointTrendingResponsePayLoad) GetData() []TagPointTrendingData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *TagPointTrendingResponsePayLoad) GetDataOk() (*[]TagPointTrendingData, 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 *TagPointTrendingResponsePayLoad) SetData(v []TagPointTrendingData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *TagPointTrendingResponsePayLoad) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetDataType + +`func (o *TagPointTrendingResponsePayLoad) GetDataType() string` + +GetDataType returns the DataType field if non-nil, zero value otherwise. + +### GetDataTypeOk + +`func (o *TagPointTrendingResponsePayLoad) GetDataTypeOk() (*string, bool)` + +GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataType + +`func (o *TagPointTrendingResponsePayLoad) SetDataType(v string)` + +SetDataType sets DataType field to given value. + +### HasDataType + +`func (o *TagPointTrendingResponsePayLoad) HasDataType() bool` + +HasDataType returns a boolean if a field has been set. + +### GetIbx + +`func (o *TagPointTrendingResponsePayLoad) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *TagPointTrendingResponsePayLoad) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *TagPointTrendingResponsePayLoad) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *TagPointTrendingResponsePayLoad) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetInterval + +`func (o *TagPointTrendingResponsePayLoad) GetInterval() TagPointTrendingResponsePayLoadInterval` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *TagPointTrendingResponsePayLoad) GetIntervalOk() (*TagPointTrendingResponsePayLoadInterval, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *TagPointTrendingResponsePayLoad) SetInterval(v TagPointTrendingResponsePayLoadInterval)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *TagPointTrendingResponsePayLoad) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetTagDisplayName + +`func (o *TagPointTrendingResponsePayLoad) GetTagDisplayName() string` + +GetTagDisplayName returns the TagDisplayName field if non-nil, zero value otherwise. + +### GetTagDisplayNameOk + +`func (o *TagPointTrendingResponsePayLoad) GetTagDisplayNameOk() (*string, bool)` + +GetTagDisplayNameOk returns a tuple with the TagDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagDisplayName + +`func (o *TagPointTrendingResponsePayLoad) SetTagDisplayName(v string)` + +SetTagDisplayName sets TagDisplayName field to given value. + +### HasTagDisplayName + +`func (o *TagPointTrendingResponsePayLoad) HasTagDisplayName() bool` + +HasTagDisplayName returns a boolean if a field has been set. + +### GetTagId + +`func (o *TagPointTrendingResponsePayLoad) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *TagPointTrendingResponsePayLoad) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *TagPointTrendingResponsePayLoad) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *TagPointTrendingResponsePayLoad) HasTagId() bool` + +HasTagId returns a boolean if a field has been set. + +### GetUom + +`func (o *TagPointTrendingResponsePayLoad) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *TagPointTrendingResponsePayLoad) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *TagPointTrendingResponsePayLoad) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *TagPointTrendingResponsePayLoad) HasUom() bool` + +HasUom returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointTrendingResponsePayLoadInterval.md b/services/smartview/docs/TagPointTrendingResponsePayLoadInterval.md new file mode 100644 index 00000000..523f6345 --- /dev/null +++ b/services/smartview/docs/TagPointTrendingResponsePayLoadInterval.md @@ -0,0 +1,17 @@ +# TagPointTrendingResponsePayLoadInterval + +## Enum + + +* `_5M` (value: `"5m"`) + +* `_15M` (value: `"15m"`) + +* `_1H` (value: `"1h"`) + +* `_1D` (value: `"1d"`) + + +[[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/services/smartview/docs/TagPointTrendingResponseStatus.md b/services/smartview/docs/TagPointTrendingResponseStatus.md new file mode 100644 index 00000000..ae429a5f --- /dev/null +++ b/services/smartview/docs/TagPointTrendingResponseStatus.md @@ -0,0 +1,108 @@ +# TagPointTrendingResponseStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|4000] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewTagPointTrendingResponseStatus + +`func NewTagPointTrendingResponseStatus() *TagPointTrendingResponseStatus` + +NewTagPointTrendingResponseStatus instantiates a new TagPointTrendingResponseStatus 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 + +### NewTagPointTrendingResponseStatusWithDefaults + +`func NewTagPointTrendingResponseStatusWithDefaults() *TagPointTrendingResponseStatus` + +NewTagPointTrendingResponseStatusWithDefaults instantiates a new TagPointTrendingResponseStatus 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 + +### GetMsg + +`func (o *TagPointTrendingResponseStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *TagPointTrendingResponseStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *TagPointTrendingResponseStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *TagPointTrendingResponseStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *TagPointTrendingResponseStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *TagPointTrendingResponseStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *TagPointTrendingResponseStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *TagPointTrendingResponseStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *TagPointTrendingResponseStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagPointTrendingResponseStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TagPointTrendingResponseStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *TagPointTrendingResponseStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TagPointValueWithUnit.md b/services/smartview/docs/TagPointValueWithUnit.md new file mode 100644 index 00000000..f413e790 --- /dev/null +++ b/services/smartview/docs/TagPointValueWithUnit.md @@ -0,0 +1,77 @@ +# TagPointValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | Pointer to **string** | reading unit | [optional] +**Value** | **string** | reading value | + +## Methods + +### NewTagPointValueWithUnit + +`func NewTagPointValueWithUnit(value string, ) *TagPointValueWithUnit` + +NewTagPointValueWithUnit instantiates a new TagPointValueWithUnit 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 + +### NewTagPointValueWithUnitWithDefaults + +`func NewTagPointValueWithUnitWithDefaults() *TagPointValueWithUnit` + +NewTagPointValueWithUnitWithDefaults instantiates a new TagPointValueWithUnit 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 + +### GetUnit + +`func (o *TagPointValueWithUnit) GetUnit() string` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *TagPointValueWithUnit) GetUnitOk() (*string, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *TagPointValueWithUnit) SetUnit(v string)` + +SetUnit sets Unit field to given value. + +### HasUnit + +`func (o *TagPointValueWithUnit) HasUnit() bool` + +HasUnit returns a boolean if a field has been set. + +### GetValue + +`func (o *TagPointValueWithUnit) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TagPointValueWithUnit) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TagPointValueWithUnit) SetValue(v string)` + +SetValue sets Value 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/services/smartview/docs/Template.md b/services/smartview/docs/Template.md new file mode 100644 index 00000000..52d9bca2 --- /dev/null +++ b/services/smartview/docs/Template.md @@ -0,0 +1,82 @@ +# Template + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assets** | Pointer to [**[]Asset**](Asset.md) | | [optional] +**TemplateId** | Pointer to **string** | template id - unique identifier for the template | [optional] + +## Methods + +### NewTemplate + +`func NewTemplate() *Template` + +NewTemplate instantiates a new Template 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 + +### NewTemplateWithDefaults + +`func NewTemplateWithDefaults() *Template` + +NewTemplateWithDefaults instantiates a new Template 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 + +### GetAssets + +`func (o *Template) GetAssets() []Asset` + +GetAssets returns the Assets field if non-nil, zero value otherwise. + +### GetAssetsOk + +`func (o *Template) GetAssetsOk() (*[]Asset, bool)` + +GetAssetsOk returns a tuple with the Assets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssets + +`func (o *Template) SetAssets(v []Asset)` + +SetAssets sets Assets field to given value. + +### HasAssets + +`func (o *Template) HasAssets() bool` + +HasAssets returns a boolean if a field has been set. + +### GetTemplateId + +`func (o *Template) GetTemplateId() string` + +GetTemplateId returns the TemplateId field if non-nil, zero value otherwise. + +### GetTemplateIdOk + +`func (o *Template) GetTemplateIdOk() (*string, bool)` + +GetTemplateIdOk returns a tuple with the TemplateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateId + +`func (o *Template) SetTemplateId(v string)` + +SetTemplateId sets TemplateId field to given value. + +### HasTemplateId + +`func (o *Template) HasTemplateId() bool` + +HasTemplateId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TrendingEnvironmentData.md b/services/smartview/docs/TrendingEnvironmentData.md new file mode 100644 index 00000000..ad29fd7b --- /dev/null +++ b/services/smartview/docs/TrendingEnvironmentData.md @@ -0,0 +1,56 @@ +# TrendingEnvironmentData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**TrendingEnvironmentDataPayLoad**](TrendingEnvironmentDataPayLoad.md) | | [optional] + +## Methods + +### NewTrendingEnvironmentData + +`func NewTrendingEnvironmentData() *TrendingEnvironmentData` + +NewTrendingEnvironmentData instantiates a new TrendingEnvironmentData 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 + +### NewTrendingEnvironmentDataWithDefaults + +`func NewTrendingEnvironmentDataWithDefaults() *TrendingEnvironmentData` + +NewTrendingEnvironmentDataWithDefaults instantiates a new TrendingEnvironmentData 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 + +### GetPayLoad + +`func (o *TrendingEnvironmentData) GetPayLoad() TrendingEnvironmentDataPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *TrendingEnvironmentData) GetPayLoadOk() (*TrendingEnvironmentDataPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *TrendingEnvironmentData) SetPayLoad(v TrendingEnvironmentDataPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *TrendingEnvironmentData) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TrendingEnvironmentDataPayLoad.md b/services/smartview/docs/TrendingEnvironmentDataPayLoad.md new file mode 100644 index 00000000..81d5187c --- /dev/null +++ b/services/smartview/docs/TrendingEnvironmentDataPayLoad.md @@ -0,0 +1,186 @@ +# TrendingEnvironmentDataPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNo** | Pointer to **string** | customer account num | [optional] +**Datapoint** | Pointer to **string** | data point for which the timeseries data is fetched | [optional] +**Ibx** | Pointer to **string** | ibx code | [optional] +**Interval** | Pointer to **string** | interval | [optional] +**Series** | Pointer to [**[]DataValue**](DataValue.md) | Time series data for the data point | [optional] +**Uom** | Pointer to **string** | unit of measure used for the datapoint | [optional] + +## Methods + +### NewTrendingEnvironmentDataPayLoad + +`func NewTrendingEnvironmentDataPayLoad() *TrendingEnvironmentDataPayLoad` + +NewTrendingEnvironmentDataPayLoad instantiates a new TrendingEnvironmentDataPayLoad 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 + +### NewTrendingEnvironmentDataPayLoadWithDefaults + +`func NewTrendingEnvironmentDataPayLoadWithDefaults() *TrendingEnvironmentDataPayLoad` + +NewTrendingEnvironmentDataPayLoadWithDefaults instantiates a new TrendingEnvironmentDataPayLoad 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 + +### GetAccountNo + +`func (o *TrendingEnvironmentDataPayLoad) GetAccountNo() string` + +GetAccountNo returns the AccountNo field if non-nil, zero value otherwise. + +### GetAccountNoOk + +`func (o *TrendingEnvironmentDataPayLoad) GetAccountNoOk() (*string, bool)` + +GetAccountNoOk returns a tuple with the AccountNo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNo + +`func (o *TrendingEnvironmentDataPayLoad) SetAccountNo(v string)` + +SetAccountNo sets AccountNo field to given value. + +### HasAccountNo + +`func (o *TrendingEnvironmentDataPayLoad) HasAccountNo() bool` + +HasAccountNo returns a boolean if a field has been set. + +### GetDatapoint + +`func (o *TrendingEnvironmentDataPayLoad) GetDatapoint() string` + +GetDatapoint returns the Datapoint field if non-nil, zero value otherwise. + +### GetDatapointOk + +`func (o *TrendingEnvironmentDataPayLoad) GetDatapointOk() (*string, bool)` + +GetDatapointOk returns a tuple with the Datapoint field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatapoint + +`func (o *TrendingEnvironmentDataPayLoad) SetDatapoint(v string)` + +SetDatapoint sets Datapoint field to given value. + +### HasDatapoint + +`func (o *TrendingEnvironmentDataPayLoad) HasDatapoint() bool` + +HasDatapoint returns a boolean if a field has been set. + +### GetIbx + +`func (o *TrendingEnvironmentDataPayLoad) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *TrendingEnvironmentDataPayLoad) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *TrendingEnvironmentDataPayLoad) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *TrendingEnvironmentDataPayLoad) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetInterval + +`func (o *TrendingEnvironmentDataPayLoad) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *TrendingEnvironmentDataPayLoad) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *TrendingEnvironmentDataPayLoad) SetInterval(v string)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *TrendingEnvironmentDataPayLoad) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetSeries + +`func (o *TrendingEnvironmentDataPayLoad) GetSeries() []DataValue` + +GetSeries returns the Series field if non-nil, zero value otherwise. + +### GetSeriesOk + +`func (o *TrendingEnvironmentDataPayLoad) GetSeriesOk() (*[]DataValue, bool)` + +GetSeriesOk returns a tuple with the Series field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSeries + +`func (o *TrendingEnvironmentDataPayLoad) SetSeries(v []DataValue)` + +SetSeries sets Series field to given value. + +### HasSeries + +`func (o *TrendingEnvironmentDataPayLoad) HasSeries() bool` + +HasSeries returns a boolean if a field has been set. + +### GetUom + +`func (o *TrendingEnvironmentDataPayLoad) GetUom() string` + +GetUom returns the Uom field if non-nil, zero value otherwise. + +### GetUomOk + +`func (o *TrendingEnvironmentDataPayLoad) GetUomOk() (*string, bool)` + +GetUomOk returns a tuple with the Uom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUom + +`func (o *TrendingEnvironmentDataPayLoad) SetUom(v string)` + +SetUom sets Uom field to given value. + +### HasUom + +`func (o *TrendingEnvironmentDataPayLoad) HasUom() bool` + +HasUom returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TrendingPowerData.md b/services/smartview/docs/TrendingPowerData.md new file mode 100644 index 00000000..9e0ec747 --- /dev/null +++ b/services/smartview/docs/TrendingPowerData.md @@ -0,0 +1,82 @@ +# TrendingPowerData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PayLoad** | Pointer to [**TrendingPowerDataPayLoad**](TrendingPowerDataPayLoad.md) | | [optional] +**Status** | Pointer to [**TrendingPowerDataStatus**](TrendingPowerDataStatus.md) | | [optional] + +## Methods + +### NewTrendingPowerData + +`func NewTrendingPowerData() *TrendingPowerData` + +NewTrendingPowerData instantiates a new TrendingPowerData 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 + +### NewTrendingPowerDataWithDefaults + +`func NewTrendingPowerDataWithDefaults() *TrendingPowerData` + +NewTrendingPowerDataWithDefaults instantiates a new TrendingPowerData 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 + +### GetPayLoad + +`func (o *TrendingPowerData) GetPayLoad() TrendingPowerDataPayLoad` + +GetPayLoad returns the PayLoad field if non-nil, zero value otherwise. + +### GetPayLoadOk + +`func (o *TrendingPowerData) GetPayLoadOk() (*TrendingPowerDataPayLoad, bool)` + +GetPayLoadOk returns a tuple with the PayLoad field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPayLoad + +`func (o *TrendingPowerData) SetPayLoad(v TrendingPowerDataPayLoad)` + +SetPayLoad sets PayLoad field to given value. + +### HasPayLoad + +`func (o *TrendingPowerData) HasPayLoad() bool` + +HasPayLoad returns a boolean if a field has been set. + +### GetStatus + +`func (o *TrendingPowerData) GetStatus() TrendingPowerDataStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TrendingPowerData) GetStatusOk() (*TrendingPowerDataStatus, 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 *TrendingPowerData) SetStatus(v TrendingPowerDataStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *TrendingPowerData) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TrendingPowerDataPayLoad.md b/services/smartview/docs/TrendingPowerDataPayLoad.md new file mode 100644 index 00000000..de476c8d --- /dev/null +++ b/services/smartview/docs/TrendingPowerDataPayLoad.md @@ -0,0 +1,186 @@ +# TrendingPowerDataPayLoad + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | | [optional] +**Data** | Pointer to [**[]ComparisonDataTrend**](ComparisonDataTrend.md) | | [optional] +**Ibx** | Pointer to **string** | | [optional] +**Interval** | Pointer to [**TrendingPowerDataPayLoadInterval**](TrendingPowerDataPayLoadInterval.md) | | [optional] +**LevelType** | Pointer to [**TrendingPowerDataPayLoadLevelType**](TrendingPowerDataPayLoadLevelType.md) | | [optional] +**LevelValue** | Pointer to **string** | ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp. | [optional] + +## Methods + +### NewTrendingPowerDataPayLoad + +`func NewTrendingPowerDataPayLoad() *TrendingPowerDataPayLoad` + +NewTrendingPowerDataPayLoad instantiates a new TrendingPowerDataPayLoad 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 + +### NewTrendingPowerDataPayLoadWithDefaults + +`func NewTrendingPowerDataPayLoadWithDefaults() *TrendingPowerDataPayLoad` + +NewTrendingPowerDataPayLoadWithDefaults instantiates a new TrendingPowerDataPayLoad 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 + +### GetAccountNumber + +`func (o *TrendingPowerDataPayLoad) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *TrendingPowerDataPayLoad) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *TrendingPowerDataPayLoad) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *TrendingPowerDataPayLoad) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetData + +`func (o *TrendingPowerDataPayLoad) GetData() []ComparisonDataTrend` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *TrendingPowerDataPayLoad) GetDataOk() (*[]ComparisonDataTrend, 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 *TrendingPowerDataPayLoad) SetData(v []ComparisonDataTrend)` + +SetData sets Data field to given value. + +### HasData + +`func (o *TrendingPowerDataPayLoad) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetIbx + +`func (o *TrendingPowerDataPayLoad) GetIbx() string` + +GetIbx returns the Ibx field if non-nil, zero value otherwise. + +### GetIbxOk + +`func (o *TrendingPowerDataPayLoad) GetIbxOk() (*string, bool)` + +GetIbxOk returns a tuple with the Ibx field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIbx + +`func (o *TrendingPowerDataPayLoad) SetIbx(v string)` + +SetIbx sets Ibx field to given value. + +### HasIbx + +`func (o *TrendingPowerDataPayLoad) HasIbx() bool` + +HasIbx returns a boolean if a field has been set. + +### GetInterval + +`func (o *TrendingPowerDataPayLoad) GetInterval() TrendingPowerDataPayLoadInterval` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *TrendingPowerDataPayLoad) GetIntervalOk() (*TrendingPowerDataPayLoadInterval, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *TrendingPowerDataPayLoad) SetInterval(v TrendingPowerDataPayLoadInterval)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *TrendingPowerDataPayLoad) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### GetLevelType + +`func (o *TrendingPowerDataPayLoad) GetLevelType() TrendingPowerDataPayLoadLevelType` + +GetLevelType returns the LevelType field if non-nil, zero value otherwise. + +### GetLevelTypeOk + +`func (o *TrendingPowerDataPayLoad) GetLevelTypeOk() (*TrendingPowerDataPayLoadLevelType, bool)` + +GetLevelTypeOk returns a tuple with the LevelType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelType + +`func (o *TrendingPowerDataPayLoad) SetLevelType(v TrendingPowerDataPayLoadLevelType)` + +SetLevelType sets LevelType field to given value. + +### HasLevelType + +`func (o *TrendingPowerDataPayLoad) HasLevelType() bool` + +HasLevelType returns a boolean if a field has been set. + +### GetLevelValue + +`func (o *TrendingPowerDataPayLoad) GetLevelValue() string` + +GetLevelValue returns the LevelValue field if non-nil, zero value otherwise. + +### GetLevelValueOk + +`func (o *TrendingPowerDataPayLoad) GetLevelValueOk() (*string, bool)` + +GetLevelValueOk returns a tuple with the LevelValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelValue + +`func (o *TrendingPowerDataPayLoad) SetLevelValue(v string)` + +SetLevelValue sets LevelValue field to given value. + +### HasLevelValue + +`func (o *TrendingPowerDataPayLoad) HasLevelValue() bool` + +HasLevelValue returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/TrendingPowerDataPayLoadInterval.md b/services/smartview/docs/TrendingPowerDataPayLoadInterval.md new file mode 100644 index 00000000..7b1ca0dd --- /dev/null +++ b/services/smartview/docs/TrendingPowerDataPayLoadInterval.md @@ -0,0 +1,17 @@ +# TrendingPowerDataPayLoadInterval + +## Enum + + +* `_5M` (value: `"5m"`) + +* `_15M` (value: `"15m"`) + +* `_1H` (value: `"1h"`) + +* `_1D` (value: `"1d"`) + + +[[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/services/smartview/docs/TrendingPowerDataPayLoadLevelType.md b/services/smartview/docs/TrendingPowerDataPayLoadLevelType.md new file mode 100644 index 00000000..632b5447 --- /dev/null +++ b/services/smartview/docs/TrendingPowerDataPayLoadLevelType.md @@ -0,0 +1,17 @@ +# TrendingPowerDataPayLoadLevelType + +## Enum + + +* `IBX` (value: `"ibx"`) + +* `CAGE` (value: `"cage"`) + +* `CABINET` (value: `"cabinet"`) + +* `CIRCUIT` (value: `"circuit"`) + + +[[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/services/smartview/docs/TrendingPowerDataStatus.md b/services/smartview/docs/TrendingPowerDataStatus.md new file mode 100644 index 00000000..1b13ab9c --- /dev/null +++ b/services/smartview/docs/TrendingPowerDataStatus.md @@ -0,0 +1,108 @@ +# TrendingPowerDataStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages | [optional] +**Statuscode** | Pointer to **float32** | [1000|3001|3002|3003|4000] are the possible status codes | [optional] +**Type** | Pointer to [**AssetDetailResponseStatusType**](AssetDetailResponseStatusType.md) | | [optional] + +## Methods + +### NewTrendingPowerDataStatus + +`func NewTrendingPowerDataStatus() *TrendingPowerDataStatus` + +NewTrendingPowerDataStatus instantiates a new TrendingPowerDataStatus 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 + +### NewTrendingPowerDataStatusWithDefaults + +`func NewTrendingPowerDataStatusWithDefaults() *TrendingPowerDataStatus` + +NewTrendingPowerDataStatusWithDefaults instantiates a new TrendingPowerDataStatus 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 + +### GetMsg + +`func (o *TrendingPowerDataStatus) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *TrendingPowerDataStatus) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *TrendingPowerDataStatus) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *TrendingPowerDataStatus) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetStatuscode + +`func (o *TrendingPowerDataStatus) GetStatuscode() float32` + +GetStatuscode returns the Statuscode field if non-nil, zero value otherwise. + +### GetStatuscodeOk + +`func (o *TrendingPowerDataStatus) GetStatuscodeOk() (*float32, bool)` + +GetStatuscodeOk returns a tuple with the Statuscode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatuscode + +`func (o *TrendingPowerDataStatus) SetStatuscode(v float32)` + +SetStatuscode sets Statuscode field to given value. + +### HasStatuscode + +`func (o *TrendingPowerDataStatus) HasStatuscode() bool` + +HasStatuscode returns a boolean if a field has been set. + +### GetType + +`func (o *TrendingPowerDataStatus) GetType() AssetDetailResponseStatusType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TrendingPowerDataStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TrendingPowerDataStatus) SetType(v AssetDetailResponseStatusType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *TrendingPowerDataStatus) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/services/smartview/docs/ValueWithUnit.md b/services/smartview/docs/ValueWithUnit.md new file mode 100644 index 00000000..d1af5dac --- /dev/null +++ b/services/smartview/docs/ValueWithUnit.md @@ -0,0 +1,72 @@ +# ValueWithUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | **map[string]interface{}** | Unit for value. | +**Value** | **map[string]interface{}** | Specific value, to be read together with unit. | + +## Methods + +### NewValueWithUnit + +`func NewValueWithUnit(unit map[string]interface{}, value map[string]interface{}, ) *ValueWithUnit` + +NewValueWithUnit instantiates a new ValueWithUnit 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 + +### NewValueWithUnitWithDefaults + +`func NewValueWithUnitWithDefaults() *ValueWithUnit` + +NewValueWithUnitWithDefaults instantiates a new ValueWithUnit 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 + +### GetUnit + +`func (o *ValueWithUnit) GetUnit() map[string]interface{}` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ValueWithUnit) GetUnitOk() (*map[string]interface{}, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ValueWithUnit) SetUnit(v map[string]interface{})` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *ValueWithUnit) GetValue() map[string]interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ValueWithUnit) GetValueOk() (*map[string]interface{}, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ValueWithUnit) SetValue(v map[string]interface{})` + +SetValue sets Value 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/services/smartview/docs/ValueWithUnitDoubleHumidityUnit.md b/services/smartview/docs/ValueWithUnitDoubleHumidityUnit.md new file mode 100644 index 00000000..455f7812 --- /dev/null +++ b/services/smartview/docs/ValueWithUnitDoubleHumidityUnit.md @@ -0,0 +1,72 @@ +# ValueWithUnitDoubleHumidityUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | [**ValueWithUnitDoubleHumidityUnitUnit**](ValueWithUnitDoubleHumidityUnitUnit.md) | | +**Value** | **float64** | Specific value, to be read together with unit. | + +## Methods + +### NewValueWithUnitDoubleHumidityUnit + +`func NewValueWithUnitDoubleHumidityUnit(unit ValueWithUnitDoubleHumidityUnitUnit, value float64, ) *ValueWithUnitDoubleHumidityUnit` + +NewValueWithUnitDoubleHumidityUnit instantiates a new ValueWithUnitDoubleHumidityUnit 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 + +### NewValueWithUnitDoubleHumidityUnitWithDefaults + +`func NewValueWithUnitDoubleHumidityUnitWithDefaults() *ValueWithUnitDoubleHumidityUnit` + +NewValueWithUnitDoubleHumidityUnitWithDefaults instantiates a new ValueWithUnitDoubleHumidityUnit 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 + +### GetUnit + +`func (o *ValueWithUnitDoubleHumidityUnit) GetUnit() ValueWithUnitDoubleHumidityUnitUnit` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ValueWithUnitDoubleHumidityUnit) GetUnitOk() (*ValueWithUnitDoubleHumidityUnitUnit, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ValueWithUnitDoubleHumidityUnit) SetUnit(v ValueWithUnitDoubleHumidityUnitUnit)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *ValueWithUnitDoubleHumidityUnit) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ValueWithUnitDoubleHumidityUnit) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ValueWithUnitDoubleHumidityUnit) SetValue(v float64)` + +SetValue sets Value 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/services/smartview/docs/ValueWithUnitDoubleHumidityUnitUnit.md b/services/smartview/docs/ValueWithUnitDoubleHumidityUnitUnit.md new file mode 100644 index 00000000..acadbf25 --- /dev/null +++ b/services/smartview/docs/ValueWithUnitDoubleHumidityUnitUnit.md @@ -0,0 +1,11 @@ +# ValueWithUnitDoubleHumidityUnitUnit + +## Enum + + +* `PERCENT` (value: `"PERCENT"`) + + +[[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/services/smartview/docs/ValueWithUnitDoubleTemperatureUnit.md b/services/smartview/docs/ValueWithUnitDoubleTemperatureUnit.md new file mode 100644 index 00000000..6ba86ada --- /dev/null +++ b/services/smartview/docs/ValueWithUnitDoubleTemperatureUnit.md @@ -0,0 +1,72 @@ +# ValueWithUnitDoubleTemperatureUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Unit** | [**ValueWithUnitDoubleTemperatureUnitUnit**](ValueWithUnitDoubleTemperatureUnitUnit.md) | | +**Value** | **float64** | Specific value, to be read together with unit. | + +## Methods + +### NewValueWithUnitDoubleTemperatureUnit + +`func NewValueWithUnitDoubleTemperatureUnit(unit ValueWithUnitDoubleTemperatureUnitUnit, value float64, ) *ValueWithUnitDoubleTemperatureUnit` + +NewValueWithUnitDoubleTemperatureUnit instantiates a new ValueWithUnitDoubleTemperatureUnit 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 + +### NewValueWithUnitDoubleTemperatureUnitWithDefaults + +`func NewValueWithUnitDoubleTemperatureUnitWithDefaults() *ValueWithUnitDoubleTemperatureUnit` + +NewValueWithUnitDoubleTemperatureUnitWithDefaults instantiates a new ValueWithUnitDoubleTemperatureUnit 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 + +### GetUnit + +`func (o *ValueWithUnitDoubleTemperatureUnit) GetUnit() ValueWithUnitDoubleTemperatureUnitUnit` + +GetUnit returns the Unit field if non-nil, zero value otherwise. + +### GetUnitOk + +`func (o *ValueWithUnitDoubleTemperatureUnit) GetUnitOk() (*ValueWithUnitDoubleTemperatureUnitUnit, bool)` + +GetUnitOk returns a tuple with the Unit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnit + +`func (o *ValueWithUnitDoubleTemperatureUnit) SetUnit(v ValueWithUnitDoubleTemperatureUnitUnit)` + +SetUnit sets Unit field to given value. + + +### GetValue + +`func (o *ValueWithUnitDoubleTemperatureUnit) GetValue() float64` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ValueWithUnitDoubleTemperatureUnit) GetValueOk() (*float64, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ValueWithUnitDoubleTemperatureUnit) SetValue(v float64)` + +SetValue sets Value 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/services/smartview/docs/ValueWithUnitDoubleTemperatureUnitUnit.md b/services/smartview/docs/ValueWithUnitDoubleTemperatureUnitUnit.md new file mode 100644 index 00000000..017bf55a --- /dev/null +++ b/services/smartview/docs/ValueWithUnitDoubleTemperatureUnitUnit.md @@ -0,0 +1,13 @@ +# ValueWithUnitDoubleTemperatureUnitUnit + +## Enum + + +* `CELSIUS` (value: `"CELSIUS"`) + +* `FAHRENHEIT` (value: `"FAHRENHEIT"`) + + +[[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/services/smartview/docs/WebhookChannelConfiguration.md b/services/smartview/docs/WebhookChannelConfiguration.md new file mode 100644 index 00000000..07413552 --- /dev/null +++ b/services/smartview/docs/WebhookChannelConfiguration.md @@ -0,0 +1,155 @@ +# WebhookChannelConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BatchSize** | Pointer to **int32** | | [optional] +**NumberOfConcurrentCalls** | Pointer to **int32** | | [optional] +**NumberOfRetries** | Pointer to **int32** | | [optional] +**SslCertificate** | Pointer to **string** | | [optional] +**Url** | **string** | | + +## Methods + +### NewWebhookChannelConfiguration + +`func NewWebhookChannelConfiguration(url string, ) *WebhookChannelConfiguration` + +NewWebhookChannelConfiguration instantiates a new WebhookChannelConfiguration 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 + +### NewWebhookChannelConfigurationWithDefaults + +`func NewWebhookChannelConfigurationWithDefaults() *WebhookChannelConfiguration` + +NewWebhookChannelConfigurationWithDefaults instantiates a new WebhookChannelConfiguration 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 + +### GetBatchSize + +`func (o *WebhookChannelConfiguration) GetBatchSize() int32` + +GetBatchSize returns the BatchSize field if non-nil, zero value otherwise. + +### GetBatchSizeOk + +`func (o *WebhookChannelConfiguration) GetBatchSizeOk() (*int32, bool)` + +GetBatchSizeOk returns a tuple with the BatchSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBatchSize + +`func (o *WebhookChannelConfiguration) SetBatchSize(v int32)` + +SetBatchSize sets BatchSize field to given value. + +### HasBatchSize + +`func (o *WebhookChannelConfiguration) HasBatchSize() bool` + +HasBatchSize returns a boolean if a field has been set. + +### GetNumberOfConcurrentCalls + +`func (o *WebhookChannelConfiguration) GetNumberOfConcurrentCalls() int32` + +GetNumberOfConcurrentCalls returns the NumberOfConcurrentCalls field if non-nil, zero value otherwise. + +### GetNumberOfConcurrentCallsOk + +`func (o *WebhookChannelConfiguration) GetNumberOfConcurrentCallsOk() (*int32, bool)` + +GetNumberOfConcurrentCallsOk returns a tuple with the NumberOfConcurrentCalls field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberOfConcurrentCalls + +`func (o *WebhookChannelConfiguration) SetNumberOfConcurrentCalls(v int32)` + +SetNumberOfConcurrentCalls sets NumberOfConcurrentCalls field to given value. + +### HasNumberOfConcurrentCalls + +`func (o *WebhookChannelConfiguration) HasNumberOfConcurrentCalls() bool` + +HasNumberOfConcurrentCalls returns a boolean if a field has been set. + +### GetNumberOfRetries + +`func (o *WebhookChannelConfiguration) GetNumberOfRetries() int32` + +GetNumberOfRetries returns the NumberOfRetries field if non-nil, zero value otherwise. + +### GetNumberOfRetriesOk + +`func (o *WebhookChannelConfiguration) GetNumberOfRetriesOk() (*int32, bool)` + +GetNumberOfRetriesOk returns a tuple with the NumberOfRetries field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberOfRetries + +`func (o *WebhookChannelConfiguration) SetNumberOfRetries(v int32)` + +SetNumberOfRetries sets NumberOfRetries field to given value. + +### HasNumberOfRetries + +`func (o *WebhookChannelConfiguration) HasNumberOfRetries() bool` + +HasNumberOfRetries returns a boolean if a field has been set. + +### GetSslCertificate + +`func (o *WebhookChannelConfiguration) GetSslCertificate() string` + +GetSslCertificate returns the SslCertificate field if non-nil, zero value otherwise. + +### GetSslCertificateOk + +`func (o *WebhookChannelConfiguration) GetSslCertificateOk() (*string, bool)` + +GetSslCertificateOk returns a tuple with the SslCertificate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSslCertificate + +`func (o *WebhookChannelConfiguration) SetSslCertificate(v string)` + +SetSslCertificate sets SslCertificate field to given value. + +### HasSslCertificate + +`func (o *WebhookChannelConfiguration) HasSslCertificate() bool` + +HasSslCertificate returns a boolean if a field has been set. + +### GetUrl + +`func (o *WebhookChannelConfiguration) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *WebhookChannelConfiguration) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *WebhookChannelConfiguration) SetUrl(v string)` + +SetUrl sets Url 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/services/smartview/go.mod b/services/smartview/go.mod new file mode 100644 index 00000000..a8f0dc0f --- /dev/null +++ b/services/smartview/go.mod @@ -0,0 +1,6 @@ +module github.com/equinix/equinix-sdk-go/services/smartview + +go 1.18 + +require ( +) diff --git a/services/smartview/go.sum b/services/smartview/go.sum new file mode 100644 index 00000000..c966c8dd --- /dev/null +++ b/services/smartview/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/services/smartview/model__power_v1_current_get_level_type_parameter.go b/services/smartview/model__power_v1_current_get_level_type_parameter.go new file mode 100644 index 00000000..91137cbb --- /dev/null +++ b/services/smartview/model__power_v1_current_get_level_type_parameter.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// PowerV1CurrentGetLevelTypeParameter the model 'PowerV1CurrentGetLevelTypeParameter' +type PowerV1CurrentGetLevelTypeParameter string + +// List of _power_v1_current_get_levelType_parameter +const ( + POWERV1CURRENTGETLEVELTYPEPARAMETER_IBX PowerV1CurrentGetLevelTypeParameter = "ibx" + POWERV1CURRENTGETLEVELTYPEPARAMETER_CAGE PowerV1CurrentGetLevelTypeParameter = "cage" + POWERV1CURRENTGETLEVELTYPEPARAMETER_CABINET PowerV1CurrentGetLevelTypeParameter = "cabinet" + POWERV1CURRENTGETLEVELTYPEPARAMETER_CIRCUIT PowerV1CurrentGetLevelTypeParameter = "circuit" +) + +// All allowed values of PowerV1CurrentGetLevelTypeParameter enum +var AllowedPowerV1CurrentGetLevelTypeParameterEnumValues = []PowerV1CurrentGetLevelTypeParameter{ + "ibx", + "cage", + "cabinet", + "circuit", +} + +func (v *PowerV1CurrentGetLevelTypeParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerV1CurrentGetLevelTypeParameter(value) + for _, existing := range AllowedPowerV1CurrentGetLevelTypeParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerV1CurrentGetLevelTypeParameter", value) +} + +// NewPowerV1CurrentGetLevelTypeParameterFromValue returns a pointer to a valid PowerV1CurrentGetLevelTypeParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerV1CurrentGetLevelTypeParameterFromValue(v string) (*PowerV1CurrentGetLevelTypeParameter, error) { + ev := PowerV1CurrentGetLevelTypeParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerV1CurrentGetLevelTypeParameter: valid values are %v", v, AllowedPowerV1CurrentGetLevelTypeParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerV1CurrentGetLevelTypeParameter) IsValid() bool { + for _, existing := range AllowedPowerV1CurrentGetLevelTypeParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to _power_v1_current_get_levelType_parameter value +func (v PowerV1CurrentGetLevelTypeParameter) Ptr() *PowerV1CurrentGetLevelTypeParameter { + return &v +} + +type NullablePowerV1CurrentGetLevelTypeParameter struct { + value *PowerV1CurrentGetLevelTypeParameter + isSet bool +} + +func (v NullablePowerV1CurrentGetLevelTypeParameter) Get() *PowerV1CurrentGetLevelTypeParameter { + return v.value +} + +func (v *NullablePowerV1CurrentGetLevelTypeParameter) Set(val *PowerV1CurrentGetLevelTypeParameter) { + v.value = val + v.isSet = true +} + +func (v NullablePowerV1CurrentGetLevelTypeParameter) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerV1CurrentGetLevelTypeParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerV1CurrentGetLevelTypeParameter(val *PowerV1CurrentGetLevelTypeParameter) *NullablePowerV1CurrentGetLevelTypeParameter { + return &NullablePowerV1CurrentGetLevelTypeParameter{value: val, isSet: true} +} + +func (v NullablePowerV1CurrentGetLevelTypeParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerV1CurrentGetLevelTypeParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_alarm.go b/services/smartview/model_alarm.go new file mode 100644 index 00000000..0c14839b --- /dev/null +++ b/services/smartview/model_alarm.go @@ -0,0 +1,868 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Alarm type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Alarm{} + +// Alarm message data +type Alarm struct { + Asset AlarmAssetDetails `json:"asset"` + // condition name + ConditionName *string `json:"conditionName,omitempty"` + // country + Country *string `json:"country,omitempty"` + CurrentValue AlarmCurrentValueDetails `json:"currentValue"` + // data quality: Good | Bad | Uncertain + DataQuality *string `json:"dataQuality,omitempty"` + // unique message id + DefinitionId string `json:"definitionId"` + // heartbeat + Heartbeat *bool `json:"heartbeat,omitempty"` + // ibx + Ibx string `json:"ibx"` + // metro + Metro *string `json:"metro,omitempty"` + // alarm normal processed time + NormalProcessedTime *string `json:"normalProcessedTime,omitempty"` + // alarm normal triggered time + NormalTriggeredTime *string `json:"normalTriggeredTime,omitempty"` + // alarm processed time + ProcessedTime *string `json:"processedTime,omitempty"` + // region + Region *string `json:"region,omitempty"` + // severity + Severity *int32 `json:"severity,omitempty"` + Status AlarmStatusDetails `json:"status"` + // unique message id + StreamId string `json:"streamId"` + Tag AlarmTagDetails `json:"tag"` + Threshold AlarmThresholdDetails `json:"threshold"` + // trigger rule + TriggerRule *string `json:"triggerRule,omitempty"` + // alarm triggered time + TriggeredTime *string `json:"triggeredTime,omitempty"` + // type + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Alarm Alarm + +// NewAlarm instantiates a new Alarm 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 NewAlarm(asset AlarmAssetDetails, currentValue AlarmCurrentValueDetails, definitionId string, ibx string, status AlarmStatusDetails, streamId string, tag AlarmTagDetails, threshold AlarmThresholdDetails) *Alarm { + this := Alarm{} + this.Asset = asset + this.CurrentValue = currentValue + this.DefinitionId = definitionId + this.Ibx = ibx + this.Status = status + this.StreamId = streamId + this.Tag = tag + this.Threshold = threshold + return &this +} + +// NewAlarmWithDefaults instantiates a new Alarm 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 NewAlarmWithDefaults() *Alarm { + this := Alarm{} + return &this +} + +// GetAsset returns the Asset field value +func (o *Alarm) GetAsset() AlarmAssetDetails { + if o == nil { + var ret AlarmAssetDetails + return ret + } + + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetAssetOk() (*AlarmAssetDetails, bool) { + if o == nil { + return nil, false + } + return &o.Asset, true +} + +// SetAsset sets field value +func (o *Alarm) SetAsset(v AlarmAssetDetails) { + o.Asset = v +} + +// GetConditionName returns the ConditionName field value if set, zero value otherwise. +func (o *Alarm) GetConditionName() string { + if o == nil || IsNil(o.ConditionName) { + var ret string + return ret + } + return *o.ConditionName +} + +// GetConditionNameOk returns a tuple with the ConditionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetConditionNameOk() (*string, bool) { + if o == nil || IsNil(o.ConditionName) { + return nil, false + } + return o.ConditionName, true +} + +// HasConditionName returns a boolean if a field has been set. +func (o *Alarm) HasConditionName() bool { + if o != nil && !IsNil(o.ConditionName) { + return true + } + + return false +} + +// SetConditionName gets a reference to the given string and assigns it to the ConditionName field. +func (o *Alarm) SetConditionName(v string) { + o.ConditionName = &v +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *Alarm) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *Alarm) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *Alarm) SetCountry(v string) { + o.Country = &v +} + +// GetCurrentValue returns the CurrentValue field value +func (o *Alarm) GetCurrentValue() AlarmCurrentValueDetails { + if o == nil { + var ret AlarmCurrentValueDetails + return ret + } + + return o.CurrentValue +} + +// GetCurrentValueOk returns a tuple with the CurrentValue field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetCurrentValueOk() (*AlarmCurrentValueDetails, bool) { + if o == nil { + return nil, false + } + return &o.CurrentValue, true +} + +// SetCurrentValue sets field value +func (o *Alarm) SetCurrentValue(v AlarmCurrentValueDetails) { + o.CurrentValue = v +} + +// GetDataQuality returns the DataQuality field value if set, zero value otherwise. +func (o *Alarm) GetDataQuality() string { + if o == nil || IsNil(o.DataQuality) { + var ret string + return ret + } + return *o.DataQuality +} + +// GetDataQualityOk returns a tuple with the DataQuality field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetDataQualityOk() (*string, bool) { + if o == nil || IsNil(o.DataQuality) { + return nil, false + } + return o.DataQuality, true +} + +// HasDataQuality returns a boolean if a field has been set. +func (o *Alarm) HasDataQuality() bool { + if o != nil && !IsNil(o.DataQuality) { + return true + } + + return false +} + +// SetDataQuality gets a reference to the given string and assigns it to the DataQuality field. +func (o *Alarm) SetDataQuality(v string) { + o.DataQuality = &v +} + +// GetDefinitionId returns the DefinitionId field value +func (o *Alarm) GetDefinitionId() string { + if o == nil { + var ret string + return ret + } + + return o.DefinitionId +} + +// GetDefinitionIdOk returns a tuple with the DefinitionId field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetDefinitionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefinitionId, true +} + +// SetDefinitionId sets field value +func (o *Alarm) SetDefinitionId(v string) { + o.DefinitionId = v +} + +// GetHeartbeat returns the Heartbeat field value if set, zero value otherwise. +func (o *Alarm) GetHeartbeat() bool { + if o == nil || IsNil(o.Heartbeat) { + var ret bool + return ret + } + return *o.Heartbeat +} + +// GetHeartbeatOk returns a tuple with the Heartbeat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetHeartbeatOk() (*bool, bool) { + if o == nil || IsNil(o.Heartbeat) { + return nil, false + } + return o.Heartbeat, true +} + +// HasHeartbeat returns a boolean if a field has been set. +func (o *Alarm) HasHeartbeat() bool { + if o != nil && !IsNil(o.Heartbeat) { + return true + } + + return false +} + +// SetHeartbeat gets a reference to the given bool and assigns it to the Heartbeat field. +func (o *Alarm) SetHeartbeat(v bool) { + o.Heartbeat = &v +} + +// GetIbx returns the Ibx field value +func (o *Alarm) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *Alarm) SetIbx(v string) { + o.Ibx = v +} + +// GetMetro returns the Metro field value if set, zero value otherwise. +func (o *Alarm) GetMetro() string { + if o == nil || IsNil(o.Metro) { + var ret string + return ret + } + return *o.Metro +} + +// GetMetroOk returns a tuple with the Metro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetMetroOk() (*string, bool) { + if o == nil || IsNil(o.Metro) { + return nil, false + } + return o.Metro, true +} + +// HasMetro returns a boolean if a field has been set. +func (o *Alarm) HasMetro() bool { + if o != nil && !IsNil(o.Metro) { + return true + } + + return false +} + +// SetMetro gets a reference to the given string and assigns it to the Metro field. +func (o *Alarm) SetMetro(v string) { + o.Metro = &v +} + +// GetNormalProcessedTime returns the NormalProcessedTime field value if set, zero value otherwise. +func (o *Alarm) GetNormalProcessedTime() string { + if o == nil || IsNil(o.NormalProcessedTime) { + var ret string + return ret + } + return *o.NormalProcessedTime +} + +// GetNormalProcessedTimeOk returns a tuple with the NormalProcessedTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetNormalProcessedTimeOk() (*string, bool) { + if o == nil || IsNil(o.NormalProcessedTime) { + return nil, false + } + return o.NormalProcessedTime, true +} + +// HasNormalProcessedTime returns a boolean if a field has been set. +func (o *Alarm) HasNormalProcessedTime() bool { + if o != nil && !IsNil(o.NormalProcessedTime) { + return true + } + + return false +} + +// SetNormalProcessedTime gets a reference to the given string and assigns it to the NormalProcessedTime field. +func (o *Alarm) SetNormalProcessedTime(v string) { + o.NormalProcessedTime = &v +} + +// GetNormalTriggeredTime returns the NormalTriggeredTime field value if set, zero value otherwise. +func (o *Alarm) GetNormalTriggeredTime() string { + if o == nil || IsNil(o.NormalTriggeredTime) { + var ret string + return ret + } + return *o.NormalTriggeredTime +} + +// GetNormalTriggeredTimeOk returns a tuple with the NormalTriggeredTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetNormalTriggeredTimeOk() (*string, bool) { + if o == nil || IsNil(o.NormalTriggeredTime) { + return nil, false + } + return o.NormalTriggeredTime, true +} + +// HasNormalTriggeredTime returns a boolean if a field has been set. +func (o *Alarm) HasNormalTriggeredTime() bool { + if o != nil && !IsNil(o.NormalTriggeredTime) { + return true + } + + return false +} + +// SetNormalTriggeredTime gets a reference to the given string and assigns it to the NormalTriggeredTime field. +func (o *Alarm) SetNormalTriggeredTime(v string) { + o.NormalTriggeredTime = &v +} + +// GetProcessedTime returns the ProcessedTime field value if set, zero value otherwise. +func (o *Alarm) GetProcessedTime() string { + if o == nil || IsNil(o.ProcessedTime) { + var ret string + return ret + } + return *o.ProcessedTime +} + +// GetProcessedTimeOk returns a tuple with the ProcessedTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetProcessedTimeOk() (*string, bool) { + if o == nil || IsNil(o.ProcessedTime) { + return nil, false + } + return o.ProcessedTime, true +} + +// HasProcessedTime returns a boolean if a field has been set. +func (o *Alarm) HasProcessedTime() bool { + if o != nil && !IsNil(o.ProcessedTime) { + return true + } + + return false +} + +// SetProcessedTime gets a reference to the given string and assigns it to the ProcessedTime field. +func (o *Alarm) SetProcessedTime(v string) { + o.ProcessedTime = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *Alarm) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *Alarm) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *Alarm) SetRegion(v string) { + o.Region = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *Alarm) GetSeverity() int32 { + if o == nil || IsNil(o.Severity) { + var ret int32 + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetSeverityOk() (*int32, bool) { + if o == nil || IsNil(o.Severity) { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *Alarm) HasSeverity() bool { + if o != nil && !IsNil(o.Severity) { + return true + } + + return false +} + +// SetSeverity gets a reference to the given int32 and assigns it to the Severity field. +func (o *Alarm) SetSeverity(v int32) { + o.Severity = &v +} + +// GetStatus returns the Status field value +func (o *Alarm) GetStatus() AlarmStatusDetails { + if o == nil { + var ret AlarmStatusDetails + 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 *Alarm) GetStatusOk() (*AlarmStatusDetails, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Alarm) SetStatus(v AlarmStatusDetails) { + o.Status = v +} + +// GetStreamId returns the StreamId field value +func (o *Alarm) GetStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.StreamId +} + +// GetStreamIdOk returns a tuple with the StreamId field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StreamId, true +} + +// SetStreamId sets field value +func (o *Alarm) SetStreamId(v string) { + o.StreamId = v +} + +// GetTag returns the Tag field value +func (o *Alarm) GetTag() AlarmTagDetails { + if o == nil { + var ret AlarmTagDetails + return ret + } + + return o.Tag +} + +// GetTagOk returns a tuple with the Tag field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetTagOk() (*AlarmTagDetails, bool) { + if o == nil { + return nil, false + } + return &o.Tag, true +} + +// SetTag sets field value +func (o *Alarm) SetTag(v AlarmTagDetails) { + o.Tag = v +} + +// GetThreshold returns the Threshold field value +func (o *Alarm) GetThreshold() AlarmThresholdDetails { + if o == nil { + var ret AlarmThresholdDetails + return ret + } + + return o.Threshold +} + +// GetThresholdOk returns a tuple with the Threshold field value +// and a boolean to check if the value has been set. +func (o *Alarm) GetThresholdOk() (*AlarmThresholdDetails, bool) { + if o == nil { + return nil, false + } + return &o.Threshold, true +} + +// SetThreshold sets field value +func (o *Alarm) SetThreshold(v AlarmThresholdDetails) { + o.Threshold = v +} + +// GetTriggerRule returns the TriggerRule field value if set, zero value otherwise. +func (o *Alarm) GetTriggerRule() string { + if o == nil || IsNil(o.TriggerRule) { + var ret string + return ret + } + return *o.TriggerRule +} + +// GetTriggerRuleOk returns a tuple with the TriggerRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetTriggerRuleOk() (*string, bool) { + if o == nil || IsNil(o.TriggerRule) { + return nil, false + } + return o.TriggerRule, true +} + +// HasTriggerRule returns a boolean if a field has been set. +func (o *Alarm) HasTriggerRule() bool { + if o != nil && !IsNil(o.TriggerRule) { + return true + } + + return false +} + +// SetTriggerRule gets a reference to the given string and assigns it to the TriggerRule field. +func (o *Alarm) SetTriggerRule(v string) { + o.TriggerRule = &v +} + +// GetTriggeredTime returns the TriggeredTime field value if set, zero value otherwise. +func (o *Alarm) GetTriggeredTime() string { + if o == nil || IsNil(o.TriggeredTime) { + var ret string + return ret + } + return *o.TriggeredTime +} + +// GetTriggeredTimeOk returns a tuple with the TriggeredTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetTriggeredTimeOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredTime) { + return nil, false + } + return o.TriggeredTime, true +} + +// HasTriggeredTime returns a boolean if a field has been set. +func (o *Alarm) HasTriggeredTime() bool { + if o != nil && !IsNil(o.TriggeredTime) { + return true + } + + return false +} + +// SetTriggeredTime gets a reference to the given string and assigns it to the TriggeredTime field. +func (o *Alarm) SetTriggeredTime(v string) { + o.TriggeredTime = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Alarm) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alarm) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Alarm) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Alarm) SetType(v string) { + o.Type = &v +} + +func (o Alarm) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Alarm) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["asset"] = o.Asset + if !IsNil(o.ConditionName) { + toSerialize["conditionName"] = o.ConditionName + } + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + toSerialize["currentValue"] = o.CurrentValue + if !IsNil(o.DataQuality) { + toSerialize["dataQuality"] = o.DataQuality + } + toSerialize["definitionId"] = o.DefinitionId + if !IsNil(o.Heartbeat) { + toSerialize["heartbeat"] = o.Heartbeat + } + toSerialize["ibx"] = o.Ibx + if !IsNil(o.Metro) { + toSerialize["metro"] = o.Metro + } + if !IsNil(o.NormalProcessedTime) { + toSerialize["normalProcessedTime"] = o.NormalProcessedTime + } + if !IsNil(o.NormalTriggeredTime) { + toSerialize["normalTriggeredTime"] = o.NormalTriggeredTime + } + if !IsNil(o.ProcessedTime) { + toSerialize["processedTime"] = o.ProcessedTime + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.Severity) { + toSerialize["severity"] = o.Severity + } + toSerialize["status"] = o.Status + toSerialize["streamId"] = o.StreamId + toSerialize["tag"] = o.Tag + toSerialize["threshold"] = o.Threshold + if !IsNil(o.TriggerRule) { + toSerialize["triggerRule"] = o.TriggerRule + } + if !IsNil(o.TriggeredTime) { + toSerialize["triggeredTime"] = o.TriggeredTime + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Alarm) 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{ + "asset", + "currentValue", + "definitionId", + "ibx", + "status", + "streamId", + "tag", + "threshold", + } + + 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) + } + } + + varAlarm := _Alarm{} + + err = json.Unmarshal(data, &varAlarm) + + if err != nil { + return err + } + + *o = Alarm(varAlarm) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asset") + delete(additionalProperties, "conditionName") + delete(additionalProperties, "country") + delete(additionalProperties, "currentValue") + delete(additionalProperties, "dataQuality") + delete(additionalProperties, "definitionId") + delete(additionalProperties, "heartbeat") + delete(additionalProperties, "ibx") + delete(additionalProperties, "metro") + delete(additionalProperties, "normalProcessedTime") + delete(additionalProperties, "normalTriggeredTime") + delete(additionalProperties, "processedTime") + delete(additionalProperties, "region") + delete(additionalProperties, "severity") + delete(additionalProperties, "status") + delete(additionalProperties, "streamId") + delete(additionalProperties, "tag") + delete(additionalProperties, "threshold") + delete(additionalProperties, "triggerRule") + delete(additionalProperties, "triggeredTime") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarm struct { + value *Alarm + isSet bool +} + +func (v NullableAlarm) Get() *Alarm { + return v.value +} + +func (v *NullableAlarm) Set(val *Alarm) { + v.value = val + v.isSet = true +} + +func (v NullableAlarm) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarm(val *Alarm) *NullableAlarm { + return &NullableAlarm{value: val, isSet: true} +} + +func (v NullableAlarm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alarm_asset_details.go b/services/smartview/model_alarm_asset_details.go new file mode 100644 index 00000000..93e0d977 --- /dev/null +++ b/services/smartview/model_alarm_asset_details.go @@ -0,0 +1,232 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlarmAssetDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlarmAssetDetails{} + +// AlarmAssetDetails asset details +type AlarmAssetDetails struct { + // asset classification + Classification *string `json:"classification,omitempty"` + // asset id + Id *string `json:"id,omitempty"` + // asset type + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlarmAssetDetails AlarmAssetDetails + +// NewAlarmAssetDetails instantiates a new AlarmAssetDetails 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 NewAlarmAssetDetails() *AlarmAssetDetails { + this := AlarmAssetDetails{} + return &this +} + +// NewAlarmAssetDetailsWithDefaults instantiates a new AlarmAssetDetails 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 NewAlarmAssetDetailsWithDefaults() *AlarmAssetDetails { + this := AlarmAssetDetails{} + return &this +} + +// GetClassification returns the Classification field value if set, zero value otherwise. +func (o *AlarmAssetDetails) GetClassification() string { + if o == nil || IsNil(o.Classification) { + var ret string + return ret + } + return *o.Classification +} + +// GetClassificationOk returns a tuple with the Classification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmAssetDetails) GetClassificationOk() (*string, bool) { + if o == nil || IsNil(o.Classification) { + return nil, false + } + return o.Classification, true +} + +// HasClassification returns a boolean if a field has been set. +func (o *AlarmAssetDetails) HasClassification() bool { + if o != nil && !IsNil(o.Classification) { + return true + } + + return false +} + +// SetClassification gets a reference to the given string and assigns it to the Classification field. +func (o *AlarmAssetDetails) SetClassification(v string) { + o.Classification = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlarmAssetDetails) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmAssetDetails) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlarmAssetDetails) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlarmAssetDetails) SetId(v string) { + o.Id = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AlarmAssetDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmAssetDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AlarmAssetDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AlarmAssetDetails) SetType(v string) { + o.Type = &v +} + +func (o AlarmAssetDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlarmAssetDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Classification) { + toSerialize["classification"] = o.Classification + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlarmAssetDetails) UnmarshalJSON(data []byte) (err error) { + varAlarmAssetDetails := _AlarmAssetDetails{} + + err = json.Unmarshal(data, &varAlarmAssetDetails) + + if err != nil { + return err + } + + *o = AlarmAssetDetails(varAlarmAssetDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "classification") + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarmAssetDetails struct { + value *AlarmAssetDetails + isSet bool +} + +func (v NullableAlarmAssetDetails) Get() *AlarmAssetDetails { + return v.value +} + +func (v *NullableAlarmAssetDetails) Set(val *AlarmAssetDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlarmAssetDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarmAssetDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarmAssetDetails(val *AlarmAssetDetails) *NullableAlarmAssetDetails { + return &NullableAlarmAssetDetails{value: val, isSet: true} +} + +func (v NullableAlarmAssetDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarmAssetDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alarm_current_value_details.go b/services/smartview/model_alarm_current_value_details.go new file mode 100644 index 00000000..99f1e21f --- /dev/null +++ b/services/smartview/model_alarm_current_value_details.go @@ -0,0 +1,232 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlarmCurrentValueDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlarmCurrentValueDetails{} + +// AlarmCurrentValueDetails currentValue details +type AlarmCurrentValueDetails struct { + // current value type + Type *string `json:"type,omitempty"` + // current value unit + Unit *string `json:"unit,omitempty"` + // current value value + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlarmCurrentValueDetails AlarmCurrentValueDetails + +// NewAlarmCurrentValueDetails instantiates a new AlarmCurrentValueDetails 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 NewAlarmCurrentValueDetails() *AlarmCurrentValueDetails { + this := AlarmCurrentValueDetails{} + return &this +} + +// NewAlarmCurrentValueDetailsWithDefaults instantiates a new AlarmCurrentValueDetails 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 NewAlarmCurrentValueDetailsWithDefaults() *AlarmCurrentValueDetails { + this := AlarmCurrentValueDetails{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AlarmCurrentValueDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmCurrentValueDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AlarmCurrentValueDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AlarmCurrentValueDetails) SetType(v string) { + o.Type = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *AlarmCurrentValueDetails) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmCurrentValueDetails) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *AlarmCurrentValueDetails) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *AlarmCurrentValueDetails) SetUnit(v string) { + o.Unit = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *AlarmCurrentValueDetails) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmCurrentValueDetails) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *AlarmCurrentValueDetails) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *AlarmCurrentValueDetails) SetValue(v string) { + o.Value = &v +} + +func (o AlarmCurrentValueDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlarmCurrentValueDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlarmCurrentValueDetails) UnmarshalJSON(data []byte) (err error) { + varAlarmCurrentValueDetails := _AlarmCurrentValueDetails{} + + err = json.Unmarshal(data, &varAlarmCurrentValueDetails) + + if err != nil { + return err + } + + *o = AlarmCurrentValueDetails(varAlarmCurrentValueDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarmCurrentValueDetails struct { + value *AlarmCurrentValueDetails + isSet bool +} + +func (v NullableAlarmCurrentValueDetails) Get() *AlarmCurrentValueDetails { + return v.value +} + +func (v *NullableAlarmCurrentValueDetails) Set(val *AlarmCurrentValueDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlarmCurrentValueDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarmCurrentValueDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarmCurrentValueDetails(val *AlarmCurrentValueDetails) *NullableAlarmCurrentValueDetails { + return &NullableAlarmCurrentValueDetails{value: val, isSet: true} +} + +func (v NullableAlarmCurrentValueDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarmCurrentValueDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alarm_message_data.go b/services/smartview/model_alarm_message_data.go new file mode 100644 index 00000000..2babe922 --- /dev/null +++ b/services/smartview/model_alarm_message_data.go @@ -0,0 +1,200 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the AlarmMessageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlarmMessageData{} + +// AlarmMessageData alarm message data +type AlarmMessageData struct { + Data Alarm `json:"data"` + // message type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _AlarmMessageData AlarmMessageData + +// NewAlarmMessageData instantiates a new AlarmMessageData 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 NewAlarmMessageData(data Alarm, type_ string) *AlarmMessageData { + this := AlarmMessageData{} + this.Data = data + this.Type = type_ + return &this +} + +// NewAlarmMessageDataWithDefaults instantiates a new AlarmMessageData 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 NewAlarmMessageDataWithDefaults() *AlarmMessageData { + this := AlarmMessageData{} + var type_ string = "system-alert" + this.Type = type_ + return &this +} + +// GetData returns the Data field value +func (o *AlarmMessageData) GetData() Alarm { + if o == nil { + var ret Alarm + 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 *AlarmMessageData) GetDataOk() (*Alarm, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AlarmMessageData) SetData(v Alarm) { + o.Data = v +} + +// GetType returns the Type field value +func (o *AlarmMessageData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AlarmMessageData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AlarmMessageData) SetType(v string) { + o.Type = v +} + +func (o AlarmMessageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlarmMessageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlarmMessageData) 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", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlarmMessageData := _AlarmMessageData{} + + err = json.Unmarshal(data, &varAlarmMessageData) + + if err != nil { + return err + } + + *o = AlarmMessageData(varAlarmMessageData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarmMessageData struct { + value *AlarmMessageData + isSet bool +} + +func (v NullableAlarmMessageData) Get() *AlarmMessageData { + return v.value +} + +func (v *NullableAlarmMessageData) Set(val *AlarmMessageData) { + v.value = val + v.isSet = true +} + +func (v NullableAlarmMessageData) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarmMessageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarmMessageData(val *AlarmMessageData) *NullableAlarmMessageData { + return &NullableAlarmMessageData{value: val, isSet: true} +} + +func (v NullableAlarmMessageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarmMessageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alarm_status_details.go b/services/smartview/model_alarm_status_details.go new file mode 100644 index 00000000..a13a406e --- /dev/null +++ b/services/smartview/model_alarm_status_details.go @@ -0,0 +1,270 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlarmStatusDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlarmStatusDetails{} + +// AlarmStatusDetails status details +type AlarmStatusDetails struct { + // status acknowledged + Acknowledged *bool `json:"acknowledged,omitempty"` + // status acknowledgement time + AcknowledgementTime *string `json:"acknowledgementTime,omitempty"` + // status active + Active *bool `json:"active,omitempty"` + // status cleared + Cleared *bool `json:"cleared,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlarmStatusDetails AlarmStatusDetails + +// NewAlarmStatusDetails instantiates a new AlarmStatusDetails 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 NewAlarmStatusDetails() *AlarmStatusDetails { + this := AlarmStatusDetails{} + return &this +} + +// NewAlarmStatusDetailsWithDefaults instantiates a new AlarmStatusDetails 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 NewAlarmStatusDetailsWithDefaults() *AlarmStatusDetails { + this := AlarmStatusDetails{} + return &this +} + +// GetAcknowledged returns the Acknowledged field value if set, zero value otherwise. +func (o *AlarmStatusDetails) GetAcknowledged() bool { + if o == nil || IsNil(o.Acknowledged) { + var ret bool + return ret + } + return *o.Acknowledged +} + +// GetAcknowledgedOk returns a tuple with the Acknowledged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmStatusDetails) GetAcknowledgedOk() (*bool, bool) { + if o == nil || IsNil(o.Acknowledged) { + return nil, false + } + return o.Acknowledged, true +} + +// HasAcknowledged returns a boolean if a field has been set. +func (o *AlarmStatusDetails) HasAcknowledged() bool { + if o != nil && !IsNil(o.Acknowledged) { + return true + } + + return false +} + +// SetAcknowledged gets a reference to the given bool and assigns it to the Acknowledged field. +func (o *AlarmStatusDetails) SetAcknowledged(v bool) { + o.Acknowledged = &v +} + +// GetAcknowledgementTime returns the AcknowledgementTime field value if set, zero value otherwise. +func (o *AlarmStatusDetails) GetAcknowledgementTime() string { + if o == nil || IsNil(o.AcknowledgementTime) { + var ret string + return ret + } + return *o.AcknowledgementTime +} + +// GetAcknowledgementTimeOk returns a tuple with the AcknowledgementTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmStatusDetails) GetAcknowledgementTimeOk() (*string, bool) { + if o == nil || IsNil(o.AcknowledgementTime) { + return nil, false + } + return o.AcknowledgementTime, true +} + +// HasAcknowledgementTime returns a boolean if a field has been set. +func (o *AlarmStatusDetails) HasAcknowledgementTime() bool { + if o != nil && !IsNil(o.AcknowledgementTime) { + return true + } + + return false +} + +// SetAcknowledgementTime gets a reference to the given string and assigns it to the AcknowledgementTime field. +func (o *AlarmStatusDetails) SetAcknowledgementTime(v string) { + o.AcknowledgementTime = &v +} + +// GetActive returns the Active field value if set, zero value otherwise. +func (o *AlarmStatusDetails) GetActive() bool { + if o == nil || IsNil(o.Active) { + var ret bool + return ret + } + return *o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmStatusDetails) GetActiveOk() (*bool, bool) { + if o == nil || IsNil(o.Active) { + return nil, false + } + return o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *AlarmStatusDetails) HasActive() bool { + if o != nil && !IsNil(o.Active) { + return true + } + + return false +} + +// SetActive gets a reference to the given bool and assigns it to the Active field. +func (o *AlarmStatusDetails) SetActive(v bool) { + o.Active = &v +} + +// GetCleared returns the Cleared field value if set, zero value otherwise. +func (o *AlarmStatusDetails) GetCleared() bool { + if o == nil || IsNil(o.Cleared) { + var ret bool + return ret + } + return *o.Cleared +} + +// GetClearedOk returns a tuple with the Cleared field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmStatusDetails) GetClearedOk() (*bool, bool) { + if o == nil || IsNil(o.Cleared) { + return nil, false + } + return o.Cleared, true +} + +// HasCleared returns a boolean if a field has been set. +func (o *AlarmStatusDetails) HasCleared() bool { + if o != nil && !IsNil(o.Cleared) { + return true + } + + return false +} + +// SetCleared gets a reference to the given bool and assigns it to the Cleared field. +func (o *AlarmStatusDetails) SetCleared(v bool) { + o.Cleared = &v +} + +func (o AlarmStatusDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlarmStatusDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Acknowledged) { + toSerialize["acknowledged"] = o.Acknowledged + } + if !IsNil(o.AcknowledgementTime) { + toSerialize["acknowledgementTime"] = o.AcknowledgementTime + } + if !IsNil(o.Active) { + toSerialize["active"] = o.Active + } + if !IsNil(o.Cleared) { + toSerialize["cleared"] = o.Cleared + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlarmStatusDetails) UnmarshalJSON(data []byte) (err error) { + varAlarmStatusDetails := _AlarmStatusDetails{} + + err = json.Unmarshal(data, &varAlarmStatusDetails) + + if err != nil { + return err + } + + *o = AlarmStatusDetails(varAlarmStatusDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "acknowledged") + delete(additionalProperties, "acknowledgementTime") + delete(additionalProperties, "active") + delete(additionalProperties, "cleared") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarmStatusDetails struct { + value *AlarmStatusDetails + isSet bool +} + +func (v NullableAlarmStatusDetails) Get() *AlarmStatusDetails { + return v.value +} + +func (v *NullableAlarmStatusDetails) Set(val *AlarmStatusDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlarmStatusDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarmStatusDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarmStatusDetails(val *AlarmStatusDetails) *NullableAlarmStatusDetails { + return &NullableAlarmStatusDetails{value: val, isSet: true} +} + +func (v NullableAlarmStatusDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarmStatusDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alarm_tag_details.go b/services/smartview/model_alarm_tag_details.go new file mode 100644 index 00000000..2582ca62 --- /dev/null +++ b/services/smartview/model_alarm_tag_details.go @@ -0,0 +1,194 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlarmTagDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlarmTagDetails{} + +// AlarmTagDetails tag details +type AlarmTagDetails struct { + // tag display name + DisplayName *string `json:"displayName,omitempty"` + // tag id + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlarmTagDetails AlarmTagDetails + +// NewAlarmTagDetails instantiates a new AlarmTagDetails 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 NewAlarmTagDetails() *AlarmTagDetails { + this := AlarmTagDetails{} + return &this +} + +// NewAlarmTagDetailsWithDefaults instantiates a new AlarmTagDetails 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 NewAlarmTagDetailsWithDefaults() *AlarmTagDetails { + this := AlarmTagDetails{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *AlarmTagDetails) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmTagDetails) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *AlarmTagDetails) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *AlarmTagDetails) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlarmTagDetails) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmTagDetails) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlarmTagDetails) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlarmTagDetails) SetId(v string) { + o.Id = &v +} + +func (o AlarmTagDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlarmTagDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlarmTagDetails) UnmarshalJSON(data []byte) (err error) { + varAlarmTagDetails := _AlarmTagDetails{} + + err = json.Unmarshal(data, &varAlarmTagDetails) + + if err != nil { + return err + } + + *o = AlarmTagDetails(varAlarmTagDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "displayName") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarmTagDetails struct { + value *AlarmTagDetails + isSet bool +} + +func (v NullableAlarmTagDetails) Get() *AlarmTagDetails { + return v.value +} + +func (v *NullableAlarmTagDetails) Set(val *AlarmTagDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlarmTagDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarmTagDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarmTagDetails(val *AlarmTagDetails) *NullableAlarmTagDetails { + return &NullableAlarmTagDetails{value: val, isSet: true} +} + +func (v NullableAlarmTagDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarmTagDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alarm_threshold_details.go b/services/smartview/model_alarm_threshold_details.go new file mode 100644 index 00000000..79244f04 --- /dev/null +++ b/services/smartview/model_alarm_threshold_details.go @@ -0,0 +1,232 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlarmThresholdDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlarmThresholdDetails{} + +// AlarmThresholdDetails threshold details +type AlarmThresholdDetails struct { + // threshold message + Message *string `json:"message,omitempty"` + // threshold state limit + StateLimit *string `json:"stateLimit,omitempty"` + // threshold unit + Unit *string `json:"unit,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlarmThresholdDetails AlarmThresholdDetails + +// NewAlarmThresholdDetails instantiates a new AlarmThresholdDetails 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 NewAlarmThresholdDetails() *AlarmThresholdDetails { + this := AlarmThresholdDetails{} + return &this +} + +// NewAlarmThresholdDetailsWithDefaults instantiates a new AlarmThresholdDetails 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 NewAlarmThresholdDetailsWithDefaults() *AlarmThresholdDetails { + this := AlarmThresholdDetails{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *AlarmThresholdDetails) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmThresholdDetails) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *AlarmThresholdDetails) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *AlarmThresholdDetails) SetMessage(v string) { + o.Message = &v +} + +// GetStateLimit returns the StateLimit field value if set, zero value otherwise. +func (o *AlarmThresholdDetails) GetStateLimit() string { + if o == nil || IsNil(o.StateLimit) { + var ret string + return ret + } + return *o.StateLimit +} + +// GetStateLimitOk returns a tuple with the StateLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmThresholdDetails) GetStateLimitOk() (*string, bool) { + if o == nil || IsNil(o.StateLimit) { + return nil, false + } + return o.StateLimit, true +} + +// HasStateLimit returns a boolean if a field has been set. +func (o *AlarmThresholdDetails) HasStateLimit() bool { + if o != nil && !IsNil(o.StateLimit) { + return true + } + + return false +} + +// SetStateLimit gets a reference to the given string and assigns it to the StateLimit field. +func (o *AlarmThresholdDetails) SetStateLimit(v string) { + o.StateLimit = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *AlarmThresholdDetails) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlarmThresholdDetails) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *AlarmThresholdDetails) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *AlarmThresholdDetails) SetUnit(v string) { + o.Unit = &v +} + +func (o AlarmThresholdDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlarmThresholdDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.StateLimit) { + toSerialize["stateLimit"] = o.StateLimit + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlarmThresholdDetails) UnmarshalJSON(data []byte) (err error) { + varAlarmThresholdDetails := _AlarmThresholdDetails{} + + err = json.Unmarshal(data, &varAlarmThresholdDetails) + + if err != nil { + return err + } + + *o = AlarmThresholdDetails(varAlarmThresholdDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + delete(additionalProperties, "stateLimit") + delete(additionalProperties, "unit") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlarmThresholdDetails struct { + value *AlarmThresholdDetails + isSet bool +} + +func (v NullableAlarmThresholdDetails) Get() *AlarmThresholdDetails { + return v.value +} + +func (v *NullableAlarmThresholdDetails) Set(val *AlarmThresholdDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlarmThresholdDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlarmThresholdDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlarmThresholdDetails(val *AlarmThresholdDetails) *NullableAlarmThresholdDetails { + return &NullableAlarmThresholdDetails{value: val, isSet: true} +} + +func (v NullableAlarmThresholdDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlarmThresholdDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert.go b/services/smartview/model_alert.go new file mode 100644 index 00000000..24d625b3 --- /dev/null +++ b/services/smartview/model_alert.go @@ -0,0 +1,628 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Alert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Alert{} + +// Alert message data +type Alert struct { + Asset AlertAssetDetails `json:"asset"` + // conditional + Conditional *string `json:"conditional,omitempty"` + // data quality: Good | Bad | Uncertain + DataQuality *string `json:"dataQuality,omitempty"` + // event type + EventType *string `json:"eventType,omitempty"` + // heartbeat + Heartbeat *bool `json:"heartbeat,omitempty"` + // ibx + Ibx string `json:"ibx"` + // id + Id *string `json:"id,omitempty"` + // region + Region *string `json:"region,omitempty"` + // unique message id + StreamId string `json:"streamId"` + Tag AlertTagDetails `json:"tag"` + Threshold AlertThresholdDetails `json:"threshold"` + // alert triggered time + TriggeredTime *string `json:"triggeredTime,omitempty"` + // type + Type *string `json:"type,omitempty"` + // type id + TypeId *string `json:"typeId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Alert Alert + +// NewAlert instantiates a new Alert 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 NewAlert(asset AlertAssetDetails, ibx string, streamId string, tag AlertTagDetails, threshold AlertThresholdDetails) *Alert { + this := Alert{} + this.Asset = asset + this.Ibx = ibx + this.StreamId = streamId + this.Tag = tag + this.Threshold = threshold + return &this +} + +// NewAlertWithDefaults instantiates a new Alert 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 NewAlertWithDefaults() *Alert { + this := Alert{} + return &this +} + +// GetAsset returns the Asset field value +func (o *Alert) GetAsset() AlertAssetDetails { + if o == nil { + var ret AlertAssetDetails + return ret + } + + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value +// and a boolean to check if the value has been set. +func (o *Alert) GetAssetOk() (*AlertAssetDetails, bool) { + if o == nil { + return nil, false + } + return &o.Asset, true +} + +// SetAsset sets field value +func (o *Alert) SetAsset(v AlertAssetDetails) { + o.Asset = v +} + +// GetConditional returns the Conditional field value if set, zero value otherwise. +func (o *Alert) GetConditional() string { + if o == nil || IsNil(o.Conditional) { + var ret string + return ret + } + return *o.Conditional +} + +// GetConditionalOk returns a tuple with the Conditional field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetConditionalOk() (*string, bool) { + if o == nil || IsNil(o.Conditional) { + return nil, false + } + return o.Conditional, true +} + +// HasConditional returns a boolean if a field has been set. +func (o *Alert) HasConditional() bool { + if o != nil && !IsNil(o.Conditional) { + return true + } + + return false +} + +// SetConditional gets a reference to the given string and assigns it to the Conditional field. +func (o *Alert) SetConditional(v string) { + o.Conditional = &v +} + +// GetDataQuality returns the DataQuality field value if set, zero value otherwise. +func (o *Alert) GetDataQuality() string { + if o == nil || IsNil(o.DataQuality) { + var ret string + return ret + } + return *o.DataQuality +} + +// GetDataQualityOk returns a tuple with the DataQuality field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetDataQualityOk() (*string, bool) { + if o == nil || IsNil(o.DataQuality) { + return nil, false + } + return o.DataQuality, true +} + +// HasDataQuality returns a boolean if a field has been set. +func (o *Alert) HasDataQuality() bool { + if o != nil && !IsNil(o.DataQuality) { + return true + } + + return false +} + +// SetDataQuality gets a reference to the given string and assigns it to the DataQuality field. +func (o *Alert) SetDataQuality(v string) { + o.DataQuality = &v +} + +// GetEventType returns the EventType field value if set, zero value otherwise. +func (o *Alert) GetEventType() string { + if o == nil || IsNil(o.EventType) { + var ret string + return ret + } + return *o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetEventTypeOk() (*string, bool) { + if o == nil || IsNil(o.EventType) { + return nil, false + } + return o.EventType, true +} + +// HasEventType returns a boolean if a field has been set. +func (o *Alert) HasEventType() bool { + if o != nil && !IsNil(o.EventType) { + return true + } + + return false +} + +// SetEventType gets a reference to the given string and assigns it to the EventType field. +func (o *Alert) SetEventType(v string) { + o.EventType = &v +} + +// GetHeartbeat returns the Heartbeat field value if set, zero value otherwise. +func (o *Alert) GetHeartbeat() bool { + if o == nil || IsNil(o.Heartbeat) { + var ret bool + return ret + } + return *o.Heartbeat +} + +// GetHeartbeatOk returns a tuple with the Heartbeat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetHeartbeatOk() (*bool, bool) { + if o == nil || IsNil(o.Heartbeat) { + return nil, false + } + return o.Heartbeat, true +} + +// HasHeartbeat returns a boolean if a field has been set. +func (o *Alert) HasHeartbeat() bool { + if o != nil && !IsNil(o.Heartbeat) { + return true + } + + return false +} + +// SetHeartbeat gets a reference to the given bool and assigns it to the Heartbeat field. +func (o *Alert) SetHeartbeat(v bool) { + o.Heartbeat = &v +} + +// GetIbx returns the Ibx field value +func (o *Alert) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *Alert) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *Alert) SetIbx(v string) { + o.Ibx = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *Alert) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *Alert) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *Alert) SetId(v string) { + o.Id = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *Alert) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *Alert) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *Alert) SetRegion(v string) { + o.Region = &v +} + +// GetStreamId returns the StreamId field value +func (o *Alert) GetStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.StreamId +} + +// GetStreamIdOk returns a tuple with the StreamId field value +// and a boolean to check if the value has been set. +func (o *Alert) GetStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StreamId, true +} + +// SetStreamId sets field value +func (o *Alert) SetStreamId(v string) { + o.StreamId = v +} + +// GetTag returns the Tag field value +func (o *Alert) GetTag() AlertTagDetails { + if o == nil { + var ret AlertTagDetails + return ret + } + + return o.Tag +} + +// GetTagOk returns a tuple with the Tag field value +// and a boolean to check if the value has been set. +func (o *Alert) GetTagOk() (*AlertTagDetails, bool) { + if o == nil { + return nil, false + } + return &o.Tag, true +} + +// SetTag sets field value +func (o *Alert) SetTag(v AlertTagDetails) { + o.Tag = v +} + +// GetThreshold returns the Threshold field value +func (o *Alert) GetThreshold() AlertThresholdDetails { + if o == nil { + var ret AlertThresholdDetails + return ret + } + + return o.Threshold +} + +// GetThresholdOk returns a tuple with the Threshold field value +// and a boolean to check if the value has been set. +func (o *Alert) GetThresholdOk() (*AlertThresholdDetails, bool) { + if o == nil { + return nil, false + } + return &o.Threshold, true +} + +// SetThreshold sets field value +func (o *Alert) SetThreshold(v AlertThresholdDetails) { + o.Threshold = v +} + +// GetTriggeredTime returns the TriggeredTime field value if set, zero value otherwise. +func (o *Alert) GetTriggeredTime() string { + if o == nil || IsNil(o.TriggeredTime) { + var ret string + return ret + } + return *o.TriggeredTime +} + +// GetTriggeredTimeOk returns a tuple with the TriggeredTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetTriggeredTimeOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredTime) { + return nil, false + } + return o.TriggeredTime, true +} + +// HasTriggeredTime returns a boolean if a field has been set. +func (o *Alert) HasTriggeredTime() bool { + if o != nil && !IsNil(o.TriggeredTime) { + return true + } + + return false +} + +// SetTriggeredTime gets a reference to the given string and assigns it to the TriggeredTime field. +func (o *Alert) SetTriggeredTime(v string) { + o.TriggeredTime = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Alert) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Alert) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Alert) SetType(v string) { + o.Type = &v +} + +// GetTypeId returns the TypeId field value if set, zero value otherwise. +func (o *Alert) GetTypeId() string { + if o == nil || IsNil(o.TypeId) { + var ret string + return ret + } + return *o.TypeId +} + +// GetTypeIdOk returns a tuple with the TypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alert) GetTypeIdOk() (*string, bool) { + if o == nil || IsNil(o.TypeId) { + return nil, false + } + return o.TypeId, true +} + +// HasTypeId returns a boolean if a field has been set. +func (o *Alert) HasTypeId() bool { + if o != nil && !IsNil(o.TypeId) { + return true + } + + return false +} + +// SetTypeId gets a reference to the given string and assigns it to the TypeId field. +func (o *Alert) SetTypeId(v string) { + o.TypeId = &v +} + +func (o Alert) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Alert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["asset"] = o.Asset + if !IsNil(o.Conditional) { + toSerialize["conditional"] = o.Conditional + } + if !IsNil(o.DataQuality) { + toSerialize["dataQuality"] = o.DataQuality + } + if !IsNil(o.EventType) { + toSerialize["eventType"] = o.EventType + } + if !IsNil(o.Heartbeat) { + toSerialize["heartbeat"] = o.Heartbeat + } + toSerialize["ibx"] = o.Ibx + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + toSerialize["streamId"] = o.StreamId + toSerialize["tag"] = o.Tag + toSerialize["threshold"] = o.Threshold + if !IsNil(o.TriggeredTime) { + toSerialize["triggeredTime"] = o.TriggeredTime + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.TypeId) { + toSerialize["typeId"] = o.TypeId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Alert) 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{ + "asset", + "ibx", + "streamId", + "tag", + "threshold", + } + + 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) + } + } + + varAlert := _Alert{} + + err = json.Unmarshal(data, &varAlert) + + if err != nil { + return err + } + + *o = Alert(varAlert) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asset") + delete(additionalProperties, "conditional") + delete(additionalProperties, "dataQuality") + delete(additionalProperties, "eventType") + delete(additionalProperties, "heartbeat") + delete(additionalProperties, "ibx") + delete(additionalProperties, "id") + delete(additionalProperties, "region") + delete(additionalProperties, "streamId") + delete(additionalProperties, "tag") + delete(additionalProperties, "threshold") + delete(additionalProperties, "triggeredTime") + delete(additionalProperties, "type") + delete(additionalProperties, "typeId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlert struct { + value *Alert + isSet bool +} + +func (v NullableAlert) Get() *Alert { + return v.value +} + +func (v *NullableAlert) Set(val *Alert) { + v.value = val + v.isSet = true +} + +func (v NullableAlert) IsSet() bool { + return v.isSet +} + +func (v *NullableAlert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlert(val *Alert) *NullableAlert { + return &NullableAlert{value: val, isSet: true} +} + +func (v NullableAlert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_activity_log.go b/services/smartview/model_alert_activity_log.go new file mode 100644 index 00000000..2456a6ad --- /dev/null +++ b/services/smartview/model_alert_activity_log.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertActivityLog type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertActivityLog{} + +// AlertActivityLog struct for AlertActivityLog +type AlertActivityLog struct { + PayLoad []AlertActivityLogObj `json:"payLoad,omitempty"` + Status *Status `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertActivityLog AlertActivityLog + +// NewAlertActivityLog instantiates a new AlertActivityLog 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 NewAlertActivityLog() *AlertActivityLog { + this := AlertActivityLog{} + return &this +} + +// NewAlertActivityLogWithDefaults instantiates a new AlertActivityLog 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 NewAlertActivityLogWithDefaults() *AlertActivityLog { + this := AlertActivityLog{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *AlertActivityLog) GetPayLoad() []AlertActivityLogObj { + if o == nil || IsNil(o.PayLoad) { + var ret []AlertActivityLogObj + return ret + } + return o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertActivityLog) GetPayLoadOk() ([]AlertActivityLogObj, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *AlertActivityLog) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given []AlertActivityLogObj and assigns it to the PayLoad field. +func (o *AlertActivityLog) SetPayLoad(v []AlertActivityLogObj) { + o.PayLoad = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AlertActivityLog) GetStatus() Status { + if o == nil || IsNil(o.Status) { + var ret Status + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertActivityLog) GetStatusOk() (*Status, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AlertActivityLog) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given Status and assigns it to the Status field. +func (o *AlertActivityLog) SetStatus(v Status) { + o.Status = &v +} + +func (o AlertActivityLog) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertActivityLog) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertActivityLog) UnmarshalJSON(data []byte) (err error) { + varAlertActivityLog := _AlertActivityLog{} + + err = json.Unmarshal(data, &varAlertActivityLog) + + if err != nil { + return err + } + + *o = AlertActivityLog(varAlertActivityLog) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertActivityLog struct { + value *AlertActivityLog + isSet bool +} + +func (v NullableAlertActivityLog) Get() *AlertActivityLog { + return v.value +} + +func (v *NullableAlertActivityLog) Set(val *AlertActivityLog) { + v.value = val + v.isSet = true +} + +func (v NullableAlertActivityLog) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertActivityLog) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertActivityLog(val *AlertActivityLog) *NullableAlertActivityLog { + return &NullableAlertActivityLog{value: val, isSet: true} +} + +func (v NullableAlertActivityLog) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertActivityLog) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_activity_log_obj.go b/services/smartview/model_alert_activity_log_obj.go new file mode 100644 index 00000000..d0cf3b79 --- /dev/null +++ b/services/smartview/model_alert_activity_log_obj.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertActivityLogObj type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertActivityLogObj{} + +// AlertActivityLogObj struct for AlertActivityLogObj +type AlertActivityLogObj struct { + Alerts []AlertDto2 `json:"alerts,omitempty"` + // totalCount + TotalCount *float32 `json:"totalCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertActivityLogObj AlertActivityLogObj + +// NewAlertActivityLogObj instantiates a new AlertActivityLogObj 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 NewAlertActivityLogObj() *AlertActivityLogObj { + this := AlertActivityLogObj{} + return &this +} + +// NewAlertActivityLogObjWithDefaults instantiates a new AlertActivityLogObj 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 NewAlertActivityLogObjWithDefaults() *AlertActivityLogObj { + this := AlertActivityLogObj{} + return &this +} + +// GetAlerts returns the Alerts field value if set, zero value otherwise. +func (o *AlertActivityLogObj) GetAlerts() []AlertDto2 { + if o == nil || IsNil(o.Alerts) { + var ret []AlertDto2 + return ret + } + return o.Alerts +} + +// GetAlertsOk returns a tuple with the Alerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertActivityLogObj) GetAlertsOk() ([]AlertDto2, bool) { + if o == nil || IsNil(o.Alerts) { + return nil, false + } + return o.Alerts, true +} + +// HasAlerts returns a boolean if a field has been set. +func (o *AlertActivityLogObj) HasAlerts() bool { + if o != nil && !IsNil(o.Alerts) { + return true + } + + return false +} + +// SetAlerts gets a reference to the given []AlertDto2 and assigns it to the Alerts field. +func (o *AlertActivityLogObj) SetAlerts(v []AlertDto2) { + o.Alerts = v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *AlertActivityLogObj) GetTotalCount() float32 { + if o == nil || IsNil(o.TotalCount) { + var ret float32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertActivityLogObj) GetTotalCountOk() (*float32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *AlertActivityLogObj) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given float32 and assigns it to the TotalCount field. +func (o *AlertActivityLogObj) SetTotalCount(v float32) { + o.TotalCount = &v +} + +func (o AlertActivityLogObj) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertActivityLogObj) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alerts) { + toSerialize["alerts"] = o.Alerts + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertActivityLogObj) UnmarshalJSON(data []byte) (err error) { + varAlertActivityLogObj := _AlertActivityLogObj{} + + err = json.Unmarshal(data, &varAlertActivityLogObj) + + if err != nil { + return err + } + + *o = AlertActivityLogObj(varAlertActivityLogObj) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alerts") + delete(additionalProperties, "totalCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertActivityLogObj struct { + value *AlertActivityLogObj + isSet bool +} + +func (v NullableAlertActivityLogObj) Get() *AlertActivityLogObj { + return v.value +} + +func (v *NullableAlertActivityLogObj) Set(val *AlertActivityLogObj) { + v.value = val + v.isSet = true +} + +func (v NullableAlertActivityLogObj) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertActivityLogObj) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertActivityLogObj(val *AlertActivityLogObj) *NullableAlertActivityLogObj { + return &NullableAlertActivityLogObj{value: val, isSet: true} +} + +func (v NullableAlertActivityLogObj) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertActivityLogObj) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_asset_details.go b/services/smartview/model_alert_asset_details.go new file mode 100644 index 00000000..31c1035b --- /dev/null +++ b/services/smartview/model_alert_asset_details.go @@ -0,0 +1,232 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertAssetDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertAssetDetails{} + +// AlertAssetDetails asset details +type AlertAssetDetails struct { + // asset classification + Classification *string `json:"classification,omitempty"` + // asset id + Id *string `json:"id,omitempty"` + // asset type + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertAssetDetails AlertAssetDetails + +// NewAlertAssetDetails instantiates a new AlertAssetDetails 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 NewAlertAssetDetails() *AlertAssetDetails { + this := AlertAssetDetails{} + return &this +} + +// NewAlertAssetDetailsWithDefaults instantiates a new AlertAssetDetails 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 NewAlertAssetDetailsWithDefaults() *AlertAssetDetails { + this := AlertAssetDetails{} + return &this +} + +// GetClassification returns the Classification field value if set, zero value otherwise. +func (o *AlertAssetDetails) GetClassification() string { + if o == nil || IsNil(o.Classification) { + var ret string + return ret + } + return *o.Classification +} + +// GetClassificationOk returns a tuple with the Classification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertAssetDetails) GetClassificationOk() (*string, bool) { + if o == nil || IsNil(o.Classification) { + return nil, false + } + return o.Classification, true +} + +// HasClassification returns a boolean if a field has been set. +func (o *AlertAssetDetails) HasClassification() bool { + if o != nil && !IsNil(o.Classification) { + return true + } + + return false +} + +// SetClassification gets a reference to the given string and assigns it to the Classification field. +func (o *AlertAssetDetails) SetClassification(v string) { + o.Classification = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertAssetDetails) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertAssetDetails) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertAssetDetails) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlertAssetDetails) SetId(v string) { + o.Id = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AlertAssetDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertAssetDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AlertAssetDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AlertAssetDetails) SetType(v string) { + o.Type = &v +} + +func (o AlertAssetDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertAssetDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Classification) { + toSerialize["classification"] = o.Classification + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertAssetDetails) UnmarshalJSON(data []byte) (err error) { + varAlertAssetDetails := _AlertAssetDetails{} + + err = json.Unmarshal(data, &varAlertAssetDetails) + + if err != nil { + return err + } + + *o = AlertAssetDetails(varAlertAssetDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "classification") + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertAssetDetails struct { + value *AlertAssetDetails + isSet bool +} + +func (v NullableAlertAssetDetails) Get() *AlertAssetDetails { + return v.value +} + +func (v *NullableAlertAssetDetails) Set(val *AlertAssetDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlertAssetDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertAssetDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertAssetDetails(val *AlertAssetDetails) *NullableAlertAssetDetails { + return &NullableAlertAssetDetails{value: val, isSet: true} +} + +func (v NullableAlertAssetDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertAssetDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_dto1.go b/services/smartview/model_alert_dto1.go new file mode 100644 index 00000000..a907d75b --- /dev/null +++ b/services/smartview/model_alert_dto1.go @@ -0,0 +1,1195 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertDto1 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertDto1{} + +// AlertDto1 struct for AlertDto1 +type AlertDto1 struct { + AccountNo *string `json:"accountNo,omitempty"` + // isAlertPaused + AlertPaused *bool `json:"alertPaused,omitempty"` + AlertType *AlertType `json:"alertType,omitempty"` + ConditionalAlert *string `json:"conditionalAlert,omitempty"` + Country *string `json:"country,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + // createdOn + CreatedOn *float32 `json:"createdOn,omitempty"` + CustomerAssets []CustomerAssets `json:"customerAssets,omitempty"` + EnabledAction *string `json:"enabledAction,omitempty"` + FormatedSection *string `json:"formatedSection,omitempty"` + HeartbeatType *string `json:"heartbeatType,omitempty"` + Ibx *string `json:"ibx,omitempty"` + Id *string `json:"id,omitempty"` + InfraAssets []CustomerAssets `json:"infraAssets,omitempty"` + IsDuplicate *bool `json:"isDuplicate,omitempty"` + // lastTriggeredOn + LastTriggeredOn *float32 `json:"lastTriggeredOn,omitempty"` + Metro *string `json:"metro,omitempty"` + // modifiedOn + ModifiedOn *float32 `json:"modifiedOn,omitempty"` + Recipients []RecipientsArray `json:"recipients,omitempty"` + Region *string `json:"region,omitempty"` + Section *string `json:"section,omitempty"` + Status *string `json:"status,omitempty"` + ThresholdUnit *string `json:"thresholdUnit,omitempty"` + ThresholdValue *string `json:"thresholdValue,omitempty"` + ThresholdValueMax *string `json:"thresholdValueMax,omitempty"` + ThresholdValueMin *string `json:"thresholdValueMin,omitempty"` + Ucmid *string `json:"ucmid,omitempty"` + Uom *string `json:"uom,omitempty"` + UserId *string `json:"userId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertDto1 AlertDto1 + +// NewAlertDto1 instantiates a new AlertDto1 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 NewAlertDto1() *AlertDto1 { + this := AlertDto1{} + return &this +} + +// NewAlertDto1WithDefaults instantiates a new AlertDto1 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 NewAlertDto1WithDefaults() *AlertDto1 { + this := AlertDto1{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *AlertDto1) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *AlertDto1) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *AlertDto1) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetAlertPaused returns the AlertPaused field value if set, zero value otherwise. +func (o *AlertDto1) GetAlertPaused() bool { + if o == nil || IsNil(o.AlertPaused) { + var ret bool + return ret + } + return *o.AlertPaused +} + +// GetAlertPausedOk returns a tuple with the AlertPaused field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetAlertPausedOk() (*bool, bool) { + if o == nil || IsNil(o.AlertPaused) { + return nil, false + } + return o.AlertPaused, true +} + +// HasAlertPaused returns a boolean if a field has been set. +func (o *AlertDto1) HasAlertPaused() bool { + if o != nil && !IsNil(o.AlertPaused) { + return true + } + + return false +} + +// SetAlertPaused gets a reference to the given bool and assigns it to the AlertPaused field. +func (o *AlertDto1) SetAlertPaused(v bool) { + o.AlertPaused = &v +} + +// GetAlertType returns the AlertType field value if set, zero value otherwise. +func (o *AlertDto1) GetAlertType() AlertType { + if o == nil || IsNil(o.AlertType) { + var ret AlertType + return ret + } + return *o.AlertType +} + +// GetAlertTypeOk returns a tuple with the AlertType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetAlertTypeOk() (*AlertType, bool) { + if o == nil || IsNil(o.AlertType) { + return nil, false + } + return o.AlertType, true +} + +// HasAlertType returns a boolean if a field has been set. +func (o *AlertDto1) HasAlertType() bool { + if o != nil && !IsNil(o.AlertType) { + return true + } + + return false +} + +// SetAlertType gets a reference to the given AlertType and assigns it to the AlertType field. +func (o *AlertDto1) SetAlertType(v AlertType) { + o.AlertType = &v +} + +// GetConditionalAlert returns the ConditionalAlert field value if set, zero value otherwise. +func (o *AlertDto1) GetConditionalAlert() string { + if o == nil || IsNil(o.ConditionalAlert) { + var ret string + return ret + } + return *o.ConditionalAlert +} + +// GetConditionalAlertOk returns a tuple with the ConditionalAlert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetConditionalAlertOk() (*string, bool) { + if o == nil || IsNil(o.ConditionalAlert) { + return nil, false + } + return o.ConditionalAlert, true +} + +// HasConditionalAlert returns a boolean if a field has been set. +func (o *AlertDto1) HasConditionalAlert() bool { + if o != nil && !IsNil(o.ConditionalAlert) { + return true + } + + return false +} + +// SetConditionalAlert gets a reference to the given string and assigns it to the ConditionalAlert field. +func (o *AlertDto1) SetConditionalAlert(v string) { + o.ConditionalAlert = &v +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *AlertDto1) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *AlertDto1) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *AlertDto1) SetCountry(v string) { + o.Country = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *AlertDto1) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *AlertDto1) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *AlertDto1) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedOn returns the CreatedOn field value if set, zero value otherwise. +func (o *AlertDto1) GetCreatedOn() float32 { + if o == nil || IsNil(o.CreatedOn) { + var ret float32 + return ret + } + return *o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetCreatedOnOk() (*float32, bool) { + if o == nil || IsNil(o.CreatedOn) { + return nil, false + } + return o.CreatedOn, true +} + +// HasCreatedOn returns a boolean if a field has been set. +func (o *AlertDto1) HasCreatedOn() bool { + if o != nil && !IsNil(o.CreatedOn) { + return true + } + + return false +} + +// SetCreatedOn gets a reference to the given float32 and assigns it to the CreatedOn field. +func (o *AlertDto1) SetCreatedOn(v float32) { + o.CreatedOn = &v +} + +// GetCustomerAssets returns the CustomerAssets field value if set, zero value otherwise. +func (o *AlertDto1) GetCustomerAssets() []CustomerAssets { + if o == nil || IsNil(o.CustomerAssets) { + var ret []CustomerAssets + return ret + } + return o.CustomerAssets +} + +// GetCustomerAssetsOk returns a tuple with the CustomerAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetCustomerAssetsOk() ([]CustomerAssets, bool) { + if o == nil || IsNil(o.CustomerAssets) { + return nil, false + } + return o.CustomerAssets, true +} + +// HasCustomerAssets returns a boolean if a field has been set. +func (o *AlertDto1) HasCustomerAssets() bool { + if o != nil && !IsNil(o.CustomerAssets) { + return true + } + + return false +} + +// SetCustomerAssets gets a reference to the given []CustomerAssets and assigns it to the CustomerAssets field. +func (o *AlertDto1) SetCustomerAssets(v []CustomerAssets) { + o.CustomerAssets = v +} + +// GetEnabledAction returns the EnabledAction field value if set, zero value otherwise. +func (o *AlertDto1) GetEnabledAction() string { + if o == nil || IsNil(o.EnabledAction) { + var ret string + return ret + } + return *o.EnabledAction +} + +// GetEnabledActionOk returns a tuple with the EnabledAction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetEnabledActionOk() (*string, bool) { + if o == nil || IsNil(o.EnabledAction) { + return nil, false + } + return o.EnabledAction, true +} + +// HasEnabledAction returns a boolean if a field has been set. +func (o *AlertDto1) HasEnabledAction() bool { + if o != nil && !IsNil(o.EnabledAction) { + return true + } + + return false +} + +// SetEnabledAction gets a reference to the given string and assigns it to the EnabledAction field. +func (o *AlertDto1) SetEnabledAction(v string) { + o.EnabledAction = &v +} + +// GetFormatedSection returns the FormatedSection field value if set, zero value otherwise. +func (o *AlertDto1) GetFormatedSection() string { + if o == nil || IsNil(o.FormatedSection) { + var ret string + return ret + } + return *o.FormatedSection +} + +// GetFormatedSectionOk returns a tuple with the FormatedSection field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetFormatedSectionOk() (*string, bool) { + if o == nil || IsNil(o.FormatedSection) { + return nil, false + } + return o.FormatedSection, true +} + +// HasFormatedSection returns a boolean if a field has been set. +func (o *AlertDto1) HasFormatedSection() bool { + if o != nil && !IsNil(o.FormatedSection) { + return true + } + + return false +} + +// SetFormatedSection gets a reference to the given string and assigns it to the FormatedSection field. +func (o *AlertDto1) SetFormatedSection(v string) { + o.FormatedSection = &v +} + +// GetHeartbeatType returns the HeartbeatType field value if set, zero value otherwise. +func (o *AlertDto1) GetHeartbeatType() string { + if o == nil || IsNil(o.HeartbeatType) { + var ret string + return ret + } + return *o.HeartbeatType +} + +// GetHeartbeatTypeOk returns a tuple with the HeartbeatType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetHeartbeatTypeOk() (*string, bool) { + if o == nil || IsNil(o.HeartbeatType) { + return nil, false + } + return o.HeartbeatType, true +} + +// HasHeartbeatType returns a boolean if a field has been set. +func (o *AlertDto1) HasHeartbeatType() bool { + if o != nil && !IsNil(o.HeartbeatType) { + return true + } + + return false +} + +// SetHeartbeatType gets a reference to the given string and assigns it to the HeartbeatType field. +func (o *AlertDto1) SetHeartbeatType(v string) { + o.HeartbeatType = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *AlertDto1) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *AlertDto1) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *AlertDto1) SetIbx(v string) { + o.Ibx = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertDto1) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertDto1) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlertDto1) SetId(v string) { + o.Id = &v +} + +// GetInfraAssets returns the InfraAssets field value if set, zero value otherwise. +func (o *AlertDto1) GetInfraAssets() []CustomerAssets { + if o == nil || IsNil(o.InfraAssets) { + var ret []CustomerAssets + return ret + } + return o.InfraAssets +} + +// GetInfraAssetsOk returns a tuple with the InfraAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetInfraAssetsOk() ([]CustomerAssets, bool) { + if o == nil || IsNil(o.InfraAssets) { + return nil, false + } + return o.InfraAssets, true +} + +// HasInfraAssets returns a boolean if a field has been set. +func (o *AlertDto1) HasInfraAssets() bool { + if o != nil && !IsNil(o.InfraAssets) { + return true + } + + return false +} + +// SetInfraAssets gets a reference to the given []CustomerAssets and assigns it to the InfraAssets field. +func (o *AlertDto1) SetInfraAssets(v []CustomerAssets) { + o.InfraAssets = v +} + +// GetIsDuplicate returns the IsDuplicate field value if set, zero value otherwise. +func (o *AlertDto1) GetIsDuplicate() bool { + if o == nil || IsNil(o.IsDuplicate) { + var ret bool + return ret + } + return *o.IsDuplicate +} + +// GetIsDuplicateOk returns a tuple with the IsDuplicate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetIsDuplicateOk() (*bool, bool) { + if o == nil || IsNil(o.IsDuplicate) { + return nil, false + } + return o.IsDuplicate, true +} + +// HasIsDuplicate returns a boolean if a field has been set. +func (o *AlertDto1) HasIsDuplicate() bool { + if o != nil && !IsNil(o.IsDuplicate) { + return true + } + + return false +} + +// SetIsDuplicate gets a reference to the given bool and assigns it to the IsDuplicate field. +func (o *AlertDto1) SetIsDuplicate(v bool) { + o.IsDuplicate = &v +} + +// GetLastTriggeredOn returns the LastTriggeredOn field value if set, zero value otherwise. +func (o *AlertDto1) GetLastTriggeredOn() float32 { + if o == nil || IsNil(o.LastTriggeredOn) { + var ret float32 + return ret + } + return *o.LastTriggeredOn +} + +// GetLastTriggeredOnOk returns a tuple with the LastTriggeredOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetLastTriggeredOnOk() (*float32, bool) { + if o == nil || IsNil(o.LastTriggeredOn) { + return nil, false + } + return o.LastTriggeredOn, true +} + +// HasLastTriggeredOn returns a boolean if a field has been set. +func (o *AlertDto1) HasLastTriggeredOn() bool { + if o != nil && !IsNil(o.LastTriggeredOn) { + return true + } + + return false +} + +// SetLastTriggeredOn gets a reference to the given float32 and assigns it to the LastTriggeredOn field. +func (o *AlertDto1) SetLastTriggeredOn(v float32) { + o.LastTriggeredOn = &v +} + +// GetMetro returns the Metro field value if set, zero value otherwise. +func (o *AlertDto1) GetMetro() string { + if o == nil || IsNil(o.Metro) { + var ret string + return ret + } + return *o.Metro +} + +// GetMetroOk returns a tuple with the Metro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetMetroOk() (*string, bool) { + if o == nil || IsNil(o.Metro) { + return nil, false + } + return o.Metro, true +} + +// HasMetro returns a boolean if a field has been set. +func (o *AlertDto1) HasMetro() bool { + if o != nil && !IsNil(o.Metro) { + return true + } + + return false +} + +// SetMetro gets a reference to the given string and assigns it to the Metro field. +func (o *AlertDto1) SetMetro(v string) { + o.Metro = &v +} + +// GetModifiedOn returns the ModifiedOn field value if set, zero value otherwise. +func (o *AlertDto1) GetModifiedOn() float32 { + if o == nil || IsNil(o.ModifiedOn) { + var ret float32 + return ret + } + return *o.ModifiedOn +} + +// GetModifiedOnOk returns a tuple with the ModifiedOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetModifiedOnOk() (*float32, bool) { + if o == nil || IsNil(o.ModifiedOn) { + return nil, false + } + return o.ModifiedOn, true +} + +// HasModifiedOn returns a boolean if a field has been set. +func (o *AlertDto1) HasModifiedOn() bool { + if o != nil && !IsNil(o.ModifiedOn) { + return true + } + + return false +} + +// SetModifiedOn gets a reference to the given float32 and assigns it to the ModifiedOn field. +func (o *AlertDto1) SetModifiedOn(v float32) { + o.ModifiedOn = &v +} + +// GetRecipients returns the Recipients field value if set, zero value otherwise. +func (o *AlertDto1) GetRecipients() []RecipientsArray { + if o == nil || IsNil(o.Recipients) { + var ret []RecipientsArray + return ret + } + return o.Recipients +} + +// GetRecipientsOk returns a tuple with the Recipients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetRecipientsOk() ([]RecipientsArray, bool) { + if o == nil || IsNil(o.Recipients) { + return nil, false + } + return o.Recipients, true +} + +// HasRecipients returns a boolean if a field has been set. +func (o *AlertDto1) HasRecipients() bool { + if o != nil && !IsNil(o.Recipients) { + return true + } + + return false +} + +// SetRecipients gets a reference to the given []RecipientsArray and assigns it to the Recipients field. +func (o *AlertDto1) SetRecipients(v []RecipientsArray) { + o.Recipients = v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *AlertDto1) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *AlertDto1) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *AlertDto1) SetRegion(v string) { + o.Region = &v +} + +// GetSection returns the Section field value if set, zero value otherwise. +func (o *AlertDto1) GetSection() string { + if o == nil || IsNil(o.Section) { + var ret string + return ret + } + return *o.Section +} + +// GetSectionOk returns a tuple with the Section field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetSectionOk() (*string, bool) { + if o == nil || IsNil(o.Section) { + return nil, false + } + return o.Section, true +} + +// HasSection returns a boolean if a field has been set. +func (o *AlertDto1) HasSection() bool { + if o != nil && !IsNil(o.Section) { + return true + } + + return false +} + +// SetSection gets a reference to the given string and assigns it to the Section field. +func (o *AlertDto1) SetSection(v string) { + o.Section = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AlertDto1) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AlertDto1) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *AlertDto1) SetStatus(v string) { + o.Status = &v +} + +// GetThresholdUnit returns the ThresholdUnit field value if set, zero value otherwise. +func (o *AlertDto1) GetThresholdUnit() string { + if o == nil || IsNil(o.ThresholdUnit) { + var ret string + return ret + } + return *o.ThresholdUnit +} + +// GetThresholdUnitOk returns a tuple with the ThresholdUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetThresholdUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdUnit) { + return nil, false + } + return o.ThresholdUnit, true +} + +// HasThresholdUnit returns a boolean if a field has been set. +func (o *AlertDto1) HasThresholdUnit() bool { + if o != nil && !IsNil(o.ThresholdUnit) { + return true + } + + return false +} + +// SetThresholdUnit gets a reference to the given string and assigns it to the ThresholdUnit field. +func (o *AlertDto1) SetThresholdUnit(v string) { + o.ThresholdUnit = &v +} + +// GetThresholdValue returns the ThresholdValue field value if set, zero value otherwise. +func (o *AlertDto1) GetThresholdValue() string { + if o == nil || IsNil(o.ThresholdValue) { + var ret string + return ret + } + return *o.ThresholdValue +} + +// GetThresholdValueOk returns a tuple with the ThresholdValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetThresholdValueOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValue) { + return nil, false + } + return o.ThresholdValue, true +} + +// HasThresholdValue returns a boolean if a field has been set. +func (o *AlertDto1) HasThresholdValue() bool { + if o != nil && !IsNil(o.ThresholdValue) { + return true + } + + return false +} + +// SetThresholdValue gets a reference to the given string and assigns it to the ThresholdValue field. +func (o *AlertDto1) SetThresholdValue(v string) { + o.ThresholdValue = &v +} + +// GetThresholdValueMax returns the ThresholdValueMax field value if set, zero value otherwise. +func (o *AlertDto1) GetThresholdValueMax() string { + if o == nil || IsNil(o.ThresholdValueMax) { + var ret string + return ret + } + return *o.ThresholdValueMax +} + +// GetThresholdValueMaxOk returns a tuple with the ThresholdValueMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetThresholdValueMaxOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValueMax) { + return nil, false + } + return o.ThresholdValueMax, true +} + +// HasThresholdValueMax returns a boolean if a field has been set. +func (o *AlertDto1) HasThresholdValueMax() bool { + if o != nil && !IsNil(o.ThresholdValueMax) { + return true + } + + return false +} + +// SetThresholdValueMax gets a reference to the given string and assigns it to the ThresholdValueMax field. +func (o *AlertDto1) SetThresholdValueMax(v string) { + o.ThresholdValueMax = &v +} + +// GetThresholdValueMin returns the ThresholdValueMin field value if set, zero value otherwise. +func (o *AlertDto1) GetThresholdValueMin() string { + if o == nil || IsNil(o.ThresholdValueMin) { + var ret string + return ret + } + return *o.ThresholdValueMin +} + +// GetThresholdValueMinOk returns a tuple with the ThresholdValueMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetThresholdValueMinOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValueMin) { + return nil, false + } + return o.ThresholdValueMin, true +} + +// HasThresholdValueMin returns a boolean if a field has been set. +func (o *AlertDto1) HasThresholdValueMin() bool { + if o != nil && !IsNil(o.ThresholdValueMin) { + return true + } + + return false +} + +// SetThresholdValueMin gets a reference to the given string and assigns it to the ThresholdValueMin field. +func (o *AlertDto1) SetThresholdValueMin(v string) { + o.ThresholdValueMin = &v +} + +// GetUcmid returns the Ucmid field value if set, zero value otherwise. +func (o *AlertDto1) GetUcmid() string { + if o == nil || IsNil(o.Ucmid) { + var ret string + return ret + } + return *o.Ucmid +} + +// GetUcmidOk returns a tuple with the Ucmid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetUcmidOk() (*string, bool) { + if o == nil || IsNil(o.Ucmid) { + return nil, false + } + return o.Ucmid, true +} + +// HasUcmid returns a boolean if a field has been set. +func (o *AlertDto1) HasUcmid() bool { + if o != nil && !IsNil(o.Ucmid) { + return true + } + + return false +} + +// SetUcmid gets a reference to the given string and assigns it to the Ucmid field. +func (o *AlertDto1) SetUcmid(v string) { + o.Ucmid = &v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *AlertDto1) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *AlertDto1) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *AlertDto1) SetUom(v string) { + o.Uom = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *AlertDto1) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto1) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *AlertDto1) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *AlertDto1) SetUserId(v string) { + o.UserId = &v +} + +func (o AlertDto1) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertDto1) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.AlertPaused) { + toSerialize["alertPaused"] = o.AlertPaused + } + if !IsNil(o.AlertType) { + toSerialize["alertType"] = o.AlertType + } + if !IsNil(o.ConditionalAlert) { + toSerialize["conditionalAlert"] = o.ConditionalAlert + } + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedOn) { + toSerialize["createdOn"] = o.CreatedOn + } + if !IsNil(o.CustomerAssets) { + toSerialize["customerAssets"] = o.CustomerAssets + } + if !IsNil(o.EnabledAction) { + toSerialize["enabledAction"] = o.EnabledAction + } + if !IsNil(o.FormatedSection) { + toSerialize["formatedSection"] = o.FormatedSection + } + if !IsNil(o.HeartbeatType) { + toSerialize["heartbeatType"] = o.HeartbeatType + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.InfraAssets) { + toSerialize["infraAssets"] = o.InfraAssets + } + if !IsNil(o.IsDuplicate) { + toSerialize["isDuplicate"] = o.IsDuplicate + } + if !IsNil(o.LastTriggeredOn) { + toSerialize["lastTriggeredOn"] = o.LastTriggeredOn + } + if !IsNil(o.Metro) { + toSerialize["metro"] = o.Metro + } + if !IsNil(o.ModifiedOn) { + toSerialize["modifiedOn"] = o.ModifiedOn + } + if !IsNil(o.Recipients) { + toSerialize["recipients"] = o.Recipients + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.Section) { + toSerialize["section"] = o.Section + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.ThresholdUnit) { + toSerialize["thresholdUnit"] = o.ThresholdUnit + } + if !IsNil(o.ThresholdValue) { + toSerialize["thresholdValue"] = o.ThresholdValue + } + if !IsNil(o.ThresholdValueMax) { + toSerialize["thresholdValueMax"] = o.ThresholdValueMax + } + if !IsNil(o.ThresholdValueMin) { + toSerialize["thresholdValueMin"] = o.ThresholdValueMin + } + if !IsNil(o.Ucmid) { + toSerialize["ucmid"] = o.Ucmid + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + if !IsNil(o.UserId) { + toSerialize["userId"] = o.UserId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertDto1) UnmarshalJSON(data []byte) (err error) { + varAlertDto1 := _AlertDto1{} + + err = json.Unmarshal(data, &varAlertDto1) + + if err != nil { + return err + } + + *o = AlertDto1(varAlertDto1) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "alertPaused") + delete(additionalProperties, "alertType") + delete(additionalProperties, "conditionalAlert") + delete(additionalProperties, "country") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdOn") + delete(additionalProperties, "customerAssets") + delete(additionalProperties, "enabledAction") + delete(additionalProperties, "formatedSection") + delete(additionalProperties, "heartbeatType") + delete(additionalProperties, "ibx") + delete(additionalProperties, "id") + delete(additionalProperties, "infraAssets") + delete(additionalProperties, "isDuplicate") + delete(additionalProperties, "lastTriggeredOn") + delete(additionalProperties, "metro") + delete(additionalProperties, "modifiedOn") + delete(additionalProperties, "recipients") + delete(additionalProperties, "region") + delete(additionalProperties, "section") + delete(additionalProperties, "status") + delete(additionalProperties, "thresholdUnit") + delete(additionalProperties, "thresholdValue") + delete(additionalProperties, "thresholdValueMax") + delete(additionalProperties, "thresholdValueMin") + delete(additionalProperties, "ucmid") + delete(additionalProperties, "uom") + delete(additionalProperties, "userId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertDto1 struct { + value *AlertDto1 + isSet bool +} + +func (v NullableAlertDto1) Get() *AlertDto1 { + return v.value +} + +func (v *NullableAlertDto1) Set(val *AlertDto1) { + v.value = val + v.isSet = true +} + +func (v NullableAlertDto1) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertDto1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertDto1(val *AlertDto1) *NullableAlertDto1 { + return &NullableAlertDto1{value: val, isSet: true} +} + +func (v NullableAlertDto1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertDto1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_dto2.go b/services/smartview/model_alert_dto2.go new file mode 100644 index 00000000..bca4234e --- /dev/null +++ b/services/smartview/model_alert_dto2.go @@ -0,0 +1,1527 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertDto2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertDto2{} + +// AlertDto2 struct for AlertDto2 +type AlertDto2 struct { + AccountNo *string `json:"accountNo,omitempty"` + Acknowledge *bool `json:"acknowledge,omitempty"` + AffectedCustomerAsset *string `json:"affectedCustomerAsset,omitempty"` + AlertType *AlertType `json:"alertType,omitempty"` + AlertTypeName *string `json:"alertTypeName,omitempty"` + Asset *string `json:"asset,omitempty"` + Assetclassification *string `json:"assetclassification,omitempty"` + Assetname *string `json:"assetname,omitempty"` + Assettype *string `json:"assettype,omitempty"` + ConditionalAlert []ConditionalAlert `json:"conditionalAlert,omitempty"` + Country *string `json:"country,omitempty"` + // createdOn + CreatedOn *float32 `json:"createdOn,omitempty"` + Currentvalue *string `json:"currentvalue,omitempty"` + Eventtype *string `json:"eventtype,omitempty"` + Ibx *string `json:"ibx,omitempty"` + Id *string `json:"id,omitempty"` + Lastmaintenance *string `json:"lastmaintenance,omitempty"` + Metro *string `json:"metro,omitempty"` + // modifiedOn + ModifiedOn *float32 `json:"modifiedOn,omitempty"` + NotificationType *string `json:"notificationType,omitempty"` + Region *string `json:"region,omitempty"` + Relatedincidents *string `json:"relatedincidents,omitempty"` + Resiliency *string `json:"resiliency,omitempty"` + Section *string `json:"section,omitempty"` + Severity *string `json:"severity,omitempty"` + Tagid *string `json:"tagid,omitempty"` + ThresholdUnit *string `json:"thresholdUnit,omitempty"` + ThresholdValue *string `json:"thresholdValue,omitempty"` + ThresholdValueMax *string `json:"thresholdValueMax,omitempty"` + ThresholdValueMin *string `json:"thresholdValueMin,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + Timeacknowledged *string `json:"timeacknowledged,omitempty"` + Timeprocessed *string `json:"timeprocessed,omitempty"` + TimetriggeredMilisec *string `json:"timetriggeredMilisec,omitempty"` + // lastTriggeredOn + TriggeredOn *float32 `json:"triggeredOn,omitempty"` + Type *string `json:"type,omitempty"` + Uom *string `json:"uom,omitempty"` + Year *string `json:"year,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertDto2 AlertDto2 + +// NewAlertDto2 instantiates a new AlertDto2 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 NewAlertDto2() *AlertDto2 { + this := AlertDto2{} + return &this +} + +// NewAlertDto2WithDefaults instantiates a new AlertDto2 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 NewAlertDto2WithDefaults() *AlertDto2 { + this := AlertDto2{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *AlertDto2) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *AlertDto2) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *AlertDto2) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetAcknowledge returns the Acknowledge field value if set, zero value otherwise. +func (o *AlertDto2) GetAcknowledge() bool { + if o == nil || IsNil(o.Acknowledge) { + var ret bool + return ret + } + return *o.Acknowledge +} + +// GetAcknowledgeOk returns a tuple with the Acknowledge field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAcknowledgeOk() (*bool, bool) { + if o == nil || IsNil(o.Acknowledge) { + return nil, false + } + return o.Acknowledge, true +} + +// HasAcknowledge returns a boolean if a field has been set. +func (o *AlertDto2) HasAcknowledge() bool { + if o != nil && !IsNil(o.Acknowledge) { + return true + } + + return false +} + +// SetAcknowledge gets a reference to the given bool and assigns it to the Acknowledge field. +func (o *AlertDto2) SetAcknowledge(v bool) { + o.Acknowledge = &v +} + +// GetAffectedCustomerAsset returns the AffectedCustomerAsset field value if set, zero value otherwise. +func (o *AlertDto2) GetAffectedCustomerAsset() string { + if o == nil || IsNil(o.AffectedCustomerAsset) { + var ret string + return ret + } + return *o.AffectedCustomerAsset +} + +// GetAffectedCustomerAssetOk returns a tuple with the AffectedCustomerAsset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAffectedCustomerAssetOk() (*string, bool) { + if o == nil || IsNil(o.AffectedCustomerAsset) { + return nil, false + } + return o.AffectedCustomerAsset, true +} + +// HasAffectedCustomerAsset returns a boolean if a field has been set. +func (o *AlertDto2) HasAffectedCustomerAsset() bool { + if o != nil && !IsNil(o.AffectedCustomerAsset) { + return true + } + + return false +} + +// SetAffectedCustomerAsset gets a reference to the given string and assigns it to the AffectedCustomerAsset field. +func (o *AlertDto2) SetAffectedCustomerAsset(v string) { + o.AffectedCustomerAsset = &v +} + +// GetAlertType returns the AlertType field value if set, zero value otherwise. +func (o *AlertDto2) GetAlertType() AlertType { + if o == nil || IsNil(o.AlertType) { + var ret AlertType + return ret + } + return *o.AlertType +} + +// GetAlertTypeOk returns a tuple with the AlertType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAlertTypeOk() (*AlertType, bool) { + if o == nil || IsNil(o.AlertType) { + return nil, false + } + return o.AlertType, true +} + +// HasAlertType returns a boolean if a field has been set. +func (o *AlertDto2) HasAlertType() bool { + if o != nil && !IsNil(o.AlertType) { + return true + } + + return false +} + +// SetAlertType gets a reference to the given AlertType and assigns it to the AlertType field. +func (o *AlertDto2) SetAlertType(v AlertType) { + o.AlertType = &v +} + +// GetAlertTypeName returns the AlertTypeName field value if set, zero value otherwise. +func (o *AlertDto2) GetAlertTypeName() string { + if o == nil || IsNil(o.AlertTypeName) { + var ret string + return ret + } + return *o.AlertTypeName +} + +// GetAlertTypeNameOk returns a tuple with the AlertTypeName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAlertTypeNameOk() (*string, bool) { + if o == nil || IsNil(o.AlertTypeName) { + return nil, false + } + return o.AlertTypeName, true +} + +// HasAlertTypeName returns a boolean if a field has been set. +func (o *AlertDto2) HasAlertTypeName() bool { + if o != nil && !IsNil(o.AlertTypeName) { + return true + } + + return false +} + +// SetAlertTypeName gets a reference to the given string and assigns it to the AlertTypeName field. +func (o *AlertDto2) SetAlertTypeName(v string) { + o.AlertTypeName = &v +} + +// GetAsset returns the Asset field value if set, zero value otherwise. +func (o *AlertDto2) GetAsset() string { + if o == nil || IsNil(o.Asset) { + var ret string + return ret + } + return *o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAssetOk() (*string, bool) { + if o == nil || IsNil(o.Asset) { + return nil, false + } + return o.Asset, true +} + +// HasAsset returns a boolean if a field has been set. +func (o *AlertDto2) HasAsset() bool { + if o != nil && !IsNil(o.Asset) { + return true + } + + return false +} + +// SetAsset gets a reference to the given string and assigns it to the Asset field. +func (o *AlertDto2) SetAsset(v string) { + o.Asset = &v +} + +// GetAssetclassification returns the Assetclassification field value if set, zero value otherwise. +func (o *AlertDto2) GetAssetclassification() string { + if o == nil || IsNil(o.Assetclassification) { + var ret string + return ret + } + return *o.Assetclassification +} + +// GetAssetclassificationOk returns a tuple with the Assetclassification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAssetclassificationOk() (*string, bool) { + if o == nil || IsNil(o.Assetclassification) { + return nil, false + } + return o.Assetclassification, true +} + +// HasAssetclassification returns a boolean if a field has been set. +func (o *AlertDto2) HasAssetclassification() bool { + if o != nil && !IsNil(o.Assetclassification) { + return true + } + + return false +} + +// SetAssetclassification gets a reference to the given string and assigns it to the Assetclassification field. +func (o *AlertDto2) SetAssetclassification(v string) { + o.Assetclassification = &v +} + +// GetAssetname returns the Assetname field value if set, zero value otherwise. +func (o *AlertDto2) GetAssetname() string { + if o == nil || IsNil(o.Assetname) { + var ret string + return ret + } + return *o.Assetname +} + +// GetAssetnameOk returns a tuple with the Assetname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAssetnameOk() (*string, bool) { + if o == nil || IsNil(o.Assetname) { + return nil, false + } + return o.Assetname, true +} + +// HasAssetname returns a boolean if a field has been set. +func (o *AlertDto2) HasAssetname() bool { + if o != nil && !IsNil(o.Assetname) { + return true + } + + return false +} + +// SetAssetname gets a reference to the given string and assigns it to the Assetname field. +func (o *AlertDto2) SetAssetname(v string) { + o.Assetname = &v +} + +// GetAssettype returns the Assettype field value if set, zero value otherwise. +func (o *AlertDto2) GetAssettype() string { + if o == nil || IsNil(o.Assettype) { + var ret string + return ret + } + return *o.Assettype +} + +// GetAssettypeOk returns a tuple with the Assettype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetAssettypeOk() (*string, bool) { + if o == nil || IsNil(o.Assettype) { + return nil, false + } + return o.Assettype, true +} + +// HasAssettype returns a boolean if a field has been set. +func (o *AlertDto2) HasAssettype() bool { + if o != nil && !IsNil(o.Assettype) { + return true + } + + return false +} + +// SetAssettype gets a reference to the given string and assigns it to the Assettype field. +func (o *AlertDto2) SetAssettype(v string) { + o.Assettype = &v +} + +// GetConditionalAlert returns the ConditionalAlert field value if set, zero value otherwise. +func (o *AlertDto2) GetConditionalAlert() []ConditionalAlert { + if o == nil || IsNil(o.ConditionalAlert) { + var ret []ConditionalAlert + return ret + } + return o.ConditionalAlert +} + +// GetConditionalAlertOk returns a tuple with the ConditionalAlert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetConditionalAlertOk() ([]ConditionalAlert, bool) { + if o == nil || IsNil(o.ConditionalAlert) { + return nil, false + } + return o.ConditionalAlert, true +} + +// HasConditionalAlert returns a boolean if a field has been set. +func (o *AlertDto2) HasConditionalAlert() bool { + if o != nil && !IsNil(o.ConditionalAlert) { + return true + } + + return false +} + +// SetConditionalAlert gets a reference to the given []ConditionalAlert and assigns it to the ConditionalAlert field. +func (o *AlertDto2) SetConditionalAlert(v []ConditionalAlert) { + o.ConditionalAlert = v +} + +// GetCountry returns the Country field value if set, zero value otherwise. +func (o *AlertDto2) GetCountry() string { + if o == nil || IsNil(o.Country) { + var ret string + return ret + } + return *o.Country +} + +// GetCountryOk returns a tuple with the Country field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetCountryOk() (*string, bool) { + if o == nil || IsNil(o.Country) { + return nil, false + } + return o.Country, true +} + +// HasCountry returns a boolean if a field has been set. +func (o *AlertDto2) HasCountry() bool { + if o != nil && !IsNil(o.Country) { + return true + } + + return false +} + +// SetCountry gets a reference to the given string and assigns it to the Country field. +func (o *AlertDto2) SetCountry(v string) { + o.Country = &v +} + +// GetCreatedOn returns the CreatedOn field value if set, zero value otherwise. +func (o *AlertDto2) GetCreatedOn() float32 { + if o == nil || IsNil(o.CreatedOn) { + var ret float32 + return ret + } + return *o.CreatedOn +} + +// GetCreatedOnOk returns a tuple with the CreatedOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetCreatedOnOk() (*float32, bool) { + if o == nil || IsNil(o.CreatedOn) { + return nil, false + } + return o.CreatedOn, true +} + +// HasCreatedOn returns a boolean if a field has been set. +func (o *AlertDto2) HasCreatedOn() bool { + if o != nil && !IsNil(o.CreatedOn) { + return true + } + + return false +} + +// SetCreatedOn gets a reference to the given float32 and assigns it to the CreatedOn field. +func (o *AlertDto2) SetCreatedOn(v float32) { + o.CreatedOn = &v +} + +// GetCurrentvalue returns the Currentvalue field value if set, zero value otherwise. +func (o *AlertDto2) GetCurrentvalue() string { + if o == nil || IsNil(o.Currentvalue) { + var ret string + return ret + } + return *o.Currentvalue +} + +// GetCurrentvalueOk returns a tuple with the Currentvalue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetCurrentvalueOk() (*string, bool) { + if o == nil || IsNil(o.Currentvalue) { + return nil, false + } + return o.Currentvalue, true +} + +// HasCurrentvalue returns a boolean if a field has been set. +func (o *AlertDto2) HasCurrentvalue() bool { + if o != nil && !IsNil(o.Currentvalue) { + return true + } + + return false +} + +// SetCurrentvalue gets a reference to the given string and assigns it to the Currentvalue field. +func (o *AlertDto2) SetCurrentvalue(v string) { + o.Currentvalue = &v +} + +// GetEventtype returns the Eventtype field value if set, zero value otherwise. +func (o *AlertDto2) GetEventtype() string { + if o == nil || IsNil(o.Eventtype) { + var ret string + return ret + } + return *o.Eventtype +} + +// GetEventtypeOk returns a tuple with the Eventtype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetEventtypeOk() (*string, bool) { + if o == nil || IsNil(o.Eventtype) { + return nil, false + } + return o.Eventtype, true +} + +// HasEventtype returns a boolean if a field has been set. +func (o *AlertDto2) HasEventtype() bool { + if o != nil && !IsNil(o.Eventtype) { + return true + } + + return false +} + +// SetEventtype gets a reference to the given string and assigns it to the Eventtype field. +func (o *AlertDto2) SetEventtype(v string) { + o.Eventtype = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *AlertDto2) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *AlertDto2) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *AlertDto2) SetIbx(v string) { + o.Ibx = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertDto2) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertDto2) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlertDto2) SetId(v string) { + o.Id = &v +} + +// GetLastmaintenance returns the Lastmaintenance field value if set, zero value otherwise. +func (o *AlertDto2) GetLastmaintenance() string { + if o == nil || IsNil(o.Lastmaintenance) { + var ret string + return ret + } + return *o.Lastmaintenance +} + +// GetLastmaintenanceOk returns a tuple with the Lastmaintenance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetLastmaintenanceOk() (*string, bool) { + if o == nil || IsNil(o.Lastmaintenance) { + return nil, false + } + return o.Lastmaintenance, true +} + +// HasLastmaintenance returns a boolean if a field has been set. +func (o *AlertDto2) HasLastmaintenance() bool { + if o != nil && !IsNil(o.Lastmaintenance) { + return true + } + + return false +} + +// SetLastmaintenance gets a reference to the given string and assigns it to the Lastmaintenance field. +func (o *AlertDto2) SetLastmaintenance(v string) { + o.Lastmaintenance = &v +} + +// GetMetro returns the Metro field value if set, zero value otherwise. +func (o *AlertDto2) GetMetro() string { + if o == nil || IsNil(o.Metro) { + var ret string + return ret + } + return *o.Metro +} + +// GetMetroOk returns a tuple with the Metro field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetMetroOk() (*string, bool) { + if o == nil || IsNil(o.Metro) { + return nil, false + } + return o.Metro, true +} + +// HasMetro returns a boolean if a field has been set. +func (o *AlertDto2) HasMetro() bool { + if o != nil && !IsNil(o.Metro) { + return true + } + + return false +} + +// SetMetro gets a reference to the given string and assigns it to the Metro field. +func (o *AlertDto2) SetMetro(v string) { + o.Metro = &v +} + +// GetModifiedOn returns the ModifiedOn field value if set, zero value otherwise. +func (o *AlertDto2) GetModifiedOn() float32 { + if o == nil || IsNil(o.ModifiedOn) { + var ret float32 + return ret + } + return *o.ModifiedOn +} + +// GetModifiedOnOk returns a tuple with the ModifiedOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetModifiedOnOk() (*float32, bool) { + if o == nil || IsNil(o.ModifiedOn) { + return nil, false + } + return o.ModifiedOn, true +} + +// HasModifiedOn returns a boolean if a field has been set. +func (o *AlertDto2) HasModifiedOn() bool { + if o != nil && !IsNil(o.ModifiedOn) { + return true + } + + return false +} + +// SetModifiedOn gets a reference to the given float32 and assigns it to the ModifiedOn field. +func (o *AlertDto2) SetModifiedOn(v float32) { + o.ModifiedOn = &v +} + +// GetNotificationType returns the NotificationType field value if set, zero value otherwise. +func (o *AlertDto2) GetNotificationType() string { + if o == nil || IsNil(o.NotificationType) { + var ret string + return ret + } + return *o.NotificationType +} + +// GetNotificationTypeOk returns a tuple with the NotificationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetNotificationTypeOk() (*string, bool) { + if o == nil || IsNil(o.NotificationType) { + return nil, false + } + return o.NotificationType, true +} + +// HasNotificationType returns a boolean if a field has been set. +func (o *AlertDto2) HasNotificationType() bool { + if o != nil && !IsNil(o.NotificationType) { + return true + } + + return false +} + +// SetNotificationType gets a reference to the given string and assigns it to the NotificationType field. +func (o *AlertDto2) SetNotificationType(v string) { + o.NotificationType = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *AlertDto2) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *AlertDto2) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *AlertDto2) SetRegion(v string) { + o.Region = &v +} + +// GetRelatedincidents returns the Relatedincidents field value if set, zero value otherwise. +func (o *AlertDto2) GetRelatedincidents() string { + if o == nil || IsNil(o.Relatedincidents) { + var ret string + return ret + } + return *o.Relatedincidents +} + +// GetRelatedincidentsOk returns a tuple with the Relatedincidents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetRelatedincidentsOk() (*string, bool) { + if o == nil || IsNil(o.Relatedincidents) { + return nil, false + } + return o.Relatedincidents, true +} + +// HasRelatedincidents returns a boolean if a field has been set. +func (o *AlertDto2) HasRelatedincidents() bool { + if o != nil && !IsNil(o.Relatedincidents) { + return true + } + + return false +} + +// SetRelatedincidents gets a reference to the given string and assigns it to the Relatedincidents field. +func (o *AlertDto2) SetRelatedincidents(v string) { + o.Relatedincidents = &v +} + +// GetResiliency returns the Resiliency field value if set, zero value otherwise. +func (o *AlertDto2) GetResiliency() string { + if o == nil || IsNil(o.Resiliency) { + var ret string + return ret + } + return *o.Resiliency +} + +// GetResiliencyOk returns a tuple with the Resiliency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetResiliencyOk() (*string, bool) { + if o == nil || IsNil(o.Resiliency) { + return nil, false + } + return o.Resiliency, true +} + +// HasResiliency returns a boolean if a field has been set. +func (o *AlertDto2) HasResiliency() bool { + if o != nil && !IsNil(o.Resiliency) { + return true + } + + return false +} + +// SetResiliency gets a reference to the given string and assigns it to the Resiliency field. +func (o *AlertDto2) SetResiliency(v string) { + o.Resiliency = &v +} + +// GetSection returns the Section field value if set, zero value otherwise. +func (o *AlertDto2) GetSection() string { + if o == nil || IsNil(o.Section) { + var ret string + return ret + } + return *o.Section +} + +// GetSectionOk returns a tuple with the Section field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetSectionOk() (*string, bool) { + if o == nil || IsNil(o.Section) { + return nil, false + } + return o.Section, true +} + +// HasSection returns a boolean if a field has been set. +func (o *AlertDto2) HasSection() bool { + if o != nil && !IsNil(o.Section) { + return true + } + + return false +} + +// SetSection gets a reference to the given string and assigns it to the Section field. +func (o *AlertDto2) SetSection(v string) { + o.Section = &v +} + +// GetSeverity returns the Severity field value if set, zero value otherwise. +func (o *AlertDto2) GetSeverity() string { + if o == nil || IsNil(o.Severity) { + var ret string + return ret + } + return *o.Severity +} + +// GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetSeverityOk() (*string, bool) { + if o == nil || IsNil(o.Severity) { + return nil, false + } + return o.Severity, true +} + +// HasSeverity returns a boolean if a field has been set. +func (o *AlertDto2) HasSeverity() bool { + if o != nil && !IsNil(o.Severity) { + return true + } + + return false +} + +// SetSeverity gets a reference to the given string and assigns it to the Severity field. +func (o *AlertDto2) SetSeverity(v string) { + o.Severity = &v +} + +// GetTagid returns the Tagid field value if set, zero value otherwise. +func (o *AlertDto2) GetTagid() string { + if o == nil || IsNil(o.Tagid) { + var ret string + return ret + } + return *o.Tagid +} + +// GetTagidOk returns a tuple with the Tagid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTagidOk() (*string, bool) { + if o == nil || IsNil(o.Tagid) { + return nil, false + } + return o.Tagid, true +} + +// HasTagid returns a boolean if a field has been set. +func (o *AlertDto2) HasTagid() bool { + if o != nil && !IsNil(o.Tagid) { + return true + } + + return false +} + +// SetTagid gets a reference to the given string and assigns it to the Tagid field. +func (o *AlertDto2) SetTagid(v string) { + o.Tagid = &v +} + +// GetThresholdUnit returns the ThresholdUnit field value if set, zero value otherwise. +func (o *AlertDto2) GetThresholdUnit() string { + if o == nil || IsNil(o.ThresholdUnit) { + var ret string + return ret + } + return *o.ThresholdUnit +} + +// GetThresholdUnitOk returns a tuple with the ThresholdUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetThresholdUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdUnit) { + return nil, false + } + return o.ThresholdUnit, true +} + +// HasThresholdUnit returns a boolean if a field has been set. +func (o *AlertDto2) HasThresholdUnit() bool { + if o != nil && !IsNil(o.ThresholdUnit) { + return true + } + + return false +} + +// SetThresholdUnit gets a reference to the given string and assigns it to the ThresholdUnit field. +func (o *AlertDto2) SetThresholdUnit(v string) { + o.ThresholdUnit = &v +} + +// GetThresholdValue returns the ThresholdValue field value if set, zero value otherwise. +func (o *AlertDto2) GetThresholdValue() string { + if o == nil || IsNil(o.ThresholdValue) { + var ret string + return ret + } + return *o.ThresholdValue +} + +// GetThresholdValueOk returns a tuple with the ThresholdValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetThresholdValueOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValue) { + return nil, false + } + return o.ThresholdValue, true +} + +// HasThresholdValue returns a boolean if a field has been set. +func (o *AlertDto2) HasThresholdValue() bool { + if o != nil && !IsNil(o.ThresholdValue) { + return true + } + + return false +} + +// SetThresholdValue gets a reference to the given string and assigns it to the ThresholdValue field. +func (o *AlertDto2) SetThresholdValue(v string) { + o.ThresholdValue = &v +} + +// GetThresholdValueMax returns the ThresholdValueMax field value if set, zero value otherwise. +func (o *AlertDto2) GetThresholdValueMax() string { + if o == nil || IsNil(o.ThresholdValueMax) { + var ret string + return ret + } + return *o.ThresholdValueMax +} + +// GetThresholdValueMaxOk returns a tuple with the ThresholdValueMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetThresholdValueMaxOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValueMax) { + return nil, false + } + return o.ThresholdValueMax, true +} + +// HasThresholdValueMax returns a boolean if a field has been set. +func (o *AlertDto2) HasThresholdValueMax() bool { + if o != nil && !IsNil(o.ThresholdValueMax) { + return true + } + + return false +} + +// SetThresholdValueMax gets a reference to the given string and assigns it to the ThresholdValueMax field. +func (o *AlertDto2) SetThresholdValueMax(v string) { + o.ThresholdValueMax = &v +} + +// GetThresholdValueMin returns the ThresholdValueMin field value if set, zero value otherwise. +func (o *AlertDto2) GetThresholdValueMin() string { + if o == nil || IsNil(o.ThresholdValueMin) { + var ret string + return ret + } + return *o.ThresholdValueMin +} + +// GetThresholdValueMinOk returns a tuple with the ThresholdValueMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetThresholdValueMinOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValueMin) { + return nil, false + } + return o.ThresholdValueMin, true +} + +// HasThresholdValueMin returns a boolean if a field has been set. +func (o *AlertDto2) HasThresholdValueMin() bool { + if o != nil && !IsNil(o.ThresholdValueMin) { + return true + } + + return false +} + +// SetThresholdValueMin gets a reference to the given string and assigns it to the ThresholdValueMin field. +func (o *AlertDto2) SetThresholdValueMin(v string) { + o.ThresholdValueMin = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise. +func (o *AlertDto2) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone) { + var ret string + return ret + } + return *o.TimeZone +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTimeZoneOk() (*string, bool) { + if o == nil || IsNil(o.TimeZone) { + return nil, false + } + return o.TimeZone, true +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *AlertDto2) HasTimeZone() bool { + if o != nil && !IsNil(o.TimeZone) { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given string and assigns it to the TimeZone field. +func (o *AlertDto2) SetTimeZone(v string) { + o.TimeZone = &v +} + +// GetTimeacknowledged returns the Timeacknowledged field value if set, zero value otherwise. +func (o *AlertDto2) GetTimeacknowledged() string { + if o == nil || IsNil(o.Timeacknowledged) { + var ret string + return ret + } + return *o.Timeacknowledged +} + +// GetTimeacknowledgedOk returns a tuple with the Timeacknowledged field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTimeacknowledgedOk() (*string, bool) { + if o == nil || IsNil(o.Timeacknowledged) { + return nil, false + } + return o.Timeacknowledged, true +} + +// HasTimeacknowledged returns a boolean if a field has been set. +func (o *AlertDto2) HasTimeacknowledged() bool { + if o != nil && !IsNil(o.Timeacknowledged) { + return true + } + + return false +} + +// SetTimeacknowledged gets a reference to the given string and assigns it to the Timeacknowledged field. +func (o *AlertDto2) SetTimeacknowledged(v string) { + o.Timeacknowledged = &v +} + +// GetTimeprocessed returns the Timeprocessed field value if set, zero value otherwise. +func (o *AlertDto2) GetTimeprocessed() string { + if o == nil || IsNil(o.Timeprocessed) { + var ret string + return ret + } + return *o.Timeprocessed +} + +// GetTimeprocessedOk returns a tuple with the Timeprocessed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTimeprocessedOk() (*string, bool) { + if o == nil || IsNil(o.Timeprocessed) { + return nil, false + } + return o.Timeprocessed, true +} + +// HasTimeprocessed returns a boolean if a field has been set. +func (o *AlertDto2) HasTimeprocessed() bool { + if o != nil && !IsNil(o.Timeprocessed) { + return true + } + + return false +} + +// SetTimeprocessed gets a reference to the given string and assigns it to the Timeprocessed field. +func (o *AlertDto2) SetTimeprocessed(v string) { + o.Timeprocessed = &v +} + +// GetTimetriggeredMilisec returns the TimetriggeredMilisec field value if set, zero value otherwise. +func (o *AlertDto2) GetTimetriggeredMilisec() string { + if o == nil || IsNil(o.TimetriggeredMilisec) { + var ret string + return ret + } + return *o.TimetriggeredMilisec +} + +// GetTimetriggeredMilisecOk returns a tuple with the TimetriggeredMilisec field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTimetriggeredMilisecOk() (*string, bool) { + if o == nil || IsNil(o.TimetriggeredMilisec) { + return nil, false + } + return o.TimetriggeredMilisec, true +} + +// HasTimetriggeredMilisec returns a boolean if a field has been set. +func (o *AlertDto2) HasTimetriggeredMilisec() bool { + if o != nil && !IsNil(o.TimetriggeredMilisec) { + return true + } + + return false +} + +// SetTimetriggeredMilisec gets a reference to the given string and assigns it to the TimetriggeredMilisec field. +func (o *AlertDto2) SetTimetriggeredMilisec(v string) { + o.TimetriggeredMilisec = &v +} + +// GetTriggeredOn returns the TriggeredOn field value if set, zero value otherwise. +func (o *AlertDto2) GetTriggeredOn() float32 { + if o == nil || IsNil(o.TriggeredOn) { + var ret float32 + return ret + } + return *o.TriggeredOn +} + +// GetTriggeredOnOk returns a tuple with the TriggeredOn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTriggeredOnOk() (*float32, bool) { + if o == nil || IsNil(o.TriggeredOn) { + return nil, false + } + return o.TriggeredOn, true +} + +// HasTriggeredOn returns a boolean if a field has been set. +func (o *AlertDto2) HasTriggeredOn() bool { + if o != nil && !IsNil(o.TriggeredOn) { + return true + } + + return false +} + +// SetTriggeredOn gets a reference to the given float32 and assigns it to the TriggeredOn field. +func (o *AlertDto2) SetTriggeredOn(v float32) { + o.TriggeredOn = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AlertDto2) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AlertDto2) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AlertDto2) SetType(v string) { + o.Type = &v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *AlertDto2) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *AlertDto2) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *AlertDto2) SetUom(v string) { + o.Uom = &v +} + +// GetYear returns the Year field value if set, zero value otherwise. +func (o *AlertDto2) GetYear() string { + if o == nil || IsNil(o.Year) { + var ret string + return ret + } + return *o.Year +} + +// GetYearOk returns a tuple with the Year field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertDto2) GetYearOk() (*string, bool) { + if o == nil || IsNil(o.Year) { + return nil, false + } + return o.Year, true +} + +// HasYear returns a boolean if a field has been set. +func (o *AlertDto2) HasYear() bool { + if o != nil && !IsNil(o.Year) { + return true + } + + return false +} + +// SetYear gets a reference to the given string and assigns it to the Year field. +func (o *AlertDto2) SetYear(v string) { + o.Year = &v +} + +func (o AlertDto2) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertDto2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Acknowledge) { + toSerialize["acknowledge"] = o.Acknowledge + } + if !IsNil(o.AffectedCustomerAsset) { + toSerialize["affectedCustomerAsset"] = o.AffectedCustomerAsset + } + if !IsNil(o.AlertType) { + toSerialize["alertType"] = o.AlertType + } + if !IsNil(o.AlertTypeName) { + toSerialize["alertTypeName"] = o.AlertTypeName + } + if !IsNil(o.Asset) { + toSerialize["asset"] = o.Asset + } + if !IsNil(o.Assetclassification) { + toSerialize["assetclassification"] = o.Assetclassification + } + if !IsNil(o.Assetname) { + toSerialize["assetname"] = o.Assetname + } + if !IsNil(o.Assettype) { + toSerialize["assettype"] = o.Assettype + } + if !IsNil(o.ConditionalAlert) { + toSerialize["conditionalAlert"] = o.ConditionalAlert + } + if !IsNil(o.Country) { + toSerialize["country"] = o.Country + } + if !IsNil(o.CreatedOn) { + toSerialize["createdOn"] = o.CreatedOn + } + if !IsNil(o.Currentvalue) { + toSerialize["currentvalue"] = o.Currentvalue + } + if !IsNil(o.Eventtype) { + toSerialize["eventtype"] = o.Eventtype + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Lastmaintenance) { + toSerialize["lastmaintenance"] = o.Lastmaintenance + } + if !IsNil(o.Metro) { + toSerialize["metro"] = o.Metro + } + if !IsNil(o.ModifiedOn) { + toSerialize["modifiedOn"] = o.ModifiedOn + } + if !IsNil(o.NotificationType) { + toSerialize["notificationType"] = o.NotificationType + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.Relatedincidents) { + toSerialize["relatedincidents"] = o.Relatedincidents + } + if !IsNil(o.Resiliency) { + toSerialize["resiliency"] = o.Resiliency + } + if !IsNil(o.Section) { + toSerialize["section"] = o.Section + } + if !IsNil(o.Severity) { + toSerialize["severity"] = o.Severity + } + if !IsNil(o.Tagid) { + toSerialize["tagid"] = o.Tagid + } + if !IsNil(o.ThresholdUnit) { + toSerialize["thresholdUnit"] = o.ThresholdUnit + } + if !IsNil(o.ThresholdValue) { + toSerialize["thresholdValue"] = o.ThresholdValue + } + if !IsNil(o.ThresholdValueMax) { + toSerialize["thresholdValueMax"] = o.ThresholdValueMax + } + if !IsNil(o.ThresholdValueMin) { + toSerialize["thresholdValueMin"] = o.ThresholdValueMin + } + if !IsNil(o.TimeZone) { + toSerialize["timeZone"] = o.TimeZone + } + if !IsNil(o.Timeacknowledged) { + toSerialize["timeacknowledged"] = o.Timeacknowledged + } + if !IsNil(o.Timeprocessed) { + toSerialize["timeprocessed"] = o.Timeprocessed + } + if !IsNil(o.TimetriggeredMilisec) { + toSerialize["timetriggeredMilisec"] = o.TimetriggeredMilisec + } + if !IsNil(o.TriggeredOn) { + toSerialize["triggeredOn"] = o.TriggeredOn + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + if !IsNil(o.Year) { + toSerialize["year"] = o.Year + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertDto2) UnmarshalJSON(data []byte) (err error) { + varAlertDto2 := _AlertDto2{} + + err = json.Unmarshal(data, &varAlertDto2) + + if err != nil { + return err + } + + *o = AlertDto2(varAlertDto2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "acknowledge") + delete(additionalProperties, "affectedCustomerAsset") + delete(additionalProperties, "alertType") + delete(additionalProperties, "alertTypeName") + delete(additionalProperties, "asset") + delete(additionalProperties, "assetclassification") + delete(additionalProperties, "assetname") + delete(additionalProperties, "assettype") + delete(additionalProperties, "conditionalAlert") + delete(additionalProperties, "country") + delete(additionalProperties, "createdOn") + delete(additionalProperties, "currentvalue") + delete(additionalProperties, "eventtype") + delete(additionalProperties, "ibx") + delete(additionalProperties, "id") + delete(additionalProperties, "lastmaintenance") + delete(additionalProperties, "metro") + delete(additionalProperties, "modifiedOn") + delete(additionalProperties, "notificationType") + delete(additionalProperties, "region") + delete(additionalProperties, "relatedincidents") + delete(additionalProperties, "resiliency") + delete(additionalProperties, "section") + delete(additionalProperties, "severity") + delete(additionalProperties, "tagid") + delete(additionalProperties, "thresholdUnit") + delete(additionalProperties, "thresholdValue") + delete(additionalProperties, "thresholdValueMax") + delete(additionalProperties, "thresholdValueMin") + delete(additionalProperties, "timeZone") + delete(additionalProperties, "timeacknowledged") + delete(additionalProperties, "timeprocessed") + delete(additionalProperties, "timetriggeredMilisec") + delete(additionalProperties, "triggeredOn") + delete(additionalProperties, "type") + delete(additionalProperties, "uom") + delete(additionalProperties, "year") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertDto2 struct { + value *AlertDto2 + isSet bool +} + +func (v NullableAlertDto2) Get() *AlertDto2 { + return v.value +} + +func (v *NullableAlertDto2) Set(val *AlertDto2) { + v.value = val + v.isSet = true +} + +func (v NullableAlertDto2) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertDto2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertDto2(val *AlertDto2) *NullableAlertDto2 { + return &NullableAlertDto2{value: val, isSet: true} +} + +func (v NullableAlertDto2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertDto2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_message_data.go b/services/smartview/model_alert_message_data.go new file mode 100644 index 00000000..ff4981f4 --- /dev/null +++ b/services/smartview/model_alert_message_data.go @@ -0,0 +1,200 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the AlertMessageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertMessageData{} + +// AlertMessageData alert message data +type AlertMessageData struct { + Data Alert `json:"data"` + // message type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _AlertMessageData AlertMessageData + +// NewAlertMessageData instantiates a new AlertMessageData 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 NewAlertMessageData(data Alert, type_ string) *AlertMessageData { + this := AlertMessageData{} + this.Data = data + this.Type = type_ + return &this +} + +// NewAlertMessageDataWithDefaults instantiates a new AlertMessageData 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 NewAlertMessageDataWithDefaults() *AlertMessageData { + this := AlertMessageData{} + var type_ string = "custom-alert" + this.Type = type_ + return &this +} + +// GetData returns the Data field value +func (o *AlertMessageData) GetData() Alert { + if o == nil { + var ret Alert + 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 *AlertMessageData) GetDataOk() (*Alert, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AlertMessageData) SetData(v Alert) { + o.Data = v +} + +// GetType returns the Type field value +func (o *AlertMessageData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *AlertMessageData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *AlertMessageData) SetType(v string) { + o.Type = v +} + +func (o AlertMessageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertMessageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertMessageData) 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", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varAlertMessageData := _AlertMessageData{} + + err = json.Unmarshal(data, &varAlertMessageData) + + if err != nil { + return err + } + + *o = AlertMessageData(varAlertMessageData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertMessageData struct { + value *AlertMessageData + isSet bool +} + +func (v NullableAlertMessageData) Get() *AlertMessageData { + return v.value +} + +func (v *NullableAlertMessageData) Set(val *AlertMessageData) { + v.value = val + v.isSet = true +} + +func (v NullableAlertMessageData) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertMessageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertMessageData(val *AlertMessageData) *NullableAlertMessageData { + return &NullableAlertMessageData{value: val, isSet: true} +} + +func (v NullableAlertMessageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertMessageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_obj.go b/services/smartview/model_alert_obj.go new file mode 100644 index 00000000..611b0272 --- /dev/null +++ b/services/smartview/model_alert_obj.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertObj type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertObj{} + +// AlertObj struct for AlertObj +type AlertObj struct { + Alerts []AlertDto1 `json:"alerts,omitempty"` + // totalCount + TotalCount *float32 `json:"totalCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertObj AlertObj + +// NewAlertObj instantiates a new AlertObj 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 NewAlertObj() *AlertObj { + this := AlertObj{} + return &this +} + +// NewAlertObjWithDefaults instantiates a new AlertObj 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 NewAlertObjWithDefaults() *AlertObj { + this := AlertObj{} + return &this +} + +// GetAlerts returns the Alerts field value if set, zero value otherwise. +func (o *AlertObj) GetAlerts() []AlertDto1 { + if o == nil || IsNil(o.Alerts) { + var ret []AlertDto1 + return ret + } + return o.Alerts +} + +// GetAlertsOk returns a tuple with the Alerts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertObj) GetAlertsOk() ([]AlertDto1, bool) { + if o == nil || IsNil(o.Alerts) { + return nil, false + } + return o.Alerts, true +} + +// HasAlerts returns a boolean if a field has been set. +func (o *AlertObj) HasAlerts() bool { + if o != nil && !IsNil(o.Alerts) { + return true + } + + return false +} + +// SetAlerts gets a reference to the given []AlertDto1 and assigns it to the Alerts field. +func (o *AlertObj) SetAlerts(v []AlertDto1) { + o.Alerts = v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *AlertObj) GetTotalCount() float32 { + if o == nil || IsNil(o.TotalCount) { + var ret float32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertObj) GetTotalCountOk() (*float32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *AlertObj) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given float32 and assigns it to the TotalCount field. +func (o *AlertObj) SetTotalCount(v float32) { + o.TotalCount = &v +} + +func (o AlertObj) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertObj) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alerts) { + toSerialize["alerts"] = o.Alerts + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertObj) UnmarshalJSON(data []byte) (err error) { + varAlertObj := _AlertObj{} + + err = json.Unmarshal(data, &varAlertObj) + + if err != nil { + return err + } + + *o = AlertObj(varAlertObj) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alerts") + delete(additionalProperties, "totalCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertObj struct { + value *AlertObj + isSet bool +} + +func (v NullableAlertObj) Get() *AlertObj { + return v.value +} + +func (v *NullableAlertObj) Set(val *AlertObj) { + v.value = val + v.isSet = true +} + +func (v NullableAlertObj) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertObj) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertObj(val *AlertObj) *NullableAlertObj { + return &NullableAlertObj{value: val, isSet: true} +} + +func (v NullableAlertObj) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertObj) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_tag_details.go b/services/smartview/model_alert_tag_details.go new file mode 100644 index 00000000..ffefdfc0 --- /dev/null +++ b/services/smartview/model_alert_tag_details.go @@ -0,0 +1,156 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertTagDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertTagDetails{} + +// AlertTagDetails tag details +type AlertTagDetails struct { + // tag id + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertTagDetails AlertTagDetails + +// NewAlertTagDetails instantiates a new AlertTagDetails 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 NewAlertTagDetails() *AlertTagDetails { + this := AlertTagDetails{} + return &this +} + +// NewAlertTagDetailsWithDefaults instantiates a new AlertTagDetails 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 NewAlertTagDetailsWithDefaults() *AlertTagDetails { + this := AlertTagDetails{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertTagDetails) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertTagDetails) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertTagDetails) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlertTagDetails) SetId(v string) { + o.Id = &v +} + +func (o AlertTagDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertTagDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertTagDetails) UnmarshalJSON(data []byte) (err error) { + varAlertTagDetails := _AlertTagDetails{} + + err = json.Unmarshal(data, &varAlertTagDetails) + + if err != nil { + return err + } + + *o = AlertTagDetails(varAlertTagDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertTagDetails struct { + value *AlertTagDetails + isSet bool +} + +func (v NullableAlertTagDetails) Get() *AlertTagDetails { + return v.value +} + +func (v *NullableAlertTagDetails) Set(val *AlertTagDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlertTagDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertTagDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertTagDetails(val *AlertTagDetails) *NullableAlertTagDetails { + return &NullableAlertTagDetails{value: val, isSet: true} +} + +func (v NullableAlertTagDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertTagDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_threshold_details.go b/services/smartview/model_alert_threshold_details.go new file mode 100644 index 00000000..d480d12f --- /dev/null +++ b/services/smartview/model_alert_threshold_details.go @@ -0,0 +1,270 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertThresholdDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertThresholdDetails{} + +// AlertThresholdDetails threshold details +type AlertThresholdDetails struct { + // threshold max value + MaxValue *string `json:"maxValue,omitempty"` + // threshold min value + MinValue *string `json:"minValue,omitempty"` + // threshold unit + Unit *string `json:"unit,omitempty"` + // threshold value + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertThresholdDetails AlertThresholdDetails + +// NewAlertThresholdDetails instantiates a new AlertThresholdDetails 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 NewAlertThresholdDetails() *AlertThresholdDetails { + this := AlertThresholdDetails{} + return &this +} + +// NewAlertThresholdDetailsWithDefaults instantiates a new AlertThresholdDetails 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 NewAlertThresholdDetailsWithDefaults() *AlertThresholdDetails { + this := AlertThresholdDetails{} + return &this +} + +// GetMaxValue returns the MaxValue field value if set, zero value otherwise. +func (o *AlertThresholdDetails) GetMaxValue() string { + if o == nil || IsNil(o.MaxValue) { + var ret string + return ret + } + return *o.MaxValue +} + +// GetMaxValueOk returns a tuple with the MaxValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertThresholdDetails) GetMaxValueOk() (*string, bool) { + if o == nil || IsNil(o.MaxValue) { + return nil, false + } + return o.MaxValue, true +} + +// HasMaxValue returns a boolean if a field has been set. +func (o *AlertThresholdDetails) HasMaxValue() bool { + if o != nil && !IsNil(o.MaxValue) { + return true + } + + return false +} + +// SetMaxValue gets a reference to the given string and assigns it to the MaxValue field. +func (o *AlertThresholdDetails) SetMaxValue(v string) { + o.MaxValue = &v +} + +// GetMinValue returns the MinValue field value if set, zero value otherwise. +func (o *AlertThresholdDetails) GetMinValue() string { + if o == nil || IsNil(o.MinValue) { + var ret string + return ret + } + return *o.MinValue +} + +// GetMinValueOk returns a tuple with the MinValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertThresholdDetails) GetMinValueOk() (*string, bool) { + if o == nil || IsNil(o.MinValue) { + return nil, false + } + return o.MinValue, true +} + +// HasMinValue returns a boolean if a field has been set. +func (o *AlertThresholdDetails) HasMinValue() bool { + if o != nil && !IsNil(o.MinValue) { + return true + } + + return false +} + +// SetMinValue gets a reference to the given string and assigns it to the MinValue field. +func (o *AlertThresholdDetails) SetMinValue(v string) { + o.MinValue = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *AlertThresholdDetails) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertThresholdDetails) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *AlertThresholdDetails) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *AlertThresholdDetails) SetUnit(v string) { + o.Unit = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *AlertThresholdDetails) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertThresholdDetails) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *AlertThresholdDetails) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *AlertThresholdDetails) SetValue(v string) { + o.Value = &v +} + +func (o AlertThresholdDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertThresholdDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MaxValue) { + toSerialize["maxValue"] = o.MaxValue + } + if !IsNil(o.MinValue) { + toSerialize["minValue"] = o.MinValue + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertThresholdDetails) UnmarshalJSON(data []byte) (err error) { + varAlertThresholdDetails := _AlertThresholdDetails{} + + err = json.Unmarshal(data, &varAlertThresholdDetails) + + if err != nil { + return err + } + + *o = AlertThresholdDetails(varAlertThresholdDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "maxValue") + delete(additionalProperties, "minValue") + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertThresholdDetails struct { + value *AlertThresholdDetails + isSet bool +} + +func (v NullableAlertThresholdDetails) Get() *AlertThresholdDetails { + return v.value +} + +func (v *NullableAlertThresholdDetails) Set(val *AlertThresholdDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAlertThresholdDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertThresholdDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertThresholdDetails(val *AlertThresholdDetails) *NullableAlertThresholdDetails { + return &NullableAlertThresholdDetails{value: val, isSet: true} +} + +func (v NullableAlertThresholdDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertThresholdDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alert_type.go b/services/smartview/model_alert_type.go new file mode 100644 index 00000000..b3d202be --- /dev/null +++ b/services/smartview/model_alert_type.go @@ -0,0 +1,377 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AlertType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AlertType{} + +// AlertType struct for AlertType +type AlertType struct { + DefaultValue *string `json:"defaultValue,omitempty"` + EventType *string `json:"eventType,omitempty"` + Id *string `json:"id,omitempty"` + TagId *string `json:"tagId,omitempty"` + Type *string `json:"type,omitempty"` + Unit *string `json:"unit,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AlertType AlertType + +// NewAlertType instantiates a new AlertType 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 NewAlertType() *AlertType { + this := AlertType{} + return &this +} + +// NewAlertTypeWithDefaults instantiates a new AlertType 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 NewAlertTypeWithDefaults() *AlertType { + this := AlertType{} + return &this +} + +// GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. +func (o *AlertType) GetDefaultValue() string { + if o == nil || IsNil(o.DefaultValue) { + var ret string + return ret + } + return *o.DefaultValue +} + +// GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetDefaultValueOk() (*string, bool) { + if o == nil || IsNil(o.DefaultValue) { + return nil, false + } + return o.DefaultValue, true +} + +// HasDefaultValue returns a boolean if a field has been set. +func (o *AlertType) HasDefaultValue() bool { + if o != nil && !IsNil(o.DefaultValue) { + return true + } + + return false +} + +// SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. +func (o *AlertType) SetDefaultValue(v string) { + o.DefaultValue = &v +} + +// GetEventType returns the EventType field value if set, zero value otherwise. +func (o *AlertType) GetEventType() string { + if o == nil || IsNil(o.EventType) { + var ret string + return ret + } + return *o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetEventTypeOk() (*string, bool) { + if o == nil || IsNil(o.EventType) { + return nil, false + } + return o.EventType, true +} + +// HasEventType returns a boolean if a field has been set. +func (o *AlertType) HasEventType() bool { + if o != nil && !IsNil(o.EventType) { + return true + } + + return false +} + +// SetEventType gets a reference to the given string and assigns it to the EventType field. +func (o *AlertType) SetEventType(v string) { + o.EventType = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AlertType) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AlertType) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AlertType) SetId(v string) { + o.Id = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *AlertType) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *AlertType) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *AlertType) SetTagId(v string) { + o.TagId = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AlertType) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AlertType) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AlertType) SetType(v string) { + o.Type = &v +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *AlertType) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *AlertType) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *AlertType) SetUnit(v string) { + o.Unit = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *AlertType) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlertType) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *AlertType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *AlertType) SetValue(v string) { + o.Value = &v +} + +func (o AlertType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AlertType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultValue) { + toSerialize["defaultValue"] = o.DefaultValue + } + if !IsNil(o.EventType) { + toSerialize["eventType"] = o.EventType + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.TagId) { + toSerialize["tagId"] = o.TagId + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AlertType) UnmarshalJSON(data []byte) (err error) { + varAlertType := _AlertType{} + + err = json.Unmarshal(data, &varAlertType) + + if err != nil { + return err + } + + *o = AlertType(varAlertType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "defaultValue") + delete(additionalProperties, "eventType") + delete(additionalProperties, "id") + delete(additionalProperties, "tagId") + delete(additionalProperties, "type") + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlertType struct { + value *AlertType + isSet bool +} + +func (v NullableAlertType) Get() *AlertType { + return v.value +} + +func (v *NullableAlertType) Set(val *AlertType) { + v.value = val + v.isSet = true +} + +func (v NullableAlertType) IsSet() bool { + return v.isSet +} + +func (v *NullableAlertType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlertType(val *AlertType) *NullableAlertType { + return &NullableAlertType{value: val, isSet: true} +} + +func (v NullableAlertType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlertType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_alerts.go b/services/smartview/model_alerts.go new file mode 100644 index 00000000..48438f43 --- /dev/null +++ b/services/smartview/model_alerts.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Alerts type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Alerts{} + +// Alerts struct for Alerts +type Alerts struct { + PayLoad []AlertObj `json:"payLoad,omitempty"` + Status *Status `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Alerts Alerts + +// NewAlerts instantiates a new Alerts 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 NewAlerts() *Alerts { + this := Alerts{} + return &this +} + +// NewAlertsWithDefaults instantiates a new Alerts 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 NewAlertsWithDefaults() *Alerts { + this := Alerts{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *Alerts) GetPayLoad() []AlertObj { + if o == nil || IsNil(o.PayLoad) { + var ret []AlertObj + return ret + } + return o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alerts) GetPayLoadOk() ([]AlertObj, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *Alerts) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given []AlertObj and assigns it to the PayLoad field. +func (o *Alerts) SetPayLoad(v []AlertObj) { + o.PayLoad = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Alerts) GetStatus() Status { + if o == nil || IsNil(o.Status) { + var ret Status + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Alerts) GetStatusOk() (*Status, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Alerts) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given Status and assigns it to the Status field. +func (o *Alerts) SetStatus(v Status) { + o.Status = &v +} + +func (o Alerts) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Alerts) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Alerts) UnmarshalJSON(data []byte) (err error) { + varAlerts := _Alerts{} + + err = json.Unmarshal(data, &varAlerts) + + if err != nil { + return err + } + + *o = Alerts(varAlerts) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAlerts struct { + value *Alerts + isSet bool +} + +func (v NullableAlerts) Get() *Alerts { + return v.value +} + +func (v *NullableAlerts) Set(val *Alerts) { + v.value = val + v.isSet = true +} + +func (v NullableAlerts) IsSet() bool { + return v.isSet +} + +func (v *NullableAlerts) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAlerts(val *Alerts) *NullableAlerts { + return &NullableAlerts{value: val, isSet: true} +} + +func (v NullableAlerts) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAlerts) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_api_error.go b/services/smartview/model_api_error.go new file mode 100644 index 00000000..4cdf0f81 --- /dev/null +++ b/services/smartview/model_api_error.go @@ -0,0 +1,340 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the ApiError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApiError{} + +// ApiError ApiError provides information about the occurred error. +type ApiError struct { + AdditionalInfo *ApiErrorAdditionalInfo `json:"additionalInfo,omitempty"` + CorrelationId *string `json:"correlationId,omitempty"` + Details *string `json:"details,omitempty"` + ErrorCode *string `json:"errorCode,omitempty"` + ErrorMessage *string `json:"errorMessage,omitempty"` + Help *string `json:"help,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ApiError ApiError + +// NewApiError instantiates a new ApiError 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 NewApiError() *ApiError { + this := ApiError{} + return &this +} + +// NewApiErrorWithDefaults instantiates a new ApiError 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 NewApiErrorWithDefaults() *ApiError { + this := ApiError{} + return &this +} + +// GetAdditionalInfo returns the AdditionalInfo field value if set, zero value otherwise. +func (o *ApiError) GetAdditionalInfo() ApiErrorAdditionalInfo { + if o == nil || IsNil(o.AdditionalInfo) { + var ret ApiErrorAdditionalInfo + return ret + } + return *o.AdditionalInfo +} + +// GetAdditionalInfoOk returns a tuple with the AdditionalInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiError) GetAdditionalInfoOk() (*ApiErrorAdditionalInfo, bool) { + if o == nil || IsNil(o.AdditionalInfo) { + return nil, false + } + return o.AdditionalInfo, true +} + +// HasAdditionalInfo returns a boolean if a field has been set. +func (o *ApiError) HasAdditionalInfo() bool { + if o != nil && !IsNil(o.AdditionalInfo) { + return true + } + + return false +} + +// SetAdditionalInfo gets a reference to the given ApiErrorAdditionalInfo and assigns it to the AdditionalInfo field. +func (o *ApiError) SetAdditionalInfo(v ApiErrorAdditionalInfo) { + o.AdditionalInfo = &v +} + +// GetCorrelationId returns the CorrelationId field value if set, zero value otherwise. +func (o *ApiError) GetCorrelationId() string { + if o == nil || IsNil(o.CorrelationId) { + var ret string + return ret + } + return *o.CorrelationId +} + +// GetCorrelationIdOk returns a tuple with the CorrelationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiError) GetCorrelationIdOk() (*string, bool) { + if o == nil || IsNil(o.CorrelationId) { + return nil, false + } + return o.CorrelationId, true +} + +// HasCorrelationId returns a boolean if a field has been set. +func (o *ApiError) HasCorrelationId() bool { + if o != nil && !IsNil(o.CorrelationId) { + return true + } + + return false +} + +// SetCorrelationId gets a reference to the given string and assigns it to the CorrelationId field. +func (o *ApiError) SetCorrelationId(v string) { + o.CorrelationId = &v +} + +// GetDetails returns the Details field value if set, zero value otherwise. +func (o *ApiError) GetDetails() string { + if o == nil || IsNil(o.Details) { + var ret string + return ret + } + return *o.Details +} + +// GetDetailsOk returns a tuple with the Details field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiError) GetDetailsOk() (*string, bool) { + if o == nil || IsNil(o.Details) { + return nil, false + } + return o.Details, true +} + +// HasDetails returns a boolean if a field has been set. +func (o *ApiError) HasDetails() bool { + if o != nil && !IsNil(o.Details) { + return true + } + + return false +} + +// SetDetails gets a reference to the given string and assigns it to the Details field. +func (o *ApiError) SetDetails(v string) { + o.Details = &v +} + +// GetErrorCode returns the ErrorCode field value if set, zero value otherwise. +func (o *ApiError) GetErrorCode() string { + if o == nil || IsNil(o.ErrorCode) { + var ret string + return ret + } + return *o.ErrorCode +} + +// GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiError) GetErrorCodeOk() (*string, bool) { + if o == nil || IsNil(o.ErrorCode) { + return nil, false + } + return o.ErrorCode, true +} + +// HasErrorCode returns a boolean if a field has been set. +func (o *ApiError) HasErrorCode() bool { + if o != nil && !IsNil(o.ErrorCode) { + return true + } + + return false +} + +// SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field. +func (o *ApiError) SetErrorCode(v string) { + o.ErrorCode = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *ApiError) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiError) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *ApiError) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *ApiError) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetHelp returns the Help field value if set, zero value otherwise. +func (o *ApiError) GetHelp() string { + if o == nil || IsNil(o.Help) { + var ret string + return ret + } + return *o.Help +} + +// GetHelpOk returns a tuple with the Help field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiError) GetHelpOk() (*string, bool) { + if o == nil || IsNil(o.Help) { + return nil, false + } + return o.Help, true +} + +// HasHelp returns a boolean if a field has been set. +func (o *ApiError) HasHelp() bool { + if o != nil && !IsNil(o.Help) { + return true + } + + return false +} + +// SetHelp gets a reference to the given string and assigns it to the Help field. +func (o *ApiError) SetHelp(v string) { + o.Help = &v +} + +func (o ApiError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApiError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AdditionalInfo) { + toSerialize["additionalInfo"] = o.AdditionalInfo + } + if !IsNil(o.CorrelationId) { + toSerialize["correlationId"] = o.CorrelationId + } + if !IsNil(o.Details) { + toSerialize["details"] = o.Details + } + if !IsNil(o.ErrorCode) { + toSerialize["errorCode"] = o.ErrorCode + } + if !IsNil(o.ErrorMessage) { + toSerialize["errorMessage"] = o.ErrorMessage + } + if !IsNil(o.Help) { + toSerialize["help"] = o.Help + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ApiError) UnmarshalJSON(data []byte) (err error) { + varApiError := _ApiError{} + + err = json.Unmarshal(data, &varApiError) + + if err != nil { + return err + } + + *o = ApiError(varApiError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "additionalInfo") + delete(additionalProperties, "correlationId") + delete(additionalProperties, "details") + delete(additionalProperties, "errorCode") + delete(additionalProperties, "errorMessage") + delete(additionalProperties, "help") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableApiError struct { + value *ApiError + isSet bool +} + +func (v NullableApiError) Get() *ApiError { + return v.value +} + +func (v *NullableApiError) Set(val *ApiError) { + v.value = val + v.isSet = true +} + +func (v NullableApiError) IsSet() bool { + return v.isSet +} + +func (v *NullableApiError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApiError(val *ApiError) *NullableApiError { + return &NullableApiError{value: val, isSet: true} +} + +func (v NullableApiError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApiError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_api_error_additional_info.go b/services/smartview/model_api_error_additional_info.go new file mode 100644 index 00000000..54def855 --- /dev/null +++ b/services/smartview/model_api_error_additional_info.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the ApiErrorAdditionalInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApiErrorAdditionalInfo{} + +// ApiErrorAdditionalInfo struct for ApiErrorAdditionalInfo +type ApiErrorAdditionalInfo struct { + ConstraintCode *string `json:"constraintCode,omitempty"` + Reason *string `json:"reason,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ApiErrorAdditionalInfo ApiErrorAdditionalInfo + +// NewApiErrorAdditionalInfo instantiates a new ApiErrorAdditionalInfo 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 NewApiErrorAdditionalInfo() *ApiErrorAdditionalInfo { + this := ApiErrorAdditionalInfo{} + return &this +} + +// NewApiErrorAdditionalInfoWithDefaults instantiates a new ApiErrorAdditionalInfo 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 NewApiErrorAdditionalInfoWithDefaults() *ApiErrorAdditionalInfo { + this := ApiErrorAdditionalInfo{} + return &this +} + +// GetConstraintCode returns the ConstraintCode field value if set, zero value otherwise. +func (o *ApiErrorAdditionalInfo) GetConstraintCode() string { + if o == nil || IsNil(o.ConstraintCode) { + var ret string + return ret + } + return *o.ConstraintCode +} + +// GetConstraintCodeOk returns a tuple with the ConstraintCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiErrorAdditionalInfo) GetConstraintCodeOk() (*string, bool) { + if o == nil || IsNil(o.ConstraintCode) { + return nil, false + } + return o.ConstraintCode, true +} + +// HasConstraintCode returns a boolean if a field has been set. +func (o *ApiErrorAdditionalInfo) HasConstraintCode() bool { + if o != nil && !IsNil(o.ConstraintCode) { + return true + } + + return false +} + +// SetConstraintCode gets a reference to the given string and assigns it to the ConstraintCode field. +func (o *ApiErrorAdditionalInfo) SetConstraintCode(v string) { + o.ConstraintCode = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *ApiErrorAdditionalInfo) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiErrorAdditionalInfo) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *ApiErrorAdditionalInfo) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *ApiErrorAdditionalInfo) SetReason(v string) { + o.Reason = &v +} + +func (o ApiErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApiErrorAdditionalInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConstraintCode) { + toSerialize["constraintCode"] = o.ConstraintCode + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ApiErrorAdditionalInfo) UnmarshalJSON(data []byte) (err error) { + varApiErrorAdditionalInfo := _ApiErrorAdditionalInfo{} + + err = json.Unmarshal(data, &varApiErrorAdditionalInfo) + + if err != nil { + return err + } + + *o = ApiErrorAdditionalInfo(varApiErrorAdditionalInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "constraintCode") + delete(additionalProperties, "reason") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableApiErrorAdditionalInfo struct { + value *ApiErrorAdditionalInfo + isSet bool +} + +func (v NullableApiErrorAdditionalInfo) Get() *ApiErrorAdditionalInfo { + return v.value +} + +func (v *NullableApiErrorAdditionalInfo) Set(val *ApiErrorAdditionalInfo) { + v.value = val + v.isSet = true +} + +func (v NullableApiErrorAdditionalInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableApiErrorAdditionalInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApiErrorAdditionalInfo(val *ApiErrorAdditionalInfo) *NullableApiErrorAdditionalInfo { + return &NullableApiErrorAdditionalInfo{value: val, isSet: true} +} + +func (v NullableApiErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApiErrorAdditionalInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset.go b/services/smartview/model_asset.go new file mode 100644 index 00000000..42fb5b58 --- /dev/null +++ b/services/smartview/model_asset.go @@ -0,0 +1,272 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Asset type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Asset{} + +// Asset Asset messages provide the latest readings for environmental, electrical, and mechanical assets within an IBX +type Asset struct { + AccountNumber string `json:"accountNumber"` + // Asset Classification value if specified, otherwise all allowable classifications + AssetClassification []AssetAssetClassificationInner `json:"assetClassification,omitempty"` + AssetId []string `json:"assetId,omitempty"` + Ibx []string `json:"ibx"` + AdditionalProperties map[string]interface{} +} + +type _Asset Asset + +// NewAsset instantiates a new Asset 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 NewAsset(accountNumber string, ibx []string) *Asset { + this := Asset{} + this.AccountNumber = accountNumber + this.Ibx = ibx + return &this +} + +// NewAssetWithDefaults instantiates a new Asset 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 NewAssetWithDefaults() *Asset { + this := Asset{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value +func (o *Asset) GetAccountNumber() string { + if o == nil { + var ret string + return ret + } + + return o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value +// and a boolean to check if the value has been set. +func (o *Asset) GetAccountNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountNumber, true +} + +// SetAccountNumber sets field value +func (o *Asset) SetAccountNumber(v string) { + o.AccountNumber = v +} + +// GetAssetClassification returns the AssetClassification field value if set, zero value otherwise. +func (o *Asset) GetAssetClassification() []AssetAssetClassificationInner { + if o == nil || IsNil(o.AssetClassification) { + var ret []AssetAssetClassificationInner + return ret + } + return o.AssetClassification +} + +// GetAssetClassificationOk returns a tuple with the AssetClassification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Asset) GetAssetClassificationOk() ([]AssetAssetClassificationInner, bool) { + if o == nil || IsNil(o.AssetClassification) { + return nil, false + } + return o.AssetClassification, true +} + +// HasAssetClassification returns a boolean if a field has been set. +func (o *Asset) HasAssetClassification() bool { + if o != nil && !IsNil(o.AssetClassification) { + return true + } + + return false +} + +// SetAssetClassification gets a reference to the given []AssetAssetClassificationInner and assigns it to the AssetClassification field. +func (o *Asset) SetAssetClassification(v []AssetAssetClassificationInner) { + o.AssetClassification = v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *Asset) GetAssetId() []string { + if o == nil || IsNil(o.AssetId) { + var ret []string + return ret + } + return o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Asset) GetAssetIdOk() ([]string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *Asset) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given []string and assigns it to the AssetId field. +func (o *Asset) SetAssetId(v []string) { + o.AssetId = v +} + +// GetIbx returns the Ibx field value +func (o *Asset) GetIbx() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *Asset) GetIbxOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ibx, true +} + +// SetIbx sets field value +func (o *Asset) SetIbx(v []string) { + o.Ibx = v +} + +func (o Asset) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Asset) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountNumber"] = o.AccountNumber + if !IsNil(o.AssetClassification) { + toSerialize["assetClassification"] = o.AssetClassification + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + toSerialize["ibx"] = o.Ibx + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Asset) 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{ + "accountNumber", + "ibx", + } + + 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) + } + } + + varAsset := _Asset{} + + err = json.Unmarshal(data, &varAsset) + + if err != nil { + return err + } + + *o = Asset(varAsset) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "assetClassification") + delete(additionalProperties, "assetId") + delete(additionalProperties, "ibx") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAsset struct { + value *Asset + isSet bool +} + +func (v NullableAsset) Get() *Asset { + return v.value +} + +func (v *NullableAsset) Set(val *Asset) { + v.value = val + v.isSet = true +} + +func (v NullableAsset) IsSet() bool { + return v.isSet +} + +func (v *NullableAsset) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAsset(val *Asset) *NullableAsset { + return &NullableAsset{value: val, isSet: true} +} + +func (v NullableAsset) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAsset) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_asset_classification_inner.go b/services/smartview/model_asset_asset_classification_inner.go new file mode 100644 index 00000000..bb7d8f10 --- /dev/null +++ b/services/smartview/model_asset_asset_classification_inner.go @@ -0,0 +1,113 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// AssetAssetClassificationInner the model 'AssetAssetClassificationInner' +type AssetAssetClassificationInner string + +// List of Asset_assetClassification_inner +const ( + ASSETASSETCLASSIFICATIONINNER_MECHANICAL AssetAssetClassificationInner = "MECHANICAL" + ASSETASSETCLASSIFICATIONINNER_ENVIRONMENTAL AssetAssetClassificationInner = "ENVIRONMENTAL" + ASSETASSETCLASSIFICATIONINNER_ELECTRICAL AssetAssetClassificationInner = "ELECTRICAL" +) + +// All allowed values of AssetAssetClassificationInner enum +var AllowedAssetAssetClassificationInnerEnumValues = []AssetAssetClassificationInner{ + "MECHANICAL", + "ENVIRONMENTAL", + "ELECTRICAL", +} + +func (v *AssetAssetClassificationInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AssetAssetClassificationInner(value) + for _, existing := range AllowedAssetAssetClassificationInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AssetAssetClassificationInner", value) +} + +// NewAssetAssetClassificationInnerFromValue returns a pointer to a valid AssetAssetClassificationInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAssetAssetClassificationInnerFromValue(v string) (*AssetAssetClassificationInner, error) { + ev := AssetAssetClassificationInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AssetAssetClassificationInner: valid values are %v", v, AllowedAssetAssetClassificationInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AssetAssetClassificationInner) IsValid() bool { + for _, existing := range AllowedAssetAssetClassificationInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Asset_assetClassification_inner value +func (v AssetAssetClassificationInner) Ptr() *AssetAssetClassificationInner { + return &v +} + +type NullableAssetAssetClassificationInner struct { + value *AssetAssetClassificationInner + isSet bool +} + +func (v NullableAssetAssetClassificationInner) Get() *AssetAssetClassificationInner { + return v.value +} + +func (v *NullableAssetAssetClassificationInner) Set(val *AssetAssetClassificationInner) { + v.value = val + v.isSet = true +} + +func (v NullableAssetAssetClassificationInner) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetAssetClassificationInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetAssetClassificationInner(val *AssetAssetClassificationInner) *NullableAssetAssetClassificationInner { + return &NullableAssetAssetClassificationInner{value: val, isSet: true} +} + +func (v NullableAssetAssetClassificationInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetAssetClassificationInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_asset_detail_response.go b/services/smartview/model_asset_detail_response.go new file mode 100644 index 00000000..a44dafaa --- /dev/null +++ b/services/smartview/model_asset_detail_response.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailResponse{} + +// AssetDetailResponse response object for asset/details POST request +type AssetDetailResponse struct { + PayLoad *AssetDetailResponsePayLoad `json:"payLoad,omitempty"` + Status *AssetDetailResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailResponse AssetDetailResponse + +// NewAssetDetailResponse instantiates a new AssetDetailResponse 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 NewAssetDetailResponse() *AssetDetailResponse { + this := AssetDetailResponse{} + return &this +} + +// NewAssetDetailResponseWithDefaults instantiates a new AssetDetailResponse 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 NewAssetDetailResponseWithDefaults() *AssetDetailResponse { + this := AssetDetailResponse{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *AssetDetailResponse) GetPayLoad() AssetDetailResponsePayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret AssetDetailResponsePayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailResponse) GetPayLoadOk() (*AssetDetailResponsePayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *AssetDetailResponse) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given AssetDetailResponsePayLoad and assigns it to the PayLoad field. +func (o *AssetDetailResponse) SetPayLoad(v AssetDetailResponsePayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AssetDetailResponse) GetStatus() AssetDetailResponseStatus { + if o == nil || IsNil(o.Status) { + var ret AssetDetailResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailResponse) GetStatusOk() (*AssetDetailResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AssetDetailResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetDetailResponseStatus and assigns it to the Status field. +func (o *AssetDetailResponse) SetStatus(v AssetDetailResponseStatus) { + o.Status = &v +} + +func (o AssetDetailResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailResponse) UnmarshalJSON(data []byte) (err error) { + varAssetDetailResponse := _AssetDetailResponse{} + + err = json.Unmarshal(data, &varAssetDetailResponse) + + if err != nil { + return err + } + + *o = AssetDetailResponse(varAssetDetailResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailResponse struct { + value *AssetDetailResponse + isSet bool +} + +func (v NullableAssetDetailResponse) Get() *AssetDetailResponse { + return v.value +} + +func (v *NullableAssetDetailResponse) Set(val *AssetDetailResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailResponse(val *AssetDetailResponse) *NullableAssetDetailResponse { + return &NullableAssetDetailResponse{value: val, isSet: true} +} + +func (v NullableAssetDetailResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_detail_response_pay_load.go b/services/smartview/model_asset_detail_response_pay_load.go new file mode 100644 index 00000000..9c7dd3a5 --- /dev/null +++ b/services/smartview/model_asset_detail_response_pay_load.go @@ -0,0 +1,155 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailResponsePayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailResponsePayLoad{} + +// AssetDetailResponsePayLoad struct for AssetDetailResponsePayLoad +type AssetDetailResponsePayLoad struct { + AssetDetails []AssetDetails `json:"assetDetails,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailResponsePayLoad AssetDetailResponsePayLoad + +// NewAssetDetailResponsePayLoad instantiates a new AssetDetailResponsePayLoad 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 NewAssetDetailResponsePayLoad() *AssetDetailResponsePayLoad { + this := AssetDetailResponsePayLoad{} + return &this +} + +// NewAssetDetailResponsePayLoadWithDefaults instantiates a new AssetDetailResponsePayLoad 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 NewAssetDetailResponsePayLoadWithDefaults() *AssetDetailResponsePayLoad { + this := AssetDetailResponsePayLoad{} + return &this +} + +// GetAssetDetails returns the AssetDetails field value if set, zero value otherwise. +func (o *AssetDetailResponsePayLoad) GetAssetDetails() []AssetDetails { + if o == nil || IsNil(o.AssetDetails) { + var ret []AssetDetails + return ret + } + return o.AssetDetails +} + +// GetAssetDetailsOk returns a tuple with the AssetDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailResponsePayLoad) GetAssetDetailsOk() ([]AssetDetails, bool) { + if o == nil || IsNil(o.AssetDetails) { + return nil, false + } + return o.AssetDetails, true +} + +// HasAssetDetails returns a boolean if a field has been set. +func (o *AssetDetailResponsePayLoad) HasAssetDetails() bool { + if o != nil && !IsNil(o.AssetDetails) { + return true + } + + return false +} + +// SetAssetDetails gets a reference to the given []AssetDetails and assigns it to the AssetDetails field. +func (o *AssetDetailResponsePayLoad) SetAssetDetails(v []AssetDetails) { + o.AssetDetails = v +} + +func (o AssetDetailResponsePayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailResponsePayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AssetDetails) { + toSerialize["assetDetails"] = o.AssetDetails + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailResponsePayLoad) UnmarshalJSON(data []byte) (err error) { + varAssetDetailResponsePayLoad := _AssetDetailResponsePayLoad{} + + err = json.Unmarshal(data, &varAssetDetailResponsePayLoad) + + if err != nil { + return err + } + + *o = AssetDetailResponsePayLoad(varAssetDetailResponsePayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assetDetails") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailResponsePayLoad struct { + value *AssetDetailResponsePayLoad + isSet bool +} + +func (v NullableAssetDetailResponsePayLoad) Get() *AssetDetailResponsePayLoad { + return v.value +} + +func (v *NullableAssetDetailResponsePayLoad) Set(val *AssetDetailResponsePayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailResponsePayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailResponsePayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailResponsePayLoad(val *AssetDetailResponsePayLoad) *NullableAssetDetailResponsePayLoad { + return &NullableAssetDetailResponsePayLoad{value: val, isSet: true} +} + +func (v NullableAssetDetailResponsePayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailResponsePayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_detail_response_status.go b/services/smartview/model_asset_detail_response_status.go new file mode 100644 index 00000000..dd54af94 --- /dev/null +++ b/services/smartview/model_asset_detail_response_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailResponseStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailResponseStatus{} + +// AssetDetailResponseStatus struct for AssetDetailResponseStatus +type AssetDetailResponseStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailResponseStatus AssetDetailResponseStatus + +// NewAssetDetailResponseStatus instantiates a new AssetDetailResponseStatus 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 NewAssetDetailResponseStatus() *AssetDetailResponseStatus { + this := AssetDetailResponseStatus{} + return &this +} + +// NewAssetDetailResponseStatusWithDefaults instantiates a new AssetDetailResponseStatus 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 NewAssetDetailResponseStatusWithDefaults() *AssetDetailResponseStatus { + this := AssetDetailResponseStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AssetDetailResponseStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailResponseStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *AssetDetailResponseStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AssetDetailResponseStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *AssetDetailResponseStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailResponseStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *AssetDetailResponseStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *AssetDetailResponseStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AssetDetailResponseStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailResponseStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AssetDetailResponseStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *AssetDetailResponseStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o AssetDetailResponseStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailResponseStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailResponseStatus) UnmarshalJSON(data []byte) (err error) { + varAssetDetailResponseStatus := _AssetDetailResponseStatus{} + + err = json.Unmarshal(data, &varAssetDetailResponseStatus) + + if err != nil { + return err + } + + *o = AssetDetailResponseStatus(varAssetDetailResponseStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailResponseStatus struct { + value *AssetDetailResponseStatus + isSet bool +} + +func (v NullableAssetDetailResponseStatus) Get() *AssetDetailResponseStatus { + return v.value +} + +func (v *NullableAssetDetailResponseStatus) Set(val *AssetDetailResponseStatus) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailResponseStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailResponseStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailResponseStatus(val *AssetDetailResponseStatus) *NullableAssetDetailResponseStatus { + return &NullableAssetDetailResponseStatus{value: val, isSet: true} +} + +func (v NullableAssetDetailResponseStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailResponseStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_detail_response_status_type.go b/services/smartview/model_asset_detail_response_status_type.go new file mode 100644 index 00000000..bcb455e8 --- /dev/null +++ b/services/smartview/model_asset_detail_response_status_type.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// AssetDetailResponseStatusType [INFO|ERROR] are the possible values +type AssetDetailResponseStatusType string + +// List of AssetDetailResponse_status_type +const ( + ASSETDETAILRESPONSESTATUSTYPE_INFO AssetDetailResponseStatusType = "INFO" +) + +// All allowed values of AssetDetailResponseStatusType enum +var AllowedAssetDetailResponseStatusTypeEnumValues = []AssetDetailResponseStatusType{ + "INFO", +} + +func (v *AssetDetailResponseStatusType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AssetDetailResponseStatusType(value) + for _, existing := range AllowedAssetDetailResponseStatusTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AssetDetailResponseStatusType", value) +} + +// NewAssetDetailResponseStatusTypeFromValue returns a pointer to a valid AssetDetailResponseStatusType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAssetDetailResponseStatusTypeFromValue(v string) (*AssetDetailResponseStatusType, error) { + ev := AssetDetailResponseStatusType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AssetDetailResponseStatusType: valid values are %v", v, AllowedAssetDetailResponseStatusTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AssetDetailResponseStatusType) IsValid() bool { + for _, existing := range AllowedAssetDetailResponseStatusTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AssetDetailResponse_status_type value +func (v AssetDetailResponseStatusType) Ptr() *AssetDetailResponseStatusType { + return &v +} + +type NullableAssetDetailResponseStatusType struct { + value *AssetDetailResponseStatusType + isSet bool +} + +func (v NullableAssetDetailResponseStatusType) Get() *AssetDetailResponseStatusType { + return v.value +} + +func (v *NullableAssetDetailResponseStatusType) Set(val *AssetDetailResponseStatusType) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailResponseStatusType) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailResponseStatusType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailResponseStatusType(val *AssetDetailResponseStatusType) *NullableAssetDetailResponseStatusType { + return &NullableAssetDetailResponseStatusType{value: val, isSet: true} +} + +func (v NullableAssetDetailResponseStatusType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailResponseStatusType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_asset_details.go b/services/smartview/model_asset_details.go new file mode 100644 index 00000000..65c5eac5 --- /dev/null +++ b/services/smartview/model_asset_details.go @@ -0,0 +1,498 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetails{} + +// AssetDetails Asset Details includes Tag Points with Data for the asset +type AssetDetails struct { + // Datetime when the latest alarm was processed on the asset + AlarmLastProcessedTime *string `json:"alarmLastProcessedTime,omitempty"` + // Datetime when the latest alarm was triggered on the asset + AlarmLastTriggeredTime *string `json:"alarmLastTriggeredTime,omitempty"` + // asset id for the Asset + AssetId *string `json:"assetId,omitempty"` + // Template Name for the asset + AssetType *string `json:"assetType,omitempty"` + // Equipment Model Number + EquipmentModelNumber *string `json:"equipmentModelNumber,omitempty"` + // Equipment Serial Number + EquipmentSerialNumber *string `json:"equipmentSerialNumber,omitempty"` + // Datetime when the machine had its last maintenance + LastMaintenanceDate *string `json:"lastMaintenanceDate,omitempty"` + // Manufacturer name for the Asset + ManufacturerName *string `json:"manufacturerName,omitempty"` + // List of tag points for the Asset + Tags []TagPointDataArray `json:"tags,omitempty"` + // Time zone for the user + UserPrefTimeZone *string `json:"userPrefTimeZone,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetails AssetDetails + +// NewAssetDetails instantiates a new AssetDetails 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 NewAssetDetails() *AssetDetails { + this := AssetDetails{} + return &this +} + +// NewAssetDetailsWithDefaults instantiates a new AssetDetails 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 NewAssetDetailsWithDefaults() *AssetDetails { + this := AssetDetails{} + return &this +} + +// GetAlarmLastProcessedTime returns the AlarmLastProcessedTime field value if set, zero value otherwise. +func (o *AssetDetails) GetAlarmLastProcessedTime() string { + if o == nil || IsNil(o.AlarmLastProcessedTime) { + var ret string + return ret + } + return *o.AlarmLastProcessedTime +} + +// GetAlarmLastProcessedTimeOk returns a tuple with the AlarmLastProcessedTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetAlarmLastProcessedTimeOk() (*string, bool) { + if o == nil || IsNil(o.AlarmLastProcessedTime) { + return nil, false + } + return o.AlarmLastProcessedTime, true +} + +// HasAlarmLastProcessedTime returns a boolean if a field has been set. +func (o *AssetDetails) HasAlarmLastProcessedTime() bool { + if o != nil && !IsNil(o.AlarmLastProcessedTime) { + return true + } + + return false +} + +// SetAlarmLastProcessedTime gets a reference to the given string and assigns it to the AlarmLastProcessedTime field. +func (o *AssetDetails) SetAlarmLastProcessedTime(v string) { + o.AlarmLastProcessedTime = &v +} + +// GetAlarmLastTriggeredTime returns the AlarmLastTriggeredTime field value if set, zero value otherwise. +func (o *AssetDetails) GetAlarmLastTriggeredTime() string { + if o == nil || IsNil(o.AlarmLastTriggeredTime) { + var ret string + return ret + } + return *o.AlarmLastTriggeredTime +} + +// GetAlarmLastTriggeredTimeOk returns a tuple with the AlarmLastTriggeredTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetAlarmLastTriggeredTimeOk() (*string, bool) { + if o == nil || IsNil(o.AlarmLastTriggeredTime) { + return nil, false + } + return o.AlarmLastTriggeredTime, true +} + +// HasAlarmLastTriggeredTime returns a boolean if a field has been set. +func (o *AssetDetails) HasAlarmLastTriggeredTime() bool { + if o != nil && !IsNil(o.AlarmLastTriggeredTime) { + return true + } + + return false +} + +// SetAlarmLastTriggeredTime gets a reference to the given string and assigns it to the AlarmLastTriggeredTime field. +func (o *AssetDetails) SetAlarmLastTriggeredTime(v string) { + o.AlarmLastTriggeredTime = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *AssetDetails) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *AssetDetails) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *AssetDetails) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetType returns the AssetType field value if set, zero value otherwise. +func (o *AssetDetails) GetAssetType() string { + if o == nil || IsNil(o.AssetType) { + var ret string + return ret + } + return *o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetAssetTypeOk() (*string, bool) { + if o == nil || IsNil(o.AssetType) { + return nil, false + } + return o.AssetType, true +} + +// HasAssetType returns a boolean if a field has been set. +func (o *AssetDetails) HasAssetType() bool { + if o != nil && !IsNil(o.AssetType) { + return true + } + + return false +} + +// SetAssetType gets a reference to the given string and assigns it to the AssetType field. +func (o *AssetDetails) SetAssetType(v string) { + o.AssetType = &v +} + +// GetEquipmentModelNumber returns the EquipmentModelNumber field value if set, zero value otherwise. +func (o *AssetDetails) GetEquipmentModelNumber() string { + if o == nil || IsNil(o.EquipmentModelNumber) { + var ret string + return ret + } + return *o.EquipmentModelNumber +} + +// GetEquipmentModelNumberOk returns a tuple with the EquipmentModelNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetEquipmentModelNumberOk() (*string, bool) { + if o == nil || IsNil(o.EquipmentModelNumber) { + return nil, false + } + return o.EquipmentModelNumber, true +} + +// HasEquipmentModelNumber returns a boolean if a field has been set. +func (o *AssetDetails) HasEquipmentModelNumber() bool { + if o != nil && !IsNil(o.EquipmentModelNumber) { + return true + } + + return false +} + +// SetEquipmentModelNumber gets a reference to the given string and assigns it to the EquipmentModelNumber field. +func (o *AssetDetails) SetEquipmentModelNumber(v string) { + o.EquipmentModelNumber = &v +} + +// GetEquipmentSerialNumber returns the EquipmentSerialNumber field value if set, zero value otherwise. +func (o *AssetDetails) GetEquipmentSerialNumber() string { + if o == nil || IsNil(o.EquipmentSerialNumber) { + var ret string + return ret + } + return *o.EquipmentSerialNumber +} + +// GetEquipmentSerialNumberOk returns a tuple with the EquipmentSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetEquipmentSerialNumberOk() (*string, bool) { + if o == nil || IsNil(o.EquipmentSerialNumber) { + return nil, false + } + return o.EquipmentSerialNumber, true +} + +// HasEquipmentSerialNumber returns a boolean if a field has been set. +func (o *AssetDetails) HasEquipmentSerialNumber() bool { + if o != nil && !IsNil(o.EquipmentSerialNumber) { + return true + } + + return false +} + +// SetEquipmentSerialNumber gets a reference to the given string and assigns it to the EquipmentSerialNumber field. +func (o *AssetDetails) SetEquipmentSerialNumber(v string) { + o.EquipmentSerialNumber = &v +} + +// GetLastMaintenanceDate returns the LastMaintenanceDate field value if set, zero value otherwise. +func (o *AssetDetails) GetLastMaintenanceDate() string { + if o == nil || IsNil(o.LastMaintenanceDate) { + var ret string + return ret + } + return *o.LastMaintenanceDate +} + +// GetLastMaintenanceDateOk returns a tuple with the LastMaintenanceDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetLastMaintenanceDateOk() (*string, bool) { + if o == nil || IsNil(o.LastMaintenanceDate) { + return nil, false + } + return o.LastMaintenanceDate, true +} + +// HasLastMaintenanceDate returns a boolean if a field has been set. +func (o *AssetDetails) HasLastMaintenanceDate() bool { + if o != nil && !IsNil(o.LastMaintenanceDate) { + return true + } + + return false +} + +// SetLastMaintenanceDate gets a reference to the given string and assigns it to the LastMaintenanceDate field. +func (o *AssetDetails) SetLastMaintenanceDate(v string) { + o.LastMaintenanceDate = &v +} + +// GetManufacturerName returns the ManufacturerName field value if set, zero value otherwise. +func (o *AssetDetails) GetManufacturerName() string { + if o == nil || IsNil(o.ManufacturerName) { + var ret string + return ret + } + return *o.ManufacturerName +} + +// GetManufacturerNameOk returns a tuple with the ManufacturerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetManufacturerNameOk() (*string, bool) { + if o == nil || IsNil(o.ManufacturerName) { + return nil, false + } + return o.ManufacturerName, true +} + +// HasManufacturerName returns a boolean if a field has been set. +func (o *AssetDetails) HasManufacturerName() bool { + if o != nil && !IsNil(o.ManufacturerName) { + return true + } + + return false +} + +// SetManufacturerName gets a reference to the given string and assigns it to the ManufacturerName field. +func (o *AssetDetails) SetManufacturerName(v string) { + o.ManufacturerName = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *AssetDetails) GetTags() []TagPointDataArray { + if o == nil || IsNil(o.Tags) { + var ret []TagPointDataArray + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetTagsOk() ([]TagPointDataArray, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *AssetDetails) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []TagPointDataArray and assigns it to the Tags field. +func (o *AssetDetails) SetTags(v []TagPointDataArray) { + o.Tags = v +} + +// GetUserPrefTimeZone returns the UserPrefTimeZone field value if set, zero value otherwise. +func (o *AssetDetails) GetUserPrefTimeZone() string { + if o == nil || IsNil(o.UserPrefTimeZone) { + var ret string + return ret + } + return *o.UserPrefTimeZone +} + +// GetUserPrefTimeZoneOk returns a tuple with the UserPrefTimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetails) GetUserPrefTimeZoneOk() (*string, bool) { + if o == nil || IsNil(o.UserPrefTimeZone) { + return nil, false + } + return o.UserPrefTimeZone, true +} + +// HasUserPrefTimeZone returns a boolean if a field has been set. +func (o *AssetDetails) HasUserPrefTimeZone() bool { + if o != nil && !IsNil(o.UserPrefTimeZone) { + return true + } + + return false +} + +// SetUserPrefTimeZone gets a reference to the given string and assigns it to the UserPrefTimeZone field. +func (o *AssetDetails) SetUserPrefTimeZone(v string) { + o.UserPrefTimeZone = &v +} + +func (o AssetDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlarmLastProcessedTime) { + toSerialize["alarmLastProcessedTime"] = o.AlarmLastProcessedTime + } + if !IsNil(o.AlarmLastTriggeredTime) { + toSerialize["alarmLastTriggeredTime"] = o.AlarmLastTriggeredTime + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetType) { + toSerialize["assetType"] = o.AssetType + } + if !IsNil(o.EquipmentModelNumber) { + toSerialize["equipmentModelNumber"] = o.EquipmentModelNumber + } + if !IsNil(o.EquipmentSerialNumber) { + toSerialize["equipmentSerialNumber"] = o.EquipmentSerialNumber + } + if !IsNil(o.LastMaintenanceDate) { + toSerialize["lastMaintenanceDate"] = o.LastMaintenanceDate + } + if !IsNil(o.ManufacturerName) { + toSerialize["manufacturerName"] = o.ManufacturerName + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.UserPrefTimeZone) { + toSerialize["userPrefTimeZone"] = o.UserPrefTimeZone + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetails) UnmarshalJSON(data []byte) (err error) { + varAssetDetails := _AssetDetails{} + + err = json.Unmarshal(data, &varAssetDetails) + + if err != nil { + return err + } + + *o = AssetDetails(varAssetDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alarmLastProcessedTime") + delete(additionalProperties, "alarmLastTriggeredTime") + delete(additionalProperties, "assetId") + delete(additionalProperties, "assetType") + delete(additionalProperties, "equipmentModelNumber") + delete(additionalProperties, "equipmentSerialNumber") + delete(additionalProperties, "lastMaintenanceDate") + delete(additionalProperties, "manufacturerName") + delete(additionalProperties, "tags") + delete(additionalProperties, "userPrefTimeZone") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetails struct { + value *AssetDetails + isSet bool +} + +func (v NullableAssetDetails) Get() *AssetDetails { + return v.value +} + +func (v *NullableAssetDetails) Set(val *AssetDetails) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetails(val *AssetDetails) *NullableAssetDetails { + return &NullableAssetDetails{value: val, isSet: true} +} + +func (v NullableAssetDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_details_get_response.go b/services/smartview/model_asset_details_get_response.go new file mode 100644 index 00000000..79d848fa --- /dev/null +++ b/services/smartview/model_asset_details_get_response.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailsGetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailsGetResponse{} + +// AssetDetailsGetResponse struct for AssetDetailsGetResponse +type AssetDetailsGetResponse struct { + PayLoad *AssetDetailsGetResponsePayLoad `json:"payLoad,omitempty"` + Status *AssetDetailResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailsGetResponse AssetDetailsGetResponse + +// NewAssetDetailsGetResponse instantiates a new AssetDetailsGetResponse 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 NewAssetDetailsGetResponse() *AssetDetailsGetResponse { + this := AssetDetailsGetResponse{} + return &this +} + +// NewAssetDetailsGetResponseWithDefaults instantiates a new AssetDetailsGetResponse 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 NewAssetDetailsGetResponseWithDefaults() *AssetDetailsGetResponse { + this := AssetDetailsGetResponse{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *AssetDetailsGetResponse) GetPayLoad() AssetDetailsGetResponsePayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret AssetDetailsGetResponsePayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponse) GetPayLoadOk() (*AssetDetailsGetResponsePayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *AssetDetailsGetResponse) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given AssetDetailsGetResponsePayLoad and assigns it to the PayLoad field. +func (o *AssetDetailsGetResponse) SetPayLoad(v AssetDetailsGetResponsePayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AssetDetailsGetResponse) GetStatus() AssetDetailResponseStatus { + if o == nil || IsNil(o.Status) { + var ret AssetDetailResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponse) GetStatusOk() (*AssetDetailResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AssetDetailsGetResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetDetailResponseStatus and assigns it to the Status field. +func (o *AssetDetailsGetResponse) SetStatus(v AssetDetailResponseStatus) { + o.Status = &v +} + +func (o AssetDetailsGetResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailsGetResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailsGetResponse) UnmarshalJSON(data []byte) (err error) { + varAssetDetailsGetResponse := _AssetDetailsGetResponse{} + + err = json.Unmarshal(data, &varAssetDetailsGetResponse) + + if err != nil { + return err + } + + *o = AssetDetailsGetResponse(varAssetDetailsGetResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailsGetResponse struct { + value *AssetDetailsGetResponse + isSet bool +} + +func (v NullableAssetDetailsGetResponse) Get() *AssetDetailsGetResponse { + return v.value +} + +func (v *NullableAssetDetailsGetResponse) Set(val *AssetDetailsGetResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailsGetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailsGetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailsGetResponse(val *AssetDetailsGetResponse) *NullableAssetDetailsGetResponse { + return &NullableAssetDetailsGetResponse{value: val, isSet: true} +} + +func (v NullableAssetDetailsGetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailsGetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_details_get_response_pay_load.go b/services/smartview/model_asset_details_get_response_pay_load.go new file mode 100644 index 00000000..bff21288 --- /dev/null +++ b/services/smartview/model_asset_details_get_response_pay_load.go @@ -0,0 +1,498 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailsGetResponsePayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailsGetResponsePayLoad{} + +// AssetDetailsGetResponsePayLoad struct for AssetDetailsGetResponsePayLoad +type AssetDetailsGetResponsePayLoad struct { + // Datetime when the latest alarm was processed on the asset + AlarmLastProcessedTime *string `json:"alarmLastProcessedTime,omitempty"` + // Datetime when the latest alarm was triggered on the asset + AlarmLastTriggeredTime *string `json:"alarmLastTriggeredTime,omitempty"` + // asset id for the Asset + AssetId *string `json:"assetId,omitempty"` + // Template Name for the asset + AssetType *string `json:"assetType,omitempty"` + // Equipment Model Number + EquipmentModelNumber *string `json:"equipmentModelNumber,omitempty"` + // Equipment Serial Number + EquipmentSerialNumber *string `json:"equipmentSerialNumber,omitempty"` + // Datetime when the machine had its last maintenance + LastMaintenanceDate *string `json:"lastMaintenanceDate,omitempty"` + // Manufacturer name for the Asset + ManufacturerName *string `json:"manufacturerName,omitempty"` + // List of tag points for the Asset + Tags []TagPointDataArray `json:"tags,omitempty"` + // Time zone for the user + UserPrefTimeZone *string `json:"userPrefTimeZone,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailsGetResponsePayLoad AssetDetailsGetResponsePayLoad + +// NewAssetDetailsGetResponsePayLoad instantiates a new AssetDetailsGetResponsePayLoad 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 NewAssetDetailsGetResponsePayLoad() *AssetDetailsGetResponsePayLoad { + this := AssetDetailsGetResponsePayLoad{} + return &this +} + +// NewAssetDetailsGetResponsePayLoadWithDefaults instantiates a new AssetDetailsGetResponsePayLoad 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 NewAssetDetailsGetResponsePayLoadWithDefaults() *AssetDetailsGetResponsePayLoad { + this := AssetDetailsGetResponsePayLoad{} + return &this +} + +// GetAlarmLastProcessedTime returns the AlarmLastProcessedTime field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastProcessedTime() string { + if o == nil || IsNil(o.AlarmLastProcessedTime) { + var ret string + return ret + } + return *o.AlarmLastProcessedTime +} + +// GetAlarmLastProcessedTimeOk returns a tuple with the AlarmLastProcessedTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastProcessedTimeOk() (*string, bool) { + if o == nil || IsNil(o.AlarmLastProcessedTime) { + return nil, false + } + return o.AlarmLastProcessedTime, true +} + +// HasAlarmLastProcessedTime returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasAlarmLastProcessedTime() bool { + if o != nil && !IsNil(o.AlarmLastProcessedTime) { + return true + } + + return false +} + +// SetAlarmLastProcessedTime gets a reference to the given string and assigns it to the AlarmLastProcessedTime field. +func (o *AssetDetailsGetResponsePayLoad) SetAlarmLastProcessedTime(v string) { + o.AlarmLastProcessedTime = &v +} + +// GetAlarmLastTriggeredTime returns the AlarmLastTriggeredTime field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastTriggeredTime() string { + if o == nil || IsNil(o.AlarmLastTriggeredTime) { + var ret string + return ret + } + return *o.AlarmLastTriggeredTime +} + +// GetAlarmLastTriggeredTimeOk returns a tuple with the AlarmLastTriggeredTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetAlarmLastTriggeredTimeOk() (*string, bool) { + if o == nil || IsNil(o.AlarmLastTriggeredTime) { + return nil, false + } + return o.AlarmLastTriggeredTime, true +} + +// HasAlarmLastTriggeredTime returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasAlarmLastTriggeredTime() bool { + if o != nil && !IsNil(o.AlarmLastTriggeredTime) { + return true + } + + return false +} + +// SetAlarmLastTriggeredTime gets a reference to the given string and assigns it to the AlarmLastTriggeredTime field. +func (o *AssetDetailsGetResponsePayLoad) SetAlarmLastTriggeredTime(v string) { + o.AlarmLastTriggeredTime = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *AssetDetailsGetResponsePayLoad) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetType returns the AssetType field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetAssetType() string { + if o == nil || IsNil(o.AssetType) { + var ret string + return ret + } + return *o.AssetType +} + +// GetAssetTypeOk returns a tuple with the AssetType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetAssetTypeOk() (*string, bool) { + if o == nil || IsNil(o.AssetType) { + return nil, false + } + return o.AssetType, true +} + +// HasAssetType returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasAssetType() bool { + if o != nil && !IsNil(o.AssetType) { + return true + } + + return false +} + +// SetAssetType gets a reference to the given string and assigns it to the AssetType field. +func (o *AssetDetailsGetResponsePayLoad) SetAssetType(v string) { + o.AssetType = &v +} + +// GetEquipmentModelNumber returns the EquipmentModelNumber field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetEquipmentModelNumber() string { + if o == nil || IsNil(o.EquipmentModelNumber) { + var ret string + return ret + } + return *o.EquipmentModelNumber +} + +// GetEquipmentModelNumberOk returns a tuple with the EquipmentModelNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetEquipmentModelNumberOk() (*string, bool) { + if o == nil || IsNil(o.EquipmentModelNumber) { + return nil, false + } + return o.EquipmentModelNumber, true +} + +// HasEquipmentModelNumber returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasEquipmentModelNumber() bool { + if o != nil && !IsNil(o.EquipmentModelNumber) { + return true + } + + return false +} + +// SetEquipmentModelNumber gets a reference to the given string and assigns it to the EquipmentModelNumber field. +func (o *AssetDetailsGetResponsePayLoad) SetEquipmentModelNumber(v string) { + o.EquipmentModelNumber = &v +} + +// GetEquipmentSerialNumber returns the EquipmentSerialNumber field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetEquipmentSerialNumber() string { + if o == nil || IsNil(o.EquipmentSerialNumber) { + var ret string + return ret + } + return *o.EquipmentSerialNumber +} + +// GetEquipmentSerialNumberOk returns a tuple with the EquipmentSerialNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetEquipmentSerialNumberOk() (*string, bool) { + if o == nil || IsNil(o.EquipmentSerialNumber) { + return nil, false + } + return o.EquipmentSerialNumber, true +} + +// HasEquipmentSerialNumber returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasEquipmentSerialNumber() bool { + if o != nil && !IsNil(o.EquipmentSerialNumber) { + return true + } + + return false +} + +// SetEquipmentSerialNumber gets a reference to the given string and assigns it to the EquipmentSerialNumber field. +func (o *AssetDetailsGetResponsePayLoad) SetEquipmentSerialNumber(v string) { + o.EquipmentSerialNumber = &v +} + +// GetLastMaintenanceDate returns the LastMaintenanceDate field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetLastMaintenanceDate() string { + if o == nil || IsNil(o.LastMaintenanceDate) { + var ret string + return ret + } + return *o.LastMaintenanceDate +} + +// GetLastMaintenanceDateOk returns a tuple with the LastMaintenanceDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetLastMaintenanceDateOk() (*string, bool) { + if o == nil || IsNil(o.LastMaintenanceDate) { + return nil, false + } + return o.LastMaintenanceDate, true +} + +// HasLastMaintenanceDate returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasLastMaintenanceDate() bool { + if o != nil && !IsNil(o.LastMaintenanceDate) { + return true + } + + return false +} + +// SetLastMaintenanceDate gets a reference to the given string and assigns it to the LastMaintenanceDate field. +func (o *AssetDetailsGetResponsePayLoad) SetLastMaintenanceDate(v string) { + o.LastMaintenanceDate = &v +} + +// GetManufacturerName returns the ManufacturerName field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetManufacturerName() string { + if o == nil || IsNil(o.ManufacturerName) { + var ret string + return ret + } + return *o.ManufacturerName +} + +// GetManufacturerNameOk returns a tuple with the ManufacturerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetManufacturerNameOk() (*string, bool) { + if o == nil || IsNil(o.ManufacturerName) { + return nil, false + } + return o.ManufacturerName, true +} + +// HasManufacturerName returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasManufacturerName() bool { + if o != nil && !IsNil(o.ManufacturerName) { + return true + } + + return false +} + +// SetManufacturerName gets a reference to the given string and assigns it to the ManufacturerName field. +func (o *AssetDetailsGetResponsePayLoad) SetManufacturerName(v string) { + o.ManufacturerName = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetTags() []TagPointDataArray { + if o == nil || IsNil(o.Tags) { + var ret []TagPointDataArray + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetTagsOk() ([]TagPointDataArray, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []TagPointDataArray and assigns it to the Tags field. +func (o *AssetDetailsGetResponsePayLoad) SetTags(v []TagPointDataArray) { + o.Tags = v +} + +// GetUserPrefTimeZone returns the UserPrefTimeZone field value if set, zero value otherwise. +func (o *AssetDetailsGetResponsePayLoad) GetUserPrefTimeZone() string { + if o == nil || IsNil(o.UserPrefTimeZone) { + var ret string + return ret + } + return *o.UserPrefTimeZone +} + +// GetUserPrefTimeZoneOk returns a tuple with the UserPrefTimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsGetResponsePayLoad) GetUserPrefTimeZoneOk() (*string, bool) { + if o == nil || IsNil(o.UserPrefTimeZone) { + return nil, false + } + return o.UserPrefTimeZone, true +} + +// HasUserPrefTimeZone returns a boolean if a field has been set. +func (o *AssetDetailsGetResponsePayLoad) HasUserPrefTimeZone() bool { + if o != nil && !IsNil(o.UserPrefTimeZone) { + return true + } + + return false +} + +// SetUserPrefTimeZone gets a reference to the given string and assigns it to the UserPrefTimeZone field. +func (o *AssetDetailsGetResponsePayLoad) SetUserPrefTimeZone(v string) { + o.UserPrefTimeZone = &v +} + +func (o AssetDetailsGetResponsePayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailsGetResponsePayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlarmLastProcessedTime) { + toSerialize["alarmLastProcessedTime"] = o.AlarmLastProcessedTime + } + if !IsNil(o.AlarmLastTriggeredTime) { + toSerialize["alarmLastTriggeredTime"] = o.AlarmLastTriggeredTime + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetType) { + toSerialize["assetType"] = o.AssetType + } + if !IsNil(o.EquipmentModelNumber) { + toSerialize["equipmentModelNumber"] = o.EquipmentModelNumber + } + if !IsNil(o.EquipmentSerialNumber) { + toSerialize["equipmentSerialNumber"] = o.EquipmentSerialNumber + } + if !IsNil(o.LastMaintenanceDate) { + toSerialize["lastMaintenanceDate"] = o.LastMaintenanceDate + } + if !IsNil(o.ManufacturerName) { + toSerialize["manufacturerName"] = o.ManufacturerName + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.UserPrefTimeZone) { + toSerialize["userPrefTimeZone"] = o.UserPrefTimeZone + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailsGetResponsePayLoad) UnmarshalJSON(data []byte) (err error) { + varAssetDetailsGetResponsePayLoad := _AssetDetailsGetResponsePayLoad{} + + err = json.Unmarshal(data, &varAssetDetailsGetResponsePayLoad) + + if err != nil { + return err + } + + *o = AssetDetailsGetResponsePayLoad(varAssetDetailsGetResponsePayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alarmLastProcessedTime") + delete(additionalProperties, "alarmLastTriggeredTime") + delete(additionalProperties, "assetId") + delete(additionalProperties, "assetType") + delete(additionalProperties, "equipmentModelNumber") + delete(additionalProperties, "equipmentSerialNumber") + delete(additionalProperties, "lastMaintenanceDate") + delete(additionalProperties, "manufacturerName") + delete(additionalProperties, "tags") + delete(additionalProperties, "userPrefTimeZone") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailsGetResponsePayLoad struct { + value *AssetDetailsGetResponsePayLoad + isSet bool +} + +func (v NullableAssetDetailsGetResponsePayLoad) Get() *AssetDetailsGetResponsePayLoad { + return v.value +} + +func (v *NullableAssetDetailsGetResponsePayLoad) Set(val *AssetDetailsGetResponsePayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailsGetResponsePayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailsGetResponsePayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailsGetResponsePayLoad(val *AssetDetailsGetResponsePayLoad) *NullableAssetDetailsGetResponsePayLoad { + return &NullableAssetDetailsGetResponsePayLoad{value: val, isSet: true} +} + +func (v NullableAssetDetailsGetResponsePayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailsGetResponsePayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_details_request.go b/services/smartview/model_asset_details_request.go new file mode 100644 index 00000000..6f27b7a2 --- /dev/null +++ b/services/smartview/model_asset_details_request.go @@ -0,0 +1,269 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailsRequest{} + +// AssetDetailsRequest struct for AssetDetailsRequest +type AssetDetailsRequest struct { + // customer account number + AccountNo *string `json:"accountNo,omitempty"` + // asset classification + Classification *string `json:"classification,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + AssetIds []string `json:"assetIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailsRequest AssetDetailsRequest + +// NewAssetDetailsRequest instantiates a new AssetDetailsRequest 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 NewAssetDetailsRequest() *AssetDetailsRequest { + this := AssetDetailsRequest{} + return &this +} + +// NewAssetDetailsRequestWithDefaults instantiates a new AssetDetailsRequest 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 NewAssetDetailsRequestWithDefaults() *AssetDetailsRequest { + this := AssetDetailsRequest{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *AssetDetailsRequest) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsRequest) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *AssetDetailsRequest) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *AssetDetailsRequest) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetClassification returns the Classification field value if set, zero value otherwise. +func (o *AssetDetailsRequest) GetClassification() string { + if o == nil || IsNil(o.Classification) { + var ret string + return ret + } + return *o.Classification +} + +// GetClassificationOk returns a tuple with the Classification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsRequest) GetClassificationOk() (*string, bool) { + if o == nil || IsNil(o.Classification) { + return nil, false + } + return o.Classification, true +} + +// HasClassification returns a boolean if a field has been set. +func (o *AssetDetailsRequest) HasClassification() bool { + if o != nil && !IsNil(o.Classification) { + return true + } + + return false +} + +// SetClassification gets a reference to the given string and assigns it to the Classification field. +func (o *AssetDetailsRequest) SetClassification(v string) { + o.Classification = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *AssetDetailsRequest) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsRequest) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *AssetDetailsRequest) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *AssetDetailsRequest) SetIbx(v string) { + o.Ibx = &v +} + +// GetAssetIds returns the AssetIds field value if set, zero value otherwise. +func (o *AssetDetailsRequest) GetAssetIds() []string { + if o == nil || IsNil(o.AssetIds) { + var ret []string + return ret + } + return o.AssetIds +} + +// GetAssetIdsOk returns a tuple with the AssetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsRequest) GetAssetIdsOk() ([]string, bool) { + if o == nil || IsNil(o.AssetIds) { + return nil, false + } + return o.AssetIds, true +} + +// HasAssetIds returns a boolean if a field has been set. +func (o *AssetDetailsRequest) HasAssetIds() bool { + if o != nil && !IsNil(o.AssetIds) { + return true + } + + return false +} + +// SetAssetIds gets a reference to the given []string and assigns it to the AssetIds field. +func (o *AssetDetailsRequest) SetAssetIds(v []string) { + o.AssetIds = v +} + +func (o AssetDetailsRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailsRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Classification) { + toSerialize["classification"] = o.Classification + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.AssetIds) { + toSerialize["assetIds"] = o.AssetIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailsRequest) UnmarshalJSON(data []byte) (err error) { + varAssetDetailsRequest := _AssetDetailsRequest{} + + err = json.Unmarshal(data, &varAssetDetailsRequest) + + if err != nil { + return err + } + + *o = AssetDetailsRequest(varAssetDetailsRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "classification") + delete(additionalProperties, "ibx") + delete(additionalProperties, "assetIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailsRequest struct { + value *AssetDetailsRequest + isSet bool +} + +func (v NullableAssetDetailsRequest) Get() *AssetDetailsRequest { + return v.value +} + +func (v *NullableAssetDetailsRequest) Set(val *AssetDetailsRequest) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailsRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailsRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailsRequest(val *AssetDetailsRequest) *NullableAssetDetailsRequest { + return &NullableAssetDetailsRequest{value: val, isSet: true} +} + +func (v NullableAssetDetailsRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailsRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_details_response.go b/services/smartview/model_asset_details_response.go new file mode 100644 index 00000000..6c5d2f55 --- /dev/null +++ b/services/smartview/model_asset_details_response.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailsResponse{} + +// AssetDetailsResponse response object for asset/details POST request +type AssetDetailsResponse struct { + PayLoad *AssetDetailsResponsePayLoad `json:"payLoad,omitempty"` + Status *AssetDetailResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailsResponse AssetDetailsResponse + +// NewAssetDetailsResponse instantiates a new AssetDetailsResponse 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 NewAssetDetailsResponse() *AssetDetailsResponse { + this := AssetDetailsResponse{} + return &this +} + +// NewAssetDetailsResponseWithDefaults instantiates a new AssetDetailsResponse 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 NewAssetDetailsResponseWithDefaults() *AssetDetailsResponse { + this := AssetDetailsResponse{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *AssetDetailsResponse) GetPayLoad() AssetDetailsResponsePayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret AssetDetailsResponsePayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsResponse) GetPayLoadOk() (*AssetDetailsResponsePayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *AssetDetailsResponse) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given AssetDetailsResponsePayLoad and assigns it to the PayLoad field. +func (o *AssetDetailsResponse) SetPayLoad(v AssetDetailsResponsePayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AssetDetailsResponse) GetStatus() AssetDetailResponseStatus { + if o == nil || IsNil(o.Status) { + var ret AssetDetailResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsResponse) GetStatusOk() (*AssetDetailResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AssetDetailsResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetDetailResponseStatus and assigns it to the Status field. +func (o *AssetDetailsResponse) SetStatus(v AssetDetailResponseStatus) { + o.Status = &v +} + +func (o AssetDetailsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailsResponse) UnmarshalJSON(data []byte) (err error) { + varAssetDetailsResponse := _AssetDetailsResponse{} + + err = json.Unmarshal(data, &varAssetDetailsResponse) + + if err != nil { + return err + } + + *o = AssetDetailsResponse(varAssetDetailsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailsResponse struct { + value *AssetDetailsResponse + isSet bool +} + +func (v NullableAssetDetailsResponse) Get() *AssetDetailsResponse { + return v.value +} + +func (v *NullableAssetDetailsResponse) Set(val *AssetDetailsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailsResponse(val *AssetDetailsResponse) *NullableAssetDetailsResponse { + return &NullableAssetDetailsResponse{value: val, isSet: true} +} + +func (v NullableAssetDetailsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_details_response_pay_load.go b/services/smartview/model_asset_details_response_pay_load.go new file mode 100644 index 00000000..3912512b --- /dev/null +++ b/services/smartview/model_asset_details_response_pay_load.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailsResponsePayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailsResponsePayLoad{} + +// AssetDetailsResponsePayLoad struct for AssetDetailsResponsePayLoad +type AssetDetailsResponsePayLoad struct { + AssetDetails []AssetDetails `json:"assetDetails,omitempty"` + // total number of assets that match the request filters + TotalCount *int32 `json:"totalCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailsResponsePayLoad AssetDetailsResponsePayLoad + +// NewAssetDetailsResponsePayLoad instantiates a new AssetDetailsResponsePayLoad 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 NewAssetDetailsResponsePayLoad() *AssetDetailsResponsePayLoad { + this := AssetDetailsResponsePayLoad{} + return &this +} + +// NewAssetDetailsResponsePayLoadWithDefaults instantiates a new AssetDetailsResponsePayLoad 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 NewAssetDetailsResponsePayLoadWithDefaults() *AssetDetailsResponsePayLoad { + this := AssetDetailsResponsePayLoad{} + return &this +} + +// GetAssetDetails returns the AssetDetails field value if set, zero value otherwise. +func (o *AssetDetailsResponsePayLoad) GetAssetDetails() []AssetDetails { + if o == nil || IsNil(o.AssetDetails) { + var ret []AssetDetails + return ret + } + return o.AssetDetails +} + +// GetAssetDetailsOk returns a tuple with the AssetDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsResponsePayLoad) GetAssetDetailsOk() ([]AssetDetails, bool) { + if o == nil || IsNil(o.AssetDetails) { + return nil, false + } + return o.AssetDetails, true +} + +// HasAssetDetails returns a boolean if a field has been set. +func (o *AssetDetailsResponsePayLoad) HasAssetDetails() bool { + if o != nil && !IsNil(o.AssetDetails) { + return true + } + + return false +} + +// SetAssetDetails gets a reference to the given []AssetDetails and assigns it to the AssetDetails field. +func (o *AssetDetailsResponsePayLoad) SetAssetDetails(v []AssetDetails) { + o.AssetDetails = v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *AssetDetailsResponsePayLoad) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsResponsePayLoad) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *AssetDetailsResponsePayLoad) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *AssetDetailsResponsePayLoad) SetTotalCount(v int32) { + o.TotalCount = &v +} + +func (o AssetDetailsResponsePayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailsResponsePayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AssetDetails) { + toSerialize["assetDetails"] = o.AssetDetails + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailsResponsePayLoad) UnmarshalJSON(data []byte) (err error) { + varAssetDetailsResponsePayLoad := _AssetDetailsResponsePayLoad{} + + err = json.Unmarshal(data, &varAssetDetailsResponsePayLoad) + + if err != nil { + return err + } + + *o = AssetDetailsResponsePayLoad(varAssetDetailsResponsePayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assetDetails") + delete(additionalProperties, "totalCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailsResponsePayLoad struct { + value *AssetDetailsResponsePayLoad + isSet bool +} + +func (v NullableAssetDetailsResponsePayLoad) Get() *AssetDetailsResponsePayLoad { + return v.value +} + +func (v *NullableAssetDetailsResponsePayLoad) Set(val *AssetDetailsResponsePayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailsResponsePayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailsResponsePayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailsResponsePayLoad(val *AssetDetailsResponsePayLoad) *NullableAssetDetailsResponsePayLoad { + return &NullableAssetDetailsResponsePayLoad{value: val, isSet: true} +} + +func (v NullableAssetDetailsResponsePayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailsResponsePayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_asset_details_tag_point_data.go b/services/smartview/model_asset_details_tag_point_data.go new file mode 100644 index 00000000..b1e63418 --- /dev/null +++ b/services/smartview/model_asset_details_tag_point_data.go @@ -0,0 +1,155 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetDetailsTagPointData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetDetailsTagPointData{} + +// AssetDetailsTagPointData struct for AssetDetailsTagPointData +type AssetDetailsTagPointData struct { + PayLoad []TagPointDataArray `json:"payLoad,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetDetailsTagPointData AssetDetailsTagPointData + +// NewAssetDetailsTagPointData instantiates a new AssetDetailsTagPointData 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 NewAssetDetailsTagPointData() *AssetDetailsTagPointData { + this := AssetDetailsTagPointData{} + return &this +} + +// NewAssetDetailsTagPointDataWithDefaults instantiates a new AssetDetailsTagPointData 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 NewAssetDetailsTagPointDataWithDefaults() *AssetDetailsTagPointData { + this := AssetDetailsTagPointData{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *AssetDetailsTagPointData) GetPayLoad() []TagPointDataArray { + if o == nil || IsNil(o.PayLoad) { + var ret []TagPointDataArray + return ret + } + return o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetDetailsTagPointData) GetPayLoadOk() ([]TagPointDataArray, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *AssetDetailsTagPointData) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given []TagPointDataArray and assigns it to the PayLoad field. +func (o *AssetDetailsTagPointData) SetPayLoad(v []TagPointDataArray) { + o.PayLoad = v +} + +func (o AssetDetailsTagPointData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetDetailsTagPointData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetDetailsTagPointData) UnmarshalJSON(data []byte) (err error) { + varAssetDetailsTagPointData := _AssetDetailsTagPointData{} + + err = json.Unmarshal(data, &varAssetDetailsTagPointData) + + if err != nil { + return err + } + + *o = AssetDetailsTagPointData(varAssetDetailsTagPointData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetDetailsTagPointData struct { + value *AssetDetailsTagPointData + isSet bool +} + +func (v NullableAssetDetailsTagPointData) Get() *AssetDetailsTagPointData { + return v.value +} + +func (v *NullableAssetDetailsTagPointData) Set(val *AssetDetailsTagPointData) { + v.value = val + v.isSet = true +} + +func (v NullableAssetDetailsTagPointData) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetDetailsTagPointData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetDetailsTagPointData(val *AssetDetailsTagPointData) *NullableAssetDetailsTagPointData { + return &NullableAssetDetailsTagPointData{value: val, isSet: true} +} + +func (v NullableAssetDetailsTagPointData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetDetailsTagPointData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets.go b/services/smartview/model_assets.go new file mode 100644 index 00000000..0952c152 --- /dev/null +++ b/services/smartview/model_assets.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Assets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Assets{} + +// Assets struct for Assets +type Assets struct { + PayLoad *AssetsPayLoad `json:"payLoad,omitempty"` + Status *AssetsStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Assets Assets + +// NewAssets instantiates a new Assets 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 NewAssets() *Assets { + this := Assets{} + return &this +} + +// NewAssetsWithDefaults instantiates a new Assets 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 NewAssetsWithDefaults() *Assets { + this := Assets{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *Assets) GetPayLoad() AssetsPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret AssetsPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assets) GetPayLoadOk() (*AssetsPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *Assets) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given AssetsPayLoad and assigns it to the PayLoad field. +func (o *Assets) SetPayLoad(v AssetsPayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Assets) GetStatus() AssetsStatus { + if o == nil || IsNil(o.Status) { + var ret AssetsStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assets) GetStatusOk() (*AssetsStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Assets) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetsStatus and assigns it to the Status field. +func (o *Assets) SetStatus(v AssetsStatus) { + o.Status = &v +} + +func (o Assets) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Assets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Assets) UnmarshalJSON(data []byte) (err error) { + varAssets := _Assets{} + + err = json.Unmarshal(data, &varAssets) + + if err != nil { + return err + } + + *o = Assets(varAssets) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssets struct { + value *Assets + isSet bool +} + +func (v NullableAssets) Get() *Assets { + return v.value +} + +func (v *NullableAssets) Set(val *Assets) { + v.value = val + v.isSet = true +} + +func (v NullableAssets) IsSet() bool { + return v.isSet +} + +func (v *NullableAssets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssets(val *Assets) *NullableAssets { + return &NullableAssets{value: val, isSet: true} +} + +func (v NullableAssets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets_array.go b/services/smartview/model_assets_array.go new file mode 100644 index 00000000..29e7f404 --- /dev/null +++ b/services/smartview/model_assets_array.go @@ -0,0 +1,269 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetsArray type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetsArray{} + +// AssetsArray struct for AssetsArray +type AssetsArray struct { + // Asset classification is electrical or mechanical + AssetClassification *string `json:"assetClassification,omitempty"` + // The assetid is the circuit number, sensor id, asset id, asset id for type circuit, sensor, electrical and mechanical resp. + AssetId *string `json:"assetId,omitempty"` + // Asset Label is the Circuit display label, Sensor ID, and Asset ID for types circuit, sensor, electrical and mechanical resp. + AssetLabel *string `json:"assetLabel,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetsArray AssetsArray + +// NewAssetsArray instantiates a new AssetsArray 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 NewAssetsArray() *AssetsArray { + this := AssetsArray{} + return &this +} + +// NewAssetsArrayWithDefaults instantiates a new AssetsArray 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 NewAssetsArrayWithDefaults() *AssetsArray { + this := AssetsArray{} + return &this +} + +// GetAssetClassification returns the AssetClassification field value if set, zero value otherwise. +func (o *AssetsArray) GetAssetClassification() string { + if o == nil || IsNil(o.AssetClassification) { + var ret string + return ret + } + return *o.AssetClassification +} + +// GetAssetClassificationOk returns a tuple with the AssetClassification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsArray) GetAssetClassificationOk() (*string, bool) { + if o == nil || IsNil(o.AssetClassification) { + return nil, false + } + return o.AssetClassification, true +} + +// HasAssetClassification returns a boolean if a field has been set. +func (o *AssetsArray) HasAssetClassification() bool { + if o != nil && !IsNil(o.AssetClassification) { + return true + } + + return false +} + +// SetAssetClassification gets a reference to the given string and assigns it to the AssetClassification field. +func (o *AssetsArray) SetAssetClassification(v string) { + o.AssetClassification = &v +} + +// GetAssetId returns the AssetId field value if set, zero value otherwise. +func (o *AssetsArray) GetAssetId() string { + if o == nil || IsNil(o.AssetId) { + var ret string + return ret + } + return *o.AssetId +} + +// GetAssetIdOk returns a tuple with the AssetId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsArray) GetAssetIdOk() (*string, bool) { + if o == nil || IsNil(o.AssetId) { + return nil, false + } + return o.AssetId, true +} + +// HasAssetId returns a boolean if a field has been set. +func (o *AssetsArray) HasAssetId() bool { + if o != nil && !IsNil(o.AssetId) { + return true + } + + return false +} + +// SetAssetId gets a reference to the given string and assigns it to the AssetId field. +func (o *AssetsArray) SetAssetId(v string) { + o.AssetId = &v +} + +// GetAssetLabel returns the AssetLabel field value if set, zero value otherwise. +func (o *AssetsArray) GetAssetLabel() string { + if o == nil || IsNil(o.AssetLabel) { + var ret string + return ret + } + return *o.AssetLabel +} + +// GetAssetLabelOk returns a tuple with the AssetLabel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsArray) GetAssetLabelOk() (*string, bool) { + if o == nil || IsNil(o.AssetLabel) { + return nil, false + } + return o.AssetLabel, true +} + +// HasAssetLabel returns a boolean if a field has been set. +func (o *AssetsArray) HasAssetLabel() bool { + if o != nil && !IsNil(o.AssetLabel) { + return true + } + + return false +} + +// SetAssetLabel gets a reference to the given string and assigns it to the AssetLabel field. +func (o *AssetsArray) SetAssetLabel(v string) { + o.AssetLabel = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AssetsArray) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsArray) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AssetsArray) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *AssetsArray) SetType(v string) { + o.Type = &v +} + +func (o AssetsArray) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetsArray) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AssetClassification) { + toSerialize["assetClassification"] = o.AssetClassification + } + if !IsNil(o.AssetId) { + toSerialize["assetId"] = o.AssetId + } + if !IsNil(o.AssetLabel) { + toSerialize["assetLabel"] = o.AssetLabel + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetsArray) UnmarshalJSON(data []byte) (err error) { + varAssetsArray := _AssetsArray{} + + err = json.Unmarshal(data, &varAssetsArray) + + if err != nil { + return err + } + + *o = AssetsArray(varAssetsArray) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assetClassification") + delete(additionalProperties, "assetId") + delete(additionalProperties, "assetLabel") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetsArray struct { + value *AssetsArray + isSet bool +} + +func (v NullableAssetsArray) Get() *AssetsArray { + return v.value +} + +func (v *NullableAssetsArray) Set(val *AssetsArray) { + v.value = val + v.isSet = true +} + +func (v NullableAssetsArray) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetsArray) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetsArray(val *AssetsArray) *NullableAssetsArray { + return &NullableAssetsArray{value: val, isSet: true} +} + +func (v NullableAssetsArray) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetsArray) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets_list.go b/services/smartview/model_assets_list.go new file mode 100644 index 00000000..847af45a --- /dev/null +++ b/services/smartview/model_assets_list.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetsList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetsList{} + +// AssetsList struct for AssetsList +type AssetsList struct { + PayLoad *AssetsListPayLoad `json:"payLoad,omitempty"` + Status *AssetsListStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetsList AssetsList + +// NewAssetsList instantiates a new AssetsList 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 NewAssetsList() *AssetsList { + this := AssetsList{} + return &this +} + +// NewAssetsListWithDefaults instantiates a new AssetsList 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 NewAssetsListWithDefaults() *AssetsList { + this := AssetsList{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *AssetsList) GetPayLoad() AssetsListPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret AssetsListPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsList) GetPayLoadOk() (*AssetsListPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *AssetsList) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given AssetsListPayLoad and assigns it to the PayLoad field. +func (o *AssetsList) SetPayLoad(v AssetsListPayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *AssetsList) GetStatus() AssetsListStatus { + if o == nil || IsNil(o.Status) { + var ret AssetsListStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsList) GetStatusOk() (*AssetsListStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *AssetsList) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetsListStatus and assigns it to the Status field. +func (o *AssetsList) SetStatus(v AssetsListStatus) { + o.Status = &v +} + +func (o AssetsList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetsList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetsList) UnmarshalJSON(data []byte) (err error) { + varAssetsList := _AssetsList{} + + err = json.Unmarshal(data, &varAssetsList) + + if err != nil { + return err + } + + *o = AssetsList(varAssetsList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetsList struct { + value *AssetsList + isSet bool +} + +func (v NullableAssetsList) Get() *AssetsList { + return v.value +} + +func (v *NullableAssetsList) Set(val *AssetsList) { + v.value = val + v.isSet = true +} + +func (v NullableAssetsList) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetsList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetsList(val *AssetsList) *NullableAssetsList { + return &NullableAssetsList{value: val, isSet: true} +} + +func (v NullableAssetsList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetsList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets_list_pay_load.go b/services/smartview/model_assets_list_pay_load.go new file mode 100644 index 00000000..e29f2256 --- /dev/null +++ b/services/smartview/model_assets_list_pay_load.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetsListPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetsListPayLoad{} + +// AssetsListPayLoad struct for AssetsListPayLoad +type AssetsListPayLoad struct { + Categories []Category `json:"categories,omitempty"` + // asset classification for the Electrical and Mechanical + Classification *string `json:"classification,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetsListPayLoad AssetsListPayLoad + +// NewAssetsListPayLoad instantiates a new AssetsListPayLoad 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 NewAssetsListPayLoad() *AssetsListPayLoad { + this := AssetsListPayLoad{} + return &this +} + +// NewAssetsListPayLoadWithDefaults instantiates a new AssetsListPayLoad 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 NewAssetsListPayLoadWithDefaults() *AssetsListPayLoad { + this := AssetsListPayLoad{} + return &this +} + +// GetCategories returns the Categories field value if set, zero value otherwise. +func (o *AssetsListPayLoad) GetCategories() []Category { + if o == nil || IsNil(o.Categories) { + var ret []Category + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsListPayLoad) GetCategoriesOk() ([]Category, bool) { + if o == nil || IsNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *AssetsListPayLoad) HasCategories() bool { + if o != nil && !IsNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []Category and assigns it to the Categories field. +func (o *AssetsListPayLoad) SetCategories(v []Category) { + o.Categories = v +} + +// GetClassification returns the Classification field value if set, zero value otherwise. +func (o *AssetsListPayLoad) GetClassification() string { + if o == nil || IsNil(o.Classification) { + var ret string + return ret + } + return *o.Classification +} + +// GetClassificationOk returns a tuple with the Classification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsListPayLoad) GetClassificationOk() (*string, bool) { + if o == nil || IsNil(o.Classification) { + return nil, false + } + return o.Classification, true +} + +// HasClassification returns a boolean if a field has been set. +func (o *AssetsListPayLoad) HasClassification() bool { + if o != nil && !IsNil(o.Classification) { + return true + } + + return false +} + +// SetClassification gets a reference to the given string and assigns it to the Classification field. +func (o *AssetsListPayLoad) SetClassification(v string) { + o.Classification = &v +} + +func (o AssetsListPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetsListPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Categories) { + toSerialize["categories"] = o.Categories + } + if !IsNil(o.Classification) { + toSerialize["classification"] = o.Classification + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetsListPayLoad) UnmarshalJSON(data []byte) (err error) { + varAssetsListPayLoad := _AssetsListPayLoad{} + + err = json.Unmarshal(data, &varAssetsListPayLoad) + + if err != nil { + return err + } + + *o = AssetsListPayLoad(varAssetsListPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "categories") + delete(additionalProperties, "classification") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetsListPayLoad struct { + value *AssetsListPayLoad + isSet bool +} + +func (v NullableAssetsListPayLoad) Get() *AssetsListPayLoad { + return v.value +} + +func (v *NullableAssetsListPayLoad) Set(val *AssetsListPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableAssetsListPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetsListPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetsListPayLoad(val *AssetsListPayLoad) *NullableAssetsListPayLoad { + return &NullableAssetsListPayLoad{value: val, isSet: true} +} + +func (v NullableAssetsListPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetsListPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets_list_status.go b/services/smartview/model_assets_list_status.go new file mode 100644 index 00000000..c960b379 --- /dev/null +++ b/services/smartview/model_assets_list_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetsListStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetsListStatus{} + +// AssetsListStatus struct for AssetsListStatus +type AssetsListStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetsListStatus AssetsListStatus + +// NewAssetsListStatus instantiates a new AssetsListStatus 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 NewAssetsListStatus() *AssetsListStatus { + this := AssetsListStatus{} + return &this +} + +// NewAssetsListStatusWithDefaults instantiates a new AssetsListStatus 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 NewAssetsListStatusWithDefaults() *AssetsListStatus { + this := AssetsListStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AssetsListStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsListStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *AssetsListStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AssetsListStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *AssetsListStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsListStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *AssetsListStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *AssetsListStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AssetsListStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsListStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AssetsListStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *AssetsListStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o AssetsListStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetsListStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetsListStatus) UnmarshalJSON(data []byte) (err error) { + varAssetsListStatus := _AssetsListStatus{} + + err = json.Unmarshal(data, &varAssetsListStatus) + + if err != nil { + return err + } + + *o = AssetsListStatus(varAssetsListStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetsListStatus struct { + value *AssetsListStatus + isSet bool +} + +func (v NullableAssetsListStatus) Get() *AssetsListStatus { + return v.value +} + +func (v *NullableAssetsListStatus) Set(val *AssetsListStatus) { + v.value = val + v.isSet = true +} + +func (v NullableAssetsListStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetsListStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetsListStatus(val *AssetsListStatus) *NullableAssetsListStatus { + return &NullableAssetsListStatus{value: val, isSet: true} +} + +func (v NullableAssetsListStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetsListStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets_pay_load.go b/services/smartview/model_assets_pay_load.go new file mode 100644 index 00000000..5e7b6d19 --- /dev/null +++ b/services/smartview/model_assets_pay_load.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetsPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetsPayLoad{} + +// AssetsPayLoad struct for AssetsPayLoad +type AssetsPayLoad struct { + AssetsList []AssetsArray `json:"assetsList,omitempty"` + TotalCount *int32 `json:"totalCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetsPayLoad AssetsPayLoad + +// NewAssetsPayLoad instantiates a new AssetsPayLoad 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 NewAssetsPayLoad() *AssetsPayLoad { + this := AssetsPayLoad{} + return &this +} + +// NewAssetsPayLoadWithDefaults instantiates a new AssetsPayLoad 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 NewAssetsPayLoadWithDefaults() *AssetsPayLoad { + this := AssetsPayLoad{} + return &this +} + +// GetAssetsList returns the AssetsList field value if set, zero value otherwise. +func (o *AssetsPayLoad) GetAssetsList() []AssetsArray { + if o == nil || IsNil(o.AssetsList) { + var ret []AssetsArray + return ret + } + return o.AssetsList +} + +// GetAssetsListOk returns a tuple with the AssetsList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsPayLoad) GetAssetsListOk() ([]AssetsArray, bool) { + if o == nil || IsNil(o.AssetsList) { + return nil, false + } + return o.AssetsList, true +} + +// HasAssetsList returns a boolean if a field has been set. +func (o *AssetsPayLoad) HasAssetsList() bool { + if o != nil && !IsNil(o.AssetsList) { + return true + } + + return false +} + +// SetAssetsList gets a reference to the given []AssetsArray and assigns it to the AssetsList field. +func (o *AssetsPayLoad) SetAssetsList(v []AssetsArray) { + o.AssetsList = v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *AssetsPayLoad) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsPayLoad) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *AssetsPayLoad) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *AssetsPayLoad) SetTotalCount(v int32) { + o.TotalCount = &v +} + +func (o AssetsPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetsPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AssetsList) { + toSerialize["assetsList"] = o.AssetsList + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetsPayLoad) UnmarshalJSON(data []byte) (err error) { + varAssetsPayLoad := _AssetsPayLoad{} + + err = json.Unmarshal(data, &varAssetsPayLoad) + + if err != nil { + return err + } + + *o = AssetsPayLoad(varAssetsPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assetsList") + delete(additionalProperties, "totalCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetsPayLoad struct { + value *AssetsPayLoad + isSet bool +} + +func (v NullableAssetsPayLoad) Get() *AssetsPayLoad { + return v.value +} + +func (v *NullableAssetsPayLoad) Set(val *AssetsPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableAssetsPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetsPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetsPayLoad(val *AssetsPayLoad) *NullableAssetsPayLoad { + return &NullableAssetsPayLoad{value: val, isSet: true} +} + +func (v NullableAssetsPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetsPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_assets_status.go b/services/smartview/model_assets_status.go new file mode 100644 index 00000000..289b7692 --- /dev/null +++ b/services/smartview/model_assets_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AssetsStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssetsStatus{} + +// AssetsStatus struct for AssetsStatus +type AssetsStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AssetsStatus AssetsStatus + +// NewAssetsStatus instantiates a new AssetsStatus 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 NewAssetsStatus() *AssetsStatus { + this := AssetsStatus{} + return &this +} + +// NewAssetsStatusWithDefaults instantiates a new AssetsStatus 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 NewAssetsStatusWithDefaults() *AssetsStatus { + this := AssetsStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AssetsStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *AssetsStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AssetsStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *AssetsStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *AssetsStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *AssetsStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AssetsStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssetsStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AssetsStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *AssetsStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o AssetsStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssetsStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AssetsStatus) UnmarshalJSON(data []byte) (err error) { + varAssetsStatus := _AssetsStatus{} + + err = json.Unmarshal(data, &varAssetsStatus) + + if err != nil { + return err + } + + *o = AssetsStatus(varAssetsStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAssetsStatus struct { + value *AssetsStatus + isSet bool +} + +func (v NullableAssetsStatus) Get() *AssetsStatus { + return v.value +} + +func (v *NullableAssetsStatus) Set(val *AssetsStatus) { + v.value = val + v.isSet = true +} + +func (v NullableAssetsStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableAssetsStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssetsStatus(val *AssetsStatus) *NullableAssetsStatus { + return &NullableAssetsStatus{value: val, isSet: true} +} + +func (v NullableAssetsStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssetsStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_aws_iot_core_channel_configuration.go b/services/smartview/model_aws_iot_core_channel_configuration.go new file mode 100644 index 00000000..8bef088b --- /dev/null +++ b/services/smartview/model_aws_iot_core_channel_configuration.go @@ -0,0 +1,168 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the AwsIotCoreChannelConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AwsIotCoreChannelConfiguration{} + +// AwsIotCoreChannelConfiguration The configuration for an 'AWS_IOT_CORE' channel +type AwsIotCoreChannelConfiguration struct { + Url string `json:"url"` + AdditionalProperties map[string]interface{} +} + +type _AwsIotCoreChannelConfiguration AwsIotCoreChannelConfiguration + +// NewAwsIotCoreChannelConfiguration instantiates a new AwsIotCoreChannelConfiguration 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 NewAwsIotCoreChannelConfiguration(url string) *AwsIotCoreChannelConfiguration { + this := AwsIotCoreChannelConfiguration{} + this.Url = url + return &this +} + +// NewAwsIotCoreChannelConfigurationWithDefaults instantiates a new AwsIotCoreChannelConfiguration 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 NewAwsIotCoreChannelConfigurationWithDefaults() *AwsIotCoreChannelConfiguration { + this := AwsIotCoreChannelConfiguration{} + return &this +} + +// GetUrl returns the Url field value +func (o *AwsIotCoreChannelConfiguration) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *AwsIotCoreChannelConfiguration) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *AwsIotCoreChannelConfiguration) SetUrl(v string) { + o.Url = v +} + +func (o AwsIotCoreChannelConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AwsIotCoreChannelConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AwsIotCoreChannelConfiguration) 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{ + "url", + } + + 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) + } + } + + varAwsIotCoreChannelConfiguration := _AwsIotCoreChannelConfiguration{} + + err = json.Unmarshal(data, &varAwsIotCoreChannelConfiguration) + + if err != nil { + return err + } + + *o = AwsIotCoreChannelConfiguration(varAwsIotCoreChannelConfiguration) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAwsIotCoreChannelConfiguration struct { + value *AwsIotCoreChannelConfiguration + isSet bool +} + +func (v NullableAwsIotCoreChannelConfiguration) Get() *AwsIotCoreChannelConfiguration { + return v.value +} + +func (v *NullableAwsIotCoreChannelConfiguration) Set(val *AwsIotCoreChannelConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableAwsIotCoreChannelConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableAwsIotCoreChannelConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAwsIotCoreChannelConfiguration(val *AwsIotCoreChannelConfiguration) *NullableAwsIotCoreChannelConfiguration { + return &NullableAwsIotCoreChannelConfiguration{value: val, isSet: true} +} + +func (v NullableAwsIotCoreChannelConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAwsIotCoreChannelConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_azure_channel_configuration.go b/services/smartview/model_azure_channel_configuration.go new file mode 100644 index 00000000..fbd59b1f --- /dev/null +++ b/services/smartview/model_azure_channel_configuration.go @@ -0,0 +1,229 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the AzureChannelConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AzureChannelConfiguration{} + +// AzureChannelConfiguration The configuration for an 'AZURE' channel +type AzureChannelConfiguration struct { + BatchSize *int32 `json:"batchSize,omitempty"` + NumberOfConcurrentCalls *int32 `json:"numberOfConcurrentCalls,omitempty"` + NumberOfRetries *int32 `json:"numberOfRetries,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _AzureChannelConfiguration AzureChannelConfiguration + +// NewAzureChannelConfiguration instantiates a new AzureChannelConfiguration 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 NewAzureChannelConfiguration() *AzureChannelConfiguration { + this := AzureChannelConfiguration{} + return &this +} + +// NewAzureChannelConfigurationWithDefaults instantiates a new AzureChannelConfiguration 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 NewAzureChannelConfigurationWithDefaults() *AzureChannelConfiguration { + this := AzureChannelConfiguration{} + return &this +} + +// GetBatchSize returns the BatchSize field value if set, zero value otherwise. +func (o *AzureChannelConfiguration) GetBatchSize() int32 { + if o == nil || IsNil(o.BatchSize) { + var ret int32 + return ret + } + return *o.BatchSize +} + +// GetBatchSizeOk returns a tuple with the BatchSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AzureChannelConfiguration) GetBatchSizeOk() (*int32, bool) { + if o == nil || IsNil(o.BatchSize) { + return nil, false + } + return o.BatchSize, true +} + +// HasBatchSize returns a boolean if a field has been set. +func (o *AzureChannelConfiguration) HasBatchSize() bool { + if o != nil && !IsNil(o.BatchSize) { + return true + } + + return false +} + +// SetBatchSize gets a reference to the given int32 and assigns it to the BatchSize field. +func (o *AzureChannelConfiguration) SetBatchSize(v int32) { + o.BatchSize = &v +} + +// GetNumberOfConcurrentCalls returns the NumberOfConcurrentCalls field value if set, zero value otherwise. +func (o *AzureChannelConfiguration) GetNumberOfConcurrentCalls() int32 { + if o == nil || IsNil(o.NumberOfConcurrentCalls) { + var ret int32 + return ret + } + return *o.NumberOfConcurrentCalls +} + +// GetNumberOfConcurrentCallsOk returns a tuple with the NumberOfConcurrentCalls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AzureChannelConfiguration) GetNumberOfConcurrentCallsOk() (*int32, bool) { + if o == nil || IsNil(o.NumberOfConcurrentCalls) { + return nil, false + } + return o.NumberOfConcurrentCalls, true +} + +// HasNumberOfConcurrentCalls returns a boolean if a field has been set. +func (o *AzureChannelConfiguration) HasNumberOfConcurrentCalls() bool { + if o != nil && !IsNil(o.NumberOfConcurrentCalls) { + return true + } + + return false +} + +// SetNumberOfConcurrentCalls gets a reference to the given int32 and assigns it to the NumberOfConcurrentCalls field. +func (o *AzureChannelConfiguration) SetNumberOfConcurrentCalls(v int32) { + o.NumberOfConcurrentCalls = &v +} + +// GetNumberOfRetries returns the NumberOfRetries field value if set, zero value otherwise. +func (o *AzureChannelConfiguration) GetNumberOfRetries() int32 { + if o == nil || IsNil(o.NumberOfRetries) { + var ret int32 + return ret + } + return *o.NumberOfRetries +} + +// GetNumberOfRetriesOk returns a tuple with the NumberOfRetries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AzureChannelConfiguration) GetNumberOfRetriesOk() (*int32, bool) { + if o == nil || IsNil(o.NumberOfRetries) { + return nil, false + } + return o.NumberOfRetries, true +} + +// HasNumberOfRetries returns a boolean if a field has been set. +func (o *AzureChannelConfiguration) HasNumberOfRetries() bool { + if o != nil && !IsNil(o.NumberOfRetries) { + return true + } + + return false +} + +// SetNumberOfRetries gets a reference to the given int32 and assigns it to the NumberOfRetries field. +func (o *AzureChannelConfiguration) SetNumberOfRetries(v int32) { + o.NumberOfRetries = &v +} + +func (o AzureChannelConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AzureChannelConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BatchSize) { + toSerialize["batchSize"] = o.BatchSize + } + if !IsNil(o.NumberOfConcurrentCalls) { + toSerialize["numberOfConcurrentCalls"] = o.NumberOfConcurrentCalls + } + if !IsNil(o.NumberOfRetries) { + toSerialize["numberOfRetries"] = o.NumberOfRetries + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *AzureChannelConfiguration) UnmarshalJSON(data []byte) (err error) { + varAzureChannelConfiguration := _AzureChannelConfiguration{} + + err = json.Unmarshal(data, &varAzureChannelConfiguration) + + if err != nil { + return err + } + + *o = AzureChannelConfiguration(varAzureChannelConfiguration) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "batchSize") + delete(additionalProperties, "numberOfConcurrentCalls") + delete(additionalProperties, "numberOfRetries") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableAzureChannelConfiguration struct { + value *AzureChannelConfiguration + isSet bool +} + +func (v NullableAzureChannelConfiguration) Get() *AzureChannelConfiguration { + return v.value +} + +func (v *NullableAzureChannelConfiguration) Set(val *AzureChannelConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableAzureChannelConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableAzureChannelConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAzureChannelConfiguration(val *AzureChannelConfiguration) *NullableAzureChannelConfiguration { + return &NullableAzureChannelConfiguration{value: val, isSet: true} +} + +func (v NullableAzureChannelConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAzureChannelConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_cabinets.go b/services/smartview/model_cabinets.go new file mode 100644 index 00000000..b59d86cb --- /dev/null +++ b/services/smartview/model_cabinets.go @@ -0,0 +1,229 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Cabinets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Cabinets{} + +// Cabinets struct for Cabinets +type Cabinets struct { + Circuits []Circuits `json:"circuits,omitempty"` + Name *CabinetsName `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Cabinets Cabinets + +// NewCabinets instantiates a new Cabinets 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 NewCabinets() *Cabinets { + this := Cabinets{} + return &this +} + +// NewCabinetsWithDefaults instantiates a new Cabinets 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 NewCabinetsWithDefaults() *Cabinets { + this := Cabinets{} + return &this +} + +// GetCircuits returns the Circuits field value if set, zero value otherwise. +func (o *Cabinets) GetCircuits() []Circuits { + if o == nil || IsNil(o.Circuits) { + var ret []Circuits + return ret + } + return o.Circuits +} + +// GetCircuitsOk returns a tuple with the Circuits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cabinets) GetCircuitsOk() ([]Circuits, bool) { + if o == nil || IsNil(o.Circuits) { + return nil, false + } + return o.Circuits, true +} + +// HasCircuits returns a boolean if a field has been set. +func (o *Cabinets) HasCircuits() bool { + if o != nil && !IsNil(o.Circuits) { + return true + } + + return false +} + +// SetCircuits gets a reference to the given []Circuits and assigns it to the Circuits field. +func (o *Cabinets) SetCircuits(v []Circuits) { + o.Circuits = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Cabinets) GetName() CabinetsName { + if o == nil || IsNil(o.Name) { + var ret CabinetsName + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cabinets) GetNameOk() (*CabinetsName, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Cabinets) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given CabinetsName and assigns it to the Name field. +func (o *Cabinets) SetName(v CabinetsName) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Cabinets) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cabinets) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Cabinets) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Cabinets) SetType(v string) { + o.Type = &v +} + +func (o Cabinets) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Cabinets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Circuits) { + toSerialize["circuits"] = o.Circuits + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Cabinets) UnmarshalJSON(data []byte) (err error) { + varCabinets := _Cabinets{} + + err = json.Unmarshal(data, &varCabinets) + + if err != nil { + return err + } + + *o = Cabinets(varCabinets) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "circuits") + delete(additionalProperties, "name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCabinets struct { + value *Cabinets + isSet bool +} + +func (v NullableCabinets) Get() *Cabinets { + return v.value +} + +func (v *NullableCabinets) Set(val *Cabinets) { + v.value = val + v.isSet = true +} + +func (v NullableCabinets) IsSet() bool { + return v.isSet +} + +func (v *NullableCabinets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCabinets(val *Cabinets) *NullableCabinets { + return &NullableCabinets{value: val, isSet: true} +} + +func (v NullableCabinets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCabinets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_cabinets_name.go b/services/smartview/model_cabinets_name.go new file mode 100644 index 00000000..39013a89 --- /dev/null +++ b/services/smartview/model_cabinets_name.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// CabinetsName the model 'CabinetsName' +type CabinetsName string + +// List of Cabinets_name +const ( + CABINETSNAME_CH1050004300105 CabinetsName = "CH1:05:000430:0105" +) + +// All allowed values of CabinetsName enum +var AllowedCabinetsNameEnumValues = []CabinetsName{ + "CH1:05:000430:0105", +} + +func (v *CabinetsName) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CabinetsName(value) + for _, existing := range AllowedCabinetsNameEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CabinetsName", value) +} + +// NewCabinetsNameFromValue returns a pointer to a valid CabinetsName +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCabinetsNameFromValue(v string) (*CabinetsName, error) { + ev := CabinetsName(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CabinetsName: valid values are %v", v, AllowedCabinetsNameEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CabinetsName) IsValid() bool { + for _, existing := range AllowedCabinetsNameEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cabinets_name value +func (v CabinetsName) Ptr() *CabinetsName { + return &v +} + +type NullableCabinetsName struct { + value *CabinetsName + isSet bool +} + +func (v NullableCabinetsName) Get() *CabinetsName { + return v.value +} + +func (v *NullableCabinetsName) Set(val *CabinetsName) { + v.value = val + v.isSet = true +} + +func (v NullableCabinetsName) IsSet() bool { + return v.isSet +} + +func (v *NullableCabinetsName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCabinetsName(val *CabinetsName) *NullableCabinetsName { + return &NullableCabinetsName{value: val, isSet: true} +} + +func (v NullableCabinetsName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCabinetsName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_cages.go b/services/smartview/model_cages.go new file mode 100644 index 00000000..e1af9aff --- /dev/null +++ b/services/smartview/model_cages.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Cages type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Cages{} + +// Cages struct for Cages +type Cages struct { + Cabinets []Cabinets `json:"cabinets,omitempty"` + // Cage Unique Space Id + Name *string `json:"name,omitempty"` + // type of the asset + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Cages Cages + +// NewCages instantiates a new Cages 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 NewCages() *Cages { + this := Cages{} + return &this +} + +// NewCagesWithDefaults instantiates a new Cages 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 NewCagesWithDefaults() *Cages { + this := Cages{} + return &this +} + +// GetCabinets returns the Cabinets field value if set, zero value otherwise. +func (o *Cages) GetCabinets() []Cabinets { + if o == nil || IsNil(o.Cabinets) { + var ret []Cabinets + return ret + } + return o.Cabinets +} + +// GetCabinetsOk returns a tuple with the Cabinets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cages) GetCabinetsOk() ([]Cabinets, bool) { + if o == nil || IsNil(o.Cabinets) { + return nil, false + } + return o.Cabinets, true +} + +// HasCabinets returns a boolean if a field has been set. +func (o *Cages) HasCabinets() bool { + if o != nil && !IsNil(o.Cabinets) { + return true + } + + return false +} + +// SetCabinets gets a reference to the given []Cabinets and assigns it to the Cabinets field. +func (o *Cages) SetCabinets(v []Cabinets) { + o.Cabinets = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Cages) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cages) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Cages) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *Cages) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Cages) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cages) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Cages) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *Cages) SetType(v string) { + o.Type = &v +} + +func (o Cages) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Cages) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cabinets) { + toSerialize["cabinets"] = o.Cabinets + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Cages) UnmarshalJSON(data []byte) (err error) { + varCages := _Cages{} + + err = json.Unmarshal(data, &varCages) + + if err != nil { + return err + } + + *o = Cages(varCages) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cabinets") + delete(additionalProperties, "name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCages struct { + value *Cages + isSet bool +} + +func (v NullableCages) Get() *Cages { + return v.value +} + +func (v *NullableCages) Set(val *Cages) { + v.value = val + v.isSet = true +} + +func (v NullableCages) IsSet() bool { + return v.isSet +} + +func (v *NullableCages) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCages(val *Cages) *NullableCages { + return &NullableCages{value: val, isSet: true} +} + +func (v NullableCages) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCages) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_category.go b/services/smartview/model_category.go new file mode 100644 index 00000000..ddc54fdf --- /dev/null +++ b/services/smartview/model_category.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Category type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Category{} + +// Category struct for Category +type Category struct { + CategoryName *string `json:"categoryName,omitempty"` + Templates []Template `json:"templates,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Category Category + +// NewCategory instantiates a new Category 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 NewCategory() *Category { + this := Category{} + return &this +} + +// NewCategoryWithDefaults instantiates a new Category 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 NewCategoryWithDefaults() *Category { + this := Category{} + return &this +} + +// GetCategoryName returns the CategoryName field value if set, zero value otherwise. +func (o *Category) GetCategoryName() string { + if o == nil || IsNil(o.CategoryName) { + var ret string + return ret + } + return *o.CategoryName +} + +// GetCategoryNameOk returns a tuple with the CategoryName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Category) GetCategoryNameOk() (*string, bool) { + if o == nil || IsNil(o.CategoryName) { + return nil, false + } + return o.CategoryName, true +} + +// HasCategoryName returns a boolean if a field has been set. +func (o *Category) HasCategoryName() bool { + if o != nil && !IsNil(o.CategoryName) { + return true + } + + return false +} + +// SetCategoryName gets a reference to the given string and assigns it to the CategoryName field. +func (o *Category) SetCategoryName(v string) { + o.CategoryName = &v +} + +// GetTemplates returns the Templates field value if set, zero value otherwise. +func (o *Category) GetTemplates() []Template { + if o == nil || IsNil(o.Templates) { + var ret []Template + return ret + } + return o.Templates +} + +// GetTemplatesOk returns a tuple with the Templates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Category) GetTemplatesOk() ([]Template, bool) { + if o == nil || IsNil(o.Templates) { + return nil, false + } + return o.Templates, true +} + +// HasTemplates returns a boolean if a field has been set. +func (o *Category) HasTemplates() bool { + if o != nil && !IsNil(o.Templates) { + return true + } + + return false +} + +// SetTemplates gets a reference to the given []Template and assigns it to the Templates field. +func (o *Category) SetTemplates(v []Template) { + o.Templates = v +} + +func (o Category) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Category) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CategoryName) { + toSerialize["categoryName"] = o.CategoryName + } + if !IsNil(o.Templates) { + toSerialize["templates"] = o.Templates + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Category) UnmarshalJSON(data []byte) (err error) { + varCategory := _Category{} + + err = json.Unmarshal(data, &varCategory) + + if err != nil { + return err + } + + *o = Category(varCategory) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "categoryName") + delete(additionalProperties, "templates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCategory struct { + value *Category + isSet bool +} + +func (v NullableCategory) Get() *Category { + return v.value +} + +func (v *NullableCategory) Set(val *Category) { + v.value = val + v.isSet = true +} + +func (v NullableCategory) IsSet() bool { + return v.isSet +} + +func (v *NullableCategory) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCategory(val *Category) *NullableCategory { + return &NullableCategory{value: val, isSet: true} +} + +func (v NullableCategory) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCategory) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_channel.go b/services/smartview/model_channel.go new file mode 100644 index 00000000..1ad7e023 --- /dev/null +++ b/services/smartview/model_channel.go @@ -0,0 +1,266 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Channel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Channel{} + +// Channel Subscription can be created using one channel. +type Channel struct { + AwsIotCoreChannelConfiguration *AwsIotCoreChannelConfiguration `json:"awsIotCoreChannelConfiguration,omitempty"` + AzureChannelConfiguration *AzureChannelConfiguration `json:"azureChannelConfiguration,omitempty"` + ChannelType *ChannelChannelType `json:"channelType,omitempty"` + WebhookChannelConfiguration *WebhookChannelConfiguration `json:"webhookChannelConfiguration,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Channel Channel + +// NewChannel instantiates a new Channel 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 NewChannel() *Channel { + this := Channel{} + return &this +} + +// NewChannelWithDefaults instantiates a new Channel 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 NewChannelWithDefaults() *Channel { + this := Channel{} + return &this +} + +// GetAwsIotCoreChannelConfiguration returns the AwsIotCoreChannelConfiguration field value if set, zero value otherwise. +func (o *Channel) GetAwsIotCoreChannelConfiguration() AwsIotCoreChannelConfiguration { + if o == nil || IsNil(o.AwsIotCoreChannelConfiguration) { + var ret AwsIotCoreChannelConfiguration + return ret + } + return *o.AwsIotCoreChannelConfiguration +} + +// GetAwsIotCoreChannelConfigurationOk returns a tuple with the AwsIotCoreChannelConfiguration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Channel) GetAwsIotCoreChannelConfigurationOk() (*AwsIotCoreChannelConfiguration, bool) { + if o == nil || IsNil(o.AwsIotCoreChannelConfiguration) { + return nil, false + } + return o.AwsIotCoreChannelConfiguration, true +} + +// HasAwsIotCoreChannelConfiguration returns a boolean if a field has been set. +func (o *Channel) HasAwsIotCoreChannelConfiguration() bool { + if o != nil && !IsNil(o.AwsIotCoreChannelConfiguration) { + return true + } + + return false +} + +// SetAwsIotCoreChannelConfiguration gets a reference to the given AwsIotCoreChannelConfiguration and assigns it to the AwsIotCoreChannelConfiguration field. +func (o *Channel) SetAwsIotCoreChannelConfiguration(v AwsIotCoreChannelConfiguration) { + o.AwsIotCoreChannelConfiguration = &v +} + +// GetAzureChannelConfiguration returns the AzureChannelConfiguration field value if set, zero value otherwise. +func (o *Channel) GetAzureChannelConfiguration() AzureChannelConfiguration { + if o == nil || IsNil(o.AzureChannelConfiguration) { + var ret AzureChannelConfiguration + return ret + } + return *o.AzureChannelConfiguration +} + +// GetAzureChannelConfigurationOk returns a tuple with the AzureChannelConfiguration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Channel) GetAzureChannelConfigurationOk() (*AzureChannelConfiguration, bool) { + if o == nil || IsNil(o.AzureChannelConfiguration) { + return nil, false + } + return o.AzureChannelConfiguration, true +} + +// HasAzureChannelConfiguration returns a boolean if a field has been set. +func (o *Channel) HasAzureChannelConfiguration() bool { + if o != nil && !IsNil(o.AzureChannelConfiguration) { + return true + } + + return false +} + +// SetAzureChannelConfiguration gets a reference to the given AzureChannelConfiguration and assigns it to the AzureChannelConfiguration field. +func (o *Channel) SetAzureChannelConfiguration(v AzureChannelConfiguration) { + o.AzureChannelConfiguration = &v +} + +// GetChannelType returns the ChannelType field value if set, zero value otherwise. +func (o *Channel) GetChannelType() ChannelChannelType { + if o == nil || IsNil(o.ChannelType) { + var ret ChannelChannelType + return ret + } + return *o.ChannelType +} + +// GetChannelTypeOk returns a tuple with the ChannelType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Channel) GetChannelTypeOk() (*ChannelChannelType, bool) { + if o == nil || IsNil(o.ChannelType) { + return nil, false + } + return o.ChannelType, true +} + +// HasChannelType returns a boolean if a field has been set. +func (o *Channel) HasChannelType() bool { + if o != nil && !IsNil(o.ChannelType) { + return true + } + + return false +} + +// SetChannelType gets a reference to the given ChannelChannelType and assigns it to the ChannelType field. +func (o *Channel) SetChannelType(v ChannelChannelType) { + o.ChannelType = &v +} + +// GetWebhookChannelConfiguration returns the WebhookChannelConfiguration field value if set, zero value otherwise. +func (o *Channel) GetWebhookChannelConfiguration() WebhookChannelConfiguration { + if o == nil || IsNil(o.WebhookChannelConfiguration) { + var ret WebhookChannelConfiguration + return ret + } + return *o.WebhookChannelConfiguration +} + +// GetWebhookChannelConfigurationOk returns a tuple with the WebhookChannelConfiguration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Channel) GetWebhookChannelConfigurationOk() (*WebhookChannelConfiguration, bool) { + if o == nil || IsNil(o.WebhookChannelConfiguration) { + return nil, false + } + return o.WebhookChannelConfiguration, true +} + +// HasWebhookChannelConfiguration returns a boolean if a field has been set. +func (o *Channel) HasWebhookChannelConfiguration() bool { + if o != nil && !IsNil(o.WebhookChannelConfiguration) { + return true + } + + return false +} + +// SetWebhookChannelConfiguration gets a reference to the given WebhookChannelConfiguration and assigns it to the WebhookChannelConfiguration field. +func (o *Channel) SetWebhookChannelConfiguration(v WebhookChannelConfiguration) { + o.WebhookChannelConfiguration = &v +} + +func (o Channel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Channel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AwsIotCoreChannelConfiguration) { + toSerialize["awsIotCoreChannelConfiguration"] = o.AwsIotCoreChannelConfiguration + } + if !IsNil(o.AzureChannelConfiguration) { + toSerialize["azureChannelConfiguration"] = o.AzureChannelConfiguration + } + if !IsNil(o.ChannelType) { + toSerialize["channelType"] = o.ChannelType + } + if !IsNil(o.WebhookChannelConfiguration) { + toSerialize["webhookChannelConfiguration"] = o.WebhookChannelConfiguration + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Channel) UnmarshalJSON(data []byte) (err error) { + varChannel := _Channel{} + + err = json.Unmarshal(data, &varChannel) + + if err != nil { + return err + } + + *o = Channel(varChannel) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "awsIotCoreChannelConfiguration") + delete(additionalProperties, "azureChannelConfiguration") + delete(additionalProperties, "channelType") + delete(additionalProperties, "webhookChannelConfiguration") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableChannel struct { + value *Channel + isSet bool +} + +func (v NullableChannel) Get() *Channel { + return v.value +} + +func (v *NullableChannel) Set(val *Channel) { + v.value = val + v.isSet = true +} + +func (v NullableChannel) IsSet() bool { + return v.isSet +} + +func (v *NullableChannel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannel(val *Channel) *NullableChannel { + return &NullableChannel{value: val, isSet: true} +} + +func (v NullableChannel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_channel_channel_type.go b/services/smartview/model_channel_channel_type.go new file mode 100644 index 00000000..b1336a0e --- /dev/null +++ b/services/smartview/model_channel_channel_type.go @@ -0,0 +1,113 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// ChannelChannelType the model 'ChannelChannelType' +type ChannelChannelType string + +// List of Channel_channelType +const ( + CHANNELCHANNELTYPE_AWS_IOT_CORE ChannelChannelType = "AWS_IOT_CORE" + CHANNELCHANNELTYPE_WEBHOOK ChannelChannelType = "WEBHOOK" + CHANNELCHANNELTYPE_AZURE ChannelChannelType = "AZURE" +) + +// All allowed values of ChannelChannelType enum +var AllowedChannelChannelTypeEnumValues = []ChannelChannelType{ + "AWS_IOT_CORE", + "WEBHOOK", + "AZURE", +} + +func (v *ChannelChannelType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ChannelChannelType(value) + for _, existing := range AllowedChannelChannelTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ChannelChannelType", value) +} + +// NewChannelChannelTypeFromValue returns a pointer to a valid ChannelChannelType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewChannelChannelTypeFromValue(v string) (*ChannelChannelType, error) { + ev := ChannelChannelType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ChannelChannelType: valid values are %v", v, AllowedChannelChannelTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ChannelChannelType) IsValid() bool { + for _, existing := range AllowedChannelChannelTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Channel_channelType value +func (v ChannelChannelType) Ptr() *ChannelChannelType { + return &v +} + +type NullableChannelChannelType struct { + value *ChannelChannelType + isSet bool +} + +func (v NullableChannelChannelType) Get() *ChannelChannelType { + return v.value +} + +func (v *NullableChannelChannelType) Set(val *ChannelChannelType) { + v.value = val + v.isSet = true +} + +func (v NullableChannelChannelType) IsSet() bool { + return v.isSet +} + +func (v *NullableChannelChannelType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChannelChannelType(val *ChannelChannelType) *NullableChannelChannelType { + return &NullableChannelChannelType{value: val, isSet: true} +} + +func (v NullableChannelChannelType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChannelChannelType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_circuits.go b/services/smartview/model_circuits.go new file mode 100644 index 00000000..2d2e6d7a --- /dev/null +++ b/services/smartview/model_circuits.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Circuits type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Circuits{} + +// Circuits struct for Circuits +type Circuits struct { + Name *CircuitsName `json:"name,omitempty"` + Type *CircuitsType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Circuits Circuits + +// NewCircuits instantiates a new Circuits 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 NewCircuits() *Circuits { + this := Circuits{} + return &this +} + +// NewCircuitsWithDefaults instantiates a new Circuits 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 NewCircuitsWithDefaults() *Circuits { + this := Circuits{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *Circuits) GetName() CircuitsName { + if o == nil || IsNil(o.Name) { + var ret CircuitsName + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuits) GetNameOk() (*CircuitsName, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *Circuits) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given CircuitsName and assigns it to the Name field. +func (o *Circuits) SetName(v CircuitsName) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Circuits) GetType() CircuitsType { + if o == nil || IsNil(o.Type) { + var ret CircuitsType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuits) GetTypeOk() (*CircuitsType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Circuits) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CircuitsType and assigns it to the Type field. +func (o *Circuits) SetType(v CircuitsType) { + o.Type = &v +} + +func (o Circuits) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Circuits) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Circuits) UnmarshalJSON(data []byte) (err error) { + varCircuits := _Circuits{} + + err = json.Unmarshal(data, &varCircuits) + + if err != nil { + return err + } + + *o = Circuits(varCircuits) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuits struct { + value *Circuits + isSet bool +} + +func (v NullableCircuits) Get() *Circuits { + return v.value +} + +func (v *NullableCircuits) Set(val *Circuits) { + v.value = val + v.isSet = true +} + +func (v NullableCircuits) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuits) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuits(val *Circuits) *NullableCircuits { + return &NullableCircuits{value: val, isSet: true} +} + +func (v NullableCircuits) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuits) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_circuits_map_with_cage.go b/services/smartview/model_circuits_map_with_cage.go new file mode 100644 index 00000000..1984a38f --- /dev/null +++ b/services/smartview/model_circuits_map_with_cage.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the CircuitsMapWithCage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitsMapWithCage{} + +// CircuitsMapWithCage struct for CircuitsMapWithCage +type CircuitsMapWithCage struct { + Name *CircuitsMapWithCageName `json:"name,omitempty"` + Type *CircuitsType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitsMapWithCage CircuitsMapWithCage + +// NewCircuitsMapWithCage instantiates a new CircuitsMapWithCage 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 NewCircuitsMapWithCage() *CircuitsMapWithCage { + this := CircuitsMapWithCage{} + return &this +} + +// NewCircuitsMapWithCageWithDefaults instantiates a new CircuitsMapWithCage 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 NewCircuitsMapWithCageWithDefaults() *CircuitsMapWithCage { + this := CircuitsMapWithCage{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *CircuitsMapWithCage) GetName() CircuitsMapWithCageName { + if o == nil || IsNil(o.Name) { + var ret CircuitsMapWithCageName + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitsMapWithCage) GetNameOk() (*CircuitsMapWithCageName, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *CircuitsMapWithCage) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given CircuitsMapWithCageName and assigns it to the Name field. +func (o *CircuitsMapWithCage) SetName(v CircuitsMapWithCageName) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CircuitsMapWithCage) GetType() CircuitsType { + if o == nil || IsNil(o.Type) { + var ret CircuitsType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitsMapWithCage) GetTypeOk() (*CircuitsType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CircuitsMapWithCage) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CircuitsType and assigns it to the Type field. +func (o *CircuitsMapWithCage) SetType(v CircuitsType) { + o.Type = &v +} + +func (o CircuitsMapWithCage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitsMapWithCage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitsMapWithCage) UnmarshalJSON(data []byte) (err error) { + varCircuitsMapWithCage := _CircuitsMapWithCage{} + + err = json.Unmarshal(data, &varCircuitsMapWithCage) + + if err != nil { + return err + } + + *o = CircuitsMapWithCage(varCircuitsMapWithCage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitsMapWithCage struct { + value *CircuitsMapWithCage + isSet bool +} + +func (v NullableCircuitsMapWithCage) Get() *CircuitsMapWithCage { + return v.value +} + +func (v *NullableCircuitsMapWithCage) Set(val *CircuitsMapWithCage) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsMapWithCage) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsMapWithCage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsMapWithCage(val *CircuitsMapWithCage) *NullableCircuitsMapWithCage { + return &NullableCircuitsMapWithCage{value: val, isSet: true} +} + +func (v NullableCircuitsMapWithCage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsMapWithCage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_circuits_map_with_cage_name.go b/services/smartview/model_circuits_map_with_cage_name.go new file mode 100644 index 00000000..187f4424 --- /dev/null +++ b/services/smartview/model_circuits_map_with_cage_name.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// CircuitsMapWithCageName the model 'CircuitsMapWithCageName' +type CircuitsMapWithCageName string + +// List of CircuitsMapWithCage_name +const ( + CIRCUITSMAPWITHCAGENAME__877483_0 CircuitsMapWithCageName = "877483.0" +) + +// All allowed values of CircuitsMapWithCageName enum +var AllowedCircuitsMapWithCageNameEnumValues = []CircuitsMapWithCageName{ + "877483.0", +} + +func (v *CircuitsMapWithCageName) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsMapWithCageName(value) + for _, existing := range AllowedCircuitsMapWithCageNameEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsMapWithCageName", value) +} + +// NewCircuitsMapWithCageNameFromValue returns a pointer to a valid CircuitsMapWithCageName +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsMapWithCageNameFromValue(v string) (*CircuitsMapWithCageName, error) { + ev := CircuitsMapWithCageName(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsMapWithCageName: valid values are %v", v, AllowedCircuitsMapWithCageNameEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsMapWithCageName) IsValid() bool { + for _, existing := range AllowedCircuitsMapWithCageNameEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CircuitsMapWithCage_name value +func (v CircuitsMapWithCageName) Ptr() *CircuitsMapWithCageName { + return &v +} + +type NullableCircuitsMapWithCageName struct { + value *CircuitsMapWithCageName + isSet bool +} + +func (v NullableCircuitsMapWithCageName) Get() *CircuitsMapWithCageName { + return v.value +} + +func (v *NullableCircuitsMapWithCageName) Set(val *CircuitsMapWithCageName) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsMapWithCageName) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsMapWithCageName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsMapWithCageName(val *CircuitsMapWithCageName) *NullableCircuitsMapWithCageName { + return &NullableCircuitsMapWithCageName{value: val, isSet: true} +} + +func (v NullableCircuitsMapWithCageName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsMapWithCageName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_circuits_name.go b/services/smartview/model_circuits_name.go new file mode 100644 index 00000000..b43cc404 --- /dev/null +++ b/services/smartview/model_circuits_name.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// CircuitsName the model 'CircuitsName' +type CircuitsName string + +// List of Circuits_name +const ( + CIRCUITSNAME__877484_0 CircuitsName = "877484.0" +) + +// All allowed values of CircuitsName enum +var AllowedCircuitsNameEnumValues = []CircuitsName{ + "877484.0", +} + +func (v *CircuitsName) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsName(value) + for _, existing := range AllowedCircuitsNameEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsName", value) +} + +// NewCircuitsNameFromValue returns a pointer to a valid CircuitsName +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsNameFromValue(v string) (*CircuitsName, error) { + ev := CircuitsName(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsName: valid values are %v", v, AllowedCircuitsNameEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsName) IsValid() bool { + for _, existing := range AllowedCircuitsNameEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuits_name value +func (v CircuitsName) Ptr() *CircuitsName { + return &v +} + +type NullableCircuitsName struct { + value *CircuitsName + isSet bool +} + +func (v NullableCircuitsName) Get() *CircuitsName { + return v.value +} + +func (v *NullableCircuitsName) Set(val *CircuitsName) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsName) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsName) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsName(val *CircuitsName) *NullableCircuitsName { + return &NullableCircuitsName{value: val, isSet: true} +} + +func (v NullableCircuitsName) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsName) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_circuits_type.go b/services/smartview/model_circuits_type.go new file mode 100644 index 00000000..a6f43a7f --- /dev/null +++ b/services/smartview/model_circuits_type.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// CircuitsType the model 'CircuitsType' +type CircuitsType string + +// List of Circuits_type +const ( + CIRCUITSTYPE_CIRCUIT CircuitsType = "circuit" +) + +// All allowed values of CircuitsType enum +var AllowedCircuitsTypeEnumValues = []CircuitsType{ + "circuit", +} + +func (v *CircuitsType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsType(value) + for _, existing := range AllowedCircuitsTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsType", value) +} + +// NewCircuitsTypeFromValue returns a pointer to a valid CircuitsType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsTypeFromValue(v string) (*CircuitsType, error) { + ev := CircuitsType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsType: valid values are %v", v, AllowedCircuitsTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsType) IsValid() bool { + for _, existing := range AllowedCircuitsTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuits_type value +func (v CircuitsType) Ptr() *CircuitsType { + return &v +} + +type NullableCircuitsType struct { + value *CircuitsType + isSet bool +} + +func (v NullableCircuitsType) Get() *CircuitsType { + return v.value +} + +func (v *NullableCircuitsType) Set(val *CircuitsType) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsType) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsType(val *CircuitsType) *NullableCircuitsType { + return &NullableCircuitsType{value: val, isSet: true} +} + +func (v NullableCircuitsType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_comparison_data.go b/services/smartview/model_comparison_data.go new file mode 100644 index 00000000..9889ac27 --- /dev/null +++ b/services/smartview/model_comparison_data.go @@ -0,0 +1,307 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the ComparisonData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ComparisonData{} + +// ComparisonData comparison of readings with the current reading for specified datapoint +type ComparisonData struct { + Datapoint *ComparisonDataDatapoint `json:"datapoint,omitempty"` + // comparison for the current value of the datapoint with the last month's value + LastMonth *float32 `json:"lastMonth,omitempty"` + // comparison for the current value of the datapoint with the last quarter's value + LastQuarter *float32 `json:"lastQuarter,omitempty"` + // comparison for the current value of the datapoint with last week's value + LastWeek *float32 `json:"lastWeek,omitempty"` + // comparison for the current value of the datapoint with yesterday's value + Yesterday *float32 `json:"yesterday,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ComparisonData ComparisonData + +// NewComparisonData instantiates a new ComparisonData 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 NewComparisonData() *ComparisonData { + this := ComparisonData{} + return &this +} + +// NewComparisonDataWithDefaults instantiates a new ComparisonData 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 NewComparisonDataWithDefaults() *ComparisonData { + this := ComparisonData{} + return &this +} + +// GetDatapoint returns the Datapoint field value if set, zero value otherwise. +func (o *ComparisonData) GetDatapoint() ComparisonDataDatapoint { + if o == nil || IsNil(o.Datapoint) { + var ret ComparisonDataDatapoint + return ret + } + return *o.Datapoint +} + +// GetDatapointOk returns a tuple with the Datapoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonData) GetDatapointOk() (*ComparisonDataDatapoint, bool) { + if o == nil || IsNil(o.Datapoint) { + return nil, false + } + return o.Datapoint, true +} + +// HasDatapoint returns a boolean if a field has been set. +func (o *ComparisonData) HasDatapoint() bool { + if o != nil && !IsNil(o.Datapoint) { + return true + } + + return false +} + +// SetDatapoint gets a reference to the given ComparisonDataDatapoint and assigns it to the Datapoint field. +func (o *ComparisonData) SetDatapoint(v ComparisonDataDatapoint) { + o.Datapoint = &v +} + +// GetLastMonth returns the LastMonth field value if set, zero value otherwise. +func (o *ComparisonData) GetLastMonth() float32 { + if o == nil || IsNil(o.LastMonth) { + var ret float32 + return ret + } + return *o.LastMonth +} + +// GetLastMonthOk returns a tuple with the LastMonth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonData) GetLastMonthOk() (*float32, bool) { + if o == nil || IsNil(o.LastMonth) { + return nil, false + } + return o.LastMonth, true +} + +// HasLastMonth returns a boolean if a field has been set. +func (o *ComparisonData) HasLastMonth() bool { + if o != nil && !IsNil(o.LastMonth) { + return true + } + + return false +} + +// SetLastMonth gets a reference to the given float32 and assigns it to the LastMonth field. +func (o *ComparisonData) SetLastMonth(v float32) { + o.LastMonth = &v +} + +// GetLastQuarter returns the LastQuarter field value if set, zero value otherwise. +func (o *ComparisonData) GetLastQuarter() float32 { + if o == nil || IsNil(o.LastQuarter) { + var ret float32 + return ret + } + return *o.LastQuarter +} + +// GetLastQuarterOk returns a tuple with the LastQuarter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonData) GetLastQuarterOk() (*float32, bool) { + if o == nil || IsNil(o.LastQuarter) { + return nil, false + } + return o.LastQuarter, true +} + +// HasLastQuarter returns a boolean if a field has been set. +func (o *ComparisonData) HasLastQuarter() bool { + if o != nil && !IsNil(o.LastQuarter) { + return true + } + + return false +} + +// SetLastQuarter gets a reference to the given float32 and assigns it to the LastQuarter field. +func (o *ComparisonData) SetLastQuarter(v float32) { + o.LastQuarter = &v +} + +// GetLastWeek returns the LastWeek field value if set, zero value otherwise. +func (o *ComparisonData) GetLastWeek() float32 { + if o == nil || IsNil(o.LastWeek) { + var ret float32 + return ret + } + return *o.LastWeek +} + +// GetLastWeekOk returns a tuple with the LastWeek field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonData) GetLastWeekOk() (*float32, bool) { + if o == nil || IsNil(o.LastWeek) { + return nil, false + } + return o.LastWeek, true +} + +// HasLastWeek returns a boolean if a field has been set. +func (o *ComparisonData) HasLastWeek() bool { + if o != nil && !IsNil(o.LastWeek) { + return true + } + + return false +} + +// SetLastWeek gets a reference to the given float32 and assigns it to the LastWeek field. +func (o *ComparisonData) SetLastWeek(v float32) { + o.LastWeek = &v +} + +// GetYesterday returns the Yesterday field value if set, zero value otherwise. +func (o *ComparisonData) GetYesterday() float32 { + if o == nil || IsNil(o.Yesterday) { + var ret float32 + return ret + } + return *o.Yesterday +} + +// GetYesterdayOk returns a tuple with the Yesterday field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonData) GetYesterdayOk() (*float32, bool) { + if o == nil || IsNil(o.Yesterday) { + return nil, false + } + return o.Yesterday, true +} + +// HasYesterday returns a boolean if a field has been set. +func (o *ComparisonData) HasYesterday() bool { + if o != nil && !IsNil(o.Yesterday) { + return true + } + + return false +} + +// SetYesterday gets a reference to the given float32 and assigns it to the Yesterday field. +func (o *ComparisonData) SetYesterday(v float32) { + o.Yesterday = &v +} + +func (o ComparisonData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ComparisonData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Datapoint) { + toSerialize["datapoint"] = o.Datapoint + } + if !IsNil(o.LastMonth) { + toSerialize["lastMonth"] = o.LastMonth + } + if !IsNil(o.LastQuarter) { + toSerialize["lastQuarter"] = o.LastQuarter + } + if !IsNil(o.LastWeek) { + toSerialize["lastWeek"] = o.LastWeek + } + if !IsNil(o.Yesterday) { + toSerialize["yesterday"] = o.Yesterday + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ComparisonData) UnmarshalJSON(data []byte) (err error) { + varComparisonData := _ComparisonData{} + + err = json.Unmarshal(data, &varComparisonData) + + if err != nil { + return err + } + + *o = ComparisonData(varComparisonData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "datapoint") + delete(additionalProperties, "lastMonth") + delete(additionalProperties, "lastQuarter") + delete(additionalProperties, "lastWeek") + delete(additionalProperties, "yesterday") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableComparisonData struct { + value *ComparisonData + isSet bool +} + +func (v NullableComparisonData) Get() *ComparisonData { + return v.value +} + +func (v *NullableComparisonData) Set(val *ComparisonData) { + v.value = val + v.isSet = true +} + +func (v NullableComparisonData) IsSet() bool { + return v.isSet +} + +func (v *NullableComparisonData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComparisonData(val *ComparisonData) *NullableComparisonData { + return &NullableComparisonData{value: val, isSet: true} +} + +func (v NullableComparisonData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComparisonData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_comparison_data_datapoint.go b/services/smartview/model_comparison_data_datapoint.go new file mode 100644 index 00000000..e8f1efbf --- /dev/null +++ b/services/smartview/model_comparison_data_datapoint.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// ComparisonDataDatapoint datapoint on which the comparison is done. +type ComparisonDataDatapoint string + +// List of ComparisonData_datapoint +const ( + COMPARISONDATADATAPOINT_PERCENTAGE_KVA ComparisonDataDatapoint = "percentageKva" +) + +// All allowed values of ComparisonDataDatapoint enum +var AllowedComparisonDataDatapointEnumValues = []ComparisonDataDatapoint{ + "percentageKva", +} + +func (v *ComparisonDataDatapoint) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ComparisonDataDatapoint(value) + for _, existing := range AllowedComparisonDataDatapointEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ComparisonDataDatapoint", value) +} + +// NewComparisonDataDatapointFromValue returns a pointer to a valid ComparisonDataDatapoint +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewComparisonDataDatapointFromValue(v string) (*ComparisonDataDatapoint, error) { + ev := ComparisonDataDatapoint(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ComparisonDataDatapoint: valid values are %v", v, AllowedComparisonDataDatapointEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ComparisonDataDatapoint) IsValid() bool { + for _, existing := range AllowedComparisonDataDatapointEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ComparisonData_datapoint value +func (v ComparisonDataDatapoint) Ptr() *ComparisonDataDatapoint { + return &v +} + +type NullableComparisonDataDatapoint struct { + value *ComparisonDataDatapoint + isSet bool +} + +func (v NullableComparisonDataDatapoint) Get() *ComparisonDataDatapoint { + return v.value +} + +func (v *NullableComparisonDataDatapoint) Set(val *ComparisonDataDatapoint) { + v.value = val + v.isSet = true +} + +func (v NullableComparisonDataDatapoint) IsSet() bool { + return v.isSet +} + +func (v *NullableComparisonDataDatapoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComparisonDataDatapoint(val *ComparisonDataDatapoint) *NullableComparisonDataDatapoint { + return &NullableComparisonDataDatapoint{value: val, isSet: true} +} + +func (v NullableComparisonDataDatapoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComparisonDataDatapoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_comparison_data_trend.go b/services/smartview/model_comparison_data_trend.go new file mode 100644 index 00000000..1884e967 --- /dev/null +++ b/services/smartview/model_comparison_data_trend.go @@ -0,0 +1,194 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the ComparisonDataTrend type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ComparisonDataTrend{} + +// ComparisonDataTrend date and corresponding values +type ComparisonDataTrend struct { + // datetime. + Datetime *string `json:"datetime,omitempty"` + // trending values + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ComparisonDataTrend ComparisonDataTrend + +// NewComparisonDataTrend instantiates a new ComparisonDataTrend 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 NewComparisonDataTrend() *ComparisonDataTrend { + this := ComparisonDataTrend{} + return &this +} + +// NewComparisonDataTrendWithDefaults instantiates a new ComparisonDataTrend 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 NewComparisonDataTrendWithDefaults() *ComparisonDataTrend { + this := ComparisonDataTrend{} + return &this +} + +// GetDatetime returns the Datetime field value if set, zero value otherwise. +func (o *ComparisonDataTrend) GetDatetime() string { + if o == nil || IsNil(o.Datetime) { + var ret string + return ret + } + return *o.Datetime +} + +// GetDatetimeOk returns a tuple with the Datetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonDataTrend) GetDatetimeOk() (*string, bool) { + if o == nil || IsNil(o.Datetime) { + return nil, false + } + return o.Datetime, true +} + +// HasDatetime returns a boolean if a field has been set. +func (o *ComparisonDataTrend) HasDatetime() bool { + if o != nil && !IsNil(o.Datetime) { + return true + } + + return false +} + +// SetDatetime gets a reference to the given string and assigns it to the Datetime field. +func (o *ComparisonDataTrend) SetDatetime(v string) { + o.Datetime = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ComparisonDataTrend) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComparisonDataTrend) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ComparisonDataTrend) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *ComparisonDataTrend) SetValue(v string) { + o.Value = &v +} + +func (o ComparisonDataTrend) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ComparisonDataTrend) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Datetime) { + toSerialize["datetime"] = o.Datetime + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ComparisonDataTrend) UnmarshalJSON(data []byte) (err error) { + varComparisonDataTrend := _ComparisonDataTrend{} + + err = json.Unmarshal(data, &varComparisonDataTrend) + + if err != nil { + return err + } + + *o = ComparisonDataTrend(varComparisonDataTrend) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "datetime") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableComparisonDataTrend struct { + value *ComparisonDataTrend + isSet bool +} + +func (v NullableComparisonDataTrend) Get() *ComparisonDataTrend { + return v.value +} + +func (v *NullableComparisonDataTrend) Set(val *ComparisonDataTrend) { + v.value = val + v.isSet = true +} + +func (v NullableComparisonDataTrend) IsSet() bool { + return v.isSet +} + +func (v *NullableComparisonDataTrend) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableComparisonDataTrend(val *ComparisonDataTrend) *NullableComparisonDataTrend { + return &NullableComparisonDataTrend{value: val, isSet: true} +} + +func (v NullableComparisonDataTrend) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableComparisonDataTrend) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_conditional_alert.go b/services/smartview/model_conditional_alert.go new file mode 100644 index 00000000..304070f4 --- /dev/null +++ b/services/smartview/model_conditional_alert.go @@ -0,0 +1,932 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the ConditionalAlert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConditionalAlert{} + +// ConditionalAlert struct for ConditionalAlert +type ConditionalAlert struct { + AffectedCustomerAsset *string `json:"affectedCustomerAsset,omitempty"` + AlertType *string `json:"alertType,omitempty"` + Asset *string `json:"asset,omitempty"` + Assetname *string `json:"assetname,omitempty"` + Assettype *string `json:"assettype,omitempty"` + Condalerttypeid *string `json:"condalerttypeid,omitempty"` + Condassetclassification *string `json:"condassetclassification,omitempty"` + Condassetid *string `json:"condassetid,omitempty"` + Condcurrentvalue *string `json:"condcurrentvalue,omitempty"` + Condeventtype *string `json:"condeventtype,omitempty"` + Condtagid *string `json:"condtagid,omitempty"` + CustomerAssets *string `json:"customerAssets,omitempty"` + Ibx *string `json:"ibx,omitempty"` + InfraAssets *string `json:"infraAssets,omitempty"` + MeasurementType *string `json:"measurementType,omitempty"` + Region *string `json:"region,omitempty"` + Section *string `json:"section,omitempty"` + ThresholdUnit *string `json:"thresholdUnit,omitempty"` + ThresholdValue *string `json:"thresholdValue,omitempty"` + ThresholdValueMax *string `json:"thresholdValueMax,omitempty"` + ThresholdValueMin *string `json:"thresholdValueMin,omitempty"` + Uom *string `json:"uom,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ConditionalAlert ConditionalAlert + +// NewConditionalAlert instantiates a new ConditionalAlert 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 NewConditionalAlert() *ConditionalAlert { + this := ConditionalAlert{} + return &this +} + +// NewConditionalAlertWithDefaults instantiates a new ConditionalAlert 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 NewConditionalAlertWithDefaults() *ConditionalAlert { + this := ConditionalAlert{} + return &this +} + +// GetAffectedCustomerAsset returns the AffectedCustomerAsset field value if set, zero value otherwise. +func (o *ConditionalAlert) GetAffectedCustomerAsset() string { + if o == nil || IsNil(o.AffectedCustomerAsset) { + var ret string + return ret + } + return *o.AffectedCustomerAsset +} + +// GetAffectedCustomerAssetOk returns a tuple with the AffectedCustomerAsset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetAffectedCustomerAssetOk() (*string, bool) { + if o == nil || IsNil(o.AffectedCustomerAsset) { + return nil, false + } + return o.AffectedCustomerAsset, true +} + +// HasAffectedCustomerAsset returns a boolean if a field has been set. +func (o *ConditionalAlert) HasAffectedCustomerAsset() bool { + if o != nil && !IsNil(o.AffectedCustomerAsset) { + return true + } + + return false +} + +// SetAffectedCustomerAsset gets a reference to the given string and assigns it to the AffectedCustomerAsset field. +func (o *ConditionalAlert) SetAffectedCustomerAsset(v string) { + o.AffectedCustomerAsset = &v +} + +// GetAlertType returns the AlertType field value if set, zero value otherwise. +func (o *ConditionalAlert) GetAlertType() string { + if o == nil || IsNil(o.AlertType) { + var ret string + return ret + } + return *o.AlertType +} + +// GetAlertTypeOk returns a tuple with the AlertType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetAlertTypeOk() (*string, bool) { + if o == nil || IsNil(o.AlertType) { + return nil, false + } + return o.AlertType, true +} + +// HasAlertType returns a boolean if a field has been set. +func (o *ConditionalAlert) HasAlertType() bool { + if o != nil && !IsNil(o.AlertType) { + return true + } + + return false +} + +// SetAlertType gets a reference to the given string and assigns it to the AlertType field. +func (o *ConditionalAlert) SetAlertType(v string) { + o.AlertType = &v +} + +// GetAsset returns the Asset field value if set, zero value otherwise. +func (o *ConditionalAlert) GetAsset() string { + if o == nil || IsNil(o.Asset) { + var ret string + return ret + } + return *o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetAssetOk() (*string, bool) { + if o == nil || IsNil(o.Asset) { + return nil, false + } + return o.Asset, true +} + +// HasAsset returns a boolean if a field has been set. +func (o *ConditionalAlert) HasAsset() bool { + if o != nil && !IsNil(o.Asset) { + return true + } + + return false +} + +// SetAsset gets a reference to the given string and assigns it to the Asset field. +func (o *ConditionalAlert) SetAsset(v string) { + o.Asset = &v +} + +// GetAssetname returns the Assetname field value if set, zero value otherwise. +func (o *ConditionalAlert) GetAssetname() string { + if o == nil || IsNil(o.Assetname) { + var ret string + return ret + } + return *o.Assetname +} + +// GetAssetnameOk returns a tuple with the Assetname field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetAssetnameOk() (*string, bool) { + if o == nil || IsNil(o.Assetname) { + return nil, false + } + return o.Assetname, true +} + +// HasAssetname returns a boolean if a field has been set. +func (o *ConditionalAlert) HasAssetname() bool { + if o != nil && !IsNil(o.Assetname) { + return true + } + + return false +} + +// SetAssetname gets a reference to the given string and assigns it to the Assetname field. +func (o *ConditionalAlert) SetAssetname(v string) { + o.Assetname = &v +} + +// GetAssettype returns the Assettype field value if set, zero value otherwise. +func (o *ConditionalAlert) GetAssettype() string { + if o == nil || IsNil(o.Assettype) { + var ret string + return ret + } + return *o.Assettype +} + +// GetAssettypeOk returns a tuple with the Assettype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetAssettypeOk() (*string, bool) { + if o == nil || IsNil(o.Assettype) { + return nil, false + } + return o.Assettype, true +} + +// HasAssettype returns a boolean if a field has been set. +func (o *ConditionalAlert) HasAssettype() bool { + if o != nil && !IsNil(o.Assettype) { + return true + } + + return false +} + +// SetAssettype gets a reference to the given string and assigns it to the Assettype field. +func (o *ConditionalAlert) SetAssettype(v string) { + o.Assettype = &v +} + +// GetCondalerttypeid returns the Condalerttypeid field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCondalerttypeid() string { + if o == nil || IsNil(o.Condalerttypeid) { + var ret string + return ret + } + return *o.Condalerttypeid +} + +// GetCondalerttypeidOk returns a tuple with the Condalerttypeid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCondalerttypeidOk() (*string, bool) { + if o == nil || IsNil(o.Condalerttypeid) { + return nil, false + } + return o.Condalerttypeid, true +} + +// HasCondalerttypeid returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCondalerttypeid() bool { + if o != nil && !IsNil(o.Condalerttypeid) { + return true + } + + return false +} + +// SetCondalerttypeid gets a reference to the given string and assigns it to the Condalerttypeid field. +func (o *ConditionalAlert) SetCondalerttypeid(v string) { + o.Condalerttypeid = &v +} + +// GetCondassetclassification returns the Condassetclassification field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCondassetclassification() string { + if o == nil || IsNil(o.Condassetclassification) { + var ret string + return ret + } + return *o.Condassetclassification +} + +// GetCondassetclassificationOk returns a tuple with the Condassetclassification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCondassetclassificationOk() (*string, bool) { + if o == nil || IsNil(o.Condassetclassification) { + return nil, false + } + return o.Condassetclassification, true +} + +// HasCondassetclassification returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCondassetclassification() bool { + if o != nil && !IsNil(o.Condassetclassification) { + return true + } + + return false +} + +// SetCondassetclassification gets a reference to the given string and assigns it to the Condassetclassification field. +func (o *ConditionalAlert) SetCondassetclassification(v string) { + o.Condassetclassification = &v +} + +// GetCondassetid returns the Condassetid field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCondassetid() string { + if o == nil || IsNil(o.Condassetid) { + var ret string + return ret + } + return *o.Condassetid +} + +// GetCondassetidOk returns a tuple with the Condassetid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCondassetidOk() (*string, bool) { + if o == nil || IsNil(o.Condassetid) { + return nil, false + } + return o.Condassetid, true +} + +// HasCondassetid returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCondassetid() bool { + if o != nil && !IsNil(o.Condassetid) { + return true + } + + return false +} + +// SetCondassetid gets a reference to the given string and assigns it to the Condassetid field. +func (o *ConditionalAlert) SetCondassetid(v string) { + o.Condassetid = &v +} + +// GetCondcurrentvalue returns the Condcurrentvalue field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCondcurrentvalue() string { + if o == nil || IsNil(o.Condcurrentvalue) { + var ret string + return ret + } + return *o.Condcurrentvalue +} + +// GetCondcurrentvalueOk returns a tuple with the Condcurrentvalue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCondcurrentvalueOk() (*string, bool) { + if o == nil || IsNil(o.Condcurrentvalue) { + return nil, false + } + return o.Condcurrentvalue, true +} + +// HasCondcurrentvalue returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCondcurrentvalue() bool { + if o != nil && !IsNil(o.Condcurrentvalue) { + return true + } + + return false +} + +// SetCondcurrentvalue gets a reference to the given string and assigns it to the Condcurrentvalue field. +func (o *ConditionalAlert) SetCondcurrentvalue(v string) { + o.Condcurrentvalue = &v +} + +// GetCondeventtype returns the Condeventtype field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCondeventtype() string { + if o == nil || IsNil(o.Condeventtype) { + var ret string + return ret + } + return *o.Condeventtype +} + +// GetCondeventtypeOk returns a tuple with the Condeventtype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCondeventtypeOk() (*string, bool) { + if o == nil || IsNil(o.Condeventtype) { + return nil, false + } + return o.Condeventtype, true +} + +// HasCondeventtype returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCondeventtype() bool { + if o != nil && !IsNil(o.Condeventtype) { + return true + } + + return false +} + +// SetCondeventtype gets a reference to the given string and assigns it to the Condeventtype field. +func (o *ConditionalAlert) SetCondeventtype(v string) { + o.Condeventtype = &v +} + +// GetCondtagid returns the Condtagid field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCondtagid() string { + if o == nil || IsNil(o.Condtagid) { + var ret string + return ret + } + return *o.Condtagid +} + +// GetCondtagidOk returns a tuple with the Condtagid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCondtagidOk() (*string, bool) { + if o == nil || IsNil(o.Condtagid) { + return nil, false + } + return o.Condtagid, true +} + +// HasCondtagid returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCondtagid() bool { + if o != nil && !IsNil(o.Condtagid) { + return true + } + + return false +} + +// SetCondtagid gets a reference to the given string and assigns it to the Condtagid field. +func (o *ConditionalAlert) SetCondtagid(v string) { + o.Condtagid = &v +} + +// GetCustomerAssets returns the CustomerAssets field value if set, zero value otherwise. +func (o *ConditionalAlert) GetCustomerAssets() string { + if o == nil || IsNil(o.CustomerAssets) { + var ret string + return ret + } + return *o.CustomerAssets +} + +// GetCustomerAssetsOk returns a tuple with the CustomerAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetCustomerAssetsOk() (*string, bool) { + if o == nil || IsNil(o.CustomerAssets) { + return nil, false + } + return o.CustomerAssets, true +} + +// HasCustomerAssets returns a boolean if a field has been set. +func (o *ConditionalAlert) HasCustomerAssets() bool { + if o != nil && !IsNil(o.CustomerAssets) { + return true + } + + return false +} + +// SetCustomerAssets gets a reference to the given string and assigns it to the CustomerAssets field. +func (o *ConditionalAlert) SetCustomerAssets(v string) { + o.CustomerAssets = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *ConditionalAlert) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *ConditionalAlert) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *ConditionalAlert) SetIbx(v string) { + o.Ibx = &v +} + +// GetInfraAssets returns the InfraAssets field value if set, zero value otherwise. +func (o *ConditionalAlert) GetInfraAssets() string { + if o == nil || IsNil(o.InfraAssets) { + var ret string + return ret + } + return *o.InfraAssets +} + +// GetInfraAssetsOk returns a tuple with the InfraAssets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetInfraAssetsOk() (*string, bool) { + if o == nil || IsNil(o.InfraAssets) { + return nil, false + } + return o.InfraAssets, true +} + +// HasInfraAssets returns a boolean if a field has been set. +func (o *ConditionalAlert) HasInfraAssets() bool { + if o != nil && !IsNil(o.InfraAssets) { + return true + } + + return false +} + +// SetInfraAssets gets a reference to the given string and assigns it to the InfraAssets field. +func (o *ConditionalAlert) SetInfraAssets(v string) { + o.InfraAssets = &v +} + +// GetMeasurementType returns the MeasurementType field value if set, zero value otherwise. +func (o *ConditionalAlert) GetMeasurementType() string { + if o == nil || IsNil(o.MeasurementType) { + var ret string + return ret + } + return *o.MeasurementType +} + +// GetMeasurementTypeOk returns a tuple with the MeasurementType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetMeasurementTypeOk() (*string, bool) { + if o == nil || IsNil(o.MeasurementType) { + return nil, false + } + return o.MeasurementType, true +} + +// HasMeasurementType returns a boolean if a field has been set. +func (o *ConditionalAlert) HasMeasurementType() bool { + if o != nil && !IsNil(o.MeasurementType) { + return true + } + + return false +} + +// SetMeasurementType gets a reference to the given string and assigns it to the MeasurementType field. +func (o *ConditionalAlert) SetMeasurementType(v string) { + o.MeasurementType = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *ConditionalAlert) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *ConditionalAlert) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *ConditionalAlert) SetRegion(v string) { + o.Region = &v +} + +// GetSection returns the Section field value if set, zero value otherwise. +func (o *ConditionalAlert) GetSection() string { + if o == nil || IsNil(o.Section) { + var ret string + return ret + } + return *o.Section +} + +// GetSectionOk returns a tuple with the Section field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetSectionOk() (*string, bool) { + if o == nil || IsNil(o.Section) { + return nil, false + } + return o.Section, true +} + +// HasSection returns a boolean if a field has been set. +func (o *ConditionalAlert) HasSection() bool { + if o != nil && !IsNil(o.Section) { + return true + } + + return false +} + +// SetSection gets a reference to the given string and assigns it to the Section field. +func (o *ConditionalAlert) SetSection(v string) { + o.Section = &v +} + +// GetThresholdUnit returns the ThresholdUnit field value if set, zero value otherwise. +func (o *ConditionalAlert) GetThresholdUnit() string { + if o == nil || IsNil(o.ThresholdUnit) { + var ret string + return ret + } + return *o.ThresholdUnit +} + +// GetThresholdUnitOk returns a tuple with the ThresholdUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetThresholdUnitOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdUnit) { + return nil, false + } + return o.ThresholdUnit, true +} + +// HasThresholdUnit returns a boolean if a field has been set. +func (o *ConditionalAlert) HasThresholdUnit() bool { + if o != nil && !IsNil(o.ThresholdUnit) { + return true + } + + return false +} + +// SetThresholdUnit gets a reference to the given string and assigns it to the ThresholdUnit field. +func (o *ConditionalAlert) SetThresholdUnit(v string) { + o.ThresholdUnit = &v +} + +// GetThresholdValue returns the ThresholdValue field value if set, zero value otherwise. +func (o *ConditionalAlert) GetThresholdValue() string { + if o == nil || IsNil(o.ThresholdValue) { + var ret string + return ret + } + return *o.ThresholdValue +} + +// GetThresholdValueOk returns a tuple with the ThresholdValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetThresholdValueOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValue) { + return nil, false + } + return o.ThresholdValue, true +} + +// HasThresholdValue returns a boolean if a field has been set. +func (o *ConditionalAlert) HasThresholdValue() bool { + if o != nil && !IsNil(o.ThresholdValue) { + return true + } + + return false +} + +// SetThresholdValue gets a reference to the given string and assigns it to the ThresholdValue field. +func (o *ConditionalAlert) SetThresholdValue(v string) { + o.ThresholdValue = &v +} + +// GetThresholdValueMax returns the ThresholdValueMax field value if set, zero value otherwise. +func (o *ConditionalAlert) GetThresholdValueMax() string { + if o == nil || IsNil(o.ThresholdValueMax) { + var ret string + return ret + } + return *o.ThresholdValueMax +} + +// GetThresholdValueMaxOk returns a tuple with the ThresholdValueMax field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetThresholdValueMaxOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValueMax) { + return nil, false + } + return o.ThresholdValueMax, true +} + +// HasThresholdValueMax returns a boolean if a field has been set. +func (o *ConditionalAlert) HasThresholdValueMax() bool { + if o != nil && !IsNil(o.ThresholdValueMax) { + return true + } + + return false +} + +// SetThresholdValueMax gets a reference to the given string and assigns it to the ThresholdValueMax field. +func (o *ConditionalAlert) SetThresholdValueMax(v string) { + o.ThresholdValueMax = &v +} + +// GetThresholdValueMin returns the ThresholdValueMin field value if set, zero value otherwise. +func (o *ConditionalAlert) GetThresholdValueMin() string { + if o == nil || IsNil(o.ThresholdValueMin) { + var ret string + return ret + } + return *o.ThresholdValueMin +} + +// GetThresholdValueMinOk returns a tuple with the ThresholdValueMin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetThresholdValueMinOk() (*string, bool) { + if o == nil || IsNil(o.ThresholdValueMin) { + return nil, false + } + return o.ThresholdValueMin, true +} + +// HasThresholdValueMin returns a boolean if a field has been set. +func (o *ConditionalAlert) HasThresholdValueMin() bool { + if o != nil && !IsNil(o.ThresholdValueMin) { + return true + } + + return false +} + +// SetThresholdValueMin gets a reference to the given string and assigns it to the ThresholdValueMin field. +func (o *ConditionalAlert) SetThresholdValueMin(v string) { + o.ThresholdValueMin = &v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *ConditionalAlert) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConditionalAlert) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *ConditionalAlert) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *ConditionalAlert) SetUom(v string) { + o.Uom = &v +} + +func (o ConditionalAlert) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConditionalAlert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AffectedCustomerAsset) { + toSerialize["affectedCustomerAsset"] = o.AffectedCustomerAsset + } + if !IsNil(o.AlertType) { + toSerialize["alertType"] = o.AlertType + } + if !IsNil(o.Asset) { + toSerialize["asset"] = o.Asset + } + if !IsNil(o.Assetname) { + toSerialize["assetname"] = o.Assetname + } + if !IsNil(o.Assettype) { + toSerialize["assettype"] = o.Assettype + } + if !IsNil(o.Condalerttypeid) { + toSerialize["condalerttypeid"] = o.Condalerttypeid + } + if !IsNil(o.Condassetclassification) { + toSerialize["condassetclassification"] = o.Condassetclassification + } + if !IsNil(o.Condassetid) { + toSerialize["condassetid"] = o.Condassetid + } + if !IsNil(o.Condcurrentvalue) { + toSerialize["condcurrentvalue"] = o.Condcurrentvalue + } + if !IsNil(o.Condeventtype) { + toSerialize["condeventtype"] = o.Condeventtype + } + if !IsNil(o.Condtagid) { + toSerialize["condtagid"] = o.Condtagid + } + if !IsNil(o.CustomerAssets) { + toSerialize["customerAssets"] = o.CustomerAssets + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.InfraAssets) { + toSerialize["infraAssets"] = o.InfraAssets + } + if !IsNil(o.MeasurementType) { + toSerialize["measurementType"] = o.MeasurementType + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + if !IsNil(o.Section) { + toSerialize["section"] = o.Section + } + if !IsNil(o.ThresholdUnit) { + toSerialize["thresholdUnit"] = o.ThresholdUnit + } + if !IsNil(o.ThresholdValue) { + toSerialize["thresholdValue"] = o.ThresholdValue + } + if !IsNil(o.ThresholdValueMax) { + toSerialize["thresholdValueMax"] = o.ThresholdValueMax + } + if !IsNil(o.ThresholdValueMin) { + toSerialize["thresholdValueMin"] = o.ThresholdValueMin + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ConditionalAlert) UnmarshalJSON(data []byte) (err error) { + varConditionalAlert := _ConditionalAlert{} + + err = json.Unmarshal(data, &varConditionalAlert) + + if err != nil { + return err + } + + *o = ConditionalAlert(varConditionalAlert) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "affectedCustomerAsset") + delete(additionalProperties, "alertType") + delete(additionalProperties, "asset") + delete(additionalProperties, "assetname") + delete(additionalProperties, "assettype") + delete(additionalProperties, "condalerttypeid") + delete(additionalProperties, "condassetclassification") + delete(additionalProperties, "condassetid") + delete(additionalProperties, "condcurrentvalue") + delete(additionalProperties, "condeventtype") + delete(additionalProperties, "condtagid") + delete(additionalProperties, "customerAssets") + delete(additionalProperties, "ibx") + delete(additionalProperties, "infraAssets") + delete(additionalProperties, "measurementType") + delete(additionalProperties, "region") + delete(additionalProperties, "section") + delete(additionalProperties, "thresholdUnit") + delete(additionalProperties, "thresholdValue") + delete(additionalProperties, "thresholdValueMax") + delete(additionalProperties, "thresholdValueMin") + delete(additionalProperties, "uom") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableConditionalAlert struct { + value *ConditionalAlert + isSet bool +} + +func (v NullableConditionalAlert) Get() *ConditionalAlert { + return v.value +} + +func (v *NullableConditionalAlert) Set(val *ConditionalAlert) { + v.value = val + v.isSet = true +} + +func (v NullableConditionalAlert) IsSet() bool { + return v.isSet +} + +func (v *NullableConditionalAlert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConditionalAlert(val *ConditionalAlert) *NullableConditionalAlert { + return &NullableConditionalAlert{value: val, isSet: true} +} + +func (v NullableConditionalAlert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConditionalAlert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_current_tag_point_request.go b/services/smartview/model_current_tag_point_request.go new file mode 100644 index 00000000..485264bf --- /dev/null +++ b/services/smartview/model_current_tag_point_request.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the CurrentTagPointRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CurrentTagPointRequest{} + +// CurrentTagPointRequest request object for tagpoint/current POST request +type CurrentTagPointRequest struct { + // customer account number + AccountNo *string `json:"accountNo,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + TagIds []string `json:"tagIds,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CurrentTagPointRequest CurrentTagPointRequest + +// NewCurrentTagPointRequest instantiates a new CurrentTagPointRequest 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 NewCurrentTagPointRequest() *CurrentTagPointRequest { + this := CurrentTagPointRequest{} + return &this +} + +// NewCurrentTagPointRequestWithDefaults instantiates a new CurrentTagPointRequest 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 NewCurrentTagPointRequestWithDefaults() *CurrentTagPointRequest { + this := CurrentTagPointRequest{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *CurrentTagPointRequest) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CurrentTagPointRequest) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *CurrentTagPointRequest) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *CurrentTagPointRequest) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *CurrentTagPointRequest) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CurrentTagPointRequest) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *CurrentTagPointRequest) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *CurrentTagPointRequest) SetIbx(v string) { + o.Ibx = &v +} + +// GetTagIds returns the TagIds field value if set, zero value otherwise. +func (o *CurrentTagPointRequest) GetTagIds() []string { + if o == nil || IsNil(o.TagIds) { + var ret []string + return ret + } + return o.TagIds +} + +// GetTagIdsOk returns a tuple with the TagIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CurrentTagPointRequest) GetTagIdsOk() ([]string, bool) { + if o == nil || IsNil(o.TagIds) { + return nil, false + } + return o.TagIds, true +} + +// HasTagIds returns a boolean if a field has been set. +func (o *CurrentTagPointRequest) HasTagIds() bool { + if o != nil && !IsNil(o.TagIds) { + return true + } + + return false +} + +// SetTagIds gets a reference to the given []string and assigns it to the TagIds field. +func (o *CurrentTagPointRequest) SetTagIds(v []string) { + o.TagIds = v +} + +func (o CurrentTagPointRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CurrentTagPointRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.TagIds) { + toSerialize["tagIds"] = o.TagIds + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CurrentTagPointRequest) UnmarshalJSON(data []byte) (err error) { + varCurrentTagPointRequest := _CurrentTagPointRequest{} + + err = json.Unmarshal(data, &varCurrentTagPointRequest) + + if err != nil { + return err + } + + *o = CurrentTagPointRequest(varCurrentTagPointRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "ibx") + delete(additionalProperties, "tagIds") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCurrentTagPointRequest struct { + value *CurrentTagPointRequest + isSet bool +} + +func (v NullableCurrentTagPointRequest) Get() *CurrentTagPointRequest { + return v.value +} + +func (v *NullableCurrentTagPointRequest) Set(val *CurrentTagPointRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCurrentTagPointRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCurrentTagPointRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCurrentTagPointRequest(val *CurrentTagPointRequest) *NullableCurrentTagPointRequest { + return &NullableCurrentTagPointRequest{value: val, isSet: true} +} + +func (v NullableCurrentTagPointRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCurrentTagPointRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_current_tag_point_response.go b/services/smartview/model_current_tag_point_response.go new file mode 100644 index 00000000..8faf32fb --- /dev/null +++ b/services/smartview/model_current_tag_point_response.go @@ -0,0 +1,156 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the CurrentTagPointResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CurrentTagPointResponse{} + +// CurrentTagPointResponse response object for tagpoint/current POST request +type CurrentTagPointResponse struct { + // total number of current tag point + TotalCount map[string]interface{} `json:"totalCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CurrentTagPointResponse CurrentTagPointResponse + +// NewCurrentTagPointResponse instantiates a new CurrentTagPointResponse 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 NewCurrentTagPointResponse() *CurrentTagPointResponse { + this := CurrentTagPointResponse{} + return &this +} + +// NewCurrentTagPointResponseWithDefaults instantiates a new CurrentTagPointResponse 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 NewCurrentTagPointResponseWithDefaults() *CurrentTagPointResponse { + this := CurrentTagPointResponse{} + return &this +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *CurrentTagPointResponse) GetTotalCount() map[string]interface{} { + if o == nil || IsNil(o.TotalCount) { + var ret map[string]interface{} + return ret + } + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CurrentTagPointResponse) GetTotalCountOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TotalCount) { + return map[string]interface{}{}, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *CurrentTagPointResponse) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given map[string]interface{} and assigns it to the TotalCount field. +func (o *CurrentTagPointResponse) SetTotalCount(v map[string]interface{}) { + o.TotalCount = v +} + +func (o CurrentTagPointResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CurrentTagPointResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CurrentTagPointResponse) UnmarshalJSON(data []byte) (err error) { + varCurrentTagPointResponse := _CurrentTagPointResponse{} + + err = json.Unmarshal(data, &varCurrentTagPointResponse) + + if err != nil { + return err + } + + *o = CurrentTagPointResponse(varCurrentTagPointResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "totalCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCurrentTagPointResponse struct { + value *CurrentTagPointResponse + isSet bool +} + +func (v NullableCurrentTagPointResponse) Get() *CurrentTagPointResponse { + return v.value +} + +func (v *NullableCurrentTagPointResponse) Set(val *CurrentTagPointResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCurrentTagPointResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCurrentTagPointResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCurrentTagPointResponse(val *CurrentTagPointResponse) *NullableCurrentTagPointResponse { + return &NullableCurrentTagPointResponse{value: val, isSet: true} +} + +func (v NullableCurrentTagPointResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCurrentTagPointResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_custom_alert.go b/services/smartview/model_custom_alert.go new file mode 100644 index 00000000..a0700504 --- /dev/null +++ b/services/smartview/model_custom_alert.go @@ -0,0 +1,234 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the CustomAlert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomAlert{} + +// CustomAlert Custom Alert messages are sent when user-defined alert conditions become true. The message contains the data point value that triggered the alert. +type CustomAlert struct { + AccountNumber string `json:"accountNumber"` + Ibx []string `json:"ibx"` + User *string `json:"user,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CustomAlert CustomAlert + +// NewCustomAlert instantiates a new CustomAlert 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 NewCustomAlert(accountNumber string, ibx []string) *CustomAlert { + this := CustomAlert{} + this.AccountNumber = accountNumber + this.Ibx = ibx + return &this +} + +// NewCustomAlertWithDefaults instantiates a new CustomAlert 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 NewCustomAlertWithDefaults() *CustomAlert { + this := CustomAlert{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value +func (o *CustomAlert) GetAccountNumber() string { + if o == nil { + var ret string + return ret + } + + return o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value +// and a boolean to check if the value has been set. +func (o *CustomAlert) GetAccountNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountNumber, true +} + +// SetAccountNumber sets field value +func (o *CustomAlert) SetAccountNumber(v string) { + o.AccountNumber = v +} + +// GetIbx returns the Ibx field value +func (o *CustomAlert) GetIbx() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *CustomAlert) GetIbxOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ibx, true +} + +// SetIbx sets field value +func (o *CustomAlert) SetIbx(v []string) { + o.Ibx = v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *CustomAlert) GetUser() string { + if o == nil || IsNil(o.User) { + var ret string + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomAlert) GetUserOk() (*string, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *CustomAlert) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given string and assigns it to the User field. +func (o *CustomAlert) SetUser(v string) { + o.User = &v +} + +func (o CustomAlert) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomAlert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountNumber"] = o.AccountNumber + toSerialize["ibx"] = o.Ibx + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CustomAlert) 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{ + "accountNumber", + "ibx", + } + + 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) + } + } + + varCustomAlert := _CustomAlert{} + + err = json.Unmarshal(data, &varCustomAlert) + + if err != nil { + return err + } + + *o = CustomAlert(varCustomAlert) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "ibx") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCustomAlert struct { + value *CustomAlert + isSet bool +} + +func (v NullableCustomAlert) Get() *CustomAlert { + return v.value +} + +func (v *NullableCustomAlert) Set(val *CustomAlert) { + v.value = val + v.isSet = true +} + +func (v NullableCustomAlert) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomAlert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomAlert(val *CustomAlert) *NullableCustomAlert { + return &NullableCustomAlert{value: val, isSet: true} +} + +func (v NullableCustomAlert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomAlert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_customer_assets.go b/services/smartview/model_customer_assets.go new file mode 100644 index 00000000..d18e5ad8 --- /dev/null +++ b/services/smartview/model_customer_assets.go @@ -0,0 +1,229 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the CustomerAssets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomerAssets{} + +// CustomerAssets struct for CustomerAssets +type CustomerAssets struct { + Assets []map[string]interface{} `json:"assets,omitempty"` + AssetsName []map[string]interface{} `json:"assetsName,omitempty"` + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CustomerAssets CustomerAssets + +// NewCustomerAssets instantiates a new CustomerAssets 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 NewCustomerAssets() *CustomerAssets { + this := CustomerAssets{} + return &this +} + +// NewCustomerAssetsWithDefaults instantiates a new CustomerAssets 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 NewCustomerAssetsWithDefaults() *CustomerAssets { + this := CustomerAssets{} + return &this +} + +// GetAssets returns the Assets field value if set, zero value otherwise. +func (o *CustomerAssets) GetAssets() []map[string]interface{} { + if o == nil || IsNil(o.Assets) { + var ret []map[string]interface{} + return ret + } + return o.Assets +} + +// GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerAssets) GetAssetsOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.Assets) { + return nil, false + } + return o.Assets, true +} + +// HasAssets returns a boolean if a field has been set. +func (o *CustomerAssets) HasAssets() bool { + if o != nil && !IsNil(o.Assets) { + return true + } + + return false +} + +// SetAssets gets a reference to the given []map[string]interface{} and assigns it to the Assets field. +func (o *CustomerAssets) SetAssets(v []map[string]interface{}) { + o.Assets = v +} + +// GetAssetsName returns the AssetsName field value if set, zero value otherwise. +func (o *CustomerAssets) GetAssetsName() []map[string]interface{} { + if o == nil || IsNil(o.AssetsName) { + var ret []map[string]interface{} + return ret + } + return o.AssetsName +} + +// GetAssetsNameOk returns a tuple with the AssetsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerAssets) GetAssetsNameOk() ([]map[string]interface{}, bool) { + if o == nil || IsNil(o.AssetsName) { + return nil, false + } + return o.AssetsName, true +} + +// HasAssetsName returns a boolean if a field has been set. +func (o *CustomerAssets) HasAssetsName() bool { + if o != nil && !IsNil(o.AssetsName) { + return true + } + + return false +} + +// SetAssetsName gets a reference to the given []map[string]interface{} and assigns it to the AssetsName field. +func (o *CustomerAssets) SetAssetsName(v []map[string]interface{}) { + o.AssetsName = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *CustomerAssets) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerAssets) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CustomerAssets) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *CustomerAssets) SetType(v string) { + o.Type = &v +} + +func (o CustomerAssets) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomerAssets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Assets) { + toSerialize["assets"] = o.Assets + } + if !IsNil(o.AssetsName) { + toSerialize["assetsName"] = o.AssetsName + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CustomerAssets) UnmarshalJSON(data []byte) (err error) { + varCustomerAssets := _CustomerAssets{} + + err = json.Unmarshal(data, &varCustomerAssets) + + if err != nil { + return err + } + + *o = CustomerAssets(varCustomerAssets) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assets") + delete(additionalProperties, "assetsName") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCustomerAssets struct { + value *CustomerAssets + isSet bool +} + +func (v NullableCustomerAssets) Get() *CustomerAssets { + return v.value +} + +func (v *NullableCustomerAssets) Set(val *CustomerAssets) { + v.value = val + v.isSet = true +} + +func (v NullableCustomerAssets) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomerAssets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomerAssets(val *CustomerAssets) *NullableCustomerAssets { + return &NullableCustomerAssets{value: val, isSet: true} +} + +func (v NullableCustomerAssets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomerAssets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_data_value.go b/services/smartview/model_data_value.go new file mode 100644 index 00000000..dafdeb7e --- /dev/null +++ b/services/smartview/model_data_value.go @@ -0,0 +1,232 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the DataValue type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataValue{} + +// DataValue This object contains a single reading for the data point. +type DataValue struct { + // timestamp since epoch. reading timestamp + Datetime *string `json:"datetime,omitempty"` + // modifiers applicable for the reading value + Modifiers []string `json:"modifiers,omitempty"` + // reading value for the datapoint + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DataValue DataValue + +// NewDataValue instantiates a new DataValue 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 NewDataValue() *DataValue { + this := DataValue{} + return &this +} + +// NewDataValueWithDefaults instantiates a new DataValue 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 NewDataValueWithDefaults() *DataValue { + this := DataValue{} + return &this +} + +// GetDatetime returns the Datetime field value if set, zero value otherwise. +func (o *DataValue) GetDatetime() string { + if o == nil || IsNil(o.Datetime) { + var ret string + return ret + } + return *o.Datetime +} + +// GetDatetimeOk returns a tuple with the Datetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataValue) GetDatetimeOk() (*string, bool) { + if o == nil || IsNil(o.Datetime) { + return nil, false + } + return o.Datetime, true +} + +// HasDatetime returns a boolean if a field has been set. +func (o *DataValue) HasDatetime() bool { + if o != nil && !IsNil(o.Datetime) { + return true + } + + return false +} + +// SetDatetime gets a reference to the given string and assigns it to the Datetime field. +func (o *DataValue) SetDatetime(v string) { + o.Datetime = &v +} + +// GetModifiers returns the Modifiers field value if set, zero value otherwise. +func (o *DataValue) GetModifiers() []string { + if o == nil || IsNil(o.Modifiers) { + var ret []string + return ret + } + return o.Modifiers +} + +// GetModifiersOk returns a tuple with the Modifiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataValue) GetModifiersOk() ([]string, bool) { + if o == nil || IsNil(o.Modifiers) { + return nil, false + } + return o.Modifiers, true +} + +// HasModifiers returns a boolean if a field has been set. +func (o *DataValue) HasModifiers() bool { + if o != nil && !IsNil(o.Modifiers) { + return true + } + + return false +} + +// SetModifiers gets a reference to the given []string and assigns it to the Modifiers field. +func (o *DataValue) SetModifiers(v []string) { + o.Modifiers = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DataValue) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataValue) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DataValue) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *DataValue) SetValue(v string) { + o.Value = &v +} + +func (o DataValue) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataValue) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Datetime) { + toSerialize["datetime"] = o.Datetime + } + if !IsNil(o.Modifiers) { + toSerialize["modifiers"] = o.Modifiers + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DataValue) UnmarshalJSON(data []byte) (err error) { + varDataValue := _DataValue{} + + err = json.Unmarshal(data, &varDataValue) + + if err != nil { + return err + } + + *o = DataValue(varDataValue) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "datetime") + delete(additionalProperties, "modifiers") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDataValue struct { + value *DataValue + isSet bool +} + +func (v NullableDataValue) Get() *DataValue { + return v.value +} + +func (v *NullableDataValue) Set(val *DataValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataValue(val *DataValue) *NullableDataValue { + return &NullableDataValue{value: val, isSet: true} +} + +func (v NullableDataValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment.go b/services/smartview/model_environment.go new file mode 100644 index 00000000..fe7a1f33 --- /dev/null +++ b/services/smartview/model_environment.go @@ -0,0 +1,362 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Environment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Environment{} + +// Environment message data +type Environment struct { + Asset EnvironmentAssetDetails `json:"asset"` + // data quality: Good | Bad | Uncertain + DataQuality *string `json:"dataQuality,omitempty"` + // ibx + Ibx string `json:"ibx"` + Reading EnvironmentValueWithUnit `json:"reading"` + // message reading time + ReadingTime *string `json:"readingTime,omitempty"` + // unique message id + StreamId string `json:"streamId"` + Tag EnvironmentTagDetails `json:"tag"` + AdditionalProperties map[string]interface{} +} + +type _Environment Environment + +// NewEnvironment instantiates a new Environment 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 NewEnvironment(asset EnvironmentAssetDetails, ibx string, reading EnvironmentValueWithUnit, streamId string, tag EnvironmentTagDetails) *Environment { + this := Environment{} + this.Asset = asset + this.Ibx = ibx + this.Reading = reading + this.StreamId = streamId + this.Tag = tag + return &this +} + +// NewEnvironmentWithDefaults instantiates a new Environment 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 NewEnvironmentWithDefaults() *Environment { + this := Environment{} + return &this +} + +// GetAsset returns the Asset field value +func (o *Environment) GetAsset() EnvironmentAssetDetails { + if o == nil { + var ret EnvironmentAssetDetails + return ret + } + + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value +// and a boolean to check if the value has been set. +func (o *Environment) GetAssetOk() (*EnvironmentAssetDetails, bool) { + if o == nil { + return nil, false + } + return &o.Asset, true +} + +// SetAsset sets field value +func (o *Environment) SetAsset(v EnvironmentAssetDetails) { + o.Asset = v +} + +// GetDataQuality returns the DataQuality field value if set, zero value otherwise. +func (o *Environment) GetDataQuality() string { + if o == nil || IsNil(o.DataQuality) { + var ret string + return ret + } + return *o.DataQuality +} + +// GetDataQualityOk returns a tuple with the DataQuality field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Environment) GetDataQualityOk() (*string, bool) { + if o == nil || IsNil(o.DataQuality) { + return nil, false + } + return o.DataQuality, true +} + +// HasDataQuality returns a boolean if a field has been set. +func (o *Environment) HasDataQuality() bool { + if o != nil && !IsNil(o.DataQuality) { + return true + } + + return false +} + +// SetDataQuality gets a reference to the given string and assigns it to the DataQuality field. +func (o *Environment) SetDataQuality(v string) { + o.DataQuality = &v +} + +// GetIbx returns the Ibx field value +func (o *Environment) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *Environment) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *Environment) SetIbx(v string) { + o.Ibx = v +} + +// GetReading returns the Reading field value +func (o *Environment) GetReading() EnvironmentValueWithUnit { + if o == nil { + var ret EnvironmentValueWithUnit + return ret + } + + return o.Reading +} + +// GetReadingOk returns a tuple with the Reading field value +// and a boolean to check if the value has been set. +func (o *Environment) GetReadingOk() (*EnvironmentValueWithUnit, bool) { + if o == nil { + return nil, false + } + return &o.Reading, true +} + +// SetReading sets field value +func (o *Environment) SetReading(v EnvironmentValueWithUnit) { + o.Reading = v +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *Environment) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Environment) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *Environment) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *Environment) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetStreamId returns the StreamId field value +func (o *Environment) GetStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.StreamId +} + +// GetStreamIdOk returns a tuple with the StreamId field value +// and a boolean to check if the value has been set. +func (o *Environment) GetStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StreamId, true +} + +// SetStreamId sets field value +func (o *Environment) SetStreamId(v string) { + o.StreamId = v +} + +// GetTag returns the Tag field value +func (o *Environment) GetTag() EnvironmentTagDetails { + if o == nil { + var ret EnvironmentTagDetails + return ret + } + + return o.Tag +} + +// GetTagOk returns a tuple with the Tag field value +// and a boolean to check if the value has been set. +func (o *Environment) GetTagOk() (*EnvironmentTagDetails, bool) { + if o == nil { + return nil, false + } + return &o.Tag, true +} + +// SetTag sets field value +func (o *Environment) SetTag(v EnvironmentTagDetails) { + o.Tag = v +} + +func (o Environment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Environment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["asset"] = o.Asset + if !IsNil(o.DataQuality) { + toSerialize["dataQuality"] = o.DataQuality + } + toSerialize["ibx"] = o.Ibx + toSerialize["reading"] = o.Reading + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + toSerialize["streamId"] = o.StreamId + toSerialize["tag"] = o.Tag + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Environment) 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{ + "asset", + "ibx", + "reading", + "streamId", + "tag", + } + + 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) + } + } + + varEnvironment := _Environment{} + + err = json.Unmarshal(data, &varEnvironment) + + if err != nil { + return err + } + + *o = Environment(varEnvironment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asset") + delete(additionalProperties, "dataQuality") + delete(additionalProperties, "ibx") + delete(additionalProperties, "reading") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "streamId") + delete(additionalProperties, "tag") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironment struct { + value *Environment + isSet bool +} + +func (v NullableEnvironment) Get() *Environment { + return v.value +} + +func (v *NullableEnvironment) Set(val *Environment) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironment) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironment(val *Environment) *NullableEnvironment { + return &NullableEnvironment{value: val, isSet: true} +} + +func (v NullableEnvironment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_asset_details.go b/services/smartview/model_environment_asset_details.go new file mode 100644 index 00000000..9cf17500 --- /dev/null +++ b/services/smartview/model_environment_asset_details.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentAssetDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentAssetDetails{} + +// EnvironmentAssetDetails asset details +type EnvironmentAssetDetails struct { + // asset id + Id string `json:"id"` + // asset level + Level string `json:"level"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentAssetDetails EnvironmentAssetDetails + +// NewEnvironmentAssetDetails instantiates a new EnvironmentAssetDetails 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 NewEnvironmentAssetDetails(id string, level string) *EnvironmentAssetDetails { + this := EnvironmentAssetDetails{} + this.Id = id + this.Level = level + return &this +} + +// NewEnvironmentAssetDetailsWithDefaults instantiates a new EnvironmentAssetDetails 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 NewEnvironmentAssetDetailsWithDefaults() *EnvironmentAssetDetails { + this := EnvironmentAssetDetails{} + return &this +} + +// GetId returns the Id field value +func (o *EnvironmentAssetDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *EnvironmentAssetDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EnvironmentAssetDetails) SetId(v string) { + o.Id = v +} + +// GetLevel returns the Level field value +func (o *EnvironmentAssetDetails) GetLevel() string { + if o == nil { + var ret string + return ret + } + + return o.Level +} + +// GetLevelOk returns a tuple with the Level field value +// and a boolean to check if the value has been set. +func (o *EnvironmentAssetDetails) GetLevelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Level, true +} + +// SetLevel sets field value +func (o *EnvironmentAssetDetails) SetLevel(v string) { + o.Level = v +} + +func (o EnvironmentAssetDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentAssetDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["level"] = o.Level + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentAssetDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "level", + } + + 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) + } + } + + varEnvironmentAssetDetails := _EnvironmentAssetDetails{} + + err = json.Unmarshal(data, &varEnvironmentAssetDetails) + + if err != nil { + return err + } + + *o = EnvironmentAssetDetails(varEnvironmentAssetDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "level") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentAssetDetails struct { + value *EnvironmentAssetDetails + isSet bool +} + +func (v NullableEnvironmentAssetDetails) Get() *EnvironmentAssetDetails { + return v.value +} + +func (v *NullableEnvironmentAssetDetails) Set(val *EnvironmentAssetDetails) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentAssetDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentAssetDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentAssetDetails(val *EnvironmentAssetDetails) *NullableEnvironmentAssetDetails { + return &NullableEnvironmentAssetDetails{value: val, isSet: true} +} + +func (v NullableEnvironmentAssetDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentAssetDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data.go b/services/smartview/model_environment_data.go new file mode 100644 index 00000000..c0940e37 --- /dev/null +++ b/services/smartview/model_environment_data.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentData{} + +// EnvironmentData struct for EnvironmentData +type EnvironmentData struct { + PayLoad *EnvironmentDataPayLoad `json:"payLoad,omitempty"` + Status *EnvironmentDataStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentData EnvironmentData + +// NewEnvironmentData instantiates a new EnvironmentData 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 NewEnvironmentData() *EnvironmentData { + this := EnvironmentData{} + return &this +} + +// NewEnvironmentDataWithDefaults instantiates a new EnvironmentData 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 NewEnvironmentDataWithDefaults() *EnvironmentData { + this := EnvironmentData{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *EnvironmentData) GetPayLoad() EnvironmentDataPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret EnvironmentDataPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentData) GetPayLoadOk() (*EnvironmentDataPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *EnvironmentData) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given EnvironmentDataPayLoad and assigns it to the PayLoad field. +func (o *EnvironmentData) SetPayLoad(v EnvironmentDataPayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *EnvironmentData) GetStatus() EnvironmentDataStatus { + if o == nil || IsNil(o.Status) { + var ret EnvironmentDataStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentData) GetStatusOk() (*EnvironmentDataStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *EnvironmentData) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given EnvironmentDataStatus and assigns it to the Status field. +func (o *EnvironmentData) SetStatus(v EnvironmentDataStatus) { + o.Status = &v +} + +func (o EnvironmentData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentData) UnmarshalJSON(data []byte) (err error) { + varEnvironmentData := _EnvironmentData{} + + err = json.Unmarshal(data, &varEnvironmentData) + + if err != nil { + return err + } + + *o = EnvironmentData(varEnvironmentData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentData struct { + value *EnvironmentData + isSet bool +} + +func (v NullableEnvironmentData) Get() *EnvironmentData { + return v.value +} + +func (v *NullableEnvironmentData) Set(val *EnvironmentData) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentData) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentData(val *EnvironmentData) *NullableEnvironmentData { + return &NullableEnvironmentData{value: val, isSet: true} +} + +func (v NullableEnvironmentData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data_for_array.go b/services/smartview/model_environment_data_for_array.go new file mode 100644 index 00000000..7d210254 --- /dev/null +++ b/services/smartview/model_environment_data_for_array.go @@ -0,0 +1,536 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentDataForArray type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentDataForArray{} + +// EnvironmentDataForArray struct for EnvironmentDataForArray +type EnvironmentDataForArray struct { + // account number + AccountNo *string `json:"accountNo,omitempty"` + // cabinet unique space id + Cabinet *string `json:"cabinet,omitempty"` + // cage unique space id + Cage *string `json:"cage,omitempty"` + // current humidity + Humidity *string `json:"humidity,omitempty"` + // unit of measure for humidity + HumidityUom *string `json:"humidityUom,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + // sensor id + Sensor *string `json:"sensor,omitempty"` + // current temperature + Temperature *string `json:"temperature,omitempty"` + // unit of measure for temperature values + TemperatureUom *string `json:"temperatureUom,omitempty"` + // epoch timestamp when the current reading was read + Timestamp *string `json:"timestamp,omitempty"` + // zone unique space id + Zone *string `json:"zone,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentDataForArray EnvironmentDataForArray + +// NewEnvironmentDataForArray instantiates a new EnvironmentDataForArray 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 NewEnvironmentDataForArray() *EnvironmentDataForArray { + this := EnvironmentDataForArray{} + return &this +} + +// NewEnvironmentDataForArrayWithDefaults instantiates a new EnvironmentDataForArray 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 NewEnvironmentDataForArrayWithDefaults() *EnvironmentDataForArray { + this := EnvironmentDataForArray{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *EnvironmentDataForArray) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetCabinet returns the Cabinet field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetCabinet() string { + if o == nil || IsNil(o.Cabinet) { + var ret string + return ret + } + return *o.Cabinet +} + +// GetCabinetOk returns a tuple with the Cabinet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetCabinetOk() (*string, bool) { + if o == nil || IsNil(o.Cabinet) { + return nil, false + } + return o.Cabinet, true +} + +// HasCabinet returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasCabinet() bool { + if o != nil && !IsNil(o.Cabinet) { + return true + } + + return false +} + +// SetCabinet gets a reference to the given string and assigns it to the Cabinet field. +func (o *EnvironmentDataForArray) SetCabinet(v string) { + o.Cabinet = &v +} + +// GetCage returns the Cage field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetCage() string { + if o == nil || IsNil(o.Cage) { + var ret string + return ret + } + return *o.Cage +} + +// GetCageOk returns a tuple with the Cage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetCageOk() (*string, bool) { + if o == nil || IsNil(o.Cage) { + return nil, false + } + return o.Cage, true +} + +// HasCage returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasCage() bool { + if o != nil && !IsNil(o.Cage) { + return true + } + + return false +} + +// SetCage gets a reference to the given string and assigns it to the Cage field. +func (o *EnvironmentDataForArray) SetCage(v string) { + o.Cage = &v +} + +// GetHumidity returns the Humidity field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetHumidity() string { + if o == nil || IsNil(o.Humidity) { + var ret string + return ret + } + return *o.Humidity +} + +// GetHumidityOk returns a tuple with the Humidity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetHumidityOk() (*string, bool) { + if o == nil || IsNil(o.Humidity) { + return nil, false + } + return o.Humidity, true +} + +// HasHumidity returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasHumidity() bool { + if o != nil && !IsNil(o.Humidity) { + return true + } + + return false +} + +// SetHumidity gets a reference to the given string and assigns it to the Humidity field. +func (o *EnvironmentDataForArray) SetHumidity(v string) { + o.Humidity = &v +} + +// GetHumidityUom returns the HumidityUom field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetHumidityUom() string { + if o == nil || IsNil(o.HumidityUom) { + var ret string + return ret + } + return *o.HumidityUom +} + +// GetHumidityUomOk returns a tuple with the HumidityUom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetHumidityUomOk() (*string, bool) { + if o == nil || IsNil(o.HumidityUom) { + return nil, false + } + return o.HumidityUom, true +} + +// HasHumidityUom returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasHumidityUom() bool { + if o != nil && !IsNil(o.HumidityUom) { + return true + } + + return false +} + +// SetHumidityUom gets a reference to the given string and assigns it to the HumidityUom field. +func (o *EnvironmentDataForArray) SetHumidityUom(v string) { + o.HumidityUom = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *EnvironmentDataForArray) SetIbx(v string) { + o.Ibx = &v +} + +// GetSensor returns the Sensor field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetSensor() string { + if o == nil || IsNil(o.Sensor) { + var ret string + return ret + } + return *o.Sensor +} + +// GetSensorOk returns a tuple with the Sensor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetSensorOk() (*string, bool) { + if o == nil || IsNil(o.Sensor) { + return nil, false + } + return o.Sensor, true +} + +// HasSensor returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasSensor() bool { + if o != nil && !IsNil(o.Sensor) { + return true + } + + return false +} + +// SetSensor gets a reference to the given string and assigns it to the Sensor field. +func (o *EnvironmentDataForArray) SetSensor(v string) { + o.Sensor = &v +} + +// GetTemperature returns the Temperature field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetTemperature() string { + if o == nil || IsNil(o.Temperature) { + var ret string + return ret + } + return *o.Temperature +} + +// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetTemperatureOk() (*string, bool) { + if o == nil || IsNil(o.Temperature) { + return nil, false + } + return o.Temperature, true +} + +// HasTemperature returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasTemperature() bool { + if o != nil && !IsNil(o.Temperature) { + return true + } + + return false +} + +// SetTemperature gets a reference to the given string and assigns it to the Temperature field. +func (o *EnvironmentDataForArray) SetTemperature(v string) { + o.Temperature = &v +} + +// GetTemperatureUom returns the TemperatureUom field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetTemperatureUom() string { + if o == nil || IsNil(o.TemperatureUom) { + var ret string + return ret + } + return *o.TemperatureUom +} + +// GetTemperatureUomOk returns a tuple with the TemperatureUom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetTemperatureUomOk() (*string, bool) { + if o == nil || IsNil(o.TemperatureUom) { + return nil, false + } + return o.TemperatureUom, true +} + +// HasTemperatureUom returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasTemperatureUom() bool { + if o != nil && !IsNil(o.TemperatureUom) { + return true + } + + return false +} + +// SetTemperatureUom gets a reference to the given string and assigns it to the TemperatureUom field. +func (o *EnvironmentDataForArray) SetTemperatureUom(v string) { + o.TemperatureUom = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetTimestamp() string { + if o == nil || IsNil(o.Timestamp) { + var ret string + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetTimestampOk() (*string, bool) { + if o == nil || IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasTimestamp() bool { + if o != nil && !IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field. +func (o *EnvironmentDataForArray) SetTimestamp(v string) { + o.Timestamp = &v +} + +// GetZone returns the Zone field value if set, zero value otherwise. +func (o *EnvironmentDataForArray) GetZone() string { + if o == nil || IsNil(o.Zone) { + var ret string + return ret + } + return *o.Zone +} + +// GetZoneOk returns a tuple with the Zone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataForArray) GetZoneOk() (*string, bool) { + if o == nil || IsNil(o.Zone) { + return nil, false + } + return o.Zone, true +} + +// HasZone returns a boolean if a field has been set. +func (o *EnvironmentDataForArray) HasZone() bool { + if o != nil && !IsNil(o.Zone) { + return true + } + + return false +} + +// SetZone gets a reference to the given string and assigns it to the Zone field. +func (o *EnvironmentDataForArray) SetZone(v string) { + o.Zone = &v +} + +func (o EnvironmentDataForArray) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentDataForArray) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Cabinet) { + toSerialize["cabinet"] = o.Cabinet + } + if !IsNil(o.Cage) { + toSerialize["cage"] = o.Cage + } + if !IsNil(o.Humidity) { + toSerialize["humidity"] = o.Humidity + } + if !IsNil(o.HumidityUom) { + toSerialize["humidityUom"] = o.HumidityUom + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Sensor) { + toSerialize["sensor"] = o.Sensor + } + if !IsNil(o.Temperature) { + toSerialize["temperature"] = o.Temperature + } + if !IsNil(o.TemperatureUom) { + toSerialize["temperatureUom"] = o.TemperatureUom + } + if !IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } + if !IsNil(o.Zone) { + toSerialize["zone"] = o.Zone + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentDataForArray) UnmarshalJSON(data []byte) (err error) { + varEnvironmentDataForArray := _EnvironmentDataForArray{} + + err = json.Unmarshal(data, &varEnvironmentDataForArray) + + if err != nil { + return err + } + + *o = EnvironmentDataForArray(varEnvironmentDataForArray) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "cabinet") + delete(additionalProperties, "cage") + delete(additionalProperties, "humidity") + delete(additionalProperties, "humidityUom") + delete(additionalProperties, "ibx") + delete(additionalProperties, "sensor") + delete(additionalProperties, "temperature") + delete(additionalProperties, "temperatureUom") + delete(additionalProperties, "timestamp") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentDataForArray struct { + value *EnvironmentDataForArray + isSet bool +} + +func (v NullableEnvironmentDataForArray) Get() *EnvironmentDataForArray { + return v.value +} + +func (v *NullableEnvironmentDataForArray) Set(val *EnvironmentDataForArray) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentDataForArray) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentDataForArray) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentDataForArray(val *EnvironmentDataForArray) *NullableEnvironmentDataForArray { + return &NullableEnvironmentDataForArray{value: val, isSet: true} +} + +func (v NullableEnvironmentDataForArray) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentDataForArray) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data_pay_load.go b/services/smartview/model_environment_data_pay_load.go new file mode 100644 index 00000000..7772531a --- /dev/null +++ b/services/smartview/model_environment_data_pay_load.go @@ -0,0 +1,536 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentDataPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentDataPayLoad{} + +// EnvironmentDataPayLoad struct for EnvironmentDataPayLoad +type EnvironmentDataPayLoad struct { + // account number + AccountNo *string `json:"accountNo,omitempty"` + // cabinet unique space id + Cabinet *string `json:"cabinet,omitempty"` + // cage unique space id + Cage *string `json:"cage,omitempty"` + // current humidity + Humidity *string `json:"humidity,omitempty"` + // unit of measure for humidity + HumidityUom *string `json:"humidityUom,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + // sensor id + Sensor *string `json:"sensor,omitempty"` + // current temperature + Temperature *string `json:"temperature,omitempty"` + // unit of measure for temperature values + TemperatureUom *string `json:"temperatureUom,omitempty"` + // epoch timestamp when the current reading was read + Timestamp *string `json:"timestamp,omitempty"` + // zone unique space id + Zone *string `json:"zone,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentDataPayLoad EnvironmentDataPayLoad + +// NewEnvironmentDataPayLoad instantiates a new EnvironmentDataPayLoad 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 NewEnvironmentDataPayLoad() *EnvironmentDataPayLoad { + this := EnvironmentDataPayLoad{} + return &this +} + +// NewEnvironmentDataPayLoadWithDefaults instantiates a new EnvironmentDataPayLoad 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 NewEnvironmentDataPayLoadWithDefaults() *EnvironmentDataPayLoad { + this := EnvironmentDataPayLoad{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *EnvironmentDataPayLoad) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetCabinet returns the Cabinet field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetCabinet() string { + if o == nil || IsNil(o.Cabinet) { + var ret string + return ret + } + return *o.Cabinet +} + +// GetCabinetOk returns a tuple with the Cabinet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetCabinetOk() (*string, bool) { + if o == nil || IsNil(o.Cabinet) { + return nil, false + } + return o.Cabinet, true +} + +// HasCabinet returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasCabinet() bool { + if o != nil && !IsNil(o.Cabinet) { + return true + } + + return false +} + +// SetCabinet gets a reference to the given string and assigns it to the Cabinet field. +func (o *EnvironmentDataPayLoad) SetCabinet(v string) { + o.Cabinet = &v +} + +// GetCage returns the Cage field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetCage() string { + if o == nil || IsNil(o.Cage) { + var ret string + return ret + } + return *o.Cage +} + +// GetCageOk returns a tuple with the Cage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetCageOk() (*string, bool) { + if o == nil || IsNil(o.Cage) { + return nil, false + } + return o.Cage, true +} + +// HasCage returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasCage() bool { + if o != nil && !IsNil(o.Cage) { + return true + } + + return false +} + +// SetCage gets a reference to the given string and assigns it to the Cage field. +func (o *EnvironmentDataPayLoad) SetCage(v string) { + o.Cage = &v +} + +// GetHumidity returns the Humidity field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetHumidity() string { + if o == nil || IsNil(o.Humidity) { + var ret string + return ret + } + return *o.Humidity +} + +// GetHumidityOk returns a tuple with the Humidity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetHumidityOk() (*string, bool) { + if o == nil || IsNil(o.Humidity) { + return nil, false + } + return o.Humidity, true +} + +// HasHumidity returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasHumidity() bool { + if o != nil && !IsNil(o.Humidity) { + return true + } + + return false +} + +// SetHumidity gets a reference to the given string and assigns it to the Humidity field. +func (o *EnvironmentDataPayLoad) SetHumidity(v string) { + o.Humidity = &v +} + +// GetHumidityUom returns the HumidityUom field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetHumidityUom() string { + if o == nil || IsNil(o.HumidityUom) { + var ret string + return ret + } + return *o.HumidityUom +} + +// GetHumidityUomOk returns a tuple with the HumidityUom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetHumidityUomOk() (*string, bool) { + if o == nil || IsNil(o.HumidityUom) { + return nil, false + } + return o.HumidityUom, true +} + +// HasHumidityUom returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasHumidityUom() bool { + if o != nil && !IsNil(o.HumidityUom) { + return true + } + + return false +} + +// SetHumidityUom gets a reference to the given string and assigns it to the HumidityUom field. +func (o *EnvironmentDataPayLoad) SetHumidityUom(v string) { + o.HumidityUom = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *EnvironmentDataPayLoad) SetIbx(v string) { + o.Ibx = &v +} + +// GetSensor returns the Sensor field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetSensor() string { + if o == nil || IsNil(o.Sensor) { + var ret string + return ret + } + return *o.Sensor +} + +// GetSensorOk returns a tuple with the Sensor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetSensorOk() (*string, bool) { + if o == nil || IsNil(o.Sensor) { + return nil, false + } + return o.Sensor, true +} + +// HasSensor returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasSensor() bool { + if o != nil && !IsNil(o.Sensor) { + return true + } + + return false +} + +// SetSensor gets a reference to the given string and assigns it to the Sensor field. +func (o *EnvironmentDataPayLoad) SetSensor(v string) { + o.Sensor = &v +} + +// GetTemperature returns the Temperature field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetTemperature() string { + if o == nil || IsNil(o.Temperature) { + var ret string + return ret + } + return *o.Temperature +} + +// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetTemperatureOk() (*string, bool) { + if o == nil || IsNil(o.Temperature) { + return nil, false + } + return o.Temperature, true +} + +// HasTemperature returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasTemperature() bool { + if o != nil && !IsNil(o.Temperature) { + return true + } + + return false +} + +// SetTemperature gets a reference to the given string and assigns it to the Temperature field. +func (o *EnvironmentDataPayLoad) SetTemperature(v string) { + o.Temperature = &v +} + +// GetTemperatureUom returns the TemperatureUom field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetTemperatureUom() string { + if o == nil || IsNil(o.TemperatureUom) { + var ret string + return ret + } + return *o.TemperatureUom +} + +// GetTemperatureUomOk returns a tuple with the TemperatureUom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetTemperatureUomOk() (*string, bool) { + if o == nil || IsNil(o.TemperatureUom) { + return nil, false + } + return o.TemperatureUom, true +} + +// HasTemperatureUom returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasTemperatureUom() bool { + if o != nil && !IsNil(o.TemperatureUom) { + return true + } + + return false +} + +// SetTemperatureUom gets a reference to the given string and assigns it to the TemperatureUom field. +func (o *EnvironmentDataPayLoad) SetTemperatureUom(v string) { + o.TemperatureUom = &v +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetTimestamp() string { + if o == nil || IsNil(o.Timestamp) { + var ret string + return ret + } + return *o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetTimestampOk() (*string, bool) { + if o == nil || IsNil(o.Timestamp) { + return nil, false + } + return o.Timestamp, true +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasTimestamp() bool { + if o != nil && !IsNil(o.Timestamp) { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given string and assigns it to the Timestamp field. +func (o *EnvironmentDataPayLoad) SetTimestamp(v string) { + o.Timestamp = &v +} + +// GetZone returns the Zone field value if set, zero value otherwise. +func (o *EnvironmentDataPayLoad) GetZone() string { + if o == nil || IsNil(o.Zone) { + var ret string + return ret + } + return *o.Zone +} + +// GetZoneOk returns a tuple with the Zone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataPayLoad) GetZoneOk() (*string, bool) { + if o == nil || IsNil(o.Zone) { + return nil, false + } + return o.Zone, true +} + +// HasZone returns a boolean if a field has been set. +func (o *EnvironmentDataPayLoad) HasZone() bool { + if o != nil && !IsNil(o.Zone) { + return true + } + + return false +} + +// SetZone gets a reference to the given string and assigns it to the Zone field. +func (o *EnvironmentDataPayLoad) SetZone(v string) { + o.Zone = &v +} + +func (o EnvironmentDataPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentDataPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Cabinet) { + toSerialize["cabinet"] = o.Cabinet + } + if !IsNil(o.Cage) { + toSerialize["cage"] = o.Cage + } + if !IsNil(o.Humidity) { + toSerialize["humidity"] = o.Humidity + } + if !IsNil(o.HumidityUom) { + toSerialize["humidityUom"] = o.HumidityUom + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Sensor) { + toSerialize["sensor"] = o.Sensor + } + if !IsNil(o.Temperature) { + toSerialize["temperature"] = o.Temperature + } + if !IsNil(o.TemperatureUom) { + toSerialize["temperatureUom"] = o.TemperatureUom + } + if !IsNil(o.Timestamp) { + toSerialize["timestamp"] = o.Timestamp + } + if !IsNil(o.Zone) { + toSerialize["zone"] = o.Zone + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentDataPayLoad) UnmarshalJSON(data []byte) (err error) { + varEnvironmentDataPayLoad := _EnvironmentDataPayLoad{} + + err = json.Unmarshal(data, &varEnvironmentDataPayLoad) + + if err != nil { + return err + } + + *o = EnvironmentDataPayLoad(varEnvironmentDataPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "cabinet") + delete(additionalProperties, "cage") + delete(additionalProperties, "humidity") + delete(additionalProperties, "humidityUom") + delete(additionalProperties, "ibx") + delete(additionalProperties, "sensor") + delete(additionalProperties, "temperature") + delete(additionalProperties, "temperatureUom") + delete(additionalProperties, "timestamp") + delete(additionalProperties, "zone") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentDataPayLoad struct { + value *EnvironmentDataPayLoad + isSet bool +} + +func (v NullableEnvironmentDataPayLoad) Get() *EnvironmentDataPayLoad { + return v.value +} + +func (v *NullableEnvironmentDataPayLoad) Set(val *EnvironmentDataPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentDataPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentDataPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentDataPayLoad(val *EnvironmentDataPayLoad) *NullableEnvironmentDataPayLoad { + return &NullableEnvironmentDataPayLoad{value: val, isSet: true} +} + +func (v NullableEnvironmentDataPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentDataPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data_response.go b/services/smartview/model_environment_data_response.go new file mode 100644 index 00000000..6b5d7468 --- /dev/null +++ b/services/smartview/model_environment_data_response.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentDataResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentDataResponse{} + +// EnvironmentDataResponse struct for EnvironmentDataResponse +type EnvironmentDataResponse struct { + PayLoad *EnvironmentDataResponsePayLoad `json:"payLoad,omitempty"` + Status *EnvironmentDataResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentDataResponse EnvironmentDataResponse + +// NewEnvironmentDataResponse instantiates a new EnvironmentDataResponse 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 NewEnvironmentDataResponse() *EnvironmentDataResponse { + this := EnvironmentDataResponse{} + return &this +} + +// NewEnvironmentDataResponseWithDefaults instantiates a new EnvironmentDataResponse 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 NewEnvironmentDataResponseWithDefaults() *EnvironmentDataResponse { + this := EnvironmentDataResponse{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *EnvironmentDataResponse) GetPayLoad() EnvironmentDataResponsePayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret EnvironmentDataResponsePayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponse) GetPayLoadOk() (*EnvironmentDataResponsePayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *EnvironmentDataResponse) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given EnvironmentDataResponsePayLoad and assigns it to the PayLoad field. +func (o *EnvironmentDataResponse) SetPayLoad(v EnvironmentDataResponsePayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *EnvironmentDataResponse) GetStatus() EnvironmentDataResponseStatus { + if o == nil || IsNil(o.Status) { + var ret EnvironmentDataResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponse) GetStatusOk() (*EnvironmentDataResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *EnvironmentDataResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given EnvironmentDataResponseStatus and assigns it to the Status field. +func (o *EnvironmentDataResponse) SetStatus(v EnvironmentDataResponseStatus) { + o.Status = &v +} + +func (o EnvironmentDataResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentDataResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentDataResponse) UnmarshalJSON(data []byte) (err error) { + varEnvironmentDataResponse := _EnvironmentDataResponse{} + + err = json.Unmarshal(data, &varEnvironmentDataResponse) + + if err != nil { + return err + } + + *o = EnvironmentDataResponse(varEnvironmentDataResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentDataResponse struct { + value *EnvironmentDataResponse + isSet bool +} + +func (v NullableEnvironmentDataResponse) Get() *EnvironmentDataResponse { + return v.value +} + +func (v *NullableEnvironmentDataResponse) Set(val *EnvironmentDataResponse) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentDataResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentDataResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentDataResponse(val *EnvironmentDataResponse) *NullableEnvironmentDataResponse { + return &NullableEnvironmentDataResponse{value: val, isSet: true} +} + +func (v NullableEnvironmentDataResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentDataResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data_response_pay_load.go b/services/smartview/model_environment_data_response_pay_load.go new file mode 100644 index 00000000..577ffb20 --- /dev/null +++ b/services/smartview/model_environment_data_response_pay_load.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentDataResponsePayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentDataResponsePayLoad{} + +// EnvironmentDataResponsePayLoad struct for EnvironmentDataResponsePayLoad +type EnvironmentDataResponsePayLoad struct { + Data []EnvironmentDataForArray `json:"data,omitempty"` + // total number of data values + TotalCount *int32 `json:"totalCount,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentDataResponsePayLoad EnvironmentDataResponsePayLoad + +// NewEnvironmentDataResponsePayLoad instantiates a new EnvironmentDataResponsePayLoad 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 NewEnvironmentDataResponsePayLoad() *EnvironmentDataResponsePayLoad { + this := EnvironmentDataResponsePayLoad{} + return &this +} + +// NewEnvironmentDataResponsePayLoadWithDefaults instantiates a new EnvironmentDataResponsePayLoad 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 NewEnvironmentDataResponsePayLoadWithDefaults() *EnvironmentDataResponsePayLoad { + this := EnvironmentDataResponsePayLoad{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *EnvironmentDataResponsePayLoad) GetData() []EnvironmentDataForArray { + if o == nil || IsNil(o.Data) { + var ret []EnvironmentDataForArray + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponsePayLoad) GetDataOk() ([]EnvironmentDataForArray, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *EnvironmentDataResponsePayLoad) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []EnvironmentDataForArray and assigns it to the Data field. +func (o *EnvironmentDataResponsePayLoad) SetData(v []EnvironmentDataForArray) { + o.Data = v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *EnvironmentDataResponsePayLoad) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponsePayLoad) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *EnvironmentDataResponsePayLoad) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *EnvironmentDataResponsePayLoad) SetTotalCount(v int32) { + o.TotalCount = &v +} + +func (o EnvironmentDataResponsePayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentDataResponsePayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.TotalCount) { + toSerialize["totalCount"] = o.TotalCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentDataResponsePayLoad) UnmarshalJSON(data []byte) (err error) { + varEnvironmentDataResponsePayLoad := _EnvironmentDataResponsePayLoad{} + + err = json.Unmarshal(data, &varEnvironmentDataResponsePayLoad) + + if err != nil { + return err + } + + *o = EnvironmentDataResponsePayLoad(varEnvironmentDataResponsePayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "totalCount") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentDataResponsePayLoad struct { + value *EnvironmentDataResponsePayLoad + isSet bool +} + +func (v NullableEnvironmentDataResponsePayLoad) Get() *EnvironmentDataResponsePayLoad { + return v.value +} + +func (v *NullableEnvironmentDataResponsePayLoad) Set(val *EnvironmentDataResponsePayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentDataResponsePayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentDataResponsePayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentDataResponsePayLoad(val *EnvironmentDataResponsePayLoad) *NullableEnvironmentDataResponsePayLoad { + return &NullableEnvironmentDataResponsePayLoad{value: val, isSet: true} +} + +func (v NullableEnvironmentDataResponsePayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentDataResponsePayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data_response_status.go b/services/smartview/model_environment_data_response_status.go new file mode 100644 index 00000000..621413cb --- /dev/null +++ b/services/smartview/model_environment_data_response_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentDataResponseStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentDataResponseStatus{} + +// EnvironmentDataResponseStatus struct for EnvironmentDataResponseStatus +type EnvironmentDataResponseStatus struct { + // [Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentDataResponseStatus EnvironmentDataResponseStatus + +// NewEnvironmentDataResponseStatus instantiates a new EnvironmentDataResponseStatus 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 NewEnvironmentDataResponseStatus() *EnvironmentDataResponseStatus { + this := EnvironmentDataResponseStatus{} + return &this +} + +// NewEnvironmentDataResponseStatusWithDefaults instantiates a new EnvironmentDataResponseStatus 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 NewEnvironmentDataResponseStatusWithDefaults() *EnvironmentDataResponseStatus { + this := EnvironmentDataResponseStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *EnvironmentDataResponseStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponseStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *EnvironmentDataResponseStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *EnvironmentDataResponseStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *EnvironmentDataResponseStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponseStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *EnvironmentDataResponseStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *EnvironmentDataResponseStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *EnvironmentDataResponseStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataResponseStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *EnvironmentDataResponseStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *EnvironmentDataResponseStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o EnvironmentDataResponseStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentDataResponseStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentDataResponseStatus) UnmarshalJSON(data []byte) (err error) { + varEnvironmentDataResponseStatus := _EnvironmentDataResponseStatus{} + + err = json.Unmarshal(data, &varEnvironmentDataResponseStatus) + + if err != nil { + return err + } + + *o = EnvironmentDataResponseStatus(varEnvironmentDataResponseStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentDataResponseStatus struct { + value *EnvironmentDataResponseStatus + isSet bool +} + +func (v NullableEnvironmentDataResponseStatus) Get() *EnvironmentDataResponseStatus { + return v.value +} + +func (v *NullableEnvironmentDataResponseStatus) Set(val *EnvironmentDataResponseStatus) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentDataResponseStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentDataResponseStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentDataResponseStatus(val *EnvironmentDataResponseStatus) *NullableEnvironmentDataResponseStatus { + return &NullableEnvironmentDataResponseStatus{value: val, isSet: true} +} + +func (v NullableEnvironmentDataResponseStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentDataResponseStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_data_status.go b/services/smartview/model_environment_data_status.go new file mode 100644 index 00000000..4f44473b --- /dev/null +++ b/services/smartview/model_environment_data_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the EnvironmentDataStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentDataStatus{} + +// EnvironmentDataStatus struct for EnvironmentDataStatus +type EnvironmentDataStatus struct { + // [Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentDataStatus EnvironmentDataStatus + +// NewEnvironmentDataStatus instantiates a new EnvironmentDataStatus 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 NewEnvironmentDataStatus() *EnvironmentDataStatus { + this := EnvironmentDataStatus{} + return &this +} + +// NewEnvironmentDataStatusWithDefaults instantiates a new EnvironmentDataStatus 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 NewEnvironmentDataStatusWithDefaults() *EnvironmentDataStatus { + this := EnvironmentDataStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *EnvironmentDataStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *EnvironmentDataStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *EnvironmentDataStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *EnvironmentDataStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *EnvironmentDataStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *EnvironmentDataStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *EnvironmentDataStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentDataStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *EnvironmentDataStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *EnvironmentDataStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o EnvironmentDataStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentDataStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentDataStatus) UnmarshalJSON(data []byte) (err error) { + varEnvironmentDataStatus := _EnvironmentDataStatus{} + + err = json.Unmarshal(data, &varEnvironmentDataStatus) + + if err != nil { + return err + } + + *o = EnvironmentDataStatus(varEnvironmentDataStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentDataStatus struct { + value *EnvironmentDataStatus + isSet bool +} + +func (v NullableEnvironmentDataStatus) Get() *EnvironmentDataStatus { + return v.value +} + +func (v *NullableEnvironmentDataStatus) Set(val *EnvironmentDataStatus) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentDataStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentDataStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentDataStatus(val *EnvironmentDataStatus) *NullableEnvironmentDataStatus { + return &NullableEnvironmentDataStatus{value: val, isSet: true} +} + +func (v NullableEnvironmentDataStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentDataStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_message_data.go b/services/smartview/model_environment_message_data.go new file mode 100644 index 00000000..20905313 --- /dev/null +++ b/services/smartview/model_environment_message_data.go @@ -0,0 +1,200 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentMessageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentMessageData{} + +// EnvironmentMessageData environment message data +type EnvironmentMessageData struct { + Data Environment `json:"data"` + // message type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentMessageData EnvironmentMessageData + +// NewEnvironmentMessageData instantiates a new EnvironmentMessageData 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 NewEnvironmentMessageData(data Environment, type_ string) *EnvironmentMessageData { + this := EnvironmentMessageData{} + this.Data = data + this.Type = type_ + return &this +} + +// NewEnvironmentMessageDataWithDefaults instantiates a new EnvironmentMessageData 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 NewEnvironmentMessageDataWithDefaults() *EnvironmentMessageData { + this := EnvironmentMessageData{} + var type_ string = "environmental" + this.Type = type_ + return &this +} + +// GetData returns the Data field value +func (o *EnvironmentMessageData) GetData() Environment { + if o == nil { + var ret Environment + 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 *EnvironmentMessageData) GetDataOk() (*Environment, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *EnvironmentMessageData) SetData(v Environment) { + o.Data = v +} + +// GetType returns the Type field value +func (o *EnvironmentMessageData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *EnvironmentMessageData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *EnvironmentMessageData) SetType(v string) { + o.Type = v +} + +func (o EnvironmentMessageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentMessageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentMessageData) 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", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varEnvironmentMessageData := _EnvironmentMessageData{} + + err = json.Unmarshal(data, &varEnvironmentMessageData) + + if err != nil { + return err + } + + *o = EnvironmentMessageData(varEnvironmentMessageData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentMessageData struct { + value *EnvironmentMessageData + isSet bool +} + +func (v NullableEnvironmentMessageData) Get() *EnvironmentMessageData { + return v.value +} + +func (v *NullableEnvironmentMessageData) Set(val *EnvironmentMessageData) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentMessageData) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentMessageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentMessageData(val *EnvironmentMessageData) *NullableEnvironmentMessageData { + return &NullableEnvironmentMessageData{value: val, isSet: true} +} + +func (v NullableEnvironmentMessageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentMessageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_tag_details.go b/services/smartview/model_environment_tag_details.go new file mode 100644 index 00000000..781c5a23 --- /dev/null +++ b/services/smartview/model_environment_tag_details.go @@ -0,0 +1,207 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentTagDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentTagDetails{} + +// EnvironmentTagDetails tag details +type EnvironmentTagDetails struct { + // tag display name + DisplayName *string `json:"displayName,omitempty"` + // tag id + Id string `json:"id"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentTagDetails EnvironmentTagDetails + +// NewEnvironmentTagDetails instantiates a new EnvironmentTagDetails 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 NewEnvironmentTagDetails(id string) *EnvironmentTagDetails { + this := EnvironmentTagDetails{} + this.Id = id + return &this +} + +// NewEnvironmentTagDetailsWithDefaults instantiates a new EnvironmentTagDetails 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 NewEnvironmentTagDetailsWithDefaults() *EnvironmentTagDetails { + this := EnvironmentTagDetails{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *EnvironmentTagDetails) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EnvironmentTagDetails) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *EnvironmentTagDetails) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *EnvironmentTagDetails) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value +func (o *EnvironmentTagDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *EnvironmentTagDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EnvironmentTagDetails) SetId(v string) { + o.Id = v +} + +func (o EnvironmentTagDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentTagDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentTagDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + 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) + } + } + + varEnvironmentTagDetails := _EnvironmentTagDetails{} + + err = json.Unmarshal(data, &varEnvironmentTagDetails) + + if err != nil { + return err + } + + *o = EnvironmentTagDetails(varEnvironmentTagDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "displayName") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentTagDetails struct { + value *EnvironmentTagDetails + isSet bool +} + +func (v NullableEnvironmentTagDetails) Get() *EnvironmentTagDetails { + return v.value +} + +func (v *NullableEnvironmentTagDetails) Set(val *EnvironmentTagDetails) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentTagDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentTagDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentTagDetails(val *EnvironmentTagDetails) *NullableEnvironmentTagDetails { + return &NullableEnvironmentTagDetails{value: val, isSet: true} +} + +func (v NullableEnvironmentTagDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentTagDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environment_value_with_unit.go b/services/smartview/model_environment_value_with_unit.go new file mode 100644 index 00000000..4e394b07 --- /dev/null +++ b/services/smartview/model_environment_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the EnvironmentValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EnvironmentValueWithUnit{} + +// EnvironmentValueWithUnit reading details +type EnvironmentValueWithUnit struct { + // Environmental reading unit + Unit string `json:"unit"` + // Environmental reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _EnvironmentValueWithUnit EnvironmentValueWithUnit + +// NewEnvironmentValueWithUnit instantiates a new EnvironmentValueWithUnit 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 NewEnvironmentValueWithUnit(unit string, value string) *EnvironmentValueWithUnit { + this := EnvironmentValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewEnvironmentValueWithUnitWithDefaults instantiates a new EnvironmentValueWithUnit 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 NewEnvironmentValueWithUnitWithDefaults() *EnvironmentValueWithUnit { + this := EnvironmentValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *EnvironmentValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *EnvironmentValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *EnvironmentValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *EnvironmentValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *EnvironmentValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *EnvironmentValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o EnvironmentValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EnvironmentValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *EnvironmentValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varEnvironmentValueWithUnit := _EnvironmentValueWithUnit{} + + err = json.Unmarshal(data, &varEnvironmentValueWithUnit) + + if err != nil { + return err + } + + *o = EnvironmentValueWithUnit(varEnvironmentValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmentValueWithUnit struct { + value *EnvironmentValueWithUnit + isSet bool +} + +func (v NullableEnvironmentValueWithUnit) Get() *EnvironmentValueWithUnit { + return v.value +} + +func (v *NullableEnvironmentValueWithUnit) Set(val *EnvironmentValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentValueWithUnit(val *EnvironmentValueWithUnit) *NullableEnvironmentValueWithUnit { + return &NullableEnvironmentValueWithUnit{value: val, isSet: true} +} + +func (v NullableEnvironmentValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environmental.go b/services/smartview/model_environmental.go new file mode 100644 index 00000000..59e06fa2 --- /dev/null +++ b/services/smartview/model_environmental.go @@ -0,0 +1,235 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Environmental type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Environmental{} + +// Environmental Environmental messages provide the latest temperature and humidity readings at the IBX and zone levels. +type Environmental struct { + AccountNumber string `json:"accountNumber"` + Ibx []string `json:"ibx"` + // This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided. + Level []EnvironmentalLevelInner `json:"level,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Environmental Environmental + +// NewEnvironmental instantiates a new Environmental 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 NewEnvironmental(accountNumber string, ibx []string) *Environmental { + this := Environmental{} + this.AccountNumber = accountNumber + this.Ibx = ibx + return &this +} + +// NewEnvironmentalWithDefaults instantiates a new Environmental 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 NewEnvironmentalWithDefaults() *Environmental { + this := Environmental{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value +func (o *Environmental) GetAccountNumber() string { + if o == nil { + var ret string + return ret + } + + return o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value +// and a boolean to check if the value has been set. +func (o *Environmental) GetAccountNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountNumber, true +} + +// SetAccountNumber sets field value +func (o *Environmental) SetAccountNumber(v string) { + o.AccountNumber = v +} + +// GetIbx returns the Ibx field value +func (o *Environmental) GetIbx() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *Environmental) GetIbxOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ibx, true +} + +// SetIbx sets field value +func (o *Environmental) SetIbx(v []string) { + o.Ibx = v +} + +// GetLevel returns the Level field value if set, zero value otherwise. +func (o *Environmental) GetLevel() []EnvironmentalLevelInner { + if o == nil || IsNil(o.Level) { + var ret []EnvironmentalLevelInner + return ret + } + return o.Level +} + +// GetLevelOk returns a tuple with the Level field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Environmental) GetLevelOk() ([]EnvironmentalLevelInner, bool) { + if o == nil || IsNil(o.Level) { + return nil, false + } + return o.Level, true +} + +// HasLevel returns a boolean if a field has been set. +func (o *Environmental) HasLevel() bool { + if o != nil && !IsNil(o.Level) { + return true + } + + return false +} + +// SetLevel gets a reference to the given []EnvironmentalLevelInner and assigns it to the Level field. +func (o *Environmental) SetLevel(v []EnvironmentalLevelInner) { + o.Level = v +} + +func (o Environmental) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Environmental) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountNumber"] = o.AccountNumber + toSerialize["ibx"] = o.Ibx + if !IsNil(o.Level) { + toSerialize["level"] = o.Level + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Environmental) 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{ + "accountNumber", + "ibx", + } + + 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) + } + } + + varEnvironmental := _Environmental{} + + err = json.Unmarshal(data, &varEnvironmental) + + if err != nil { + return err + } + + *o = Environmental(varEnvironmental) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "ibx") + delete(additionalProperties, "level") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableEnvironmental struct { + value *Environmental + isSet bool +} + +func (v NullableEnvironmental) Get() *Environmental { + return v.value +} + +func (v *NullableEnvironmental) Set(val *Environmental) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmental) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmental) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmental(val *Environmental) *NullableEnvironmental { + return &NullableEnvironmental{value: val, isSet: true} +} + +func (v NullableEnvironmental) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmental) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_environmental_level_inner.go b/services/smartview/model_environmental_level_inner.go new file mode 100644 index 00000000..d3748812 --- /dev/null +++ b/services/smartview/model_environmental_level_inner.go @@ -0,0 +1,113 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// EnvironmentalLevelInner the model 'EnvironmentalLevelInner' +type EnvironmentalLevelInner string + +// List of Environmental_level_inner +const ( + ENVIRONMENTALLEVELINNER_ZONE EnvironmentalLevelInner = "ZONE" + ENVIRONMENTALLEVELINNER_IBX EnvironmentalLevelInner = "IBX" + ENVIRONMENTALLEVELINNER_CAGE EnvironmentalLevelInner = "CAGE" +) + +// All allowed values of EnvironmentalLevelInner enum +var AllowedEnvironmentalLevelInnerEnumValues = []EnvironmentalLevelInner{ + "ZONE", + "IBX", + "CAGE", +} + +func (v *EnvironmentalLevelInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EnvironmentalLevelInner(value) + for _, existing := range AllowedEnvironmentalLevelInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EnvironmentalLevelInner", value) +} + +// NewEnvironmentalLevelInnerFromValue returns a pointer to a valid EnvironmentalLevelInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEnvironmentalLevelInnerFromValue(v string) (*EnvironmentalLevelInner, error) { + ev := EnvironmentalLevelInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EnvironmentalLevelInner: valid values are %v", v, AllowedEnvironmentalLevelInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EnvironmentalLevelInner) IsValid() bool { + for _, existing := range AllowedEnvironmentalLevelInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Environmental_level_inner value +func (v EnvironmentalLevelInner) Ptr() *EnvironmentalLevelInner { + return &v +} + +type NullableEnvironmentalLevelInner struct { + value *EnvironmentalLevelInner + isSet bool +} + +func (v NullableEnvironmentalLevelInner) Get() *EnvironmentalLevelInner { + return v.value +} + +func (v *NullableEnvironmentalLevelInner) Set(val *EnvironmentalLevelInner) { + v.value = val + v.isSet = true +} + +func (v NullableEnvironmentalLevelInner) IsSet() bool { + return v.isSet +} + +func (v *NullableEnvironmentalLevelInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEnvironmentalLevelInner(val *EnvironmentalLevelInner) *NullableEnvironmentalLevelInner { + return &NullableEnvironmentalLevelInner{value: val, isSet: true} +} + +func (v NullableEnvironmentalLevelInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEnvironmentalLevelInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_error.go b/services/smartview/model_error.go new file mode 100644 index 00000000..c7650e4f --- /dev/null +++ b/services/smartview/model_error.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Error type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Error{} + +// Error struct for Error +type Error struct { + PayLoad map[string]interface{} `json:"payLoad,omitempty"` + Status *ErrorStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Error Error + +// NewError instantiates a new Error 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 NewError() *Error { + this := Error{} + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *Error) GetPayLoad() map[string]interface{} { + if o == nil || IsNil(o.PayLoad) { + var ret map[string]interface{} + return ret + } + return o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetPayLoadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PayLoad) { + return map[string]interface{}{}, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *Error) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given map[string]interface{} and assigns it to the PayLoad field. +func (o *Error) SetPayLoad(v map[string]interface{}) { + o.PayLoad = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Error) GetStatus() ErrorStatus { + if o == nil || IsNil(o.Status) { + var ret ErrorStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Error) GetStatusOk() (*ErrorStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Error) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ErrorStatus and assigns it to the Status field. +func (o *Error) SetStatus(v ErrorStatus) { + o.Status = &v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Error) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Error) UnmarshalJSON(data []byte) (err error) { + varError := _Error{} + + err = json.Unmarshal(data, &varError) + + if err != nil { + return err + } + + *o = Error(varError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_error_status.go b/services/smartview/model_error_status.go new file mode 100644 index 00000000..ba8c16f3 --- /dev/null +++ b/services/smartview/model_error_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the ErrorStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorStatus{} + +// ErrorStatus struct for ErrorStatus +type ErrorStatus struct { + // [Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *ErrorStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ErrorStatus ErrorStatus + +// NewErrorStatus instantiates a new ErrorStatus 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 NewErrorStatus() *ErrorStatus { + this := ErrorStatus{} + return &this +} + +// NewErrorStatusWithDefaults instantiates a new ErrorStatus 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 NewErrorStatusWithDefaults() *ErrorStatus { + this := ErrorStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *ErrorStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *ErrorStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *ErrorStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *ErrorStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *ErrorStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *ErrorStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *ErrorStatus) GetType() ErrorStatusType { + if o == nil || IsNil(o.Type) { + var ret ErrorStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorStatus) GetTypeOk() (*ErrorStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ErrorStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given ErrorStatusType and assigns it to the Type field. +func (o *ErrorStatus) SetType(v ErrorStatusType) { + o.Type = &v +} + +func (o ErrorStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ErrorStatus) UnmarshalJSON(data []byte) (err error) { + varErrorStatus := _ErrorStatus{} + + err = json.Unmarshal(data, &varErrorStatus) + + if err != nil { + return err + } + + *o = ErrorStatus(varErrorStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableErrorStatus struct { + value *ErrorStatus + isSet bool +} + +func (v NullableErrorStatus) Get() *ErrorStatus { + return v.value +} + +func (v *NullableErrorStatus) Set(val *ErrorStatus) { + v.value = val + v.isSet = true +} + +func (v NullableErrorStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorStatus(val *ErrorStatus) *NullableErrorStatus { + return &NullableErrorStatus{value: val, isSet: true} +} + +func (v NullableErrorStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_error_status_type.go b/services/smartview/model_error_status_type.go new file mode 100644 index 00000000..1683dd38 --- /dev/null +++ b/services/smartview/model_error_status_type.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// ErrorStatusType [INFO|ERROR] are the possible values +type ErrorStatusType string + +// List of Error_status_type +const ( + ERRORSTATUSTYPE_ERROR ErrorStatusType = "ERROR" +) + +// All allowed values of ErrorStatusType enum +var AllowedErrorStatusTypeEnumValues = []ErrorStatusType{ + "ERROR", +} + +func (v *ErrorStatusType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ErrorStatusType(value) + for _, existing := range AllowedErrorStatusTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ErrorStatusType", value) +} + +// NewErrorStatusTypeFromValue returns a pointer to a valid ErrorStatusType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewErrorStatusTypeFromValue(v string) (*ErrorStatusType, error) { + ev := ErrorStatusType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ErrorStatusType: valid values are %v", v, AllowedErrorStatusTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ErrorStatusType) IsValid() bool { + for _, existing := range AllowedErrorStatusTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Error_status_type value +func (v ErrorStatusType) Ptr() *ErrorStatusType { + return &v +} + +type NullableErrorStatusType struct { + value *ErrorStatusType + isSet bool +} + +func (v NullableErrorStatusType) Get() *ErrorStatusType { + return v.value +} + +func (v *NullableErrorStatusType) Set(val *ErrorStatusType) { + v.value = val + v.isSet = true +} + +func (v NullableErrorStatusType) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorStatusType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorStatusType(val *ErrorStatusType) *NullableErrorStatusType { + return &NullableErrorStatusType{value: val, isSet: true} +} + +func (v NullableErrorStatusType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorStatusType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_generic_request.go b/services/smartview/model_generic_request.go new file mode 100644 index 00000000..eed7afe8 --- /dev/null +++ b/services/smartview/model_generic_request.go @@ -0,0 +1,232 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the GenericRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GenericRequest{} + +// GenericRequest struct for GenericRequest +type GenericRequest struct { + // customer account number + AccountNo *string `json:"accountNo,omitempty"` + // asset classification + Classification *string `json:"classification,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GenericRequest GenericRequest + +// NewGenericRequest instantiates a new GenericRequest 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 NewGenericRequest() *GenericRequest { + this := GenericRequest{} + return &this +} + +// NewGenericRequestWithDefaults instantiates a new GenericRequest 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 NewGenericRequestWithDefaults() *GenericRequest { + this := GenericRequest{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *GenericRequest) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericRequest) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *GenericRequest) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *GenericRequest) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetClassification returns the Classification field value if set, zero value otherwise. +func (o *GenericRequest) GetClassification() string { + if o == nil || IsNil(o.Classification) { + var ret string + return ret + } + return *o.Classification +} + +// GetClassificationOk returns a tuple with the Classification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericRequest) GetClassificationOk() (*string, bool) { + if o == nil || IsNil(o.Classification) { + return nil, false + } + return o.Classification, true +} + +// HasClassification returns a boolean if a field has been set. +func (o *GenericRequest) HasClassification() bool { + if o != nil && !IsNil(o.Classification) { + return true + } + + return false +} + +// SetClassification gets a reference to the given string and assigns it to the Classification field. +func (o *GenericRequest) SetClassification(v string) { + o.Classification = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *GenericRequest) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericRequest) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *GenericRequest) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *GenericRequest) SetIbx(v string) { + o.Ibx = &v +} + +func (o GenericRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenericRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Classification) { + toSerialize["classification"] = o.Classification + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GenericRequest) UnmarshalJSON(data []byte) (err error) { + varGenericRequest := _GenericRequest{} + + err = json.Unmarshal(data, &varGenericRequest) + + if err != nil { + return err + } + + *o = GenericRequest(varGenericRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "classification") + delete(additionalProperties, "ibx") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGenericRequest struct { + value *GenericRequest + isSet bool +} + +func (v NullableGenericRequest) Get() *GenericRequest { + return v.value +} + +func (v *NullableGenericRequest) Set(val *GenericRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGenericRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGenericRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenericRequest(val *GenericRequest) *NullableGenericRequest { + return &NullableGenericRequest{value: val, isSet: true} +} + +func (v NullableGenericRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenericRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_get_asset_classification_parameter.go b/services/smartview/model_get_asset_classification_parameter.go new file mode 100644 index 00000000..c69f106c --- /dev/null +++ b/services/smartview/model_get_asset_classification_parameter.go @@ -0,0 +1,111 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// GetAssetClassificationParameter the model 'GetAssetClassificationParameter' +type GetAssetClassificationParameter string + +// List of getAsset_classification_parameter +const ( + GETASSETCLASSIFICATIONPARAMETER_ELECTRICAL GetAssetClassificationParameter = "Electrical" + GETASSETCLASSIFICATIONPARAMETER_MECHANICAL GetAssetClassificationParameter = "Mechanical" +) + +// All allowed values of GetAssetClassificationParameter enum +var AllowedGetAssetClassificationParameterEnumValues = []GetAssetClassificationParameter{ + "Electrical", + "Mechanical", +} + +func (v *GetAssetClassificationParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := GetAssetClassificationParameter(value) + for _, existing := range AllowedGetAssetClassificationParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid GetAssetClassificationParameter", value) +} + +// NewGetAssetClassificationParameterFromValue returns a pointer to a valid GetAssetClassificationParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewGetAssetClassificationParameterFromValue(v string) (*GetAssetClassificationParameter, error) { + ev := GetAssetClassificationParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for GetAssetClassificationParameter: valid values are %v", v, AllowedGetAssetClassificationParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v GetAssetClassificationParameter) IsValid() bool { + for _, existing := range AllowedGetAssetClassificationParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to getAsset_classification_parameter value +func (v GetAssetClassificationParameter) Ptr() *GetAssetClassificationParameter { + return &v +} + +type NullableGetAssetClassificationParameter struct { + value *GetAssetClassificationParameter + isSet bool +} + +func (v NullableGetAssetClassificationParameter) Get() *GetAssetClassificationParameter { + return v.value +} + +func (v *NullableGetAssetClassificationParameter) Set(val *GetAssetClassificationParameter) { + v.value = val + v.isSet = true +} + +func (v NullableGetAssetClassificationParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAssetClassificationParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAssetClassificationParameter(val *GetAssetClassificationParameter) *NullableGetAssetClassificationParameter { + return &NullableGetAssetClassificationParameter{value: val, isSet: true} +} + +func (v NullableGetAssetClassificationParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAssetClassificationParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_get_subscription_data_message_types_parameter_inner.go b/services/smartview/model_get_subscription_data_message_types_parameter_inner.go new file mode 100644 index 00000000..00bcf213 --- /dev/null +++ b/services/smartview/model_get_subscription_data_message_types_parameter_inner.go @@ -0,0 +1,119 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// GetSubscriptionDataMessageTypesParameterInner the model 'GetSubscriptionDataMessageTypesParameterInner' +type GetSubscriptionDataMessageTypesParameterInner string + +// List of getSubscriptionData_messageTypes_parameter_inner +const ( + GETSUBSCRIPTIONDATAMESSAGETYPESPARAMETERINNER_ALARM GetSubscriptionDataMessageTypesParameterInner = "ALARM" + GETSUBSCRIPTIONDATAMESSAGETYPESPARAMETERINNER_ALERT GetSubscriptionDataMessageTypesParameterInner = "ALERT" + GETSUBSCRIPTIONDATAMESSAGETYPESPARAMETERINNER_ENVIRONMENTAL GetSubscriptionDataMessageTypesParameterInner = "ENVIRONMENTAL" + GETSUBSCRIPTIONDATAMESSAGETYPESPARAMETERINNER_METERED_POWER GetSubscriptionDataMessageTypesParameterInner = "METERED_POWER" + GETSUBSCRIPTIONDATAMESSAGETYPESPARAMETERINNER_POWER GetSubscriptionDataMessageTypesParameterInner = "POWER" + GETSUBSCRIPTIONDATAMESSAGETYPESPARAMETERINNER_TAG_POINT GetSubscriptionDataMessageTypesParameterInner = "TAG_POINT" +) + +// All allowed values of GetSubscriptionDataMessageTypesParameterInner enum +var AllowedGetSubscriptionDataMessageTypesParameterInnerEnumValues = []GetSubscriptionDataMessageTypesParameterInner{ + "ALARM", + "ALERT", + "ENVIRONMENTAL", + "METERED_POWER", + "POWER", + "TAG_POINT", +} + +func (v *GetSubscriptionDataMessageTypesParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := GetSubscriptionDataMessageTypesParameterInner(value) + for _, existing := range AllowedGetSubscriptionDataMessageTypesParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid GetSubscriptionDataMessageTypesParameterInner", value) +} + +// NewGetSubscriptionDataMessageTypesParameterInnerFromValue returns a pointer to a valid GetSubscriptionDataMessageTypesParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewGetSubscriptionDataMessageTypesParameterInnerFromValue(v string) (*GetSubscriptionDataMessageTypesParameterInner, error) { + ev := GetSubscriptionDataMessageTypesParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for GetSubscriptionDataMessageTypesParameterInner: valid values are %v", v, AllowedGetSubscriptionDataMessageTypesParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v GetSubscriptionDataMessageTypesParameterInner) IsValid() bool { + for _, existing := range AllowedGetSubscriptionDataMessageTypesParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to getSubscriptionData_messageTypes_parameter_inner value +func (v GetSubscriptionDataMessageTypesParameterInner) Ptr() *GetSubscriptionDataMessageTypesParameterInner { + return &v +} + +type NullableGetSubscriptionDataMessageTypesParameterInner struct { + value *GetSubscriptionDataMessageTypesParameterInner + isSet bool +} + +func (v NullableGetSubscriptionDataMessageTypesParameterInner) Get() *GetSubscriptionDataMessageTypesParameterInner { + return v.value +} + +func (v *NullableGetSubscriptionDataMessageTypesParameterInner) Set(val *GetSubscriptionDataMessageTypesParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableGetSubscriptionDataMessageTypesParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableGetSubscriptionDataMessageTypesParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetSubscriptionDataMessageTypesParameterInner(val *GetSubscriptionDataMessageTypesParameterInner) *NullableGetSubscriptionDataMessageTypesParameterInner { + return &NullableGetSubscriptionDataMessageTypesParameterInner{value: val, isSet: true} +} + +func (v NullableGetSubscriptionDataMessageTypesParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetSubscriptionDataMessageTypesParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_hierarchy_node.go b/services/smartview/model_hierarchy_node.go new file mode 100644 index 00000000..0ff8e508 --- /dev/null +++ b/services/smartview/model_hierarchy_node.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the HierarchyNode type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HierarchyNode{} + +// HierarchyNode struct for HierarchyNode +type HierarchyNode struct { + PayLoad *HierarchyNodePayLoad `json:"payLoad,omitempty"` + Status *AssetDetailResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _HierarchyNode HierarchyNode + +// NewHierarchyNode instantiates a new HierarchyNode 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 NewHierarchyNode() *HierarchyNode { + this := HierarchyNode{} + return &this +} + +// NewHierarchyNodeWithDefaults instantiates a new HierarchyNode 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 NewHierarchyNodeWithDefaults() *HierarchyNode { + this := HierarchyNode{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *HierarchyNode) GetPayLoad() HierarchyNodePayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret HierarchyNodePayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HierarchyNode) GetPayLoadOk() (*HierarchyNodePayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *HierarchyNode) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given HierarchyNodePayLoad and assigns it to the PayLoad field. +func (o *HierarchyNode) SetPayLoad(v HierarchyNodePayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *HierarchyNode) GetStatus() AssetDetailResponseStatus { + if o == nil || IsNil(o.Status) { + var ret AssetDetailResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HierarchyNode) GetStatusOk() (*AssetDetailResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *HierarchyNode) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetDetailResponseStatus and assigns it to the Status field. +func (o *HierarchyNode) SetStatus(v AssetDetailResponseStatus) { + o.Status = &v +} + +func (o HierarchyNode) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HierarchyNode) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *HierarchyNode) UnmarshalJSON(data []byte) (err error) { + varHierarchyNode := _HierarchyNode{} + + err = json.Unmarshal(data, &varHierarchyNode) + + if err != nil { + return err + } + + *o = HierarchyNode(varHierarchyNode) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHierarchyNode struct { + value *HierarchyNode + isSet bool +} + +func (v NullableHierarchyNode) Get() *HierarchyNode { + return v.value +} + +func (v *NullableHierarchyNode) Set(val *HierarchyNode) { + v.value = val + v.isSet = true +} + +func (v NullableHierarchyNode) IsSet() bool { + return v.isSet +} + +func (v *NullableHierarchyNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHierarchyNode(val *HierarchyNode) *NullableHierarchyNode { + return &NullableHierarchyNode{value: val, isSet: true} +} + +func (v NullableHierarchyNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHierarchyNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_hierarchy_node_pay_load.go b/services/smartview/model_hierarchy_node_pay_load.go new file mode 100644 index 00000000..72ac63a0 --- /dev/null +++ b/services/smartview/model_hierarchy_node_pay_load.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the HierarchyNodePayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HierarchyNodePayLoad{} + +// HierarchyNodePayLoad struct for HierarchyNodePayLoad +type HierarchyNodePayLoad struct { + Cages []Cages `json:"cages,omitempty"` + Circuits []CircuitsMapWithCage `json:"circuits,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _HierarchyNodePayLoad HierarchyNodePayLoad + +// NewHierarchyNodePayLoad instantiates a new HierarchyNodePayLoad 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 NewHierarchyNodePayLoad() *HierarchyNodePayLoad { + this := HierarchyNodePayLoad{} + return &this +} + +// NewHierarchyNodePayLoadWithDefaults instantiates a new HierarchyNodePayLoad 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 NewHierarchyNodePayLoadWithDefaults() *HierarchyNodePayLoad { + this := HierarchyNodePayLoad{} + return &this +} + +// GetCages returns the Cages field value if set, zero value otherwise. +func (o *HierarchyNodePayLoad) GetCages() []Cages { + if o == nil || IsNil(o.Cages) { + var ret []Cages + return ret + } + return o.Cages +} + +// GetCagesOk returns a tuple with the Cages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HierarchyNodePayLoad) GetCagesOk() ([]Cages, bool) { + if o == nil || IsNil(o.Cages) { + return nil, false + } + return o.Cages, true +} + +// HasCages returns a boolean if a field has been set. +func (o *HierarchyNodePayLoad) HasCages() bool { + if o != nil && !IsNil(o.Cages) { + return true + } + + return false +} + +// SetCages gets a reference to the given []Cages and assigns it to the Cages field. +func (o *HierarchyNodePayLoad) SetCages(v []Cages) { + o.Cages = v +} + +// GetCircuits returns the Circuits field value if set, zero value otherwise. +func (o *HierarchyNodePayLoad) GetCircuits() []CircuitsMapWithCage { + if o == nil || IsNil(o.Circuits) { + var ret []CircuitsMapWithCage + return ret + } + return o.Circuits +} + +// GetCircuitsOk returns a tuple with the Circuits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HierarchyNodePayLoad) GetCircuitsOk() ([]CircuitsMapWithCage, bool) { + if o == nil || IsNil(o.Circuits) { + return nil, false + } + return o.Circuits, true +} + +// HasCircuits returns a boolean if a field has been set. +func (o *HierarchyNodePayLoad) HasCircuits() bool { + if o != nil && !IsNil(o.Circuits) { + return true + } + + return false +} + +// SetCircuits gets a reference to the given []CircuitsMapWithCage and assigns it to the Circuits field. +func (o *HierarchyNodePayLoad) SetCircuits(v []CircuitsMapWithCage) { + o.Circuits = v +} + +func (o HierarchyNodePayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HierarchyNodePayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cages) { + toSerialize["cages"] = o.Cages + } + if !IsNil(o.Circuits) { + toSerialize["circuits"] = o.Circuits + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *HierarchyNodePayLoad) UnmarshalJSON(data []byte) (err error) { + varHierarchyNodePayLoad := _HierarchyNodePayLoad{} + + err = json.Unmarshal(data, &varHierarchyNodePayLoad) + + if err != nil { + return err + } + + *o = HierarchyNodePayLoad(varHierarchyNodePayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cages") + delete(additionalProperties, "circuits") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHierarchyNodePayLoad struct { + value *HierarchyNodePayLoad + isSet bool +} + +func (v NullableHierarchyNodePayLoad) Get() *HierarchyNodePayLoad { + return v.value +} + +func (v *NullableHierarchyNodePayLoad) Set(val *HierarchyNodePayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableHierarchyNodePayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableHierarchyNodePayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHierarchyNodePayLoad(val *HierarchyNodePayLoad) *NullableHierarchyNodePayLoad { + return &NullableHierarchyNodePayLoad{value: val, isSet: true} +} + +func (v NullableHierarchyNodePayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHierarchyNodePayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_message_type.go b/services/smartview/model_message_type.go new file mode 100644 index 00000000..288d78d2 --- /dev/null +++ b/services/smartview/model_message_type.go @@ -0,0 +1,346 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the MessageType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MessageType{} + +// MessageType Message type for a given subscription +type MessageType struct { + // List of asset message type to subscribe + Asset []Asset `json:"asset,omitempty"` + // List of custom alert message type to subscribe + CustomAlert []CustomAlert `json:"customAlert,omitempty"` + // List of environmental message type to subscribe + Environmental []Environmental `json:"environmental,omitempty"` + // List of metered power message type to subscribe + MeteredPower []MeteredPower `json:"meteredPower,omitempty"` + // List of power message type to subscribe + Power []PowerMessage `json:"power,omitempty"` + // List of system alert message type to subscribe + SystemAlert []SystemAlert `json:"systemAlert,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MessageType MessageType + +// NewMessageType instantiates a new MessageType 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 NewMessageType() *MessageType { + this := MessageType{} + return &this +} + +// NewMessageTypeWithDefaults instantiates a new MessageType 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 NewMessageTypeWithDefaults() *MessageType { + this := MessageType{} + return &this +} + +// GetAsset returns the Asset field value if set, zero value otherwise. +func (o *MessageType) GetAsset() []Asset { + if o == nil || IsNil(o.Asset) { + var ret []Asset + return ret + } + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageType) GetAssetOk() ([]Asset, bool) { + if o == nil || IsNil(o.Asset) { + return nil, false + } + return o.Asset, true +} + +// HasAsset returns a boolean if a field has been set. +func (o *MessageType) HasAsset() bool { + if o != nil && !IsNil(o.Asset) { + return true + } + + return false +} + +// SetAsset gets a reference to the given []Asset and assigns it to the Asset field. +func (o *MessageType) SetAsset(v []Asset) { + o.Asset = v +} + +// GetCustomAlert returns the CustomAlert field value if set, zero value otherwise. +func (o *MessageType) GetCustomAlert() []CustomAlert { + if o == nil || IsNil(o.CustomAlert) { + var ret []CustomAlert + return ret + } + return o.CustomAlert +} + +// GetCustomAlertOk returns a tuple with the CustomAlert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageType) GetCustomAlertOk() ([]CustomAlert, bool) { + if o == nil || IsNil(o.CustomAlert) { + return nil, false + } + return o.CustomAlert, true +} + +// HasCustomAlert returns a boolean if a field has been set. +func (o *MessageType) HasCustomAlert() bool { + if o != nil && !IsNil(o.CustomAlert) { + return true + } + + return false +} + +// SetCustomAlert gets a reference to the given []CustomAlert and assigns it to the CustomAlert field. +func (o *MessageType) SetCustomAlert(v []CustomAlert) { + o.CustomAlert = v +} + +// GetEnvironmental returns the Environmental field value if set, zero value otherwise. +func (o *MessageType) GetEnvironmental() []Environmental { + if o == nil || IsNil(o.Environmental) { + var ret []Environmental + return ret + } + return o.Environmental +} + +// GetEnvironmentalOk returns a tuple with the Environmental field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageType) GetEnvironmentalOk() ([]Environmental, bool) { + if o == nil || IsNil(o.Environmental) { + return nil, false + } + return o.Environmental, true +} + +// HasEnvironmental returns a boolean if a field has been set. +func (o *MessageType) HasEnvironmental() bool { + if o != nil && !IsNil(o.Environmental) { + return true + } + + return false +} + +// SetEnvironmental gets a reference to the given []Environmental and assigns it to the Environmental field. +func (o *MessageType) SetEnvironmental(v []Environmental) { + o.Environmental = v +} + +// GetMeteredPower returns the MeteredPower field value if set, zero value otherwise. +func (o *MessageType) GetMeteredPower() []MeteredPower { + if o == nil || IsNil(o.MeteredPower) { + var ret []MeteredPower + return ret + } + return o.MeteredPower +} + +// GetMeteredPowerOk returns a tuple with the MeteredPower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageType) GetMeteredPowerOk() ([]MeteredPower, bool) { + if o == nil || IsNil(o.MeteredPower) { + return nil, false + } + return o.MeteredPower, true +} + +// HasMeteredPower returns a boolean if a field has been set. +func (o *MessageType) HasMeteredPower() bool { + if o != nil && !IsNil(o.MeteredPower) { + return true + } + + return false +} + +// SetMeteredPower gets a reference to the given []MeteredPower and assigns it to the MeteredPower field. +func (o *MessageType) SetMeteredPower(v []MeteredPower) { + o.MeteredPower = v +} + +// GetPower returns the Power field value if set, zero value otherwise. +func (o *MessageType) GetPower() []PowerMessage { + if o == nil || IsNil(o.Power) { + var ret []PowerMessage + return ret + } + return o.Power +} + +// GetPowerOk returns a tuple with the Power field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageType) GetPowerOk() ([]PowerMessage, bool) { + if o == nil || IsNil(o.Power) { + return nil, false + } + return o.Power, true +} + +// HasPower returns a boolean if a field has been set. +func (o *MessageType) HasPower() bool { + if o != nil && !IsNil(o.Power) { + return true + } + + return false +} + +// SetPower gets a reference to the given []PowerMessage and assigns it to the Power field. +func (o *MessageType) SetPower(v []PowerMessage) { + o.Power = v +} + +// GetSystemAlert returns the SystemAlert field value if set, zero value otherwise. +func (o *MessageType) GetSystemAlert() []SystemAlert { + if o == nil || IsNil(o.SystemAlert) { + var ret []SystemAlert + return ret + } + return o.SystemAlert +} + +// GetSystemAlertOk returns a tuple with the SystemAlert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageType) GetSystemAlertOk() ([]SystemAlert, bool) { + if o == nil || IsNil(o.SystemAlert) { + return nil, false + } + return o.SystemAlert, true +} + +// HasSystemAlert returns a boolean if a field has been set. +func (o *MessageType) HasSystemAlert() bool { + if o != nil && !IsNil(o.SystemAlert) { + return true + } + + return false +} + +// SetSystemAlert gets a reference to the given []SystemAlert and assigns it to the SystemAlert field. +func (o *MessageType) SetSystemAlert(v []SystemAlert) { + o.SystemAlert = v +} + +func (o MessageType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MessageType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Asset) { + toSerialize["asset"] = o.Asset + } + if !IsNil(o.CustomAlert) { + toSerialize["customAlert"] = o.CustomAlert + } + if !IsNil(o.Environmental) { + toSerialize["environmental"] = o.Environmental + } + if !IsNil(o.MeteredPower) { + toSerialize["meteredPower"] = o.MeteredPower + } + if !IsNil(o.Power) { + toSerialize["power"] = o.Power + } + if !IsNil(o.SystemAlert) { + toSerialize["systemAlert"] = o.SystemAlert + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MessageType) UnmarshalJSON(data []byte) (err error) { + varMessageType := _MessageType{} + + err = json.Unmarshal(data, &varMessageType) + + if err != nil { + return err + } + + *o = MessageType(varMessageType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "asset") + delete(additionalProperties, "customAlert") + delete(additionalProperties, "environmental") + delete(additionalProperties, "meteredPower") + delete(additionalProperties, "power") + delete(additionalProperties, "systemAlert") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMessageType struct { + value *MessageType + isSet bool +} + +func (v NullableMessageType) Get() *MessageType { + return v.value +} + +func (v *NullableMessageType) Set(val *MessageType) { + v.value = val + v.isSet = true +} + +func (v NullableMessageType) IsSet() bool { + return v.isSet +} + +func (v *NullableMessageType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMessageType(val *MessageType) *NullableMessageType { + return &NullableMessageType{value: val, isSet: true} +} + +func (v NullableMessageType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMessageType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_metered_power.go b/services/smartview/model_metered_power.go new file mode 100644 index 00000000..2b951ce1 --- /dev/null +++ b/services/smartview/model_metered_power.go @@ -0,0 +1,476 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the MeteredPower type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MeteredPower{} + +// MeteredPower message data +type MeteredPower struct { + // account number + AccountNumber *string `json:"accountNumber,omitempty"` + Asset MeteredPowerAssetDetails `json:"asset"` + // cage + Cage *string `json:"cage,omitempty"` + // cage serial number + CageSerialNo *string `json:"cageSerialNo,omitempty"` + // data quality: Good | Bad | Uncertain + DataQuality *string `json:"dataQuality,omitempty"` + // ibx + Ibx string `json:"ibx"` + Reading MeteredPowerValueWithUnit `json:"reading"` + // message reading time + ReadingTime *string `json:"readingTime,omitempty"` + // unique message id + StreamId string `json:"streamId"` + Tag MeteredPowerTagDetails `json:"tag"` + AdditionalProperties map[string]interface{} +} + +type _MeteredPower MeteredPower + +// NewMeteredPower instantiates a new MeteredPower 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 NewMeteredPower(asset MeteredPowerAssetDetails, ibx string, reading MeteredPowerValueWithUnit, streamId string, tag MeteredPowerTagDetails) *MeteredPower { + this := MeteredPower{} + this.Asset = asset + this.Ibx = ibx + this.Reading = reading + this.StreamId = streamId + this.Tag = tag + return &this +} + +// NewMeteredPowerWithDefaults instantiates a new MeteredPower 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 NewMeteredPowerWithDefaults() *MeteredPower { + this := MeteredPower{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *MeteredPower) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *MeteredPower) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *MeteredPower) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetAsset returns the Asset field value +func (o *MeteredPower) GetAsset() MeteredPowerAssetDetails { + if o == nil { + var ret MeteredPowerAssetDetails + return ret + } + + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetAssetOk() (*MeteredPowerAssetDetails, bool) { + if o == nil { + return nil, false + } + return &o.Asset, true +} + +// SetAsset sets field value +func (o *MeteredPower) SetAsset(v MeteredPowerAssetDetails) { + o.Asset = v +} + +// GetCage returns the Cage field value if set, zero value otherwise. +func (o *MeteredPower) GetCage() string { + if o == nil || IsNil(o.Cage) { + var ret string + return ret + } + return *o.Cage +} + +// GetCageOk returns a tuple with the Cage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetCageOk() (*string, bool) { + if o == nil || IsNil(o.Cage) { + return nil, false + } + return o.Cage, true +} + +// HasCage returns a boolean if a field has been set. +func (o *MeteredPower) HasCage() bool { + if o != nil && !IsNil(o.Cage) { + return true + } + + return false +} + +// SetCage gets a reference to the given string and assigns it to the Cage field. +func (o *MeteredPower) SetCage(v string) { + o.Cage = &v +} + +// GetCageSerialNo returns the CageSerialNo field value if set, zero value otherwise. +func (o *MeteredPower) GetCageSerialNo() string { + if o == nil || IsNil(o.CageSerialNo) { + var ret string + return ret + } + return *o.CageSerialNo +} + +// GetCageSerialNoOk returns a tuple with the CageSerialNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetCageSerialNoOk() (*string, bool) { + if o == nil || IsNil(o.CageSerialNo) { + return nil, false + } + return o.CageSerialNo, true +} + +// HasCageSerialNo returns a boolean if a field has been set. +func (o *MeteredPower) HasCageSerialNo() bool { + if o != nil && !IsNil(o.CageSerialNo) { + return true + } + + return false +} + +// SetCageSerialNo gets a reference to the given string and assigns it to the CageSerialNo field. +func (o *MeteredPower) SetCageSerialNo(v string) { + o.CageSerialNo = &v +} + +// GetDataQuality returns the DataQuality field value if set, zero value otherwise. +func (o *MeteredPower) GetDataQuality() string { + if o == nil || IsNil(o.DataQuality) { + var ret string + return ret + } + return *o.DataQuality +} + +// GetDataQualityOk returns a tuple with the DataQuality field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetDataQualityOk() (*string, bool) { + if o == nil || IsNil(o.DataQuality) { + return nil, false + } + return o.DataQuality, true +} + +// HasDataQuality returns a boolean if a field has been set. +func (o *MeteredPower) HasDataQuality() bool { + if o != nil && !IsNil(o.DataQuality) { + return true + } + + return false +} + +// SetDataQuality gets a reference to the given string and assigns it to the DataQuality field. +func (o *MeteredPower) SetDataQuality(v string) { + o.DataQuality = &v +} + +// GetIbx returns the Ibx field value +func (o *MeteredPower) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *MeteredPower) SetIbx(v string) { + o.Ibx = v +} + +// GetReading returns the Reading field value +func (o *MeteredPower) GetReading() MeteredPowerValueWithUnit { + if o == nil { + var ret MeteredPowerValueWithUnit + return ret + } + + return o.Reading +} + +// GetReadingOk returns a tuple with the Reading field value +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetReadingOk() (*MeteredPowerValueWithUnit, bool) { + if o == nil { + return nil, false + } + return &o.Reading, true +} + +// SetReading sets field value +func (o *MeteredPower) SetReading(v MeteredPowerValueWithUnit) { + o.Reading = v +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *MeteredPower) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *MeteredPower) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *MeteredPower) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetStreamId returns the StreamId field value +func (o *MeteredPower) GetStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.StreamId +} + +// GetStreamIdOk returns a tuple with the StreamId field value +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StreamId, true +} + +// SetStreamId sets field value +func (o *MeteredPower) SetStreamId(v string) { + o.StreamId = v +} + +// GetTag returns the Tag field value +func (o *MeteredPower) GetTag() MeteredPowerTagDetails { + if o == nil { + var ret MeteredPowerTagDetails + return ret + } + + return o.Tag +} + +// GetTagOk returns a tuple with the Tag field value +// and a boolean to check if the value has been set. +func (o *MeteredPower) GetTagOk() (*MeteredPowerTagDetails, bool) { + if o == nil { + return nil, false + } + return &o.Tag, true +} + +// SetTag sets field value +func (o *MeteredPower) SetTag(v MeteredPowerTagDetails) { + o.Tag = v +} + +func (o MeteredPower) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MeteredPower) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + toSerialize["asset"] = o.Asset + if !IsNil(o.Cage) { + toSerialize["cage"] = o.Cage + } + if !IsNil(o.CageSerialNo) { + toSerialize["cageSerialNo"] = o.CageSerialNo + } + if !IsNil(o.DataQuality) { + toSerialize["dataQuality"] = o.DataQuality + } + toSerialize["ibx"] = o.Ibx + toSerialize["reading"] = o.Reading + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + toSerialize["streamId"] = o.StreamId + toSerialize["tag"] = o.Tag + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MeteredPower) 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{ + "asset", + "ibx", + "reading", + "streamId", + "tag", + } + + 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) + } + } + + varMeteredPower := _MeteredPower{} + + err = json.Unmarshal(data, &varMeteredPower) + + if err != nil { + return err + } + + *o = MeteredPower(varMeteredPower) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "asset") + delete(additionalProperties, "cage") + delete(additionalProperties, "cageSerialNo") + delete(additionalProperties, "dataQuality") + delete(additionalProperties, "ibx") + delete(additionalProperties, "reading") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "streamId") + delete(additionalProperties, "tag") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMeteredPower struct { + value *MeteredPower + isSet bool +} + +func (v NullableMeteredPower) Get() *MeteredPower { + return v.value +} + +func (v *NullableMeteredPower) Set(val *MeteredPower) { + v.value = val + v.isSet = true +} + +func (v NullableMeteredPower) IsSet() bool { + return v.isSet +} + +func (v *NullableMeteredPower) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMeteredPower(val *MeteredPower) *NullableMeteredPower { + return &NullableMeteredPower{value: val, isSet: true} +} + +func (v NullableMeteredPower) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMeteredPower) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_metered_power_asset_details.go b/services/smartview/model_metered_power_asset_details.go new file mode 100644 index 00000000..2257cc94 --- /dev/null +++ b/services/smartview/model_metered_power_asset_details.go @@ -0,0 +1,207 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the MeteredPowerAssetDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MeteredPowerAssetDetails{} + +// MeteredPowerAssetDetails asset details +type MeteredPowerAssetDetails struct { + // asset id + Id string `json:"id"` + // asset type + Type *string `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _MeteredPowerAssetDetails MeteredPowerAssetDetails + +// NewMeteredPowerAssetDetails instantiates a new MeteredPowerAssetDetails 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 NewMeteredPowerAssetDetails(id string) *MeteredPowerAssetDetails { + this := MeteredPowerAssetDetails{} + this.Id = id + return &this +} + +// NewMeteredPowerAssetDetailsWithDefaults instantiates a new MeteredPowerAssetDetails 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 NewMeteredPowerAssetDetailsWithDefaults() *MeteredPowerAssetDetails { + this := MeteredPowerAssetDetails{} + return &this +} + +// GetId returns the Id field value +func (o *MeteredPowerAssetDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *MeteredPowerAssetDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MeteredPowerAssetDetails) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *MeteredPowerAssetDetails) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPowerAssetDetails) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *MeteredPowerAssetDetails) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *MeteredPowerAssetDetails) SetType(v string) { + o.Type = &v +} + +func (o MeteredPowerAssetDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MeteredPowerAssetDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MeteredPowerAssetDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + 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) + } + } + + varMeteredPowerAssetDetails := _MeteredPowerAssetDetails{} + + err = json.Unmarshal(data, &varMeteredPowerAssetDetails) + + if err != nil { + return err + } + + *o = MeteredPowerAssetDetails(varMeteredPowerAssetDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMeteredPowerAssetDetails struct { + value *MeteredPowerAssetDetails + isSet bool +} + +func (v NullableMeteredPowerAssetDetails) Get() *MeteredPowerAssetDetails { + return v.value +} + +func (v *NullableMeteredPowerAssetDetails) Set(val *MeteredPowerAssetDetails) { + v.value = val + v.isSet = true +} + +func (v NullableMeteredPowerAssetDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableMeteredPowerAssetDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMeteredPowerAssetDetails(val *MeteredPowerAssetDetails) *NullableMeteredPowerAssetDetails { + return &NullableMeteredPowerAssetDetails{value: val, isSet: true} +} + +func (v NullableMeteredPowerAssetDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMeteredPowerAssetDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_metered_power_message_data.go b/services/smartview/model_metered_power_message_data.go new file mode 100644 index 00000000..5e2132d0 --- /dev/null +++ b/services/smartview/model_metered_power_message_data.go @@ -0,0 +1,200 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the MeteredPowerMessageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MeteredPowerMessageData{} + +// MeteredPowerMessageData metered-power message data +type MeteredPowerMessageData struct { + Data MeteredPower `json:"data"` + // message type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _MeteredPowerMessageData MeteredPowerMessageData + +// NewMeteredPowerMessageData instantiates a new MeteredPowerMessageData 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 NewMeteredPowerMessageData(data MeteredPower, type_ string) *MeteredPowerMessageData { + this := MeteredPowerMessageData{} + this.Data = data + this.Type = type_ + return &this +} + +// NewMeteredPowerMessageDataWithDefaults instantiates a new MeteredPowerMessageData 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 NewMeteredPowerMessageDataWithDefaults() *MeteredPowerMessageData { + this := MeteredPowerMessageData{} + var type_ string = "metered-power" + this.Type = type_ + return &this +} + +// GetData returns the Data field value +func (o *MeteredPowerMessageData) GetData() MeteredPower { + if o == nil { + var ret MeteredPower + 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 *MeteredPowerMessageData) GetDataOk() (*MeteredPower, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *MeteredPowerMessageData) SetData(v MeteredPower) { + o.Data = v +} + +// GetType returns the Type field value +func (o *MeteredPowerMessageData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *MeteredPowerMessageData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *MeteredPowerMessageData) SetType(v string) { + o.Type = v +} + +func (o MeteredPowerMessageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MeteredPowerMessageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MeteredPowerMessageData) 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", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMeteredPowerMessageData := _MeteredPowerMessageData{} + + err = json.Unmarshal(data, &varMeteredPowerMessageData) + + if err != nil { + return err + } + + *o = MeteredPowerMessageData(varMeteredPowerMessageData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMeteredPowerMessageData struct { + value *MeteredPowerMessageData + isSet bool +} + +func (v NullableMeteredPowerMessageData) Get() *MeteredPowerMessageData { + return v.value +} + +func (v *NullableMeteredPowerMessageData) Set(val *MeteredPowerMessageData) { + v.value = val + v.isSet = true +} + +func (v NullableMeteredPowerMessageData) IsSet() bool { + return v.isSet +} + +func (v *NullableMeteredPowerMessageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMeteredPowerMessageData(val *MeteredPowerMessageData) *NullableMeteredPowerMessageData { + return &NullableMeteredPowerMessageData{value: val, isSet: true} +} + +func (v NullableMeteredPowerMessageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMeteredPowerMessageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_metered_power_tag_details.go b/services/smartview/model_metered_power_tag_details.go new file mode 100644 index 00000000..b971513d --- /dev/null +++ b/services/smartview/model_metered_power_tag_details.go @@ -0,0 +1,207 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the MeteredPowerTagDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MeteredPowerTagDetails{} + +// MeteredPowerTagDetails tag details +type MeteredPowerTagDetails struct { + // tag display name + DisplayName *string `json:"displayName,omitempty"` + // tag id + Id string `json:"id"` + AdditionalProperties map[string]interface{} +} + +type _MeteredPowerTagDetails MeteredPowerTagDetails + +// NewMeteredPowerTagDetails instantiates a new MeteredPowerTagDetails 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 NewMeteredPowerTagDetails(id string) *MeteredPowerTagDetails { + this := MeteredPowerTagDetails{} + this.Id = id + return &this +} + +// NewMeteredPowerTagDetailsWithDefaults instantiates a new MeteredPowerTagDetails 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 NewMeteredPowerTagDetailsWithDefaults() *MeteredPowerTagDetails { + this := MeteredPowerTagDetails{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *MeteredPowerTagDetails) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPowerTagDetails) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *MeteredPowerTagDetails) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *MeteredPowerTagDetails) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value +func (o *MeteredPowerTagDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *MeteredPowerTagDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *MeteredPowerTagDetails) SetId(v string) { + o.Id = v +} + +func (o MeteredPowerTagDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MeteredPowerTagDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MeteredPowerTagDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + 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) + } + } + + varMeteredPowerTagDetails := _MeteredPowerTagDetails{} + + err = json.Unmarshal(data, &varMeteredPowerTagDetails) + + if err != nil { + return err + } + + *o = MeteredPowerTagDetails(varMeteredPowerTagDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "displayName") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMeteredPowerTagDetails struct { + value *MeteredPowerTagDetails + isSet bool +} + +func (v NullableMeteredPowerTagDetails) Get() *MeteredPowerTagDetails { + return v.value +} + +func (v *NullableMeteredPowerTagDetails) Set(val *MeteredPowerTagDetails) { + v.value = val + v.isSet = true +} + +func (v NullableMeteredPowerTagDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableMeteredPowerTagDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMeteredPowerTagDetails(val *MeteredPowerTagDetails) *NullableMeteredPowerTagDetails { + return &NullableMeteredPowerTagDetails{value: val, isSet: true} +} + +func (v NullableMeteredPowerTagDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMeteredPowerTagDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_metered_power_value_with_unit.go b/services/smartview/model_metered_power_value_with_unit.go new file mode 100644 index 00000000..7ed166b9 --- /dev/null +++ b/services/smartview/model_metered_power_value_with_unit.go @@ -0,0 +1,207 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the MeteredPowerValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MeteredPowerValueWithUnit{} + +// MeteredPowerValueWithUnit reading details +type MeteredPowerValueWithUnit struct { + // reading unit + Unit *string `json:"unit,omitempty"` + // reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _MeteredPowerValueWithUnit MeteredPowerValueWithUnit + +// NewMeteredPowerValueWithUnit instantiates a new MeteredPowerValueWithUnit 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 NewMeteredPowerValueWithUnit(value string) *MeteredPowerValueWithUnit { + this := MeteredPowerValueWithUnit{} + this.Value = value + return &this +} + +// NewMeteredPowerValueWithUnitWithDefaults instantiates a new MeteredPowerValueWithUnit 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 NewMeteredPowerValueWithUnitWithDefaults() *MeteredPowerValueWithUnit { + this := MeteredPowerValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *MeteredPowerValueWithUnit) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MeteredPowerValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *MeteredPowerValueWithUnit) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *MeteredPowerValueWithUnit) SetUnit(v string) { + o.Unit = &v +} + +// GetValue returns the Value field value +func (o *MeteredPowerValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *MeteredPowerValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *MeteredPowerValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o MeteredPowerValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MeteredPowerValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MeteredPowerValueWithUnit) 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{ + "value", + } + + 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) + } + } + + varMeteredPowerValueWithUnit := _MeteredPowerValueWithUnit{} + + err = json.Unmarshal(data, &varMeteredPowerValueWithUnit) + + if err != nil { + return err + } + + *o = MeteredPowerValueWithUnit(varMeteredPowerValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMeteredPowerValueWithUnit struct { + value *MeteredPowerValueWithUnit + isSet bool +} + +func (v NullableMeteredPowerValueWithUnit) Get() *MeteredPowerValueWithUnit { + return v.value +} + +func (v *NullableMeteredPowerValueWithUnit) Set(val *MeteredPowerValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullableMeteredPowerValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableMeteredPowerValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMeteredPowerValueWithUnit(val *MeteredPowerValueWithUnit) *NullableMeteredPowerValueWithUnit { + return &NullableMeteredPowerValueWithUnit{value: val, isSet: true} +} + +func (v NullableMeteredPowerValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMeteredPowerValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_mixin1_data_point_parameter.go b/services/smartview/model_mixin1_data_point_parameter.go new file mode 100644 index 00000000..a93f0f7d --- /dev/null +++ b/services/smartview/model_mixin1_data_point_parameter.go @@ -0,0 +1,111 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// Mixin1DataPointParameter the model 'Mixin1DataPointParameter' +type Mixin1DataPointParameter string + +// List of Mixin1_dataPoint_parameter +const ( + MIXIN1DATAPOINTPARAMETER_TEMPERATURE Mixin1DataPointParameter = "temperature" + MIXIN1DATAPOINTPARAMETER_HUMIDITY Mixin1DataPointParameter = "humidity" +) + +// All allowed values of Mixin1DataPointParameter enum +var AllowedMixin1DataPointParameterEnumValues = []Mixin1DataPointParameter{ + "temperature", + "humidity", +} + +func (v *Mixin1DataPointParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Mixin1DataPointParameter(value) + for _, existing := range AllowedMixin1DataPointParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Mixin1DataPointParameter", value) +} + +// NewMixin1DataPointParameterFromValue returns a pointer to a valid Mixin1DataPointParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMixin1DataPointParameterFromValue(v string) (*Mixin1DataPointParameter, error) { + ev := Mixin1DataPointParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Mixin1DataPointParameter: valid values are %v", v, AllowedMixin1DataPointParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Mixin1DataPointParameter) IsValid() bool { + for _, existing := range AllowedMixin1DataPointParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Mixin1_dataPoint_parameter value +func (v Mixin1DataPointParameter) Ptr() *Mixin1DataPointParameter { + return &v +} + +type NullableMixin1DataPointParameter struct { + value *Mixin1DataPointParameter + isSet bool +} + +func (v NullableMixin1DataPointParameter) Get() *Mixin1DataPointParameter { + return v.value +} + +func (v *NullableMixin1DataPointParameter) Set(val *Mixin1DataPointParameter) { + v.value = val + v.isSet = true +} + +func (v NullableMixin1DataPointParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableMixin1DataPointParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMixin1DataPointParameter(val *Mixin1DataPointParameter) *NullableMixin1DataPointParameter { + return &NullableMixin1DataPointParameter{value: val, isSet: true} +} + +func (v NullableMixin1DataPointParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMixin1DataPointParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_mixin1_interval_parameter.go b/services/smartview/model_mixin1_interval_parameter.go new file mode 100644 index 00000000..d4fb0258 --- /dev/null +++ b/services/smartview/model_mixin1_interval_parameter.go @@ -0,0 +1,113 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// Mixin1IntervalParameter the model 'Mixin1IntervalParameter' +type Mixin1IntervalParameter string + +// List of Mixin1_interval_parameter +const ( + MIXIN1INTERVALPARAMETER_READING Mixin1IntervalParameter = "reading" + MIXIN1INTERVALPARAMETER__1H Mixin1IntervalParameter = "1h" + MIXIN1INTERVALPARAMETER__1D Mixin1IntervalParameter = "1d" +) + +// All allowed values of Mixin1IntervalParameter enum +var AllowedMixin1IntervalParameterEnumValues = []Mixin1IntervalParameter{ + "reading", + "1h", + "1d", +} + +func (v *Mixin1IntervalParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Mixin1IntervalParameter(value) + for _, existing := range AllowedMixin1IntervalParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Mixin1IntervalParameter", value) +} + +// NewMixin1IntervalParameterFromValue returns a pointer to a valid Mixin1IntervalParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMixin1IntervalParameterFromValue(v string) (*Mixin1IntervalParameter, error) { + ev := Mixin1IntervalParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Mixin1IntervalParameter: valid values are %v", v, AllowedMixin1IntervalParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Mixin1IntervalParameter) IsValid() bool { + for _, existing := range AllowedMixin1IntervalParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Mixin1_interval_parameter value +func (v Mixin1IntervalParameter) Ptr() *Mixin1IntervalParameter { + return &v +} + +type NullableMixin1IntervalParameter struct { + value *Mixin1IntervalParameter + isSet bool +} + +func (v NullableMixin1IntervalParameter) Get() *Mixin1IntervalParameter { + return v.value +} + +func (v *NullableMixin1IntervalParameter) Set(val *Mixin1IntervalParameter) { + v.value = val + v.isSet = true +} + +func (v NullableMixin1IntervalParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableMixin1IntervalParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMixin1IntervalParameter(val *Mixin1IntervalParameter) *NullableMixin1IntervalParameter { + return &NullableMixin1IntervalParameter{value: val, isSet: true} +} + +func (v NullableMixin1IntervalParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMixin1IntervalParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_mixin1_level_type_parameter.go b/services/smartview/model_mixin1_level_type_parameter.go new file mode 100644 index 00000000..2f8eab86 --- /dev/null +++ b/services/smartview/model_mixin1_level_type_parameter.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// Mixin1LevelTypeParameter the model 'Mixin1LevelTypeParameter' +type Mixin1LevelTypeParameter string + +// List of Mixin1_levelType_parameter +const ( + MIXIN1LEVELTYPEPARAMETER_IBX Mixin1LevelTypeParameter = "IBX" + MIXIN1LEVELTYPEPARAMETER_ZONE Mixin1LevelTypeParameter = "ZONE" + MIXIN1LEVELTYPEPARAMETER_CAGE Mixin1LevelTypeParameter = "CAGE" + MIXIN1LEVELTYPEPARAMETER_SENSOR Mixin1LevelTypeParameter = "SENSOR" +) + +// All allowed values of Mixin1LevelTypeParameter enum +var AllowedMixin1LevelTypeParameterEnumValues = []Mixin1LevelTypeParameter{ + "IBX", + "ZONE", + "CAGE", + "SENSOR", +} + +func (v *Mixin1LevelTypeParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Mixin1LevelTypeParameter(value) + for _, existing := range AllowedMixin1LevelTypeParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Mixin1LevelTypeParameter", value) +} + +// NewMixin1LevelTypeParameterFromValue returns a pointer to a valid Mixin1LevelTypeParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMixin1LevelTypeParameterFromValue(v string) (*Mixin1LevelTypeParameter, error) { + ev := Mixin1LevelTypeParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Mixin1LevelTypeParameter: valid values are %v", v, AllowedMixin1LevelTypeParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Mixin1LevelTypeParameter) IsValid() bool { + for _, existing := range AllowedMixin1LevelTypeParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Mixin1_levelType_parameter value +func (v Mixin1LevelTypeParameter) Ptr() *Mixin1LevelTypeParameter { + return &v +} + +type NullableMixin1LevelTypeParameter struct { + value *Mixin1LevelTypeParameter + isSet bool +} + +func (v NullableMixin1LevelTypeParameter) Get() *Mixin1LevelTypeParameter { + return v.value +} + +func (v *NullableMixin1LevelTypeParameter) Set(val *Mixin1LevelTypeParameter) { + v.value = val + v.isSet = true +} + +func (v NullableMixin1LevelTypeParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableMixin1LevelTypeParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMixin1LevelTypeParameter(val *Mixin1LevelTypeParameter) *NullableMixin1LevelTypeParameter { + return &NullableMixin1LevelTypeParameter{value: val, isSet: true} +} + +func (v NullableMixin1LevelTypeParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMixin1LevelTypeParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_pagination.go b/services/smartview/model_pagination.go new file mode 100644 index 00000000..7d2a305b --- /dev/null +++ b/services/smartview/model_pagination.go @@ -0,0 +1,305 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Pagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Pagination{} + +// Pagination Represents pagination component of the paginated response +type Pagination struct { + // The page size. + Limit int64 `json:"limit"` + // Represents a relative link to the next page. This can be empty if there is no next page available. + Next *string `json:"next,omitempty"` + // The number of elements to skip. + Offset int64 `json:"offset"` + // Represents a relative link to the previous page. This can be empty if there is no previous page available. + Previous *string `json:"previous,omitempty"` + // The total number of elements in the result set. + Total int64 `json:"total"` + AdditionalProperties map[string]interface{} +} + +type _Pagination Pagination + +// NewPagination instantiates a new Pagination 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 NewPagination(limit int64, offset int64, total int64) *Pagination { + this := Pagination{} + this.Limit = limit + this.Offset = offset + this.Total = total + return &this +} + +// NewPaginationWithDefaults instantiates a new Pagination 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 NewPaginationWithDefaults() *Pagination { + this := Pagination{} + return &this +} + +// GetLimit returns the Limit field value +func (o *Pagination) GetLimit() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *Pagination) GetLimitOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *Pagination) SetLimit(v int64) { + o.Limit = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *Pagination) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *Pagination) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *Pagination) SetNext(v string) { + o.Next = &v +} + +// GetOffset returns the Offset field value +func (o *Pagination) GetOffset() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *Pagination) GetOffsetOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *Pagination) SetOffset(v int64) { + o.Offset = v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *Pagination) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Pagination) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *Pagination) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *Pagination) SetPrevious(v string) { + o.Previous = &v +} + +// GetTotal returns the Total field value +func (o *Pagination) GetTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *Pagination) GetTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *Pagination) SetTotal(v int64) { + o.Total = v +} + +func (o Pagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Pagination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["limit"] = o.Limit + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + toSerialize["offset"] = o.Offset + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["total"] = o.Total + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Pagination) 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{ + "limit", + "offset", + "total", + } + + 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) + } + } + + varPagination := _Pagination{} + + err = json.Unmarshal(data, &varPagination) + + if err != nil { + return err + } + + *o = Pagination(varPagination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "limit") + delete(additionalProperties, "next") + delete(additionalProperties, "offset") + delete(additionalProperties, "previous") + delete(additionalProperties, "total") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePagination struct { + value *Pagination + isSet bool +} + +func (v NullablePagination) Get() *Pagination { + return v.value +} + +func (v *NullablePagination) Set(val *Pagination) { + v.value = val + v.isSet = true +} + +func (v NullablePagination) IsSet() bool { + return v.isSet +} + +func (v *NullablePagination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePagination(val *Pagination) *NullablePagination { + return &NullablePagination{value: val, isSet: true} +} + +func (v NullablePagination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePagination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power.go b/services/smartview/model_power.go new file mode 100644 index 00000000..7f2fde60 --- /dev/null +++ b/services/smartview/model_power.go @@ -0,0 +1,1014 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the Power type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Power{} + +// Power message data +type Power struct { + // account number + AccountNumber *string `json:"accountNumber,omitempty"` + ApparentPower *PowerApparentPowerValueWithUnit `json:"apparentPower,omitempty"` + Asset PowerAssetDetails `json:"asset"` + // cabinet + Cabinet *string `json:"cabinet,omitempty"` + CabinetRating *PowerCabinetRatingValueWithUnit `json:"cabinetRating,omitempty"` + // cage + Cage *string `json:"cage,omitempty"` + // circuit type + CircuitType *string `json:"circuitType,omitempty"` + ContractualPower *PowerContractualPowerValueWithUnit `json:"contractualPower,omitempty"` + Current *PowerCurrentValueWithUnit `json:"current,omitempty"` + // description + Description *string `json:"description,omitempty"` + // ibx + Ibx string `json:"ibx"` + // last updated time + LastUpdated *string `json:"lastUpdated,omitempty"` + // oid + Oid *string `json:"oid,omitempty"` + PeakLastSevenDays *PowerPeakLastSevenDaysValueWithUnit `json:"peakLastSevenDays,omitempty"` + PeakLastSevenDaysContractualPower *PowerPeakLastSevenDaysContractualPowerValueWithUnit `json:"peakLastSevenDaysContractualPower,omitempty"` + PeakLastSevenDaysRatio *PowerPeakLastSevenDaysRatioValueWithUnit `json:"peakLastSevenDaysRatio,omitempty"` + // peak last seven days time + PeakLastSevenDaysTime *string `json:"peakLastSevenDaysTime,omitempty"` + PowerConsumptionToContractual *PowerPowerConsumptionToContractualValueWithUnit `json:"powerConsumptionToContractual,omitempty"` + PowerFactor *PowerPowerFactorValueWithUnit `json:"powerFactor,omitempty"` + // message reading time + ReadingTime *string `json:"readingTime,omitempty"` + RealPower *PowerRealPowerValueWithUnit `json:"realPower,omitempty"` + SoldCurrent *PowerSoldCurrentValueWithUnit `json:"soldCurrent,omitempty"` + SoldPower *PowerSoldPowerValueWithUnit `json:"soldPower,omitempty"` + // unique message id + StreamId string `json:"streamId"` + AdditionalProperties map[string]interface{} +} + +type _Power Power + +// NewPower instantiates a new Power 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 NewPower(asset PowerAssetDetails, ibx string, streamId string) *Power { + this := Power{} + this.Asset = asset + this.Ibx = ibx + this.StreamId = streamId + return &this +} + +// NewPowerWithDefaults instantiates a new Power 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 NewPowerWithDefaults() *Power { + this := Power{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *Power) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *Power) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *Power) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetApparentPower returns the ApparentPower field value if set, zero value otherwise. +func (o *Power) GetApparentPower() PowerApparentPowerValueWithUnit { + if o == nil || IsNil(o.ApparentPower) { + var ret PowerApparentPowerValueWithUnit + return ret + } + return *o.ApparentPower +} + +// GetApparentPowerOk returns a tuple with the ApparentPower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetApparentPowerOk() (*PowerApparentPowerValueWithUnit, bool) { + if o == nil || IsNil(o.ApparentPower) { + return nil, false + } + return o.ApparentPower, true +} + +// HasApparentPower returns a boolean if a field has been set. +func (o *Power) HasApparentPower() bool { + if o != nil && !IsNil(o.ApparentPower) { + return true + } + + return false +} + +// SetApparentPower gets a reference to the given PowerApparentPowerValueWithUnit and assigns it to the ApparentPower field. +func (o *Power) SetApparentPower(v PowerApparentPowerValueWithUnit) { + o.ApparentPower = &v +} + +// GetAsset returns the Asset field value +func (o *Power) GetAsset() PowerAssetDetails { + if o == nil { + var ret PowerAssetDetails + return ret + } + + return o.Asset +} + +// GetAssetOk returns a tuple with the Asset field value +// and a boolean to check if the value has been set. +func (o *Power) GetAssetOk() (*PowerAssetDetails, bool) { + if o == nil { + return nil, false + } + return &o.Asset, true +} + +// SetAsset sets field value +func (o *Power) SetAsset(v PowerAssetDetails) { + o.Asset = v +} + +// GetCabinet returns the Cabinet field value if set, zero value otherwise. +func (o *Power) GetCabinet() string { + if o == nil || IsNil(o.Cabinet) { + var ret string + return ret + } + return *o.Cabinet +} + +// GetCabinetOk returns a tuple with the Cabinet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetCabinetOk() (*string, bool) { + if o == nil || IsNil(o.Cabinet) { + return nil, false + } + return o.Cabinet, true +} + +// HasCabinet returns a boolean if a field has been set. +func (o *Power) HasCabinet() bool { + if o != nil && !IsNil(o.Cabinet) { + return true + } + + return false +} + +// SetCabinet gets a reference to the given string and assigns it to the Cabinet field. +func (o *Power) SetCabinet(v string) { + o.Cabinet = &v +} + +// GetCabinetRating returns the CabinetRating field value if set, zero value otherwise. +func (o *Power) GetCabinetRating() PowerCabinetRatingValueWithUnit { + if o == nil || IsNil(o.CabinetRating) { + var ret PowerCabinetRatingValueWithUnit + return ret + } + return *o.CabinetRating +} + +// GetCabinetRatingOk returns a tuple with the CabinetRating field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetCabinetRatingOk() (*PowerCabinetRatingValueWithUnit, bool) { + if o == nil || IsNil(o.CabinetRating) { + return nil, false + } + return o.CabinetRating, true +} + +// HasCabinetRating returns a boolean if a field has been set. +func (o *Power) HasCabinetRating() bool { + if o != nil && !IsNil(o.CabinetRating) { + return true + } + + return false +} + +// SetCabinetRating gets a reference to the given PowerCabinetRatingValueWithUnit and assigns it to the CabinetRating field. +func (o *Power) SetCabinetRating(v PowerCabinetRatingValueWithUnit) { + o.CabinetRating = &v +} + +// GetCage returns the Cage field value if set, zero value otherwise. +func (o *Power) GetCage() string { + if o == nil || IsNil(o.Cage) { + var ret string + return ret + } + return *o.Cage +} + +// GetCageOk returns a tuple with the Cage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetCageOk() (*string, bool) { + if o == nil || IsNil(o.Cage) { + return nil, false + } + return o.Cage, true +} + +// HasCage returns a boolean if a field has been set. +func (o *Power) HasCage() bool { + if o != nil && !IsNil(o.Cage) { + return true + } + + return false +} + +// SetCage gets a reference to the given string and assigns it to the Cage field. +func (o *Power) SetCage(v string) { + o.Cage = &v +} + +// GetCircuitType returns the CircuitType field value if set, zero value otherwise. +func (o *Power) GetCircuitType() string { + if o == nil || IsNil(o.CircuitType) { + var ret string + return ret + } + return *o.CircuitType +} + +// GetCircuitTypeOk returns a tuple with the CircuitType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetCircuitTypeOk() (*string, bool) { + if o == nil || IsNil(o.CircuitType) { + return nil, false + } + return o.CircuitType, true +} + +// HasCircuitType returns a boolean if a field has been set. +func (o *Power) HasCircuitType() bool { + if o != nil && !IsNil(o.CircuitType) { + return true + } + + return false +} + +// SetCircuitType gets a reference to the given string and assigns it to the CircuitType field. +func (o *Power) SetCircuitType(v string) { + o.CircuitType = &v +} + +// GetContractualPower returns the ContractualPower field value if set, zero value otherwise. +func (o *Power) GetContractualPower() PowerContractualPowerValueWithUnit { + if o == nil || IsNil(o.ContractualPower) { + var ret PowerContractualPowerValueWithUnit + return ret + } + return *o.ContractualPower +} + +// GetContractualPowerOk returns a tuple with the ContractualPower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetContractualPowerOk() (*PowerContractualPowerValueWithUnit, bool) { + if o == nil || IsNil(o.ContractualPower) { + return nil, false + } + return o.ContractualPower, true +} + +// HasContractualPower returns a boolean if a field has been set. +func (o *Power) HasContractualPower() bool { + if o != nil && !IsNil(o.ContractualPower) { + return true + } + + return false +} + +// SetContractualPower gets a reference to the given PowerContractualPowerValueWithUnit and assigns it to the ContractualPower field. +func (o *Power) SetContractualPower(v PowerContractualPowerValueWithUnit) { + o.ContractualPower = &v +} + +// GetCurrent returns the Current field value if set, zero value otherwise. +func (o *Power) GetCurrent() PowerCurrentValueWithUnit { + if o == nil || IsNil(o.Current) { + var ret PowerCurrentValueWithUnit + return ret + } + return *o.Current +} + +// GetCurrentOk returns a tuple with the Current field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetCurrentOk() (*PowerCurrentValueWithUnit, bool) { + if o == nil || IsNil(o.Current) { + return nil, false + } + return o.Current, true +} + +// HasCurrent returns a boolean if a field has been set. +func (o *Power) HasCurrent() bool { + if o != nil && !IsNil(o.Current) { + return true + } + + return false +} + +// SetCurrent gets a reference to the given PowerCurrentValueWithUnit and assigns it to the Current field. +func (o *Power) SetCurrent(v PowerCurrentValueWithUnit) { + o.Current = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Power) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Power) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Power) SetDescription(v string) { + o.Description = &v +} + +// GetIbx returns the Ibx field value +func (o *Power) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *Power) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *Power) SetIbx(v string) { + o.Ibx = v +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise. +func (o *Power) GetLastUpdated() string { + if o == nil || IsNil(o.LastUpdated) { + var ret string + return ret + } + return *o.LastUpdated +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetLastUpdatedOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdated) { + return nil, false + } + return o.LastUpdated, true +} + +// HasLastUpdated returns a boolean if a field has been set. +func (o *Power) HasLastUpdated() bool { + if o != nil && !IsNil(o.LastUpdated) { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given string and assigns it to the LastUpdated field. +func (o *Power) SetLastUpdated(v string) { + o.LastUpdated = &v +} + +// GetOid returns the Oid field value if set, zero value otherwise. +func (o *Power) GetOid() string { + if o == nil || IsNil(o.Oid) { + var ret string + return ret + } + return *o.Oid +} + +// GetOidOk returns a tuple with the Oid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetOidOk() (*string, bool) { + if o == nil || IsNil(o.Oid) { + return nil, false + } + return o.Oid, true +} + +// HasOid returns a boolean if a field has been set. +func (o *Power) HasOid() bool { + if o != nil && !IsNil(o.Oid) { + return true + } + + return false +} + +// SetOid gets a reference to the given string and assigns it to the Oid field. +func (o *Power) SetOid(v string) { + o.Oid = &v +} + +// GetPeakLastSevenDays returns the PeakLastSevenDays field value if set, zero value otherwise. +func (o *Power) GetPeakLastSevenDays() PowerPeakLastSevenDaysValueWithUnit { + if o == nil || IsNil(o.PeakLastSevenDays) { + var ret PowerPeakLastSevenDaysValueWithUnit + return ret + } + return *o.PeakLastSevenDays +} + +// GetPeakLastSevenDaysOk returns a tuple with the PeakLastSevenDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetPeakLastSevenDaysOk() (*PowerPeakLastSevenDaysValueWithUnit, bool) { + if o == nil || IsNil(o.PeakLastSevenDays) { + return nil, false + } + return o.PeakLastSevenDays, true +} + +// HasPeakLastSevenDays returns a boolean if a field has been set. +func (o *Power) HasPeakLastSevenDays() bool { + if o != nil && !IsNil(o.PeakLastSevenDays) { + return true + } + + return false +} + +// SetPeakLastSevenDays gets a reference to the given PowerPeakLastSevenDaysValueWithUnit and assigns it to the PeakLastSevenDays field. +func (o *Power) SetPeakLastSevenDays(v PowerPeakLastSevenDaysValueWithUnit) { + o.PeakLastSevenDays = &v +} + +// GetPeakLastSevenDaysContractualPower returns the PeakLastSevenDaysContractualPower field value if set, zero value otherwise. +func (o *Power) GetPeakLastSevenDaysContractualPower() PowerPeakLastSevenDaysContractualPowerValueWithUnit { + if o == nil || IsNil(o.PeakLastSevenDaysContractualPower) { + var ret PowerPeakLastSevenDaysContractualPowerValueWithUnit + return ret + } + return *o.PeakLastSevenDaysContractualPower +} + +// GetPeakLastSevenDaysContractualPowerOk returns a tuple with the PeakLastSevenDaysContractualPower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetPeakLastSevenDaysContractualPowerOk() (*PowerPeakLastSevenDaysContractualPowerValueWithUnit, bool) { + if o == nil || IsNil(o.PeakLastSevenDaysContractualPower) { + return nil, false + } + return o.PeakLastSevenDaysContractualPower, true +} + +// HasPeakLastSevenDaysContractualPower returns a boolean if a field has been set. +func (o *Power) HasPeakLastSevenDaysContractualPower() bool { + if o != nil && !IsNil(o.PeakLastSevenDaysContractualPower) { + return true + } + + return false +} + +// SetPeakLastSevenDaysContractualPower gets a reference to the given PowerPeakLastSevenDaysContractualPowerValueWithUnit and assigns it to the PeakLastSevenDaysContractualPower field. +func (o *Power) SetPeakLastSevenDaysContractualPower(v PowerPeakLastSevenDaysContractualPowerValueWithUnit) { + o.PeakLastSevenDaysContractualPower = &v +} + +// GetPeakLastSevenDaysRatio returns the PeakLastSevenDaysRatio field value if set, zero value otherwise. +func (o *Power) GetPeakLastSevenDaysRatio() PowerPeakLastSevenDaysRatioValueWithUnit { + if o == nil || IsNil(o.PeakLastSevenDaysRatio) { + var ret PowerPeakLastSevenDaysRatioValueWithUnit + return ret + } + return *o.PeakLastSevenDaysRatio +} + +// GetPeakLastSevenDaysRatioOk returns a tuple with the PeakLastSevenDaysRatio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetPeakLastSevenDaysRatioOk() (*PowerPeakLastSevenDaysRatioValueWithUnit, bool) { + if o == nil || IsNil(o.PeakLastSevenDaysRatio) { + return nil, false + } + return o.PeakLastSevenDaysRatio, true +} + +// HasPeakLastSevenDaysRatio returns a boolean if a field has been set. +func (o *Power) HasPeakLastSevenDaysRatio() bool { + if o != nil && !IsNil(o.PeakLastSevenDaysRatio) { + return true + } + + return false +} + +// SetPeakLastSevenDaysRatio gets a reference to the given PowerPeakLastSevenDaysRatioValueWithUnit and assigns it to the PeakLastSevenDaysRatio field. +func (o *Power) SetPeakLastSevenDaysRatio(v PowerPeakLastSevenDaysRatioValueWithUnit) { + o.PeakLastSevenDaysRatio = &v +} + +// GetPeakLastSevenDaysTime returns the PeakLastSevenDaysTime field value if set, zero value otherwise. +func (o *Power) GetPeakLastSevenDaysTime() string { + if o == nil || IsNil(o.PeakLastSevenDaysTime) { + var ret string + return ret + } + return *o.PeakLastSevenDaysTime +} + +// GetPeakLastSevenDaysTimeOk returns a tuple with the PeakLastSevenDaysTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetPeakLastSevenDaysTimeOk() (*string, bool) { + if o == nil || IsNil(o.PeakLastSevenDaysTime) { + return nil, false + } + return o.PeakLastSevenDaysTime, true +} + +// HasPeakLastSevenDaysTime returns a boolean if a field has been set. +func (o *Power) HasPeakLastSevenDaysTime() bool { + if o != nil && !IsNil(o.PeakLastSevenDaysTime) { + return true + } + + return false +} + +// SetPeakLastSevenDaysTime gets a reference to the given string and assigns it to the PeakLastSevenDaysTime field. +func (o *Power) SetPeakLastSevenDaysTime(v string) { + o.PeakLastSevenDaysTime = &v +} + +// GetPowerConsumptionToContractual returns the PowerConsumptionToContractual field value if set, zero value otherwise. +func (o *Power) GetPowerConsumptionToContractual() PowerPowerConsumptionToContractualValueWithUnit { + if o == nil || IsNil(o.PowerConsumptionToContractual) { + var ret PowerPowerConsumptionToContractualValueWithUnit + return ret + } + return *o.PowerConsumptionToContractual +} + +// GetPowerConsumptionToContractualOk returns a tuple with the PowerConsumptionToContractual field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetPowerConsumptionToContractualOk() (*PowerPowerConsumptionToContractualValueWithUnit, bool) { + if o == nil || IsNil(o.PowerConsumptionToContractual) { + return nil, false + } + return o.PowerConsumptionToContractual, true +} + +// HasPowerConsumptionToContractual returns a boolean if a field has been set. +func (o *Power) HasPowerConsumptionToContractual() bool { + if o != nil && !IsNil(o.PowerConsumptionToContractual) { + return true + } + + return false +} + +// SetPowerConsumptionToContractual gets a reference to the given PowerPowerConsumptionToContractualValueWithUnit and assigns it to the PowerConsumptionToContractual field. +func (o *Power) SetPowerConsumptionToContractual(v PowerPowerConsumptionToContractualValueWithUnit) { + o.PowerConsumptionToContractual = &v +} + +// GetPowerFactor returns the PowerFactor field value if set, zero value otherwise. +func (o *Power) GetPowerFactor() PowerPowerFactorValueWithUnit { + if o == nil || IsNil(o.PowerFactor) { + var ret PowerPowerFactorValueWithUnit + return ret + } + return *o.PowerFactor +} + +// GetPowerFactorOk returns a tuple with the PowerFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetPowerFactorOk() (*PowerPowerFactorValueWithUnit, bool) { + if o == nil || IsNil(o.PowerFactor) { + return nil, false + } + return o.PowerFactor, true +} + +// HasPowerFactor returns a boolean if a field has been set. +func (o *Power) HasPowerFactor() bool { + if o != nil && !IsNil(o.PowerFactor) { + return true + } + + return false +} + +// SetPowerFactor gets a reference to the given PowerPowerFactorValueWithUnit and assigns it to the PowerFactor field. +func (o *Power) SetPowerFactor(v PowerPowerFactorValueWithUnit) { + o.PowerFactor = &v +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *Power) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *Power) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *Power) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetRealPower returns the RealPower field value if set, zero value otherwise. +func (o *Power) GetRealPower() PowerRealPowerValueWithUnit { + if o == nil || IsNil(o.RealPower) { + var ret PowerRealPowerValueWithUnit + return ret + } + return *o.RealPower +} + +// GetRealPowerOk returns a tuple with the RealPower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetRealPowerOk() (*PowerRealPowerValueWithUnit, bool) { + if o == nil || IsNil(o.RealPower) { + return nil, false + } + return o.RealPower, true +} + +// HasRealPower returns a boolean if a field has been set. +func (o *Power) HasRealPower() bool { + if o != nil && !IsNil(o.RealPower) { + return true + } + + return false +} + +// SetRealPower gets a reference to the given PowerRealPowerValueWithUnit and assigns it to the RealPower field. +func (o *Power) SetRealPower(v PowerRealPowerValueWithUnit) { + o.RealPower = &v +} + +// GetSoldCurrent returns the SoldCurrent field value if set, zero value otherwise. +func (o *Power) GetSoldCurrent() PowerSoldCurrentValueWithUnit { + if o == nil || IsNil(o.SoldCurrent) { + var ret PowerSoldCurrentValueWithUnit + return ret + } + return *o.SoldCurrent +} + +// GetSoldCurrentOk returns a tuple with the SoldCurrent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetSoldCurrentOk() (*PowerSoldCurrentValueWithUnit, bool) { + if o == nil || IsNil(o.SoldCurrent) { + return nil, false + } + return o.SoldCurrent, true +} + +// HasSoldCurrent returns a boolean if a field has been set. +func (o *Power) HasSoldCurrent() bool { + if o != nil && !IsNil(o.SoldCurrent) { + return true + } + + return false +} + +// SetSoldCurrent gets a reference to the given PowerSoldCurrentValueWithUnit and assigns it to the SoldCurrent field. +func (o *Power) SetSoldCurrent(v PowerSoldCurrentValueWithUnit) { + o.SoldCurrent = &v +} + +// GetSoldPower returns the SoldPower field value if set, zero value otherwise. +func (o *Power) GetSoldPower() PowerSoldPowerValueWithUnit { + if o == nil || IsNil(o.SoldPower) { + var ret PowerSoldPowerValueWithUnit + return ret + } + return *o.SoldPower +} + +// GetSoldPowerOk returns a tuple with the SoldPower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Power) GetSoldPowerOk() (*PowerSoldPowerValueWithUnit, bool) { + if o == nil || IsNil(o.SoldPower) { + return nil, false + } + return o.SoldPower, true +} + +// HasSoldPower returns a boolean if a field has been set. +func (o *Power) HasSoldPower() bool { + if o != nil && !IsNil(o.SoldPower) { + return true + } + + return false +} + +// SetSoldPower gets a reference to the given PowerSoldPowerValueWithUnit and assigns it to the SoldPower field. +func (o *Power) SetSoldPower(v PowerSoldPowerValueWithUnit) { + o.SoldPower = &v +} + +// GetStreamId returns the StreamId field value +func (o *Power) GetStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.StreamId +} + +// GetStreamIdOk returns a tuple with the StreamId field value +// and a boolean to check if the value has been set. +func (o *Power) GetStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StreamId, true +} + +// SetStreamId sets field value +func (o *Power) SetStreamId(v string) { + o.StreamId = v +} + +func (o Power) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Power) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.ApparentPower) { + toSerialize["apparentPower"] = o.ApparentPower + } + toSerialize["asset"] = o.Asset + if !IsNil(o.Cabinet) { + toSerialize["cabinet"] = o.Cabinet + } + if !IsNil(o.CabinetRating) { + toSerialize["cabinetRating"] = o.CabinetRating + } + if !IsNil(o.Cage) { + toSerialize["cage"] = o.Cage + } + if !IsNil(o.CircuitType) { + toSerialize["circuitType"] = o.CircuitType + } + if !IsNil(o.ContractualPower) { + toSerialize["contractualPower"] = o.ContractualPower + } + if !IsNil(o.Current) { + toSerialize["current"] = o.Current + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["ibx"] = o.Ibx + if !IsNil(o.LastUpdated) { + toSerialize["lastUpdated"] = o.LastUpdated + } + if !IsNil(o.Oid) { + toSerialize["oid"] = o.Oid + } + if !IsNil(o.PeakLastSevenDays) { + toSerialize["peakLastSevenDays"] = o.PeakLastSevenDays + } + if !IsNil(o.PeakLastSevenDaysContractualPower) { + toSerialize["peakLastSevenDaysContractualPower"] = o.PeakLastSevenDaysContractualPower + } + if !IsNil(o.PeakLastSevenDaysRatio) { + toSerialize["peakLastSevenDaysRatio"] = o.PeakLastSevenDaysRatio + } + if !IsNil(o.PeakLastSevenDaysTime) { + toSerialize["peakLastSevenDaysTime"] = o.PeakLastSevenDaysTime + } + if !IsNil(o.PowerConsumptionToContractual) { + toSerialize["powerConsumptionToContractual"] = o.PowerConsumptionToContractual + } + if !IsNil(o.PowerFactor) { + toSerialize["powerFactor"] = o.PowerFactor + } + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + if !IsNil(o.RealPower) { + toSerialize["realPower"] = o.RealPower + } + if !IsNil(o.SoldCurrent) { + toSerialize["soldCurrent"] = o.SoldCurrent + } + if !IsNil(o.SoldPower) { + toSerialize["soldPower"] = o.SoldPower + } + toSerialize["streamId"] = o.StreamId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Power) 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{ + "asset", + "ibx", + "streamId", + } + + 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) + } + } + + varPower := _Power{} + + err = json.Unmarshal(data, &varPower) + + if err != nil { + return err + } + + *o = Power(varPower) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "apparentPower") + delete(additionalProperties, "asset") + delete(additionalProperties, "cabinet") + delete(additionalProperties, "cabinetRating") + delete(additionalProperties, "cage") + delete(additionalProperties, "circuitType") + delete(additionalProperties, "contractualPower") + delete(additionalProperties, "current") + delete(additionalProperties, "description") + delete(additionalProperties, "ibx") + delete(additionalProperties, "lastUpdated") + delete(additionalProperties, "oid") + delete(additionalProperties, "peakLastSevenDays") + delete(additionalProperties, "peakLastSevenDaysContractualPower") + delete(additionalProperties, "peakLastSevenDaysRatio") + delete(additionalProperties, "peakLastSevenDaysTime") + delete(additionalProperties, "powerConsumptionToContractual") + delete(additionalProperties, "powerFactor") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "realPower") + delete(additionalProperties, "soldCurrent") + delete(additionalProperties, "soldPower") + delete(additionalProperties, "streamId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePower struct { + value *Power + isSet bool +} + +func (v NullablePower) Get() *Power { + return v.value +} + +func (v *NullablePower) Set(val *Power) { + v.value = val + v.isSet = true +} + +func (v NullablePower) IsSet() bool { + return v.isSet +} + +func (v *NullablePower) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePower(val *Power) *NullablePower { + return &NullablePower{value: val, isSet: true} +} + +func (v NullablePower) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePower) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_apparent_power_value_with_unit.go b/services/smartview/model_power_apparent_power_value_with_unit.go new file mode 100644 index 00000000..0ec74891 --- /dev/null +++ b/services/smartview/model_power_apparent_power_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerApparentPowerValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerApparentPowerValueWithUnit{} + +// PowerApparentPowerValueWithUnit apparentPower details +type PowerApparentPowerValueWithUnit struct { + // ApparentPower reading unit + Unit string `json:"unit"` + // ApparentPower reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerApparentPowerValueWithUnit PowerApparentPowerValueWithUnit + +// NewPowerApparentPowerValueWithUnit instantiates a new PowerApparentPowerValueWithUnit 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 NewPowerApparentPowerValueWithUnit(unit string, value string) *PowerApparentPowerValueWithUnit { + this := PowerApparentPowerValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerApparentPowerValueWithUnitWithDefaults instantiates a new PowerApparentPowerValueWithUnit 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 NewPowerApparentPowerValueWithUnitWithDefaults() *PowerApparentPowerValueWithUnit { + this := PowerApparentPowerValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerApparentPowerValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerApparentPowerValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerApparentPowerValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerApparentPowerValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerApparentPowerValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerApparentPowerValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerApparentPowerValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerApparentPowerValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerApparentPowerValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerApparentPowerValueWithUnit := _PowerApparentPowerValueWithUnit{} + + err = json.Unmarshal(data, &varPowerApparentPowerValueWithUnit) + + if err != nil { + return err + } + + *o = PowerApparentPowerValueWithUnit(varPowerApparentPowerValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerApparentPowerValueWithUnit struct { + value *PowerApparentPowerValueWithUnit + isSet bool +} + +func (v NullablePowerApparentPowerValueWithUnit) Get() *PowerApparentPowerValueWithUnit { + return v.value +} + +func (v *NullablePowerApparentPowerValueWithUnit) Set(val *PowerApparentPowerValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerApparentPowerValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerApparentPowerValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerApparentPowerValueWithUnit(val *PowerApparentPowerValueWithUnit) *NullablePowerApparentPowerValueWithUnit { + return &NullablePowerApparentPowerValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerApparentPowerValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerApparentPowerValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_asset_details.go b/services/smartview/model_power_asset_details.go new file mode 100644 index 00000000..feb5f35f --- /dev/null +++ b/services/smartview/model_power_asset_details.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerAssetDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerAssetDetails{} + +// PowerAssetDetails asset details +type PowerAssetDetails struct { + // asset id + Id string `json:"id"` + // asset type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _PowerAssetDetails PowerAssetDetails + +// NewPowerAssetDetails instantiates a new PowerAssetDetails 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 NewPowerAssetDetails(id string, type_ string) *PowerAssetDetails { + this := PowerAssetDetails{} + this.Id = id + this.Type = type_ + return &this +} + +// NewPowerAssetDetailsWithDefaults instantiates a new PowerAssetDetails 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 NewPowerAssetDetailsWithDefaults() *PowerAssetDetails { + this := PowerAssetDetails{} + return &this +} + +// GetId returns the Id field value +func (o *PowerAssetDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *PowerAssetDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PowerAssetDetails) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value +func (o *PowerAssetDetails) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PowerAssetDetails) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PowerAssetDetails) SetType(v string) { + o.Type = v +} + +func (o PowerAssetDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerAssetDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerAssetDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPowerAssetDetails := _PowerAssetDetails{} + + err = json.Unmarshal(data, &varPowerAssetDetails) + + if err != nil { + return err + } + + *o = PowerAssetDetails(varPowerAssetDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerAssetDetails struct { + value *PowerAssetDetails + isSet bool +} + +func (v NullablePowerAssetDetails) Get() *PowerAssetDetails { + return v.value +} + +func (v *NullablePowerAssetDetails) Set(val *PowerAssetDetails) { + v.value = val + v.isSet = true +} + +func (v NullablePowerAssetDetails) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerAssetDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerAssetDetails(val *PowerAssetDetails) *NullablePowerAssetDetails { + return &NullablePowerAssetDetails{value: val, isSet: true} +} + +func (v NullablePowerAssetDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerAssetDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_cabinet_rating_value_with_unit.go b/services/smartview/model_power_cabinet_rating_value_with_unit.go new file mode 100644 index 00000000..79a19880 --- /dev/null +++ b/services/smartview/model_power_cabinet_rating_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerCabinetRatingValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerCabinetRatingValueWithUnit{} + +// PowerCabinetRatingValueWithUnit cabinetRating details +type PowerCabinetRatingValueWithUnit struct { + // CabinetRating reading unit + Unit string `json:"unit"` + // CabinetRating reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerCabinetRatingValueWithUnit PowerCabinetRatingValueWithUnit + +// NewPowerCabinetRatingValueWithUnit instantiates a new PowerCabinetRatingValueWithUnit 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 NewPowerCabinetRatingValueWithUnit(unit string, value string) *PowerCabinetRatingValueWithUnit { + this := PowerCabinetRatingValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerCabinetRatingValueWithUnitWithDefaults instantiates a new PowerCabinetRatingValueWithUnit 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 NewPowerCabinetRatingValueWithUnitWithDefaults() *PowerCabinetRatingValueWithUnit { + this := PowerCabinetRatingValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerCabinetRatingValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerCabinetRatingValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerCabinetRatingValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerCabinetRatingValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerCabinetRatingValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerCabinetRatingValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerCabinetRatingValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerCabinetRatingValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerCabinetRatingValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerCabinetRatingValueWithUnit := _PowerCabinetRatingValueWithUnit{} + + err = json.Unmarshal(data, &varPowerCabinetRatingValueWithUnit) + + if err != nil { + return err + } + + *o = PowerCabinetRatingValueWithUnit(varPowerCabinetRatingValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerCabinetRatingValueWithUnit struct { + value *PowerCabinetRatingValueWithUnit + isSet bool +} + +func (v NullablePowerCabinetRatingValueWithUnit) Get() *PowerCabinetRatingValueWithUnit { + return v.value +} + +func (v *NullablePowerCabinetRatingValueWithUnit) Set(val *PowerCabinetRatingValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerCabinetRatingValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerCabinetRatingValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerCabinetRatingValueWithUnit(val *PowerCabinetRatingValueWithUnit) *NullablePowerCabinetRatingValueWithUnit { + return &NullablePowerCabinetRatingValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerCabinetRatingValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerCabinetRatingValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_contractual_power_value_with_unit.go b/services/smartview/model_power_contractual_power_value_with_unit.go new file mode 100644 index 00000000..58772ce4 --- /dev/null +++ b/services/smartview/model_power_contractual_power_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerContractualPowerValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerContractualPowerValueWithUnit{} + +// PowerContractualPowerValueWithUnit contractualPower details +type PowerContractualPowerValueWithUnit struct { + // ContractualPower reading unit + Unit string `json:"unit"` + // ContractualPower reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerContractualPowerValueWithUnit PowerContractualPowerValueWithUnit + +// NewPowerContractualPowerValueWithUnit instantiates a new PowerContractualPowerValueWithUnit 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 NewPowerContractualPowerValueWithUnit(unit string, value string) *PowerContractualPowerValueWithUnit { + this := PowerContractualPowerValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerContractualPowerValueWithUnitWithDefaults instantiates a new PowerContractualPowerValueWithUnit 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 NewPowerContractualPowerValueWithUnitWithDefaults() *PowerContractualPowerValueWithUnit { + this := PowerContractualPowerValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerContractualPowerValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerContractualPowerValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerContractualPowerValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerContractualPowerValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerContractualPowerValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerContractualPowerValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerContractualPowerValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerContractualPowerValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerContractualPowerValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerContractualPowerValueWithUnit := _PowerContractualPowerValueWithUnit{} + + err = json.Unmarshal(data, &varPowerContractualPowerValueWithUnit) + + if err != nil { + return err + } + + *o = PowerContractualPowerValueWithUnit(varPowerContractualPowerValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerContractualPowerValueWithUnit struct { + value *PowerContractualPowerValueWithUnit + isSet bool +} + +func (v NullablePowerContractualPowerValueWithUnit) Get() *PowerContractualPowerValueWithUnit { + return v.value +} + +func (v *NullablePowerContractualPowerValueWithUnit) Set(val *PowerContractualPowerValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerContractualPowerValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerContractualPowerValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerContractualPowerValueWithUnit(val *PowerContractualPowerValueWithUnit) *NullablePowerContractualPowerValueWithUnit { + return &NullablePowerContractualPowerValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerContractualPowerValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerContractualPowerValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_current_post_request.go b/services/smartview/model_power_current_post_request.go new file mode 100644 index 00000000..3bbcca30 --- /dev/null +++ b/services/smartview/model_power_current_post_request.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerCurrentPostRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerCurrentPostRequest{} + +// PowerCurrentPostRequest date and corresponding values +type PowerCurrentPostRequest struct { + // Customer Account Number + AccountNo *string `json:"accountNo,omitempty"` + // trending values + Ibx *string `json:"ibx,omitempty"` + LevelType *PowerCurrentPostRequestLevelType `json:"levelType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerCurrentPostRequest PowerCurrentPostRequest + +// NewPowerCurrentPostRequest instantiates a new PowerCurrentPostRequest 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 NewPowerCurrentPostRequest() *PowerCurrentPostRequest { + this := PowerCurrentPostRequest{} + return &this +} + +// NewPowerCurrentPostRequestWithDefaults instantiates a new PowerCurrentPostRequest 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 NewPowerCurrentPostRequestWithDefaults() *PowerCurrentPostRequest { + this := PowerCurrentPostRequest{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *PowerCurrentPostRequest) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerCurrentPostRequest) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *PowerCurrentPostRequest) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *PowerCurrentPostRequest) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *PowerCurrentPostRequest) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerCurrentPostRequest) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *PowerCurrentPostRequest) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *PowerCurrentPostRequest) SetIbx(v string) { + o.Ibx = &v +} + +// GetLevelType returns the LevelType field value if set, zero value otherwise. +func (o *PowerCurrentPostRequest) GetLevelType() PowerCurrentPostRequestLevelType { + if o == nil || IsNil(o.LevelType) { + var ret PowerCurrentPostRequestLevelType + return ret + } + return *o.LevelType +} + +// GetLevelTypeOk returns a tuple with the LevelType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerCurrentPostRequest) GetLevelTypeOk() (*PowerCurrentPostRequestLevelType, bool) { + if o == nil || IsNil(o.LevelType) { + return nil, false + } + return o.LevelType, true +} + +// HasLevelType returns a boolean if a field has been set. +func (o *PowerCurrentPostRequest) HasLevelType() bool { + if o != nil && !IsNil(o.LevelType) { + return true + } + + return false +} + +// SetLevelType gets a reference to the given PowerCurrentPostRequestLevelType and assigns it to the LevelType field. +func (o *PowerCurrentPostRequest) SetLevelType(v PowerCurrentPostRequestLevelType) { + o.LevelType = &v +} + +func (o PowerCurrentPostRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerCurrentPostRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.LevelType) { + toSerialize["levelType"] = o.LevelType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerCurrentPostRequest) UnmarshalJSON(data []byte) (err error) { + varPowerCurrentPostRequest := _PowerCurrentPostRequest{} + + err = json.Unmarshal(data, &varPowerCurrentPostRequest) + + if err != nil { + return err + } + + *o = PowerCurrentPostRequest(varPowerCurrentPostRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "ibx") + delete(additionalProperties, "levelType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerCurrentPostRequest struct { + value *PowerCurrentPostRequest + isSet bool +} + +func (v NullablePowerCurrentPostRequest) Get() *PowerCurrentPostRequest { + return v.value +} + +func (v *NullablePowerCurrentPostRequest) Set(val *PowerCurrentPostRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePowerCurrentPostRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerCurrentPostRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerCurrentPostRequest(val *PowerCurrentPostRequest) *NullablePowerCurrentPostRequest { + return &NullablePowerCurrentPostRequest{value: val, isSet: true} +} + +func (v NullablePowerCurrentPostRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerCurrentPostRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_current_post_request_level_type.go b/services/smartview/model_power_current_post_request_level_type.go new file mode 100644 index 00000000..8e30af40 --- /dev/null +++ b/services/smartview/model_power_current_post_request_level_type.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// PowerCurrentPostRequestLevelType level type allowed value [ibx|cage|cabinet|circuit] +type PowerCurrentPostRequestLevelType string + +// List of PowerCurrentPostRequest_levelType +const ( + POWERCURRENTPOSTREQUESTLEVELTYPE_IBX PowerCurrentPostRequestLevelType = "ibx" + POWERCURRENTPOSTREQUESTLEVELTYPE_CAGE PowerCurrentPostRequestLevelType = "cage" + POWERCURRENTPOSTREQUESTLEVELTYPE_CABINET PowerCurrentPostRequestLevelType = "cabinet" + POWERCURRENTPOSTREQUESTLEVELTYPE_CIRCUIT PowerCurrentPostRequestLevelType = "circuit" +) + +// All allowed values of PowerCurrentPostRequestLevelType enum +var AllowedPowerCurrentPostRequestLevelTypeEnumValues = []PowerCurrentPostRequestLevelType{ + "ibx", + "cage", + "cabinet", + "circuit", +} + +func (v *PowerCurrentPostRequestLevelType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerCurrentPostRequestLevelType(value) + for _, existing := range AllowedPowerCurrentPostRequestLevelTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerCurrentPostRequestLevelType", value) +} + +// NewPowerCurrentPostRequestLevelTypeFromValue returns a pointer to a valid PowerCurrentPostRequestLevelType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerCurrentPostRequestLevelTypeFromValue(v string) (*PowerCurrentPostRequestLevelType, error) { + ev := PowerCurrentPostRequestLevelType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerCurrentPostRequestLevelType: valid values are %v", v, AllowedPowerCurrentPostRequestLevelTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerCurrentPostRequestLevelType) IsValid() bool { + for _, existing := range AllowedPowerCurrentPostRequestLevelTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerCurrentPostRequest_levelType value +func (v PowerCurrentPostRequestLevelType) Ptr() *PowerCurrentPostRequestLevelType { + return &v +} + +type NullablePowerCurrentPostRequestLevelType struct { + value *PowerCurrentPostRequestLevelType + isSet bool +} + +func (v NullablePowerCurrentPostRequestLevelType) Get() *PowerCurrentPostRequestLevelType { + return v.value +} + +func (v *NullablePowerCurrentPostRequestLevelType) Set(val *PowerCurrentPostRequestLevelType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerCurrentPostRequestLevelType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerCurrentPostRequestLevelType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerCurrentPostRequestLevelType(val *PowerCurrentPostRequestLevelType) *NullablePowerCurrentPostRequestLevelType { + return &NullablePowerCurrentPostRequestLevelType{value: val, isSet: true} +} + +func (v NullablePowerCurrentPostRequestLevelType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerCurrentPostRequestLevelType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_power_current_value_with_unit.go b/services/smartview/model_power_current_value_with_unit.go new file mode 100644 index 00000000..49a7ce11 --- /dev/null +++ b/services/smartview/model_power_current_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerCurrentValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerCurrentValueWithUnit{} + +// PowerCurrentValueWithUnit current details +type PowerCurrentValueWithUnit struct { + // Current reading unit + Unit string `json:"unit"` + // Current reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerCurrentValueWithUnit PowerCurrentValueWithUnit + +// NewPowerCurrentValueWithUnit instantiates a new PowerCurrentValueWithUnit 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 NewPowerCurrentValueWithUnit(unit string, value string) *PowerCurrentValueWithUnit { + this := PowerCurrentValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerCurrentValueWithUnitWithDefaults instantiates a new PowerCurrentValueWithUnit 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 NewPowerCurrentValueWithUnitWithDefaults() *PowerCurrentValueWithUnit { + this := PowerCurrentValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerCurrentValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerCurrentValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerCurrentValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerCurrentValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerCurrentValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerCurrentValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerCurrentValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerCurrentValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerCurrentValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerCurrentValueWithUnit := _PowerCurrentValueWithUnit{} + + err = json.Unmarshal(data, &varPowerCurrentValueWithUnit) + + if err != nil { + return err + } + + *o = PowerCurrentValueWithUnit(varPowerCurrentValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerCurrentValueWithUnit struct { + value *PowerCurrentValueWithUnit + isSet bool +} + +func (v NullablePowerCurrentValueWithUnit) Get() *PowerCurrentValueWithUnit { + return v.value +} + +func (v *NullablePowerCurrentValueWithUnit) Set(val *PowerCurrentValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerCurrentValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerCurrentValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerCurrentValueWithUnit(val *PowerCurrentValueWithUnit) *NullablePowerCurrentValueWithUnit { + return &NullablePowerCurrentValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerCurrentValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerCurrentValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data.go b/services/smartview/model_power_data.go new file mode 100644 index 00000000..d41035de --- /dev/null +++ b/services/smartview/model_power_data.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerData{} + +// PowerData struct for PowerData +type PowerData struct { + PayLoad *PowerDataPayLoad `json:"payLoad,omitempty"` + Status *AssetDetailResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerData PowerData + +// NewPowerData instantiates a new PowerData 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 NewPowerData() *PowerData { + this := PowerData{} + return &this +} + +// NewPowerDataWithDefaults instantiates a new PowerData 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 NewPowerDataWithDefaults() *PowerData { + this := PowerData{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *PowerData) GetPayLoad() PowerDataPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret PowerDataPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerData) GetPayLoadOk() (*PowerDataPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *PowerData) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given PowerDataPayLoad and assigns it to the PayLoad field. +func (o *PowerData) SetPayLoad(v PowerDataPayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PowerData) GetStatus() AssetDetailResponseStatus { + if o == nil || IsNil(o.Status) { + var ret AssetDetailResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerData) GetStatusOk() (*AssetDetailResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PowerData) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetDetailResponseStatus and assigns it to the Status field. +func (o *PowerData) SetStatus(v AssetDetailResponseStatus) { + o.Status = &v +} + +func (o PowerData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerData) UnmarshalJSON(data []byte) (err error) { + varPowerData := _PowerData{} + + err = json.Unmarshal(data, &varPowerData) + + if err != nil { + return err + } + + *o = PowerData(varPowerData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerData struct { + value *PowerData + isSet bool +} + +func (v NullablePowerData) Get() *PowerData { + return v.value +} + +func (v *NullablePowerData) Set(val *PowerData) { + v.value = val + v.isSet = true +} + +func (v NullablePowerData) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerData(val *PowerData) *NullablePowerData { + return &NullablePowerData{value: val, isSet: true} +} + +func (v NullablePowerData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data_error.go b/services/smartview/model_power_data_error.go new file mode 100644 index 00000000..224a44b2 --- /dev/null +++ b/services/smartview/model_power_data_error.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerDataError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerDataError{} + +// PowerDataError struct for PowerDataError +type PowerDataError struct { + PayLoad map[string]interface{} `json:"payLoad,omitempty"` + Status *PowerDataErrorStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerDataError PowerDataError + +// NewPowerDataError instantiates a new PowerDataError 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 NewPowerDataError() *PowerDataError { + this := PowerDataError{} + return &this +} + +// NewPowerDataErrorWithDefaults instantiates a new PowerDataError 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 NewPowerDataErrorWithDefaults() *PowerDataError { + this := PowerDataError{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *PowerDataError) GetPayLoad() map[string]interface{} { + if o == nil || IsNil(o.PayLoad) { + var ret map[string]interface{} + return ret + } + return o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataError) GetPayLoadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PayLoad) { + return map[string]interface{}{}, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *PowerDataError) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given map[string]interface{} and assigns it to the PayLoad field. +func (o *PowerDataError) SetPayLoad(v map[string]interface{}) { + o.PayLoad = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PowerDataError) GetStatus() PowerDataErrorStatus { + if o == nil || IsNil(o.Status) { + var ret PowerDataErrorStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataError) GetStatusOk() (*PowerDataErrorStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PowerDataError) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given PowerDataErrorStatus and assigns it to the Status field. +func (o *PowerDataError) SetStatus(v PowerDataErrorStatus) { + o.Status = &v +} + +func (o PowerDataError) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerDataError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerDataError) UnmarshalJSON(data []byte) (err error) { + varPowerDataError := _PowerDataError{} + + err = json.Unmarshal(data, &varPowerDataError) + + if err != nil { + return err + } + + *o = PowerDataError(varPowerDataError) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerDataError struct { + value *PowerDataError + isSet bool +} + +func (v NullablePowerDataError) Get() *PowerDataError { + return v.value +} + +func (v *NullablePowerDataError) Set(val *PowerDataError) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataError) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataError(val *PowerDataError) *NullablePowerDataError { + return &NullablePowerDataError{value: val, isSet: true} +} + +func (v NullablePowerDataError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data_error_status.go b/services/smartview/model_power_data_error_status.go new file mode 100644 index 00000000..108d86fd --- /dev/null +++ b/services/smartview/model_power_data_error_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerDataErrorStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerDataErrorStatus{} + +// PowerDataErrorStatus struct for PowerDataErrorStatus +type PowerDataErrorStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *ErrorStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerDataErrorStatus PowerDataErrorStatus + +// NewPowerDataErrorStatus instantiates a new PowerDataErrorStatus 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 NewPowerDataErrorStatus() *PowerDataErrorStatus { + this := PowerDataErrorStatus{} + return &this +} + +// NewPowerDataErrorStatusWithDefaults instantiates a new PowerDataErrorStatus 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 NewPowerDataErrorStatusWithDefaults() *PowerDataErrorStatus { + this := PowerDataErrorStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *PowerDataErrorStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataErrorStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *PowerDataErrorStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *PowerDataErrorStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *PowerDataErrorStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataErrorStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *PowerDataErrorStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *PowerDataErrorStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *PowerDataErrorStatus) GetType() ErrorStatusType { + if o == nil || IsNil(o.Type) { + var ret ErrorStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataErrorStatus) GetTypeOk() (*ErrorStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PowerDataErrorStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given ErrorStatusType and assigns it to the Type field. +func (o *PowerDataErrorStatus) SetType(v ErrorStatusType) { + o.Type = &v +} + +func (o PowerDataErrorStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerDataErrorStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerDataErrorStatus) UnmarshalJSON(data []byte) (err error) { + varPowerDataErrorStatus := _PowerDataErrorStatus{} + + err = json.Unmarshal(data, &varPowerDataErrorStatus) + + if err != nil { + return err + } + + *o = PowerDataErrorStatus(varPowerDataErrorStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerDataErrorStatus struct { + value *PowerDataErrorStatus + isSet bool +} + +func (v NullablePowerDataErrorStatus) Get() *PowerDataErrorStatus { + return v.value +} + +func (v *NullablePowerDataErrorStatus) Set(val *PowerDataErrorStatus) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataErrorStatus) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataErrorStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataErrorStatus(val *PowerDataErrorStatus) *NullablePowerDataErrorStatus { + return &NullablePowerDataErrorStatus{value: val, isSet: true} +} + +func (v NullablePowerDataErrorStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataErrorStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data_ibx.go b/services/smartview/model_power_data_ibx.go new file mode 100644 index 00000000..8857f17c --- /dev/null +++ b/services/smartview/model_power_data_ibx.go @@ -0,0 +1,1023 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerDataIBX type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerDataIBX{} + +// PowerDataIBX struct for PowerDataIBX +type PowerDataIBX struct { + // customer account number + AccountNo *string `json:"accountNo,omitempty"` + // instantaneous current amp reading on circuits + Amps *float32 `json:"amps,omitempty"` + // maximum kVA draw allowed for the cabinet + CabinetRating *float32 `json:"cabinetRating,omitempty"` + ComparisonData *ComparisonData `json:"comparisonData,omitempty"` + // The maximum power draw contractually allowable in a private cage. example: 341.54 + ContractualKva *float32 `json:"contractualKva,omitempty"` + CustomerName *string `json:"customerName,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + // returns boolean based on breakertip alarm + IsAlarm *string `json:"isAlarm,omitempty"` + // power consumption in kva + Kva *float32 `json:"kva,omitempty"` + // measure of real power expressed in kilowatt applicable for ibxs that have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions + Kw *string `json:"kw,omitempty"` + // date-time when the latest value was updated (epoc - milliseconds). + LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` + LevelType *PowerDataPayLoadLevelType `json:"levelType,omitempty"` + // power hierarchy node levelValue linked to the power data + LevelValue *string `json:"levelValue,omitempty"` + PeakKvaLastSevenDays *float32 `json:"peakKvaLastSevenDays,omitempty"` + PeakKvaLastSevenDaysContractualKva *float32 `json:"peakKvaLastSevenDaysContractualKva,omitempty"` + PeakKvaLastSevenDaysPercentage *float32 `json:"peakKvaLastSevenDaysPercentage,omitempty"` + PeakKvaLastSevenDaysTime *int32 `json:"peakKvaLastSevenDaysTime,omitempty"` + // calculated field kva / contractualKva + PercentageKva *float32 `json:"percentageKva,omitempty"` + // The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be \"NA\" for AMER and APAC regions + PowerFactor *string `json:"powerFactor,omitempty"` + // the sum of instantaneous power draw reading on all the primary circuits within the levelType. + PrimaryKva *float32 `json:"primaryKva,omitempty"` + // date-time when the latest value was read in (epoc - milliseconds). + ReadingTime *string `json:"readingTime,omitempty"` + // the sum of instantaneous power draw reading on all the redundant circuits within the levelType. + RedundantKva *float32 `json:"redundantKva,omitempty"` + // circuit description when the levelType is circuit. Null otherwise. + SoldAmps *int32 `json:"soldAmps,omitempty"` + // maximum amp draw allowable on a circuit + SoldKva *float32 `json:"soldKva,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerDataIBX PowerDataIBX + +// NewPowerDataIBX instantiates a new PowerDataIBX 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 NewPowerDataIBX() *PowerDataIBX { + this := PowerDataIBX{} + return &this +} + +// NewPowerDataIBXWithDefaults instantiates a new PowerDataIBX 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 NewPowerDataIBXWithDefaults() *PowerDataIBX { + this := PowerDataIBX{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *PowerDataIBX) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *PowerDataIBX) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *PowerDataIBX) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetAmps returns the Amps field value if set, zero value otherwise. +func (o *PowerDataIBX) GetAmps() float32 { + if o == nil || IsNil(o.Amps) { + var ret float32 + return ret + } + return *o.Amps +} + +// GetAmpsOk returns a tuple with the Amps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetAmpsOk() (*float32, bool) { + if o == nil || IsNil(o.Amps) { + return nil, false + } + return o.Amps, true +} + +// HasAmps returns a boolean if a field has been set. +func (o *PowerDataIBX) HasAmps() bool { + if o != nil && !IsNil(o.Amps) { + return true + } + + return false +} + +// SetAmps gets a reference to the given float32 and assigns it to the Amps field. +func (o *PowerDataIBX) SetAmps(v float32) { + o.Amps = &v +} + +// GetCabinetRating returns the CabinetRating field value if set, zero value otherwise. +func (o *PowerDataIBX) GetCabinetRating() float32 { + if o == nil || IsNil(o.CabinetRating) { + var ret float32 + return ret + } + return *o.CabinetRating +} + +// GetCabinetRatingOk returns a tuple with the CabinetRating field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetCabinetRatingOk() (*float32, bool) { + if o == nil || IsNil(o.CabinetRating) { + return nil, false + } + return o.CabinetRating, true +} + +// HasCabinetRating returns a boolean if a field has been set. +func (o *PowerDataIBX) HasCabinetRating() bool { + if o != nil && !IsNil(o.CabinetRating) { + return true + } + + return false +} + +// SetCabinetRating gets a reference to the given float32 and assigns it to the CabinetRating field. +func (o *PowerDataIBX) SetCabinetRating(v float32) { + o.CabinetRating = &v +} + +// GetComparisonData returns the ComparisonData field value if set, zero value otherwise. +func (o *PowerDataIBX) GetComparisonData() ComparisonData { + if o == nil || IsNil(o.ComparisonData) { + var ret ComparisonData + return ret + } + return *o.ComparisonData +} + +// GetComparisonDataOk returns a tuple with the ComparisonData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetComparisonDataOk() (*ComparisonData, bool) { + if o == nil || IsNil(o.ComparisonData) { + return nil, false + } + return o.ComparisonData, true +} + +// HasComparisonData returns a boolean if a field has been set. +func (o *PowerDataIBX) HasComparisonData() bool { + if o != nil && !IsNil(o.ComparisonData) { + return true + } + + return false +} + +// SetComparisonData gets a reference to the given ComparisonData and assigns it to the ComparisonData field. +func (o *PowerDataIBX) SetComparisonData(v ComparisonData) { + o.ComparisonData = &v +} + +// GetContractualKva returns the ContractualKva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetContractualKva() float32 { + if o == nil || IsNil(o.ContractualKva) { + var ret float32 + return ret + } + return *o.ContractualKva +} + +// GetContractualKvaOk returns a tuple with the ContractualKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetContractualKvaOk() (*float32, bool) { + if o == nil || IsNil(o.ContractualKva) { + return nil, false + } + return o.ContractualKva, true +} + +// HasContractualKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasContractualKva() bool { + if o != nil && !IsNil(o.ContractualKva) { + return true + } + + return false +} + +// SetContractualKva gets a reference to the given float32 and assigns it to the ContractualKva field. +func (o *PowerDataIBX) SetContractualKva(v float32) { + o.ContractualKva = &v +} + +// GetCustomerName returns the CustomerName field value if set, zero value otherwise. +func (o *PowerDataIBX) GetCustomerName() string { + if o == nil || IsNil(o.CustomerName) { + var ret string + return ret + } + return *o.CustomerName +} + +// GetCustomerNameOk returns a tuple with the CustomerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetCustomerNameOk() (*string, bool) { + if o == nil || IsNil(o.CustomerName) { + return nil, false + } + return o.CustomerName, true +} + +// HasCustomerName returns a boolean if a field has been set. +func (o *PowerDataIBX) HasCustomerName() bool { + if o != nil && !IsNil(o.CustomerName) { + return true + } + + return false +} + +// SetCustomerName gets a reference to the given string and assigns it to the CustomerName field. +func (o *PowerDataIBX) SetCustomerName(v string) { + o.CustomerName = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *PowerDataIBX) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *PowerDataIBX) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *PowerDataIBX) SetIbx(v string) { + o.Ibx = &v +} + +// GetIsAlarm returns the IsAlarm field value if set, zero value otherwise. +func (o *PowerDataIBX) GetIsAlarm() string { + if o == nil || IsNil(o.IsAlarm) { + var ret string + return ret + } + return *o.IsAlarm +} + +// GetIsAlarmOk returns a tuple with the IsAlarm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetIsAlarmOk() (*string, bool) { + if o == nil || IsNil(o.IsAlarm) { + return nil, false + } + return o.IsAlarm, true +} + +// HasIsAlarm returns a boolean if a field has been set. +func (o *PowerDataIBX) HasIsAlarm() bool { + if o != nil && !IsNil(o.IsAlarm) { + return true + } + + return false +} + +// SetIsAlarm gets a reference to the given string and assigns it to the IsAlarm field. +func (o *PowerDataIBX) SetIsAlarm(v string) { + o.IsAlarm = &v +} + +// GetKva returns the Kva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetKva() float32 { + if o == nil || IsNil(o.Kva) { + var ret float32 + return ret + } + return *o.Kva +} + +// GetKvaOk returns a tuple with the Kva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetKvaOk() (*float32, bool) { + if o == nil || IsNil(o.Kva) { + return nil, false + } + return o.Kva, true +} + +// HasKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasKva() bool { + if o != nil && !IsNil(o.Kva) { + return true + } + + return false +} + +// SetKva gets a reference to the given float32 and assigns it to the Kva field. +func (o *PowerDataIBX) SetKva(v float32) { + o.Kva = &v +} + +// GetKw returns the Kw field value if set, zero value otherwise. +func (o *PowerDataIBX) GetKw() string { + if o == nil || IsNil(o.Kw) { + var ret string + return ret + } + return *o.Kw +} + +// GetKwOk returns a tuple with the Kw field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetKwOk() (*string, bool) { + if o == nil || IsNil(o.Kw) { + return nil, false + } + return o.Kw, true +} + +// HasKw returns a boolean if a field has been set. +func (o *PowerDataIBX) HasKw() bool { + if o != nil && !IsNil(o.Kw) { + return true + } + + return false +} + +// SetKw gets a reference to the given string and assigns it to the Kw field. +func (o *PowerDataIBX) SetKw(v string) { + o.Kw = &v +} + +// GetLastUpdatedTime returns the LastUpdatedTime field value if set, zero value otherwise. +func (o *PowerDataIBX) GetLastUpdatedTime() string { + if o == nil || IsNil(o.LastUpdatedTime) { + var ret string + return ret + } + return *o.LastUpdatedTime +} + +// GetLastUpdatedTimeOk returns a tuple with the LastUpdatedTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetLastUpdatedTimeOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedTime) { + return nil, false + } + return o.LastUpdatedTime, true +} + +// HasLastUpdatedTime returns a boolean if a field has been set. +func (o *PowerDataIBX) HasLastUpdatedTime() bool { + if o != nil && !IsNil(o.LastUpdatedTime) { + return true + } + + return false +} + +// SetLastUpdatedTime gets a reference to the given string and assigns it to the LastUpdatedTime field. +func (o *PowerDataIBX) SetLastUpdatedTime(v string) { + o.LastUpdatedTime = &v +} + +// GetLevelType returns the LevelType field value if set, zero value otherwise. +func (o *PowerDataIBX) GetLevelType() PowerDataPayLoadLevelType { + if o == nil || IsNil(o.LevelType) { + var ret PowerDataPayLoadLevelType + return ret + } + return *o.LevelType +} + +// GetLevelTypeOk returns a tuple with the LevelType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetLevelTypeOk() (*PowerDataPayLoadLevelType, bool) { + if o == nil || IsNil(o.LevelType) { + return nil, false + } + return o.LevelType, true +} + +// HasLevelType returns a boolean if a field has been set. +func (o *PowerDataIBX) HasLevelType() bool { + if o != nil && !IsNil(o.LevelType) { + return true + } + + return false +} + +// SetLevelType gets a reference to the given PowerDataPayLoadLevelType and assigns it to the LevelType field. +func (o *PowerDataIBX) SetLevelType(v PowerDataPayLoadLevelType) { + o.LevelType = &v +} + +// GetLevelValue returns the LevelValue field value if set, zero value otherwise. +func (o *PowerDataIBX) GetLevelValue() string { + if o == nil || IsNil(o.LevelValue) { + var ret string + return ret + } + return *o.LevelValue +} + +// GetLevelValueOk returns a tuple with the LevelValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetLevelValueOk() (*string, bool) { + if o == nil || IsNil(o.LevelValue) { + return nil, false + } + return o.LevelValue, true +} + +// HasLevelValue returns a boolean if a field has been set. +func (o *PowerDataIBX) HasLevelValue() bool { + if o != nil && !IsNil(o.LevelValue) { + return true + } + + return false +} + +// SetLevelValue gets a reference to the given string and assigns it to the LevelValue field. +func (o *PowerDataIBX) SetLevelValue(v string) { + o.LevelValue = &v +} + +// GetPeakKvaLastSevenDays returns the PeakKvaLastSevenDays field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPeakKvaLastSevenDays() float32 { + if o == nil || IsNil(o.PeakKvaLastSevenDays) { + var ret float32 + return ret + } + return *o.PeakKvaLastSevenDays +} + +// GetPeakKvaLastSevenDaysOk returns a tuple with the PeakKvaLastSevenDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysOk() (*float32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDays) { + return nil, false + } + return o.PeakKvaLastSevenDays, true +} + +// HasPeakKvaLastSevenDays returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPeakKvaLastSevenDays() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDays) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDays gets a reference to the given float32 and assigns it to the PeakKvaLastSevenDays field. +func (o *PowerDataIBX) SetPeakKvaLastSevenDays(v float32) { + o.PeakKvaLastSevenDays = &v +} + +// GetPeakKvaLastSevenDaysContractualKva returns the PeakKvaLastSevenDaysContractualKva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysContractualKva() float32 { + if o == nil || IsNil(o.PeakKvaLastSevenDaysContractualKva) { + var ret float32 + return ret + } + return *o.PeakKvaLastSevenDaysContractualKva +} + +// GetPeakKvaLastSevenDaysContractualKvaOk returns a tuple with the PeakKvaLastSevenDaysContractualKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysContractualKvaOk() (*float32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDaysContractualKva) { + return nil, false + } + return o.PeakKvaLastSevenDaysContractualKva, true +} + +// HasPeakKvaLastSevenDaysContractualKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPeakKvaLastSevenDaysContractualKva() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDaysContractualKva) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDaysContractualKva gets a reference to the given float32 and assigns it to the PeakKvaLastSevenDaysContractualKva field. +func (o *PowerDataIBX) SetPeakKvaLastSevenDaysContractualKva(v float32) { + o.PeakKvaLastSevenDaysContractualKva = &v +} + +// GetPeakKvaLastSevenDaysPercentage returns the PeakKvaLastSevenDaysPercentage field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysPercentage() float32 { + if o == nil || IsNil(o.PeakKvaLastSevenDaysPercentage) { + var ret float32 + return ret + } + return *o.PeakKvaLastSevenDaysPercentage +} + +// GetPeakKvaLastSevenDaysPercentageOk returns a tuple with the PeakKvaLastSevenDaysPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysPercentageOk() (*float32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDaysPercentage) { + return nil, false + } + return o.PeakKvaLastSevenDaysPercentage, true +} + +// HasPeakKvaLastSevenDaysPercentage returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPeakKvaLastSevenDaysPercentage() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDaysPercentage) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDaysPercentage gets a reference to the given float32 and assigns it to the PeakKvaLastSevenDaysPercentage field. +func (o *PowerDataIBX) SetPeakKvaLastSevenDaysPercentage(v float32) { + o.PeakKvaLastSevenDaysPercentage = &v +} + +// GetPeakKvaLastSevenDaysTime returns the PeakKvaLastSevenDaysTime field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysTime() int32 { + if o == nil || IsNil(o.PeakKvaLastSevenDaysTime) { + var ret int32 + return ret + } + return *o.PeakKvaLastSevenDaysTime +} + +// GetPeakKvaLastSevenDaysTimeOk returns a tuple with the PeakKvaLastSevenDaysTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPeakKvaLastSevenDaysTimeOk() (*int32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDaysTime) { + return nil, false + } + return o.PeakKvaLastSevenDaysTime, true +} + +// HasPeakKvaLastSevenDaysTime returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPeakKvaLastSevenDaysTime() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDaysTime) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDaysTime gets a reference to the given int32 and assigns it to the PeakKvaLastSevenDaysTime field. +func (o *PowerDataIBX) SetPeakKvaLastSevenDaysTime(v int32) { + o.PeakKvaLastSevenDaysTime = &v +} + +// GetPercentageKva returns the PercentageKva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPercentageKva() float32 { + if o == nil || IsNil(o.PercentageKva) { + var ret float32 + return ret + } + return *o.PercentageKva +} + +// GetPercentageKvaOk returns a tuple with the PercentageKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPercentageKvaOk() (*float32, bool) { + if o == nil || IsNil(o.PercentageKva) { + return nil, false + } + return o.PercentageKva, true +} + +// HasPercentageKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPercentageKva() bool { + if o != nil && !IsNil(o.PercentageKva) { + return true + } + + return false +} + +// SetPercentageKva gets a reference to the given float32 and assigns it to the PercentageKva field. +func (o *PowerDataIBX) SetPercentageKva(v float32) { + o.PercentageKva = &v +} + +// GetPowerFactor returns the PowerFactor field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPowerFactor() string { + if o == nil || IsNil(o.PowerFactor) { + var ret string + return ret + } + return *o.PowerFactor +} + +// GetPowerFactorOk returns a tuple with the PowerFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPowerFactorOk() (*string, bool) { + if o == nil || IsNil(o.PowerFactor) { + return nil, false + } + return o.PowerFactor, true +} + +// HasPowerFactor returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPowerFactor() bool { + if o != nil && !IsNil(o.PowerFactor) { + return true + } + + return false +} + +// SetPowerFactor gets a reference to the given string and assigns it to the PowerFactor field. +func (o *PowerDataIBX) SetPowerFactor(v string) { + o.PowerFactor = &v +} + +// GetPrimaryKva returns the PrimaryKva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetPrimaryKva() float32 { + if o == nil || IsNil(o.PrimaryKva) { + var ret float32 + return ret + } + return *o.PrimaryKva +} + +// GetPrimaryKvaOk returns a tuple with the PrimaryKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetPrimaryKvaOk() (*float32, bool) { + if o == nil || IsNil(o.PrimaryKva) { + return nil, false + } + return o.PrimaryKva, true +} + +// HasPrimaryKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasPrimaryKva() bool { + if o != nil && !IsNil(o.PrimaryKva) { + return true + } + + return false +} + +// SetPrimaryKva gets a reference to the given float32 and assigns it to the PrimaryKva field. +func (o *PowerDataIBX) SetPrimaryKva(v float32) { + o.PrimaryKva = &v +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *PowerDataIBX) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *PowerDataIBX) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *PowerDataIBX) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetRedundantKva returns the RedundantKva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetRedundantKva() float32 { + if o == nil || IsNil(o.RedundantKva) { + var ret float32 + return ret + } + return *o.RedundantKva +} + +// GetRedundantKvaOk returns a tuple with the RedundantKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetRedundantKvaOk() (*float32, bool) { + if o == nil || IsNil(o.RedundantKva) { + return nil, false + } + return o.RedundantKva, true +} + +// HasRedundantKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasRedundantKva() bool { + if o != nil && !IsNil(o.RedundantKva) { + return true + } + + return false +} + +// SetRedundantKva gets a reference to the given float32 and assigns it to the RedundantKva field. +func (o *PowerDataIBX) SetRedundantKva(v float32) { + o.RedundantKva = &v +} + +// GetSoldAmps returns the SoldAmps field value if set, zero value otherwise. +func (o *PowerDataIBX) GetSoldAmps() int32 { + if o == nil || IsNil(o.SoldAmps) { + var ret int32 + return ret + } + return *o.SoldAmps +} + +// GetSoldAmpsOk returns a tuple with the SoldAmps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetSoldAmpsOk() (*int32, bool) { + if o == nil || IsNil(o.SoldAmps) { + return nil, false + } + return o.SoldAmps, true +} + +// HasSoldAmps returns a boolean if a field has been set. +func (o *PowerDataIBX) HasSoldAmps() bool { + if o != nil && !IsNil(o.SoldAmps) { + return true + } + + return false +} + +// SetSoldAmps gets a reference to the given int32 and assigns it to the SoldAmps field. +func (o *PowerDataIBX) SetSoldAmps(v int32) { + o.SoldAmps = &v +} + +// GetSoldKva returns the SoldKva field value if set, zero value otherwise. +func (o *PowerDataIBX) GetSoldKva() float32 { + if o == nil || IsNil(o.SoldKva) { + var ret float32 + return ret + } + return *o.SoldKva +} + +// GetSoldKvaOk returns a tuple with the SoldKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataIBX) GetSoldKvaOk() (*float32, bool) { + if o == nil || IsNil(o.SoldKva) { + return nil, false + } + return o.SoldKva, true +} + +// HasSoldKva returns a boolean if a field has been set. +func (o *PowerDataIBX) HasSoldKva() bool { + if o != nil && !IsNil(o.SoldKva) { + return true + } + + return false +} + +// SetSoldKva gets a reference to the given float32 and assigns it to the SoldKva field. +func (o *PowerDataIBX) SetSoldKva(v float32) { + o.SoldKva = &v +} + +func (o PowerDataIBX) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerDataIBX) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Amps) { + toSerialize["amps"] = o.Amps + } + if !IsNil(o.CabinetRating) { + toSerialize["cabinetRating"] = o.CabinetRating + } + if !IsNil(o.ComparisonData) { + toSerialize["comparisonData"] = o.ComparisonData + } + if !IsNil(o.ContractualKva) { + toSerialize["contractualKva"] = o.ContractualKva + } + if !IsNil(o.CustomerName) { + toSerialize["customerName"] = o.CustomerName + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.IsAlarm) { + toSerialize["isAlarm"] = o.IsAlarm + } + if !IsNil(o.Kva) { + toSerialize["kva"] = o.Kva + } + if !IsNil(o.Kw) { + toSerialize["kw"] = o.Kw + } + if !IsNil(o.LastUpdatedTime) { + toSerialize["lastUpdatedTime"] = o.LastUpdatedTime + } + if !IsNil(o.LevelType) { + toSerialize["levelType"] = o.LevelType + } + if !IsNil(o.LevelValue) { + toSerialize["levelValue"] = o.LevelValue + } + if !IsNil(o.PeakKvaLastSevenDays) { + toSerialize["peakKvaLastSevenDays"] = o.PeakKvaLastSevenDays + } + if !IsNil(o.PeakKvaLastSevenDaysContractualKva) { + toSerialize["peakKvaLastSevenDaysContractualKva"] = o.PeakKvaLastSevenDaysContractualKva + } + if !IsNil(o.PeakKvaLastSevenDaysPercentage) { + toSerialize["peakKvaLastSevenDaysPercentage"] = o.PeakKvaLastSevenDaysPercentage + } + if !IsNil(o.PeakKvaLastSevenDaysTime) { + toSerialize["peakKvaLastSevenDaysTime"] = o.PeakKvaLastSevenDaysTime + } + if !IsNil(o.PercentageKva) { + toSerialize["percentageKva"] = o.PercentageKva + } + if !IsNil(o.PowerFactor) { + toSerialize["powerFactor"] = o.PowerFactor + } + if !IsNil(o.PrimaryKva) { + toSerialize["primaryKva"] = o.PrimaryKva + } + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + if !IsNil(o.RedundantKva) { + toSerialize["redundantKva"] = o.RedundantKva + } + if !IsNil(o.SoldAmps) { + toSerialize["soldAmps"] = o.SoldAmps + } + if !IsNil(o.SoldKva) { + toSerialize["soldKva"] = o.SoldKva + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerDataIBX) UnmarshalJSON(data []byte) (err error) { + varPowerDataIBX := _PowerDataIBX{} + + err = json.Unmarshal(data, &varPowerDataIBX) + + if err != nil { + return err + } + + *o = PowerDataIBX(varPowerDataIBX) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "amps") + delete(additionalProperties, "cabinetRating") + delete(additionalProperties, "comparisonData") + delete(additionalProperties, "contractualKva") + delete(additionalProperties, "customerName") + delete(additionalProperties, "ibx") + delete(additionalProperties, "isAlarm") + delete(additionalProperties, "kva") + delete(additionalProperties, "kw") + delete(additionalProperties, "lastUpdatedTime") + delete(additionalProperties, "levelType") + delete(additionalProperties, "levelValue") + delete(additionalProperties, "peakKvaLastSevenDays") + delete(additionalProperties, "peakKvaLastSevenDaysContractualKva") + delete(additionalProperties, "peakKvaLastSevenDaysPercentage") + delete(additionalProperties, "peakKvaLastSevenDaysTime") + delete(additionalProperties, "percentageKva") + delete(additionalProperties, "powerFactor") + delete(additionalProperties, "primaryKva") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "redundantKva") + delete(additionalProperties, "soldAmps") + delete(additionalProperties, "soldKva") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerDataIBX struct { + value *PowerDataIBX + isSet bool +} + +func (v NullablePowerDataIBX) Get() *PowerDataIBX { + return v.value +} + +func (v *NullablePowerDataIBX) Set(val *PowerDataIBX) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataIBX) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataIBX) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataIBX(val *PowerDataIBX) *NullablePowerDataIBX { + return &NullablePowerDataIBX{value: val, isSet: true} +} + +func (v NullablePowerDataIBX) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataIBX) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data_pay_load.go b/services/smartview/model_power_data_pay_load.go new file mode 100644 index 00000000..d4fd4ee3 --- /dev/null +++ b/services/smartview/model_power_data_pay_load.go @@ -0,0 +1,1023 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerDataPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerDataPayLoad{} + +// PowerDataPayLoad struct for PowerDataPayLoad +type PowerDataPayLoad struct { + // customer account number + AccountNo *string `json:"accountNo,omitempty"` + // instantaneous current amp reading on circuits + Amps *float32 `json:"amps,omitempty"` + // maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise. + CabinetRating *float32 `json:"cabinetRating,omitempty"` + ComparisonData *ComparisonData `json:"comparisonData,omitempty"` + // The maximum power draw contractually allowable in a private cage. + ContractualKva *float32 `json:"contractualKva,omitempty"` + CustomerName *string `json:"customerName,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + // returns boolean based on breakertip alarm + IsAlarm *string `json:"isAlarm,omitempty"` + // power consumption in kva + Kva *float32 `json:"kva,omitempty"` + // measure of real power expressed in kilowatt applicable for ibxs that have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions + Kw *string `json:"kw,omitempty"` + // date-time when the latest value was updated (epoc - milliseconds). + LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` + LevelType *PowerDataPayLoadLevelType `json:"levelType,omitempty"` + // power hierarchy node levelValue linked to the power data + LevelValue *string `json:"levelValue,omitempty"` + PeakKvaLastSevenDays *float32 `json:"peakKvaLastSevenDays,omitempty"` + PeakKvaLastSevenDaysContractualKva *float32 `json:"peakKvaLastSevenDaysContractualKva,omitempty"` + PeakKvaLastSevenDaysPercentage *float32 `json:"peakKvaLastSevenDaysPercentage,omitempty"` + PeakKvaLastSevenDaysTime *int32 `json:"peakKvaLastSevenDaysTime,omitempty"` + // calculated field kva / contractualKva + PercentageKva *float32 `json:"percentageKva,omitempty"` + // The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be \"NA\" for AMER and APAC regions + PowerFactor *string `json:"powerFactor,omitempty"` + // the sum of instantaneous power draw reading on all the primary circuits within the levelType. + PrimaryKva *float32 `json:"primaryKva,omitempty"` + // date-time when the latest value was read in (epoc - milliseconds). + ReadingTime *string `json:"readingTime,omitempty"` + // the sum of instantaneous power draw reading on all the redundant circuits within the levelType. + RedundantKva *float32 `json:"redundantKva,omitempty"` + // circuit description when the levelType is circuit. Null otherwise. + SoldAmps *int32 `json:"soldAmps,omitempty"` + // maximum amp draw allowable on a circuit + SoldKva *float32 `json:"soldKva,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerDataPayLoad PowerDataPayLoad + +// NewPowerDataPayLoad instantiates a new PowerDataPayLoad 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 NewPowerDataPayLoad() *PowerDataPayLoad { + this := PowerDataPayLoad{} + return &this +} + +// NewPowerDataPayLoadWithDefaults instantiates a new PowerDataPayLoad 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 NewPowerDataPayLoadWithDefaults() *PowerDataPayLoad { + this := PowerDataPayLoad{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *PowerDataPayLoad) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetAmps returns the Amps field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetAmps() float32 { + if o == nil || IsNil(o.Amps) { + var ret float32 + return ret + } + return *o.Amps +} + +// GetAmpsOk returns a tuple with the Amps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetAmpsOk() (*float32, bool) { + if o == nil || IsNil(o.Amps) { + return nil, false + } + return o.Amps, true +} + +// HasAmps returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasAmps() bool { + if o != nil && !IsNil(o.Amps) { + return true + } + + return false +} + +// SetAmps gets a reference to the given float32 and assigns it to the Amps field. +func (o *PowerDataPayLoad) SetAmps(v float32) { + o.Amps = &v +} + +// GetCabinetRating returns the CabinetRating field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetCabinetRating() float32 { + if o == nil || IsNil(o.CabinetRating) { + var ret float32 + return ret + } + return *o.CabinetRating +} + +// GetCabinetRatingOk returns a tuple with the CabinetRating field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetCabinetRatingOk() (*float32, bool) { + if o == nil || IsNil(o.CabinetRating) { + return nil, false + } + return o.CabinetRating, true +} + +// HasCabinetRating returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasCabinetRating() bool { + if o != nil && !IsNil(o.CabinetRating) { + return true + } + + return false +} + +// SetCabinetRating gets a reference to the given float32 and assigns it to the CabinetRating field. +func (o *PowerDataPayLoad) SetCabinetRating(v float32) { + o.CabinetRating = &v +} + +// GetComparisonData returns the ComparisonData field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetComparisonData() ComparisonData { + if o == nil || IsNil(o.ComparisonData) { + var ret ComparisonData + return ret + } + return *o.ComparisonData +} + +// GetComparisonDataOk returns a tuple with the ComparisonData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetComparisonDataOk() (*ComparisonData, bool) { + if o == nil || IsNil(o.ComparisonData) { + return nil, false + } + return o.ComparisonData, true +} + +// HasComparisonData returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasComparisonData() bool { + if o != nil && !IsNil(o.ComparisonData) { + return true + } + + return false +} + +// SetComparisonData gets a reference to the given ComparisonData and assigns it to the ComparisonData field. +func (o *PowerDataPayLoad) SetComparisonData(v ComparisonData) { + o.ComparisonData = &v +} + +// GetContractualKva returns the ContractualKva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetContractualKva() float32 { + if o == nil || IsNil(o.ContractualKva) { + var ret float32 + return ret + } + return *o.ContractualKva +} + +// GetContractualKvaOk returns a tuple with the ContractualKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetContractualKvaOk() (*float32, bool) { + if o == nil || IsNil(o.ContractualKva) { + return nil, false + } + return o.ContractualKva, true +} + +// HasContractualKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasContractualKva() bool { + if o != nil && !IsNil(o.ContractualKva) { + return true + } + + return false +} + +// SetContractualKva gets a reference to the given float32 and assigns it to the ContractualKva field. +func (o *PowerDataPayLoad) SetContractualKva(v float32) { + o.ContractualKva = &v +} + +// GetCustomerName returns the CustomerName field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetCustomerName() string { + if o == nil || IsNil(o.CustomerName) { + var ret string + return ret + } + return *o.CustomerName +} + +// GetCustomerNameOk returns a tuple with the CustomerName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetCustomerNameOk() (*string, bool) { + if o == nil || IsNil(o.CustomerName) { + return nil, false + } + return o.CustomerName, true +} + +// HasCustomerName returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasCustomerName() bool { + if o != nil && !IsNil(o.CustomerName) { + return true + } + + return false +} + +// SetCustomerName gets a reference to the given string and assigns it to the CustomerName field. +func (o *PowerDataPayLoad) SetCustomerName(v string) { + o.CustomerName = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *PowerDataPayLoad) SetIbx(v string) { + o.Ibx = &v +} + +// GetIsAlarm returns the IsAlarm field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetIsAlarm() string { + if o == nil || IsNil(o.IsAlarm) { + var ret string + return ret + } + return *o.IsAlarm +} + +// GetIsAlarmOk returns a tuple with the IsAlarm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetIsAlarmOk() (*string, bool) { + if o == nil || IsNil(o.IsAlarm) { + return nil, false + } + return o.IsAlarm, true +} + +// HasIsAlarm returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasIsAlarm() bool { + if o != nil && !IsNil(o.IsAlarm) { + return true + } + + return false +} + +// SetIsAlarm gets a reference to the given string and assigns it to the IsAlarm field. +func (o *PowerDataPayLoad) SetIsAlarm(v string) { + o.IsAlarm = &v +} + +// GetKva returns the Kva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetKva() float32 { + if o == nil || IsNil(o.Kva) { + var ret float32 + return ret + } + return *o.Kva +} + +// GetKvaOk returns a tuple with the Kva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetKvaOk() (*float32, bool) { + if o == nil || IsNil(o.Kva) { + return nil, false + } + return o.Kva, true +} + +// HasKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasKva() bool { + if o != nil && !IsNil(o.Kva) { + return true + } + + return false +} + +// SetKva gets a reference to the given float32 and assigns it to the Kva field. +func (o *PowerDataPayLoad) SetKva(v float32) { + o.Kva = &v +} + +// GetKw returns the Kw field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetKw() string { + if o == nil || IsNil(o.Kw) { + var ret string + return ret + } + return *o.Kw +} + +// GetKwOk returns a tuple with the Kw field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetKwOk() (*string, bool) { + if o == nil || IsNil(o.Kw) { + return nil, false + } + return o.Kw, true +} + +// HasKw returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasKw() bool { + if o != nil && !IsNil(o.Kw) { + return true + } + + return false +} + +// SetKw gets a reference to the given string and assigns it to the Kw field. +func (o *PowerDataPayLoad) SetKw(v string) { + o.Kw = &v +} + +// GetLastUpdatedTime returns the LastUpdatedTime field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetLastUpdatedTime() string { + if o == nil || IsNil(o.LastUpdatedTime) { + var ret string + return ret + } + return *o.LastUpdatedTime +} + +// GetLastUpdatedTimeOk returns a tuple with the LastUpdatedTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetLastUpdatedTimeOk() (*string, bool) { + if o == nil || IsNil(o.LastUpdatedTime) { + return nil, false + } + return o.LastUpdatedTime, true +} + +// HasLastUpdatedTime returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasLastUpdatedTime() bool { + if o != nil && !IsNil(o.LastUpdatedTime) { + return true + } + + return false +} + +// SetLastUpdatedTime gets a reference to the given string and assigns it to the LastUpdatedTime field. +func (o *PowerDataPayLoad) SetLastUpdatedTime(v string) { + o.LastUpdatedTime = &v +} + +// GetLevelType returns the LevelType field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetLevelType() PowerDataPayLoadLevelType { + if o == nil || IsNil(o.LevelType) { + var ret PowerDataPayLoadLevelType + return ret + } + return *o.LevelType +} + +// GetLevelTypeOk returns a tuple with the LevelType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetLevelTypeOk() (*PowerDataPayLoadLevelType, bool) { + if o == nil || IsNil(o.LevelType) { + return nil, false + } + return o.LevelType, true +} + +// HasLevelType returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasLevelType() bool { + if o != nil && !IsNil(o.LevelType) { + return true + } + + return false +} + +// SetLevelType gets a reference to the given PowerDataPayLoadLevelType and assigns it to the LevelType field. +func (o *PowerDataPayLoad) SetLevelType(v PowerDataPayLoadLevelType) { + o.LevelType = &v +} + +// GetLevelValue returns the LevelValue field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetLevelValue() string { + if o == nil || IsNil(o.LevelValue) { + var ret string + return ret + } + return *o.LevelValue +} + +// GetLevelValueOk returns a tuple with the LevelValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetLevelValueOk() (*string, bool) { + if o == nil || IsNil(o.LevelValue) { + return nil, false + } + return o.LevelValue, true +} + +// HasLevelValue returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasLevelValue() bool { + if o != nil && !IsNil(o.LevelValue) { + return true + } + + return false +} + +// SetLevelValue gets a reference to the given string and assigns it to the LevelValue field. +func (o *PowerDataPayLoad) SetLevelValue(v string) { + o.LevelValue = &v +} + +// GetPeakKvaLastSevenDays returns the PeakKvaLastSevenDays field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDays() float32 { + if o == nil || IsNil(o.PeakKvaLastSevenDays) { + var ret float32 + return ret + } + return *o.PeakKvaLastSevenDays +} + +// GetPeakKvaLastSevenDaysOk returns a tuple with the PeakKvaLastSevenDays field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysOk() (*float32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDays) { + return nil, false + } + return o.PeakKvaLastSevenDays, true +} + +// HasPeakKvaLastSevenDays returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPeakKvaLastSevenDays() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDays) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDays gets a reference to the given float32 and assigns it to the PeakKvaLastSevenDays field. +func (o *PowerDataPayLoad) SetPeakKvaLastSevenDays(v float32) { + o.PeakKvaLastSevenDays = &v +} + +// GetPeakKvaLastSevenDaysContractualKva returns the PeakKvaLastSevenDaysContractualKva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysContractualKva() float32 { + if o == nil || IsNil(o.PeakKvaLastSevenDaysContractualKva) { + var ret float32 + return ret + } + return *o.PeakKvaLastSevenDaysContractualKva +} + +// GetPeakKvaLastSevenDaysContractualKvaOk returns a tuple with the PeakKvaLastSevenDaysContractualKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysContractualKvaOk() (*float32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDaysContractualKva) { + return nil, false + } + return o.PeakKvaLastSevenDaysContractualKva, true +} + +// HasPeakKvaLastSevenDaysContractualKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPeakKvaLastSevenDaysContractualKva() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDaysContractualKva) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDaysContractualKva gets a reference to the given float32 and assigns it to the PeakKvaLastSevenDaysContractualKva field. +func (o *PowerDataPayLoad) SetPeakKvaLastSevenDaysContractualKva(v float32) { + o.PeakKvaLastSevenDaysContractualKva = &v +} + +// GetPeakKvaLastSevenDaysPercentage returns the PeakKvaLastSevenDaysPercentage field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysPercentage() float32 { + if o == nil || IsNil(o.PeakKvaLastSevenDaysPercentage) { + var ret float32 + return ret + } + return *o.PeakKvaLastSevenDaysPercentage +} + +// GetPeakKvaLastSevenDaysPercentageOk returns a tuple with the PeakKvaLastSevenDaysPercentage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysPercentageOk() (*float32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDaysPercentage) { + return nil, false + } + return o.PeakKvaLastSevenDaysPercentage, true +} + +// HasPeakKvaLastSevenDaysPercentage returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPeakKvaLastSevenDaysPercentage() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDaysPercentage) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDaysPercentage gets a reference to the given float32 and assigns it to the PeakKvaLastSevenDaysPercentage field. +func (o *PowerDataPayLoad) SetPeakKvaLastSevenDaysPercentage(v float32) { + o.PeakKvaLastSevenDaysPercentage = &v +} + +// GetPeakKvaLastSevenDaysTime returns the PeakKvaLastSevenDaysTime field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysTime() int32 { + if o == nil || IsNil(o.PeakKvaLastSevenDaysTime) { + var ret int32 + return ret + } + return *o.PeakKvaLastSevenDaysTime +} + +// GetPeakKvaLastSevenDaysTimeOk returns a tuple with the PeakKvaLastSevenDaysTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPeakKvaLastSevenDaysTimeOk() (*int32, bool) { + if o == nil || IsNil(o.PeakKvaLastSevenDaysTime) { + return nil, false + } + return o.PeakKvaLastSevenDaysTime, true +} + +// HasPeakKvaLastSevenDaysTime returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPeakKvaLastSevenDaysTime() bool { + if o != nil && !IsNil(o.PeakKvaLastSevenDaysTime) { + return true + } + + return false +} + +// SetPeakKvaLastSevenDaysTime gets a reference to the given int32 and assigns it to the PeakKvaLastSevenDaysTime field. +func (o *PowerDataPayLoad) SetPeakKvaLastSevenDaysTime(v int32) { + o.PeakKvaLastSevenDaysTime = &v +} + +// GetPercentageKva returns the PercentageKva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPercentageKva() float32 { + if o == nil || IsNil(o.PercentageKva) { + var ret float32 + return ret + } + return *o.PercentageKva +} + +// GetPercentageKvaOk returns a tuple with the PercentageKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPercentageKvaOk() (*float32, bool) { + if o == nil || IsNil(o.PercentageKva) { + return nil, false + } + return o.PercentageKva, true +} + +// HasPercentageKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPercentageKva() bool { + if o != nil && !IsNil(o.PercentageKva) { + return true + } + + return false +} + +// SetPercentageKva gets a reference to the given float32 and assigns it to the PercentageKva field. +func (o *PowerDataPayLoad) SetPercentageKva(v float32) { + o.PercentageKva = &v +} + +// GetPowerFactor returns the PowerFactor field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPowerFactor() string { + if o == nil || IsNil(o.PowerFactor) { + var ret string + return ret + } + return *o.PowerFactor +} + +// GetPowerFactorOk returns a tuple with the PowerFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPowerFactorOk() (*string, bool) { + if o == nil || IsNil(o.PowerFactor) { + return nil, false + } + return o.PowerFactor, true +} + +// HasPowerFactor returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPowerFactor() bool { + if o != nil && !IsNil(o.PowerFactor) { + return true + } + + return false +} + +// SetPowerFactor gets a reference to the given string and assigns it to the PowerFactor field. +func (o *PowerDataPayLoad) SetPowerFactor(v string) { + o.PowerFactor = &v +} + +// GetPrimaryKva returns the PrimaryKva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetPrimaryKva() float32 { + if o == nil || IsNil(o.PrimaryKva) { + var ret float32 + return ret + } + return *o.PrimaryKva +} + +// GetPrimaryKvaOk returns a tuple with the PrimaryKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetPrimaryKvaOk() (*float32, bool) { + if o == nil || IsNil(o.PrimaryKva) { + return nil, false + } + return o.PrimaryKva, true +} + +// HasPrimaryKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasPrimaryKva() bool { + if o != nil && !IsNil(o.PrimaryKva) { + return true + } + + return false +} + +// SetPrimaryKva gets a reference to the given float32 and assigns it to the PrimaryKva field. +func (o *PowerDataPayLoad) SetPrimaryKva(v float32) { + o.PrimaryKva = &v +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *PowerDataPayLoad) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetRedundantKva returns the RedundantKva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetRedundantKva() float32 { + if o == nil || IsNil(o.RedundantKva) { + var ret float32 + return ret + } + return *o.RedundantKva +} + +// GetRedundantKvaOk returns a tuple with the RedundantKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetRedundantKvaOk() (*float32, bool) { + if o == nil || IsNil(o.RedundantKva) { + return nil, false + } + return o.RedundantKva, true +} + +// HasRedundantKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasRedundantKva() bool { + if o != nil && !IsNil(o.RedundantKva) { + return true + } + + return false +} + +// SetRedundantKva gets a reference to the given float32 and assigns it to the RedundantKva field. +func (o *PowerDataPayLoad) SetRedundantKva(v float32) { + o.RedundantKva = &v +} + +// GetSoldAmps returns the SoldAmps field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetSoldAmps() int32 { + if o == nil || IsNil(o.SoldAmps) { + var ret int32 + return ret + } + return *o.SoldAmps +} + +// GetSoldAmpsOk returns a tuple with the SoldAmps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetSoldAmpsOk() (*int32, bool) { + if o == nil || IsNil(o.SoldAmps) { + return nil, false + } + return o.SoldAmps, true +} + +// HasSoldAmps returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasSoldAmps() bool { + if o != nil && !IsNil(o.SoldAmps) { + return true + } + + return false +} + +// SetSoldAmps gets a reference to the given int32 and assigns it to the SoldAmps field. +func (o *PowerDataPayLoad) SetSoldAmps(v int32) { + o.SoldAmps = &v +} + +// GetSoldKva returns the SoldKva field value if set, zero value otherwise. +func (o *PowerDataPayLoad) GetSoldKva() float32 { + if o == nil || IsNil(o.SoldKva) { + var ret float32 + return ret + } + return *o.SoldKva +} + +// GetSoldKvaOk returns a tuple with the SoldKva field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataPayLoad) GetSoldKvaOk() (*float32, bool) { + if o == nil || IsNil(o.SoldKva) { + return nil, false + } + return o.SoldKva, true +} + +// HasSoldKva returns a boolean if a field has been set. +func (o *PowerDataPayLoad) HasSoldKva() bool { + if o != nil && !IsNil(o.SoldKva) { + return true + } + + return false +} + +// SetSoldKva gets a reference to the given float32 and assigns it to the SoldKva field. +func (o *PowerDataPayLoad) SetSoldKva(v float32) { + o.SoldKva = &v +} + +func (o PowerDataPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerDataPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Amps) { + toSerialize["amps"] = o.Amps + } + if !IsNil(o.CabinetRating) { + toSerialize["cabinetRating"] = o.CabinetRating + } + if !IsNil(o.ComparisonData) { + toSerialize["comparisonData"] = o.ComparisonData + } + if !IsNil(o.ContractualKva) { + toSerialize["contractualKva"] = o.ContractualKva + } + if !IsNil(o.CustomerName) { + toSerialize["customerName"] = o.CustomerName + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.IsAlarm) { + toSerialize["isAlarm"] = o.IsAlarm + } + if !IsNil(o.Kva) { + toSerialize["kva"] = o.Kva + } + if !IsNil(o.Kw) { + toSerialize["kw"] = o.Kw + } + if !IsNil(o.LastUpdatedTime) { + toSerialize["lastUpdatedTime"] = o.LastUpdatedTime + } + if !IsNil(o.LevelType) { + toSerialize["levelType"] = o.LevelType + } + if !IsNil(o.LevelValue) { + toSerialize["levelValue"] = o.LevelValue + } + if !IsNil(o.PeakKvaLastSevenDays) { + toSerialize["peakKvaLastSevenDays"] = o.PeakKvaLastSevenDays + } + if !IsNil(o.PeakKvaLastSevenDaysContractualKva) { + toSerialize["peakKvaLastSevenDaysContractualKva"] = o.PeakKvaLastSevenDaysContractualKva + } + if !IsNil(o.PeakKvaLastSevenDaysPercentage) { + toSerialize["peakKvaLastSevenDaysPercentage"] = o.PeakKvaLastSevenDaysPercentage + } + if !IsNil(o.PeakKvaLastSevenDaysTime) { + toSerialize["peakKvaLastSevenDaysTime"] = o.PeakKvaLastSevenDaysTime + } + if !IsNil(o.PercentageKva) { + toSerialize["percentageKva"] = o.PercentageKva + } + if !IsNil(o.PowerFactor) { + toSerialize["powerFactor"] = o.PowerFactor + } + if !IsNil(o.PrimaryKva) { + toSerialize["primaryKva"] = o.PrimaryKva + } + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + if !IsNil(o.RedundantKva) { + toSerialize["redundantKva"] = o.RedundantKva + } + if !IsNil(o.SoldAmps) { + toSerialize["soldAmps"] = o.SoldAmps + } + if !IsNil(o.SoldKva) { + toSerialize["soldKva"] = o.SoldKva + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerDataPayLoad) UnmarshalJSON(data []byte) (err error) { + varPowerDataPayLoad := _PowerDataPayLoad{} + + err = json.Unmarshal(data, &varPowerDataPayLoad) + + if err != nil { + return err + } + + *o = PowerDataPayLoad(varPowerDataPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "amps") + delete(additionalProperties, "cabinetRating") + delete(additionalProperties, "comparisonData") + delete(additionalProperties, "contractualKva") + delete(additionalProperties, "customerName") + delete(additionalProperties, "ibx") + delete(additionalProperties, "isAlarm") + delete(additionalProperties, "kva") + delete(additionalProperties, "kw") + delete(additionalProperties, "lastUpdatedTime") + delete(additionalProperties, "levelType") + delete(additionalProperties, "levelValue") + delete(additionalProperties, "peakKvaLastSevenDays") + delete(additionalProperties, "peakKvaLastSevenDaysContractualKva") + delete(additionalProperties, "peakKvaLastSevenDaysPercentage") + delete(additionalProperties, "peakKvaLastSevenDaysTime") + delete(additionalProperties, "percentageKva") + delete(additionalProperties, "powerFactor") + delete(additionalProperties, "primaryKva") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "redundantKva") + delete(additionalProperties, "soldAmps") + delete(additionalProperties, "soldKva") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerDataPayLoad struct { + value *PowerDataPayLoad + isSet bool +} + +func (v NullablePowerDataPayLoad) Get() *PowerDataPayLoad { + return v.value +} + +func (v *NullablePowerDataPayLoad) Set(val *PowerDataPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataPayLoad(val *PowerDataPayLoad) *NullablePowerDataPayLoad { + return &NullablePowerDataPayLoad{value: val, isSet: true} +} + +func (v NullablePowerDataPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data_pay_load_level_type.go b/services/smartview/model_power_data_pay_load_level_type.go new file mode 100644 index 00000000..9d5361ca --- /dev/null +++ b/services/smartview/model_power_data_pay_load_level_type.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// PowerDataPayLoadLevelType power hierarchy node levelType linked to the power data +type PowerDataPayLoadLevelType string + +// List of PowerData_payLoad_levelType +const ( + POWERDATAPAYLOADLEVELTYPE_IBX PowerDataPayLoadLevelType = "ibx" + POWERDATAPAYLOADLEVELTYPE_CAGE PowerDataPayLoadLevelType = "cage" + POWERDATAPAYLOADLEVELTYPE_CABINET PowerDataPayLoadLevelType = "cabinet" + POWERDATAPAYLOADLEVELTYPE_CIRCUIT PowerDataPayLoadLevelType = "circuit" +) + +// All allowed values of PowerDataPayLoadLevelType enum +var AllowedPowerDataPayLoadLevelTypeEnumValues = []PowerDataPayLoadLevelType{ + "ibx", + "cage", + "cabinet", + "circuit", +} + +func (v *PowerDataPayLoadLevelType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerDataPayLoadLevelType(value) + for _, existing := range AllowedPowerDataPayLoadLevelTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerDataPayLoadLevelType", value) +} + +// NewPowerDataPayLoadLevelTypeFromValue returns a pointer to a valid PowerDataPayLoadLevelType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerDataPayLoadLevelTypeFromValue(v string) (*PowerDataPayLoadLevelType, error) { + ev := PowerDataPayLoadLevelType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerDataPayLoadLevelType: valid values are %v", v, AllowedPowerDataPayLoadLevelTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerDataPayLoadLevelType) IsValid() bool { + for _, existing := range AllowedPowerDataPayLoadLevelTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerData_payLoad_levelType value +func (v PowerDataPayLoadLevelType) Ptr() *PowerDataPayLoadLevelType { + return &v +} + +type NullablePowerDataPayLoadLevelType struct { + value *PowerDataPayLoadLevelType + isSet bool +} + +func (v NullablePowerDataPayLoadLevelType) Get() *PowerDataPayLoadLevelType { + return v.value +} + +func (v *NullablePowerDataPayLoadLevelType) Set(val *PowerDataPayLoadLevelType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataPayLoadLevelType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataPayLoadLevelType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataPayLoadLevelType(val *PowerDataPayLoadLevelType) *NullablePowerDataPayLoadLevelType { + return &NullablePowerDataPayLoadLevelType{value: val, isSet: true} +} + +func (v NullablePowerDataPayLoadLevelType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataPayLoadLevelType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_power_data_response_ibx.go b/services/smartview/model_power_data_response_ibx.go new file mode 100644 index 00000000..5cb93011 --- /dev/null +++ b/services/smartview/model_power_data_response_ibx.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerDataResponseIBX type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerDataResponseIBX{} + +// PowerDataResponseIBX struct for PowerDataResponseIBX +type PowerDataResponseIBX struct { + PayLoad *PowerDataResponseIBXPayLoad `json:"payLoad,omitempty"` + Status *AssetDetailResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerDataResponseIBX PowerDataResponseIBX + +// NewPowerDataResponseIBX instantiates a new PowerDataResponseIBX 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 NewPowerDataResponseIBX() *PowerDataResponseIBX { + this := PowerDataResponseIBX{} + return &this +} + +// NewPowerDataResponseIBXWithDefaults instantiates a new PowerDataResponseIBX 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 NewPowerDataResponseIBXWithDefaults() *PowerDataResponseIBX { + this := PowerDataResponseIBX{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *PowerDataResponseIBX) GetPayLoad() PowerDataResponseIBXPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret PowerDataResponseIBXPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataResponseIBX) GetPayLoadOk() (*PowerDataResponseIBXPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *PowerDataResponseIBX) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given PowerDataResponseIBXPayLoad and assigns it to the PayLoad field. +func (o *PowerDataResponseIBX) SetPayLoad(v PowerDataResponseIBXPayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PowerDataResponseIBX) GetStatus() AssetDetailResponseStatus { + if o == nil || IsNil(o.Status) { + var ret AssetDetailResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataResponseIBX) GetStatusOk() (*AssetDetailResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PowerDataResponseIBX) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given AssetDetailResponseStatus and assigns it to the Status field. +func (o *PowerDataResponseIBX) SetStatus(v AssetDetailResponseStatus) { + o.Status = &v +} + +func (o PowerDataResponseIBX) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerDataResponseIBX) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerDataResponseIBX) UnmarshalJSON(data []byte) (err error) { + varPowerDataResponseIBX := _PowerDataResponseIBX{} + + err = json.Unmarshal(data, &varPowerDataResponseIBX) + + if err != nil { + return err + } + + *o = PowerDataResponseIBX(varPowerDataResponseIBX) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerDataResponseIBX struct { + value *PowerDataResponseIBX + isSet bool +} + +func (v NullablePowerDataResponseIBX) Get() *PowerDataResponseIBX { + return v.value +} + +func (v *NullablePowerDataResponseIBX) Set(val *PowerDataResponseIBX) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataResponseIBX) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataResponseIBX) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataResponseIBX(val *PowerDataResponseIBX) *NullablePowerDataResponseIBX { + return &NullablePowerDataResponseIBX{value: val, isSet: true} +} + +func (v NullablePowerDataResponseIBX) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataResponseIBX) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_data_response_ibx_pay_load.go b/services/smartview/model_power_data_response_ibx_pay_load.go new file mode 100644 index 00000000..325430ce --- /dev/null +++ b/services/smartview/model_power_data_response_ibx_pay_load.go @@ -0,0 +1,155 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerDataResponseIBXPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerDataResponseIBXPayLoad{} + +// PowerDataResponseIBXPayLoad struct for PowerDataResponseIBXPayLoad +type PowerDataResponseIBXPayLoad struct { + Data []PowerDataIBX `json:"data,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerDataResponseIBXPayLoad PowerDataResponseIBXPayLoad + +// NewPowerDataResponseIBXPayLoad instantiates a new PowerDataResponseIBXPayLoad 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 NewPowerDataResponseIBXPayLoad() *PowerDataResponseIBXPayLoad { + this := PowerDataResponseIBXPayLoad{} + return &this +} + +// NewPowerDataResponseIBXPayLoadWithDefaults instantiates a new PowerDataResponseIBXPayLoad 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 NewPowerDataResponseIBXPayLoadWithDefaults() *PowerDataResponseIBXPayLoad { + this := PowerDataResponseIBXPayLoad{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PowerDataResponseIBXPayLoad) GetData() []PowerDataIBX { + if o == nil || IsNil(o.Data) { + var ret []PowerDataIBX + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerDataResponseIBXPayLoad) GetDataOk() ([]PowerDataIBX, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PowerDataResponseIBXPayLoad) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []PowerDataIBX and assigns it to the Data field. +func (o *PowerDataResponseIBXPayLoad) SetData(v []PowerDataIBX) { + o.Data = v +} + +func (o PowerDataResponseIBXPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerDataResponseIBXPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerDataResponseIBXPayLoad) UnmarshalJSON(data []byte) (err error) { + varPowerDataResponseIBXPayLoad := _PowerDataResponseIBXPayLoad{} + + err = json.Unmarshal(data, &varPowerDataResponseIBXPayLoad) + + if err != nil { + return err + } + + *o = PowerDataResponseIBXPayLoad(varPowerDataResponseIBXPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerDataResponseIBXPayLoad struct { + value *PowerDataResponseIBXPayLoad + isSet bool +} + +func (v NullablePowerDataResponseIBXPayLoad) Get() *PowerDataResponseIBXPayLoad { + return v.value +} + +func (v *NullablePowerDataResponseIBXPayLoad) Set(val *PowerDataResponseIBXPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullablePowerDataResponseIBXPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerDataResponseIBXPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerDataResponseIBXPayLoad(val *PowerDataResponseIBXPayLoad) *NullablePowerDataResponseIBXPayLoad { + return &NullablePowerDataResponseIBXPayLoad{value: val, isSet: true} +} + +func (v NullablePowerDataResponseIBXPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerDataResponseIBXPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_hierarchy_node.go b/services/smartview/model_power_hierarchy_node.go new file mode 100644 index 00000000..64ff2651 --- /dev/null +++ b/services/smartview/model_power_hierarchy_node.go @@ -0,0 +1,269 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the PowerHierarchyNode type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerHierarchyNode{} + +// PowerHierarchyNode struct for PowerHierarchyNode +type PowerHierarchyNode struct { + // ibx, cage, cabinet nodes can have cage, cabinet and circuit, circuit nodes as children respectively. + Children []PowerHierarchyNode `json:"children,omitempty"` + // ibx code, cage unique space id, cabinet unique space id, circuit label for levelType ibx, cage, cabinet, circuit resp. + Label *string `json:"label,omitempty"` + LevelType *PowerHierarchyNodeLevelType `json:"levelType,omitempty"` + // ibx code, cage us id, cabinet us id, circuit number for levelType ibx, cage, cabinet, circuit resp. + LevelValue *string `json:"levelValue,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerHierarchyNode PowerHierarchyNode + +// NewPowerHierarchyNode instantiates a new PowerHierarchyNode 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 NewPowerHierarchyNode() *PowerHierarchyNode { + this := PowerHierarchyNode{} + return &this +} + +// NewPowerHierarchyNodeWithDefaults instantiates a new PowerHierarchyNode 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 NewPowerHierarchyNodeWithDefaults() *PowerHierarchyNode { + this := PowerHierarchyNode{} + return &this +} + +// GetChildren returns the Children field value if set, zero value otherwise. +func (o *PowerHierarchyNode) GetChildren() []PowerHierarchyNode { + if o == nil || IsNil(o.Children) { + var ret []PowerHierarchyNode + return ret + } + return o.Children +} + +// GetChildrenOk returns a tuple with the Children field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerHierarchyNode) GetChildrenOk() ([]PowerHierarchyNode, bool) { + if o == nil || IsNil(o.Children) { + return nil, false + } + return o.Children, true +} + +// HasChildren returns a boolean if a field has been set. +func (o *PowerHierarchyNode) HasChildren() bool { + if o != nil && !IsNil(o.Children) { + return true + } + + return false +} + +// SetChildren gets a reference to the given []PowerHierarchyNode and assigns it to the Children field. +func (o *PowerHierarchyNode) SetChildren(v []PowerHierarchyNode) { + o.Children = v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerHierarchyNode) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerHierarchyNode) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerHierarchyNode) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerHierarchyNode) SetLabel(v string) { + o.Label = &v +} + +// GetLevelType returns the LevelType field value if set, zero value otherwise. +func (o *PowerHierarchyNode) GetLevelType() PowerHierarchyNodeLevelType { + if o == nil || IsNil(o.LevelType) { + var ret PowerHierarchyNodeLevelType + return ret + } + return *o.LevelType +} + +// GetLevelTypeOk returns a tuple with the LevelType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerHierarchyNode) GetLevelTypeOk() (*PowerHierarchyNodeLevelType, bool) { + if o == nil || IsNil(o.LevelType) { + return nil, false + } + return o.LevelType, true +} + +// HasLevelType returns a boolean if a field has been set. +func (o *PowerHierarchyNode) HasLevelType() bool { + if o != nil && !IsNil(o.LevelType) { + return true + } + + return false +} + +// SetLevelType gets a reference to the given PowerHierarchyNodeLevelType and assigns it to the LevelType field. +func (o *PowerHierarchyNode) SetLevelType(v PowerHierarchyNodeLevelType) { + o.LevelType = &v +} + +// GetLevelValue returns the LevelValue field value if set, zero value otherwise. +func (o *PowerHierarchyNode) GetLevelValue() string { + if o == nil || IsNil(o.LevelValue) { + var ret string + return ret + } + return *o.LevelValue +} + +// GetLevelValueOk returns a tuple with the LevelValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerHierarchyNode) GetLevelValueOk() (*string, bool) { + if o == nil || IsNil(o.LevelValue) { + return nil, false + } + return o.LevelValue, true +} + +// HasLevelValue returns a boolean if a field has been set. +func (o *PowerHierarchyNode) HasLevelValue() bool { + if o != nil && !IsNil(o.LevelValue) { + return true + } + + return false +} + +// SetLevelValue gets a reference to the given string and assigns it to the LevelValue field. +func (o *PowerHierarchyNode) SetLevelValue(v string) { + o.LevelValue = &v +} + +func (o PowerHierarchyNode) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerHierarchyNode) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Children) { + toSerialize["children"] = o.Children + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.LevelType) { + toSerialize["levelType"] = o.LevelType + } + if !IsNil(o.LevelValue) { + toSerialize["levelValue"] = o.LevelValue + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerHierarchyNode) UnmarshalJSON(data []byte) (err error) { + varPowerHierarchyNode := _PowerHierarchyNode{} + + err = json.Unmarshal(data, &varPowerHierarchyNode) + + if err != nil { + return err + } + + *o = PowerHierarchyNode(varPowerHierarchyNode) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "children") + delete(additionalProperties, "label") + delete(additionalProperties, "levelType") + delete(additionalProperties, "levelValue") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerHierarchyNode struct { + value *PowerHierarchyNode + isSet bool +} + +func (v NullablePowerHierarchyNode) Get() *PowerHierarchyNode { + return v.value +} + +func (v *NullablePowerHierarchyNode) Set(val *PowerHierarchyNode) { + v.value = val + v.isSet = true +} + +func (v NullablePowerHierarchyNode) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerHierarchyNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerHierarchyNode(val *PowerHierarchyNode) *NullablePowerHierarchyNode { + return &NullablePowerHierarchyNode{value: val, isSet: true} +} + +func (v NullablePowerHierarchyNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerHierarchyNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_hierarchy_node_level_type.go b/services/smartview/model_power_hierarchy_node_level_type.go new file mode 100644 index 00000000..6d3981ab --- /dev/null +++ b/services/smartview/model_power_hierarchy_node_level_type.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// PowerHierarchyNodeLevelType levelType indicates which level in the power hierarchy does the node belong to. +type PowerHierarchyNodeLevelType string + +// List of PowerHierarchyNode_levelType +const ( + POWERHIERARCHYNODELEVELTYPE_IBX PowerHierarchyNodeLevelType = "ibx" + POWERHIERARCHYNODELEVELTYPE_CAGE PowerHierarchyNodeLevelType = "cage" + POWERHIERARCHYNODELEVELTYPE_CABINET PowerHierarchyNodeLevelType = "cabinet" + POWERHIERARCHYNODELEVELTYPE_CIRCUIT PowerHierarchyNodeLevelType = "circuit" +) + +// All allowed values of PowerHierarchyNodeLevelType enum +var AllowedPowerHierarchyNodeLevelTypeEnumValues = []PowerHierarchyNodeLevelType{ + "ibx", + "cage", + "cabinet", + "circuit", +} + +func (v *PowerHierarchyNodeLevelType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerHierarchyNodeLevelType(value) + for _, existing := range AllowedPowerHierarchyNodeLevelTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerHierarchyNodeLevelType", value) +} + +// NewPowerHierarchyNodeLevelTypeFromValue returns a pointer to a valid PowerHierarchyNodeLevelType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerHierarchyNodeLevelTypeFromValue(v string) (*PowerHierarchyNodeLevelType, error) { + ev := PowerHierarchyNodeLevelType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerHierarchyNodeLevelType: valid values are %v", v, AllowedPowerHierarchyNodeLevelTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerHierarchyNodeLevelType) IsValid() bool { + for _, existing := range AllowedPowerHierarchyNodeLevelTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerHierarchyNode_levelType value +func (v PowerHierarchyNodeLevelType) Ptr() *PowerHierarchyNodeLevelType { + return &v +} + +type NullablePowerHierarchyNodeLevelType struct { + value *PowerHierarchyNodeLevelType + isSet bool +} + +func (v NullablePowerHierarchyNodeLevelType) Get() *PowerHierarchyNodeLevelType { + return v.value +} + +func (v *NullablePowerHierarchyNodeLevelType) Set(val *PowerHierarchyNodeLevelType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerHierarchyNodeLevelType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerHierarchyNodeLevelType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerHierarchyNodeLevelType(val *PowerHierarchyNodeLevelType) *NullablePowerHierarchyNodeLevelType { + return &NullablePowerHierarchyNodeLevelType{value: val, isSet: true} +} + +func (v NullablePowerHierarchyNodeLevelType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerHierarchyNodeLevelType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_power_message.go b/services/smartview/model_power_message.go new file mode 100644 index 00000000..f699f378 --- /dev/null +++ b/services/smartview/model_power_message.go @@ -0,0 +1,197 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerMessage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerMessage{} + +// PowerMessage Power messages provide the latest power usage data at the circuit-level. +type PowerMessage struct { + AccountNumber string `json:"accountNumber"` + Ibx []string `json:"ibx"` + AdditionalProperties map[string]interface{} +} + +type _PowerMessage PowerMessage + +// NewPowerMessage instantiates a new PowerMessage 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 NewPowerMessage(accountNumber string, ibx []string) *PowerMessage { + this := PowerMessage{} + this.AccountNumber = accountNumber + this.Ibx = ibx + return &this +} + +// NewPowerMessageWithDefaults instantiates a new PowerMessage 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 NewPowerMessageWithDefaults() *PowerMessage { + this := PowerMessage{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value +func (o *PowerMessage) GetAccountNumber() string { + if o == nil { + var ret string + return ret + } + + return o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value +// and a boolean to check if the value has been set. +func (o *PowerMessage) GetAccountNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountNumber, true +} + +// SetAccountNumber sets field value +func (o *PowerMessage) SetAccountNumber(v string) { + o.AccountNumber = v +} + +// GetIbx returns the Ibx field value +func (o *PowerMessage) GetIbx() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *PowerMessage) GetIbxOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ibx, true +} + +// SetIbx sets field value +func (o *PowerMessage) SetIbx(v []string) { + o.Ibx = v +} + +func (o PowerMessage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerMessage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountNumber"] = o.AccountNumber + toSerialize["ibx"] = o.Ibx + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerMessage) 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{ + "accountNumber", + "ibx", + } + + 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) + } + } + + varPowerMessage := _PowerMessage{} + + err = json.Unmarshal(data, &varPowerMessage) + + if err != nil { + return err + } + + *o = PowerMessage(varPowerMessage) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "ibx") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerMessage struct { + value *PowerMessage + isSet bool +} + +func (v NullablePowerMessage) Get() *PowerMessage { + return v.value +} + +func (v *NullablePowerMessage) Set(val *PowerMessage) { + v.value = val + v.isSet = true +} + +func (v NullablePowerMessage) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerMessage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerMessage(val *PowerMessage) *NullablePowerMessage { + return &NullablePowerMessage{value: val, isSet: true} +} + +func (v NullablePowerMessage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerMessage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_message_data.go b/services/smartview/model_power_message_data.go new file mode 100644 index 00000000..78d460ff --- /dev/null +++ b/services/smartview/model_power_message_data.go @@ -0,0 +1,200 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerMessageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerMessageData{} + +// PowerMessageData power message data +type PowerMessageData struct { + Data Power `json:"data"` + // message type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _PowerMessageData PowerMessageData + +// NewPowerMessageData instantiates a new PowerMessageData 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 NewPowerMessageData(data Power, type_ string) *PowerMessageData { + this := PowerMessageData{} + this.Data = data + this.Type = type_ + return &this +} + +// NewPowerMessageDataWithDefaults instantiates a new PowerMessageData 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 NewPowerMessageDataWithDefaults() *PowerMessageData { + this := PowerMessageData{} + var type_ string = "power" + this.Type = type_ + return &this +} + +// GetData returns the Data field value +func (o *PowerMessageData) GetData() Power { + if o == nil { + var ret Power + 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 *PowerMessageData) GetDataOk() (*Power, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PowerMessageData) SetData(v Power) { + o.Data = v +} + +// GetType returns the Type field value +func (o *PowerMessageData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *PowerMessageData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PowerMessageData) SetType(v string) { + o.Type = v +} + +func (o PowerMessageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerMessageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerMessageData) 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", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPowerMessageData := _PowerMessageData{} + + err = json.Unmarshal(data, &varPowerMessageData) + + if err != nil { + return err + } + + *o = PowerMessageData(varPowerMessageData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerMessageData struct { + value *PowerMessageData + isSet bool +} + +func (v NullablePowerMessageData) Get() *PowerMessageData { + return v.value +} + +func (v *NullablePowerMessageData) Set(val *PowerMessageData) { + v.value = val + v.isSet = true +} + +func (v NullablePowerMessageData) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerMessageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerMessageData(val *PowerMessageData) *NullablePowerMessageData { + return &NullablePowerMessageData{value: val, isSet: true} +} + +func (v NullablePowerMessageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerMessageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go b/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go new file mode 100644 index 00000000..70327b54 --- /dev/null +++ b/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerPeakLastSevenDaysContractualPowerValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPeakLastSevenDaysContractualPowerValueWithUnit{} + +// PowerPeakLastSevenDaysContractualPowerValueWithUnit peakLastSevenDaysContractualPower details +type PowerPeakLastSevenDaysContractualPowerValueWithUnit struct { + // PeakLastSevenDaysContractualPower reading unit + Unit string `json:"unit"` + // PeakLastSevenDaysContractualPower reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerPeakLastSevenDaysContractualPowerValueWithUnit PowerPeakLastSevenDaysContractualPowerValueWithUnit + +// NewPowerPeakLastSevenDaysContractualPowerValueWithUnit instantiates a new PowerPeakLastSevenDaysContractualPowerValueWithUnit 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 NewPowerPeakLastSevenDaysContractualPowerValueWithUnit(unit string, value string) *PowerPeakLastSevenDaysContractualPowerValueWithUnit { + this := PowerPeakLastSevenDaysContractualPowerValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerPeakLastSevenDaysContractualPowerValueWithUnitWithDefaults instantiates a new PowerPeakLastSevenDaysContractualPowerValueWithUnit 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 NewPowerPeakLastSevenDaysContractualPowerValueWithUnitWithDefaults() *PowerPeakLastSevenDaysContractualPowerValueWithUnit { + this := PowerPeakLastSevenDaysContractualPowerValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerPeakLastSevenDaysContractualPowerValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPeakLastSevenDaysContractualPowerValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPeakLastSevenDaysContractualPowerValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerPeakLastSevenDaysContractualPowerValueWithUnit := _PowerPeakLastSevenDaysContractualPowerValueWithUnit{} + + err = json.Unmarshal(data, &varPowerPeakLastSevenDaysContractualPowerValueWithUnit) + + if err != nil { + return err + } + + *o = PowerPeakLastSevenDaysContractualPowerValueWithUnit(varPowerPeakLastSevenDaysContractualPowerValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit struct { + value *PowerPeakLastSevenDaysContractualPowerValueWithUnit + isSet bool +} + +func (v NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit) Get() *PowerPeakLastSevenDaysContractualPowerValueWithUnit { + return v.value +} + +func (v *NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit) Set(val *PowerPeakLastSevenDaysContractualPowerValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPeakLastSevenDaysContractualPowerValueWithUnit(val *PowerPeakLastSevenDaysContractualPowerValueWithUnit) *NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit { + return &NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPeakLastSevenDaysContractualPowerValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go b/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go new file mode 100644 index 00000000..2944803f --- /dev/null +++ b/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerPeakLastSevenDaysRatioValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPeakLastSevenDaysRatioValueWithUnit{} + +// PowerPeakLastSevenDaysRatioValueWithUnit peakLastSevenDaysRatio details +type PowerPeakLastSevenDaysRatioValueWithUnit struct { + // PeakLastSevenDaysRatio reading unit + Unit string `json:"unit"` + // PeakLastSevenDaysRatio reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerPeakLastSevenDaysRatioValueWithUnit PowerPeakLastSevenDaysRatioValueWithUnit + +// NewPowerPeakLastSevenDaysRatioValueWithUnit instantiates a new PowerPeakLastSevenDaysRatioValueWithUnit 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 NewPowerPeakLastSevenDaysRatioValueWithUnit(unit string, value string) *PowerPeakLastSevenDaysRatioValueWithUnit { + this := PowerPeakLastSevenDaysRatioValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerPeakLastSevenDaysRatioValueWithUnitWithDefaults instantiates a new PowerPeakLastSevenDaysRatioValueWithUnit 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 NewPowerPeakLastSevenDaysRatioValueWithUnitWithDefaults() *PowerPeakLastSevenDaysRatioValueWithUnit { + this := PowerPeakLastSevenDaysRatioValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerPeakLastSevenDaysRatioValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPeakLastSevenDaysRatioValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPeakLastSevenDaysRatioValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerPeakLastSevenDaysRatioValueWithUnit := _PowerPeakLastSevenDaysRatioValueWithUnit{} + + err = json.Unmarshal(data, &varPowerPeakLastSevenDaysRatioValueWithUnit) + + if err != nil { + return err + } + + *o = PowerPeakLastSevenDaysRatioValueWithUnit(varPowerPeakLastSevenDaysRatioValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPeakLastSevenDaysRatioValueWithUnit struct { + value *PowerPeakLastSevenDaysRatioValueWithUnit + isSet bool +} + +func (v NullablePowerPeakLastSevenDaysRatioValueWithUnit) Get() *PowerPeakLastSevenDaysRatioValueWithUnit { + return v.value +} + +func (v *NullablePowerPeakLastSevenDaysRatioValueWithUnit) Set(val *PowerPeakLastSevenDaysRatioValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPeakLastSevenDaysRatioValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPeakLastSevenDaysRatioValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPeakLastSevenDaysRatioValueWithUnit(val *PowerPeakLastSevenDaysRatioValueWithUnit) *NullablePowerPeakLastSevenDaysRatioValueWithUnit { + return &NullablePowerPeakLastSevenDaysRatioValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerPeakLastSevenDaysRatioValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPeakLastSevenDaysRatioValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_peak_last_seven_days_value_with_unit.go b/services/smartview/model_power_peak_last_seven_days_value_with_unit.go new file mode 100644 index 00000000..bdf0e340 --- /dev/null +++ b/services/smartview/model_power_peak_last_seven_days_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerPeakLastSevenDaysValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPeakLastSevenDaysValueWithUnit{} + +// PowerPeakLastSevenDaysValueWithUnit peakLastSevenDays details +type PowerPeakLastSevenDaysValueWithUnit struct { + // PeakLastSevenDays reading unit + Unit string `json:"unit"` + // PeakLastSevenDays reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerPeakLastSevenDaysValueWithUnit PowerPeakLastSevenDaysValueWithUnit + +// NewPowerPeakLastSevenDaysValueWithUnit instantiates a new PowerPeakLastSevenDaysValueWithUnit 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 NewPowerPeakLastSevenDaysValueWithUnit(unit string, value string) *PowerPeakLastSevenDaysValueWithUnit { + this := PowerPeakLastSevenDaysValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerPeakLastSevenDaysValueWithUnitWithDefaults instantiates a new PowerPeakLastSevenDaysValueWithUnit 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 NewPowerPeakLastSevenDaysValueWithUnitWithDefaults() *PowerPeakLastSevenDaysValueWithUnit { + this := PowerPeakLastSevenDaysValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerPeakLastSevenDaysValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerPeakLastSevenDaysValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerPeakLastSevenDaysValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerPeakLastSevenDaysValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerPeakLastSevenDaysValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerPeakLastSevenDaysValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerPeakLastSevenDaysValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPeakLastSevenDaysValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPeakLastSevenDaysValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerPeakLastSevenDaysValueWithUnit := _PowerPeakLastSevenDaysValueWithUnit{} + + err = json.Unmarshal(data, &varPowerPeakLastSevenDaysValueWithUnit) + + if err != nil { + return err + } + + *o = PowerPeakLastSevenDaysValueWithUnit(varPowerPeakLastSevenDaysValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPeakLastSevenDaysValueWithUnit struct { + value *PowerPeakLastSevenDaysValueWithUnit + isSet bool +} + +func (v NullablePowerPeakLastSevenDaysValueWithUnit) Get() *PowerPeakLastSevenDaysValueWithUnit { + return v.value +} + +func (v *NullablePowerPeakLastSevenDaysValueWithUnit) Set(val *PowerPeakLastSevenDaysValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPeakLastSevenDaysValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPeakLastSevenDaysValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPeakLastSevenDaysValueWithUnit(val *PowerPeakLastSevenDaysValueWithUnit) *NullablePowerPeakLastSevenDaysValueWithUnit { + return &NullablePowerPeakLastSevenDaysValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerPeakLastSevenDaysValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPeakLastSevenDaysValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go b/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go new file mode 100644 index 00000000..517d5734 --- /dev/null +++ b/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerPowerConsumptionToContractualValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPowerConsumptionToContractualValueWithUnit{} + +// PowerPowerConsumptionToContractualValueWithUnit powerConsumptionToContractual details +type PowerPowerConsumptionToContractualValueWithUnit struct { + // PowerConsumptionToContractual reading unit + Unit string `json:"unit"` + // PowerConsumptionToContractual reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerPowerConsumptionToContractualValueWithUnit PowerPowerConsumptionToContractualValueWithUnit + +// NewPowerPowerConsumptionToContractualValueWithUnit instantiates a new PowerPowerConsumptionToContractualValueWithUnit 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 NewPowerPowerConsumptionToContractualValueWithUnit(unit string, value string) *PowerPowerConsumptionToContractualValueWithUnit { + this := PowerPowerConsumptionToContractualValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerPowerConsumptionToContractualValueWithUnitWithDefaults instantiates a new PowerPowerConsumptionToContractualValueWithUnit 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 NewPowerPowerConsumptionToContractualValueWithUnitWithDefaults() *PowerPowerConsumptionToContractualValueWithUnit { + this := PowerPowerConsumptionToContractualValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerPowerConsumptionToContractualValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerPowerConsumptionToContractualValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerPowerConsumptionToContractualValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerPowerConsumptionToContractualValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerPowerConsumptionToContractualValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerPowerConsumptionToContractualValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerPowerConsumptionToContractualValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPowerConsumptionToContractualValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPowerConsumptionToContractualValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerPowerConsumptionToContractualValueWithUnit := _PowerPowerConsumptionToContractualValueWithUnit{} + + err = json.Unmarshal(data, &varPowerPowerConsumptionToContractualValueWithUnit) + + if err != nil { + return err + } + + *o = PowerPowerConsumptionToContractualValueWithUnit(varPowerPowerConsumptionToContractualValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPowerConsumptionToContractualValueWithUnit struct { + value *PowerPowerConsumptionToContractualValueWithUnit + isSet bool +} + +func (v NullablePowerPowerConsumptionToContractualValueWithUnit) Get() *PowerPowerConsumptionToContractualValueWithUnit { + return v.value +} + +func (v *NullablePowerPowerConsumptionToContractualValueWithUnit) Set(val *PowerPowerConsumptionToContractualValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPowerConsumptionToContractualValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPowerConsumptionToContractualValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPowerConsumptionToContractualValueWithUnit(val *PowerPowerConsumptionToContractualValueWithUnit) *NullablePowerPowerConsumptionToContractualValueWithUnit { + return &NullablePowerPowerConsumptionToContractualValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerPowerConsumptionToContractualValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPowerConsumptionToContractualValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_power_factor_value_with_unit.go b/services/smartview/model_power_power_factor_value_with_unit.go new file mode 100644 index 00000000..d9828fdb --- /dev/null +++ b/services/smartview/model_power_power_factor_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerPowerFactorValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPowerFactorValueWithUnit{} + +// PowerPowerFactorValueWithUnit powerFactor details +type PowerPowerFactorValueWithUnit struct { + // PowerFactor reading unit + Unit string `json:"unit"` + // PowerFactor reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerPowerFactorValueWithUnit PowerPowerFactorValueWithUnit + +// NewPowerPowerFactorValueWithUnit instantiates a new PowerPowerFactorValueWithUnit 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 NewPowerPowerFactorValueWithUnit(unit string, value string) *PowerPowerFactorValueWithUnit { + this := PowerPowerFactorValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerPowerFactorValueWithUnitWithDefaults instantiates a new PowerPowerFactorValueWithUnit 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 NewPowerPowerFactorValueWithUnitWithDefaults() *PowerPowerFactorValueWithUnit { + this := PowerPowerFactorValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerPowerFactorValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerPowerFactorValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerPowerFactorValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerPowerFactorValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerPowerFactorValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerPowerFactorValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerPowerFactorValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPowerFactorValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPowerFactorValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerPowerFactorValueWithUnit := _PowerPowerFactorValueWithUnit{} + + err = json.Unmarshal(data, &varPowerPowerFactorValueWithUnit) + + if err != nil { + return err + } + + *o = PowerPowerFactorValueWithUnit(varPowerPowerFactorValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPowerFactorValueWithUnit struct { + value *PowerPowerFactorValueWithUnit + isSet bool +} + +func (v NullablePowerPowerFactorValueWithUnit) Get() *PowerPowerFactorValueWithUnit { + return v.value +} + +func (v *NullablePowerPowerFactorValueWithUnit) Set(val *PowerPowerFactorValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPowerFactorValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPowerFactorValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPowerFactorValueWithUnit(val *PowerPowerFactorValueWithUnit) *NullablePowerPowerFactorValueWithUnit { + return &NullablePowerPowerFactorValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerPowerFactorValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPowerFactorValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_real_power_value_with_unit.go b/services/smartview/model_power_real_power_value_with_unit.go new file mode 100644 index 00000000..786b69c0 --- /dev/null +++ b/services/smartview/model_power_real_power_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerRealPowerValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerRealPowerValueWithUnit{} + +// PowerRealPowerValueWithUnit realPower details +type PowerRealPowerValueWithUnit struct { + // RealPower reading unit + Unit string `json:"unit"` + // RealPower reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerRealPowerValueWithUnit PowerRealPowerValueWithUnit + +// NewPowerRealPowerValueWithUnit instantiates a new PowerRealPowerValueWithUnit 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 NewPowerRealPowerValueWithUnit(unit string, value string) *PowerRealPowerValueWithUnit { + this := PowerRealPowerValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerRealPowerValueWithUnitWithDefaults instantiates a new PowerRealPowerValueWithUnit 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 NewPowerRealPowerValueWithUnitWithDefaults() *PowerRealPowerValueWithUnit { + this := PowerRealPowerValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerRealPowerValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerRealPowerValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerRealPowerValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerRealPowerValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerRealPowerValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerRealPowerValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerRealPowerValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerRealPowerValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerRealPowerValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerRealPowerValueWithUnit := _PowerRealPowerValueWithUnit{} + + err = json.Unmarshal(data, &varPowerRealPowerValueWithUnit) + + if err != nil { + return err + } + + *o = PowerRealPowerValueWithUnit(varPowerRealPowerValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerRealPowerValueWithUnit struct { + value *PowerRealPowerValueWithUnit + isSet bool +} + +func (v NullablePowerRealPowerValueWithUnit) Get() *PowerRealPowerValueWithUnit { + return v.value +} + +func (v *NullablePowerRealPowerValueWithUnit) Set(val *PowerRealPowerValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerRealPowerValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerRealPowerValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerRealPowerValueWithUnit(val *PowerRealPowerValueWithUnit) *NullablePowerRealPowerValueWithUnit { + return &NullablePowerRealPowerValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerRealPowerValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerRealPowerValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_sold_current_value_with_unit.go b/services/smartview/model_power_sold_current_value_with_unit.go new file mode 100644 index 00000000..e4f63877 --- /dev/null +++ b/services/smartview/model_power_sold_current_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerSoldCurrentValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerSoldCurrentValueWithUnit{} + +// PowerSoldCurrentValueWithUnit soldCurrent details +type PowerSoldCurrentValueWithUnit struct { + // SoldCurrent reading unit + Unit string `json:"unit"` + // SoldCurrent reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerSoldCurrentValueWithUnit PowerSoldCurrentValueWithUnit + +// NewPowerSoldCurrentValueWithUnit instantiates a new PowerSoldCurrentValueWithUnit 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 NewPowerSoldCurrentValueWithUnit(unit string, value string) *PowerSoldCurrentValueWithUnit { + this := PowerSoldCurrentValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerSoldCurrentValueWithUnitWithDefaults instantiates a new PowerSoldCurrentValueWithUnit 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 NewPowerSoldCurrentValueWithUnitWithDefaults() *PowerSoldCurrentValueWithUnit { + this := PowerSoldCurrentValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerSoldCurrentValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerSoldCurrentValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerSoldCurrentValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerSoldCurrentValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerSoldCurrentValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerSoldCurrentValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerSoldCurrentValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerSoldCurrentValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerSoldCurrentValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerSoldCurrentValueWithUnit := _PowerSoldCurrentValueWithUnit{} + + err = json.Unmarshal(data, &varPowerSoldCurrentValueWithUnit) + + if err != nil { + return err + } + + *o = PowerSoldCurrentValueWithUnit(varPowerSoldCurrentValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerSoldCurrentValueWithUnit struct { + value *PowerSoldCurrentValueWithUnit + isSet bool +} + +func (v NullablePowerSoldCurrentValueWithUnit) Get() *PowerSoldCurrentValueWithUnit { + return v.value +} + +func (v *NullablePowerSoldCurrentValueWithUnit) Set(val *PowerSoldCurrentValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerSoldCurrentValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerSoldCurrentValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerSoldCurrentValueWithUnit(val *PowerSoldCurrentValueWithUnit) *NullablePowerSoldCurrentValueWithUnit { + return &NullablePowerSoldCurrentValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerSoldCurrentValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerSoldCurrentValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_power_sold_power_value_with_unit.go b/services/smartview/model_power_sold_power_value_with_unit.go new file mode 100644 index 00000000..a765a32c --- /dev/null +++ b/services/smartview/model_power_sold_power_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the PowerSoldPowerValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerSoldPowerValueWithUnit{} + +// PowerSoldPowerValueWithUnit soldPower details +type PowerSoldPowerValueWithUnit struct { + // SoldPower reading unit + Unit string `json:"unit"` + // SoldPower reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _PowerSoldPowerValueWithUnit PowerSoldPowerValueWithUnit + +// NewPowerSoldPowerValueWithUnit instantiates a new PowerSoldPowerValueWithUnit 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 NewPowerSoldPowerValueWithUnit(unit string, value string) *PowerSoldPowerValueWithUnit { + this := PowerSoldPowerValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewPowerSoldPowerValueWithUnitWithDefaults instantiates a new PowerSoldPowerValueWithUnit 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 NewPowerSoldPowerValueWithUnitWithDefaults() *PowerSoldPowerValueWithUnit { + this := PowerSoldPowerValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *PowerSoldPowerValueWithUnit) GetUnit() string { + if o == nil { + var ret string + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *PowerSoldPowerValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *PowerSoldPowerValueWithUnit) SetUnit(v string) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *PowerSoldPowerValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *PowerSoldPowerValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *PowerSoldPowerValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o PowerSoldPowerValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerSoldPowerValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerSoldPowerValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varPowerSoldPowerValueWithUnit := _PowerSoldPowerValueWithUnit{} + + err = json.Unmarshal(data, &varPowerSoldPowerValueWithUnit) + + if err != nil { + return err + } + + *o = PowerSoldPowerValueWithUnit(varPowerSoldPowerValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerSoldPowerValueWithUnit struct { + value *PowerSoldPowerValueWithUnit + isSet bool +} + +func (v NullablePowerSoldPowerValueWithUnit) Get() *PowerSoldPowerValueWithUnit { + return v.value +} + +func (v *NullablePowerSoldPowerValueWithUnit) Set(val *PowerSoldPowerValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePowerSoldPowerValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerSoldPowerValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerSoldPowerValueWithUnit(val *PowerSoldPowerValueWithUnit) *NullablePowerSoldPowerValueWithUnit { + return &NullablePowerSoldPowerValueWithUnit{value: val, isSet: true} +} + +func (v NullablePowerSoldPowerValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerSoldPowerValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_recipients_array.go b/services/smartview/model_recipients_array.go new file mode 100644 index 00000000..00b130a1 --- /dev/null +++ b/services/smartview/model_recipients_array.go @@ -0,0 +1,451 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the RecipientsArray type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RecipientsArray{} + +// RecipientsArray struct for RecipientsArray +type RecipientsArray struct { + Email *bool `json:"email,omitempty"` + EmailAddress *string `json:"email_address,omitempty"` + FirstName *string `json:"firstName,omitempty"` + LastName *string `json:"lastName,omitempty"` + MobilePhoneCode *string `json:"mobilePhoneCode,omitempty"` + MobilePhoneNumber *string `json:"mobilePhoneNumber,omitempty"` + Self *bool `json:"self,omitempty"` + Sms *bool `json:"sms,omitempty"` + Voice *bool `json:"voice,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RecipientsArray RecipientsArray + +// NewRecipientsArray instantiates a new RecipientsArray 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 NewRecipientsArray() *RecipientsArray { + this := RecipientsArray{} + return &this +} + +// NewRecipientsArrayWithDefaults instantiates a new RecipientsArray 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 NewRecipientsArrayWithDefaults() *RecipientsArray { + this := RecipientsArray{} + return &this +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *RecipientsArray) GetEmail() bool { + if o == nil || IsNil(o.Email) { + var ret bool + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetEmailOk() (*bool, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *RecipientsArray) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given bool and assigns it to the Email field. +func (o *RecipientsArray) SetEmail(v bool) { + o.Email = &v +} + +// GetEmailAddress returns the EmailAddress field value if set, zero value otherwise. +func (o *RecipientsArray) GetEmailAddress() string { + if o == nil || IsNil(o.EmailAddress) { + var ret string + return ret + } + return *o.EmailAddress +} + +// GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetEmailAddressOk() (*string, bool) { + if o == nil || IsNil(o.EmailAddress) { + return nil, false + } + return o.EmailAddress, true +} + +// HasEmailAddress returns a boolean if a field has been set. +func (o *RecipientsArray) HasEmailAddress() bool { + if o != nil && !IsNil(o.EmailAddress) { + return true + } + + return false +} + +// SetEmailAddress gets a reference to the given string and assigns it to the EmailAddress field. +func (o *RecipientsArray) SetEmailAddress(v string) { + o.EmailAddress = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *RecipientsArray) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *RecipientsArray) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *RecipientsArray) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *RecipientsArray) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *RecipientsArray) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *RecipientsArray) SetLastName(v string) { + o.LastName = &v +} + +// GetMobilePhoneCode returns the MobilePhoneCode field value if set, zero value otherwise. +func (o *RecipientsArray) GetMobilePhoneCode() string { + if o == nil || IsNil(o.MobilePhoneCode) { + var ret string + return ret + } + return *o.MobilePhoneCode +} + +// GetMobilePhoneCodeOk returns a tuple with the MobilePhoneCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetMobilePhoneCodeOk() (*string, bool) { + if o == nil || IsNil(o.MobilePhoneCode) { + return nil, false + } + return o.MobilePhoneCode, true +} + +// HasMobilePhoneCode returns a boolean if a field has been set. +func (o *RecipientsArray) HasMobilePhoneCode() bool { + if o != nil && !IsNil(o.MobilePhoneCode) { + return true + } + + return false +} + +// SetMobilePhoneCode gets a reference to the given string and assigns it to the MobilePhoneCode field. +func (o *RecipientsArray) SetMobilePhoneCode(v string) { + o.MobilePhoneCode = &v +} + +// GetMobilePhoneNumber returns the MobilePhoneNumber field value if set, zero value otherwise. +func (o *RecipientsArray) GetMobilePhoneNumber() string { + if o == nil || IsNil(o.MobilePhoneNumber) { + var ret string + return ret + } + return *o.MobilePhoneNumber +} + +// GetMobilePhoneNumberOk returns a tuple with the MobilePhoneNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetMobilePhoneNumberOk() (*string, bool) { + if o == nil || IsNil(o.MobilePhoneNumber) { + return nil, false + } + return o.MobilePhoneNumber, true +} + +// HasMobilePhoneNumber returns a boolean if a field has been set. +func (o *RecipientsArray) HasMobilePhoneNumber() bool { + if o != nil && !IsNil(o.MobilePhoneNumber) { + return true + } + + return false +} + +// SetMobilePhoneNumber gets a reference to the given string and assigns it to the MobilePhoneNumber field. +func (o *RecipientsArray) SetMobilePhoneNumber(v string) { + o.MobilePhoneNumber = &v +} + +// GetSelf returns the Self field value if set, zero value otherwise. +func (o *RecipientsArray) GetSelf() bool { + if o == nil || IsNil(o.Self) { + var ret bool + return ret + } + return *o.Self +} + +// GetSelfOk returns a tuple with the Self field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetSelfOk() (*bool, bool) { + if o == nil || IsNil(o.Self) { + return nil, false + } + return o.Self, true +} + +// HasSelf returns a boolean if a field has been set. +func (o *RecipientsArray) HasSelf() bool { + if o != nil && !IsNil(o.Self) { + return true + } + + return false +} + +// SetSelf gets a reference to the given bool and assigns it to the Self field. +func (o *RecipientsArray) SetSelf(v bool) { + o.Self = &v +} + +// GetSms returns the Sms field value if set, zero value otherwise. +func (o *RecipientsArray) GetSms() bool { + if o == nil || IsNil(o.Sms) { + var ret bool + return ret + } + return *o.Sms +} + +// GetSmsOk returns a tuple with the Sms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetSmsOk() (*bool, bool) { + if o == nil || IsNil(o.Sms) { + return nil, false + } + return o.Sms, true +} + +// HasSms returns a boolean if a field has been set. +func (o *RecipientsArray) HasSms() bool { + if o != nil && !IsNil(o.Sms) { + return true + } + + return false +} + +// SetSms gets a reference to the given bool and assigns it to the Sms field. +func (o *RecipientsArray) SetSms(v bool) { + o.Sms = &v +} + +// GetVoice returns the Voice field value if set, zero value otherwise. +func (o *RecipientsArray) GetVoice() bool { + if o == nil || IsNil(o.Voice) { + var ret bool + return ret + } + return *o.Voice +} + +// GetVoiceOk returns a tuple with the Voice field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecipientsArray) GetVoiceOk() (*bool, bool) { + if o == nil || IsNil(o.Voice) { + return nil, false + } + return o.Voice, true +} + +// HasVoice returns a boolean if a field has been set. +func (o *RecipientsArray) HasVoice() bool { + if o != nil && !IsNil(o.Voice) { + return true + } + + return false +} + +// SetVoice gets a reference to the given bool and assigns it to the Voice field. +func (o *RecipientsArray) SetVoice(v bool) { + o.Voice = &v +} + +func (o RecipientsArray) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RecipientsArray) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.EmailAddress) { + toSerialize["email_address"] = o.EmailAddress + } + if !IsNil(o.FirstName) { + toSerialize["firstName"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["lastName"] = o.LastName + } + if !IsNil(o.MobilePhoneCode) { + toSerialize["mobilePhoneCode"] = o.MobilePhoneCode + } + if !IsNil(o.MobilePhoneNumber) { + toSerialize["mobilePhoneNumber"] = o.MobilePhoneNumber + } + if !IsNil(o.Self) { + toSerialize["self"] = o.Self + } + if !IsNil(o.Sms) { + toSerialize["sms"] = o.Sms + } + if !IsNil(o.Voice) { + toSerialize["voice"] = o.Voice + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RecipientsArray) UnmarshalJSON(data []byte) (err error) { + varRecipientsArray := _RecipientsArray{} + + err = json.Unmarshal(data, &varRecipientsArray) + + if err != nil { + return err + } + + *o = RecipientsArray(varRecipientsArray) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "email_address") + delete(additionalProperties, "firstName") + delete(additionalProperties, "lastName") + delete(additionalProperties, "mobilePhoneCode") + delete(additionalProperties, "mobilePhoneNumber") + delete(additionalProperties, "self") + delete(additionalProperties, "sms") + delete(additionalProperties, "voice") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRecipientsArray struct { + value *RecipientsArray + isSet bool +} + +func (v NullableRecipientsArray) Get() *RecipientsArray { + return v.value +} + +func (v *NullableRecipientsArray) Set(val *RecipientsArray) { + v.value = val + v.isSet = true +} + +func (v NullableRecipientsArray) IsSet() bool { + return v.isSet +} + +func (v *NullableRecipientsArray) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRecipientsArray(val *RecipientsArray) *NullableRecipientsArray { + return &NullableRecipientsArray{value: val, isSet: true} +} + +func (v NullableRecipientsArray) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRecipientsArray) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_sensor_reading.go b/services/smartview/model_sensor_reading.go new file mode 100644 index 00000000..9c50617f --- /dev/null +++ b/services/smartview/model_sensor_reading.go @@ -0,0 +1,303 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the SensorReading type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SensorReading{} + +// SensorReading Single environmental sensor reading. +type SensorReading struct { + Humidity *ValueWithUnit `json:"humidity,omitempty"` + // The ibx identifier where the sensor is placed. + Ibx string `json:"ibx"` + // The sensor identifier. + SensorId string `json:"sensorId"` + Temperature *ValueWithUnit `json:"temperature,omitempty"` + // The zone where the sensor is placed. + ZoneId string `json:"zoneId"` + AdditionalProperties map[string]interface{} +} + +type _SensorReading SensorReading + +// NewSensorReading instantiates a new SensorReading 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 NewSensorReading(ibx string, sensorId string, zoneId string) *SensorReading { + this := SensorReading{} + this.Ibx = ibx + this.SensorId = sensorId + this.ZoneId = zoneId + return &this +} + +// NewSensorReadingWithDefaults instantiates a new SensorReading 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 NewSensorReadingWithDefaults() *SensorReading { + this := SensorReading{} + return &this +} + +// GetHumidity returns the Humidity field value if set, zero value otherwise. +func (o *SensorReading) GetHumidity() ValueWithUnit { + if o == nil || IsNil(o.Humidity) { + var ret ValueWithUnit + return ret + } + return *o.Humidity +} + +// GetHumidityOk returns a tuple with the Humidity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SensorReading) GetHumidityOk() (*ValueWithUnit, bool) { + if o == nil || IsNil(o.Humidity) { + return nil, false + } + return o.Humidity, true +} + +// HasHumidity returns a boolean if a field has been set. +func (o *SensorReading) HasHumidity() bool { + if o != nil && !IsNil(o.Humidity) { + return true + } + + return false +} + +// SetHumidity gets a reference to the given ValueWithUnit and assigns it to the Humidity field. +func (o *SensorReading) SetHumidity(v ValueWithUnit) { + o.Humidity = &v +} + +// GetIbx returns the Ibx field value +func (o *SensorReading) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *SensorReading) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *SensorReading) SetIbx(v string) { + o.Ibx = v +} + +// GetSensorId returns the SensorId field value +func (o *SensorReading) GetSensorId() string { + if o == nil { + var ret string + return ret + } + + return o.SensorId +} + +// GetSensorIdOk returns a tuple with the SensorId field value +// and a boolean to check if the value has been set. +func (o *SensorReading) GetSensorIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SensorId, true +} + +// SetSensorId sets field value +func (o *SensorReading) SetSensorId(v string) { + o.SensorId = v +} + +// GetTemperature returns the Temperature field value if set, zero value otherwise. +func (o *SensorReading) GetTemperature() ValueWithUnit { + if o == nil || IsNil(o.Temperature) { + var ret ValueWithUnit + return ret + } + return *o.Temperature +} + +// GetTemperatureOk returns a tuple with the Temperature field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SensorReading) GetTemperatureOk() (*ValueWithUnit, bool) { + if o == nil || IsNil(o.Temperature) { + return nil, false + } + return o.Temperature, true +} + +// HasTemperature returns a boolean if a field has been set. +func (o *SensorReading) HasTemperature() bool { + if o != nil && !IsNil(o.Temperature) { + return true + } + + return false +} + +// SetTemperature gets a reference to the given ValueWithUnit and assigns it to the Temperature field. +func (o *SensorReading) SetTemperature(v ValueWithUnit) { + o.Temperature = &v +} + +// GetZoneId returns the ZoneId field value +func (o *SensorReading) GetZoneId() string { + if o == nil { + var ret string + return ret + } + + return o.ZoneId +} + +// GetZoneIdOk returns a tuple with the ZoneId field value +// and a boolean to check if the value has been set. +func (o *SensorReading) GetZoneIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ZoneId, true +} + +// SetZoneId sets field value +func (o *SensorReading) SetZoneId(v string) { + o.ZoneId = v +} + +func (o SensorReading) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SensorReading) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Humidity) { + toSerialize["humidity"] = o.Humidity + } + toSerialize["ibx"] = o.Ibx + toSerialize["sensorId"] = o.SensorId + if !IsNil(o.Temperature) { + toSerialize["temperature"] = o.Temperature + } + toSerialize["zoneId"] = o.ZoneId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SensorReading) 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{ + "ibx", + "sensorId", + "zoneId", + } + + 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) + } + } + + varSensorReading := _SensorReading{} + + err = json.Unmarshal(data, &varSensorReading) + + if err != nil { + return err + } + + *o = SensorReading(varSensorReading) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "humidity") + delete(additionalProperties, "ibx") + delete(additionalProperties, "sensorId") + delete(additionalProperties, "temperature") + delete(additionalProperties, "zoneId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSensorReading struct { + value *SensorReading + isSet bool +} + +func (v NullableSensorReading) Get() *SensorReading { + return v.value +} + +func (v *NullableSensorReading) Set(val *SensorReading) { + v.value = val + v.isSet = true +} + +func (v NullableSensorReading) IsSet() bool { + return v.isSet +} + +func (v *NullableSensorReading) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSensorReading(val *SensorReading) *NullableSensorReading { + return &NullableSensorReading{value: val, isSet: true} +} + +func (v NullableSensorReading) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSensorReading) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_sensor_readings_response.go b/services/smartview/model_sensor_readings_response.go new file mode 100644 index 00000000..e5d2785b --- /dev/null +++ b/services/smartview/model_sensor_readings_response.go @@ -0,0 +1,198 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the SensorReadingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SensorReadingsResponse{} + +// SensorReadingsResponse struct for SensorReadingsResponse +type SensorReadingsResponse struct { + // List of data objects + Data []SensorReading `json:"data"` + Pagination Pagination `json:"pagination"` + AdditionalProperties map[string]interface{} +} + +type _SensorReadingsResponse SensorReadingsResponse + +// NewSensorReadingsResponse instantiates a new SensorReadingsResponse 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 NewSensorReadingsResponse(data []SensorReading, pagination Pagination) *SensorReadingsResponse { + this := SensorReadingsResponse{} + this.Data = data + this.Pagination = pagination + return &this +} + +// NewSensorReadingsResponseWithDefaults instantiates a new SensorReadingsResponse 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 NewSensorReadingsResponseWithDefaults() *SensorReadingsResponse { + this := SensorReadingsResponse{} + return &this +} + +// GetData returns the Data field value +func (o *SensorReadingsResponse) GetData() []SensorReading { + if o == nil { + var ret []SensorReading + 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 *SensorReadingsResponse) GetDataOk() ([]SensorReading, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *SensorReadingsResponse) SetData(v []SensorReading) { + o.Data = v +} + +// GetPagination returns the Pagination field value +func (o *SensorReadingsResponse) GetPagination() Pagination { + if o == nil { + var ret Pagination + 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 *SensorReadingsResponse) GetPaginationOk() (*Pagination, bool) { + if o == nil { + return nil, false + } + return &o.Pagination, true +} + +// SetPagination sets field value +func (o *SensorReadingsResponse) SetPagination(v Pagination) { + o.Pagination = v +} + +func (o SensorReadingsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SensorReadingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["pagination"] = o.Pagination + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SensorReadingsResponse) 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", + "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) + } + } + + varSensorReadingsResponse := _SensorReadingsResponse{} + + err = json.Unmarshal(data, &varSensorReadingsResponse) + + if err != nil { + return err + } + + *o = SensorReadingsResponse(varSensorReadingsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "pagination") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSensorReadingsResponse struct { + value *SensorReadingsResponse + isSet bool +} + +func (v NullableSensorReadingsResponse) Get() *SensorReadingsResponse { + return v.value +} + +func (v *NullableSensorReadingsResponse) Set(val *SensorReadingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSensorReadingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSensorReadingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSensorReadingsResponse(val *SensorReadingsResponse) *NullableSensorReadingsResponse { + return &NullableSensorReadingsResponse{value: val, isSet: true} +} + +func (v NullableSensorReadingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSensorReadingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_status.go b/services/smartview/model_status.go new file mode 100644 index 00000000..b4485639 --- /dev/null +++ b/services/smartview/model_status.go @@ -0,0 +1,230 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Status type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Status{} + +// Status struct for Status +type Status struct { + // root cause for error + Cause *string `json:"cause,omitempty"` + Info *StatusInfo `json:"info,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Status Status + +// NewStatus instantiates a new Status 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 NewStatus() *Status { + this := Status{} + return &this +} + +// NewStatusWithDefaults instantiates a new Status 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 NewStatusWithDefaults() *Status { + this := Status{} + return &this +} + +// GetCause returns the Cause field value if set, zero value otherwise. +func (o *Status) GetCause() string { + if o == nil || IsNil(o.Cause) { + var ret string + return ret + } + return *o.Cause +} + +// GetCauseOk returns a tuple with the Cause field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Status) GetCauseOk() (*string, bool) { + if o == nil || IsNil(o.Cause) { + return nil, false + } + return o.Cause, true +} + +// HasCause returns a boolean if a field has been set. +func (o *Status) HasCause() bool { + if o != nil && !IsNil(o.Cause) { + return true + } + + return false +} + +// SetCause gets a reference to the given string and assigns it to the Cause field. +func (o *Status) SetCause(v string) { + o.Cause = &v +} + +// GetInfo returns the Info field value if set, zero value otherwise. +func (o *Status) GetInfo() StatusInfo { + if o == nil || IsNil(o.Info) { + var ret StatusInfo + return ret + } + return *o.Info +} + +// GetInfoOk returns a tuple with the Info field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Status) GetInfoOk() (*StatusInfo, bool) { + if o == nil || IsNil(o.Info) { + return nil, false + } + return o.Info, true +} + +// HasInfo returns a boolean if a field has been set. +func (o *Status) HasInfo() bool { + if o != nil && !IsNil(o.Info) { + return true + } + + return false +} + +// SetInfo gets a reference to the given StatusInfo and assigns it to the Info field. +func (o *Status) SetInfo(v StatusInfo) { + o.Info = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *Status) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Status) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Status) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *Status) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o Status) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Status) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cause) { + toSerialize["cause"] = o.Cause + } + if !IsNil(o.Info) { + toSerialize["info"] = o.Info + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Status) UnmarshalJSON(data []byte) (err error) { + varStatus := _Status{} + + err = json.Unmarshal(data, &varStatus) + + if err != nil { + return err + } + + *o = Status(varStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cause") + delete(additionalProperties, "info") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStatus struct { + value *Status + isSet bool +} + +func (v NullableStatus) Get() *Status { + return v.value +} + +func (v *NullableStatus) Set(val *Status) { + v.value = val + v.isSet = true +} + +func (v NullableStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStatus(val *Status) *NullableStatus { + return &NullableStatus{value: val, isSet: true} +} + +func (v NullableStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_status_info.go b/services/smartview/model_status_info.go new file mode 100644 index 00000000..3f691125 --- /dev/null +++ b/services/smartview/model_status_info.go @@ -0,0 +1,194 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the StatusInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StatusInfo{} + +// StatusInfo struct for StatusInfo +type StatusInfo struct { + // [1000|3001|3002|3003|4000] are the possible status codes + Code *float32 `json:"code,omitempty"` + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages + Msg *string `json:"msg,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StatusInfo StatusInfo + +// NewStatusInfo instantiates a new StatusInfo 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 NewStatusInfo() *StatusInfo { + this := StatusInfo{} + return &this +} + +// NewStatusInfoWithDefaults instantiates a new StatusInfo 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 NewStatusInfoWithDefaults() *StatusInfo { + this := StatusInfo{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *StatusInfo) GetCode() float32 { + if o == nil || IsNil(o.Code) { + var ret float32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StatusInfo) GetCodeOk() (*float32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *StatusInfo) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given float32 and assigns it to the Code field. +func (o *StatusInfo) SetCode(v float32) { + o.Code = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *StatusInfo) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StatusInfo) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *StatusInfo) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *StatusInfo) SetMsg(v string) { + o.Msg = &v +} + +func (o StatusInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StatusInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StatusInfo) UnmarshalJSON(data []byte) (err error) { + varStatusInfo := _StatusInfo{} + + err = json.Unmarshal(data, &varStatusInfo) + + if err != nil { + return err + } + + *o = StatusInfo(varStatusInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "code") + delete(additionalProperties, "msg") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStatusInfo struct { + value *StatusInfo + isSet bool +} + +func (v NullableStatusInfo) Get() *StatusInfo { + return v.value +} + +func (v *NullableStatusInfo) Set(val *StatusInfo) { + v.value = val + v.isSet = true +} + +func (v NullableStatusInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableStatusInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStatusInfo(val *StatusInfo) *NullableStatusInfo { + return &NullableStatusInfo{value: val, isSet: true} +} + +func (v NullableStatusInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStatusInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_subscription_data.go b/services/smartview/model_subscription_data.go new file mode 100644 index 00000000..bdb06262 --- /dev/null +++ b/services/smartview/model_subscription_data.go @@ -0,0 +1,383 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the SubscriptionData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubscriptionData{} + +// SubscriptionData struct for SubscriptionData +type SubscriptionData struct { + // alarm message data + AlarmMessageData []AlarmMessageData `json:"alarmMessageData,omitempty"` + // alert message data + AlertMessageData []AlertMessageData `json:"alertMessageData,omitempty"` + // environment message data + EnvironmentMessageData []EnvironmentMessageData `json:"environmentMessageData,omitempty"` + // metered-power message data + MeteredPowerMessageData []MeteredPowerMessageData `json:"meteredPowerMessageData,omitempty"` + Pagination *Pagination `json:"pagination,omitempty"` + // power message data + PowerMessageData []PowerMessageData `json:"powerMessageData,omitempty"` + // tag-point message data + TagPointMessageData []TagPointMessageData `json:"tagPointMessageData,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SubscriptionData SubscriptionData + +// NewSubscriptionData instantiates a new SubscriptionData 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 NewSubscriptionData() *SubscriptionData { + this := SubscriptionData{} + return &this +} + +// NewSubscriptionDataWithDefaults instantiates a new SubscriptionData 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 NewSubscriptionDataWithDefaults() *SubscriptionData { + this := SubscriptionData{} + return &this +} + +// GetAlarmMessageData returns the AlarmMessageData field value if set, zero value otherwise. +func (o *SubscriptionData) GetAlarmMessageData() []AlarmMessageData { + if o == nil || IsNil(o.AlarmMessageData) { + var ret []AlarmMessageData + return ret + } + return o.AlarmMessageData +} + +// GetAlarmMessageDataOk returns a tuple with the AlarmMessageData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetAlarmMessageDataOk() ([]AlarmMessageData, bool) { + if o == nil || IsNil(o.AlarmMessageData) { + return nil, false + } + return o.AlarmMessageData, true +} + +// HasAlarmMessageData returns a boolean if a field has been set. +func (o *SubscriptionData) HasAlarmMessageData() bool { + if o != nil && !IsNil(o.AlarmMessageData) { + return true + } + + return false +} + +// SetAlarmMessageData gets a reference to the given []AlarmMessageData and assigns it to the AlarmMessageData field. +func (o *SubscriptionData) SetAlarmMessageData(v []AlarmMessageData) { + o.AlarmMessageData = v +} + +// GetAlertMessageData returns the AlertMessageData field value if set, zero value otherwise. +func (o *SubscriptionData) GetAlertMessageData() []AlertMessageData { + if o == nil || IsNil(o.AlertMessageData) { + var ret []AlertMessageData + return ret + } + return o.AlertMessageData +} + +// GetAlertMessageDataOk returns a tuple with the AlertMessageData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetAlertMessageDataOk() ([]AlertMessageData, bool) { + if o == nil || IsNil(o.AlertMessageData) { + return nil, false + } + return o.AlertMessageData, true +} + +// HasAlertMessageData returns a boolean if a field has been set. +func (o *SubscriptionData) HasAlertMessageData() bool { + if o != nil && !IsNil(o.AlertMessageData) { + return true + } + + return false +} + +// SetAlertMessageData gets a reference to the given []AlertMessageData and assigns it to the AlertMessageData field. +func (o *SubscriptionData) SetAlertMessageData(v []AlertMessageData) { + o.AlertMessageData = v +} + +// GetEnvironmentMessageData returns the EnvironmentMessageData field value if set, zero value otherwise. +func (o *SubscriptionData) GetEnvironmentMessageData() []EnvironmentMessageData { + if o == nil || IsNil(o.EnvironmentMessageData) { + var ret []EnvironmentMessageData + return ret + } + return o.EnvironmentMessageData +} + +// GetEnvironmentMessageDataOk returns a tuple with the EnvironmentMessageData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetEnvironmentMessageDataOk() ([]EnvironmentMessageData, bool) { + if o == nil || IsNil(o.EnvironmentMessageData) { + return nil, false + } + return o.EnvironmentMessageData, true +} + +// HasEnvironmentMessageData returns a boolean if a field has been set. +func (o *SubscriptionData) HasEnvironmentMessageData() bool { + if o != nil && !IsNil(o.EnvironmentMessageData) { + return true + } + + return false +} + +// SetEnvironmentMessageData gets a reference to the given []EnvironmentMessageData and assigns it to the EnvironmentMessageData field. +func (o *SubscriptionData) SetEnvironmentMessageData(v []EnvironmentMessageData) { + o.EnvironmentMessageData = v +} + +// GetMeteredPowerMessageData returns the MeteredPowerMessageData field value if set, zero value otherwise. +func (o *SubscriptionData) GetMeteredPowerMessageData() []MeteredPowerMessageData { + if o == nil || IsNil(o.MeteredPowerMessageData) { + var ret []MeteredPowerMessageData + return ret + } + return o.MeteredPowerMessageData +} + +// GetMeteredPowerMessageDataOk returns a tuple with the MeteredPowerMessageData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetMeteredPowerMessageDataOk() ([]MeteredPowerMessageData, bool) { + if o == nil || IsNil(o.MeteredPowerMessageData) { + return nil, false + } + return o.MeteredPowerMessageData, true +} + +// HasMeteredPowerMessageData returns a boolean if a field has been set. +func (o *SubscriptionData) HasMeteredPowerMessageData() bool { + if o != nil && !IsNil(o.MeteredPowerMessageData) { + return true + } + + return false +} + +// SetMeteredPowerMessageData gets a reference to the given []MeteredPowerMessageData and assigns it to the MeteredPowerMessageData field. +func (o *SubscriptionData) SetMeteredPowerMessageData(v []MeteredPowerMessageData) { + o.MeteredPowerMessageData = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *SubscriptionData) GetPagination() Pagination { + if o == nil || IsNil(o.Pagination) { + var ret Pagination + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetPaginationOk() (*Pagination, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *SubscriptionData) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given Pagination and assigns it to the Pagination field. +func (o *SubscriptionData) SetPagination(v Pagination) { + o.Pagination = &v +} + +// GetPowerMessageData returns the PowerMessageData field value if set, zero value otherwise. +func (o *SubscriptionData) GetPowerMessageData() []PowerMessageData { + if o == nil || IsNil(o.PowerMessageData) { + var ret []PowerMessageData + return ret + } + return o.PowerMessageData +} + +// GetPowerMessageDataOk returns a tuple with the PowerMessageData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetPowerMessageDataOk() ([]PowerMessageData, bool) { + if o == nil || IsNil(o.PowerMessageData) { + return nil, false + } + return o.PowerMessageData, true +} + +// HasPowerMessageData returns a boolean if a field has been set. +func (o *SubscriptionData) HasPowerMessageData() bool { + if o != nil && !IsNil(o.PowerMessageData) { + return true + } + + return false +} + +// SetPowerMessageData gets a reference to the given []PowerMessageData and assigns it to the PowerMessageData field. +func (o *SubscriptionData) SetPowerMessageData(v []PowerMessageData) { + o.PowerMessageData = v +} + +// GetTagPointMessageData returns the TagPointMessageData field value if set, zero value otherwise. +func (o *SubscriptionData) GetTagPointMessageData() []TagPointMessageData { + if o == nil || IsNil(o.TagPointMessageData) { + var ret []TagPointMessageData + return ret + } + return o.TagPointMessageData +} + +// GetTagPointMessageDataOk returns a tuple with the TagPointMessageData field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionData) GetTagPointMessageDataOk() ([]TagPointMessageData, bool) { + if o == nil || IsNil(o.TagPointMessageData) { + return nil, false + } + return o.TagPointMessageData, true +} + +// HasTagPointMessageData returns a boolean if a field has been set. +func (o *SubscriptionData) HasTagPointMessageData() bool { + if o != nil && !IsNil(o.TagPointMessageData) { + return true + } + + return false +} + +// SetTagPointMessageData gets a reference to the given []TagPointMessageData and assigns it to the TagPointMessageData field. +func (o *SubscriptionData) SetTagPointMessageData(v []TagPointMessageData) { + o.TagPointMessageData = v +} + +func (o SubscriptionData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubscriptionData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlarmMessageData) { + toSerialize["alarmMessageData"] = o.AlarmMessageData + } + if !IsNil(o.AlertMessageData) { + toSerialize["alertMessageData"] = o.AlertMessageData + } + if !IsNil(o.EnvironmentMessageData) { + toSerialize["environmentMessageData"] = o.EnvironmentMessageData + } + if !IsNil(o.MeteredPowerMessageData) { + toSerialize["meteredPowerMessageData"] = o.MeteredPowerMessageData + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + if !IsNil(o.PowerMessageData) { + toSerialize["powerMessageData"] = o.PowerMessageData + } + if !IsNil(o.TagPointMessageData) { + toSerialize["tagPointMessageData"] = o.TagPointMessageData + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubscriptionData) UnmarshalJSON(data []byte) (err error) { + varSubscriptionData := _SubscriptionData{} + + err = json.Unmarshal(data, &varSubscriptionData) + + if err != nil { + return err + } + + *o = SubscriptionData(varSubscriptionData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alarmMessageData") + delete(additionalProperties, "alertMessageData") + delete(additionalProperties, "environmentMessageData") + delete(additionalProperties, "meteredPowerMessageData") + delete(additionalProperties, "pagination") + delete(additionalProperties, "powerMessageData") + delete(additionalProperties, "tagPointMessageData") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscriptionData struct { + value *SubscriptionData + isSet bool +} + +func (v NullableSubscriptionData) Get() *SubscriptionData { + return v.value +} + +func (v *NullableSubscriptionData) Set(val *SubscriptionData) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionData) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionData(val *SubscriptionData) *NullableSubscriptionData { + return &NullableSubscriptionData{value: val, isSet: true} +} + +func (v NullableSubscriptionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_subscription_request.go b/services/smartview/model_subscription_request.go new file mode 100644 index 00000000..55e3048e --- /dev/null +++ b/services/smartview/model_subscription_request.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the SubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubscriptionRequest{} + +// SubscriptionRequest Subscription Request Payload +type SubscriptionRequest struct { + Channel *Channel `json:"channel,omitempty"` + MessageType *MessageType `json:"messageType,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SubscriptionRequest SubscriptionRequest + +// NewSubscriptionRequest instantiates a new SubscriptionRequest 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 NewSubscriptionRequest() *SubscriptionRequest { + this := SubscriptionRequest{} + return &this +} + +// NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest 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 NewSubscriptionRequestWithDefaults() *SubscriptionRequest { + this := SubscriptionRequest{} + return &this +} + +// GetChannel returns the Channel field value if set, zero value otherwise. +func (o *SubscriptionRequest) GetChannel() Channel { + if o == nil || IsNil(o.Channel) { + var ret Channel + return ret + } + return *o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetChannelOk() (*Channel, bool) { + if o == nil || IsNil(o.Channel) { + return nil, false + } + return o.Channel, true +} + +// HasChannel returns a boolean if a field has been set. +func (o *SubscriptionRequest) HasChannel() bool { + if o != nil && !IsNil(o.Channel) { + return true + } + + return false +} + +// SetChannel gets a reference to the given Channel and assigns it to the Channel field. +func (o *SubscriptionRequest) SetChannel(v Channel) { + o.Channel = &v +} + +// GetMessageType returns the MessageType field value if set, zero value otherwise. +func (o *SubscriptionRequest) GetMessageType() MessageType { + if o == nil || IsNil(o.MessageType) { + var ret MessageType + return ret + } + return *o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetMessageTypeOk() (*MessageType, bool) { + if o == nil || IsNil(o.MessageType) { + return nil, false + } + return o.MessageType, true +} + +// HasMessageType returns a boolean if a field has been set. +func (o *SubscriptionRequest) HasMessageType() bool { + if o != nil && !IsNil(o.MessageType) { + return true + } + + return false +} + +// SetMessageType gets a reference to the given MessageType and assigns it to the MessageType field. +func (o *SubscriptionRequest) SetMessageType(v MessageType) { + o.MessageType = &v +} + +func (o SubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubscriptionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + if !IsNil(o.MessageType) { + toSerialize["messageType"] = o.MessageType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + varSubscriptionRequest := _SubscriptionRequest{} + + err = json.Unmarshal(data, &varSubscriptionRequest) + + if err != nil { + return err + } + + *o = SubscriptionRequest(varSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "channel") + delete(additionalProperties, "messageType") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscriptionRequest struct { + value *SubscriptionRequest + isSet bool +} + +func (v NullableSubscriptionRequest) Get() *SubscriptionRequest { + return v.value +} + +func (v *NullableSubscriptionRequest) Set(val *SubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRequest(val *SubscriptionRequest) *NullableSubscriptionRequest { + return &NullableSubscriptionRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_subscription_response.go b/services/smartview/model_subscription_response.go new file mode 100644 index 00000000..c13a47d2 --- /dev/null +++ b/services/smartview/model_subscription_response.go @@ -0,0 +1,452 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "time" +) + +// checks if the SubscriptionResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubscriptionResponse{} + +// SubscriptionResponse Subscription Response +type SubscriptionResponse struct { + Channel *Channel `json:"channel,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` + Id *string `json:"id,omitempty"` + MessageType *MessageType `json:"messageType,omitempty"` + OrgId *string `json:"orgId,omitempty"` + Status *SubscriptionResponseStatus `json:"status,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SubscriptionResponse SubscriptionResponse + +// NewSubscriptionResponse instantiates a new SubscriptionResponse 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 NewSubscriptionResponse() *SubscriptionResponse { + this := SubscriptionResponse{} + return &this +} + +// NewSubscriptionResponseWithDefaults instantiates a new SubscriptionResponse 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 NewSubscriptionResponseWithDefaults() *SubscriptionResponse { + this := SubscriptionResponse{} + return &this +} + +// GetChannel returns the Channel field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetChannel() Channel { + if o == nil || IsNil(o.Channel) { + var ret Channel + return ret + } + return *o.Channel +} + +// GetChannelOk returns a tuple with the Channel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetChannelOk() (*Channel, bool) { + if o == nil || IsNil(o.Channel) { + return nil, false + } + return o.Channel, true +} + +// HasChannel returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasChannel() bool { + if o != nil && !IsNil(o.Channel) { + return true + } + + return false +} + +// SetChannel gets a reference to the given Channel and assigns it to the Channel field. +func (o *SubscriptionResponse) SetChannel(v Channel) { + o.Channel = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *SubscriptionResponse) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetCreatedDateTime returns the CreatedDateTime field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetCreatedDateTime() time.Time { + if o == nil || IsNil(o.CreatedDateTime) { + var ret time.Time + return ret + } + return *o.CreatedDateTime +} + +// GetCreatedDateTimeOk returns a tuple with the CreatedDateTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetCreatedDateTimeOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedDateTime) { + return nil, false + } + return o.CreatedDateTime, true +} + +// HasCreatedDateTime returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasCreatedDateTime() bool { + if o != nil && !IsNil(o.CreatedDateTime) { + return true + } + + return false +} + +// SetCreatedDateTime gets a reference to the given time.Time and assigns it to the CreatedDateTime field. +func (o *SubscriptionResponse) SetCreatedDateTime(v time.Time) { + o.CreatedDateTime = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SubscriptionResponse) SetId(v string) { + o.Id = &v +} + +// GetMessageType returns the MessageType field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetMessageType() MessageType { + if o == nil || IsNil(o.MessageType) { + var ret MessageType + return ret + } + return *o.MessageType +} + +// GetMessageTypeOk returns a tuple with the MessageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetMessageTypeOk() (*MessageType, bool) { + if o == nil || IsNil(o.MessageType) { + return nil, false + } + return o.MessageType, true +} + +// HasMessageType returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasMessageType() bool { + if o != nil && !IsNil(o.MessageType) { + return true + } + + return false +} + +// SetMessageType gets a reference to the given MessageType and assigns it to the MessageType field. +func (o *SubscriptionResponse) SetMessageType(v MessageType) { + o.MessageType = &v +} + +// GetOrgId returns the OrgId field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetOrgId() string { + if o == nil || IsNil(o.OrgId) { + var ret string + return ret + } + return *o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetOrgIdOk() (*string, bool) { + if o == nil || IsNil(o.OrgId) { + return nil, false + } + return o.OrgId, true +} + +// HasOrgId returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasOrgId() bool { + if o != nil && !IsNil(o.OrgId) { + return true + } + + return false +} + +// SetOrgId gets a reference to the given string and assigns it to the OrgId field. +func (o *SubscriptionResponse) SetOrgId(v string) { + o.OrgId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetStatus() SubscriptionResponseStatus { + if o == nil || IsNil(o.Status) { + var ret SubscriptionResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetStatusOk() (*SubscriptionResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given SubscriptionResponseStatus and assigns it to the Status field. +func (o *SubscriptionResponse) SetStatus(v SubscriptionResponseStatus) { + o.Status = &v +} + +// GetUpdatedBy returns the UpdatedBy field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetUpdatedBy() string { + if o == nil || IsNil(o.UpdatedBy) { + var ret string + return ret + } + return *o.UpdatedBy +} + +// GetUpdatedByOk returns a tuple with the UpdatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetUpdatedByOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedBy) { + return nil, false + } + return o.UpdatedBy, true +} + +// HasUpdatedBy returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasUpdatedBy() bool { + if o != nil && !IsNil(o.UpdatedBy) { + return true + } + + return false +} + +// SetUpdatedBy gets a reference to the given string and assigns it to the UpdatedBy field. +func (o *SubscriptionResponse) SetUpdatedBy(v string) { + o.UpdatedBy = &v +} + +// GetUpdatedDateTime returns the UpdatedDateTime field value if set, zero value otherwise. +func (o *SubscriptionResponse) GetUpdatedDateTime() time.Time { + if o == nil || IsNil(o.UpdatedDateTime) { + var ret time.Time + return ret + } + return *o.UpdatedDateTime +} + +// GetUpdatedDateTimeOk returns a tuple with the UpdatedDateTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SubscriptionResponse) GetUpdatedDateTimeOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedDateTime) { + return nil, false + } + return o.UpdatedDateTime, true +} + +// HasUpdatedDateTime returns a boolean if a field has been set. +func (o *SubscriptionResponse) HasUpdatedDateTime() bool { + if o != nil && !IsNil(o.UpdatedDateTime) { + return true + } + + return false +} + +// SetUpdatedDateTime gets a reference to the given time.Time and assigns it to the UpdatedDateTime field. +func (o *SubscriptionResponse) SetUpdatedDateTime(v time.Time) { + o.UpdatedDateTime = &v +} + +func (o SubscriptionResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubscriptionResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.CreatedDateTime) { + toSerialize["createdDateTime"] = o.CreatedDateTime + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.MessageType) { + toSerialize["messageType"] = o.MessageType + } + if !IsNil(o.OrgId) { + toSerialize["orgId"] = o.OrgId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.UpdatedBy) { + toSerialize["updatedBy"] = o.UpdatedBy + } + if !IsNil(o.UpdatedDateTime) { + toSerialize["updatedDateTime"] = o.UpdatedDateTime + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubscriptionResponse) UnmarshalJSON(data []byte) (err error) { + varSubscriptionResponse := _SubscriptionResponse{} + + err = json.Unmarshal(data, &varSubscriptionResponse) + + if err != nil { + return err + } + + *o = SubscriptionResponse(varSubscriptionResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "channel") + delete(additionalProperties, "createdBy") + delete(additionalProperties, "createdDateTime") + delete(additionalProperties, "id") + delete(additionalProperties, "messageType") + delete(additionalProperties, "orgId") + delete(additionalProperties, "status") + delete(additionalProperties, "updatedBy") + delete(additionalProperties, "updatedDateTime") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscriptionResponse struct { + value *SubscriptionResponse + isSet bool +} + +func (v NullableSubscriptionResponse) Get() *SubscriptionResponse { + return v.value +} + +func (v *NullableSubscriptionResponse) Set(val *SubscriptionResponse) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionResponse(val *SubscriptionResponse) *NullableSubscriptionResponse { + return &NullableSubscriptionResponse{value: val, isSet: true} +} + +func (v NullableSubscriptionResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_subscription_response_status.go b/services/smartview/model_subscription_response_status.go new file mode 100644 index 00000000..9e640b72 --- /dev/null +++ b/services/smartview/model_subscription_response_status.go @@ -0,0 +1,117 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// SubscriptionResponseStatus the model 'SubscriptionResponseStatus' +type SubscriptionResponseStatus string + +// List of SubscriptionResponse_status +const ( + SUBSCRIPTIONRESPONSESTATUS_PENDING SubscriptionResponseStatus = "PENDING" + SUBSCRIPTIONRESPONSESTATUS_ACTIVE SubscriptionResponseStatus = "ACTIVE" + SUBSCRIPTIONRESPONSESTATUS_FAILED SubscriptionResponseStatus = "FAILED" + SUBSCRIPTIONRESPONSESTATUS_DELETE_IN_PROGRESS SubscriptionResponseStatus = "DELETE_IN_PROGRESS" + SUBSCRIPTIONRESPONSESTATUS_DELETED SubscriptionResponseStatus = "DELETED" +) + +// All allowed values of SubscriptionResponseStatus enum +var AllowedSubscriptionResponseStatusEnumValues = []SubscriptionResponseStatus{ + "PENDING", + "ACTIVE", + "FAILED", + "DELETE_IN_PROGRESS", + "DELETED", +} + +func (v *SubscriptionResponseStatus) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SubscriptionResponseStatus(value) + for _, existing := range AllowedSubscriptionResponseStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SubscriptionResponseStatus", value) +} + +// NewSubscriptionResponseStatusFromValue returns a pointer to a valid SubscriptionResponseStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSubscriptionResponseStatusFromValue(v string) (*SubscriptionResponseStatus, error) { + ev := SubscriptionResponseStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SubscriptionResponseStatus: valid values are %v", v, AllowedSubscriptionResponseStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SubscriptionResponseStatus) IsValid() bool { + for _, existing := range AllowedSubscriptionResponseStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to SubscriptionResponse_status value +func (v SubscriptionResponseStatus) Ptr() *SubscriptionResponseStatus { + return &v +} + +type NullableSubscriptionResponseStatus struct { + value *SubscriptionResponseStatus + isSet bool +} + +func (v NullableSubscriptionResponseStatus) Get() *SubscriptionResponseStatus { + return v.value +} + +func (v *NullableSubscriptionResponseStatus) Set(val *SubscriptionResponseStatus) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionResponseStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionResponseStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionResponseStatus(val *SubscriptionResponseStatus) *NullableSubscriptionResponseStatus { + return &NullableSubscriptionResponseStatus{value: val, isSet: true} +} + +func (v NullableSubscriptionResponseStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionResponseStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_system_alert.go b/services/smartview/model_system_alert.go new file mode 100644 index 00000000..258b46a8 --- /dev/null +++ b/services/smartview/model_system_alert.go @@ -0,0 +1,197 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the SystemAlert type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SystemAlert{} + +// SystemAlert System Alert messages are sent when Equinix-defined alert conditions become true. The message contains the data point value that triggered the alert as well as the current value. +type SystemAlert struct { + AccountNumber string `json:"accountNumber"` + Ibx []string `json:"ibx"` + AdditionalProperties map[string]interface{} +} + +type _SystemAlert SystemAlert + +// NewSystemAlert instantiates a new SystemAlert 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 NewSystemAlert(accountNumber string, ibx []string) *SystemAlert { + this := SystemAlert{} + this.AccountNumber = accountNumber + this.Ibx = ibx + return &this +} + +// NewSystemAlertWithDefaults instantiates a new SystemAlert 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 NewSystemAlertWithDefaults() *SystemAlert { + this := SystemAlert{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value +func (o *SystemAlert) GetAccountNumber() string { + if o == nil { + var ret string + return ret + } + + return o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value +// and a boolean to check if the value has been set. +func (o *SystemAlert) GetAccountNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountNumber, true +} + +// SetAccountNumber sets field value +func (o *SystemAlert) SetAccountNumber(v string) { + o.AccountNumber = v +} + +// GetIbx returns the Ibx field value +func (o *SystemAlert) GetIbx() []string { + if o == nil { + var ret []string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *SystemAlert) GetIbxOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Ibx, true +} + +// SetIbx sets field value +func (o *SystemAlert) SetIbx(v []string) { + o.Ibx = v +} + +func (o SystemAlert) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SystemAlert) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["accountNumber"] = o.AccountNumber + toSerialize["ibx"] = o.Ibx + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SystemAlert) 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{ + "accountNumber", + "ibx", + } + + 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) + } + } + + varSystemAlert := _SystemAlert{} + + err = json.Unmarshal(data, &varSystemAlert) + + if err != nil { + return err + } + + *o = SystemAlert(varSystemAlert) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "ibx") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSystemAlert struct { + value *SystemAlert + isSet bool +} + +func (v NullableSystemAlert) Get() *SystemAlert { + return v.value +} + +func (v *NullableSystemAlert) Set(val *SystemAlert) { + v.value = val + v.isSet = true +} + +func (v NullableSystemAlert) IsSet() bool { + return v.isSet +} + +func (v *NullableSystemAlert) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSystemAlert(val *SystemAlert) *NullableSystemAlert { + return &NullableSystemAlert{value: val, isSet: true} +} + +func (v NullableSystemAlert) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSystemAlert) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_details.go b/services/smartview/model_tag_details.go new file mode 100644 index 00000000..6a78c39a --- /dev/null +++ b/services/smartview/model_tag_details.go @@ -0,0 +1,207 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the TagDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagDetails{} + +// TagDetails tag details +type TagDetails struct { + // tag display name + DisplayName *string `json:"displayName,omitempty"` + // tag id + Id string `json:"id"` + AdditionalProperties map[string]interface{} +} + +type _TagDetails TagDetails + +// NewTagDetails instantiates a new TagDetails 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 NewTagDetails(id string) *TagDetails { + this := TagDetails{} + this.Id = id + return &this +} + +// NewTagDetailsWithDefaults instantiates a new TagDetails 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 NewTagDetailsWithDefaults() *TagDetails { + this := TagDetails{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *TagDetails) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagDetails) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *TagDetails) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *TagDetails) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value +func (o *TagDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *TagDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *TagDetails) SetId(v string) { + o.Id = v +} + +func (o TagDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["displayName"] = o.DisplayName + } + toSerialize["id"] = o.Id + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + 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) + } + } + + varTagDetails := _TagDetails{} + + err = json.Unmarshal(data, &varTagDetails) + + if err != nil { + return err + } + + *o = TagDetails(varTagDetails) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "displayName") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagDetails struct { + value *TagDetails + isSet bool +} + +func (v NullableTagDetails) Get() *TagDetails { + return v.value +} + +func (v *NullableTagDetails) Set(val *TagDetails) { + v.value = val + v.isSet = true +} + +func (v NullableTagDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableTagDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagDetails(val *TagDetails) *NullableTagDetails { + return &NullableTagDetails{value: val, isSet: true} +} + +func (v NullableTagDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point.go b/services/smartview/model_tag_point.go new file mode 100644 index 00000000..2216b589 --- /dev/null +++ b/services/smartview/model_tag_point.go @@ -0,0 +1,317 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the TagPoint type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPoint{} + +// TagPoint message data +type TagPoint struct { + // data quality: Good | Bad | Uncertain + DataQuality string `json:"dataQuality"` + // ibx + Ibx string `json:"ibx"` + Reading TagPointValueWithUnit `json:"reading"` + // message reading time + ReadingTime string `json:"readingTime"` + // unique message id + StreamId string `json:"streamId"` + Tag TagDetails `json:"tag"` + AdditionalProperties map[string]interface{} +} + +type _TagPoint TagPoint + +// NewTagPoint instantiates a new TagPoint 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 NewTagPoint(dataQuality string, ibx string, reading TagPointValueWithUnit, readingTime string, streamId string, tag TagDetails) *TagPoint { + this := TagPoint{} + this.DataQuality = dataQuality + this.Ibx = ibx + this.Reading = reading + this.ReadingTime = readingTime + this.StreamId = streamId + this.Tag = tag + return &this +} + +// NewTagPointWithDefaults instantiates a new TagPoint 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 NewTagPointWithDefaults() *TagPoint { + this := TagPoint{} + return &this +} + +// GetDataQuality returns the DataQuality field value +func (o *TagPoint) GetDataQuality() string { + if o == nil { + var ret string + return ret + } + + return o.DataQuality +} + +// GetDataQualityOk returns a tuple with the DataQuality field value +// and a boolean to check if the value has been set. +func (o *TagPoint) GetDataQualityOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataQuality, true +} + +// SetDataQuality sets field value +func (o *TagPoint) SetDataQuality(v string) { + o.DataQuality = v +} + +// GetIbx returns the Ibx field value +func (o *TagPoint) GetIbx() string { + if o == nil { + var ret string + return ret + } + + return o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value +// and a boolean to check if the value has been set. +func (o *TagPoint) GetIbxOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Ibx, true +} + +// SetIbx sets field value +func (o *TagPoint) SetIbx(v string) { + o.Ibx = v +} + +// GetReading returns the Reading field value +func (o *TagPoint) GetReading() TagPointValueWithUnit { + if o == nil { + var ret TagPointValueWithUnit + return ret + } + + return o.Reading +} + +// GetReadingOk returns a tuple with the Reading field value +// and a boolean to check if the value has been set. +func (o *TagPoint) GetReadingOk() (*TagPointValueWithUnit, bool) { + if o == nil { + return nil, false + } + return &o.Reading, true +} + +// SetReading sets field value +func (o *TagPoint) SetReading(v TagPointValueWithUnit) { + o.Reading = v +} + +// GetReadingTime returns the ReadingTime field value +func (o *TagPoint) GetReadingTime() string { + if o == nil { + var ret string + return ret + } + + return o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value +// and a boolean to check if the value has been set. +func (o *TagPoint) GetReadingTimeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ReadingTime, true +} + +// SetReadingTime sets field value +func (o *TagPoint) SetReadingTime(v string) { + o.ReadingTime = v +} + +// GetStreamId returns the StreamId field value +func (o *TagPoint) GetStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.StreamId +} + +// GetStreamIdOk returns a tuple with the StreamId field value +// and a boolean to check if the value has been set. +func (o *TagPoint) GetStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StreamId, true +} + +// SetStreamId sets field value +func (o *TagPoint) SetStreamId(v string) { + o.StreamId = v +} + +// GetTag returns the Tag field value +func (o *TagPoint) GetTag() TagDetails { + if o == nil { + var ret TagDetails + return ret + } + + return o.Tag +} + +// GetTagOk returns a tuple with the Tag field value +// and a boolean to check if the value has been set. +func (o *TagPoint) GetTagOk() (*TagDetails, bool) { + if o == nil { + return nil, false + } + return &o.Tag, true +} + +// SetTag sets field value +func (o *TagPoint) SetTag(v TagDetails) { + o.Tag = v +} + +func (o TagPoint) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPoint) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["dataQuality"] = o.DataQuality + toSerialize["ibx"] = o.Ibx + toSerialize["reading"] = o.Reading + toSerialize["readingTime"] = o.ReadingTime + toSerialize["streamId"] = o.StreamId + toSerialize["tag"] = o.Tag + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPoint) 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{ + "dataQuality", + "ibx", + "reading", + "readingTime", + "streamId", + "tag", + } + + 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) + } + } + + varTagPoint := _TagPoint{} + + err = json.Unmarshal(data, &varTagPoint) + + if err != nil { + return err + } + + *o = TagPoint(varTagPoint) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dataQuality") + delete(additionalProperties, "ibx") + delete(additionalProperties, "reading") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "streamId") + delete(additionalProperties, "tag") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPoint struct { + value *TagPoint + isSet bool +} + +func (v NullableTagPoint) Get() *TagPoint { + return v.value +} + +func (v *NullableTagPoint) Set(val *TagPoint) { + v.value = val + v.isSet = true +} + +func (v NullableTagPoint) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPoint) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPoint(val *TagPoint) *NullableTagPoint { + return &NullableTagPoint{value: val, isSet: true} +} + +func (v NullableTagPoint) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPoint) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_data.go b/services/smartview/model_tag_point_data.go new file mode 100644 index 00000000..bf82df20 --- /dev/null +++ b/services/smartview/model_tag_point_data.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointData{} + +// TagPointData struct for TagPointData +type TagPointData struct { + PayLoad []TagPointDataArrayCurrent `json:"payLoad,omitempty"` + Status *TagPointDataStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointData TagPointData + +// NewTagPointData instantiates a new TagPointData 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 NewTagPointData() *TagPointData { + this := TagPointData{} + return &this +} + +// NewTagPointDataWithDefaults instantiates a new TagPointData 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 NewTagPointDataWithDefaults() *TagPointData { + this := TagPointData{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *TagPointData) GetPayLoad() []TagPointDataArrayCurrent { + if o == nil || IsNil(o.PayLoad) { + var ret []TagPointDataArrayCurrent + return ret + } + return o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointData) GetPayLoadOk() ([]TagPointDataArrayCurrent, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *TagPointData) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given []TagPointDataArrayCurrent and assigns it to the PayLoad field. +func (o *TagPointData) SetPayLoad(v []TagPointDataArrayCurrent) { + o.PayLoad = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *TagPointData) GetStatus() TagPointDataStatus { + if o == nil || IsNil(o.Status) { + var ret TagPointDataStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointData) GetStatusOk() (*TagPointDataStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *TagPointData) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given TagPointDataStatus and assigns it to the Status field. +func (o *TagPointData) SetStatus(v TagPointDataStatus) { + o.Status = &v +} + +func (o TagPointData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointData) UnmarshalJSON(data []byte) (err error) { + varTagPointData := _TagPointData{} + + err = json.Unmarshal(data, &varTagPointData) + + if err != nil { + return err + } + + *o = TagPointData(varTagPointData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointData struct { + value *TagPointData + isSet bool +} + +func (v NullableTagPointData) Get() *TagPointData { + return v.value +} + +func (v *NullableTagPointData) Set(val *TagPointData) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointData) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointData(val *TagPointData) *NullableTagPointData { + return &NullableTagPointData{value: val, isSet: true} +} + +func (v NullableTagPointData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_data_array.go b/services/smartview/model_tag_point_data_array.go new file mode 100644 index 00000000..40c7b228 --- /dev/null +++ b/services/smartview/model_tag_point_data_array.go @@ -0,0 +1,346 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointDataArray type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointDataArray{} + +// TagPointDataArray Tag Point is a property of the Asset it is linked to. +type TagPointDataArray struct { + // Generic label for the tag point + AlarmStatus *string `json:"alarmStatus,omitempty"` + // date time when the tag point value was read from the device. + ReadingTime *string `json:"readingTime,omitempty"` + // Generic label for the tag point + TagDisplayName *string `json:"tagDisplayName,omitempty"` + // ID for the tagPoint - Unique Identifier for the Tag Point + TagId *string `json:"tagId,omitempty"` + // Unit of measure for the data value for the tag point + Uom *string `json:"uom,omitempty"` + // Current data value for the tag point + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointDataArray TagPointDataArray + +// NewTagPointDataArray instantiates a new TagPointDataArray 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 NewTagPointDataArray() *TagPointDataArray { + this := TagPointDataArray{} + return &this +} + +// NewTagPointDataArrayWithDefaults instantiates a new TagPointDataArray 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 NewTagPointDataArrayWithDefaults() *TagPointDataArray { + this := TagPointDataArray{} + return &this +} + +// GetAlarmStatus returns the AlarmStatus field value if set, zero value otherwise. +func (o *TagPointDataArray) GetAlarmStatus() string { + if o == nil || IsNil(o.AlarmStatus) { + var ret string + return ret + } + return *o.AlarmStatus +} + +// GetAlarmStatusOk returns a tuple with the AlarmStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArray) GetAlarmStatusOk() (*string, bool) { + if o == nil || IsNil(o.AlarmStatus) { + return nil, false + } + return o.AlarmStatus, true +} + +// HasAlarmStatus returns a boolean if a field has been set. +func (o *TagPointDataArray) HasAlarmStatus() bool { + if o != nil && !IsNil(o.AlarmStatus) { + return true + } + + return false +} + +// SetAlarmStatus gets a reference to the given string and assigns it to the AlarmStatus field. +func (o *TagPointDataArray) SetAlarmStatus(v string) { + o.AlarmStatus = &v +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *TagPointDataArray) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArray) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *TagPointDataArray) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *TagPointDataArray) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetTagDisplayName returns the TagDisplayName field value if set, zero value otherwise. +func (o *TagPointDataArray) GetTagDisplayName() string { + if o == nil || IsNil(o.TagDisplayName) { + var ret string + return ret + } + return *o.TagDisplayName +} + +// GetTagDisplayNameOk returns a tuple with the TagDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArray) GetTagDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.TagDisplayName) { + return nil, false + } + return o.TagDisplayName, true +} + +// HasTagDisplayName returns a boolean if a field has been set. +func (o *TagPointDataArray) HasTagDisplayName() bool { + if o != nil && !IsNil(o.TagDisplayName) { + return true + } + + return false +} + +// SetTagDisplayName gets a reference to the given string and assigns it to the TagDisplayName field. +func (o *TagPointDataArray) SetTagDisplayName(v string) { + o.TagDisplayName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *TagPointDataArray) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArray) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *TagPointDataArray) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *TagPointDataArray) SetTagId(v string) { + o.TagId = &v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *TagPointDataArray) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArray) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *TagPointDataArray) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *TagPointDataArray) SetUom(v string) { + o.Uom = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TagPointDataArray) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArray) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TagPointDataArray) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *TagPointDataArray) SetValue(v string) { + o.Value = &v +} + +func (o TagPointDataArray) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointDataArray) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AlarmStatus) { + toSerialize["alarmStatus"] = o.AlarmStatus + } + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + if !IsNil(o.TagDisplayName) { + toSerialize["tagDisplayName"] = o.TagDisplayName + } + if !IsNil(o.TagId) { + toSerialize["tagId"] = o.TagId + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointDataArray) UnmarshalJSON(data []byte) (err error) { + varTagPointDataArray := _TagPointDataArray{} + + err = json.Unmarshal(data, &varTagPointDataArray) + + if err != nil { + return err + } + + *o = TagPointDataArray(varTagPointDataArray) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "alarmStatus") + delete(additionalProperties, "readingTime") + delete(additionalProperties, "tagDisplayName") + delete(additionalProperties, "tagId") + delete(additionalProperties, "uom") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointDataArray struct { + value *TagPointDataArray + isSet bool +} + +func (v NullableTagPointDataArray) Get() *TagPointDataArray { + return v.value +} + +func (v *NullableTagPointDataArray) Set(val *TagPointDataArray) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointDataArray) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointDataArray) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointDataArray(val *TagPointDataArray) *NullableTagPointDataArray { + return &NullableTagPointDataArray{value: val, isSet: true} +} + +func (v NullableTagPointDataArray) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointDataArray) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_data_array_current.go b/services/smartview/model_tag_point_data_array_current.go new file mode 100644 index 00000000..b41434e0 --- /dev/null +++ b/services/smartview/model_tag_point_data_array_current.go @@ -0,0 +1,308 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointDataArrayCurrent type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointDataArrayCurrent{} + +// TagPointDataArrayCurrent Tag Point is a property of the Asset it is linked to. +type TagPointDataArrayCurrent struct { + // date time when the tag point value was read from the device. + ReadingTime *string `json:"readingTime,omitempty"` + // Generic label for the tag point + TagDisplayName *string `json:"tagDisplayName,omitempty"` + // ID for the tagPoint - Unique Identifier for the Tag Point + TagId *string `json:"tagId,omitempty"` + // Unit of measure for the data value for the tag point + Uom *string `json:"uom,omitempty"` + // Current data value for the tag point + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointDataArrayCurrent TagPointDataArrayCurrent + +// NewTagPointDataArrayCurrent instantiates a new TagPointDataArrayCurrent 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 NewTagPointDataArrayCurrent() *TagPointDataArrayCurrent { + this := TagPointDataArrayCurrent{} + return &this +} + +// NewTagPointDataArrayCurrentWithDefaults instantiates a new TagPointDataArrayCurrent 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 NewTagPointDataArrayCurrentWithDefaults() *TagPointDataArrayCurrent { + this := TagPointDataArrayCurrent{} + return &this +} + +// GetReadingTime returns the ReadingTime field value if set, zero value otherwise. +func (o *TagPointDataArrayCurrent) GetReadingTime() string { + if o == nil || IsNil(o.ReadingTime) { + var ret string + return ret + } + return *o.ReadingTime +} + +// GetReadingTimeOk returns a tuple with the ReadingTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArrayCurrent) GetReadingTimeOk() (*string, bool) { + if o == nil || IsNil(o.ReadingTime) { + return nil, false + } + return o.ReadingTime, true +} + +// HasReadingTime returns a boolean if a field has been set. +func (o *TagPointDataArrayCurrent) HasReadingTime() bool { + if o != nil && !IsNil(o.ReadingTime) { + return true + } + + return false +} + +// SetReadingTime gets a reference to the given string and assigns it to the ReadingTime field. +func (o *TagPointDataArrayCurrent) SetReadingTime(v string) { + o.ReadingTime = &v +} + +// GetTagDisplayName returns the TagDisplayName field value if set, zero value otherwise. +func (o *TagPointDataArrayCurrent) GetTagDisplayName() string { + if o == nil || IsNil(o.TagDisplayName) { + var ret string + return ret + } + return *o.TagDisplayName +} + +// GetTagDisplayNameOk returns a tuple with the TagDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArrayCurrent) GetTagDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.TagDisplayName) { + return nil, false + } + return o.TagDisplayName, true +} + +// HasTagDisplayName returns a boolean if a field has been set. +func (o *TagPointDataArrayCurrent) HasTagDisplayName() bool { + if o != nil && !IsNil(o.TagDisplayName) { + return true + } + + return false +} + +// SetTagDisplayName gets a reference to the given string and assigns it to the TagDisplayName field. +func (o *TagPointDataArrayCurrent) SetTagDisplayName(v string) { + o.TagDisplayName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *TagPointDataArrayCurrent) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArrayCurrent) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *TagPointDataArrayCurrent) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *TagPointDataArrayCurrent) SetTagId(v string) { + o.TagId = &v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *TagPointDataArrayCurrent) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArrayCurrent) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *TagPointDataArrayCurrent) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *TagPointDataArrayCurrent) SetUom(v string) { + o.Uom = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TagPointDataArrayCurrent) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataArrayCurrent) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TagPointDataArrayCurrent) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *TagPointDataArrayCurrent) SetValue(v string) { + o.Value = &v +} + +func (o TagPointDataArrayCurrent) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointDataArrayCurrent) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ReadingTime) { + toSerialize["readingTime"] = o.ReadingTime + } + if !IsNil(o.TagDisplayName) { + toSerialize["tagDisplayName"] = o.TagDisplayName + } + if !IsNil(o.TagId) { + toSerialize["tagId"] = o.TagId + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointDataArrayCurrent) UnmarshalJSON(data []byte) (err error) { + varTagPointDataArrayCurrent := _TagPointDataArrayCurrent{} + + err = json.Unmarshal(data, &varTagPointDataArrayCurrent) + + if err != nil { + return err + } + + *o = TagPointDataArrayCurrent(varTagPointDataArrayCurrent) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "readingTime") + delete(additionalProperties, "tagDisplayName") + delete(additionalProperties, "tagId") + delete(additionalProperties, "uom") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointDataArrayCurrent struct { + value *TagPointDataArrayCurrent + isSet bool +} + +func (v NullableTagPointDataArrayCurrent) Get() *TagPointDataArrayCurrent { + return v.value +} + +func (v *NullableTagPointDataArrayCurrent) Set(val *TagPointDataArrayCurrent) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointDataArrayCurrent) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointDataArrayCurrent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointDataArrayCurrent(val *TagPointDataArrayCurrent) *NullableTagPointDataArrayCurrent { + return &NullableTagPointDataArrayCurrent{value: val, isSet: true} +} + +func (v NullableTagPointDataArrayCurrent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointDataArrayCurrent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_data_status.go b/services/smartview/model_tag_point_data_status.go new file mode 100644 index 00000000..3f09b6f5 --- /dev/null +++ b/services/smartview/model_tag_point_data_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointDataStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointDataStatus{} + +// TagPointDataStatus struct for TagPointDataStatus +type TagPointDataStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointDataStatus TagPointDataStatus + +// NewTagPointDataStatus instantiates a new TagPointDataStatus 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 NewTagPointDataStatus() *TagPointDataStatus { + this := TagPointDataStatus{} + return &this +} + +// NewTagPointDataStatusWithDefaults instantiates a new TagPointDataStatus 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 NewTagPointDataStatusWithDefaults() *TagPointDataStatus { + this := TagPointDataStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *TagPointDataStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *TagPointDataStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *TagPointDataStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *TagPointDataStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *TagPointDataStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *TagPointDataStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *TagPointDataStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointDataStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *TagPointDataStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *TagPointDataStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o TagPointDataStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointDataStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointDataStatus) UnmarshalJSON(data []byte) (err error) { + varTagPointDataStatus := _TagPointDataStatus{} + + err = json.Unmarshal(data, &varTagPointDataStatus) + + if err != nil { + return err + } + + *o = TagPointDataStatus(varTagPointDataStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointDataStatus struct { + value *TagPointDataStatus + isSet bool +} + +func (v NullableTagPointDataStatus) Get() *TagPointDataStatus { + return v.value +} + +func (v *NullableTagPointDataStatus) Set(val *TagPointDataStatus) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointDataStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointDataStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointDataStatus(val *TagPointDataStatus) *NullableTagPointDataStatus { + return &NullableTagPointDataStatus{value: val, isSet: true} +} + +func (v NullableTagPointDataStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointDataStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_message_data.go b/services/smartview/model_tag_point_message_data.go new file mode 100644 index 00000000..0d00c909 --- /dev/null +++ b/services/smartview/model_tag_point_message_data.go @@ -0,0 +1,200 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the TagPointMessageData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointMessageData{} + +// TagPointMessageData tag-point message data +type TagPointMessageData struct { + Data TagPoint `json:"data"` + // message type + Type string `json:"type"` + AdditionalProperties map[string]interface{} +} + +type _TagPointMessageData TagPointMessageData + +// NewTagPointMessageData instantiates a new TagPointMessageData 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 NewTagPointMessageData(data TagPoint, type_ string) *TagPointMessageData { + this := TagPointMessageData{} + this.Data = data + this.Type = type_ + return &this +} + +// NewTagPointMessageDataWithDefaults instantiates a new TagPointMessageData 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 NewTagPointMessageDataWithDefaults() *TagPointMessageData { + this := TagPointMessageData{} + var type_ string = "tag-point" + this.Type = type_ + return &this +} + +// GetData returns the Data field value +func (o *TagPointMessageData) GetData() TagPoint { + if o == nil { + var ret TagPoint + 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 *TagPointMessageData) GetDataOk() (*TagPoint, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *TagPointMessageData) SetData(v TagPoint) { + o.Data = v +} + +// GetType returns the Type field value +func (o *TagPointMessageData) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *TagPointMessageData) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagPointMessageData) SetType(v string) { + o.Type = v +} + +func (o TagPointMessageData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointMessageData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + toSerialize["type"] = o.Type + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointMessageData) 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", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTagPointMessageData := _TagPointMessageData{} + + err = json.Unmarshal(data, &varTagPointMessageData) + + if err != nil { + return err + } + + *o = TagPointMessageData(varTagPointMessageData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointMessageData struct { + value *TagPointMessageData + isSet bool +} + +func (v NullableTagPointMessageData) Get() *TagPointMessageData { + return v.value +} + +func (v *NullableTagPointMessageData) Set(val *TagPointMessageData) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointMessageData) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointMessageData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointMessageData(val *TagPointMessageData) *NullableTagPointMessageData { + return &NullableTagPointMessageData{value: val, isSet: true} +} + +func (v NullableTagPointMessageData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointMessageData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_trending_data.go b/services/smartview/model_tag_point_trending_data.go new file mode 100644 index 00000000..3eeb2862 --- /dev/null +++ b/services/smartview/model_tag_point_trending_data.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointTrendingData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointTrendingData{} + +// TagPointTrendingData struct for TagPointTrendingData +type TagPointTrendingData struct { + // UTC time + Datetime *string `json:"datetime,omitempty"` + Value *string `json:"value,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointTrendingData TagPointTrendingData + +// NewTagPointTrendingData instantiates a new TagPointTrendingData 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 NewTagPointTrendingData() *TagPointTrendingData { + this := TagPointTrendingData{} + return &this +} + +// NewTagPointTrendingDataWithDefaults instantiates a new TagPointTrendingData 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 NewTagPointTrendingDataWithDefaults() *TagPointTrendingData { + this := TagPointTrendingData{} + return &this +} + +// GetDatetime returns the Datetime field value if set, zero value otherwise. +func (o *TagPointTrendingData) GetDatetime() string { + if o == nil || IsNil(o.Datetime) { + var ret string + return ret + } + return *o.Datetime +} + +// GetDatetimeOk returns a tuple with the Datetime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingData) GetDatetimeOk() (*string, bool) { + if o == nil || IsNil(o.Datetime) { + return nil, false + } + return o.Datetime, true +} + +// HasDatetime returns a boolean if a field has been set. +func (o *TagPointTrendingData) HasDatetime() bool { + if o != nil && !IsNil(o.Datetime) { + return true + } + + return false +} + +// SetDatetime gets a reference to the given string and assigns it to the Datetime field. +func (o *TagPointTrendingData) SetDatetime(v string) { + o.Datetime = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TagPointTrendingData) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingData) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TagPointTrendingData) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *TagPointTrendingData) SetValue(v string) { + o.Value = &v +} + +func (o TagPointTrendingData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointTrendingData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Datetime) { + toSerialize["datetime"] = o.Datetime + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointTrendingData) UnmarshalJSON(data []byte) (err error) { + varTagPointTrendingData := _TagPointTrendingData{} + + err = json.Unmarshal(data, &varTagPointTrendingData) + + if err != nil { + return err + } + + *o = TagPointTrendingData(varTagPointTrendingData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "datetime") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointTrendingData struct { + value *TagPointTrendingData + isSet bool +} + +func (v NullableTagPointTrendingData) Get() *TagPointTrendingData { + return v.value +} + +func (v *NullableTagPointTrendingData) Set(val *TagPointTrendingData) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointTrendingData) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointTrendingData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointTrendingData(val *TagPointTrendingData) *NullableTagPointTrendingData { + return &NullableTagPointTrendingData{value: val, isSet: true} +} + +func (v NullableTagPointTrendingData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointTrendingData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_trending_response.go b/services/smartview/model_tag_point_trending_response.go new file mode 100644 index 00000000..d10af64d --- /dev/null +++ b/services/smartview/model_tag_point_trending_response.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointTrendingResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointTrendingResponse{} + +// TagPointTrendingResponse struct for TagPointTrendingResponse +type TagPointTrendingResponse struct { + PayLoad *TagPointTrendingResponsePayLoad `json:"payLoad,omitempty"` + Status *TagPointTrendingResponseStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointTrendingResponse TagPointTrendingResponse + +// NewTagPointTrendingResponse instantiates a new TagPointTrendingResponse 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 NewTagPointTrendingResponse() *TagPointTrendingResponse { + this := TagPointTrendingResponse{} + return &this +} + +// NewTagPointTrendingResponseWithDefaults instantiates a new TagPointTrendingResponse 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 NewTagPointTrendingResponseWithDefaults() *TagPointTrendingResponse { + this := TagPointTrendingResponse{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *TagPointTrendingResponse) GetPayLoad() TagPointTrendingResponsePayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret TagPointTrendingResponsePayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponse) GetPayLoadOk() (*TagPointTrendingResponsePayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *TagPointTrendingResponse) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given TagPointTrendingResponsePayLoad and assigns it to the PayLoad field. +func (o *TagPointTrendingResponse) SetPayLoad(v TagPointTrendingResponsePayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *TagPointTrendingResponse) GetStatus() TagPointTrendingResponseStatus { + if o == nil || IsNil(o.Status) { + var ret TagPointTrendingResponseStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponse) GetStatusOk() (*TagPointTrendingResponseStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *TagPointTrendingResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given TagPointTrendingResponseStatus and assigns it to the Status field. +func (o *TagPointTrendingResponse) SetStatus(v TagPointTrendingResponseStatus) { + o.Status = &v +} + +func (o TagPointTrendingResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointTrendingResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointTrendingResponse) UnmarshalJSON(data []byte) (err error) { + varTagPointTrendingResponse := _TagPointTrendingResponse{} + + err = json.Unmarshal(data, &varTagPointTrendingResponse) + + if err != nil { + return err + } + + *o = TagPointTrendingResponse(varTagPointTrendingResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointTrendingResponse struct { + value *TagPointTrendingResponse + isSet bool +} + +func (v NullableTagPointTrendingResponse) Get() *TagPointTrendingResponse { + return v.value +} + +func (v *NullableTagPointTrendingResponse) Set(val *TagPointTrendingResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointTrendingResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointTrendingResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointTrendingResponse(val *TagPointTrendingResponse) *NullableTagPointTrendingResponse { + return &NullableTagPointTrendingResponse{value: val, isSet: true} +} + +func (v NullableTagPointTrendingResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointTrendingResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_trending_response_pay_load.go b/services/smartview/model_tag_point_trending_response_pay_load.go new file mode 100644 index 00000000..54254139 --- /dev/null +++ b/services/smartview/model_tag_point_trending_response_pay_load.go @@ -0,0 +1,418 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointTrendingResponsePayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointTrendingResponsePayLoad{} + +// TagPointTrendingResponsePayLoad struct for TagPointTrendingResponsePayLoad +type TagPointTrendingResponsePayLoad struct { + AccountNumber *string `json:"accountNumber,omitempty"` + // trend data of tag + Data []TagPointTrendingData `json:"data,omitempty"` + // data type of trend data vlaues + DataType *string `json:"dataType,omitempty"` + Ibx *string `json:"ibx,omitempty"` + Interval *TagPointTrendingResponsePayLoadInterval `json:"interval,omitempty"` + // the + TagDisplayName *string `json:"tagDisplayName,omitempty"` + // the unique identifiers for the tag point ids for which the trending point is requested. + TagId *string `json:"tagId,omitempty"` + Uom *string `json:"uom,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointTrendingResponsePayLoad TagPointTrendingResponsePayLoad + +// NewTagPointTrendingResponsePayLoad instantiates a new TagPointTrendingResponsePayLoad 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 NewTagPointTrendingResponsePayLoad() *TagPointTrendingResponsePayLoad { + this := TagPointTrendingResponsePayLoad{} + return &this +} + +// NewTagPointTrendingResponsePayLoadWithDefaults instantiates a new TagPointTrendingResponsePayLoad 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 NewTagPointTrendingResponsePayLoadWithDefaults() *TagPointTrendingResponsePayLoad { + this := TagPointTrendingResponsePayLoad{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *TagPointTrendingResponsePayLoad) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetData() []TagPointTrendingData { + if o == nil || IsNil(o.Data) { + var ret []TagPointTrendingData + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetDataOk() ([]TagPointTrendingData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []TagPointTrendingData and assigns it to the Data field. +func (o *TagPointTrendingResponsePayLoad) SetData(v []TagPointTrendingData) { + o.Data = v +} + +// GetDataType returns the DataType field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetDataType() string { + if o == nil || IsNil(o.DataType) { + var ret string + return ret + } + return *o.DataType +} + +// GetDataTypeOk returns a tuple with the DataType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetDataTypeOk() (*string, bool) { + if o == nil || IsNil(o.DataType) { + return nil, false + } + return o.DataType, true +} + +// HasDataType returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasDataType() bool { + if o != nil && !IsNil(o.DataType) { + return true + } + + return false +} + +// SetDataType gets a reference to the given string and assigns it to the DataType field. +func (o *TagPointTrendingResponsePayLoad) SetDataType(v string) { + o.DataType = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *TagPointTrendingResponsePayLoad) SetIbx(v string) { + o.Ibx = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetInterval() TagPointTrendingResponsePayLoadInterval { + if o == nil || IsNil(o.Interval) { + var ret TagPointTrendingResponsePayLoadInterval + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetIntervalOk() (*TagPointTrendingResponsePayLoadInterval, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given TagPointTrendingResponsePayLoadInterval and assigns it to the Interval field. +func (o *TagPointTrendingResponsePayLoad) SetInterval(v TagPointTrendingResponsePayLoadInterval) { + o.Interval = &v +} + +// GetTagDisplayName returns the TagDisplayName field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetTagDisplayName() string { + if o == nil || IsNil(o.TagDisplayName) { + var ret string + return ret + } + return *o.TagDisplayName +} + +// GetTagDisplayNameOk returns a tuple with the TagDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetTagDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.TagDisplayName) { + return nil, false + } + return o.TagDisplayName, true +} + +// HasTagDisplayName returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasTagDisplayName() bool { + if o != nil && !IsNil(o.TagDisplayName) { + return true + } + + return false +} + +// SetTagDisplayName gets a reference to the given string and assigns it to the TagDisplayName field. +func (o *TagPointTrendingResponsePayLoad) SetTagDisplayName(v string) { + o.TagDisplayName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *TagPointTrendingResponsePayLoad) SetTagId(v string) { + o.TagId = &v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *TagPointTrendingResponsePayLoad) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponsePayLoad) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *TagPointTrendingResponsePayLoad) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *TagPointTrendingResponsePayLoad) SetUom(v string) { + o.Uom = &v +} + +func (o TagPointTrendingResponsePayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointTrendingResponsePayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.DataType) { + toSerialize["dataType"] = o.DataType + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + if !IsNil(o.TagDisplayName) { + toSerialize["tagDisplayName"] = o.TagDisplayName + } + if !IsNil(o.TagId) { + toSerialize["tagId"] = o.TagId + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointTrendingResponsePayLoad) UnmarshalJSON(data []byte) (err error) { + varTagPointTrendingResponsePayLoad := _TagPointTrendingResponsePayLoad{} + + err = json.Unmarshal(data, &varTagPointTrendingResponsePayLoad) + + if err != nil { + return err + } + + *o = TagPointTrendingResponsePayLoad(varTagPointTrendingResponsePayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "data") + delete(additionalProperties, "dataType") + delete(additionalProperties, "ibx") + delete(additionalProperties, "interval") + delete(additionalProperties, "tagDisplayName") + delete(additionalProperties, "tagId") + delete(additionalProperties, "uom") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointTrendingResponsePayLoad struct { + value *TagPointTrendingResponsePayLoad + isSet bool +} + +func (v NullableTagPointTrendingResponsePayLoad) Get() *TagPointTrendingResponsePayLoad { + return v.value +} + +func (v *NullableTagPointTrendingResponsePayLoad) Set(val *TagPointTrendingResponsePayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointTrendingResponsePayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointTrendingResponsePayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointTrendingResponsePayLoad(val *TagPointTrendingResponsePayLoad) *NullableTagPointTrendingResponsePayLoad { + return &NullableTagPointTrendingResponsePayLoad{value: val, isSet: true} +} + +func (v NullableTagPointTrendingResponsePayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointTrendingResponsePayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_trending_response_pay_load_interval.go b/services/smartview/model_tag_point_trending_response_pay_load_interval.go new file mode 100644 index 00000000..c47620d0 --- /dev/null +++ b/services/smartview/model_tag_point_trending_response_pay_load_interval.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// TagPointTrendingResponsePayLoadInterval data sampling interval +type TagPointTrendingResponsePayLoadInterval string + +// List of TagPointTrendingResponse_payLoad_interval +const ( + TAGPOINTTRENDINGRESPONSEPAYLOADINTERVAL__5M TagPointTrendingResponsePayLoadInterval = "5m" + TAGPOINTTRENDINGRESPONSEPAYLOADINTERVAL__15M TagPointTrendingResponsePayLoadInterval = "15m" + TAGPOINTTRENDINGRESPONSEPAYLOADINTERVAL__1H TagPointTrendingResponsePayLoadInterval = "1h" + TAGPOINTTRENDINGRESPONSEPAYLOADINTERVAL__1D TagPointTrendingResponsePayLoadInterval = "1d" +) + +// All allowed values of TagPointTrendingResponsePayLoadInterval enum +var AllowedTagPointTrendingResponsePayLoadIntervalEnumValues = []TagPointTrendingResponsePayLoadInterval{ + "5m", + "15m", + "1h", + "1d", +} + +func (v *TagPointTrendingResponsePayLoadInterval) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TagPointTrendingResponsePayLoadInterval(value) + for _, existing := range AllowedTagPointTrendingResponsePayLoadIntervalEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TagPointTrendingResponsePayLoadInterval", value) +} + +// NewTagPointTrendingResponsePayLoadIntervalFromValue returns a pointer to a valid TagPointTrendingResponsePayLoadInterval +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTagPointTrendingResponsePayLoadIntervalFromValue(v string) (*TagPointTrendingResponsePayLoadInterval, error) { + ev := TagPointTrendingResponsePayLoadInterval(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TagPointTrendingResponsePayLoadInterval: valid values are %v", v, AllowedTagPointTrendingResponsePayLoadIntervalEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TagPointTrendingResponsePayLoadInterval) IsValid() bool { + for _, existing := range AllowedTagPointTrendingResponsePayLoadIntervalEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TagPointTrendingResponse_payLoad_interval value +func (v TagPointTrendingResponsePayLoadInterval) Ptr() *TagPointTrendingResponsePayLoadInterval { + return &v +} + +type NullableTagPointTrendingResponsePayLoadInterval struct { + value *TagPointTrendingResponsePayLoadInterval + isSet bool +} + +func (v NullableTagPointTrendingResponsePayLoadInterval) Get() *TagPointTrendingResponsePayLoadInterval { + return v.value +} + +func (v *NullableTagPointTrendingResponsePayLoadInterval) Set(val *TagPointTrendingResponsePayLoadInterval) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointTrendingResponsePayLoadInterval) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointTrendingResponsePayLoadInterval) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointTrendingResponsePayLoadInterval(val *TagPointTrendingResponsePayLoadInterval) *NullableTagPointTrendingResponsePayLoadInterval { + return &NullableTagPointTrendingResponsePayLoadInterval{value: val, isSet: true} +} + +func (v NullableTagPointTrendingResponsePayLoadInterval) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointTrendingResponsePayLoadInterval) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_tag_point_trending_response_status.go b/services/smartview/model_tag_point_trending_response_status.go new file mode 100644 index 00000000..997d59c6 --- /dev/null +++ b/services/smartview/model_tag_point_trending_response_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TagPointTrendingResponseStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointTrendingResponseStatus{} + +// TagPointTrendingResponseStatus struct for TagPointTrendingResponseStatus +type TagPointTrendingResponseStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TagPointTrendingResponseStatus TagPointTrendingResponseStatus + +// NewTagPointTrendingResponseStatus instantiates a new TagPointTrendingResponseStatus 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 NewTagPointTrendingResponseStatus() *TagPointTrendingResponseStatus { + this := TagPointTrendingResponseStatus{} + return &this +} + +// NewTagPointTrendingResponseStatusWithDefaults instantiates a new TagPointTrendingResponseStatus 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 NewTagPointTrendingResponseStatusWithDefaults() *TagPointTrendingResponseStatus { + this := TagPointTrendingResponseStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *TagPointTrendingResponseStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponseStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *TagPointTrendingResponseStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *TagPointTrendingResponseStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *TagPointTrendingResponseStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponseStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *TagPointTrendingResponseStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *TagPointTrendingResponseStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *TagPointTrendingResponseStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointTrendingResponseStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *TagPointTrendingResponseStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *TagPointTrendingResponseStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o TagPointTrendingResponseStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointTrendingResponseStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointTrendingResponseStatus) UnmarshalJSON(data []byte) (err error) { + varTagPointTrendingResponseStatus := _TagPointTrendingResponseStatus{} + + err = json.Unmarshal(data, &varTagPointTrendingResponseStatus) + + if err != nil { + return err + } + + *o = TagPointTrendingResponseStatus(varTagPointTrendingResponseStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointTrendingResponseStatus struct { + value *TagPointTrendingResponseStatus + isSet bool +} + +func (v NullableTagPointTrendingResponseStatus) Get() *TagPointTrendingResponseStatus { + return v.value +} + +func (v *NullableTagPointTrendingResponseStatus) Set(val *TagPointTrendingResponseStatus) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointTrendingResponseStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointTrendingResponseStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointTrendingResponseStatus(val *TagPointTrendingResponseStatus) *NullableTagPointTrendingResponseStatus { + return &NullableTagPointTrendingResponseStatus{value: val, isSet: true} +} + +func (v NullableTagPointTrendingResponseStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointTrendingResponseStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_tag_point_value_with_unit.go b/services/smartview/model_tag_point_value_with_unit.go new file mode 100644 index 00000000..9d9c54fc --- /dev/null +++ b/services/smartview/model_tag_point_value_with_unit.go @@ -0,0 +1,207 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the TagPointValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagPointValueWithUnit{} + +// TagPointValueWithUnit reading details +type TagPointValueWithUnit struct { + // reading unit + Unit *string `json:"unit,omitempty"` + // reading value + Value string `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _TagPointValueWithUnit TagPointValueWithUnit + +// NewTagPointValueWithUnit instantiates a new TagPointValueWithUnit 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 NewTagPointValueWithUnit(value string) *TagPointValueWithUnit { + this := TagPointValueWithUnit{} + this.Value = value + return &this +} + +// NewTagPointValueWithUnitWithDefaults instantiates a new TagPointValueWithUnit 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 NewTagPointValueWithUnitWithDefaults() *TagPointValueWithUnit { + this := TagPointValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value if set, zero value otherwise. +func (o *TagPointValueWithUnit) GetUnit() string { + if o == nil || IsNil(o.Unit) { + var ret string + return ret + } + return *o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagPointValueWithUnit) GetUnitOk() (*string, bool) { + if o == nil || IsNil(o.Unit) { + return nil, false + } + return o.Unit, true +} + +// HasUnit returns a boolean if a field has been set. +func (o *TagPointValueWithUnit) HasUnit() bool { + if o != nil && !IsNil(o.Unit) { + return true + } + + return false +} + +// SetUnit gets a reference to the given string and assigns it to the Unit field. +func (o *TagPointValueWithUnit) SetUnit(v string) { + o.Unit = &v +} + +// GetValue returns the Value field value +func (o *TagPointValueWithUnit) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *TagPointValueWithUnit) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *TagPointValueWithUnit) SetValue(v string) { + o.Value = v +} + +func (o TagPointValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagPointValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Unit) { + toSerialize["unit"] = o.Unit + } + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TagPointValueWithUnit) 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{ + "value", + } + + 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) + } + } + + varTagPointValueWithUnit := _TagPointValueWithUnit{} + + err = json.Unmarshal(data, &varTagPointValueWithUnit) + + if err != nil { + return err + } + + *o = TagPointValueWithUnit(varTagPointValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTagPointValueWithUnit struct { + value *TagPointValueWithUnit + isSet bool +} + +func (v NullableTagPointValueWithUnit) Get() *TagPointValueWithUnit { + return v.value +} + +func (v *NullableTagPointValueWithUnit) Set(val *TagPointValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullableTagPointValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableTagPointValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagPointValueWithUnit(val *TagPointValueWithUnit) *NullableTagPointValueWithUnit { + return &NullableTagPointValueWithUnit{value: val, isSet: true} +} + +func (v NullableTagPointValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagPointValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_template.go b/services/smartview/model_template.go new file mode 100644 index 00000000..c9fb111e --- /dev/null +++ b/services/smartview/model_template.go @@ -0,0 +1,193 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the Template type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Template{} + +// Template template is a blueprint for an asset. +type Template struct { + Assets []Asset `json:"assets,omitempty"` + // template id - unique identifier for the template + TemplateId *string `json:"templateId,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _Template Template + +// NewTemplate instantiates a new Template 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 NewTemplate() *Template { + this := Template{} + return &this +} + +// NewTemplateWithDefaults instantiates a new Template 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 NewTemplateWithDefaults() *Template { + this := Template{} + return &this +} + +// GetAssets returns the Assets field value if set, zero value otherwise. +func (o *Template) GetAssets() []Asset { + if o == nil || IsNil(o.Assets) { + var ret []Asset + return ret + } + return o.Assets +} + +// GetAssetsOk returns a tuple with the Assets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Template) GetAssetsOk() ([]Asset, bool) { + if o == nil || IsNil(o.Assets) { + return nil, false + } + return o.Assets, true +} + +// HasAssets returns a boolean if a field has been set. +func (o *Template) HasAssets() bool { + if o != nil && !IsNil(o.Assets) { + return true + } + + return false +} + +// SetAssets gets a reference to the given []Asset and assigns it to the Assets field. +func (o *Template) SetAssets(v []Asset) { + o.Assets = v +} + +// GetTemplateId returns the TemplateId field value if set, zero value otherwise. +func (o *Template) GetTemplateId() string { + if o == nil || IsNil(o.TemplateId) { + var ret string + return ret + } + return *o.TemplateId +} + +// GetTemplateIdOk returns a tuple with the TemplateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Template) GetTemplateIdOk() (*string, bool) { + if o == nil || IsNil(o.TemplateId) { + return nil, false + } + return o.TemplateId, true +} + +// HasTemplateId returns a boolean if a field has been set. +func (o *Template) HasTemplateId() bool { + if o != nil && !IsNil(o.TemplateId) { + return true + } + + return false +} + +// SetTemplateId gets a reference to the given string and assigns it to the TemplateId field. +func (o *Template) SetTemplateId(v string) { + o.TemplateId = &v +} + +func (o Template) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Template) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Assets) { + toSerialize["assets"] = o.Assets + } + if !IsNil(o.TemplateId) { + toSerialize["templateId"] = o.TemplateId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Template) UnmarshalJSON(data []byte) (err error) { + varTemplate := _Template{} + + err = json.Unmarshal(data, &varTemplate) + + if err != nil { + return err + } + + *o = Template(varTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "assets") + delete(additionalProperties, "templateId") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTemplate struct { + value *Template + isSet bool +} + +func (v NullableTemplate) Get() *Template { + return v.value +} + +func (v *NullableTemplate) Set(val *Template) { + v.value = val + v.isSet = true +} + +func (v NullableTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTemplate(val *Template) *NullableTemplate { + return &NullableTemplate{value: val, isSet: true} +} + +func (v NullableTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_trending_environment_data.go b/services/smartview/model_trending_environment_data.go new file mode 100644 index 00000000..05b29632 --- /dev/null +++ b/services/smartview/model_trending_environment_data.go @@ -0,0 +1,155 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TrendingEnvironmentData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrendingEnvironmentData{} + +// TrendingEnvironmentData struct for TrendingEnvironmentData +type TrendingEnvironmentData struct { + PayLoad *TrendingEnvironmentDataPayLoad `json:"payLoad,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TrendingEnvironmentData TrendingEnvironmentData + +// NewTrendingEnvironmentData instantiates a new TrendingEnvironmentData 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 NewTrendingEnvironmentData() *TrendingEnvironmentData { + this := TrendingEnvironmentData{} + return &this +} + +// NewTrendingEnvironmentDataWithDefaults instantiates a new TrendingEnvironmentData 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 NewTrendingEnvironmentDataWithDefaults() *TrendingEnvironmentData { + this := TrendingEnvironmentData{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *TrendingEnvironmentData) GetPayLoad() TrendingEnvironmentDataPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret TrendingEnvironmentDataPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentData) GetPayLoadOk() (*TrendingEnvironmentDataPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *TrendingEnvironmentData) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given TrendingEnvironmentDataPayLoad and assigns it to the PayLoad field. +func (o *TrendingEnvironmentData) SetPayLoad(v TrendingEnvironmentDataPayLoad) { + o.PayLoad = &v +} + +func (o TrendingEnvironmentData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrendingEnvironmentData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TrendingEnvironmentData) UnmarshalJSON(data []byte) (err error) { + varTrendingEnvironmentData := _TrendingEnvironmentData{} + + err = json.Unmarshal(data, &varTrendingEnvironmentData) + + if err != nil { + return err + } + + *o = TrendingEnvironmentData(varTrendingEnvironmentData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTrendingEnvironmentData struct { + value *TrendingEnvironmentData + isSet bool +} + +func (v NullableTrendingEnvironmentData) Get() *TrendingEnvironmentData { + return v.value +} + +func (v *NullableTrendingEnvironmentData) Set(val *TrendingEnvironmentData) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingEnvironmentData) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingEnvironmentData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingEnvironmentData(val *TrendingEnvironmentData) *NullableTrendingEnvironmentData { + return &NullableTrendingEnvironmentData{value: val, isSet: true} +} + +func (v NullableTrendingEnvironmentData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingEnvironmentData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_trending_environment_data_pay_load.go b/services/smartview/model_trending_environment_data_pay_load.go new file mode 100644 index 00000000..91017944 --- /dev/null +++ b/services/smartview/model_trending_environment_data_pay_load.go @@ -0,0 +1,346 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TrendingEnvironmentDataPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrendingEnvironmentDataPayLoad{} + +// TrendingEnvironmentDataPayLoad struct for TrendingEnvironmentDataPayLoad +type TrendingEnvironmentDataPayLoad struct { + // customer account num + AccountNo *string `json:"accountNo,omitempty"` + // data point for which the timeseries data is fetched + Datapoint *string `json:"datapoint,omitempty"` + // ibx code + Ibx *string `json:"ibx,omitempty"` + // interval + Interval *string `json:"interval,omitempty"` + // Time series data for the data point + Series []DataValue `json:"series,omitempty"` + // unit of measure used for the datapoint + Uom *string `json:"uom,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TrendingEnvironmentDataPayLoad TrendingEnvironmentDataPayLoad + +// NewTrendingEnvironmentDataPayLoad instantiates a new TrendingEnvironmentDataPayLoad 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 NewTrendingEnvironmentDataPayLoad() *TrendingEnvironmentDataPayLoad { + this := TrendingEnvironmentDataPayLoad{} + return &this +} + +// NewTrendingEnvironmentDataPayLoadWithDefaults instantiates a new TrendingEnvironmentDataPayLoad 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 NewTrendingEnvironmentDataPayLoadWithDefaults() *TrendingEnvironmentDataPayLoad { + this := TrendingEnvironmentDataPayLoad{} + return &this +} + +// GetAccountNo returns the AccountNo field value if set, zero value otherwise. +func (o *TrendingEnvironmentDataPayLoad) GetAccountNo() string { + if o == nil || IsNil(o.AccountNo) { + var ret string + return ret + } + return *o.AccountNo +} + +// GetAccountNoOk returns a tuple with the AccountNo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentDataPayLoad) GetAccountNoOk() (*string, bool) { + if o == nil || IsNil(o.AccountNo) { + return nil, false + } + return o.AccountNo, true +} + +// HasAccountNo returns a boolean if a field has been set. +func (o *TrendingEnvironmentDataPayLoad) HasAccountNo() bool { + if o != nil && !IsNil(o.AccountNo) { + return true + } + + return false +} + +// SetAccountNo gets a reference to the given string and assigns it to the AccountNo field. +func (o *TrendingEnvironmentDataPayLoad) SetAccountNo(v string) { + o.AccountNo = &v +} + +// GetDatapoint returns the Datapoint field value if set, zero value otherwise. +func (o *TrendingEnvironmentDataPayLoad) GetDatapoint() string { + if o == nil || IsNil(o.Datapoint) { + var ret string + return ret + } + return *o.Datapoint +} + +// GetDatapointOk returns a tuple with the Datapoint field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentDataPayLoad) GetDatapointOk() (*string, bool) { + if o == nil || IsNil(o.Datapoint) { + return nil, false + } + return o.Datapoint, true +} + +// HasDatapoint returns a boolean if a field has been set. +func (o *TrendingEnvironmentDataPayLoad) HasDatapoint() bool { + if o != nil && !IsNil(o.Datapoint) { + return true + } + + return false +} + +// SetDatapoint gets a reference to the given string and assigns it to the Datapoint field. +func (o *TrendingEnvironmentDataPayLoad) SetDatapoint(v string) { + o.Datapoint = &v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *TrendingEnvironmentDataPayLoad) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentDataPayLoad) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *TrendingEnvironmentDataPayLoad) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *TrendingEnvironmentDataPayLoad) SetIbx(v string) { + o.Ibx = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *TrendingEnvironmentDataPayLoad) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentDataPayLoad) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *TrendingEnvironmentDataPayLoad) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *TrendingEnvironmentDataPayLoad) SetInterval(v string) { + o.Interval = &v +} + +// GetSeries returns the Series field value if set, zero value otherwise. +func (o *TrendingEnvironmentDataPayLoad) GetSeries() []DataValue { + if o == nil || IsNil(o.Series) { + var ret []DataValue + return ret + } + return o.Series +} + +// GetSeriesOk returns a tuple with the Series field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentDataPayLoad) GetSeriesOk() ([]DataValue, bool) { + if o == nil || IsNil(o.Series) { + return nil, false + } + return o.Series, true +} + +// HasSeries returns a boolean if a field has been set. +func (o *TrendingEnvironmentDataPayLoad) HasSeries() bool { + if o != nil && !IsNil(o.Series) { + return true + } + + return false +} + +// SetSeries gets a reference to the given []DataValue and assigns it to the Series field. +func (o *TrendingEnvironmentDataPayLoad) SetSeries(v []DataValue) { + o.Series = v +} + +// GetUom returns the Uom field value if set, zero value otherwise. +func (o *TrendingEnvironmentDataPayLoad) GetUom() string { + if o == nil || IsNil(o.Uom) { + var ret string + return ret + } + return *o.Uom +} + +// GetUomOk returns a tuple with the Uom field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingEnvironmentDataPayLoad) GetUomOk() (*string, bool) { + if o == nil || IsNil(o.Uom) { + return nil, false + } + return o.Uom, true +} + +// HasUom returns a boolean if a field has been set. +func (o *TrendingEnvironmentDataPayLoad) HasUom() bool { + if o != nil && !IsNil(o.Uom) { + return true + } + + return false +} + +// SetUom gets a reference to the given string and assigns it to the Uom field. +func (o *TrendingEnvironmentDataPayLoad) SetUom(v string) { + o.Uom = &v +} + +func (o TrendingEnvironmentDataPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrendingEnvironmentDataPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNo) { + toSerialize["accountNo"] = o.AccountNo + } + if !IsNil(o.Datapoint) { + toSerialize["datapoint"] = o.Datapoint + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + if !IsNil(o.Series) { + toSerialize["series"] = o.Series + } + if !IsNil(o.Uom) { + toSerialize["uom"] = o.Uom + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TrendingEnvironmentDataPayLoad) UnmarshalJSON(data []byte) (err error) { + varTrendingEnvironmentDataPayLoad := _TrendingEnvironmentDataPayLoad{} + + err = json.Unmarshal(data, &varTrendingEnvironmentDataPayLoad) + + if err != nil { + return err + } + + *o = TrendingEnvironmentDataPayLoad(varTrendingEnvironmentDataPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNo") + delete(additionalProperties, "datapoint") + delete(additionalProperties, "ibx") + delete(additionalProperties, "interval") + delete(additionalProperties, "series") + delete(additionalProperties, "uom") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTrendingEnvironmentDataPayLoad struct { + value *TrendingEnvironmentDataPayLoad + isSet bool +} + +func (v NullableTrendingEnvironmentDataPayLoad) Get() *TrendingEnvironmentDataPayLoad { + return v.value +} + +func (v *NullableTrendingEnvironmentDataPayLoad) Set(val *TrendingEnvironmentDataPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingEnvironmentDataPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingEnvironmentDataPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingEnvironmentDataPayLoad(val *TrendingEnvironmentDataPayLoad) *NullableTrendingEnvironmentDataPayLoad { + return &NullableTrendingEnvironmentDataPayLoad{value: val, isSet: true} +} + +func (v NullableTrendingEnvironmentDataPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingEnvironmentDataPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_trending_power_data.go b/services/smartview/model_trending_power_data.go new file mode 100644 index 00000000..c3885cb3 --- /dev/null +++ b/services/smartview/model_trending_power_data.go @@ -0,0 +1,192 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TrendingPowerData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrendingPowerData{} + +// TrendingPowerData struct for TrendingPowerData +type TrendingPowerData struct { + PayLoad *TrendingPowerDataPayLoad `json:"payLoad,omitempty"` + Status *TrendingPowerDataStatus `json:"status,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TrendingPowerData TrendingPowerData + +// NewTrendingPowerData instantiates a new TrendingPowerData 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 NewTrendingPowerData() *TrendingPowerData { + this := TrendingPowerData{} + return &this +} + +// NewTrendingPowerDataWithDefaults instantiates a new TrendingPowerData 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 NewTrendingPowerDataWithDefaults() *TrendingPowerData { + this := TrendingPowerData{} + return &this +} + +// GetPayLoad returns the PayLoad field value if set, zero value otherwise. +func (o *TrendingPowerData) GetPayLoad() TrendingPowerDataPayLoad { + if o == nil || IsNil(o.PayLoad) { + var ret TrendingPowerDataPayLoad + return ret + } + return *o.PayLoad +} + +// GetPayLoadOk returns a tuple with the PayLoad field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerData) GetPayLoadOk() (*TrendingPowerDataPayLoad, bool) { + if o == nil || IsNil(o.PayLoad) { + return nil, false + } + return o.PayLoad, true +} + +// HasPayLoad returns a boolean if a field has been set. +func (o *TrendingPowerData) HasPayLoad() bool { + if o != nil && !IsNil(o.PayLoad) { + return true + } + + return false +} + +// SetPayLoad gets a reference to the given TrendingPowerDataPayLoad and assigns it to the PayLoad field. +func (o *TrendingPowerData) SetPayLoad(v TrendingPowerDataPayLoad) { + o.PayLoad = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *TrendingPowerData) GetStatus() TrendingPowerDataStatus { + if o == nil || IsNil(o.Status) { + var ret TrendingPowerDataStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerData) GetStatusOk() (*TrendingPowerDataStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *TrendingPowerData) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given TrendingPowerDataStatus and assigns it to the Status field. +func (o *TrendingPowerData) SetStatus(v TrendingPowerDataStatus) { + o.Status = &v +} + +func (o TrendingPowerData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrendingPowerData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PayLoad) { + toSerialize["payLoad"] = o.PayLoad + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TrendingPowerData) UnmarshalJSON(data []byte) (err error) { + varTrendingPowerData := _TrendingPowerData{} + + err = json.Unmarshal(data, &varTrendingPowerData) + + if err != nil { + return err + } + + *o = TrendingPowerData(varTrendingPowerData) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "payLoad") + delete(additionalProperties, "status") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTrendingPowerData struct { + value *TrendingPowerData + isSet bool +} + +func (v NullableTrendingPowerData) Get() *TrendingPowerData { + return v.value +} + +func (v *NullableTrendingPowerData) Set(val *TrendingPowerData) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingPowerData) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingPowerData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingPowerData(val *TrendingPowerData) *NullableTrendingPowerData { + return &NullableTrendingPowerData{value: val, isSet: true} +} + +func (v NullableTrendingPowerData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingPowerData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_trending_power_data_pay_load.go b/services/smartview/model_trending_power_data_pay_load.go new file mode 100644 index 00000000..77595fd1 --- /dev/null +++ b/services/smartview/model_trending_power_data_pay_load.go @@ -0,0 +1,341 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TrendingPowerDataPayLoad type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrendingPowerDataPayLoad{} + +// TrendingPowerDataPayLoad struct for TrendingPowerDataPayLoad +type TrendingPowerDataPayLoad struct { + AccountNumber *string `json:"accountNumber,omitempty"` + Data []ComparisonDataTrend `json:"data,omitempty"` + Ibx *string `json:"ibx,omitempty"` + Interval *TrendingPowerDataPayLoadInterval `json:"interval,omitempty"` + LevelType *TrendingPowerDataPayLoadLevelType `json:"levelType,omitempty"` + // ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp. + LevelValue *string `json:"levelValue,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TrendingPowerDataPayLoad TrendingPowerDataPayLoad + +// NewTrendingPowerDataPayLoad instantiates a new TrendingPowerDataPayLoad 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 NewTrendingPowerDataPayLoad() *TrendingPowerDataPayLoad { + this := TrendingPowerDataPayLoad{} + return &this +} + +// NewTrendingPowerDataPayLoadWithDefaults instantiates a new TrendingPowerDataPayLoad 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 NewTrendingPowerDataPayLoadWithDefaults() *TrendingPowerDataPayLoad { + this := TrendingPowerDataPayLoad{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *TrendingPowerDataPayLoad) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataPayLoad) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *TrendingPowerDataPayLoad) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *TrendingPowerDataPayLoad) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *TrendingPowerDataPayLoad) GetData() []ComparisonDataTrend { + if o == nil || IsNil(o.Data) { + var ret []ComparisonDataTrend + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataPayLoad) GetDataOk() ([]ComparisonDataTrend, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *TrendingPowerDataPayLoad) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []ComparisonDataTrend and assigns it to the Data field. +func (o *TrendingPowerDataPayLoad) SetData(v []ComparisonDataTrend) { + o.Data = v +} + +// GetIbx returns the Ibx field value if set, zero value otherwise. +func (o *TrendingPowerDataPayLoad) GetIbx() string { + if o == nil || IsNil(o.Ibx) { + var ret string + return ret + } + return *o.Ibx +} + +// GetIbxOk returns a tuple with the Ibx field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataPayLoad) GetIbxOk() (*string, bool) { + if o == nil || IsNil(o.Ibx) { + return nil, false + } + return o.Ibx, true +} + +// HasIbx returns a boolean if a field has been set. +func (o *TrendingPowerDataPayLoad) HasIbx() bool { + if o != nil && !IsNil(o.Ibx) { + return true + } + + return false +} + +// SetIbx gets a reference to the given string and assigns it to the Ibx field. +func (o *TrendingPowerDataPayLoad) SetIbx(v string) { + o.Ibx = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *TrendingPowerDataPayLoad) GetInterval() TrendingPowerDataPayLoadInterval { + if o == nil || IsNil(o.Interval) { + var ret TrendingPowerDataPayLoadInterval + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataPayLoad) GetIntervalOk() (*TrendingPowerDataPayLoadInterval, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *TrendingPowerDataPayLoad) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given TrendingPowerDataPayLoadInterval and assigns it to the Interval field. +func (o *TrendingPowerDataPayLoad) SetInterval(v TrendingPowerDataPayLoadInterval) { + o.Interval = &v +} + +// GetLevelType returns the LevelType field value if set, zero value otherwise. +func (o *TrendingPowerDataPayLoad) GetLevelType() TrendingPowerDataPayLoadLevelType { + if o == nil || IsNil(o.LevelType) { + var ret TrendingPowerDataPayLoadLevelType + return ret + } + return *o.LevelType +} + +// GetLevelTypeOk returns a tuple with the LevelType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataPayLoad) GetLevelTypeOk() (*TrendingPowerDataPayLoadLevelType, bool) { + if o == nil || IsNil(o.LevelType) { + return nil, false + } + return o.LevelType, true +} + +// HasLevelType returns a boolean if a field has been set. +func (o *TrendingPowerDataPayLoad) HasLevelType() bool { + if o != nil && !IsNil(o.LevelType) { + return true + } + + return false +} + +// SetLevelType gets a reference to the given TrendingPowerDataPayLoadLevelType and assigns it to the LevelType field. +func (o *TrendingPowerDataPayLoad) SetLevelType(v TrendingPowerDataPayLoadLevelType) { + o.LevelType = &v +} + +// GetLevelValue returns the LevelValue field value if set, zero value otherwise. +func (o *TrendingPowerDataPayLoad) GetLevelValue() string { + if o == nil || IsNil(o.LevelValue) { + var ret string + return ret + } + return *o.LevelValue +} + +// GetLevelValueOk returns a tuple with the LevelValue field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataPayLoad) GetLevelValueOk() (*string, bool) { + if o == nil || IsNil(o.LevelValue) { + return nil, false + } + return o.LevelValue, true +} + +// HasLevelValue returns a boolean if a field has been set. +func (o *TrendingPowerDataPayLoad) HasLevelValue() bool { + if o != nil && !IsNil(o.LevelValue) { + return true + } + + return false +} + +// SetLevelValue gets a reference to the given string and assigns it to the LevelValue field. +func (o *TrendingPowerDataPayLoad) SetLevelValue(v string) { + o.LevelValue = &v +} + +func (o TrendingPowerDataPayLoad) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrendingPowerDataPayLoad) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["accountNumber"] = o.AccountNumber + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Ibx) { + toSerialize["ibx"] = o.Ibx + } + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + if !IsNil(o.LevelType) { + toSerialize["levelType"] = o.LevelType + } + if !IsNil(o.LevelValue) { + toSerialize["levelValue"] = o.LevelValue + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TrendingPowerDataPayLoad) UnmarshalJSON(data []byte) (err error) { + varTrendingPowerDataPayLoad := _TrendingPowerDataPayLoad{} + + err = json.Unmarshal(data, &varTrendingPowerDataPayLoad) + + if err != nil { + return err + } + + *o = TrendingPowerDataPayLoad(varTrendingPowerDataPayLoad) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "accountNumber") + delete(additionalProperties, "data") + delete(additionalProperties, "ibx") + delete(additionalProperties, "interval") + delete(additionalProperties, "levelType") + delete(additionalProperties, "levelValue") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTrendingPowerDataPayLoad struct { + value *TrendingPowerDataPayLoad + isSet bool +} + +func (v NullableTrendingPowerDataPayLoad) Get() *TrendingPowerDataPayLoad { + return v.value +} + +func (v *NullableTrendingPowerDataPayLoad) Set(val *TrendingPowerDataPayLoad) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingPowerDataPayLoad) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingPowerDataPayLoad) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingPowerDataPayLoad(val *TrendingPowerDataPayLoad) *NullableTrendingPowerDataPayLoad { + return &NullableTrendingPowerDataPayLoad{value: val, isSet: true} +} + +func (v NullableTrendingPowerDataPayLoad) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingPowerDataPayLoad) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_trending_power_data_pay_load_interval.go b/services/smartview/model_trending_power_data_pay_load_interval.go new file mode 100644 index 00000000..7ae10a44 --- /dev/null +++ b/services/smartview/model_trending_power_data_pay_load_interval.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// TrendingPowerDataPayLoadInterval serial number +type TrendingPowerDataPayLoadInterval string + +// List of TrendingPowerData_payLoad_interval +const ( + TRENDINGPOWERDATAPAYLOADINTERVAL__5M TrendingPowerDataPayLoadInterval = "5m" + TRENDINGPOWERDATAPAYLOADINTERVAL__15M TrendingPowerDataPayLoadInterval = "15m" + TRENDINGPOWERDATAPAYLOADINTERVAL__1H TrendingPowerDataPayLoadInterval = "1h" + TRENDINGPOWERDATAPAYLOADINTERVAL__1D TrendingPowerDataPayLoadInterval = "1d" +) + +// All allowed values of TrendingPowerDataPayLoadInterval enum +var AllowedTrendingPowerDataPayLoadIntervalEnumValues = []TrendingPowerDataPayLoadInterval{ + "5m", + "15m", + "1h", + "1d", +} + +func (v *TrendingPowerDataPayLoadInterval) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TrendingPowerDataPayLoadInterval(value) + for _, existing := range AllowedTrendingPowerDataPayLoadIntervalEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TrendingPowerDataPayLoadInterval", value) +} + +// NewTrendingPowerDataPayLoadIntervalFromValue returns a pointer to a valid TrendingPowerDataPayLoadInterval +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTrendingPowerDataPayLoadIntervalFromValue(v string) (*TrendingPowerDataPayLoadInterval, error) { + ev := TrendingPowerDataPayLoadInterval(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TrendingPowerDataPayLoadInterval: valid values are %v", v, AllowedTrendingPowerDataPayLoadIntervalEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TrendingPowerDataPayLoadInterval) IsValid() bool { + for _, existing := range AllowedTrendingPowerDataPayLoadIntervalEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TrendingPowerData_payLoad_interval value +func (v TrendingPowerDataPayLoadInterval) Ptr() *TrendingPowerDataPayLoadInterval { + return &v +} + +type NullableTrendingPowerDataPayLoadInterval struct { + value *TrendingPowerDataPayLoadInterval + isSet bool +} + +func (v NullableTrendingPowerDataPayLoadInterval) Get() *TrendingPowerDataPayLoadInterval { + return v.value +} + +func (v *NullableTrendingPowerDataPayLoadInterval) Set(val *TrendingPowerDataPayLoadInterval) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingPowerDataPayLoadInterval) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingPowerDataPayLoadInterval) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingPowerDataPayLoadInterval(val *TrendingPowerDataPayLoadInterval) *NullableTrendingPowerDataPayLoadInterval { + return &NullableTrendingPowerDataPayLoadInterval{value: val, isSet: true} +} + +func (v NullableTrendingPowerDataPayLoadInterval) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingPowerDataPayLoadInterval) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_trending_power_data_pay_load_level_type.go b/services/smartview/model_trending_power_data_pay_load_level_type.go new file mode 100644 index 00000000..9aef34f0 --- /dev/null +++ b/services/smartview/model_trending_power_data_pay_load_level_type.go @@ -0,0 +1,115 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// TrendingPowerDataPayLoadLevelType power hierarchy node levelType linked to the power data +type TrendingPowerDataPayLoadLevelType string + +// List of TrendingPowerData_payLoad_levelType +const ( + TRENDINGPOWERDATAPAYLOADLEVELTYPE_IBX TrendingPowerDataPayLoadLevelType = "ibx" + TRENDINGPOWERDATAPAYLOADLEVELTYPE_CAGE TrendingPowerDataPayLoadLevelType = "cage" + TRENDINGPOWERDATAPAYLOADLEVELTYPE_CABINET TrendingPowerDataPayLoadLevelType = "cabinet" + TRENDINGPOWERDATAPAYLOADLEVELTYPE_CIRCUIT TrendingPowerDataPayLoadLevelType = "circuit" +) + +// All allowed values of TrendingPowerDataPayLoadLevelType enum +var AllowedTrendingPowerDataPayLoadLevelTypeEnumValues = []TrendingPowerDataPayLoadLevelType{ + "ibx", + "cage", + "cabinet", + "circuit", +} + +func (v *TrendingPowerDataPayLoadLevelType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TrendingPowerDataPayLoadLevelType(value) + for _, existing := range AllowedTrendingPowerDataPayLoadLevelTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TrendingPowerDataPayLoadLevelType", value) +} + +// NewTrendingPowerDataPayLoadLevelTypeFromValue returns a pointer to a valid TrendingPowerDataPayLoadLevelType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTrendingPowerDataPayLoadLevelTypeFromValue(v string) (*TrendingPowerDataPayLoadLevelType, error) { + ev := TrendingPowerDataPayLoadLevelType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TrendingPowerDataPayLoadLevelType: valid values are %v", v, AllowedTrendingPowerDataPayLoadLevelTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TrendingPowerDataPayLoadLevelType) IsValid() bool { + for _, existing := range AllowedTrendingPowerDataPayLoadLevelTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to TrendingPowerData_payLoad_levelType value +func (v TrendingPowerDataPayLoadLevelType) Ptr() *TrendingPowerDataPayLoadLevelType { + return &v +} + +type NullableTrendingPowerDataPayLoadLevelType struct { + value *TrendingPowerDataPayLoadLevelType + isSet bool +} + +func (v NullableTrendingPowerDataPayLoadLevelType) Get() *TrendingPowerDataPayLoadLevelType { + return v.value +} + +func (v *NullableTrendingPowerDataPayLoadLevelType) Set(val *TrendingPowerDataPayLoadLevelType) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingPowerDataPayLoadLevelType) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingPowerDataPayLoadLevelType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingPowerDataPayLoadLevelType(val *TrendingPowerDataPayLoadLevelType) *NullableTrendingPowerDataPayLoadLevelType { + return &NullableTrendingPowerDataPayLoadLevelType{value: val, isSet: true} +} + +func (v NullableTrendingPowerDataPayLoadLevelType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingPowerDataPayLoadLevelType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_trending_power_data_status.go b/services/smartview/model_trending_power_data_status.go new file mode 100644 index 00000000..ea65e065 --- /dev/null +++ b/services/smartview/model_trending_power_data_status.go @@ -0,0 +1,231 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" +) + +// checks if the TrendingPowerDataStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrendingPowerDataStatus{} + +// TrendingPowerDataStatus struct for TrendingPowerDataStatus +type TrendingPowerDataStatus struct { + // [Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages + Msg *string `json:"msg,omitempty"` + // [1000|3001|3002|3003|4000] are the possible status codes + Statuscode *float32 `json:"statuscode,omitempty"` + Type *AssetDetailResponseStatusType `json:"type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TrendingPowerDataStatus TrendingPowerDataStatus + +// NewTrendingPowerDataStatus instantiates a new TrendingPowerDataStatus 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 NewTrendingPowerDataStatus() *TrendingPowerDataStatus { + this := TrendingPowerDataStatus{} + return &this +} + +// NewTrendingPowerDataStatusWithDefaults instantiates a new TrendingPowerDataStatus 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 NewTrendingPowerDataStatusWithDefaults() *TrendingPowerDataStatus { + this := TrendingPowerDataStatus{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *TrendingPowerDataStatus) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataStatus) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *TrendingPowerDataStatus) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *TrendingPowerDataStatus) SetMsg(v string) { + o.Msg = &v +} + +// GetStatuscode returns the Statuscode field value if set, zero value otherwise. +func (o *TrendingPowerDataStatus) GetStatuscode() float32 { + if o == nil || IsNil(o.Statuscode) { + var ret float32 + return ret + } + return *o.Statuscode +} + +// GetStatuscodeOk returns a tuple with the Statuscode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataStatus) GetStatuscodeOk() (*float32, bool) { + if o == nil || IsNil(o.Statuscode) { + return nil, false + } + return o.Statuscode, true +} + +// HasStatuscode returns a boolean if a field has been set. +func (o *TrendingPowerDataStatus) HasStatuscode() bool { + if o != nil && !IsNil(o.Statuscode) { + return true + } + + return false +} + +// SetStatuscode gets a reference to the given float32 and assigns it to the Statuscode field. +func (o *TrendingPowerDataStatus) SetStatuscode(v float32) { + o.Statuscode = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *TrendingPowerDataStatus) GetType() AssetDetailResponseStatusType { + if o == nil || IsNil(o.Type) { + var ret AssetDetailResponseStatusType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TrendingPowerDataStatus) GetTypeOk() (*AssetDetailResponseStatusType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *TrendingPowerDataStatus) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given AssetDetailResponseStatusType and assigns it to the Type field. +func (o *TrendingPowerDataStatus) SetType(v AssetDetailResponseStatusType) { + o.Type = &v +} + +func (o TrendingPowerDataStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrendingPowerDataStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Statuscode) { + toSerialize["statuscode"] = o.Statuscode + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TrendingPowerDataStatus) UnmarshalJSON(data []byte) (err error) { + varTrendingPowerDataStatus := _TrendingPowerDataStatus{} + + err = json.Unmarshal(data, &varTrendingPowerDataStatus) + + if err != nil { + return err + } + + *o = TrendingPowerDataStatus(varTrendingPowerDataStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "msg") + delete(additionalProperties, "statuscode") + delete(additionalProperties, "type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTrendingPowerDataStatus struct { + value *TrendingPowerDataStatus + isSet bool +} + +func (v NullableTrendingPowerDataStatus) Get() *TrendingPowerDataStatus { + return v.value +} + +func (v *NullableTrendingPowerDataStatus) Set(val *TrendingPowerDataStatus) { + v.value = val + v.isSet = true +} + +func (v NullableTrendingPowerDataStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableTrendingPowerDataStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTrendingPowerDataStatus(val *TrendingPowerDataStatus) *NullableTrendingPowerDataStatus { + return &NullableTrendingPowerDataStatus{value: val, isSet: true} +} + +func (v NullableTrendingPowerDataStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTrendingPowerDataStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_value_with_unit.go b/services/smartview/model_value_with_unit.go new file mode 100644 index 00000000..ad30d268 --- /dev/null +++ b/services/smartview/model_value_with_unit.go @@ -0,0 +1,199 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the ValueWithUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ValueWithUnit{} + +// ValueWithUnit Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). +type ValueWithUnit struct { + // Unit for value. + Unit map[string]interface{} `json:"unit"` + // Specific value, to be read together with unit. + Value map[string]interface{} `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _ValueWithUnit ValueWithUnit + +// NewValueWithUnit instantiates a new ValueWithUnit 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 NewValueWithUnit(unit map[string]interface{}, value map[string]interface{}) *ValueWithUnit { + this := ValueWithUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewValueWithUnitWithDefaults instantiates a new ValueWithUnit 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 NewValueWithUnitWithDefaults() *ValueWithUnit { + this := ValueWithUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *ValueWithUnit) GetUnit() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *ValueWithUnit) GetUnitOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Unit, true +} + +// SetUnit sets field value +func (o *ValueWithUnit) SetUnit(v map[string]interface{}) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *ValueWithUnit) GetValue() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ValueWithUnit) GetValueOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Value, true +} + +// SetValue sets field value +func (o *ValueWithUnit) SetValue(v map[string]interface{}) { + o.Value = v +} + +func (o ValueWithUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ValueWithUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ValueWithUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varValueWithUnit := _ValueWithUnit{} + + err = json.Unmarshal(data, &varValueWithUnit) + + if err != nil { + return err + } + + *o = ValueWithUnit(varValueWithUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableValueWithUnit struct { + value *ValueWithUnit + isSet bool +} + +func (v NullableValueWithUnit) Get() *ValueWithUnit { + return v.value +} + +func (v *NullableValueWithUnit) Set(val *ValueWithUnit) { + v.value = val + v.isSet = true +} + +func (v NullableValueWithUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableValueWithUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValueWithUnit(val *ValueWithUnit) *NullableValueWithUnit { + return &NullableValueWithUnit{value: val, isSet: true} +} + +func (v NullableValueWithUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValueWithUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_value_with_unit_double_humidity_unit.go b/services/smartview/model_value_with_unit_double_humidity_unit.go new file mode 100644 index 00000000..8101ef59 --- /dev/null +++ b/services/smartview/model_value_with_unit_double_humidity_unit.go @@ -0,0 +1,198 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the ValueWithUnitDoubleHumidityUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ValueWithUnitDoubleHumidityUnit{} + +// ValueWithUnitDoubleHumidityUnit Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). +type ValueWithUnitDoubleHumidityUnit struct { + Unit ValueWithUnitDoubleHumidityUnitUnit `json:"unit"` + // Specific value, to be read together with unit. + Value float64 `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _ValueWithUnitDoubleHumidityUnit ValueWithUnitDoubleHumidityUnit + +// NewValueWithUnitDoubleHumidityUnit instantiates a new ValueWithUnitDoubleHumidityUnit 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 NewValueWithUnitDoubleHumidityUnit(unit ValueWithUnitDoubleHumidityUnitUnit, value float64) *ValueWithUnitDoubleHumidityUnit { + this := ValueWithUnitDoubleHumidityUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewValueWithUnitDoubleHumidityUnitWithDefaults instantiates a new ValueWithUnitDoubleHumidityUnit 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 NewValueWithUnitDoubleHumidityUnitWithDefaults() *ValueWithUnitDoubleHumidityUnit { + this := ValueWithUnitDoubleHumidityUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *ValueWithUnitDoubleHumidityUnit) GetUnit() ValueWithUnitDoubleHumidityUnitUnit { + if o == nil { + var ret ValueWithUnitDoubleHumidityUnitUnit + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *ValueWithUnitDoubleHumidityUnit) GetUnitOk() (*ValueWithUnitDoubleHumidityUnitUnit, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *ValueWithUnitDoubleHumidityUnit) SetUnit(v ValueWithUnitDoubleHumidityUnitUnit) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *ValueWithUnitDoubleHumidityUnit) GetValue() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ValueWithUnitDoubleHumidityUnit) GetValueOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *ValueWithUnitDoubleHumidityUnit) SetValue(v float64) { + o.Value = v +} + +func (o ValueWithUnitDoubleHumidityUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ValueWithUnitDoubleHumidityUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ValueWithUnitDoubleHumidityUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varValueWithUnitDoubleHumidityUnit := _ValueWithUnitDoubleHumidityUnit{} + + err = json.Unmarshal(data, &varValueWithUnitDoubleHumidityUnit) + + if err != nil { + return err + } + + *o = ValueWithUnitDoubleHumidityUnit(varValueWithUnitDoubleHumidityUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableValueWithUnitDoubleHumidityUnit struct { + value *ValueWithUnitDoubleHumidityUnit + isSet bool +} + +func (v NullableValueWithUnitDoubleHumidityUnit) Get() *ValueWithUnitDoubleHumidityUnit { + return v.value +} + +func (v *NullableValueWithUnitDoubleHumidityUnit) Set(val *ValueWithUnitDoubleHumidityUnit) { + v.value = val + v.isSet = true +} + +func (v NullableValueWithUnitDoubleHumidityUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableValueWithUnitDoubleHumidityUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValueWithUnitDoubleHumidityUnit(val *ValueWithUnitDoubleHumidityUnit) *NullableValueWithUnitDoubleHumidityUnit { + return &NullableValueWithUnitDoubleHumidityUnit{value: val, isSet: true} +} + +func (v NullableValueWithUnitDoubleHumidityUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValueWithUnitDoubleHumidityUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_value_with_unit_double_humidity_unit_unit.go b/services/smartview/model_value_with_unit_double_humidity_unit_unit.go new file mode 100644 index 00000000..813e8761 --- /dev/null +++ b/services/smartview/model_value_with_unit_double_humidity_unit_unit.go @@ -0,0 +1,109 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// ValueWithUnitDoubleHumidityUnitUnit Unit for value. +type ValueWithUnitDoubleHumidityUnitUnit string + +// List of ValueWithUnitDoubleHumidityUnit_unit +const ( + VALUEWITHUNITDOUBLEHUMIDITYUNITUNIT_PERCENT ValueWithUnitDoubleHumidityUnitUnit = "PERCENT" +) + +// All allowed values of ValueWithUnitDoubleHumidityUnitUnit enum +var AllowedValueWithUnitDoubleHumidityUnitUnitEnumValues = []ValueWithUnitDoubleHumidityUnitUnit{ + "PERCENT", +} + +func (v *ValueWithUnitDoubleHumidityUnitUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ValueWithUnitDoubleHumidityUnitUnit(value) + for _, existing := range AllowedValueWithUnitDoubleHumidityUnitUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ValueWithUnitDoubleHumidityUnitUnit", value) +} + +// NewValueWithUnitDoubleHumidityUnitUnitFromValue returns a pointer to a valid ValueWithUnitDoubleHumidityUnitUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewValueWithUnitDoubleHumidityUnitUnitFromValue(v string) (*ValueWithUnitDoubleHumidityUnitUnit, error) { + ev := ValueWithUnitDoubleHumidityUnitUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ValueWithUnitDoubleHumidityUnitUnit: valid values are %v", v, AllowedValueWithUnitDoubleHumidityUnitUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ValueWithUnitDoubleHumidityUnitUnit) IsValid() bool { + for _, existing := range AllowedValueWithUnitDoubleHumidityUnitUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ValueWithUnitDoubleHumidityUnit_unit value +func (v ValueWithUnitDoubleHumidityUnitUnit) Ptr() *ValueWithUnitDoubleHumidityUnitUnit { + return &v +} + +type NullableValueWithUnitDoubleHumidityUnitUnit struct { + value *ValueWithUnitDoubleHumidityUnitUnit + isSet bool +} + +func (v NullableValueWithUnitDoubleHumidityUnitUnit) Get() *ValueWithUnitDoubleHumidityUnitUnit { + return v.value +} + +func (v *NullableValueWithUnitDoubleHumidityUnitUnit) Set(val *ValueWithUnitDoubleHumidityUnitUnit) { + v.value = val + v.isSet = true +} + +func (v NullableValueWithUnitDoubleHumidityUnitUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableValueWithUnitDoubleHumidityUnitUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValueWithUnitDoubleHumidityUnitUnit(val *ValueWithUnitDoubleHumidityUnitUnit) *NullableValueWithUnitDoubleHumidityUnitUnit { + return &NullableValueWithUnitDoubleHumidityUnitUnit{value: val, isSet: true} +} + +func (v NullableValueWithUnitDoubleHumidityUnitUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValueWithUnitDoubleHumidityUnitUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_value_with_unit_double_temperature_unit.go b/services/smartview/model_value_with_unit_double_temperature_unit.go new file mode 100644 index 00000000..eba81ceb --- /dev/null +++ b/services/smartview/model_value_with_unit_double_temperature_unit.go @@ -0,0 +1,198 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the ValueWithUnitDoubleTemperatureUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ValueWithUnitDoubleTemperatureUnit{} + +// ValueWithUnitDoubleTemperatureUnit Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). +type ValueWithUnitDoubleTemperatureUnit struct { + Unit ValueWithUnitDoubleTemperatureUnitUnit `json:"unit"` + // Specific value, to be read together with unit. + Value float64 `json:"value"` + AdditionalProperties map[string]interface{} +} + +type _ValueWithUnitDoubleTemperatureUnit ValueWithUnitDoubleTemperatureUnit + +// NewValueWithUnitDoubleTemperatureUnit instantiates a new ValueWithUnitDoubleTemperatureUnit 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 NewValueWithUnitDoubleTemperatureUnit(unit ValueWithUnitDoubleTemperatureUnitUnit, value float64) *ValueWithUnitDoubleTemperatureUnit { + this := ValueWithUnitDoubleTemperatureUnit{} + this.Unit = unit + this.Value = value + return &this +} + +// NewValueWithUnitDoubleTemperatureUnitWithDefaults instantiates a new ValueWithUnitDoubleTemperatureUnit 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 NewValueWithUnitDoubleTemperatureUnitWithDefaults() *ValueWithUnitDoubleTemperatureUnit { + this := ValueWithUnitDoubleTemperatureUnit{} + return &this +} + +// GetUnit returns the Unit field value +func (o *ValueWithUnitDoubleTemperatureUnit) GetUnit() ValueWithUnitDoubleTemperatureUnitUnit { + if o == nil { + var ret ValueWithUnitDoubleTemperatureUnitUnit + return ret + } + + return o.Unit +} + +// GetUnitOk returns a tuple with the Unit field value +// and a boolean to check if the value has been set. +func (o *ValueWithUnitDoubleTemperatureUnit) GetUnitOk() (*ValueWithUnitDoubleTemperatureUnitUnit, bool) { + if o == nil { + return nil, false + } + return &o.Unit, true +} + +// SetUnit sets field value +func (o *ValueWithUnitDoubleTemperatureUnit) SetUnit(v ValueWithUnitDoubleTemperatureUnitUnit) { + o.Unit = v +} + +// GetValue returns the Value field value +func (o *ValueWithUnitDoubleTemperatureUnit) GetValue() float64 { + if o == nil { + var ret float64 + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *ValueWithUnitDoubleTemperatureUnit) GetValueOk() (*float64, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *ValueWithUnitDoubleTemperatureUnit) SetValue(v float64) { + o.Value = v +} + +func (o ValueWithUnitDoubleTemperatureUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ValueWithUnitDoubleTemperatureUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["unit"] = o.Unit + toSerialize["value"] = o.Value + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ValueWithUnitDoubleTemperatureUnit) 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{ + "unit", + "value", + } + + 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) + } + } + + varValueWithUnitDoubleTemperatureUnit := _ValueWithUnitDoubleTemperatureUnit{} + + err = json.Unmarshal(data, &varValueWithUnitDoubleTemperatureUnit) + + if err != nil { + return err + } + + *o = ValueWithUnitDoubleTemperatureUnit(varValueWithUnitDoubleTemperatureUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "unit") + delete(additionalProperties, "value") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableValueWithUnitDoubleTemperatureUnit struct { + value *ValueWithUnitDoubleTemperatureUnit + isSet bool +} + +func (v NullableValueWithUnitDoubleTemperatureUnit) Get() *ValueWithUnitDoubleTemperatureUnit { + return v.value +} + +func (v *NullableValueWithUnitDoubleTemperatureUnit) Set(val *ValueWithUnitDoubleTemperatureUnit) { + v.value = val + v.isSet = true +} + +func (v NullableValueWithUnitDoubleTemperatureUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableValueWithUnitDoubleTemperatureUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValueWithUnitDoubleTemperatureUnit(val *ValueWithUnitDoubleTemperatureUnit) *NullableValueWithUnitDoubleTemperatureUnit { + return &NullableValueWithUnitDoubleTemperatureUnit{value: val, isSet: true} +} + +func (v NullableValueWithUnitDoubleTemperatureUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValueWithUnitDoubleTemperatureUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/model_value_with_unit_double_temperature_unit_unit.go b/services/smartview/model_value_with_unit_double_temperature_unit_unit.go new file mode 100644 index 00000000..f09b1878 --- /dev/null +++ b/services/smartview/model_value_with_unit_double_temperature_unit_unit.go @@ -0,0 +1,111 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// ValueWithUnitDoubleTemperatureUnitUnit Unit for value. +type ValueWithUnitDoubleTemperatureUnitUnit string + +// List of ValueWithUnitDoubleTemperatureUnit_unit +const ( + VALUEWITHUNITDOUBLETEMPERATUREUNITUNIT_CELSIUS ValueWithUnitDoubleTemperatureUnitUnit = "CELSIUS" + VALUEWITHUNITDOUBLETEMPERATUREUNITUNIT_FAHRENHEIT ValueWithUnitDoubleTemperatureUnitUnit = "FAHRENHEIT" +) + +// All allowed values of ValueWithUnitDoubleTemperatureUnitUnit enum +var AllowedValueWithUnitDoubleTemperatureUnitUnitEnumValues = []ValueWithUnitDoubleTemperatureUnitUnit{ + "CELSIUS", + "FAHRENHEIT", +} + +func (v *ValueWithUnitDoubleTemperatureUnitUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ValueWithUnitDoubleTemperatureUnitUnit(value) + for _, existing := range AllowedValueWithUnitDoubleTemperatureUnitUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ValueWithUnitDoubleTemperatureUnitUnit", value) +} + +// NewValueWithUnitDoubleTemperatureUnitUnitFromValue returns a pointer to a valid ValueWithUnitDoubleTemperatureUnitUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewValueWithUnitDoubleTemperatureUnitUnitFromValue(v string) (*ValueWithUnitDoubleTemperatureUnitUnit, error) { + ev := ValueWithUnitDoubleTemperatureUnitUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ValueWithUnitDoubleTemperatureUnitUnit: valid values are %v", v, AllowedValueWithUnitDoubleTemperatureUnitUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ValueWithUnitDoubleTemperatureUnitUnit) IsValid() bool { + for _, existing := range AllowedValueWithUnitDoubleTemperatureUnitUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ValueWithUnitDoubleTemperatureUnit_unit value +func (v ValueWithUnitDoubleTemperatureUnitUnit) Ptr() *ValueWithUnitDoubleTemperatureUnitUnit { + return &v +} + +type NullableValueWithUnitDoubleTemperatureUnitUnit struct { + value *ValueWithUnitDoubleTemperatureUnitUnit + isSet bool +} + +func (v NullableValueWithUnitDoubleTemperatureUnitUnit) Get() *ValueWithUnitDoubleTemperatureUnitUnit { + return v.value +} + +func (v *NullableValueWithUnitDoubleTemperatureUnitUnit) Set(val *ValueWithUnitDoubleTemperatureUnitUnit) { + v.value = val + v.isSet = true +} + +func (v NullableValueWithUnitDoubleTemperatureUnitUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableValueWithUnitDoubleTemperatureUnitUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableValueWithUnitDoubleTemperatureUnitUnit(val *ValueWithUnitDoubleTemperatureUnitUnit) *NullableValueWithUnitDoubleTemperatureUnitUnit { + return &NullableValueWithUnitDoubleTemperatureUnitUnit{value: val, isSet: true} +} + +func (v NullableValueWithUnitDoubleTemperatureUnitUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableValueWithUnitDoubleTemperatureUnitUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_webhook_channel_configuration.go b/services/smartview/model_webhook_channel_configuration.go new file mode 100644 index 00000000..e8bcd9f4 --- /dev/null +++ b/services/smartview/model_webhook_channel_configuration.go @@ -0,0 +1,316 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// checks if the WebhookChannelConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebhookChannelConfiguration{} + +// WebhookChannelConfiguration The configuration for a 'WEBHOOK' channel +type WebhookChannelConfiguration struct { + BatchSize *int32 `json:"batchSize,omitempty"` + NumberOfConcurrentCalls *int32 `json:"numberOfConcurrentCalls,omitempty"` + NumberOfRetries *int32 `json:"numberOfRetries,omitempty"` + SslCertificate *string `json:"sslCertificate,omitempty"` + Url string `json:"url"` + AdditionalProperties map[string]interface{} +} + +type _WebhookChannelConfiguration WebhookChannelConfiguration + +// NewWebhookChannelConfiguration instantiates a new WebhookChannelConfiguration 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 NewWebhookChannelConfiguration(url string) *WebhookChannelConfiguration { + this := WebhookChannelConfiguration{} + this.Url = url + return &this +} + +// NewWebhookChannelConfigurationWithDefaults instantiates a new WebhookChannelConfiguration 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 NewWebhookChannelConfigurationWithDefaults() *WebhookChannelConfiguration { + this := WebhookChannelConfiguration{} + return &this +} + +// GetBatchSize returns the BatchSize field value if set, zero value otherwise. +func (o *WebhookChannelConfiguration) GetBatchSize() int32 { + if o == nil || IsNil(o.BatchSize) { + var ret int32 + return ret + } + return *o.BatchSize +} + +// GetBatchSizeOk returns a tuple with the BatchSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookChannelConfiguration) GetBatchSizeOk() (*int32, bool) { + if o == nil || IsNil(o.BatchSize) { + return nil, false + } + return o.BatchSize, true +} + +// HasBatchSize returns a boolean if a field has been set. +func (o *WebhookChannelConfiguration) HasBatchSize() bool { + if o != nil && !IsNil(o.BatchSize) { + return true + } + + return false +} + +// SetBatchSize gets a reference to the given int32 and assigns it to the BatchSize field. +func (o *WebhookChannelConfiguration) SetBatchSize(v int32) { + o.BatchSize = &v +} + +// GetNumberOfConcurrentCalls returns the NumberOfConcurrentCalls field value if set, zero value otherwise. +func (o *WebhookChannelConfiguration) GetNumberOfConcurrentCalls() int32 { + if o == nil || IsNil(o.NumberOfConcurrentCalls) { + var ret int32 + return ret + } + return *o.NumberOfConcurrentCalls +} + +// GetNumberOfConcurrentCallsOk returns a tuple with the NumberOfConcurrentCalls field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookChannelConfiguration) GetNumberOfConcurrentCallsOk() (*int32, bool) { + if o == nil || IsNil(o.NumberOfConcurrentCalls) { + return nil, false + } + return o.NumberOfConcurrentCalls, true +} + +// HasNumberOfConcurrentCalls returns a boolean if a field has been set. +func (o *WebhookChannelConfiguration) HasNumberOfConcurrentCalls() bool { + if o != nil && !IsNil(o.NumberOfConcurrentCalls) { + return true + } + + return false +} + +// SetNumberOfConcurrentCalls gets a reference to the given int32 and assigns it to the NumberOfConcurrentCalls field. +func (o *WebhookChannelConfiguration) SetNumberOfConcurrentCalls(v int32) { + o.NumberOfConcurrentCalls = &v +} + +// GetNumberOfRetries returns the NumberOfRetries field value if set, zero value otherwise. +func (o *WebhookChannelConfiguration) GetNumberOfRetries() int32 { + if o == nil || IsNil(o.NumberOfRetries) { + var ret int32 + return ret + } + return *o.NumberOfRetries +} + +// GetNumberOfRetriesOk returns a tuple with the NumberOfRetries field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookChannelConfiguration) GetNumberOfRetriesOk() (*int32, bool) { + if o == nil || IsNil(o.NumberOfRetries) { + return nil, false + } + return o.NumberOfRetries, true +} + +// HasNumberOfRetries returns a boolean if a field has been set. +func (o *WebhookChannelConfiguration) HasNumberOfRetries() bool { + if o != nil && !IsNil(o.NumberOfRetries) { + return true + } + + return false +} + +// SetNumberOfRetries gets a reference to the given int32 and assigns it to the NumberOfRetries field. +func (o *WebhookChannelConfiguration) SetNumberOfRetries(v int32) { + o.NumberOfRetries = &v +} + +// GetSslCertificate returns the SslCertificate field value if set, zero value otherwise. +func (o *WebhookChannelConfiguration) GetSslCertificate() string { + if o == nil || IsNil(o.SslCertificate) { + var ret string + return ret + } + return *o.SslCertificate +} + +// GetSslCertificateOk returns a tuple with the SslCertificate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookChannelConfiguration) GetSslCertificateOk() (*string, bool) { + if o == nil || IsNil(o.SslCertificate) { + return nil, false + } + return o.SslCertificate, true +} + +// HasSslCertificate returns a boolean if a field has been set. +func (o *WebhookChannelConfiguration) HasSslCertificate() bool { + if o != nil && !IsNil(o.SslCertificate) { + return true + } + + return false +} + +// SetSslCertificate gets a reference to the given string and assigns it to the SslCertificate field. +func (o *WebhookChannelConfiguration) SetSslCertificate(v string) { + o.SslCertificate = &v +} + +// GetUrl returns the Url field value +func (o *WebhookChannelConfiguration) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *WebhookChannelConfiguration) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *WebhookChannelConfiguration) SetUrl(v string) { + o.Url = v +} + +func (o WebhookChannelConfiguration) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebhookChannelConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BatchSize) { + toSerialize["batchSize"] = o.BatchSize + } + if !IsNil(o.NumberOfConcurrentCalls) { + toSerialize["numberOfConcurrentCalls"] = o.NumberOfConcurrentCalls + } + if !IsNil(o.NumberOfRetries) { + toSerialize["numberOfRetries"] = o.NumberOfRetries + } + if !IsNil(o.SslCertificate) { + toSerialize["sslCertificate"] = o.SslCertificate + } + toSerialize["url"] = o.Url + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WebhookChannelConfiguration) 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{ + "url", + } + + 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) + } + } + + varWebhookChannelConfiguration := _WebhookChannelConfiguration{} + + err = json.Unmarshal(data, &varWebhookChannelConfiguration) + + if err != nil { + return err + } + + *o = WebhookChannelConfiguration(varWebhookChannelConfiguration) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "batchSize") + delete(additionalProperties, "numberOfConcurrentCalls") + delete(additionalProperties, "numberOfRetries") + delete(additionalProperties, "sslCertificate") + delete(additionalProperties, "url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWebhookChannelConfiguration struct { + value *WebhookChannelConfiguration + isSet bool +} + +func (v NullableWebhookChannelConfiguration) Get() *WebhookChannelConfiguration { + return v.value +} + +func (v *NullableWebhookChannelConfiguration) Set(val *WebhookChannelConfiguration) { + v.value = val + v.isSet = true +} + +func (v NullableWebhookChannelConfiguration) IsSet() bool { + return v.isSet +} + +func (v *NullableWebhookChannelConfiguration) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebhookChannelConfiguration(val *WebhookChannelConfiguration) *NullableWebhookChannelConfiguration { + return &NullableWebhookChannelConfiguration{value: val, isSet: true} +} + +func (v NullableWebhookChannelConfiguration) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebhookChannelConfiguration) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/services/smartview/response.go b/services/smartview/response.go new file mode 100644 index 00000000..c6a1260d --- /dev/null +++ b/services/smartview/response.go @@ -0,0 +1,47 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/smartview/test/api_alert_log_test.go b/services/smartview/test/api_alert_log_test.go new file mode 100644 index 00000000..63be2e3d --- /dev/null +++ b/services/smartview/test/api_alert_log_test.go @@ -0,0 +1,37 @@ +/* +Smart View Environmental API + +Testing AlertLogApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_AlertLogApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AlertLogApiService GetAlertActivityLog", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AlertLogApi.GetAlertActivityLog(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_alerts_test.go b/services/smartview/test/api_alerts_test.go new file mode 100644 index 00000000..40e6eade --- /dev/null +++ b/services/smartview/test/api_alerts_test.go @@ -0,0 +1,37 @@ +/* +Smart View Environmental API + +Testing AlertsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_AlertsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AlertsApiService GetAlerts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AlertsApi.GetAlerts(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_dcim_power_test.go b/services/smartview/test/api_dcim_power_test.go new file mode 100644 index 00000000..ff39da76 --- /dev/null +++ b/services/smartview/test/api_dcim_power_test.go @@ -0,0 +1,61 @@ +/* +Smart View Environmental API + +Testing DCIMPowerApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_DCIMPowerApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DCIMPowerApiService Mixin0", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DCIMPowerApi.Mixin0(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DCIMPowerApiService Mixin0_1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DCIMPowerApi.Mixin0_0(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DCIMPowerApiService PowerV1CurrentGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DCIMPowerApi.PowerV1CurrentGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_default_test.go b/services/smartview/test/api_default_test.go new file mode 100644 index 00000000..de3be6c0 --- /dev/null +++ b/services/smartview/test/api_default_test.go @@ -0,0 +1,38 @@ +/* +merged spec + +Testing DefaultApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_DefaultApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test DefaultApiService GetSubscriptionData", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var UNKNOWN_PARAMETER_NAME + + httpRes, err := apiClient.DefaultApi.GetSubscriptionData(context.Background(), UNKNOWN_PARAMETER_NAME).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_smart_view_assets_test.go b/services/smartview/test/api_smart_view_assets_test.go new file mode 100644 index 00000000..de8ea329 --- /dev/null +++ b/services/smartview/test/api_smart_view_assets_test.go @@ -0,0 +1,121 @@ +/* +Smart View Environmental API + +Testing SmartViewAssetsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_SmartViewAssetsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SmartViewAssetsApiService GetAffectedAsset", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.GetAffectedAsset(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService GetAsset", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.GetAsset(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService GetAssetDetails", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.GetAssetDetails(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService GetCurrentTagPoint", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.GetCurrentTagPoint(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService GetTagpointTrending", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.GetTagpointTrending(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService Mixin4", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.Mixin4(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService Mixin4_1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.Mixin4_0(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewAssetsApiService SearchAsset", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewAssetsApi.SearchAsset(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_smart_view_environment_test.go b/services/smartview/test/api_smart_view_environment_test.go new file mode 100644 index 00000000..b7b6106d --- /dev/null +++ b/services/smartview/test/api_smart_view_environment_test.go @@ -0,0 +1,61 @@ +/* +Smart View Environmental API + +Testing SmartViewEnvironmentApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_SmartViewEnvironmentApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SmartViewEnvironmentApiService Mixin1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewEnvironmentApi.Mixin1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewEnvironmentApiService Mixin1_1", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewEnvironmentApi.Mixin1_0(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewEnvironmentApiService Mixin1_2", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewEnvironmentApi.Mixin1_1(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_smart_view_environmental_test.go b/services/smartview/test/api_smart_view_environmental_test.go new file mode 100644 index 00000000..27e32f74 --- /dev/null +++ b/services/smartview/test/api_smart_view_environmental_test.go @@ -0,0 +1,54 @@ +/* +Smart View Environmental API + +Testing SmartViewEnvironmentalApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_SmartViewEnvironmentalApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SmartViewEnvironmentalApiService GetSensorReadings", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ibx string + + resp, httpRes, err := apiClient.SmartViewEnvironmentalApi.GetSensorReadings(context.Background(), ibx).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewEnvironmentalApiService GetSingleSensorReadings", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ibx string + var sensorId string + + resp, httpRes, err := apiClient.SmartViewEnvironmentalApi.GetSingleSensorReadings(context.Background(), ibx, sensorId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/test/api_smart_view_hierarchy_apis_test.go b/services/smartview/test/api_smart_view_hierarchy_apis_test.go new file mode 100644 index 00000000..87da097c --- /dev/null +++ b/services/smartview/test/api_smart_view_hierarchy_apis_test.go @@ -0,0 +1,49 @@ +/* +Smart View Environmental API + +Testing SmartViewHierarchyAPIsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package smartview + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/equinix/equinix-sdk-go/services/smartview" +) + +func Test_smartview_SmartViewHierarchyAPIsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SmartViewHierarchyAPIsApiService GetLocationHierarchy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewHierarchyAPIsApi.GetLocationHierarchy(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SmartViewHierarchyAPIsApiService GetPowerHierarchy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SmartViewHierarchyAPIsApi.GetPowerHierarchy(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/services/smartview/utils.go b/services/smartview/utils.go new file mode 100644 index 00000000..188478c9 --- /dev/null +++ b/services/smartview/utils.go @@ -0,0 +1,347 @@ +/* +Smart View Environmental API + +Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + +API version: 2.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} From cf38a25f62dd9bd441a48d91bcc1510867bba888 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 16:30:00 -0500 Subject: [PATCH 7/8] wip: remove duplicate smartview spec file Signed-off-by: Marques Johansson --- Makefile.smartview | 17 +- .../smartview/oas3.fetched/spec_.yaml | 282 ------------------ 2 files changed, 2 insertions(+), 297 deletions(-) delete mode 100644 spec/services/smartview/oas3.fetched/spec_.yaml diff --git a/Makefile.smartview b/Makefile.smartview index da73f85b..2a9fa879 100644 --- a/Makefile.smartview +++ b/Makefile.smartview @@ -33,7 +33,7 @@ pull: fetch: mkdir -p ${SPEC_FETCHED_DIR} rm -f ${SPEC_FETCHED_DIR}/* - $(eval INDEX=0) + $(eval INDEX=1) for URL in ${SOURCE_URLS}; do \ ${SPEC_FETCHER} \ -H 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0' \ @@ -50,20 +50,7 @@ patch: done combine: - touch ${MERGED_SPEC_FILE}.yaml - #docker run -v $(CURDIR):/local -w /local mikefarah/yq eval-all '. as $$item ireduce ({}; . * $$item)' ${SPEC_FETCHED_DIR}/* > ${MERGED_SPEC_FILE} - # docker run -v $(CURDIR):/local ghcr.io/marcelthole/openapi-merge \ - # ${SPEC_FETCHED_DIR}/* - # --outputfile=${MERGED_SPEC_FILE} - - #${OPENAPI_GENERATOR} generate -g openapi-yaml \ - # -i /local/${SPEC_FETCHED_DIR}/spec_.yaml \ - # --skip-validate-spec \ - # --input-spec-root-directory /local/${SPEC_FETCHED_DIR} \ - # -o /local/${SPEC_BASE_DIR}/${PACKAGE_NAME}/ \ - # -p outputFile=${MERGED_SPEC_FILE}.yaml - # # --merged-spec-filename /local/${MERGED_SPEC_FILE} - ${GOSWAGGER} mixin ${SPEC_FETCHED_DIR}/spec* --output=${SPEC_FETCHED_DIR}/merged-spec.yaml --format=yaml --keep-spec-order || true + ${GOSWAGGER} mixin ${SPEC_FETCHED_DIR}/spec* --output=${SPEC_FETCHED_DIR}/merged-spec.yaml --format=yaml || true ${GOSWAGGER} flatten --with-flatten=minimal ${SPEC_FETCHED_DIR}/merged-spec.yaml --output=${SPEC_FETCHED_DIR}/${SPEC_ROOT_FILE} --format=yaml # rm ${SPEC_FETCHED_DIR}/merged-spec.yaml ${SPEC_FETCHED_DIR}/spec* diff --git a/spec/services/smartview/oas3.fetched/spec_.yaml b/spec/services/smartview/oas3.fetched/spec_.yaml deleted file mode 100644 index ff442fce..00000000 --- a/spec/services/smartview/oas3.fetched/spec_.yaml +++ /dev/null @@ -1,282 +0,0 @@ -{ - "swagger" : "2.0", - "host" : "api.equinix.com", - "info" : { - "title" : "Smart View Environmental API", - "description" : "Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria.", - "version" : "2.0", - "termsOfService" : "https://www.equinix.com/about/legal/terms", - "contact" : { - "name" : "Equinix API Support", - "url" : "https://docs.equinix.com/api-support.htm" - } - }, - "produces" : [ "application/json" ], - "consumes" : [ "application/json" ], - "schemes" : [ "https" ], - "paths" : { - "/smartview/v2/environmental/ibxs/{ibx}/sensors/readings" : { - "get" : { - "tags": [ - "Smart View Environmental" - ], - "summary" : "IBX sensors current readings", - "description" : "Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way.", - "parameters" : [ { - "name" : "ibx", - "in" : "path", - "type" : "string", - "description" : "IBX where the sensor is located.", - "required" : true, - "x-example" : "CH2" - }, { - "name" : "type", - "in" : "query", - "type" : "string", - "description" : "Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included", - "required" : false, - "x-example" : "HUMIDITY" - }, { - "name" : "zone", - "in" : "query", - "type" : "string", - "description" : "Zone name. Adding this parameter limits the query to sensors in the specified zone", - "required" : false, - "x-example" : "CH2:1:06:ColoArea:1" - }, { - "name" : "offset", - "in" : "query", - "type" : "integer", - "description" : "Results offset you want to retrieve (0..N)", - "required" : false, - "default" : 0 - }, { - "name" : "limit", - "in" : "query", - "type" : "integer", - "description" : "Number of records to retrieve per request.", - "required" : false, - "default" : 20 - }, { - "$ref" : "#/parameters/authorizationHeader" - } ], - "produces" : [ "application/json" ], - "operationId" : "getSensorReadings", - "responses" : { - "200" : { - "description" : "OK", - "schema" : { - "$ref" : "#/definitions/SensorReadingsResponse" - } - }, - "400" : { - "description" : "Bad request" - }, - "401" : { - "description" : "Unauthorized" - }, - "403" : { - "description" : "Forbidden" - }, - "422" : { - "description" : "Unprocessable entity" - } - } - } - }, - "/smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings" : { - "get" : { - "tags": [ - "Smart View Environmental" - ], - "summary" : "Single sensor current value(s)", - "description" : "Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code.", - "parameters" : [ { - "name" : "ibx", - "in" : "path", - "type" : "string", - "description" : "IBX where the sensor is located.", - "required" : true, - "x-example" : "SV2" - }, { - "name" : "sensorId", - "in" : "path", - "type" : "string", - "description" : "Id of sensor to read.", - "required" : true, - "x-example" : "CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03" - }, { - "$ref" : "#/parameters/authorizationHeader" - } ], - "produces" : [ "application/json" ], - "operationId" : "getSingleSensorReadings", - "responses" : { - "200" : { - "description" : "OK", - "schema" : { - "$ref" : "#/definitions/Sensor reading" - } - }, - "400" : { - "description" : "Bad request" - }, - "401" : { - "description" : "Unauthorized" - }, - "403" : { - "description" : "Forbidden" - }, - "422" : { - "description" : "Unprocessable entity" - } - } - } - } - }, - "definitions" : { - "Pagination" : { - "type" : "object", - "description" : "Represents pagination component of the paginated response", - "required" : [ "limit", "offset", "total" ], - "properties" : { - "offset" : { - "type" : "integer", - "format" : "int64", - "description" : "The number of elements to skip." - }, - "limit" : { - "type" : "integer", - "format" : "int64", - "description" : "The page size." - }, - "total" : { - "type" : "integer", - "format" : "int64", - "description" : "The total number of elements in the result set." - }, - "next" : { - "type" : "string", - "description" : "Represents a relative link to the next page. This can be empty if there is no next page available." - }, - "previous" : { - "type" : "string", - "description" : "Represents a relative link to the previous page. This can be empty if there is no previous page available." - } - } - }, - "Sensor reading" : { - "type" : "object", - "description" : "Single environmental sensor reading.", - "required" : [ "ibx", "sensorId", "zoneId" ], - "properties" : { - "sensorId" : { - "type" : "string", - "example" : "SV2.Environmental.Colo4-ZoneHumidity1", - "description" : "The sensor identifier." - }, - "zoneId" : { - "type" : "string", - "example" : "CH2:1:06:ColoArea:1", - "description" : "The zone where the sensor is placed." - }, - "ibx" : { - "type" : "string", - "example" : "SV2", - "description" : "The ibx identifier where the sensor is placed." - }, - "humidity" : { - "example" : "{ value: 33.3, unit: \"%\" }", - "description" : "Sensor reading: humidity", - "$ref" : "#/definitions/ValueWithUnit" - }, - "temperature" : { - "example" : "{ value: 23.08, unit: \"CELSIUS\" }", - "description" : "Sensor reading: temperature", - "$ref" : "#/definitions/ValueWithUnit" - } - } - }, - "SensorReadingsResponse" : { - "type" : "object", - "required" : [ "data", "pagination" ], - "properties" : { - "data" : { - "type" : "array", - "description" : "List of data objects", - "items" : { - "$ref" : "#/definitions/Sensor reading" - } - }, - "pagination" : { - "description" : "Pagination metadata", - "$ref" : "#/definitions/Pagination" - } - } - }, - "ValueWithUnit" : { - "type" : "object", - "description" : "Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature).", - "required" : [ "unit", "value" ], - "properties" : { - "value" : { - "type" : "object", - "example" : "33.3", - "description" : "Specific value, to be read together with unit." - }, - "unit" : { - "type" : "object", - "example" : "CELSIUS", - "description" : "Unit for value." - } - } - }, - "ValueWithUnitDoubleHumidityUnit" : { - "type" : "object", - "description" : "Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature).", - "required" : [ "unit", "value" ], - "properties" : { - "value" : { - "type" : "number", - "format" : "double", - "example" : 33.3, - "description" : "Specific value, to be read together with unit." - }, - "unit" : { - "type" : "string", - "example" : "CELSIUS", - "description" : "Unit for value.", - "enum" : [ "PERCENT" ] - } - } - }, - "ValueWithUnitDoubleTemperatureUnit" : { - "type" : "object", - "description" : "Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature).", - "required" : [ "unit", "value" ], - "properties" : { - "value" : { - "type" : "number", - "format" : "double", - "example" : 33.3, - "description" : "Specific value, to be read together with unit." - }, - "unit" : { - "type" : "string", - "example" : "CELSIUS", - "description" : "Unit for value.", - "enum" : [ "CELSIUS", "FAHRENHEIT" ] - } - } - } - }, - "parameters" : { - "authorizationHeader" : { - "name" : "Authorization", - "in" : "header", - "type" : "string", - "description" : "The OAuth Bearer token. Please add the prefix 'Bearer ' before the token.", - "required" : true, - "x-prefix" : "Bearer " - } - } -} \ No newline at end of file From 920f1c453b314253b12ef010b0405ce8b072cc04 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Tue, 7 Jan 2025 16:32:37 -0500 Subject: [PATCH 8/8] chore: regenerate smartview package Signed-off-by: Marques Johansson --- services/smartview/README.md | 34 +- services/smartview/api_alert_log.go | 6 +- services/smartview/api_alerts.go | 6 +- services/smartview/api_dcim_power.go | 270 +++--- services/smartview/api_default.go | 6 +- services/smartview/api_smart_view_assets.go | 50 +- .../smartview/api_smart_view_environment.go | 106 +-- .../api_smart_view_hierarchy_apis.go | 6 +- services/smartview/client.go | 11 +- services/smartview/configuration.go | 6 +- services/smartview/docs/DCIMPowerApi.md | 104 +-- .../docs/Mixin0DataPointParameter.md | 13 + .../smartview/docs/Mixin0IntervalParameter.md | 15 + .../docs/Mixin0LevelTypeParameter.md | 17 + services/smartview/docs/Pagination.md | 30 +- services/smartview/docs/SmartViewAssetsApi.md | 32 +- .../smartview/docs/SmartViewEnvironmentApi.md | 68 +- ...wer_v1_current_get_level_type_parameter.go | 6 +- services/smartview/model_alarm.go | 6 +- .../smartview/model_alarm_asset_details.go | 6 +- .../model_alarm_current_value_details.go | 6 +- .../smartview/model_alarm_message_data.go | 6 +- .../smartview/model_alarm_status_details.go | 6 +- services/smartview/model_alarm_tag_details.go | 6 +- .../model_alarm_threshold_details.go | 6 +- services/smartview/model_alert.go | 6 +- .../smartview/model_alert_activity_log.go | 6 +- .../smartview/model_alert_activity_log_obj.go | 6 +- .../smartview/model_alert_asset_details.go | 6 +- services/smartview/model_alert_dto1.go | 6 +- services/smartview/model_alert_dto2.go | 6 +- .../smartview/model_alert_message_data.go | 6 +- services/smartview/model_alert_obj.go | 6 +- services/smartview/model_alert_tag_details.go | 6 +- .../model_alert_threshold_details.go | 6 +- services/smartview/model_alert_type.go | 6 +- services/smartview/model_alerts.go | 6 +- services/smartview/model_api_error.go | 6 +- .../model_api_error_additional_info.go | 6 +- services/smartview/model_asset.go | 6 +- .../model_asset_asset_classification_inner.go | 6 +- .../smartview/model_asset_detail_response.go | 6 +- .../model_asset_detail_response_pay_load.go | 6 +- .../model_asset_detail_response_status.go | 6 +- ...model_asset_detail_response_status_type.go | 6 +- services/smartview/model_asset_details.go | 6 +- .../model_asset_details_get_response.go | 6 +- ...del_asset_details_get_response_pay_load.go | 6 +- .../smartview/model_asset_details_request.go | 6 +- .../smartview/model_asset_details_response.go | 6 +- .../model_asset_details_response_pay_load.go | 6 +- .../model_asset_details_tag_point_data.go | 6 +- services/smartview/model_assets.go | 6 +- services/smartview/model_assets_array.go | 6 +- services/smartview/model_assets_list.go | 6 +- .../smartview/model_assets_list_pay_load.go | 6 +- .../smartview/model_assets_list_status.go | 6 +- services/smartview/model_assets_pay_load.go | 6 +- services/smartview/model_assets_status.go | 6 +- ...odel_aws_iot_core_channel_configuration.go | 6 +- .../model_azure_channel_configuration.go | 6 +- services/smartview/model_cabinets.go | 6 +- services/smartview/model_cabinets_name.go | 6 +- services/smartview/model_cages.go | 6 +- services/smartview/model_category.go | 6 +- services/smartview/model_channel.go | 6 +- .../smartview/model_channel_channel_type.go | 6 +- services/smartview/model_circuits.go | 6 +- .../smartview/model_circuits_map_with_cage.go | 6 +- .../model_circuits_map_with_cage_name.go | 6 +- services/smartview/model_circuits_name.go | 6 +- services/smartview/model_circuits_type.go | 6 +- services/smartview/model_comparison_data.go | 6 +- .../model_comparison_data_datapoint.go | 6 +- .../smartview/model_comparison_data_trend.go | 6 +- services/smartview/model_conditional_alert.go | 6 +- .../model_current_tag_point_request.go | 6 +- .../model_current_tag_point_response.go | 6 +- services/smartview/model_custom_alert.go | 6 +- services/smartview/model_customer_assets.go | 6 +- services/smartview/model_data_value.go | 6 +- services/smartview/model_environment.go | 6 +- .../model_environment_asset_details.go | 6 +- services/smartview/model_environment_data.go | 6 +- .../model_environment_data_for_array.go | 6 +- .../model_environment_data_pay_load.go | 6 +- .../model_environment_data_response.go | 6 +- ...odel_environment_data_response_pay_load.go | 6 +- .../model_environment_data_response_status.go | 6 +- .../model_environment_data_status.go | 6 +- .../model_environment_message_data.go | 6 +- .../model_environment_tag_details.go | 6 +- .../model_environment_value_with_unit.go | 6 +- services/smartview/model_environmental.go | 6 +- .../model_environmental_level_inner.go | 6 +- services/smartview/model_error.go | 6 +- services/smartview/model_error_status.go | 6 +- services/smartview/model_error_status_type.go | 6 +- services/smartview/model_generic_request.go | 6 +- ...odel_get_asset_classification_parameter.go | 6 +- ...tion_data_message_types_parameter_inner.go | 6 +- services/smartview/model_hierarchy_node.go | 6 +- .../model_hierarchy_node_pay_load.go | 6 +- services/smartview/model_message_type.go | 6 +- services/smartview/model_metered_power.go | 6 +- .../model_metered_power_asset_details.go | 6 +- .../model_metered_power_message_data.go | 6 +- .../model_metered_power_tag_details.go | 6 +- .../model_metered_power_value_with_unit.go | 6 +- .../model_mixin0_data_point_parameter.go | 111 +++ .../model_mixin0_interval_parameter.go | 113 +++ .../model_mixin0_level_type_parameter.go | 115 +++ services/smartview/model_pagination.go | 50 +- services/smartview/model_power.go | 6 +- ...el_power_apparent_power_value_with_unit.go | 6 +- .../smartview/model_power_asset_details.go | 6 +- ...el_power_cabinet_rating_value_with_unit.go | 6 +- ...power_contractual_power_value_with_unit.go | 6 +- .../model_power_current_post_request.go | 6 +- ...l_power_current_post_request_level_type.go | 6 +- .../model_power_current_value_with_unit.go | 6 +- services/smartview/model_power_data.go | 6 +- services/smartview/model_power_data_error.go | 6 +- .../model_power_data_error_status.go | 6 +- services/smartview/model_power_data_ibx.go | 6 +- .../smartview/model_power_data_pay_load.go | 6 +- .../model_power_data_pay_load_level_type.go | 6 +- .../model_power_data_response_ibx.go | 6 +- .../model_power_data_response_ibx_pay_load.go | 6 +- .../smartview/model_power_hierarchy_node.go | 6 +- .../model_power_hierarchy_node_level_type.go | 6 +- services/smartview/model_power_message.go | 6 +- .../smartview/model_power_message_data.go | 6 +- ..._days_contractual_power_value_with_unit.go | 6 +- ...k_last_seven_days_ratio_value_with_unit.go | 6 +- ...er_peak_last_seven_days_value_with_unit.go | 6 +- ...sumption_to_contractual_value_with_unit.go | 6 +- ...odel_power_power_factor_value_with_unit.go | 6 +- .../model_power_real_power_value_with_unit.go | 6 +- ...odel_power_sold_current_value_with_unit.go | 6 +- .../model_power_sold_power_value_with_unit.go | 6 +- services/smartview/model_recipients_array.go | 6 +- services/smartview/model_status.go | 6 +- services/smartview/model_status_info.go | 6 +- services/smartview/model_subscription_data.go | 6 +- .../smartview/model_subscription_request.go | 6 +- .../smartview/model_subscription_response.go | 6 +- .../model_subscription_response_status.go | 6 +- services/smartview/model_system_alert.go | 6 +- services/smartview/model_tag_details.go | 6 +- services/smartview/model_tag_point.go | 6 +- services/smartview/model_tag_point_data.go | 6 +- .../smartview/model_tag_point_data_array.go | 6 +- .../model_tag_point_data_array_current.go | 6 +- .../smartview/model_tag_point_data_status.go | 6 +- .../smartview/model_tag_point_message_data.go | 6 +- .../model_tag_point_trending_data.go | 6 +- .../model_tag_point_trending_response.go | 6 +- ...el_tag_point_trending_response_pay_load.go | 6 +- ...int_trending_response_pay_load_interval.go | 6 +- ...odel_tag_point_trending_response_status.go | 6 +- .../model_tag_point_value_with_unit.go | 6 +- services/smartview/model_template.go | 6 +- .../model_trending_environment_data.go | 6 +- ...odel_trending_environment_data_pay_load.go | 6 +- .../smartview/model_trending_power_data.go | 6 +- .../model_trending_power_data_pay_load.go | 6 +- ...l_trending_power_data_pay_load_interval.go | 6 +- ...trending_power_data_pay_load_level_type.go | 6 +- .../model_trending_power_data_status.go | 6 +- .../model_webhook_channel_configuration.go | 6 +- services/smartview/response.go | 6 +- services/smartview/utils.go | 6 +- .../smartview/oas3.fetched/merged-spec.yaml | 815 +---------------- .../smartview/oas3.fetched/swagger.yaml | 825 +----------------- 175 files changed, 1273 insertions(+), 2448 deletions(-) create mode 100644 services/smartview/docs/Mixin0DataPointParameter.md create mode 100644 services/smartview/docs/Mixin0IntervalParameter.md create mode 100644 services/smartview/docs/Mixin0LevelTypeParameter.md create mode 100644 services/smartview/model_mixin0_data_point_parameter.go create mode 100644 services/smartview/model_mixin0_interval_parameter.go create mode 100644 services/smartview/model_mixin0_level_type_parameter.go diff --git a/services/smartview/README.md b/services/smartview/README.md index 62efa348..7f81cd77 100644 --- a/services/smartview/README.md +++ b/services/smartview/README.md @@ -1,11 +1,12 @@ # Go API client for smartview -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. + ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 2.0 +- API version: 1.0 - Package version: 0.47.0 - Generator version: 7.4.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -81,9 +82,9 @@ Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AlertLogApi* | [**GetAlertActivityLog**](docs/AlertLogApi.md#getalertactivitylog) | **Get** /smartview/v1/alerts/getAlertActivityLog | get alert activity logs *AlertsApi* | [**GetAlerts**](docs/AlertsApi.md#getalerts) | **Get** /smartview/v1/alerts/getAlerts | obtain active SmartView alerts. -*DCIMPowerApi* | [**Mixin0**](docs/DCIMPowerApi.md#mixin0) | **Post** /power/v1/current | Fetch current power consumption data -*DCIMPowerApi* | [**Mixin0_0**](docs/DCIMPowerApi.md#mixin0_0) | **Get** /power/v1/trending | Fetch Trending Power Data. *DCIMPowerApi* | [**PowerV1CurrentGet**](docs/DCIMPowerApi.md#powerv1currentget) | **Get** /power/v1/current | Fetch current power consumption data +*DCIMPowerApi* | [**PowerV1CurrentPost**](docs/DCIMPowerApi.md#powerv1currentpost) | **Post** /power/v1/current | Fetch current power consumption data +*DCIMPowerApi* | [**PowerV1TrendingGet**](docs/DCIMPowerApi.md#powerv1trendingget) | **Get** /power/v1/trending | Fetch Trending Power Data. *DefaultApi* | [**CreateSubscription**](docs/DefaultApi.md#createsubscription) | **Post** /smartview/v2/streaming/subscriptions | Create subscription endpoint *DefaultApi* | [**DeleteSubscriptionById**](docs/DefaultApi.md#deletesubscriptionbyid) | **Delete** /smartview/v2/streaming/subscriptions/{id} | Delete subscription endpoint *DefaultApi* | [**GetAllSubscriptions**](docs/DefaultApi.md#getallsubscriptions) | **Get** /smartview/v2/streaming/subscriptions | Get all subscription endpoint @@ -95,14 +96,12 @@ Class | Method | HTTP request | Description *SmartViewAssetsApi* | [**GetAssetDetails**](docs/SmartViewAssetsApi.md#getassetdetails) | **Get** /smartview/v1/asset/details | get details for an asset. *SmartViewAssetsApi* | [**GetCurrentTagPoint**](docs/SmartViewAssetsApi.md#getcurrenttagpoint) | **Get** /smartview/v1/asset/tagpoint/current | obtain latest tag point data *SmartViewAssetsApi* | [**GetTagpointTrending**](docs/SmartViewAssetsApi.md#gettagpointtrending) | **Get** /smartview/v1/asset/tagpoint/trending | obtain trending tag point data -*SmartViewAssetsApi* | [**Mixin4**](docs/SmartViewAssetsApi.md#mixin4) | **Post** /smartview/v1/asset/details | get asset details -*SmartViewAssetsApi* | [**Mixin4_0**](docs/SmartViewAssetsApi.md#mixin4_0) | **Post** /smartview/v1/asset/tagpoint/current | get current tag points data +*SmartViewAssetsApi* | [**Mixin3**](docs/SmartViewAssetsApi.md#mixin3) | **Post** /smartview/v1/asset/details | get asset details +*SmartViewAssetsApi* | [**Mixin3_0**](docs/SmartViewAssetsApi.md#mixin3_0) | **Post** /smartview/v1/asset/tagpoint/current | get current tag points data *SmartViewAssetsApi* | [**SearchAsset**](docs/SmartViewAssetsApi.md#searchasset) | **Get** /smartview/v1/asset/search | Search for Assets matching identifiers -*SmartViewEnvironmentApi* | [**Mixin1**](docs/SmartViewEnvironmentApi.md#mixin1) | **Get** /environment/v1/current | Get current environmental data -*SmartViewEnvironmentApi* | [**Mixin1_0**](docs/SmartViewEnvironmentApi.md#mixin1_0) | **Get** /environment/v1/listCurrent | Fetch list of environmental data -*SmartViewEnvironmentApi* | [**Mixin1_1**](docs/SmartViewEnvironmentApi.md#mixin1_1) | **Get** /environment/v1/trending | Fetch trending environmental data -*SmartViewEnvironmentalApi* | [**GetSensorReadings**](docs/SmartViewEnvironmentalApi.md#getsensorreadings) | **Get** /smartview/v2/environmental/ibxs/{ibx}/sensors/readings | IBX sensors current readings -*SmartViewEnvironmentalApi* | [**GetSingleSensorReadings**](docs/SmartViewEnvironmentalApi.md#getsinglesensorreadings) | **Get** /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings | Single sensor current value(s) +*SmartViewEnvironmentApi* | [**Mixin0**](docs/SmartViewEnvironmentApi.md#mixin0) | **Get** /environment/v1/current | Get current environmental data +*SmartViewEnvironmentApi* | [**Mixin0_0**](docs/SmartViewEnvironmentApi.md#mixin0_0) | **Get** /environment/v1/listCurrent | Fetch list of environmental data +*SmartViewEnvironmentApi* | [**Mixin0_1**](docs/SmartViewEnvironmentApi.md#mixin0_1) | **Get** /environment/v1/trending | Fetch trending environmental data *SmartViewHierarchyAPIsApi* | [**GetLocationHierarchy**](docs/SmartViewHierarchyAPIsApi.md#getlocationhierarchy) | **Get** /smartview/v1/hierarchy/location | Fetch the Location Hierarchy *SmartViewHierarchyAPIsApi* | [**GetPowerHierarchy**](docs/SmartViewHierarchyAPIsApi.md#getpowerhierarchy) | **Get** /smartview/v1/hierarchy/power | Fetch the Power Hierarchy @@ -200,9 +199,9 @@ Class | Method | HTTP request | Description - [MeteredPowerMessageData](docs/MeteredPowerMessageData.md) - [MeteredPowerTagDetails](docs/MeteredPowerTagDetails.md) - [MeteredPowerValueWithUnit](docs/MeteredPowerValueWithUnit.md) - - [Mixin1DataPointParameter](docs/Mixin1DataPointParameter.md) - - [Mixin1IntervalParameter](docs/Mixin1IntervalParameter.md) - - [Mixin1LevelTypeParameter](docs/Mixin1LevelTypeParameter.md) + - [Mixin0DataPointParameter](docs/Mixin0DataPointParameter.md) + - [Mixin0IntervalParameter](docs/Mixin0IntervalParameter.md) + - [Mixin0LevelTypeParameter](docs/Mixin0LevelTypeParameter.md) - [Pagination](docs/Pagination.md) - [Power](docs/Power.md) - [PowerApparentPowerValueWithUnit](docs/PowerApparentPowerValueWithUnit.md) @@ -234,8 +233,6 @@ Class | Method | HTTP request | Description - [PowerSoldPowerValueWithUnit](docs/PowerSoldPowerValueWithUnit.md) - [PowerV1CurrentGetLevelTypeParameter](docs/PowerV1CurrentGetLevelTypeParameter.md) - [RecipientsArray](docs/RecipientsArray.md) - - [SensorReading](docs/SensorReading.md) - - [SensorReadingsResponse](docs/SensorReadingsResponse.md) - [Status](docs/Status.md) - [StatusInfo](docs/StatusInfo.md) - [SubscriptionData](docs/SubscriptionData.md) @@ -264,11 +261,6 @@ Class | Method | HTTP request | Description - [TrendingPowerDataPayLoadInterval](docs/TrendingPowerDataPayLoadInterval.md) - [TrendingPowerDataPayLoadLevelType](docs/TrendingPowerDataPayLoadLevelType.md) - [TrendingPowerDataStatus](docs/TrendingPowerDataStatus.md) - - [ValueWithUnit](docs/ValueWithUnit.md) - - [ValueWithUnitDoubleHumidityUnit](docs/ValueWithUnitDoubleHumidityUnit.md) - - [ValueWithUnitDoubleHumidityUnitUnit](docs/ValueWithUnitDoubleHumidityUnitUnit.md) - - [ValueWithUnitDoubleTemperatureUnit](docs/ValueWithUnitDoubleTemperatureUnit.md) - - [ValueWithUnitDoubleTemperatureUnitUnit](docs/ValueWithUnitDoubleTemperatureUnitUnit.md) - [WebhookChannelConfiguration](docs/WebhookChannelConfiguration.md) diff --git a/services/smartview/api_alert_log.go b/services/smartview/api_alert_log.go index f0eba112..79267a4f 100644 --- a/services/smartview/api_alert_log.go +++ b/services/smartview/api_alert_log.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/api_alerts.go b/services/smartview/api_alerts.go index 7622f170..e22d20de 100644 --- a/services/smartview/api_alerts.go +++ b/services/smartview/api_alerts.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/api_dcim_power.go b/services/smartview/api_dcim_power.go index 37834222..9687a6ec 100644 --- a/services/smartview/api_dcim_power.go +++ b/services/smartview/api_dcim_power.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,56 +22,77 @@ import ( // DCIMPowerApiService DCIMPowerApi service type DCIMPowerApiService service -type ApiMixin0Request struct { +type ApiPowerV1CurrentGetRequest struct { ctx context.Context ApiService *DCIMPowerApiService authorization *string - body *PowerCurrentPostRequest + accountNo *string + ibx *string + levelType *PowerV1CurrentGetLevelTypeParameter + levelValue *string } // Specify the OAuth Bearer token with prefix 'Bearer '. -func (r ApiMixin0Request) Authorization(authorization string) ApiMixin0Request { +func (r ApiPowerV1CurrentGetRequest) Authorization(authorization string) ApiPowerV1CurrentGetRequest { r.authorization = &authorization return r } -// request payload -func (r ApiMixin0Request) Body(body PowerCurrentPostRequest) ApiMixin0Request { - r.body = &body +// Customer Account Number +func (r ApiPowerV1CurrentGetRequest) AccountNo(accountNo string) ApiPowerV1CurrentGetRequest { + r.accountNo = &accountNo + return r +} + +// IBX Code +func (r ApiPowerV1CurrentGetRequest) Ibx(ibx string) ApiPowerV1CurrentGetRequest { + r.ibx = &ibx + return r +} + +// level type allowed value [ibx|cage|cabinet|circuit] +func (r ApiPowerV1CurrentGetRequest) LevelType(levelType PowerV1CurrentGetLevelTypeParameter) ApiPowerV1CurrentGetRequest { + r.levelType = &levelType + return r +} + +// level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. +func (r ApiPowerV1CurrentGetRequest) LevelValue(levelValue string) ApiPowerV1CurrentGetRequest { + r.levelValue = &levelValue return r } -func (r ApiMixin0Request) Execute() (*PowerDataResponseIBX, *http.Response, error) { - return r.ApiService.Mixin0Execute(r) +func (r ApiPowerV1CurrentGetRequest) Execute() (*PowerData, *http.Response, error) { + return r.ApiService.PowerV1CurrentGetExecute(r) } /* -Mixin0 Fetch current power consumption data +PowerV1CurrentGet Fetch current power consumption data -The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. +The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin0Request + @return ApiPowerV1CurrentGetRequest */ -func (a *DCIMPowerApiService) Mixin0(ctx context.Context) ApiMixin0Request { - return ApiMixin0Request{ +func (a *DCIMPowerApiService) PowerV1CurrentGet(ctx context.Context) ApiPowerV1CurrentGetRequest { + return ApiPowerV1CurrentGetRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -// @return PowerDataResponseIBX -func (a *DCIMPowerApiService) Mixin0Execute(r ApiMixin0Request) (*PowerDataResponseIBX, *http.Response, error) { +// @return PowerData +func (a *DCIMPowerApiService) PowerV1CurrentGetExecute(r ApiPowerV1CurrentGetRequest) (*PowerData, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PowerDataResponseIBX + localVarReturnValue *PowerData ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.Mixin0") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.PowerV1CurrentGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -84,9 +105,25 @@ func (a *DCIMPowerApiService) Mixin0Execute(r ApiMixin0Request) (*PowerDataRespo if r.authorization == nil { return localVarReturnValue, nil, reportError("authorization is required and must be specified") } + if r.accountNo == nil { + return localVarReturnValue, nil, reportError("accountNo is required and must be specified") + } + if r.ibx == nil { + return localVarReturnValue, nil, reportError("ibx is required and must be specified") + } + if r.levelType == nil { + return localVarReturnValue, nil, reportError("levelType is required and must be specified") + } + if r.levelValue == nil { + return localVarReturnValue, nil, reportError("levelValue is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -103,8 +140,6 @@ func (a *DCIMPowerApiService) Mixin0Execute(r ApiMixin0Request) (*PowerDataRespo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") - // body params - localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -150,103 +185,61 @@ func (a *DCIMPowerApiService) Mixin0Execute(r ApiMixin0Request) (*PowerDataRespo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiMixin0_0Request struct { +type ApiPowerV1CurrentPostRequest struct { ctx context.Context ApiService *DCIMPowerApiService authorization *string - accountNo *string - ibx *float32 - levelType *PowerV1CurrentGetLevelTypeParameter - levelValue *string - interval *string - fromDate *string - toDate *string + body *PowerCurrentPostRequest } // Specify the OAuth Bearer token with prefix 'Bearer '. -func (r ApiMixin0_0Request) Authorization(authorization string) ApiMixin0_0Request { +func (r ApiPowerV1CurrentPostRequest) Authorization(authorization string) ApiPowerV1CurrentPostRequest { r.authorization = &authorization return r } -// Customer Account Number -func (r ApiMixin0_0Request) AccountNo(accountNo string) ApiMixin0_0Request { - r.accountNo = &accountNo - return r -} - -// IBX Code -func (r ApiMixin0_0Request) Ibx(ibx float32) ApiMixin0_0Request { - r.ibx = &ibx - return r -} - -// [ibx|cage|cabinet|circuit] -func (r ApiMixin0_0Request) LevelType(levelType PowerV1CurrentGetLevelTypeParameter) ApiMixin0_0Request { - r.levelType = &levelType - return r -} - -// ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. -func (r ApiMixin0_0Request) LevelValue(levelValue string) ApiMixin0_0Request { - r.levelValue = &levelValue - return r -} - -// [recording|1h|1d] -func (r ApiMixin0_0Request) Interval(interval string) ApiMixin0_0Request { - r.interval = &interval - return r -} - -// timestamp expected to be epoch long ( milliseconds ). -func (r ApiMixin0_0Request) FromDate(fromDate string) ApiMixin0_0Request { - r.fromDate = &fromDate - return r -} - -// timestamp expected to be epoch long ( milliseconds ). -func (r ApiMixin0_0Request) ToDate(toDate string) ApiMixin0_0Request { - r.toDate = &toDate +// request payload +func (r ApiPowerV1CurrentPostRequest) Body(body PowerCurrentPostRequest) ApiPowerV1CurrentPostRequest { + r.body = &body return r } -func (r ApiMixin0_0Request) Execute() (*TrendingPowerData, *http.Response, error) { - return r.ApiService.Mixin0_1Execute(r) +func (r ApiPowerV1CurrentPostRequest) Execute() (*PowerDataResponseIBX, *http.Response, error) { + return r.ApiService.PowerV1CurrentPostExecute(r) } /* -Mixin0_0 Fetch Trending Power Data. +PowerV1CurrentPost Fetch current power consumption data -The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. +The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin0_0Request + @return ApiPowerV1CurrentPostRequest */ -func (a *DCIMPowerApiService) Mixin0_1(ctx context.Context) ApiMixin0_0Request { - return ApiMixin0_0Request{ +func (a *DCIMPowerApiService) PowerV1CurrentPost(ctx context.Context) ApiPowerV1CurrentPostRequest { + return ApiPowerV1CurrentPostRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -// @return TrendingPowerData -func (a *DCIMPowerApiService) Mixin0_1Execute(r ApiMixin0_0Request) (*TrendingPowerData, *http.Response, error) { +// @return PowerDataResponseIBX +func (a *DCIMPowerApiService) PowerV1CurrentPostExecute(r ApiPowerV1CurrentPostRequest) (*PowerDataResponseIBX, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *TrendingPowerData + localVarReturnValue *PowerDataResponseIBX ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.Mixin0_1") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.PowerV1CurrentPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/power/v1/trending" + localVarPath := localBasePath + "/power/v1/current" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -254,37 +247,9 @@ func (a *DCIMPowerApiService) Mixin0_1Execute(r ApiMixin0_0Request) (*TrendingPo if r.authorization == nil { return localVarReturnValue, nil, reportError("authorization is required and must be specified") } - if r.accountNo == nil { - return localVarReturnValue, nil, reportError("accountNo is required and must be specified") - } - if r.ibx == nil { - return localVarReturnValue, nil, reportError("ibx is required and must be specified") - } - if r.levelType == nil { - return localVarReturnValue, nil, reportError("levelType is required and must be specified") - } - if r.levelValue == nil { - return localVarReturnValue, nil, reportError("levelValue is required and must be specified") - } - if r.interval == nil { - return localVarReturnValue, nil, reportError("interval is required and must be specified") - } - if r.fromDate == nil { - return localVarReturnValue, nil, reportError("fromDate is required and must be specified") - } - if r.toDate == nil { - return localVarReturnValue, nil, reportError("toDate is required and must be specified") - } - parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "fromDate", r.fromDate, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "toDate", r.toDate, "") // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -301,6 +266,8 @@ func (a *DCIMPowerApiService) Mixin0_1Execute(r ApiMixin0_0Request) (*TrendingPo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // body params + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -346,82 +313,103 @@ func (a *DCIMPowerApiService) Mixin0_1Execute(r ApiMixin0_0Request) (*TrendingPo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiPowerV1CurrentGetRequest struct { +type ApiPowerV1TrendingGetRequest struct { ctx context.Context ApiService *DCIMPowerApiService authorization *string accountNo *string - ibx *string + ibx *float32 levelType *PowerV1CurrentGetLevelTypeParameter levelValue *string + interval *string + fromDate *string + toDate *string } // Specify the OAuth Bearer token with prefix 'Bearer '. -func (r ApiPowerV1CurrentGetRequest) Authorization(authorization string) ApiPowerV1CurrentGetRequest { +func (r ApiPowerV1TrendingGetRequest) Authorization(authorization string) ApiPowerV1TrendingGetRequest { r.authorization = &authorization return r } // Customer Account Number -func (r ApiPowerV1CurrentGetRequest) AccountNo(accountNo string) ApiPowerV1CurrentGetRequest { +func (r ApiPowerV1TrendingGetRequest) AccountNo(accountNo string) ApiPowerV1TrendingGetRequest { r.accountNo = &accountNo return r } // IBX Code -func (r ApiPowerV1CurrentGetRequest) Ibx(ibx string) ApiPowerV1CurrentGetRequest { +func (r ApiPowerV1TrendingGetRequest) Ibx(ibx float32) ApiPowerV1TrendingGetRequest { r.ibx = &ibx return r } -// level type allowed value [ibx|cage|cabinet|circuit] -func (r ApiPowerV1CurrentGetRequest) LevelType(levelType PowerV1CurrentGetLevelTypeParameter) ApiPowerV1CurrentGetRequest { +// [ibx|cage|cabinet|circuit] +func (r ApiPowerV1TrendingGetRequest) LevelType(levelType PowerV1CurrentGetLevelTypeParameter) ApiPowerV1TrendingGetRequest { r.levelType = &levelType return r } -// level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. -func (r ApiPowerV1CurrentGetRequest) LevelValue(levelValue string) ApiPowerV1CurrentGetRequest { +// ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. +func (r ApiPowerV1TrendingGetRequest) LevelValue(levelValue string) ApiPowerV1TrendingGetRequest { r.levelValue = &levelValue return r } -func (r ApiPowerV1CurrentGetRequest) Execute() (*PowerData, *http.Response, error) { - return r.ApiService.PowerV1CurrentGetExecute(r) +// [recording|1h|1d] +func (r ApiPowerV1TrendingGetRequest) Interval(interval string) ApiPowerV1TrendingGetRequest { + r.interval = &interval + return r +} + +// timestamp expected to be epoch long ( milliseconds ). +func (r ApiPowerV1TrendingGetRequest) FromDate(fromDate string) ApiPowerV1TrendingGetRequest { + r.fromDate = &fromDate + return r +} + +// timestamp expected to be epoch long ( milliseconds ). +func (r ApiPowerV1TrendingGetRequest) ToDate(toDate string) ApiPowerV1TrendingGetRequest { + r.toDate = &toDate + return r +} + +func (r ApiPowerV1TrendingGetRequest) Execute() (*TrendingPowerData, *http.Response, error) { + return r.ApiService.PowerV1TrendingGetExecute(r) } /* -PowerV1CurrentGet Fetch current power consumption data +PowerV1TrendingGet Fetch Trending Power Data. -The powerData endpoint returns power consumption info ( power consumption data with comparison data of current [% Kva] vs yesterday, lastWeek, lastMonth, lastQuarter ) for input ibx, cage, cabinet, circuit. +The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPowerV1CurrentGetRequest + @return ApiPowerV1TrendingGetRequest */ -func (a *DCIMPowerApiService) PowerV1CurrentGet(ctx context.Context) ApiPowerV1CurrentGetRequest { - return ApiPowerV1CurrentGetRequest{ +func (a *DCIMPowerApiService) PowerV1TrendingGet(ctx context.Context) ApiPowerV1TrendingGetRequest { + return ApiPowerV1TrendingGetRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -// @return PowerData -func (a *DCIMPowerApiService) PowerV1CurrentGetExecute(r ApiPowerV1CurrentGetRequest) (*PowerData, *http.Response, error) { +// @return TrendingPowerData +func (a *DCIMPowerApiService) PowerV1TrendingGetExecute(r ApiPowerV1TrendingGetRequest) (*TrendingPowerData, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PowerData + localVarReturnValue *TrendingPowerData ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.PowerV1CurrentGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DCIMPowerApiService.PowerV1TrendingGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/power/v1/current" + localVarPath := localBasePath + "/power/v1/trending" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -441,11 +429,23 @@ func (a *DCIMPowerApiService) PowerV1CurrentGetExecute(r ApiPowerV1CurrentGetReq if r.levelValue == nil { return localVarReturnValue, nil, reportError("levelValue is required and must be specified") } + if r.interval == nil { + return localVarReturnValue, nil, reportError("interval is required and must be specified") + } + if r.fromDate == nil { + return localVarReturnValue, nil, reportError("fromDate is required and must be specified") + } + if r.toDate == nil { + return localVarReturnValue, nil, reportError("toDate is required and must be specified") + } parameterAddToHeaderOrQuery(localVarQueryParams, "accountNo", r.accountNo, "") parameterAddToHeaderOrQuery(localVarQueryParams, "ibx", r.ibx, "") parameterAddToHeaderOrQuery(localVarQueryParams, "levelType", r.levelType, "") parameterAddToHeaderOrQuery(localVarQueryParams, "levelValue", r.levelValue, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", r.interval, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "fromDate", r.fromDate, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "toDate", r.toDate, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/services/smartview/api_default.go b/services/smartview/api_default.go index 679a6173..184681e9 100644 --- a/services/smartview/api_default.go +++ b/services/smartview/api_default.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/api_smart_view_assets.go b/services/smartview/api_smart_view_assets.go index 5c0b0f26..d8b4185e 100644 --- a/services/smartview/api_smart_view_assets.go +++ b/services/smartview/api_smart_view_assets.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -842,7 +842,7 @@ func (a *SmartViewAssetsApiService) GetTagpointTrendingExecute(r ApiGetTagpointT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiMixin4Request struct { +type ApiMixin3Request struct { ctx context.Context ApiService *SmartViewAssetsApiService authorization *string @@ -850,31 +850,31 @@ type ApiMixin4Request struct { } // Specify the OAuth Bearer token with prefix 'Bearer '. -func (r ApiMixin4Request) Authorization(authorization string) ApiMixin4Request { +func (r ApiMixin3Request) Authorization(authorization string) ApiMixin3Request { r.authorization = &authorization return r } // request schema -func (r ApiMixin4Request) Payload(payload AssetDetailsRequest) ApiMixin4Request { +func (r ApiMixin3Request) Payload(payload AssetDetailsRequest) ApiMixin3Request { r.payload = &payload return r } -func (r ApiMixin4Request) Execute() (*AssetDetailsResponse, *http.Response, error) { - return r.ApiService.Mixin4Execute(r) +func (r ApiMixin3Request) Execute() (*AssetDetailsResponse, *http.Response, error) { + return r.ApiService.Mixin3Execute(r) } /* -Mixin4 get asset details +Mixin3 get asset details This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin4Request + @return ApiMixin3Request */ -func (a *SmartViewAssetsApiService) Mixin4(ctx context.Context) ApiMixin4Request { - return ApiMixin4Request{ +func (a *SmartViewAssetsApiService) Mixin3(ctx context.Context) ApiMixin3Request { + return ApiMixin3Request{ ApiService: a, ctx: ctx, } @@ -882,7 +882,7 @@ func (a *SmartViewAssetsApiService) Mixin4(ctx context.Context) ApiMixin4Request // Execute executes the request // @return AssetDetailsResponse -func (a *SmartViewAssetsApiService) Mixin4Execute(r ApiMixin4Request) (*AssetDetailsResponse, *http.Response, error) { +func (a *SmartViewAssetsApiService) Mixin3Execute(r ApiMixin3Request) (*AssetDetailsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -890,7 +890,7 @@ func (a *SmartViewAssetsApiService) Mixin4Execute(r ApiMixin4Request) (*AssetDet localVarReturnValue *AssetDetailsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.Mixin4") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.Mixin3") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -969,7 +969,7 @@ func (a *SmartViewAssetsApiService) Mixin4Execute(r ApiMixin4Request) (*AssetDet return localVarReturnValue, localVarHTTPResponse, nil } -type ApiMixin4_0Request struct { +type ApiMixin3_0Request struct { ctx context.Context ApiService *SmartViewAssetsApiService authorization *string @@ -977,30 +977,30 @@ type ApiMixin4_0Request struct { } // Specify the OAuth Bearer token with prefix 'Bearer '. -func (r ApiMixin4_0Request) Authorization(authorization string) ApiMixin4_0Request { +func (r ApiMixin3_0Request) Authorization(authorization string) ApiMixin3_0Request { r.authorization = &authorization return r } -func (r ApiMixin4_0Request) Payload(payload CurrentTagPointRequest) ApiMixin4_0Request { +func (r ApiMixin3_0Request) Payload(payload CurrentTagPointRequest) ApiMixin3_0Request { r.payload = &payload return r } -func (r ApiMixin4_0Request) Execute() (*TagPointData, *http.Response, error) { - return r.ApiService.Mixin4_1Execute(r) +func (r ApiMixin3_0Request) Execute() (*TagPointData, *http.Response, error) { + return r.ApiService.Mixin3_1Execute(r) } /* -Mixin4_0 get current tag points data +Mixin3_0 get current tag points data This endpoint fetches the latest read values for given tag points using given tag identifiers. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin4_0Request + @return ApiMixin3_0Request */ -func (a *SmartViewAssetsApiService) Mixin4_1(ctx context.Context) ApiMixin4_0Request { - return ApiMixin4_0Request{ +func (a *SmartViewAssetsApiService) Mixin3_1(ctx context.Context) ApiMixin3_0Request { + return ApiMixin3_0Request{ ApiService: a, ctx: ctx, } @@ -1008,7 +1008,7 @@ func (a *SmartViewAssetsApiService) Mixin4_1(ctx context.Context) ApiMixin4_0Req // Execute executes the request // @return TagPointData -func (a *SmartViewAssetsApiService) Mixin4_1Execute(r ApiMixin4_0Request) (*TagPointData, *http.Response, error) { +func (a *SmartViewAssetsApiService) Mixin3_1Execute(r ApiMixin3_0Request) (*TagPointData, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1016,7 +1016,7 @@ func (a *SmartViewAssetsApiService) Mixin4_1Execute(r ApiMixin4_0Request) (*TagP localVarReturnValue *TagPointData ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.Mixin4_1") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewAssetsApiService.Mixin3_1") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/services/smartview/api_smart_view_environment.go b/services/smartview/api_smart_view_environment.go index 8714488b..dfd1b81b 100644 --- a/services/smartview/api_smart_view_environment.go +++ b/services/smartview/api_smart_view_environment.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,60 +23,60 @@ import ( // SmartViewEnvironmentApiService SmartViewEnvironmentApi service type SmartViewEnvironmentApiService service -type ApiMixin1Request struct { +type ApiMixin0Request struct { ctx context.Context ApiService *SmartViewEnvironmentApiService authorization *string accountNo *string ibx *string - levelType *Mixin1LevelTypeParameter + levelType *Mixin0LevelTypeParameter levelValue *string } // The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. -func (r ApiMixin1Request) Authorization(authorization string) ApiMixin1Request { +func (r ApiMixin0Request) Authorization(authorization string) ApiMixin0Request { r.authorization = &authorization return r } // Customer Account Number -func (r ApiMixin1Request) AccountNo(accountNo string) ApiMixin1Request { +func (r ApiMixin0Request) AccountNo(accountNo string) ApiMixin0Request { r.accountNo = &accountNo return r } // IBX Code -func (r ApiMixin1Request) Ibx(ibx string) ApiMixin1Request { +func (r ApiMixin0Request) Ibx(ibx string) ApiMixin0Request { r.ibx = &ibx return r } // Level Type -func (r ApiMixin1Request) LevelType(levelType Mixin1LevelTypeParameter) ApiMixin1Request { +func (r ApiMixin0Request) LevelType(levelType Mixin0LevelTypeParameter) ApiMixin0Request { r.levelType = &levelType return r } // Level Value is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor resp. -func (r ApiMixin1Request) LevelValue(levelValue string) ApiMixin1Request { +func (r ApiMixin0Request) LevelValue(levelValue string) ApiMixin0Request { r.levelValue = &levelValue return r } -func (r ApiMixin1Request) Execute() (*EnvironmentData, *http.Response, error) { - return r.ApiService.Mixin1Execute(r) +func (r ApiMixin0Request) Execute() (*EnvironmentData, *http.Response, error) { + return r.ApiService.Mixin0Execute(r) } /* -Mixin1 Get current environmental data +Mixin0 Get current environmental data The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin1Request + @return ApiMixin0Request */ -func (a *SmartViewEnvironmentApiService) Mixin1(ctx context.Context) ApiMixin1Request { - return ApiMixin1Request{ +func (a *SmartViewEnvironmentApiService) Mixin0(ctx context.Context) ApiMixin0Request { + return ApiMixin0Request{ ApiService: a, ctx: ctx, } @@ -84,7 +84,7 @@ func (a *SmartViewEnvironmentApiService) Mixin1(ctx context.Context) ApiMixin1Re // Execute executes the request // @return EnvironmentData -func (a *SmartViewEnvironmentApiService) Mixin1Execute(r ApiMixin1Request) (*EnvironmentData, *http.Response, error) { +func (a *SmartViewEnvironmentApiService) Mixin0Execute(r ApiMixin0Request) (*EnvironmentData, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -92,7 +92,7 @@ func (a *SmartViewEnvironmentApiService) Mixin1Execute(r ApiMixin1Request) (*Env localVarReturnValue *EnvironmentData ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin1") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin0") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -185,54 +185,54 @@ func (a *SmartViewEnvironmentApiService) Mixin1Execute(r ApiMixin1Request) (*Env return localVarReturnValue, localVarHTTPResponse, nil } -type ApiMixin1_0Request struct { +type ApiMixin0_0Request struct { ctx context.Context ApiService *SmartViewEnvironmentApiService authorization *string accountNo *string ibx *string - levelType *Mixin1LevelTypeParameter + levelType *Mixin0LevelTypeParameter } // The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. -func (r ApiMixin1_0Request) Authorization(authorization string) ApiMixin1_0Request { +func (r ApiMixin0_0Request) Authorization(authorization string) ApiMixin0_0Request { r.authorization = &authorization return r } // Customer Account Number -func (r ApiMixin1_0Request) AccountNo(accountNo string) ApiMixin1_0Request { +func (r ApiMixin0_0Request) AccountNo(accountNo string) ApiMixin0_0Request { r.accountNo = &accountNo return r } // IBX Code -func (r ApiMixin1_0Request) Ibx(ibx string) ApiMixin1_0Request { +func (r ApiMixin0_0Request) Ibx(ibx string) ApiMixin0_0Request { r.ibx = &ibx return r } // Level Type -func (r ApiMixin1_0Request) LevelType(levelType Mixin1LevelTypeParameter) ApiMixin1_0Request { +func (r ApiMixin0_0Request) LevelType(levelType Mixin0LevelTypeParameter) ApiMixin0_0Request { r.levelType = &levelType return r } -func (r ApiMixin1_0Request) Execute() (*EnvironmentDataResponse, *http.Response, error) { - return r.ApiService.Mixin1_1Execute(r) +func (r ApiMixin0_0Request) Execute() (*EnvironmentDataResponse, *http.Response, error) { + return r.ApiService.Mixin0_1Execute(r) } /* -Mixin1_0 Fetch list of environmental data +Mixin0_0 Fetch list of environmental data The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin1_0Request + @return ApiMixin0_0Request */ -func (a *SmartViewEnvironmentApiService) Mixin1_1(ctx context.Context) ApiMixin1_0Request { - return ApiMixin1_0Request{ +func (a *SmartViewEnvironmentApiService) Mixin0_1(ctx context.Context) ApiMixin0_0Request { + return ApiMixin0_0Request{ ApiService: a, ctx: ctx, } @@ -240,7 +240,7 @@ func (a *SmartViewEnvironmentApiService) Mixin1_1(ctx context.Context) ApiMixin1 // Execute executes the request // @return EnvironmentDataResponse -func (a *SmartViewEnvironmentApiService) Mixin1_1Execute(r ApiMixin1_0Request) (*EnvironmentDataResponse, *http.Response, error) { +func (a *SmartViewEnvironmentApiService) Mixin0_1Execute(r ApiMixin0_0Request) (*EnvironmentDataResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -248,7 +248,7 @@ func (a *SmartViewEnvironmentApiService) Mixin1_1Execute(r ApiMixin1_0Request) ( localVarReturnValue *EnvironmentDataResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin1_1") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin0_1") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -337,89 +337,89 @@ func (a *SmartViewEnvironmentApiService) Mixin1_1Execute(r ApiMixin1_0Request) ( return localVarReturnValue, localVarHTTPResponse, nil } -type ApiMixin1_1Request struct { +type ApiMixin0_1Request struct { ctx context.Context ApiService *SmartViewEnvironmentApiService authorization *string accountNo *string ibx *float32 - dataPoint *Mixin1DataPointParameter - levelType *Mixin1LevelTypeParameter + dataPoint *Mixin0DataPointParameter + levelType *Mixin0LevelTypeParameter levelValue *string - interval *Mixin1IntervalParameter + interval *Mixin0IntervalParameter fromDate *time.Time toDate *time.Time } // The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. -func (r ApiMixin1_1Request) Authorization(authorization string) ApiMixin1_1Request { +func (r ApiMixin0_1Request) Authorization(authorization string) ApiMixin0_1Request { r.authorization = &authorization return r } // Customer Account Number -func (r ApiMixin1_1Request) AccountNo(accountNo string) ApiMixin1_1Request { +func (r ApiMixin0_1Request) AccountNo(accountNo string) ApiMixin0_1Request { r.accountNo = &accountNo return r } // IBX Code -func (r ApiMixin1_1Request) Ibx(ibx float32) ApiMixin1_1Request { +func (r ApiMixin0_1Request) Ibx(ibx float32) ApiMixin0_1Request { r.ibx = &ibx return r } // data point -func (r ApiMixin1_1Request) DataPoint(dataPoint Mixin1DataPointParameter) ApiMixin1_1Request { +func (r ApiMixin0_1Request) DataPoint(dataPoint Mixin0DataPointParameter) ApiMixin0_1Request { r.dataPoint = &dataPoint return r } // Level Type -func (r ApiMixin1_1Request) LevelType(levelType Mixin1LevelTypeParameter) ApiMixin1_1Request { +func (r ApiMixin0_1Request) LevelType(levelType Mixin0LevelTypeParameter) ApiMixin0_1Request { r.levelType = &levelType return r } // Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor resp. -func (r ApiMixin1_1Request) LevelValue(levelValue string) ApiMixin1_1Request { +func (r ApiMixin0_1Request) LevelValue(levelValue string) ApiMixin0_1Request { r.levelValue = &levelValue return r } -func (r ApiMixin1_1Request) Interval(interval Mixin1IntervalParameter) ApiMixin1_1Request { +func (r ApiMixin0_1Request) Interval(interval Mixin0IntervalParameter) ApiMixin0_1Request { r.interval = &interval return r } // date in long -func (r ApiMixin1_1Request) FromDate(fromDate time.Time) ApiMixin1_1Request { +func (r ApiMixin0_1Request) FromDate(fromDate time.Time) ApiMixin0_1Request { r.fromDate = &fromDate return r } // date in long -func (r ApiMixin1_1Request) ToDate(toDate time.Time) ApiMixin1_1Request { +func (r ApiMixin0_1Request) ToDate(toDate time.Time) ApiMixin0_1Request { r.toDate = &toDate return r } -func (r ApiMixin1_1Request) Execute() (*TrendingEnvironmentData, *http.Response, error) { - return r.ApiService.Mixin1_2Execute(r) +func (r ApiMixin0_1Request) Execute() (*TrendingEnvironmentData, *http.Response, error) { + return r.ApiService.Mixin0_2Execute(r) } /* -Mixin1_1 Fetch trending environmental data +Mixin0_1 Fetch trending environmental data The endpoint returns trending environment information (temperature and humidity) for input ibx, zone, cage, sensor @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMixin1_1Request + @return ApiMixin0_1Request */ -func (a *SmartViewEnvironmentApiService) Mixin1_2(ctx context.Context) ApiMixin1_1Request { - return ApiMixin1_1Request{ +func (a *SmartViewEnvironmentApiService) Mixin0_2(ctx context.Context) ApiMixin0_1Request { + return ApiMixin0_1Request{ ApiService: a, ctx: ctx, } @@ -427,7 +427,7 @@ func (a *SmartViewEnvironmentApiService) Mixin1_2(ctx context.Context) ApiMixin1 // Execute executes the request // @return TrendingEnvironmentData -func (a *SmartViewEnvironmentApiService) Mixin1_2Execute(r ApiMixin1_1Request) (*TrendingEnvironmentData, *http.Response, error) { +func (a *SmartViewEnvironmentApiService) Mixin0_2Execute(r ApiMixin0_1Request) (*TrendingEnvironmentData, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -435,7 +435,7 @@ func (a *SmartViewEnvironmentApiService) Mixin1_2Execute(r ApiMixin1_1Request) ( localVarReturnValue *TrendingEnvironmentData ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin1_2") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SmartViewEnvironmentApiService.Mixin0_2") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/services/smartview/api_smart_view_hierarchy_apis.go b/services/smartview/api_smart_view_hierarchy_apis.go index 46f831e7..be056aa9 100644 --- a/services/smartview/api_smart_view_hierarchy_apis.go +++ b/services/smartview/api_smart_view_hierarchy_apis.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/client.go b/services/smartview/client.go index 6a0dbbe8..8219e77e 100644 --- a/services/smartview/client.go +++ b/services/smartview/client.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Smart View Environmental API API v2.0 +// APIClient manages communication with the DCIM Power APIs API v1.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -61,8 +61,6 @@ type APIClient struct { SmartViewEnvironmentApi *SmartViewEnvironmentApiService - SmartViewEnvironmentalApi *SmartViewEnvironmentalApiService - SmartViewHierarchyAPIsApi *SmartViewHierarchyAPIsApiService } @@ -88,7 +86,6 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.DefaultApi = (*DefaultApiService)(&c.common) c.SmartViewAssetsApi = (*SmartViewAssetsApiService)(&c.common) c.SmartViewEnvironmentApi = (*SmartViewEnvironmentApiService)(&c.common) - c.SmartViewEnvironmentalApi = (*SmartViewEnvironmentalApiService)(&c.common) c.SmartViewHierarchyAPIsApi = (*SmartViewHierarchyAPIsApiService)(&c.common) return c diff --git a/services/smartview/configuration.go b/services/smartview/configuration.go index 73f163c3..aa291d89 100644 --- a/services/smartview/configuration.go +++ b/services/smartview/configuration.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/docs/DCIMPowerApi.md b/services/smartview/docs/DCIMPowerApi.md index 16320aa9..13b1e810 100644 --- a/services/smartview/docs/DCIMPowerApi.md +++ b/services/smartview/docs/DCIMPowerApi.md @@ -4,15 +4,15 @@ All URIs are relative to *https://api.equinix.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**Mixin0**](DCIMPowerApi.md#Mixin0) | **Post** /power/v1/current | Fetch current power consumption data -[**Mixin0_0**](DCIMPowerApi.md#Mixin0_0) | **Get** /power/v1/trending | Fetch Trending Power Data. [**PowerV1CurrentGet**](DCIMPowerApi.md#PowerV1CurrentGet) | **Get** /power/v1/current | Fetch current power consumption data +[**PowerV1CurrentPost**](DCIMPowerApi.md#PowerV1CurrentPost) | **Post** /power/v1/current | Fetch current power consumption data +[**PowerV1TrendingGet**](DCIMPowerApi.md#PowerV1TrendingGet) | **Get** /power/v1/trending | Fetch Trending Power Data. -## Mixin0 +## PowerV1CurrentGet -> PowerDataResponseIBX Mixin0(ctx).Authorization(authorization).Body(body).Execute() +> PowerData PowerV1CurrentGet(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() Fetch current power consumption data @@ -32,17 +32,20 @@ import ( func main() { authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. - body := *openapiclient.NewPowerCurrentPostRequest() // PowerCurrentPostRequest | request payload (optional) + accountNo := "accountNo_example" // string | Customer Account Number + ibx := "ibx_example" // string | IBX Code + levelType := openapiclient._power_v1_current_get_levelType_parameter("ibx") // PowerV1CurrentGetLevelTypeParameter | level type allowed value [ibx|cage|cabinet|circuit] + levelValue := "levelValue_example" // string | level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DCIMPowerApi.Mixin0(context.Background()).Authorization(authorization).Body(body).Execute() + resp, r, err := apiClient.DCIMPowerApi.PowerV1CurrentGet(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.Mixin0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.PowerV1CurrentGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin0`: PowerDataResponseIBX - fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.Mixin0`: %v\n", resp) + // response from `PowerV1CurrentGet`: PowerData + fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.PowerV1CurrentGet`: %v\n", resp) } ``` @@ -52,17 +55,20 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin0Request struct via the builder pattern +Other parameters are passed through a pointer to a apiPowerV1CurrentGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | - **body** | [**PowerCurrentPostRequest**](PowerCurrentPostRequest.md) | request payload | + **accountNo** | **string** | Customer Account Number | + **ibx** | **string** | IBX Code | + **levelType** | [**PowerV1CurrentGetLevelTypeParameter**](PowerV1CurrentGetLevelTypeParameter.md) | level type allowed value [ibx|cage|cabinet|circuit] | + **levelValue** | **string** | level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. | ### Return type -[**PowerDataResponseIBX**](PowerDataResponseIBX.md) +[**PowerData**](PowerData.md) ### Authorization @@ -70,7 +76,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -78,11 +84,11 @@ No authorization required [[Back to README]](../README.md) -## Mixin0_0 +## PowerV1CurrentPost -> TrendingPowerData Mixin0_0(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() +> PowerDataResponseIBX PowerV1CurrentPost(ctx).Authorization(authorization).Body(body).Execute() -Fetch Trending Power Data. +Fetch current power consumption data @@ -100,23 +106,17 @@ import ( func main() { authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. - accountNo := "accountNo_example" // string | Customer Account Number - ibx := float32(8.14) // float32 | IBX Code - levelType := openapiclient._power_v1_current_get_levelType_parameter("ibx") // PowerV1CurrentGetLevelTypeParameter | [ibx|cage|cabinet|circuit] - levelValue := "levelValue_example" // string | ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. - interval := "interval_example" // string | [recording|1h|1d] - fromDate := "fromDate_example" // string | timestamp expected to be epoch long ( milliseconds ). - toDate := "toDate_example" // string | timestamp expected to be epoch long ( milliseconds ). + body := *openapiclient.NewPowerCurrentPostRequest() // PowerCurrentPostRequest | request payload (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DCIMPowerApi.Mixin0_0(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + resp, r, err := apiClient.DCIMPowerApi.PowerV1CurrentPost(context.Background()).Authorization(authorization).Body(body).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.Mixin0_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.PowerV1CurrentPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin0_0`: TrendingPowerData - fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.Mixin0_0`: %v\n", resp) + // response from `PowerV1CurrentPost`: PowerDataResponseIBX + fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.PowerV1CurrentPost`: %v\n", resp) } ``` @@ -126,23 +126,17 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin0_1Request struct via the builder pattern +Other parameters are passed through a pointer to a apiPowerV1CurrentPostRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | - **accountNo** | **string** | Customer Account Number | - **ibx** | **float32** | IBX Code | - **levelType** | [**PowerV1CurrentGetLevelTypeParameter**](PowerV1CurrentGetLevelTypeParameter.md) | [ibx|cage|cabinet|circuit] | - **levelValue** | **string** | ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. | - **interval** | **string** | [recording|1h|1d] | - **fromDate** | **string** | timestamp expected to be epoch long ( milliseconds ). | - **toDate** | **string** | timestamp expected to be epoch long ( milliseconds ). | + **body** | [**PowerCurrentPostRequest**](PowerCurrentPostRequest.md) | request payload | ### Return type -[**TrendingPowerData**](TrendingPowerData.md) +[**PowerDataResponseIBX**](PowerDataResponseIBX.md) ### Authorization @@ -150,7 +144,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -158,11 +152,11 @@ No authorization required [[Back to README]](../README.md) -## PowerV1CurrentGet +## PowerV1TrendingGet -> PowerData PowerV1CurrentGet(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() +> TrendingPowerData PowerV1TrendingGet(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() -Fetch current power consumption data +Fetch Trending Power Data. @@ -181,19 +175,22 @@ import ( func main() { authorization := "authorization_example" // string | Specify the OAuth Bearer token with prefix 'Bearer '. accountNo := "accountNo_example" // string | Customer Account Number - ibx := "ibx_example" // string | IBX Code - levelType := openapiclient._power_v1_current_get_levelType_parameter("ibx") // PowerV1CurrentGetLevelTypeParameter | level type allowed value [ibx|cage|cabinet|circuit] - levelValue := "levelValue_example" // string | level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. + ibx := float32(8.14) // float32 | IBX Code + levelType := openapiclient._power_v1_current_get_levelType_parameter("ibx") // PowerV1CurrentGetLevelTypeParameter | [ibx|cage|cabinet|circuit] + levelValue := "levelValue_example" // string | ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. + interval := "interval_example" // string | [recording|1h|1d] + fromDate := "fromDate_example" // string | timestamp expected to be epoch long ( milliseconds ). + toDate := "toDate_example" // string | timestamp expected to be epoch long ( milliseconds ). configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DCIMPowerApi.PowerV1CurrentGet(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() + resp, r, err := apiClient.DCIMPowerApi.PowerV1TrendingGet(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.PowerV1CurrentGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DCIMPowerApi.PowerV1TrendingGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PowerV1CurrentGet`: PowerData - fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.PowerV1CurrentGet`: %v\n", resp) + // response from `PowerV1TrendingGet`: TrendingPowerData + fmt.Fprintf(os.Stdout, "Response from `DCIMPowerApi.PowerV1TrendingGet`: %v\n", resp) } ``` @@ -203,20 +200,23 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiPowerV1CurrentGetRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPowerV1TrendingGetRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **string** | Specify the OAuth Bearer token with prefix 'Bearer '. | **accountNo** | **string** | Customer Account Number | - **ibx** | **string** | IBX Code | - **levelType** | [**PowerV1CurrentGetLevelTypeParameter**](PowerV1CurrentGetLevelTypeParameter.md) | level type allowed value [ibx|cage|cabinet|circuit] | - **levelValue** | **string** | level value - ibx code, cage unique space id, cabinet unique space id, serial number for level type ibx, cage, cabinet, circuit respectively. | + **ibx** | **float32** | IBX Code | + **levelType** | [**PowerV1CurrentGetLevelTypeParameter**](PowerV1CurrentGetLevelTypeParameter.md) | [ibx|cage|cabinet|circuit] | + **levelValue** | **string** | ibx code, cage unique space id, cabinet unique space id and serial number for level type ibx, cage, cabinet and circuit respectively. | + **interval** | **string** | [recording|1h|1d] | + **fromDate** | **string** | timestamp expected to be epoch long ( milliseconds ). | + **toDate** | **string** | timestamp expected to be epoch long ( milliseconds ). | ### Return type -[**PowerData**](PowerData.md) +[**TrendingPowerData**](TrendingPowerData.md) ### Authorization diff --git a/services/smartview/docs/Mixin0DataPointParameter.md b/services/smartview/docs/Mixin0DataPointParameter.md new file mode 100644 index 00000000..c640fffa --- /dev/null +++ b/services/smartview/docs/Mixin0DataPointParameter.md @@ -0,0 +1,13 @@ +# Mixin0DataPointParameter + +## Enum + + +* `TEMPERATURE` (value: `"temperature"`) + +* `HUMIDITY` (value: `"humidity"`) + + +[[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/services/smartview/docs/Mixin0IntervalParameter.md b/services/smartview/docs/Mixin0IntervalParameter.md new file mode 100644 index 00000000..b889f2b0 --- /dev/null +++ b/services/smartview/docs/Mixin0IntervalParameter.md @@ -0,0 +1,15 @@ +# Mixin0IntervalParameter + +## Enum + + +* `READING` (value: `"reading"`) + +* `_1H` (value: `"1h"`) + +* `_1D` (value: `"1d"`) + + +[[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/services/smartview/docs/Mixin0LevelTypeParameter.md b/services/smartview/docs/Mixin0LevelTypeParameter.md new file mode 100644 index 00000000..26c7bb29 --- /dev/null +++ b/services/smartview/docs/Mixin0LevelTypeParameter.md @@ -0,0 +1,17 @@ +# Mixin0LevelTypeParameter + +## Enum + + +* `IBX` (value: `"IBX"`) + +* `ZONE` (value: `"ZONE"`) + +* `CAGE` (value: `"CAGE"`) + +* `SENSOR` (value: `"SENSOR"`) + + +[[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/services/smartview/docs/Pagination.md b/services/smartview/docs/Pagination.md index 1d70d43d..3ef2af6c 100644 --- a/services/smartview/docs/Pagination.md +++ b/services/smartview/docs/Pagination.md @@ -4,17 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Limit** | **int64** | The page size. | -**Next** | Pointer to **string** | Represents a relative link to the next page. This can be empty if there is no next page available. | [optional] -**Offset** | **int64** | The number of elements to skip. | -**Previous** | Pointer to **string** | Represents a relative link to the previous page. This can be empty if there is no previous page available. | [optional] -**Total** | **int64** | The total number of elements in the result set. | +**Limit** | **int32** | limit specifies the maximum limit of items returned | +**Next** | Pointer to **string** | relative URL to the next page, has value only when next page exists | [optional] +**Offset** | **int32** | offset of the first item in the given page | +**Previous** | Pointer to **string** | relative URL to the previous page, has value only when previous page exists | [optional] +**Total** | **int32** | number of total records | ## Methods ### NewPagination -`func NewPagination(limit int64, offset int64, total int64, ) *Pagination` +`func NewPagination(limit int32, offset int32, total int32, ) *Pagination` NewPagination instantiates a new Pagination object This constructor will assign default values to properties that have it defined, @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetLimit -`func (o *Pagination) GetLimit() int64` +`func (o *Pagination) GetLimit() int32` GetLimit returns the Limit field if non-nil, zero value otherwise. ### GetLimitOk -`func (o *Pagination) GetLimitOk() (*int64, bool)` +`func (o *Pagination) GetLimitOk() (*int32, bool)` GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLimit -`func (o *Pagination) SetLimit(v int64)` +`func (o *Pagination) SetLimit(v int32)` SetLimit sets Limit field to given value. @@ -76,20 +76,20 @@ HasNext returns a boolean if a field has been set. ### GetOffset -`func (o *Pagination) GetOffset() int64` +`func (o *Pagination) GetOffset() int32` GetOffset returns the Offset field if non-nil, zero value otherwise. ### GetOffsetOk -`func (o *Pagination) GetOffsetOk() (*int64, bool)` +`func (o *Pagination) GetOffsetOk() (*int32, bool)` GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOffset -`func (o *Pagination) SetOffset(v int64)` +`func (o *Pagination) SetOffset(v int32)` SetOffset sets Offset field to given value. @@ -121,20 +121,20 @@ HasPrevious returns a boolean if a field has been set. ### GetTotal -`func (o *Pagination) GetTotal() int64` +`func (o *Pagination) GetTotal() int32` GetTotal returns the Total field if non-nil, zero value otherwise. ### GetTotalOk -`func (o *Pagination) GetTotalOk() (*int64, bool)` +`func (o *Pagination) GetTotalOk() (*int32, bool)` GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTotal -`func (o *Pagination) SetTotal(v int64)` +`func (o *Pagination) SetTotal(v int32)` SetTotal sets Total field to given value. diff --git a/services/smartview/docs/SmartViewAssetsApi.md b/services/smartview/docs/SmartViewAssetsApi.md index 5353a6fd..be5e8d88 100644 --- a/services/smartview/docs/SmartViewAssetsApi.md +++ b/services/smartview/docs/SmartViewAssetsApi.md @@ -9,8 +9,8 @@ Method | HTTP request | Description [**GetAssetDetails**](SmartViewAssetsApi.md#GetAssetDetails) | **Get** /smartview/v1/asset/details | get details for an asset. [**GetCurrentTagPoint**](SmartViewAssetsApi.md#GetCurrentTagPoint) | **Get** /smartview/v1/asset/tagpoint/current | obtain latest tag point data [**GetTagpointTrending**](SmartViewAssetsApi.md#GetTagpointTrending) | **Get** /smartview/v1/asset/tagpoint/trending | obtain trending tag point data -[**Mixin4**](SmartViewAssetsApi.md#Mixin4) | **Post** /smartview/v1/asset/details | get asset details -[**Mixin4_0**](SmartViewAssetsApi.md#Mixin4_0) | **Post** /smartview/v1/asset/tagpoint/current | get current tag points data +[**Mixin3**](SmartViewAssetsApi.md#Mixin3) | **Post** /smartview/v1/asset/details | get asset details +[**Mixin3_0**](SmartViewAssetsApi.md#Mixin3_0) | **Post** /smartview/v1/asset/tagpoint/current | get current tag points data [**SearchAsset**](SmartViewAssetsApi.md#SearchAsset) | **Get** /smartview/v1/asset/search | Search for Assets matching identifiers @@ -387,9 +387,9 @@ No authorization required [[Back to README]](../README.md) -## Mixin4 +## Mixin3 -> AssetDetailsResponse Mixin4(ctx).Authorization(authorization).Payload(payload).Execute() +> AssetDetailsResponse Mixin3(ctx).Authorization(authorization).Payload(payload).Execute() get asset details @@ -413,13 +413,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SmartViewAssetsApi.Mixin4(context.Background()).Authorization(authorization).Payload(payload).Execute() + resp, r, err := apiClient.SmartViewAssetsApi.Mixin3(context.Background()).Authorization(authorization).Payload(payload).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.Mixin4``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.Mixin3``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin4`: AssetDetailsResponse - fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.Mixin4`: %v\n", resp) + // response from `Mixin3`: AssetDetailsResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.Mixin3`: %v\n", resp) } ``` @@ -429,7 +429,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin4Request struct via the builder pattern +Other parameters are passed through a pointer to a apiMixin3Request struct via the builder pattern Name | Type | Description | Notes @@ -455,9 +455,9 @@ No authorization required [[Back to README]](../README.md) -## Mixin4_0 +## Mixin3_0 -> TagPointData Mixin4_0(ctx).Authorization(authorization).Payload(payload).Execute() +> TagPointData Mixin3_0(ctx).Authorization(authorization).Payload(payload).Execute() get current tag points data @@ -481,13 +481,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SmartViewAssetsApi.Mixin4_0(context.Background()).Authorization(authorization).Payload(payload).Execute() + resp, r, err := apiClient.SmartViewAssetsApi.Mixin3_0(context.Background()).Authorization(authorization).Payload(payload).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.Mixin4_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewAssetsApi.Mixin3_0``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin4_0`: TagPointData - fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.Mixin4_0`: %v\n", resp) + // response from `Mixin3_0`: TagPointData + fmt.Fprintf(os.Stdout, "Response from `SmartViewAssetsApi.Mixin3_0`: %v\n", resp) } ``` @@ -497,7 +497,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin4_1Request struct via the builder pattern +Other parameters are passed through a pointer to a apiMixin3_1Request struct via the builder pattern Name | Type | Description | Notes diff --git a/services/smartview/docs/SmartViewEnvironmentApi.md b/services/smartview/docs/SmartViewEnvironmentApi.md index 32a8be37..c2decc0c 100644 --- a/services/smartview/docs/SmartViewEnvironmentApi.md +++ b/services/smartview/docs/SmartViewEnvironmentApi.md @@ -4,15 +4,15 @@ All URIs are relative to *https://api.equinix.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**Mixin1**](SmartViewEnvironmentApi.md#Mixin1) | **Get** /environment/v1/current | Get current environmental data -[**Mixin1_0**](SmartViewEnvironmentApi.md#Mixin1_0) | **Get** /environment/v1/listCurrent | Fetch list of environmental data -[**Mixin1_1**](SmartViewEnvironmentApi.md#Mixin1_1) | **Get** /environment/v1/trending | Fetch trending environmental data +[**Mixin0**](SmartViewEnvironmentApi.md#Mixin0) | **Get** /environment/v1/current | Get current environmental data +[**Mixin0_0**](SmartViewEnvironmentApi.md#Mixin0_0) | **Get** /environment/v1/listCurrent | Fetch list of environmental data +[**Mixin0_1**](SmartViewEnvironmentApi.md#Mixin0_1) | **Get** /environment/v1/trending | Fetch trending environmental data -## Mixin1 +## Mixin0 -> EnvironmentData Mixin1(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() +> EnvironmentData Mixin0(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() Get current environmental data @@ -34,18 +34,18 @@ func main() { authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. accountNo := "accountNo_example" // string | Customer Account Number ibx := "ibx_example" // string | IBX Code - levelType := openapiclient.Mixin1_levelType_parameter("IBX") // Mixin1LevelTypeParameter | Level Type + levelType := openapiclient.Mixin0_levelType_parameter("IBX") // Mixin0LevelTypeParameter | Level Type levelValue := "levelValue_example" // string | Level Value is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor resp. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin1(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() + resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin0(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).LevelValue(levelValue).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin0``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin1`: EnvironmentData - fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin1`: %v\n", resp) + // response from `Mixin0`: EnvironmentData + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin0`: %v\n", resp) } ``` @@ -55,7 +55,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin1Request struct via the builder pattern +Other parameters are passed through a pointer to a apiMixin0Request struct via the builder pattern Name | Type | Description | Notes @@ -63,7 +63,7 @@ Name | Type | Description | Notes **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | **accountNo** | **string** | Customer Account Number | **ibx** | **string** | IBX Code | - **levelType** | [**Mixin1LevelTypeParameter**](Mixin1LevelTypeParameter.md) | Level Type | + **levelType** | [**Mixin0LevelTypeParameter**](Mixin0LevelTypeParameter.md) | Level Type | **levelValue** | **string** | Level Value is ibxCode, zoneUsID, cageUsID, sensorid for levelType ibx, zone, cage, sensor resp. | ### Return type @@ -84,9 +84,9 @@ No authorization required [[Back to README]](../README.md) -## Mixin1_0 +## Mixin0_0 -> EnvironmentDataResponse Mixin1_0(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).Execute() +> EnvironmentDataResponse Mixin0_0(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).Execute() Fetch list of environmental data @@ -108,17 +108,17 @@ func main() { authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. accountNo := "accountNo_example" // string | Customer Account Number ibx := "ibx_example" // string | IBX Code - levelType := openapiclient.Mixin1_levelType_parameter("IBX") // Mixin1LevelTypeParameter | Level Type + levelType := openapiclient.Mixin0_levelType_parameter("IBX") // Mixin0LevelTypeParameter | Level Type configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin1_0(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).Execute() + resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin0_0(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).LevelType(levelType).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin1_0``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin0_0``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin1_0`: EnvironmentDataResponse - fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin1_0`: %v\n", resp) + // response from `Mixin0_0`: EnvironmentDataResponse + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin0_0`: %v\n", resp) } ``` @@ -128,7 +128,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin1_1Request struct via the builder pattern +Other parameters are passed through a pointer to a apiMixin0_1Request struct via the builder pattern Name | Type | Description | Notes @@ -136,7 +136,7 @@ Name | Type | Description | Notes **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | **accountNo** | **string** | Customer Account Number | **ibx** | **string** | IBX Code | - **levelType** | [**Mixin1LevelTypeParameter**](Mixin1LevelTypeParameter.md) | Level Type | + **levelType** | [**Mixin0LevelTypeParameter**](Mixin0LevelTypeParameter.md) | Level Type | ### Return type @@ -156,9 +156,9 @@ No authorization required [[Back to README]](../README.md) -## Mixin1_1 +## Mixin0_1 -> TrendingEnvironmentData Mixin1_1(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).DataPoint(dataPoint).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() +> TrendingEnvironmentData Mixin0_1(ctx).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).DataPoint(dataPoint).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() Fetch trending environmental data @@ -181,22 +181,22 @@ func main() { authorization := "authorization_example" // string | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. accountNo := "accountNo_example" // string | Customer Account Number ibx := float32(8.14) // float32 | IBX Code - dataPoint := openapiclient.Mixin1_dataPoint_parameter("temperature") // Mixin1DataPointParameter | data point - levelType := openapiclient.Mixin1_levelType_parameter("IBX") // Mixin1LevelTypeParameter | Level Type + dataPoint := openapiclient.Mixin0_dataPoint_parameter("temperature") // Mixin0DataPointParameter | data point + levelType := openapiclient.Mixin0_levelType_parameter("IBX") // Mixin0LevelTypeParameter | Level Type levelValue := "levelValue_example" // string | Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor resp. - interval := openapiclient.Mixin1_interval_parameter("reading") // Mixin1IntervalParameter | + interval := openapiclient.Mixin0_interval_parameter("reading") // Mixin0IntervalParameter | fromDate := time.Now() // time.Time | date in long toDate := time.Now() // time.Time | date in long configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin1_1(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).DataPoint(dataPoint).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() + resp, r, err := apiClient.SmartViewEnvironmentApi.Mixin0_1(context.Background()).Authorization(authorization).AccountNo(accountNo).Ibx(ibx).DataPoint(dataPoint).LevelType(levelType).LevelValue(levelValue).Interval(interval).FromDate(fromDate).ToDate(toDate).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin1_1``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SmartViewEnvironmentApi.Mixin0_1``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Mixin1_1`: TrendingEnvironmentData - fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin1_1`: %v\n", resp) + // response from `Mixin0_1`: TrendingEnvironmentData + fmt.Fprintf(os.Stdout, "Response from `SmartViewEnvironmentApi.Mixin0_1`: %v\n", resp) } ``` @@ -206,7 +206,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiMixin1_2Request struct via the builder pattern +Other parameters are passed through a pointer to a apiMixin0_2Request struct via the builder pattern Name | Type | Description | Notes @@ -214,10 +214,10 @@ Name | Type | Description | Notes **authorization** | **string** | The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. | **accountNo** | **string** | Customer Account Number | **ibx** | **float32** | IBX Code | - **dataPoint** | [**Mixin1DataPointParameter**](Mixin1DataPointParameter.md) | data point | - **levelType** | [**Mixin1LevelTypeParameter**](Mixin1LevelTypeParameter.md) | Level Type | + **dataPoint** | [**Mixin0DataPointParameter**](Mixin0DataPointParameter.md) | data point | + **levelType** | [**Mixin0LevelTypeParameter**](Mixin0LevelTypeParameter.md) | Level Type | **levelValue** | **string** | Level Value is ibxCode, zone, cage, sensorid for levelType ibx, zone, cage, sensor resp. | - **interval** | [**Mixin1IntervalParameter**](Mixin1IntervalParameter.md) | | + **interval** | [**Mixin0IntervalParameter**](Mixin0IntervalParameter.md) | | **fromDate** | **time.Time** | date in long | **toDate** | **time.Time** | date in long | diff --git a/services/smartview/model__power_v1_current_get_level_type_parameter.go b/services/smartview/model__power_v1_current_get_level_type_parameter.go index 91137cbb..79b4a327 100644 --- a/services/smartview/model__power_v1_current_get_level_type_parameter.go +++ b/services/smartview/model__power_v1_current_get_level_type_parameter.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm.go b/services/smartview/model_alarm.go index 0c14839b..b1a92ed0 100644 --- a/services/smartview/model_alarm.go +++ b/services/smartview/model_alarm.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm_asset_details.go b/services/smartview/model_alarm_asset_details.go index 93e0d977..cb7bb93e 100644 --- a/services/smartview/model_alarm_asset_details.go +++ b/services/smartview/model_alarm_asset_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm_current_value_details.go b/services/smartview/model_alarm_current_value_details.go index 99f1e21f..19ccd8a3 100644 --- a/services/smartview/model_alarm_current_value_details.go +++ b/services/smartview/model_alarm_current_value_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm_message_data.go b/services/smartview/model_alarm_message_data.go index 2babe922..16544687 100644 --- a/services/smartview/model_alarm_message_data.go +++ b/services/smartview/model_alarm_message_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm_status_details.go b/services/smartview/model_alarm_status_details.go index a13a406e..d8540ac5 100644 --- a/services/smartview/model_alarm_status_details.go +++ b/services/smartview/model_alarm_status_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm_tag_details.go b/services/smartview/model_alarm_tag_details.go index 2582ca62..488237c9 100644 --- a/services/smartview/model_alarm_tag_details.go +++ b/services/smartview/model_alarm_tag_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alarm_threshold_details.go b/services/smartview/model_alarm_threshold_details.go index 79244f04..84f6ec85 100644 --- a/services/smartview/model_alarm_threshold_details.go +++ b/services/smartview/model_alarm_threshold_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert.go b/services/smartview/model_alert.go index 24d625b3..175e8c1f 100644 --- a/services/smartview/model_alert.go +++ b/services/smartview/model_alert.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_activity_log.go b/services/smartview/model_alert_activity_log.go index 2456a6ad..90e073e5 100644 --- a/services/smartview/model_alert_activity_log.go +++ b/services/smartview/model_alert_activity_log.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_activity_log_obj.go b/services/smartview/model_alert_activity_log_obj.go index d0cf3b79..4f64e9b8 100644 --- a/services/smartview/model_alert_activity_log_obj.go +++ b/services/smartview/model_alert_activity_log_obj.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_asset_details.go b/services/smartview/model_alert_asset_details.go index 31c1035b..8d52fdf3 100644 --- a/services/smartview/model_alert_asset_details.go +++ b/services/smartview/model_alert_asset_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_dto1.go b/services/smartview/model_alert_dto1.go index a907d75b..1322bedc 100644 --- a/services/smartview/model_alert_dto1.go +++ b/services/smartview/model_alert_dto1.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_dto2.go b/services/smartview/model_alert_dto2.go index bca4234e..a38cecd3 100644 --- a/services/smartview/model_alert_dto2.go +++ b/services/smartview/model_alert_dto2.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_message_data.go b/services/smartview/model_alert_message_data.go index ff4981f4..bbddaba9 100644 --- a/services/smartview/model_alert_message_data.go +++ b/services/smartview/model_alert_message_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_obj.go b/services/smartview/model_alert_obj.go index 611b0272..c3d9eca5 100644 --- a/services/smartview/model_alert_obj.go +++ b/services/smartview/model_alert_obj.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_tag_details.go b/services/smartview/model_alert_tag_details.go index ffefdfc0..cbdb8ce1 100644 --- a/services/smartview/model_alert_tag_details.go +++ b/services/smartview/model_alert_tag_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_threshold_details.go b/services/smartview/model_alert_threshold_details.go index d480d12f..af2d7102 100644 --- a/services/smartview/model_alert_threshold_details.go +++ b/services/smartview/model_alert_threshold_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alert_type.go b/services/smartview/model_alert_type.go index b3d202be..462812e9 100644 --- a/services/smartview/model_alert_type.go +++ b/services/smartview/model_alert_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_alerts.go b/services/smartview/model_alerts.go index 48438f43..630bb05b 100644 --- a/services/smartview/model_alerts.go +++ b/services/smartview/model_alerts.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_api_error.go b/services/smartview/model_api_error.go index 4cdf0f81..16f3a2df 100644 --- a/services/smartview/model_api_error.go +++ b/services/smartview/model_api_error.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_api_error_additional_info.go b/services/smartview/model_api_error_additional_info.go index 54def855..a117847a 100644 --- a/services/smartview/model_api_error_additional_info.go +++ b/services/smartview/model_api_error_additional_info.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset.go b/services/smartview/model_asset.go index 42fb5b58..1dfcbcd3 100644 --- a/services/smartview/model_asset.go +++ b/services/smartview/model_asset.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_asset_classification_inner.go b/services/smartview/model_asset_asset_classification_inner.go index bb7d8f10..1e7bc43a 100644 --- a/services/smartview/model_asset_asset_classification_inner.go +++ b/services/smartview/model_asset_asset_classification_inner.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_detail_response.go b/services/smartview/model_asset_detail_response.go index a44dafaa..ee254ae4 100644 --- a/services/smartview/model_asset_detail_response.go +++ b/services/smartview/model_asset_detail_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_detail_response_pay_load.go b/services/smartview/model_asset_detail_response_pay_load.go index 9c7dd3a5..03fb0af8 100644 --- a/services/smartview/model_asset_detail_response_pay_load.go +++ b/services/smartview/model_asset_detail_response_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_detail_response_status.go b/services/smartview/model_asset_detail_response_status.go index dd54af94..2108ef7f 100644 --- a/services/smartview/model_asset_detail_response_status.go +++ b/services/smartview/model_asset_detail_response_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_detail_response_status_type.go b/services/smartview/model_asset_detail_response_status_type.go index bcb455e8..649aacf9 100644 --- a/services/smartview/model_asset_detail_response_status_type.go +++ b/services/smartview/model_asset_detail_response_status_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details.go b/services/smartview/model_asset_details.go index 65c5eac5..96e035d6 100644 --- a/services/smartview/model_asset_details.go +++ b/services/smartview/model_asset_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details_get_response.go b/services/smartview/model_asset_details_get_response.go index 79d848fa..55500e2a 100644 --- a/services/smartview/model_asset_details_get_response.go +++ b/services/smartview/model_asset_details_get_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details_get_response_pay_load.go b/services/smartview/model_asset_details_get_response_pay_load.go index bff21288..3f18d67b 100644 --- a/services/smartview/model_asset_details_get_response_pay_load.go +++ b/services/smartview/model_asset_details_get_response_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details_request.go b/services/smartview/model_asset_details_request.go index 6f27b7a2..604a4294 100644 --- a/services/smartview/model_asset_details_request.go +++ b/services/smartview/model_asset_details_request.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details_response.go b/services/smartview/model_asset_details_response.go index 6c5d2f55..0f102b81 100644 --- a/services/smartview/model_asset_details_response.go +++ b/services/smartview/model_asset_details_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details_response_pay_load.go b/services/smartview/model_asset_details_response_pay_load.go index 3912512b..b11767c8 100644 --- a/services/smartview/model_asset_details_response_pay_load.go +++ b/services/smartview/model_asset_details_response_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_asset_details_tag_point_data.go b/services/smartview/model_asset_details_tag_point_data.go index b1e63418..1a2f52ed 100644 --- a/services/smartview/model_asset_details_tag_point_data.go +++ b/services/smartview/model_asset_details_tag_point_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets.go b/services/smartview/model_assets.go index 0952c152..783f79ab 100644 --- a/services/smartview/model_assets.go +++ b/services/smartview/model_assets.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets_array.go b/services/smartview/model_assets_array.go index 29e7f404..649e2c78 100644 --- a/services/smartview/model_assets_array.go +++ b/services/smartview/model_assets_array.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets_list.go b/services/smartview/model_assets_list.go index 847af45a..df9d3336 100644 --- a/services/smartview/model_assets_list.go +++ b/services/smartview/model_assets_list.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets_list_pay_load.go b/services/smartview/model_assets_list_pay_load.go index e29f2256..1e40e693 100644 --- a/services/smartview/model_assets_list_pay_load.go +++ b/services/smartview/model_assets_list_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets_list_status.go b/services/smartview/model_assets_list_status.go index c960b379..3360fa3d 100644 --- a/services/smartview/model_assets_list_status.go +++ b/services/smartview/model_assets_list_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets_pay_load.go b/services/smartview/model_assets_pay_load.go index 5e7b6d19..9c3022ad 100644 --- a/services/smartview/model_assets_pay_load.go +++ b/services/smartview/model_assets_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_assets_status.go b/services/smartview/model_assets_status.go index 289b7692..e029962d 100644 --- a/services/smartview/model_assets_status.go +++ b/services/smartview/model_assets_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_aws_iot_core_channel_configuration.go b/services/smartview/model_aws_iot_core_channel_configuration.go index 8bef088b..e72ab378 100644 --- a/services/smartview/model_aws_iot_core_channel_configuration.go +++ b/services/smartview/model_aws_iot_core_channel_configuration.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_azure_channel_configuration.go b/services/smartview/model_azure_channel_configuration.go index fbd59b1f..c763a6a8 100644 --- a/services/smartview/model_azure_channel_configuration.go +++ b/services/smartview/model_azure_channel_configuration.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_cabinets.go b/services/smartview/model_cabinets.go index b59d86cb..0695b5c8 100644 --- a/services/smartview/model_cabinets.go +++ b/services/smartview/model_cabinets.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_cabinets_name.go b/services/smartview/model_cabinets_name.go index 39013a89..8145c6eb 100644 --- a/services/smartview/model_cabinets_name.go +++ b/services/smartview/model_cabinets_name.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_cages.go b/services/smartview/model_cages.go index e1af9aff..06c58713 100644 --- a/services/smartview/model_cages.go +++ b/services/smartview/model_cages.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_category.go b/services/smartview/model_category.go index ddc54fdf..230d3fa8 100644 --- a/services/smartview/model_category.go +++ b/services/smartview/model_category.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_channel.go b/services/smartview/model_channel.go index 1ad7e023..1291a492 100644 --- a/services/smartview/model_channel.go +++ b/services/smartview/model_channel.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_channel_channel_type.go b/services/smartview/model_channel_channel_type.go index b1336a0e..bcf85a14 100644 --- a/services/smartview/model_channel_channel_type.go +++ b/services/smartview/model_channel_channel_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_circuits.go b/services/smartview/model_circuits.go index 2d2e6d7a..4dd260c0 100644 --- a/services/smartview/model_circuits.go +++ b/services/smartview/model_circuits.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_circuits_map_with_cage.go b/services/smartview/model_circuits_map_with_cage.go index 1984a38f..1542ea0e 100644 --- a/services/smartview/model_circuits_map_with_cage.go +++ b/services/smartview/model_circuits_map_with_cage.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_circuits_map_with_cage_name.go b/services/smartview/model_circuits_map_with_cage_name.go index 187f4424..47d9b54e 100644 --- a/services/smartview/model_circuits_map_with_cage_name.go +++ b/services/smartview/model_circuits_map_with_cage_name.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_circuits_name.go b/services/smartview/model_circuits_name.go index b43cc404..bdca0232 100644 --- a/services/smartview/model_circuits_name.go +++ b/services/smartview/model_circuits_name.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_circuits_type.go b/services/smartview/model_circuits_type.go index a6f43a7f..e70588ba 100644 --- a/services/smartview/model_circuits_type.go +++ b/services/smartview/model_circuits_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_comparison_data.go b/services/smartview/model_comparison_data.go index 9889ac27..23e51596 100644 --- a/services/smartview/model_comparison_data.go +++ b/services/smartview/model_comparison_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_comparison_data_datapoint.go b/services/smartview/model_comparison_data_datapoint.go index e8f1efbf..5b86192b 100644 --- a/services/smartview/model_comparison_data_datapoint.go +++ b/services/smartview/model_comparison_data_datapoint.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_comparison_data_trend.go b/services/smartview/model_comparison_data_trend.go index 1884e967..8a38f4b4 100644 --- a/services/smartview/model_comparison_data_trend.go +++ b/services/smartview/model_comparison_data_trend.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_conditional_alert.go b/services/smartview/model_conditional_alert.go index 304070f4..a71db466 100644 --- a/services/smartview/model_conditional_alert.go +++ b/services/smartview/model_conditional_alert.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_current_tag_point_request.go b/services/smartview/model_current_tag_point_request.go index 485264bf..f039ef6e 100644 --- a/services/smartview/model_current_tag_point_request.go +++ b/services/smartview/model_current_tag_point_request.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_current_tag_point_response.go b/services/smartview/model_current_tag_point_response.go index 8faf32fb..56273f7c 100644 --- a/services/smartview/model_current_tag_point_response.go +++ b/services/smartview/model_current_tag_point_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_custom_alert.go b/services/smartview/model_custom_alert.go index a0700504..04cf66c5 100644 --- a/services/smartview/model_custom_alert.go +++ b/services/smartview/model_custom_alert.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_customer_assets.go b/services/smartview/model_customer_assets.go index d18e5ad8..4717b125 100644 --- a/services/smartview/model_customer_assets.go +++ b/services/smartview/model_customer_assets.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_data_value.go b/services/smartview/model_data_value.go index dafdeb7e..8516af7b 100644 --- a/services/smartview/model_data_value.go +++ b/services/smartview/model_data_value.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment.go b/services/smartview/model_environment.go index fe7a1f33..9a280072 100644 --- a/services/smartview/model_environment.go +++ b/services/smartview/model_environment.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_asset_details.go b/services/smartview/model_environment_asset_details.go index 9cf17500..5a30e9b0 100644 --- a/services/smartview/model_environment_asset_details.go +++ b/services/smartview/model_environment_asset_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data.go b/services/smartview/model_environment_data.go index c0940e37..81bb2d82 100644 --- a/services/smartview/model_environment_data.go +++ b/services/smartview/model_environment_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data_for_array.go b/services/smartview/model_environment_data_for_array.go index 7d210254..78e198c9 100644 --- a/services/smartview/model_environment_data_for_array.go +++ b/services/smartview/model_environment_data_for_array.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data_pay_load.go b/services/smartview/model_environment_data_pay_load.go index 7772531a..df71d583 100644 --- a/services/smartview/model_environment_data_pay_load.go +++ b/services/smartview/model_environment_data_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data_response.go b/services/smartview/model_environment_data_response.go index 6b5d7468..f72176c7 100644 --- a/services/smartview/model_environment_data_response.go +++ b/services/smartview/model_environment_data_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data_response_pay_load.go b/services/smartview/model_environment_data_response_pay_load.go index 577ffb20..e76676c7 100644 --- a/services/smartview/model_environment_data_response_pay_load.go +++ b/services/smartview/model_environment_data_response_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data_response_status.go b/services/smartview/model_environment_data_response_status.go index 621413cb..a20807e6 100644 --- a/services/smartview/model_environment_data_response_status.go +++ b/services/smartview/model_environment_data_response_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_data_status.go b/services/smartview/model_environment_data_status.go index 4f44473b..3786cacb 100644 --- a/services/smartview/model_environment_data_status.go +++ b/services/smartview/model_environment_data_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_message_data.go b/services/smartview/model_environment_message_data.go index 20905313..5fe46d9e 100644 --- a/services/smartview/model_environment_message_data.go +++ b/services/smartview/model_environment_message_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_tag_details.go b/services/smartview/model_environment_tag_details.go index 781c5a23..c6ecca98 100644 --- a/services/smartview/model_environment_tag_details.go +++ b/services/smartview/model_environment_tag_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environment_value_with_unit.go b/services/smartview/model_environment_value_with_unit.go index 4e394b07..1969b958 100644 --- a/services/smartview/model_environment_value_with_unit.go +++ b/services/smartview/model_environment_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environmental.go b/services/smartview/model_environmental.go index 59e06fa2..15a12082 100644 --- a/services/smartview/model_environmental.go +++ b/services/smartview/model_environmental.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_environmental_level_inner.go b/services/smartview/model_environmental_level_inner.go index d3748812..a37f3e1d 100644 --- a/services/smartview/model_environmental_level_inner.go +++ b/services/smartview/model_environmental_level_inner.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_error.go b/services/smartview/model_error.go index c7650e4f..daf6cd99 100644 --- a/services/smartview/model_error.go +++ b/services/smartview/model_error.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_error_status.go b/services/smartview/model_error_status.go index ba8c16f3..d14fae28 100644 --- a/services/smartview/model_error_status.go +++ b/services/smartview/model_error_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_error_status_type.go b/services/smartview/model_error_status_type.go index 1683dd38..e9bf48a8 100644 --- a/services/smartview/model_error_status_type.go +++ b/services/smartview/model_error_status_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_generic_request.go b/services/smartview/model_generic_request.go index eed7afe8..0b8f1cfd 100644 --- a/services/smartview/model_generic_request.go +++ b/services/smartview/model_generic_request.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_get_asset_classification_parameter.go b/services/smartview/model_get_asset_classification_parameter.go index c69f106c..c9140d5a 100644 --- a/services/smartview/model_get_asset_classification_parameter.go +++ b/services/smartview/model_get_asset_classification_parameter.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_get_subscription_data_message_types_parameter_inner.go b/services/smartview/model_get_subscription_data_message_types_parameter_inner.go index 00bcf213..2b581500 100644 --- a/services/smartview/model_get_subscription_data_message_types_parameter_inner.go +++ b/services/smartview/model_get_subscription_data_message_types_parameter_inner.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_hierarchy_node.go b/services/smartview/model_hierarchy_node.go index 0ff8e508..bd6d08ff 100644 --- a/services/smartview/model_hierarchy_node.go +++ b/services/smartview/model_hierarchy_node.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_hierarchy_node_pay_load.go b/services/smartview/model_hierarchy_node_pay_load.go index 72ac63a0..7c6563de 100644 --- a/services/smartview/model_hierarchy_node_pay_load.go +++ b/services/smartview/model_hierarchy_node_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_message_type.go b/services/smartview/model_message_type.go index 288d78d2..bc43986a 100644 --- a/services/smartview/model_message_type.go +++ b/services/smartview/model_message_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_metered_power.go b/services/smartview/model_metered_power.go index 2b951ce1..10c9f988 100644 --- a/services/smartview/model_metered_power.go +++ b/services/smartview/model_metered_power.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_metered_power_asset_details.go b/services/smartview/model_metered_power_asset_details.go index 2257cc94..22e4e987 100644 --- a/services/smartview/model_metered_power_asset_details.go +++ b/services/smartview/model_metered_power_asset_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_metered_power_message_data.go b/services/smartview/model_metered_power_message_data.go index 5e2132d0..7453a4d1 100644 --- a/services/smartview/model_metered_power_message_data.go +++ b/services/smartview/model_metered_power_message_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_metered_power_tag_details.go b/services/smartview/model_metered_power_tag_details.go index b971513d..536c610f 100644 --- a/services/smartview/model_metered_power_tag_details.go +++ b/services/smartview/model_metered_power_tag_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_metered_power_value_with_unit.go b/services/smartview/model_metered_power_value_with_unit.go index 7ed166b9..94fcbb4b 100644 --- a/services/smartview/model_metered_power_value_with_unit.go +++ b/services/smartview/model_metered_power_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_mixin0_data_point_parameter.go b/services/smartview/model_mixin0_data_point_parameter.go new file mode 100644 index 00000000..3a315eb7 --- /dev/null +++ b/services/smartview/model_mixin0_data_point_parameter.go @@ -0,0 +1,111 @@ +/* +DCIM Power APIs + +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// Mixin0DataPointParameter the model 'Mixin0DataPointParameter' +type Mixin0DataPointParameter string + +// List of Mixin0_dataPoint_parameter +const ( + MIXIN0DATAPOINTPARAMETER_TEMPERATURE Mixin0DataPointParameter = "temperature" + MIXIN0DATAPOINTPARAMETER_HUMIDITY Mixin0DataPointParameter = "humidity" +) + +// All allowed values of Mixin0DataPointParameter enum +var AllowedMixin0DataPointParameterEnumValues = []Mixin0DataPointParameter{ + "temperature", + "humidity", +} + +func (v *Mixin0DataPointParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Mixin0DataPointParameter(value) + for _, existing := range AllowedMixin0DataPointParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Mixin0DataPointParameter", value) +} + +// NewMixin0DataPointParameterFromValue returns a pointer to a valid Mixin0DataPointParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMixin0DataPointParameterFromValue(v string) (*Mixin0DataPointParameter, error) { + ev := Mixin0DataPointParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Mixin0DataPointParameter: valid values are %v", v, AllowedMixin0DataPointParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Mixin0DataPointParameter) IsValid() bool { + for _, existing := range AllowedMixin0DataPointParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Mixin0_dataPoint_parameter value +func (v Mixin0DataPointParameter) Ptr() *Mixin0DataPointParameter { + return &v +} + +type NullableMixin0DataPointParameter struct { + value *Mixin0DataPointParameter + isSet bool +} + +func (v NullableMixin0DataPointParameter) Get() *Mixin0DataPointParameter { + return v.value +} + +func (v *NullableMixin0DataPointParameter) Set(val *Mixin0DataPointParameter) { + v.value = val + v.isSet = true +} + +func (v NullableMixin0DataPointParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableMixin0DataPointParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMixin0DataPointParameter(val *Mixin0DataPointParameter) *NullableMixin0DataPointParameter { + return &NullableMixin0DataPointParameter{value: val, isSet: true} +} + +func (v NullableMixin0DataPointParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMixin0DataPointParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_mixin0_interval_parameter.go b/services/smartview/model_mixin0_interval_parameter.go new file mode 100644 index 00000000..beaf8688 --- /dev/null +++ b/services/smartview/model_mixin0_interval_parameter.go @@ -0,0 +1,113 @@ +/* +DCIM Power APIs + +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// Mixin0IntervalParameter the model 'Mixin0IntervalParameter' +type Mixin0IntervalParameter string + +// List of Mixin0_interval_parameter +const ( + MIXIN0INTERVALPARAMETER_READING Mixin0IntervalParameter = "reading" + MIXIN0INTERVALPARAMETER__1H Mixin0IntervalParameter = "1h" + MIXIN0INTERVALPARAMETER__1D Mixin0IntervalParameter = "1d" +) + +// All allowed values of Mixin0IntervalParameter enum +var AllowedMixin0IntervalParameterEnumValues = []Mixin0IntervalParameter{ + "reading", + "1h", + "1d", +} + +func (v *Mixin0IntervalParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Mixin0IntervalParameter(value) + for _, existing := range AllowedMixin0IntervalParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Mixin0IntervalParameter", value) +} + +// NewMixin0IntervalParameterFromValue returns a pointer to a valid Mixin0IntervalParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMixin0IntervalParameterFromValue(v string) (*Mixin0IntervalParameter, error) { + ev := Mixin0IntervalParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Mixin0IntervalParameter: valid values are %v", v, AllowedMixin0IntervalParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Mixin0IntervalParameter) IsValid() bool { + for _, existing := range AllowedMixin0IntervalParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Mixin0_interval_parameter value +func (v Mixin0IntervalParameter) Ptr() *Mixin0IntervalParameter { + return &v +} + +type NullableMixin0IntervalParameter struct { + value *Mixin0IntervalParameter + isSet bool +} + +func (v NullableMixin0IntervalParameter) Get() *Mixin0IntervalParameter { + return v.value +} + +func (v *NullableMixin0IntervalParameter) Set(val *Mixin0IntervalParameter) { + v.value = val + v.isSet = true +} + +func (v NullableMixin0IntervalParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableMixin0IntervalParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMixin0IntervalParameter(val *Mixin0IntervalParameter) *NullableMixin0IntervalParameter { + return &NullableMixin0IntervalParameter{value: val, isSet: true} +} + +func (v NullableMixin0IntervalParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMixin0IntervalParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_mixin0_level_type_parameter.go b/services/smartview/model_mixin0_level_type_parameter.go new file mode 100644 index 00000000..6c49890c --- /dev/null +++ b/services/smartview/model_mixin0_level_type_parameter.go @@ -0,0 +1,115 @@ +/* +DCIM Power APIs + +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. + +API version: 1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package smartview + +import ( + "encoding/json" + "fmt" +) + +// Mixin0LevelTypeParameter the model 'Mixin0LevelTypeParameter' +type Mixin0LevelTypeParameter string + +// List of Mixin0_levelType_parameter +const ( + MIXIN0LEVELTYPEPARAMETER_IBX Mixin0LevelTypeParameter = "IBX" + MIXIN0LEVELTYPEPARAMETER_ZONE Mixin0LevelTypeParameter = "ZONE" + MIXIN0LEVELTYPEPARAMETER_CAGE Mixin0LevelTypeParameter = "CAGE" + MIXIN0LEVELTYPEPARAMETER_SENSOR Mixin0LevelTypeParameter = "SENSOR" +) + +// All allowed values of Mixin0LevelTypeParameter enum +var AllowedMixin0LevelTypeParameterEnumValues = []Mixin0LevelTypeParameter{ + "IBX", + "ZONE", + "CAGE", + "SENSOR", +} + +func (v *Mixin0LevelTypeParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Mixin0LevelTypeParameter(value) + for _, existing := range AllowedMixin0LevelTypeParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Mixin0LevelTypeParameter", value) +} + +// NewMixin0LevelTypeParameterFromValue returns a pointer to a valid Mixin0LevelTypeParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewMixin0LevelTypeParameterFromValue(v string) (*Mixin0LevelTypeParameter, error) { + ev := Mixin0LevelTypeParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Mixin0LevelTypeParameter: valid values are %v", v, AllowedMixin0LevelTypeParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Mixin0LevelTypeParameter) IsValid() bool { + for _, existing := range AllowedMixin0LevelTypeParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Mixin0_levelType_parameter value +func (v Mixin0LevelTypeParameter) Ptr() *Mixin0LevelTypeParameter { + return &v +} + +type NullableMixin0LevelTypeParameter struct { + value *Mixin0LevelTypeParameter + isSet bool +} + +func (v NullableMixin0LevelTypeParameter) Get() *Mixin0LevelTypeParameter { + return v.value +} + +func (v *NullableMixin0LevelTypeParameter) Set(val *Mixin0LevelTypeParameter) { + v.value = val + v.isSet = true +} + +func (v NullableMixin0LevelTypeParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableMixin0LevelTypeParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMixin0LevelTypeParameter(val *Mixin0LevelTypeParameter) *NullableMixin0LevelTypeParameter { + return &NullableMixin0LevelTypeParameter{value: val, isSet: true} +} + +func (v NullableMixin0LevelTypeParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMixin0LevelTypeParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/services/smartview/model_pagination.go b/services/smartview/model_pagination.go index 7d2a305b..94c8ca7f 100644 --- a/services/smartview/model_pagination.go +++ b/services/smartview/model_pagination.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,18 +18,18 @@ import ( // checks if the Pagination type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Pagination{} -// Pagination Represents pagination component of the paginated response +// Pagination pagination type Pagination struct { - // The page size. - Limit int64 `json:"limit"` - // Represents a relative link to the next page. This can be empty if there is no next page available. + // limit specifies the maximum limit of items returned + Limit int32 `json:"limit"` + // relative URL to the next page, has value only when next page exists Next *string `json:"next,omitempty"` - // The number of elements to skip. - Offset int64 `json:"offset"` - // Represents a relative link to the previous page. This can be empty if there is no previous page available. + // offset of the first item in the given page + Offset int32 `json:"offset"` + // relative URL to the previous page, has value only when previous page exists Previous *string `json:"previous,omitempty"` - // The total number of elements in the result set. - Total int64 `json:"total"` + // number of total records + Total int32 `json:"total"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _Pagination Pagination // 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 NewPagination(limit int64, offset int64, total int64) *Pagination { +func NewPagination(limit int32, offset int32, total int32) *Pagination { this := Pagination{} this.Limit = limit this.Offset = offset @@ -56,9 +56,9 @@ func NewPaginationWithDefaults() *Pagination { } // GetLimit returns the Limit field value -func (o *Pagination) GetLimit() int64 { +func (o *Pagination) GetLimit() int32 { if o == nil { - var ret int64 + var ret int32 return ret } @@ -67,7 +67,7 @@ func (o *Pagination) GetLimit() int64 { // GetLimitOk returns a tuple with the Limit field value // and a boolean to check if the value has been set. -func (o *Pagination) GetLimitOk() (*int64, bool) { +func (o *Pagination) GetLimitOk() (*int32, bool) { if o == nil { return nil, false } @@ -75,7 +75,7 @@ func (o *Pagination) GetLimitOk() (*int64, bool) { } // SetLimit sets field value -func (o *Pagination) SetLimit(v int64) { +func (o *Pagination) SetLimit(v int32) { o.Limit = v } @@ -112,9 +112,9 @@ func (o *Pagination) SetNext(v string) { } // GetOffset returns the Offset field value -func (o *Pagination) GetOffset() int64 { +func (o *Pagination) GetOffset() int32 { if o == nil { - var ret int64 + var ret int32 return ret } @@ -123,7 +123,7 @@ func (o *Pagination) GetOffset() int64 { // GetOffsetOk returns a tuple with the Offset field value // and a boolean to check if the value has been set. -func (o *Pagination) GetOffsetOk() (*int64, bool) { +func (o *Pagination) GetOffsetOk() (*int32, bool) { if o == nil { return nil, false } @@ -131,7 +131,7 @@ func (o *Pagination) GetOffsetOk() (*int64, bool) { } // SetOffset sets field value -func (o *Pagination) SetOffset(v int64) { +func (o *Pagination) SetOffset(v int32) { o.Offset = v } @@ -168,9 +168,9 @@ func (o *Pagination) SetPrevious(v string) { } // GetTotal returns the Total field value -func (o *Pagination) GetTotal() int64 { +func (o *Pagination) GetTotal() int32 { if o == nil { - var ret int64 + var ret int32 return ret } @@ -179,7 +179,7 @@ func (o *Pagination) GetTotal() int64 { // GetTotalOk returns a tuple with the Total field value // and a boolean to check if the value has been set. -func (o *Pagination) GetTotalOk() (*int64, bool) { +func (o *Pagination) GetTotalOk() (*int32, bool) { if o == nil { return nil, false } @@ -187,7 +187,7 @@ func (o *Pagination) GetTotalOk() (*int64, bool) { } // SetTotal sets field value -func (o *Pagination) SetTotal(v int64) { +func (o *Pagination) SetTotal(v int32) { o.Total = v } diff --git a/services/smartview/model_power.go b/services/smartview/model_power.go index 7f2fde60..a7274ff7 100644 --- a/services/smartview/model_power.go +++ b/services/smartview/model_power.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_apparent_power_value_with_unit.go b/services/smartview/model_power_apparent_power_value_with_unit.go index 0ec74891..967604f8 100644 --- a/services/smartview/model_power_apparent_power_value_with_unit.go +++ b/services/smartview/model_power_apparent_power_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_asset_details.go b/services/smartview/model_power_asset_details.go index feb5f35f..0fd1a314 100644 --- a/services/smartview/model_power_asset_details.go +++ b/services/smartview/model_power_asset_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_cabinet_rating_value_with_unit.go b/services/smartview/model_power_cabinet_rating_value_with_unit.go index 79a19880..8ca3dc55 100644 --- a/services/smartview/model_power_cabinet_rating_value_with_unit.go +++ b/services/smartview/model_power_cabinet_rating_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_contractual_power_value_with_unit.go b/services/smartview/model_power_contractual_power_value_with_unit.go index 58772ce4..5681d9d0 100644 --- a/services/smartview/model_power_contractual_power_value_with_unit.go +++ b/services/smartview/model_power_contractual_power_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_current_post_request.go b/services/smartview/model_power_current_post_request.go index 3bbcca30..814cab3d 100644 --- a/services/smartview/model_power_current_post_request.go +++ b/services/smartview/model_power_current_post_request.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_current_post_request_level_type.go b/services/smartview/model_power_current_post_request_level_type.go index 8e30af40..08e2631f 100644 --- a/services/smartview/model_power_current_post_request_level_type.go +++ b/services/smartview/model_power_current_post_request_level_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_current_value_with_unit.go b/services/smartview/model_power_current_value_with_unit.go index 49a7ce11..07101034 100644 --- a/services/smartview/model_power_current_value_with_unit.go +++ b/services/smartview/model_power_current_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data.go b/services/smartview/model_power_data.go index d41035de..8c18b63c 100644 --- a/services/smartview/model_power_data.go +++ b/services/smartview/model_power_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_error.go b/services/smartview/model_power_data_error.go index 224a44b2..16b9744f 100644 --- a/services/smartview/model_power_data_error.go +++ b/services/smartview/model_power_data_error.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_error_status.go b/services/smartview/model_power_data_error_status.go index 108d86fd..38db787e 100644 --- a/services/smartview/model_power_data_error_status.go +++ b/services/smartview/model_power_data_error_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_ibx.go b/services/smartview/model_power_data_ibx.go index 8857f17c..3308ba36 100644 --- a/services/smartview/model_power_data_ibx.go +++ b/services/smartview/model_power_data_ibx.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_pay_load.go b/services/smartview/model_power_data_pay_load.go index d4fd4ee3..c87d8e08 100644 --- a/services/smartview/model_power_data_pay_load.go +++ b/services/smartview/model_power_data_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_pay_load_level_type.go b/services/smartview/model_power_data_pay_load_level_type.go index 9d5361ca..345a9a02 100644 --- a/services/smartview/model_power_data_pay_load_level_type.go +++ b/services/smartview/model_power_data_pay_load_level_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_response_ibx.go b/services/smartview/model_power_data_response_ibx.go index 5cb93011..b6fc75d0 100644 --- a/services/smartview/model_power_data_response_ibx.go +++ b/services/smartview/model_power_data_response_ibx.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_data_response_ibx_pay_load.go b/services/smartview/model_power_data_response_ibx_pay_load.go index 325430ce..91855c98 100644 --- a/services/smartview/model_power_data_response_ibx_pay_load.go +++ b/services/smartview/model_power_data_response_ibx_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_hierarchy_node.go b/services/smartview/model_power_hierarchy_node.go index 64ff2651..7fec8955 100644 --- a/services/smartview/model_power_hierarchy_node.go +++ b/services/smartview/model_power_hierarchy_node.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_hierarchy_node_level_type.go b/services/smartview/model_power_hierarchy_node_level_type.go index 6d3981ab..78256cbc 100644 --- a/services/smartview/model_power_hierarchy_node_level_type.go +++ b/services/smartview/model_power_hierarchy_node_level_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_message.go b/services/smartview/model_power_message.go index f699f378..694e078d 100644 --- a/services/smartview/model_power_message.go +++ b/services/smartview/model_power_message.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_message_data.go b/services/smartview/model_power_message_data.go index 78d460ff..ecf7c590 100644 --- a/services/smartview/model_power_message_data.go +++ b/services/smartview/model_power_message_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go b/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go index 70327b54..592a9ede 100644 --- a/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go +++ b/services/smartview/model_power_peak_last_seven_days_contractual_power_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go b/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go index 2944803f..0976eb5d 100644 --- a/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go +++ b/services/smartview/model_power_peak_last_seven_days_ratio_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_peak_last_seven_days_value_with_unit.go b/services/smartview/model_power_peak_last_seven_days_value_with_unit.go index bdf0e340..ef7cc3fe 100644 --- a/services/smartview/model_power_peak_last_seven_days_value_with_unit.go +++ b/services/smartview/model_power_peak_last_seven_days_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go b/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go index 517d5734..9937ceef 100644 --- a/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go +++ b/services/smartview/model_power_power_consumption_to_contractual_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_power_factor_value_with_unit.go b/services/smartview/model_power_power_factor_value_with_unit.go index d9828fdb..cbef982d 100644 --- a/services/smartview/model_power_power_factor_value_with_unit.go +++ b/services/smartview/model_power_power_factor_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_real_power_value_with_unit.go b/services/smartview/model_power_real_power_value_with_unit.go index 786b69c0..41bff92a 100644 --- a/services/smartview/model_power_real_power_value_with_unit.go +++ b/services/smartview/model_power_real_power_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_sold_current_value_with_unit.go b/services/smartview/model_power_sold_current_value_with_unit.go index e4f63877..6389544a 100644 --- a/services/smartview/model_power_sold_current_value_with_unit.go +++ b/services/smartview/model_power_sold_current_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_power_sold_power_value_with_unit.go b/services/smartview/model_power_sold_power_value_with_unit.go index a765a32c..871ffdb7 100644 --- a/services/smartview/model_power_sold_power_value_with_unit.go +++ b/services/smartview/model_power_sold_power_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_recipients_array.go b/services/smartview/model_recipients_array.go index 00b130a1..18fbd952 100644 --- a/services/smartview/model_recipients_array.go +++ b/services/smartview/model_recipients_array.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_status.go b/services/smartview/model_status.go index b4485639..44da7a32 100644 --- a/services/smartview/model_status.go +++ b/services/smartview/model_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_status_info.go b/services/smartview/model_status_info.go index 3f691125..99be6af6 100644 --- a/services/smartview/model_status_info.go +++ b/services/smartview/model_status_info.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_subscription_data.go b/services/smartview/model_subscription_data.go index bdb06262..869a9d31 100644 --- a/services/smartview/model_subscription_data.go +++ b/services/smartview/model_subscription_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_subscription_request.go b/services/smartview/model_subscription_request.go index 55e3048e..17c01555 100644 --- a/services/smartview/model_subscription_request.go +++ b/services/smartview/model_subscription_request.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_subscription_response.go b/services/smartview/model_subscription_response.go index c13a47d2..a493dda7 100644 --- a/services/smartview/model_subscription_response.go +++ b/services/smartview/model_subscription_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_subscription_response_status.go b/services/smartview/model_subscription_response_status.go index 9e640b72..814f9a45 100644 --- a/services/smartview/model_subscription_response_status.go +++ b/services/smartview/model_subscription_response_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_system_alert.go b/services/smartview/model_system_alert.go index 258b46a8..1d074783 100644 --- a/services/smartview/model_system_alert.go +++ b/services/smartview/model_system_alert.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_details.go b/services/smartview/model_tag_details.go index 6a78c39a..437bfb71 100644 --- a/services/smartview/model_tag_details.go +++ b/services/smartview/model_tag_details.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point.go b/services/smartview/model_tag_point.go index 2216b589..28f79216 100644 --- a/services/smartview/model_tag_point.go +++ b/services/smartview/model_tag_point.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_data.go b/services/smartview/model_tag_point_data.go index bf82df20..378ac41f 100644 --- a/services/smartview/model_tag_point_data.go +++ b/services/smartview/model_tag_point_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_data_array.go b/services/smartview/model_tag_point_data_array.go index 40c7b228..d139757e 100644 --- a/services/smartview/model_tag_point_data_array.go +++ b/services/smartview/model_tag_point_data_array.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_data_array_current.go b/services/smartview/model_tag_point_data_array_current.go index b41434e0..242462cc 100644 --- a/services/smartview/model_tag_point_data_array_current.go +++ b/services/smartview/model_tag_point_data_array_current.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_data_status.go b/services/smartview/model_tag_point_data_status.go index 3f09b6f5..c12aea09 100644 --- a/services/smartview/model_tag_point_data_status.go +++ b/services/smartview/model_tag_point_data_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_message_data.go b/services/smartview/model_tag_point_message_data.go index 0d00c909..883e49f2 100644 --- a/services/smartview/model_tag_point_message_data.go +++ b/services/smartview/model_tag_point_message_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_trending_data.go b/services/smartview/model_tag_point_trending_data.go index 3eeb2862..21aac24e 100644 --- a/services/smartview/model_tag_point_trending_data.go +++ b/services/smartview/model_tag_point_trending_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_trending_response.go b/services/smartview/model_tag_point_trending_response.go index d10af64d..fd0205c4 100644 --- a/services/smartview/model_tag_point_trending_response.go +++ b/services/smartview/model_tag_point_trending_response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_trending_response_pay_load.go b/services/smartview/model_tag_point_trending_response_pay_load.go index 54254139..601c7d72 100644 --- a/services/smartview/model_tag_point_trending_response_pay_load.go +++ b/services/smartview/model_tag_point_trending_response_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_trending_response_pay_load_interval.go b/services/smartview/model_tag_point_trending_response_pay_load_interval.go index c47620d0..8e47d292 100644 --- a/services/smartview/model_tag_point_trending_response_pay_load_interval.go +++ b/services/smartview/model_tag_point_trending_response_pay_load_interval.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_trending_response_status.go b/services/smartview/model_tag_point_trending_response_status.go index 997d59c6..265b0b19 100644 --- a/services/smartview/model_tag_point_trending_response_status.go +++ b/services/smartview/model_tag_point_trending_response_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_tag_point_value_with_unit.go b/services/smartview/model_tag_point_value_with_unit.go index 9d9c54fc..ca63c02a 100644 --- a/services/smartview/model_tag_point_value_with_unit.go +++ b/services/smartview/model_tag_point_value_with_unit.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_template.go b/services/smartview/model_template.go index c9fb111e..8a9e8a38 100644 --- a/services/smartview/model_template.go +++ b/services/smartview/model_template.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_environment_data.go b/services/smartview/model_trending_environment_data.go index 05b29632..13193b5e 100644 --- a/services/smartview/model_trending_environment_data.go +++ b/services/smartview/model_trending_environment_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_environment_data_pay_load.go b/services/smartview/model_trending_environment_data_pay_load.go index 91017944..baa0492b 100644 --- a/services/smartview/model_trending_environment_data_pay_load.go +++ b/services/smartview/model_trending_environment_data_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_power_data.go b/services/smartview/model_trending_power_data.go index c3885cb3..b241910a 100644 --- a/services/smartview/model_trending_power_data.go +++ b/services/smartview/model_trending_power_data.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_power_data_pay_load.go b/services/smartview/model_trending_power_data_pay_load.go index 77595fd1..02dbb5ce 100644 --- a/services/smartview/model_trending_power_data_pay_load.go +++ b/services/smartview/model_trending_power_data_pay_load.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_power_data_pay_load_interval.go b/services/smartview/model_trending_power_data_pay_load_interval.go index 7ae10a44..14100336 100644 --- a/services/smartview/model_trending_power_data_pay_load_interval.go +++ b/services/smartview/model_trending_power_data_pay_load_interval.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_power_data_pay_load_level_type.go b/services/smartview/model_trending_power_data_pay_load_level_type.go index 9aef34f0..dee91bd4 100644 --- a/services/smartview/model_trending_power_data_pay_load_level_type.go +++ b/services/smartview/model_trending_power_data_pay_load_level_type.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_trending_power_data_status.go b/services/smartview/model_trending_power_data_status.go index ea65e065..8e0482b5 100644 --- a/services/smartview/model_trending_power_data_status.go +++ b/services/smartview/model_trending_power_data_status.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/model_webhook_channel_configuration.go b/services/smartview/model_webhook_channel_configuration.go index e8bcd9f4..25749336 100644 --- a/services/smartview/model_webhook_channel_configuration.go +++ b/services/smartview/model_webhook_channel_configuration.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/response.go b/services/smartview/response.go index c6a1260d..a917cf7d 100644 --- a/services/smartview/response.go +++ b/services/smartview/response.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/smartview/utils.go b/services/smartview/utils.go index 188478c9..86d9d832 100644 --- a/services/smartview/utils.go +++ b/services/smartview/utils.go @@ -1,9 +1,9 @@ /* -Smart View Environmental API +DCIM Power APIs -Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. +Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. -API version: 2.0 +API version: 1.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/spec/services/smartview/oas3.fetched/merged-spec.yaml b/spec/services/smartview/oas3.fetched/merged-spec.yaml index 103ee7b0..ba753e81 100644 --- a/spec/services/smartview/oas3.fetched/merged-spec.yaml +++ b/spec/services/smartview/oas3.fetched/merged-spec.yaml @@ -9,16 +9,17 @@ info: contact: name: Equinix API Support url: https://docs.equinix.com/api-support.htm - description: Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + description: | + Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. termsOfService: https://www.equinix.com/about/legal/terms - title: Smart View Environmental API - version: "2.0" + title: DCIM Power APIs + version: "1.0" host: api.equinix.com paths: /environment/v1/current: get: description: The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor) - operationId: Mixin1 + operationId: Mixin0 parameters: - $ref: '#/parameters/authorizationHeader' - description: Customer Account Number @@ -62,7 +63,7 @@ paths: get: description: | The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR - operationId: Mixin1 + operationId: Mixin0 parameters: - $ref: '#/parameters/authorizationHeader' - description: Customer Account Number @@ -100,7 +101,7 @@ paths: /environment/v1/trending: get: description: "The endpoint returns trending environment information (temperature and humidity) for\ninput ibx, zone, cage, sensor \n" - operationId: Mixin1 + operationId: Mixin0 parameters: - $ref: '#/parameters/authorizationHeader' - description: Customer Account Number @@ -220,7 +221,6 @@ paths: post: description: | The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. - operationId: Mixin0 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -249,7 +249,6 @@ paths: get: description: | The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. - operationId: Mixin0 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -472,7 +471,7 @@ paths: - $ref: '#/parameters/authorizationHeader' post: description: This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers. - operationId: Mixin4 + operationId: Mixin3 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -678,7 +677,7 @@ paths: - $ref: '#/parameters/authorizationHeader' post: description: This endpoint fetches the latest read values for given tag points using given tag identifiers. - operationId: Mixin4 + operationId: Mixin3 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -825,92 +824,6 @@ paths: summary: Fetch the Power Hierarchy tags: - Smart View Hierarchy APIs - /smartview/v2/environmental/ibxs/{ibx}/sensors/readings: - get: - description: Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way. - operationId: getSensorReadings - parameters: - - description: IBX where the sensor is located. - in: path - name: ibx - required: true - type: string - x-example: CH2 - - description: Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included - in: query - name: type - type: string - x-example: HUMIDITY - - description: Zone name. Adding this parameter limits the query to sensors in the specified zone - in: query - name: zone - type: string - x-example: CH2:1:06:ColoArea:1 - - default: !!float 0 - description: Results offset you want to retrieve (0..N) - in: query - name: offset - type: integer - - default: !!float 20 - description: Number of records to retrieve per request. - in: query - name: limit - type: integer - - $ref: '#/parameters/authorizationHeader' - produces: - - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/SensorReadingsResponse' - "400": - description: Bad request - "401": - description: Unauthorized - "403": - description: Forbidden - "422": - description: Unprocessable entity - summary: IBX sensors current readings - tags: - - Smart View Environmental - /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings: - get: - description: Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code. - operationId: getSingleSensorReadings - parameters: - - description: IBX where the sensor is located. - in: path - name: ibx - required: true - type: string - x-example: SV2 - - description: Id of sensor to read. - in: path - name: sensorId - required: true - type: string - x-example: CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03 - - $ref: '#/parameters/authorizationHeader' - produces: - - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/Sensor%20reading' - "400": - description: Bad request - "401": - description: Unauthorized - "403": - description: Forbidden - "422": - description: Unprocessable entity - summary: Single sensor current value(s) - tags: - - Smart View Environmental /smartview/v2/streaming/subscriptionData/{subscriptionId}: get: description: obtain API+ near real time data via a simple REST endpoint by employing subscription ID alongside other specified criteria, enabling a comprehensive and targeted approach to data retrieval. Subscription data endpoint works for all channels and not just REST channel. @@ -1106,100 +1019,79 @@ definitions: properties: asset: $ref: '#/definitions/AlarmAssetDetails' - x-order: !!float 12 conditionName: description: condition name example: High type: string - x-order: !!float 5 country: description: country example: FR type: string - x-order: !!float 4 currentValue: $ref: '#/definitions/AlarmCurrentValueDetails' - x-order: !!float 11 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 20 definitionId: description: unique message id example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH type: string - x-order: !!float 10 heartbeat: description: heartbeat example: true type: boolean - x-order: !!float 8 ibx: description: ibx example: IBX type: string - x-order: !!float 1 metro: description: metro example: metro type: string - x-order: !!float 3 normalProcessedTime: description: alarm normal processed time example: 2023-10-03T13:09:32 type: string - x-order: !!float 18 normalTriggeredTime: description: alarm normal triggered time example: 2023-10-03T13:09:32 type: string - x-order: !!float 19 processedTime: description: alarm processed time example: 2023-10-03T13:09:32 type: string - x-order: !!float 17 region: description: region example: EMEA type: string - x-order: !!float 2 severity: description: severity example: !!float 900 format: int32 type: integer - x-order: !!float 6 status: $ref: '#/definitions/AlarmStatusDetails' - x-order: !!float 14 streamId: description: unique message id example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH type: string - x-order: !!float 0 tag: $ref: '#/definitions/AlarmTagDetails' - x-order: !!float 13 threshold: $ref: '#/definitions/AlarmThresholdDetails' - x-order: !!float 15 triggerRule: description: trigger rule example: RULE:123:1 type: string - x-order: !!float 9 triggeredTime: description: alarm triggered time example: 2023-10-03T13:09:32 type: string - x-order: !!float 16 type: description: type example: Absolute type: string - x-order: !!float 7 required: - asset - currentValue @@ -1217,17 +1109,14 @@ definitions: description: asset classification example: Mechanical type: string - x-order: !!float 2 id: description: asset id example: IBX.CRAH-EQ1-04 type: string - x-order: !!float 0 type: description: asset type example: CRAH type: string - x-order: !!float 1 type: object AlarmCurrentValueDetails: description: currentValue details @@ -1236,30 +1125,25 @@ definitions: description: current value type example: Float type: string - x-order: !!float 2 unit: description: current value unit example: '%' type: string - x-order: !!float 0 value: description: current value value example: "35.023" type: string - x-order: !!float 1 type: object AlarmMessageData: description: alarm message data properties: data: $ref: '#/definitions/Alarm' - x-order: !!float 1 type: default: system-alert description: message type example: system-alert type: string - x-order: !!float 0 required: - data - type @@ -1271,22 +1155,18 @@ definitions: description: status acknowledged example: false type: boolean - x-order: !!float 0 acknowledgementTime: description: status acknowledgement time example: 2023-10-03T13:09:32 type: string - x-order: !!float 1 active: description: status active example: true type: boolean - x-order: !!float 3 cleared: description: status cleared example: false type: boolean - x-order: !!float 2 type: object AlarmTagDetails: description: tag details @@ -1295,12 +1175,10 @@ definitions: description: tag display name example: Temperature7 type: string - x-order: !!float 1 id: description: tag id example: IBX.CRAH-EQ1-04:dirtyfilter type: string - x-order: !!float 0 type: object AlarmThresholdDetails: description: threshold details @@ -1309,85 +1187,68 @@ definitions: description: threshold message example: NA type: string - x-order: !!float 2 stateLimit: description: threshold state limit example: "20" type: string - x-order: !!float 1 unit: description: threshold unit example: '%' type: string - x-order: !!float 0 type: object Alert: description: message data properties: asset: $ref: '#/definitions/AlertAssetDetails' - x-order: !!float 9 conditional: description: conditional example: N type: string - x-order: !!float 6 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 13 eventType: description: event type example: Falls below type: string - x-order: !!float 7 heartbeat: description: heartbeat example: true type: boolean - x-order: !!float 8 ibx: description: ibx example: IBX type: string - x-order: !!float 1 id: description: id example: IBX.685306-15843739015670.6640131967865078 type: string - x-order: !!float 3 region: description: region example: APAC type: string - x-order: !!float 2 streamId: description: unique message id example: IBX.685306-15843739015670.6640131967865078 type: string - x-order: !!float 0 tag: $ref: '#/definitions/AlertTagDetails' - x-order: !!float 10 threshold: $ref: '#/definitions/AlertThresholdDetails' - x-order: !!float 11 triggeredTime: description: alert triggered time example: 2023-10-03T13:09:32 type: string - x-order: !!float 12 type: description: type example: power type: string - x-order: !!float 4 typeId: description: type id example: drawAmpFalls type: string - x-order: !!float 5 required: - asset - ibx @@ -1401,10 +1262,8 @@ definitions: items: $ref: '#/definitions/AlertActivityLogObj' type: array - x-order: !!float 0 status: $ref: '#/definitions/status' - x-order: !!float 1 type: object AlertActivityLogObj: properties: @@ -1412,13 +1271,11 @@ definitions: items: $ref: '#/definitions/AlertDto2' type: array - x-order: !!float 0 totalCount: description: totalCount example: "1000" pattern: ^[0-9]{4}$ type: number - x-order: !!float 1 type: object AlertAssetDetails: description: asset details @@ -1427,321 +1284,249 @@ definitions: description: asset classification example: Electrical type: string - x-order: !!float 2 id: description: asset id example: "1.20849261E7" type: string - x-order: !!float 0 type: description: asset type example: CIRCUIT type: string - x-order: !!float 1 type: object AlertDto1: properties: accountNo: example: !!float 3213213 type: string - x-order: !!float 22 alertPaused: description: isAlertPaused example: true type: boolean - x-order: !!float 28 alertType: $ref: '#/definitions/AlertType' type: object - x-order: !!float 2 conditionalAlert: example: test type: string - x-order: !!float 8 country: example: SG type: string - x-order: !!float 26 createdBy: example: test type: string - x-order: !!float 13 createdOn: description: createdOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 14 customerAssets: items: $ref: '#/definitions/CustomerAssets' type: array - x-order: !!float 4 enabledAction: example: Enabled type: string - x-order: !!float 18 formatedSection: example: Power Draw type: string - x-order: !!float 17 heartbeatType: example: off type: string - x-order: !!float 6 ibx: example: CH1 type: string - x-order: !!float 1 id: example: 15476966877480.828 type: string - x-order: !!float 0 infraAssets: items: $ref: '#/definitions/CustomerAssets' type: array - x-order: !!float 5 isDuplicate: example: false type: boolean - x-order: !!float 19 lastTriggeredOn: description: lastTriggeredOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 16 metro: example: SG type: string - x-order: !!float 27 modifiedOn: description: modifiedOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 15 recipients: items: $ref: '#/definitions/recipientsArray' type: array - x-order: !!float 7 region: example: APAC type: string - x-order: !!float 25 section: example: electrical type: string - x-order: !!float 3 status: example: status type: string - x-order: !!float 24 thresholdUnit: example: '%' type: string - x-order: !!float 9 thresholdValue: example: "12" type: string - x-order: !!float 12 thresholdValueMax: example: "12" type: string - x-order: !!float 11 thresholdValueMin: example: "12" type: string - x-order: !!float 10 ucmid: example: ucmid type: string - x-order: !!float 21 uom: example: STANDARD type: string - x-order: !!float 23 userId: example: userId type: string - x-order: !!float 20 type: object AlertDto2: properties: accountNo: example: !!float 115767 type: string - x-order: !!float 12 acknowledge: example: true type: boolean - x-order: !!float 37 affectedCustomerAsset: example: !!float 1069 type: string - x-order: !!float 9 alertType: $ref: '#/definitions/AlertType' type: object - x-order: !!float 5 alertTypeName: example: tempExceeds type: string - x-order: !!float 10 asset: example: SG3 type: string - x-order: !!float 8 assetclassification: example: assetclassification type: string - x-order: !!float 19 assetname: example: SG3 type: string - x-order: !!float 28 assettype: example: IBX type: string - x-order: !!float 16 conditionalAlert: items: $ref: '#/definitions/ConditionalAlert' type: array - x-order: !!float 13 country: example: SG type: string - x-order: !!float 35 createdOn: description: createdOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 3 currentvalue: example: 23.38019323671497 type: string - x-order: !!float 15 eventtype: example: Exceeds type: string - x-order: !!float 18 ibx: example: CH1 type: string - x-order: !!float 2 id: example: 15476966877480.828 type: string - x-order: !!float 0 lastmaintenance: example: !!float 1547008897864 type: string - x-order: !!float 23 metro: example: SG type: string - x-order: !!float 36 modifiedOn: description: modifiedOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 4 notificationType: example: ALERT type: string - x-order: !!float 14 region: example: APAC type: string - x-order: !!float 1 relatedincidents: example: assetclassification type: string - x-order: !!float 20 resiliency: example: off type: string - x-order: !!float 25 section: example: electrical type: string - x-order: !!float 6 severity: example: ALERT type: string - x-order: !!float 24 tagid: example: Temperature type: string - x-order: !!float 17 thresholdUnit: example: '%' type: string - x-order: !!float 31 thresholdValue: example: "12" type: string - x-order: !!float 34 thresholdValueMax: example: "12" type: string - x-order: !!float 33 thresholdValueMin: example: "12" type: string - x-order: !!float 32 timeZone: example: Asia/Singapore type: string - x-order: !!float 30 timeacknowledged: example: !!float 1547008897864 type: string - x-order: !!float 22 timeprocessed: example: off type: string - x-order: !!float 26 timetriggeredMilisec: example: "1547007734678" type: string - x-order: !!float 27 triggeredOn: description: lastTriggeredOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 7 type: example: ALERT type: string - x-order: !!float 21 uom: example: STANDARD type: string - x-order: !!float 29 year: example: !!float 2019 type: string - x-order: !!float 11 type: object AlertMessageData: description: alert message data properties: data: $ref: '#/definitions/Alert' - x-order: !!float 1 type: default: custom-alert description: message type example: custom-alert type: string - x-order: !!float 0 required: - data - type @@ -1752,13 +1537,11 @@ definitions: items: $ref: '#/definitions/AlertDto1' type: array - x-order: !!float 0 totalCount: description: totalCount example: "1000" pattern: ^[0-9]{4}$ type: number - x-order: !!float 1 type: object AlertTagDetails: description: tag details @@ -1767,7 +1550,6 @@ definitions: description: tag id example: IBX.CIRCUIT-EQ1-04:dirtyfilter type: string - x-order: !!float 0 type: object AlertThresholdDetails: description: threshold details @@ -1776,53 +1558,42 @@ definitions: description: threshold max value example: "5" type: string - x-order: !!float 1 minValue: description: threshold min value example: "1" type: string - x-order: !!float 2 unit: description: threshold unit example: Amp type: string - x-order: !!float 0 value: description: threshold value example: "10" type: string - x-order: !!float 3 type: object AlertType: properties: defaultValue: example: "258" type: string - x-order: !!float 5 eventType: example: Exceeds type: string - x-order: !!float 6 id: example: cageDrawExceeds type: string - x-order: !!float 0 tagId: example: "258" type: string - x-order: !!float 4 type: example: value type: string - x-order: !!float 1 unit: example: percentage type: string - x-order: !!float 3 value: example: Cage Draw kVA to Contractual kVA% Exceeds type: string - x-order: !!float 2 type: object Alerts: properties: @@ -1830,48 +1601,38 @@ definitions: items: $ref: '#/definitions/AlertObj' type: array - x-order: !!float 0 status: $ref: '#/definitions/status' - x-order: !!float 1 type: object ApiError: description: ApiError provides information about the occurred error. properties: additionalInfo: $ref: '#/definitions/ApiErrorAdditionalInfo' - x-order: !!float 5 correlationId: example: 06ce37f6-12af-4f47-9d15-e4f8fc77e1c5 type: string - x-order: !!float 2 details: example: The submitted payload does not meet validation criteria. type: string - x-order: !!float 3 errorCode: example: EQIX-ES-5000422 type: string - x-order: !!float 0 errorMessage: example: Unprocessable Entity type: string - x-order: !!float 1 help: example: ' ' type: string - x-order: !!float 4 type: object ApiErrorAdditionalInfo: properties: constraintCode: example: IbxesMustExistOnPaidView type: string - x-order: !!float 0 reason: example: the [PA8] have no access to paid view type: string - x-order: !!float 1 type: object Asset: description: Asset messages provide the latest readings for environmental, electrical, and mechanical assets within an IBX @@ -1879,7 +1640,6 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 assetClassification: description: Asset Classification value if specified, otherwise all allowable classifications items: @@ -1892,7 +1652,6 @@ definitions: minItems: !!float 1 type: array uniqueItems: true - x-order: !!float 2 assetId: items: type: string @@ -1900,13 +1659,11 @@ definitions: minItems: !!float 1 type: array uniqueItems: true - x-order: !!float 3 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 required: - accountNumber - ibx @@ -1920,29 +1677,23 @@ definitions: items: $ref: '#/definitions/AssetDetails' type: array - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetDetails: description: Asset Details includes Tag Points with Data for the asset @@ -1951,53 +1702,43 @@ definitions: description: Datetime when the latest alarm was processed on the asset example: Aug 21,2017 05:52 AM type: string - x-order: !!float 9 alarmLastTriggeredTime: description: Datetime when the latest alarm was triggered on the asset example: Aug 21,2017 04:38 AM type: string - x-order: !!float 8 assetId: description: asset id for the Asset example: CH1.Chiller-1 type: string - x-order: !!float 0 assetType: description: Template Name for the asset example: Cooling type: string - x-order: !!float 1 equipmentModelNumber: description: Equipment Model Number example: SACAC110-3EXX-2A1-16A-010 type: string - x-order: !!float 6 equipmentSerialNumber: description: Equipment Serial Number example: FF0010I233Q1276 type: string - x-order: !!float 7 lastMaintenanceDate: description: Datetime when the machine had its last maintenance example: Aug 03,2016 type: string - x-order: !!float 4 manufacturerName: description: Manufacturer name for the Asset example: SMARDT type: string - x-order: !!float 5 tags: description: List of tag points for the Asset items: $ref: '#/definitions/TagPointDataArray' type: array - x-order: !!float 3 userPrefTimeZone: description: Time zone for the user example: Asia/Katmandu type: string - x-order: !!float 2 type: object AssetDetailsGetResponse: properties: @@ -2007,75 +1748,60 @@ definitions: description: Datetime when the latest alarm was processed on the asset example: Aug 21,2017 05:52 AM type: string - x-order: !!float 9 alarmLastTriggeredTime: description: Datetime when the latest alarm was triggered on the asset example: Aug 21,2017 04:38 AM type: string - x-order: !!float 8 assetId: description: asset id for the Asset example: CH1.Chiller-1 type: string - x-order: !!float 0 assetType: description: Template Name for the asset example: Cooling type: string - x-order: !!float 1 equipmentModelNumber: description: Equipment Model Number example: SACAC110-3EXX-2A1-16A-010 type: string - x-order: !!float 6 equipmentSerialNumber: description: Equipment Serial Number example: FF0010I233Q1276 type: string - x-order: !!float 7 lastMaintenanceDate: description: Datetime when the machine had its last maintenance example: Aug 03,2016 type: string - x-order: !!float 4 manufacturerName: description: Manufacturer name for the Asset example: SMARDT type: string - x-order: !!float 5 tags: description: List of tag points for the Asset items: $ref: '#/definitions/TagPointDataArray' type: array - x-order: !!float 3 userPrefTimeZone: description: Time zone for the user example: Asia/Katmandu type: string - x-order: !!float 2 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetDetailsRequest: allOf: @@ -2095,34 +1821,27 @@ definitions: items: $ref: '#/definitions/AssetDetails' type: array - x-order: !!float 1 totalCount: description: total number of assets that match the request filters example: !!float 1 type: integer - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetDetailsTagPointData: properties: @@ -2130,7 +1849,6 @@ definitions: items: $ref: '#/definitions/TagPointDataArray' type: array - x-order: !!float 0 type: object Assets: properties: @@ -2140,33 +1858,26 @@ definitions: items: $ref: '#/definitions/AssetsArray' type: array - x-order: !!float 1 totalCount: example: !!float 1 type: integer - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages ' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetsArray: properties: @@ -2175,21 +1886,17 @@ definitions: Asset classification is electrical or mechanical example: Electrical type: string - x-order: !!float 3 assetId: description: "The assetid is the circuit number, sensor id, asset id, asset id \nfor type circuit, sensor, electrical and mechanical resp.\n" example: CH1.ASTS-1-2-A type: string - x-order: !!float 0 assetLabel: description: "Asset Label is the Circuit display label, Sensor ID, and Asset ID\nfor types circuit, sensor, electrical and mechanical resp. \n" example: CH1.ASTS-1-2-A type: string - x-order: !!float 2 type: example: ASTS type: string - x-order: !!float 1 type: object AssetsList: properties: @@ -2199,34 +1906,27 @@ definitions: items: $ref: '#/definitions/Category' type: array - x-order: !!float 1 classification: description: asset classification for the Electrical and Mechanical example: Mechanical type: string - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AwsIotCoreChannelConfiguration: description: The configuration for an 'AWS_IOT_CORE' channel @@ -2234,7 +1934,6 @@ definitions: url: example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com type: string - x-order: !!float 0 required: - url type: object @@ -2246,19 +1945,16 @@ definitions: maximum: !!float 20 minimum: !!float 5 type: integer - x-order: !!float 2 numberOfConcurrentCalls: format: int32 maximum: !!float 50 minimum: !!float 20 type: integer - x-order: !!float 1 numberOfRetries: format: int32 maximum: !!float 5 minimum: !!float 1 type: integer - x-order: !!float 0 type: object Cabinets: properties: @@ -2266,16 +1962,13 @@ definitions: items: $ref: '#/definitions/Circuits' type: array - x-order: !!float 2 name: enum: - CH1:05:000430:0105 type: string - x-order: !!float 0 type: example: cabinet type: string - x-order: !!float 1 type: object Cages: properties: @@ -2283,49 +1976,40 @@ definitions: items: $ref: '#/definitions/Cabinets' type: array - x-order: !!float 2 name: description: Cage Unique Space Id example: CH1:05:000430 type: string - x-order: !!float 0 type: description: type of the asset example: cage type: string - x-order: !!float 1 type: object Category: properties: categoryName: example: Cooling type: string - x-order: !!float 1 templates: items: $ref: '#/definitions/Template' type: array - x-order: !!float 0 type: object Channel: description: Subscription can be created using one channel. properties: awsIotCoreChannelConfiguration: $ref: '#/definitions/AwsIotCoreChannelConfiguration' - x-order: !!float 1 azureChannelConfiguration: $ref: '#/definitions/AzureChannelConfiguration' - x-order: !!float 3 channelType: enum: - AWS_IOT_CORE - WEBHOOK - AZURE type: string - x-order: !!float 0 webhookChannelConfiguration: $ref: '#/definitions/WebhookChannelConfiguration' - x-order: !!float 2 type: object Circuits: properties: @@ -2333,12 +2017,10 @@ definitions: enum: - !!float 877484 type: string - x-order: !!float 0 type: enum: - circuit type: string - x-order: !!float 1 type: object CircuitsMapWithCage: properties: @@ -2346,12 +2028,10 @@ definitions: enum: - !!float 877483 type: string - x-order: !!float 0 type: enum: - circuit type: string - x-order: !!float 1 type: object ComparisonData: description: | @@ -2362,27 +2042,22 @@ definitions: enum: - percentageKva type: string - x-order: !!float 0 lastMonth: description: "comparison for the current value of the datapoint with the last \nmonth's value\n" example: -0.184 type: number - x-order: !!float 3 lastQuarter: description: "comparison for the current value of the datapoint with the last \nquarter's value \n" example: 52.434 type: number - x-order: !!float 4 lastWeek: description: "comparison for the current value of the datapoint with last week's \nvalue\n" example: -0.295 type: number - x-order: !!float 2 yesterday: description: "comparison for the current value of the datapoint with yesterday's \nvalue\n" example: 0.147 type: number - x-order: !!float 1 type: object ComparisonData_Trend: description: | @@ -2392,103 +2067,79 @@ definitions: description: datetime. example: "201701010004" type: string - x-order: !!float 0 value: description: trending values example: "0.147" type: string - x-order: !!float 1 type: object ConditionalAlert: properties: affectedCustomerAsset: example: "258" type: string - x-order: !!float 4 alertType: example: "258" type: string - x-order: !!float 8 asset: example: "12" type: string - x-order: !!float 13 assetname: example: "12" type: string - x-order: !!float 20 assettype: example: "12" type: string - x-order: !!float 21 condalerttypeid: example: "12" type: string - x-order: !!float 14 condassetclassification: example: "12" type: string - x-order: !!float 15 condassetid: example: "12" type: string - x-order: !!float 16 condcurrentvalue: example: "12" type: string - x-order: !!float 17 condeventtype: example: "12" type: string - x-order: !!float 18 condtagid: example: "12" type: string - x-order: !!float 19 customerAssets: example: "258" type: string - x-order: !!float 5 ibx: example: SG3 type: string - x-order: !!float 1 infraAssets: example: "258" type: string - x-order: !!float 6 measurementType: example: "258" type: string - x-order: !!float 7 region: example: APAC type: string - x-order: !!float 0 section: example: mechanical type: string - x-order: !!float 3 thresholdUnit: example: '%' type: string - x-order: !!float 9 thresholdValue: example: "12" type: string - x-order: !!float 12 thresholdValueMax: example: "12" type: string - x-order: !!float 11 thresholdValueMin: example: "12" type: string - x-order: !!float 10 uom: example: STANDARD type: string - x-order: !!float 2 type: object CurrentTagPointRequest: description: request object for tagpoint/current POST request @@ -2496,25 +2147,21 @@ definitions: accountNo: description: customer account number type: string - x-order: !!float 0 ibx: description: ibx code type: string - x-order: !!float 2 tagIds: items: description: tag ids type: string maxLength: !!float 1000 type: array - x-order: !!float 1 type: object CurrentTagPointResponse: description: response object for tagpoint/current POST request properties: totalCount: description: total number of current tag point - x-order: !!float 0 type: object CustomAlert: description: Custom Alert messages are sent when user-defined alert conditions become true. The message contains the data point value that triggered the alert. @@ -2522,16 +2169,13 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 user: type: string - x-order: !!float 2 required: - accountNumber - ibx @@ -2542,16 +2186,13 @@ definitions: items: example: "1069" type: array - x-order: !!float 1 assetsName: items: example: SG1:03:A20011 type: array - x-order: !!float 2 type: example: cage type: string - x-order: !!float 0 type: object DataValue: description: This object contains a single reading for the data point. @@ -2560,52 +2201,42 @@ definitions: description: timestamp since epoch. reading timestamp example: "1483977600000" type: string - x-order: !!float 2 modifiers: description: modifiers applicable for the reading value items: example: recorded type: string type: array - x-order: !!float 1 value: description: reading value for the datapoint example: "21.11" type: string - x-order: !!float 0 type: object Environment: description: message data properties: asset: $ref: '#/definitions/EnvironmentAssetDetails' - x-order: !!float 2 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 6 ibx: description: ibx example: IBX type: string - x-order: !!float 1 reading: $ref: '#/definitions/EnvironmentValueWithUnit' - x-order: !!float 3 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 5 streamId: description: unique message id example: IBX.IBX:humidity type: string - x-order: !!float 0 tag: $ref: '#/definitions/EnvironmentTagDetails' - x-order: !!float 4 required: - asset - ibx @@ -2620,12 +2251,10 @@ definitions: description: asset id example: IBX type: string - x-order: !!float 0 level: description: asset level example: IBX type: string - x-order: !!float 1 required: - id - level @@ -2638,79 +2267,63 @@ definitions: description: account number example: "1" type: string - x-order: !!float 1 cabinet: description: cabinet unique space id example: CH1:05:000550:0105 type: string - x-order: !!float 4 cage: description: cage unique space id example: CH1:05:000550 type: string - x-order: !!float 3 humidity: description: current humidity example: "43.00" type: string - x-order: !!float 7 humidityUom: description: unit of measure for humidity example: '%' type: string - x-order: !!float 10 ibx: description: ibx code example: CH1 type: string - x-order: !!float 0 sensor: description: sensor id example: CH1.Colo.CH1_05_000550_0105 type: string - x-order: !!float 5 temperature: description: current temperature example: "20.0" type: string - x-order: !!float 6 temperatureUom: description: unit of measure for temperature values example: °C type: string - x-order: !!float 9 timestamp: description: epoch timestamp when the current reading was read example: "1506665106579" type: string - x-order: !!float 8 zone: description: zone unique space id example: CH1:1:05:ColoArea:2 type: string - x-order: !!float 2 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object EnvironmentDataForArray: properties: @@ -2718,57 +2331,46 @@ definitions: description: account number example: "1" type: string - x-order: !!float 1 cabinet: description: cabinet unique space id example: CH1:05:000550:0105 type: string - x-order: !!float 4 cage: description: cage unique space id example: CH1:05:000550 type: string - x-order: !!float 3 humidity: description: current humidity example: "43.00" type: string - x-order: !!float 7 humidityUom: description: unit of measure for humidity example: '%' type: string - x-order: !!float 10 ibx: description: ibx code example: CH1 type: string - x-order: !!float 0 sensor: description: sensor id example: CH1.Colo.CH1_05_000550_0105 type: string - x-order: !!float 5 temperature: description: current temperature example: "20.0" type: string - x-order: !!float 6 temperatureUom: description: unit of measure for temperature values example: °C type: string - x-order: !!float 9 timestamp: description: epoch timestamp when the current reading was read example: "1506665106579" type: string - x-order: !!float 8 zone: description: zone unique space id example: CH1:1:05:ColoArea:2 type: string - x-order: !!float 2 type: object EnvironmentDataResponse: properties: @@ -2778,47 +2380,38 @@ definitions: items: $ref: '#/definitions/EnvironmentDataForArray' type: array - x-order: !!float 1 totalCount: description: total number of data values example: !!float 1 type: integer - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages ' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object EnvironmentMessageData: description: environment message data properties: data: $ref: '#/definitions/Environment' - x-order: !!float 1 type: default: environmental description: message type example: environmental type: string - x-order: !!float 0 required: - data - type @@ -2830,12 +2423,10 @@ definitions: description: tag display name example: Humidity type: string - x-order: !!float 1 id: description: tag id example: humidity type: string - x-order: !!float 0 required: - id type: object @@ -2846,12 +2437,10 @@ definitions: description: Environmental reading unit example: PERCENT type: string - x-order: !!float 1 value: description: Environmental reading value example: "50.045" type: string - x-order: !!float 0 required: - unit - value @@ -2862,13 +2451,11 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 level: description: This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided. items: @@ -2881,7 +2468,6 @@ definitions: minItems: !!float 1 type: array uniqueItems: true - x-order: !!float 2 required: - accountNumber - ibx @@ -2890,42 +2476,34 @@ definitions: properties: payLoad: type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' example: INTERNAL_ERROR type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' example: "4000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - ERROR type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object GenericRequest: properties: accountNo: description: customer account number type: string - x-order: !!float 0 classification: description: asset classification type: string - x-order: !!float 2 ibx: description: ibx code type: string - x-order: !!float 1 type: object HierarchyNode: properties: @@ -2935,34 +2513,27 @@ definitions: items: $ref: '#/definitions/Cages' type: array - x-order: !!float 0 circuits: items: $ref: '#/definitions/CircuitsMapWithCage' type: array - x-order: !!float 1 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object LocationResponse: items: @@ -2976,37 +2547,31 @@ definitions: items: $ref: '#/definitions/Asset' type: array - x-order: !!float 0 customAlert: description: List of custom alert message type to subscribe items: $ref: '#/definitions/CustomAlert' type: array - x-order: !!float 5 environmental: description: List of environmental message type to subscribe items: $ref: '#/definitions/Environmental' type: array - x-order: !!float 1 meteredPower: description: List of metered power message type to subscribe items: $ref: '#/definitions/MeteredPower' type: array - x-order: !!float 3 power: description: List of power message type to subscribe items: $ref: '#/definitions/PowerMessage' type: array - x-order: !!float 2 systemAlert: description: List of system alert message type to subscribe items: $ref: '#/definitions/SystemAlert' type: array - x-order: !!float 4 type: object MeteredPower: description: message data @@ -3015,46 +2580,36 @@ definitions: description: account number example: "123456" type: string - x-order: !!float 5 asset: $ref: '#/definitions/MeteredPowerAssetDetails' - x-order: !!float 2 cage: description: cage example: IBX:02:021305 type: string - x-order: !!float 3 cageSerialNo: description: cage serial number example: 021305-20604711 type: string - x-order: !!float 4 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 9 ibx: description: ibx example: IBX type: string - x-order: !!float 1 reading: $ref: '#/definitions/MeteredPowerValueWithUnit' - x-order: !!float 7 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 8 streamId: description: unique message id example: IBX.CBM-B1-4-1:kilowattHour type: string - x-order: !!float 0 tag: $ref: '#/definitions/MeteredPowerTagDetails' - x-order: !!float 6 required: - asset - ibx @@ -3069,12 +2624,10 @@ definitions: description: asset id example: IBX.CBM-B1-4-1 type: string - x-order: !!float 0 type: description: asset type example: Customer Billing Meter type: string - x-order: !!float 1 required: - id type: object @@ -3083,13 +2636,11 @@ definitions: properties: data: $ref: '#/definitions/MeteredPower' - x-order: !!float 1 type: default: metered-power description: message type example: metered-power type: string - x-order: !!float 0 required: - data - type @@ -3101,12 +2652,10 @@ definitions: description: tag display name example: kilowattHour type: string - x-order: !!float 1 id: description: tag id example: IBX.CBM-B1-4-1:kilowattHour type: string - x-order: !!float 0 required: - id type: object @@ -3117,35 +2666,38 @@ definitions: description: reading unit example: kWh type: string - x-order: !!float 1 value: description: reading value example: "412568.125" type: string - x-order: !!float 0 required: - value type: object Pagination: - description: Represents pagination component of the paginated response + description: pagination properties: limit: - description: The page size. - format: int64 + description: limit specifies the maximum limit of items returned + example: !!float 100 + format: int32 type: integer next: - description: Represents a relative link to the next page. This can be empty if there is no next page available. + description: relative URL to the next page, has value only when next page exists + example: ?offset=200&limit=100 type: string offset: - description: The number of elements to skip. - format: int64 + description: offset of the first item in the given page + example: !!float 100 + format: int32 type: integer previous: - description: Represents a relative link to the previous page. This can be empty if there is no previous page available. + description: relative URL to the previous page, has value only when previous page exists + example: ?offset=0&limit=100 type: string total: - description: The total number of elements in the result set. - format: int64 + description: number of total records + example: !!float 500 + format: int32 type: integer required: - limit @@ -3159,96 +2711,72 @@ definitions: description: account number example: "123456" type: string - x-order: !!float 5 apparentPower: $ref: '#/definitions/PowerApparentPowerValueWithUnit' - x-order: !!float 10 asset: $ref: '#/definitions/PowerAssetDetails' - x-order: !!float 2 cabinet: description: cabinet example: IBX:01:000Z4Z:0102 type: string - x-order: !!float 4 cabinetRating: $ref: '#/definitions/PowerCabinetRatingValueWithUnit' - x-order: !!float 17 cage: description: cage example: IBX:02:021305 type: string - x-order: !!float 3 circuitType: description: circuit type example: PRIMARY type: string - x-order: !!float 8 contractualPower: $ref: '#/definitions/PowerContractualPowerValueWithUnit' - x-order: !!float 11 current: $ref: '#/definitions/PowerCurrentValueWithUnit' - x-order: !!float 12 description: description: description example: 32-amp 230v Single Phase Primary AC Power type: string - x-order: !!float 6 ibx: description: ibx example: IBX type: string - x-order: !!float 1 lastUpdated: description: last updated time example: 2023-10-03T13:09:32 type: string - x-order: !!float 22 oid: description: oid example: 1.3.6.1.2.1.299.36.10.1099 type: string - x-order: !!float 7 peakLastSevenDays: $ref: '#/definitions/PowerPeakLastSevenDaysValueWithUnit' - x-order: !!float 18 peakLastSevenDaysContractualPower: $ref: '#/definitions/PowerPeakLastSevenDaysContractualPowerValueWithUnit' - x-order: !!float 20 peakLastSevenDaysRatio: $ref: '#/definitions/PowerPeakLastSevenDaysRatioValueWithUnit' - x-order: !!float 19 peakLastSevenDaysTime: description: peak last seven days time example: 2023-10-03T13:09:32 type: string - x-order: !!float 21 powerConsumptionToContractual: $ref: '#/definitions/PowerPowerConsumptionToContractualValueWithUnit' - x-order: !!float 16 powerFactor: $ref: '#/definitions/PowerPowerFactorValueWithUnit' - x-order: !!float 13 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 23 realPower: $ref: '#/definitions/PowerRealPowerValueWithUnit' - x-order: !!float 9 soldCurrent: $ref: '#/definitions/PowerSoldCurrentValueWithUnit' - x-order: !!float 14 soldPower: $ref: '#/definitions/PowerSoldPowerValueWithUnit' - x-order: !!float 15 streamId: description: unique message id example: IBX:140838 type: string - x-order: !!float 0 required: - asset - ibx @@ -3261,12 +2789,10 @@ definitions: description: ApparentPower reading unit example: kVA type: string - x-order: !!float 1 value: description: ApparentPower reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3278,12 +2804,10 @@ definitions: description: asset id example: IBX:140838 type: string - x-order: !!float 0 type: description: asset type example: CIRCUIT type: string - x-order: !!float 1 required: - id - type @@ -3295,12 +2819,10 @@ definitions: description: CabinetRating reading unit example: kVA type: string - x-order: !!float 1 value: description: CabinetRating reading value example: "8.125" type: string - x-order: !!float 0 required: - unit - value @@ -3312,12 +2834,10 @@ definitions: description: ContractualPower reading unit example: kVA type: string - x-order: !!float 1 value: description: ContractualPower reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -3330,12 +2850,10 @@ definitions: description: ' Customer Account Number' example: "1234" type: string - x-order: !!float 0 ibx: description: trending values example: "0.147" type: string - x-order: !!float 1 levelType: description: level type allowed value [ibx|cage|cabinet|circuit] enum: @@ -3345,7 +2863,6 @@ definitions: - circuit example: "0.147" type: string - x-order: !!float 2 type: object PowerCurrentValueWithUnit: description: current details @@ -3354,12 +2871,10 @@ definitions: description: Current reading unit example: A type: string - x-order: !!float 1 value: description: Current reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3372,55 +2887,44 @@ definitions: description: customer account number example: ABC type: string - x-order: !!float 1 amps: description: instantaneous current amp reading on circuits example: !!float 123 type: number - x-order: !!float 6 cabinetRating: description: maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise. example: 341.54 type: number - x-order: !!float 8 comparisonData: $ref: '#/definitions/ComparisonData' - x-order: !!float 11 contractualKva: description: "The maximum power draw contractually allowable in a \nprivate cage. \n" example: 341.54 type: number - x-order: !!float 9 customerName: example: ABC type: string - x-order: !!float 23 ibx: description: ibx code example: ABC type: string - x-order: !!float 0 isAlarm: description: returns boolean based on breakertip alarm example: "true" type: string - x-order: !!float 4 kva: description: power consumption in kva example: 54.402 type: number - x-order: !!float 5 kw: description: "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions \n" example: NA type: string - x-order: !!float 19 lastUpdatedTime: description: | date-time when the latest value was updated (epoc - milliseconds). example: "1497410520000" type: string - x-order: !!float 22 levelType: description: power hierarchy node levelType linked to the power data enum: @@ -3430,87 +2934,69 @@ definitions: - circuit example: ibx type: string - x-order: !!float 2 levelValue: description: power hierarchy node levelValue linked to the power data example: ABC type: string - x-order: !!float 3 peakKvaLastSevenDays: example: 55.296 type: number - x-order: !!float 12 peakKvaLastSevenDaysContractualKva: example: 55.296 type: number - x-order: !!float 14 peakKvaLastSevenDaysPercentage: example: 55.296 type: number - x-order: !!float 13 peakKvaLastSevenDaysTime: example: 55.296 type: integer - x-order: !!float 15 percentageKva: description: calculated field kva / contractualKva example: 341.54 type: number - x-order: !!float 10 powerFactor: description: | The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions example: NA type: string - x-order: !!float 20 primaryKva: description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" example: 28.31 type: number - x-order: !!float 17 readingTime: description: | date-time when the latest value was read in (epoc - milliseconds). example: "1497410400000" type: string - x-order: !!float 21 redundantKva: description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" example: 26.092 type: number - x-order: !!float 18 soldAmps: description: circuit description when the levelType is circuit. Null otherwise. example: !!float 123 type: integer - x-order: !!float 16 soldKva: description: maximum amp draw allowable on a circuit example: 598.349 type: number - x-order: !!float 7 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object PowerDataResponse_IBX: properties: @@ -3520,55 +3006,44 @@ definitions: items: $ref: '#/definitions/PowerData_IBX' type: array - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object PowerData_Error: properties: payLoad: type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: INTERNAL_ERROR type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "4000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - ERROR type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object PowerData_IBX: properties: @@ -3576,56 +3051,45 @@ definitions: description: customer account number example: ABC type: string - x-order: !!float 1 amps: description: instantaneous current amp reading on circuits example: !!float 123 type: number - x-order: !!float 6 cabinetRating: description: maximum kVA draw allowed for the cabinet example: !!float 123 type: number - x-order: !!float 8 comparisonData: $ref: '#/definitions/ComparisonData' - x-order: !!float 11 contractualKva: description: "The maximum power draw contractually allowable in a \nprivate cage. \nexample: 341.54\n" type: number - x-order: !!float 9 customerName: example: ABC type: string - x-order: !!float 23 ibx: description: ibx code example: ABC type: string - x-order: !!float 0 isAlarm: description: returns boolean based on breakertip alarm example: "true" type: string - x-order: !!float 4 kva: description: power consumption in kva example: 54.402 type: number - x-order: !!float 5 kw: description: | measure of real power expressed in kilowatt applicable for ibxs that have capability of energy meter reading|value will be "NA" for AMER and APAC regions example: NA type: string - x-order: !!float 19 lastUpdatedTime: description: | date-time when the latest value was updated (epoc - milliseconds). example: "1497410520000" type: string - x-order: !!float 22 levelType: description: power hierarchy node levelType linked to the power data enum: @@ -3635,65 +3099,52 @@ definitions: - circuit example: ibx type: string - x-order: !!float 2 levelValue: description: power hierarchy node levelValue linked to the power data example: ABC type: string - x-order: !!float 3 peakKvaLastSevenDays: example: 55.296 type: number - x-order: !!float 12 peakKvaLastSevenDaysContractualKva: example: 55.296 type: number - x-order: !!float 14 peakKvaLastSevenDaysPercentage: example: 55.296 type: number - x-order: !!float 13 peakKvaLastSevenDaysTime: example: 55.296 type: integer - x-order: !!float 15 percentageKva: description: calculated field kva / contractualKva example: 15.928 type: number - x-order: !!float 10 powerFactor: description: | The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions example: NA type: string - x-order: !!float 20 primaryKva: description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" example: 28.31 type: number - x-order: !!float 17 readingTime: description: | date-time when the latest value was read in (epoc - milliseconds). example: "1497410400000" type: string - x-order: !!float 21 redundantKva: description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" example: 26.092 type: number - x-order: !!float 18 soldAmps: description: circuit description when the levelType is circuit. Null otherwise. example: !!float 123 type: integer - x-order: !!float 16 soldKva: description: maximum amp draw allowable on a circuit example: 598.349 type: number - x-order: !!float 7 type: object PowerHierarchyNode: properties: @@ -3763,14 +3214,12 @@ definitions: items: $ref: '#/definitions/PowerHierarchyNode' type: array - x-order: !!float 3 label: description: | ibx code, cage unique space id, cabinet unique space id, circuit label for levelType ibx, cage, cabinet, circuit resp. example: XY1 type: string - x-order: !!float 2 levelType: description: "levelType indicates which level in the power hierarchy \ndoes the node belong to.\n" enum: @@ -3780,12 +3229,10 @@ definitions: - circuit example: IBX type: string - x-order: !!float 0 levelValue: description: "ibx code, cage us id, cabinet us id, circuit number for \nlevelType ibx, cage, cabinet, circuit resp.\n" example: XY1 type: string - x-order: !!float 1 type: object PowerMessage: description: Power messages provide the latest power usage data at the circuit-level. @@ -3793,13 +3240,11 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 required: - accountNumber - ibx @@ -3809,13 +3254,11 @@ definitions: properties: data: $ref: '#/definitions/Power' - x-order: !!float 1 type: default: power description: message type example: power type: string - x-order: !!float 0 required: - data - type @@ -3827,12 +3270,10 @@ definitions: description: PeakLastSevenDaysContractualPower reading unit example: kVA type: string - x-order: !!float 1 value: description: PeakLastSevenDaysContractualPower reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -3844,12 +3285,10 @@ definitions: description: PeakLastSevenDaysRatio reading unit example: PERCENT type: string - x-order: !!float 1 value: description: PeakLastSevenDaysRatio reading value example: "48.125" type: string - x-order: !!float 0 required: - unit - value @@ -3861,12 +3300,10 @@ definitions: description: PeakLastSevenDays reading unit example: kVA type: string - x-order: !!float 1 value: description: PeakLastSevenDays reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3878,12 +3315,10 @@ definitions: description: PowerConsumptionToContractual reading unit example: PERCENT type: string - x-order: !!float 1 value: description: PowerConsumptionToContractual reading value example: "68.125" type: string - x-order: !!float 0 required: - unit - value @@ -3895,12 +3330,10 @@ definitions: description: PowerFactor reading unit example: pf type: string - x-order: !!float 1 value: description: PowerFactor reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -3912,12 +3345,10 @@ definitions: description: RealPower reading unit example: kW type: string - x-order: !!float 1 value: description: RealPower reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -3933,12 +3364,10 @@ definitions: description: SoldCurrent reading unit example: A type: string - x-order: !!float 1 value: description: SoldCurrent reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3950,58 +3379,14 @@ definitions: description: SoldPower reading unit example: kVA type: string - x-order: !!float 1 value: description: SoldPower reading value example: "68.125" type: string - x-order: !!float 0 required: - unit - value type: object - Sensor reading: - description: Single environmental sensor reading. - properties: - humidity: - $ref: '#/definitions/ValueWithUnit' - description: 'Sensor reading: humidity' - example: '{ value: 33.3, unit: "%" }' - ibx: - description: The ibx identifier where the sensor is placed. - example: SV2 - type: string - sensorId: - description: The sensor identifier. - example: SV2.Environmental.Colo4-ZoneHumidity1 - type: string - temperature: - $ref: '#/definitions/ValueWithUnit' - description: 'Sensor reading: temperature' - example: '{ value: 23.08, unit: "CELSIUS" }' - zoneId: - description: The zone where the sensor is placed. - example: CH2:1:06:ColoArea:1 - type: string - required: - - ibx - - sensorId - - zoneId - type: object - SensorReadingsResponse: - properties: - data: - description: List of data objects - items: - $ref: '#/definitions/Sensor%20reading' - type: array - pagination: - $ref: '#/definitions/Pagination' - description: Pagination metadata - required: - - data - - pagination - type: object SubscriptionData: properties: alarmMessageData: @@ -4009,40 +3394,33 @@ definitions: items: $ref: '#/definitions/AlarmMessageData' type: array - x-order: !!float 0 alertMessageData: description: alert message data items: $ref: '#/definitions/AlertMessageData' type: array - x-order: !!float 1 environmentMessageData: description: environment message data items: $ref: '#/definitions/EnvironmentMessageData' type: array - x-order: !!float 2 meteredPowerMessageData: description: metered-power message data items: $ref: '#/definitions/MeteredPowerMessageData' type: array - x-order: !!float 3 pagination: $ref: '#/definitions/Pagination' - x-order: !!float 6 powerMessageData: description: power message data items: $ref: '#/definitions/PowerMessageData' type: array - x-order: !!float 4 tagPointMessageData: description: tag-point message data items: $ref: '#/definitions/TagPointMessageData' type: array - x-order: !!float 5 type: object SubscriptionRequest: description: Subscription Request Payload @@ -4050,33 +3428,25 @@ definitions: channel: $ref: '#/definitions/Channel' description: channel - x-order: !!float 1 messageType: $ref: '#/definitions/MessageType' - x-order: !!float 0 type: object SubscriptionResponse: description: Subscription Response properties: channel: $ref: '#/definitions/Channel' - x-order: !!float 3 createdBy: type: string - x-order: !!float 5 createdDateTime: format: date-time type: string - x-order: !!float 6 id: type: string - x-order: !!float 0 messageType: $ref: '#/definitions/MessageType' - x-order: !!float 2 orgId: type: string - x-order: !!float 4 status: enum: - PENDING @@ -4085,14 +3455,11 @@ definitions: - DELETE_IN_PROGRESS - DELETED type: string - x-order: !!float 1 updatedBy: type: string - x-order: !!float 7 updatedDateTime: format: date-time type: string - x-order: !!float 8 type: object SystemAlert: description: System Alert messages are sent when Equinix-defined alert conditions become true. The message contains the data point value that triggered the alert as well as the current value. @@ -4100,13 +3467,11 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 required: - accountNumber - ibx @@ -4118,12 +3483,10 @@ definitions: description: tag display name example: Output Voltage CA type: string - x-order: !!float 1 id: description: tag id example: IBX.ATS-M1-04:outputvoltageca type: string - x-order: !!float 0 required: - id type: object @@ -4134,28 +3497,22 @@ definitions: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 5 ibx: description: ibx example: IBX type: string - x-order: !!float 1 reading: $ref: '#/definitions/TagPointValueWithUnit' - x-order: !!float 3 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 4 streamId: description: unique message id example: IBX.ATS-M1-04:outputvoltageca type: string - x-order: !!float 0 tag: $ref: '#/definitions/TagDetails' - x-order: !!float 2 required: - dataQuality - ibx @@ -4170,27 +3527,22 @@ definitions: items: $ref: '#/definitions/TagPointDataArrayCurrent' type: array - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object TagPointDataArray: description: | @@ -4200,37 +3552,31 @@ definitions: description: "Generic label for the tag point \n" example: OK type: string - x-order: !!float 4 readingTime: description: | date time when the tag point value was read from the device. example: "20170907060449" type: string - x-order: !!float 5 tagDisplayName: description: | Generic label for the tag point example: Evaporator Leaving Water Temperature type: string - x-order: !!float 2 tagId: description: | ID for the tagPoint - Unique Identifier for the Tag Point example: CH1.Chiller-1:evapleavingwatertemperature type: string - x-order: !!float 1 uom: description: | Unit of measure for the data value for the tag point example: °C type: string - x-order: !!float 3 value: description: | Current data value for the tag point example: 4.9 type: string - x-order: !!float 0 type: object TagPointDataArrayCurrent: description: | @@ -4240,44 +3586,37 @@ definitions: description: "date time when the tag point value was read from the device. \n" example: "20170907125336" type: string - x-order: !!float 4 tagDisplayName: description: | Generic label for the tag point example: Evaporator Leaving Water Temperature type: string - x-order: !!float 2 tagId: description: | ID for the tagPoint - Unique Identifier for the Tag Point example: CH1.Chiller-1:evapleavingwatertemperature type: string - x-order: !!float 1 uom: description: | Unit of measure for the data value for the tag point example: °C type: string - x-order: !!float 3 value: description: | Current data value for the tag point example: 4.9 type: string - x-order: !!float 0 type: object TagPointMessageData: description: tag-point message data properties: data: $ref: '#/definitions/TagPoint' - x-order: !!float 1 type: default: tag-point description: message type example: tag-point type: string - x-order: !!float 0 required: - data - type @@ -4288,11 +3627,9 @@ definitions: description: UTC time example: "1504779867508" type: string - x-order: !!float 0 value: example: "0.0" type: string - x-order: !!float 1 type: object TagPointTrendingResponse: properties: @@ -4301,22 +3638,18 @@ definitions: accountNumber: example: "1" type: string - x-order: !!float 0 data: description: trend data of tag items: $ref: '#/definitions/TagPointTrendingData' type: array - x-order: !!float 7 dataType: description: data type of trend data vlaues example: Float type: string - x-order: !!float 6 ibx: example: CH1 type: string - x-order: !!float 1 interval: description: data sampling interval enum: @@ -4326,44 +3659,35 @@ definitions: - 1d example: 1h type: string - x-order: !!float 2 tagDisplayName: description: "the \n" example: Battery Time Remaining type: string - x-order: !!float 5 tagId: description: | the unique identifiers for the tag point ids for which the trending point is requested. example: CH1.UPS-20:batterytimeremaining type: string - x-order: !!float 4 uom: example: s type: string - x-order: !!float 3 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object TagPointValueWithUnit: description: reading details @@ -4372,12 +3696,10 @@ definitions: description: reading unit example: V type: string - x-order: !!float 1 value: description: reading value example: "50.045" type: string - x-order: !!float 0 required: - value type: object @@ -4388,12 +3710,10 @@ definitions: items: $ref: '#/definitions/Asset' type: array - x-order: !!float 0 templateId: description: template id - unique identifier for the template example: Cooling Plant type: string - x-order: !!float 1 type: object TrendingEnvironmentData: properties: @@ -4403,35 +3723,28 @@ definitions: description: customer account num example: "1" type: string - x-order: !!float 1 datapoint: description: data point for which the timeseries data is fetched example: temperature type: string - x-order: !!float 3 ibx: description: ibx code example: CH1 type: string - x-order: !!float 0 interval: description: interval example: reading type: string - x-order: !!float 2 series: description: Time series data for the data point items: $ref: '#/definitions/DataValue' type: array - x-order: !!float 5 uom: description: unit of measure used for the datapoint example: °C type: string - x-order: !!float 4 type: object - x-order: !!float 0 type: object TrendingPowerData: properties: @@ -4440,16 +3753,13 @@ definitions: accountNumber: example: "123456" type: string - x-order: !!float 0 data: items: $ref: '#/definitions/ComparisonData_Trend' type: array - x-order: !!float 5 ibx: example: ABX type: string - x-order: !!float 1 interval: description: serial number enum: @@ -4459,7 +3769,6 @@ definitions: - 1d example: 1h type: string - x-order: !!float 4 levelType: description: power hierarchy node levelType linked to the power data enum: @@ -4468,86 +3777,27 @@ definitions: - cabinet - circuit type: string - x-order: !!float 2 levelValue: description: ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp. example: ABX type: string - x-order: !!float 3 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 - type: object - ValueWithUnit: - description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). - properties: - unit: - description: Unit for value. - example: CELSIUS - type: object - value: - description: Specific value, to be read together with unit. - example: "33.3" - type: object - required: - - unit - - value - type: object - ValueWithUnitDoubleHumidityUnit: - description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). - properties: - unit: - description: Unit for value. - enum: - - PERCENT - example: CELSIUS - type: string - value: - description: Specific value, to be read together with unit. - example: 33.3 - format: double - type: number - required: - - unit - - value - type: object - ValueWithUnitDoubleTemperatureUnit: - description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). - properties: - unit: - description: Unit for value. - enum: - - CELSIUS - - FAHRENHEIT - example: CELSIUS - type: string - value: - description: Specific value, to be read together with unit. - example: 33.3 - format: double - type: number - required: - - unit - - value type: object WebhookChannelConfiguration: description: The configuration for a 'WEBHOOK' channel @@ -4557,27 +3807,22 @@ definitions: maximum: !!float 20 minimum: !!float 5 type: integer - x-order: !!float 4 numberOfConcurrentCalls: format: int32 maximum: !!float 50 minimum: !!float 20 type: integer - x-order: !!float 3 numberOfRetries: format: int32 maximum: !!float 5 minimum: !!float 1 type: integer - x-order: !!float 2 sslCertificate: example: ZkFzZLY1IGRpY31kZXI= type: string - x-order: !!float 0 url: example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com type: string - x-order: !!float 1 required: - url type: object @@ -4586,39 +3831,30 @@ definitions: email: example: true type: boolean - x-order: !!float 8 email_address: example: test type: string - x-order: !!float 2 firstName: example: test type: string - x-order: !!float 0 lastName: example: test type: string - x-order: !!float 1 mobilePhoneCode: example: test type: string - x-order: !!float 3 mobilePhoneNumber: example: test type: string - x-order: !!float 4 self: example: true type: boolean - x-order: !!float 5 sms: example: true type: boolean - x-order: !!float 6 voice: example: true type: boolean - x-order: !!float 7 type: object status: properties: @@ -4626,7 +3862,6 @@ definitions: description: root cause for error example: "null" type: string - x-order: !!float 1 info: properties: code: @@ -4636,20 +3871,16 @@ definitions: minimum: !!float 1000 pattern: ^[0-9]{4}$ type: number - x-order: !!float 0 msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 1 type: object - x-order: !!float 2 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object parameters: authorizationHeader: diff --git a/spec/services/smartview/oas3.fetched/swagger.yaml b/spec/services/smartview/oas3.fetched/swagger.yaml index 7a947d21..21f768be 100644 --- a/spec/services/smartview/oas3.fetched/swagger.yaml +++ b/spec/services/smartview/oas3.fetched/swagger.yaml @@ -9,16 +9,17 @@ info: contact: name: Equinix API Support url: https://docs.equinix.com/api-support.htm - description: Empower yourself with Environmental APIs. The API makes it possible to fetch current environmental data including humidity and temperature for a single sensor (identified by IBX code and sensor ID) or for all the sensors within an IBX (identified by IBX code) in a paginated way. When fetching all sensor readings you can apply additional sort criteria. + description: | + Empower yourself with DCIM Power APIs. Use them to get current and trending information on power consumption by assets. These APIs return the power consumption info for all level values, given a customer account number, IBX and level type of ibx - cage, cabinet or circuit. Trending power data returns the kVA power draw and max allowed (%) for the given asset. termsOfService: https://www.equinix.com/about/legal/terms - title: Smart View Environmental API - version: "2.0" + title: DCIM Power APIs + version: "1.0" host: api.equinix.com paths: /environment/v1/current: get: description: The endpoint returns environment information on temperature and humidity from inputs (ibx, zone, cage, sensor) - operationId: Mixin1 + operationId: Mixin0 parameters: - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. in: header @@ -67,7 +68,7 @@ paths: get: description: | The GET endpoint returns environment info ( humidity and temperature ) for all the values for input level type IBX, ZONE, CAGE, SENSOR - operationId: Mixin1 + operationId: Mixin0 parameters: - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. in: header @@ -110,7 +111,7 @@ paths: /environment/v1/trending: get: description: "The endpoint returns trending environment information (temperature and humidity) for\ninput ibx, zone, cage, sensor \n" - operationId: Mixin1 + operationId: Mixin0 parameters: - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. in: header @@ -235,7 +236,6 @@ paths: post: description: | The powerdata endpoint returns power consumption info for all values of input level type ibx, cage, cabinet or circuit. - operationId: Mixin0 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -264,7 +264,6 @@ paths: get: description: | The trending power data for draw kVA to max allowed (%) for input ibx, cage, cabinet, circuit. - operationId: Mixin0 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -502,7 +501,7 @@ paths: x-prefix: 'Bearer ' post: description: This endpoint returns information about assets details including the assets tag points list for the given multiple asset identifiers. - operationId: Mixin4 + operationId: Mixin3 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -728,7 +727,7 @@ paths: x-prefix: 'Bearer ' post: description: This endpoint fetches the latest read values for given tag points using given tag identifiers. - operationId: Mixin4 + operationId: Mixin3 parameters: - description: Specify the OAuth Bearer token with prefix 'Bearer '. in: header @@ -890,102 +889,6 @@ paths: summary: Fetch the Power Hierarchy tags: - Smart View Hierarchy APIs - /smartview/v2/environmental/ibxs/{ibx}/sensors/readings: - get: - description: Returns current environmental (temperature and humidity) sensor readings for the given IBX code in a paginated way. - operationId: getSensorReadings - parameters: - - description: IBX where the sensor is located. - in: path - name: ibx - required: true - type: string - x-example: CH2 - - description: Type of sensor data to display, e.g. specifying 'HUMIDITY' means only sensor readings with HUMIDITY value will be included - in: query - name: type - type: string - x-example: HUMIDITY - - description: Zone name. Adding this parameter limits the query to sensors in the specified zone - in: query - name: zone - type: string - x-example: CH2:1:06:ColoArea:1 - - default: !!float 0 - description: Results offset you want to retrieve (0..N) - in: query - name: offset - type: integer - - default: !!float 20 - description: Number of records to retrieve per request. - in: query - name: limit - type: integer - - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. - in: header - name: Authorization - required: true - type: string - x-prefix: 'Bearer ' - produces: - - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/SensorReadingsResponse' - "400": - description: Bad request - "401": - description: Unauthorized - "403": - description: Forbidden - "422": - description: Unprocessable entity - summary: IBX sensors current readings - tags: - - Smart View Environmental - /smartview/v2/environmental/ibxs/{ibx}/sensors/{sensorId}/readings: - get: - description: Returns current environmental sensor readings such as temperature and humidity for the given sensor ID and IBX code. - operationId: getSingleSensorReadings - parameters: - - description: IBX where the sensor is located. - in: path - name: ibx - required: true - type: string - x-example: SV2 - - description: Id of sensor to read. - in: path - name: sensorId - required: true - type: string - x-example: CH2.Environmental.MbusColo3Mod5.MOD35.C3TS03 - - description: The OAuth Bearer token. Please add the prefix 'Bearer ' before the token. - in: header - name: Authorization - required: true - type: string - x-prefix: 'Bearer ' - produces: - - application/json - responses: - "200": - description: OK - schema: - $ref: '#/definitions/Sensor%20reading' - "400": - description: Bad request - "401": - description: Unauthorized - "403": - description: Forbidden - "422": - description: Unprocessable entity - summary: Single sensor current value(s) - tags: - - Smart View Environmental /smartview/v2/streaming/subscriptionData/{subscriptionId}: get: description: obtain API+ near real time data via a simple REST endpoint by employing subscription ID alongside other specified criteria, enabling a comprehensive and targeted approach to data retrieval. Subscription data endpoint works for all channels and not just REST channel. @@ -1211,100 +1114,79 @@ definitions: properties: asset: $ref: '#/definitions/AlarmAssetDetails' - x-order: !!float 12 conditionName: description: condition name example: High type: string - x-order: !!float 5 country: description: country example: FR type: string - x-order: !!float 4 currentValue: $ref: '#/definitions/AlarmCurrentValueDetails' - x-order: !!float 11 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 20 definitionId: description: unique message id example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH type: string - x-order: !!float 10 heartbeat: description: heartbeat example: true type: boolean - x-order: !!float 8 ibx: description: ibx example: IBX type: string - x-order: !!float 1 metro: description: metro example: metro type: string - x-order: !!float 3 normalProcessedTime: description: alarm normal processed time example: 2023-10-03T13:09:32 type: string - x-order: !!float 18 normalTriggeredTime: description: alarm normal triggered time example: 2023-10-03T13:09:32 type: string - x-order: !!float 19 processedTime: description: alarm processed time example: 2023-10-03T13:09:32 type: string - x-order: !!float 17 region: description: region example: EMEA type: string - x-order: !!float 2 severity: description: severity example: !!float 900 format: int32 type: integer - x-order: !!float 6 status: $ref: '#/definitions/AlarmStatusDetails' - x-order: !!float 14 streamId: description: unique message id example: IBX.CRAH-EQ1-04:dirtyfilter#ABSOLUTE:HIGH type: string - x-order: !!float 0 tag: $ref: '#/definitions/AlarmTagDetails' - x-order: !!float 13 threshold: $ref: '#/definitions/AlarmThresholdDetails' - x-order: !!float 15 triggerRule: description: trigger rule example: RULE:123:1 type: string - x-order: !!float 9 triggeredTime: description: alarm triggered time example: 2023-10-03T13:09:32 type: string - x-order: !!float 16 type: description: type example: Absolute type: string - x-order: !!float 7 required: - asset - currentValue @@ -1322,17 +1204,14 @@ definitions: description: asset classification example: Mechanical type: string - x-order: !!float 2 id: description: asset id example: IBX.CRAH-EQ1-04 type: string - x-order: !!float 0 type: description: asset type example: CRAH type: string - x-order: !!float 1 type: object AlarmCurrentValueDetails: description: currentValue details @@ -1341,30 +1220,25 @@ definitions: description: current value type example: Float type: string - x-order: !!float 2 unit: description: current value unit example: '%' type: string - x-order: !!float 0 value: description: current value value example: "35.023" type: string - x-order: !!float 1 type: object AlarmMessageData: description: alarm message data properties: data: $ref: '#/definitions/Alarm' - x-order: !!float 1 type: default: system-alert description: message type example: system-alert type: string - x-order: !!float 0 required: - data - type @@ -1376,22 +1250,18 @@ definitions: description: status acknowledged example: false type: boolean - x-order: !!float 0 acknowledgementTime: description: status acknowledgement time example: 2023-10-03T13:09:32 type: string - x-order: !!float 1 active: description: status active example: true type: boolean - x-order: !!float 3 cleared: description: status cleared example: false type: boolean - x-order: !!float 2 type: object AlarmTagDetails: description: tag details @@ -1400,12 +1270,10 @@ definitions: description: tag display name example: Temperature7 type: string - x-order: !!float 1 id: description: tag id example: IBX.CRAH-EQ1-04:dirtyfilter type: string - x-order: !!float 0 type: object AlarmThresholdDetails: description: threshold details @@ -1414,85 +1282,68 @@ definitions: description: threshold message example: NA type: string - x-order: !!float 2 stateLimit: description: threshold state limit example: "20" type: string - x-order: !!float 1 unit: description: threshold unit example: '%' type: string - x-order: !!float 0 type: object Alert: description: message data properties: asset: $ref: '#/definitions/AlertAssetDetails' - x-order: !!float 9 conditional: description: conditional example: N type: string - x-order: !!float 6 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 13 eventType: description: event type example: Falls below type: string - x-order: !!float 7 heartbeat: description: heartbeat example: true type: boolean - x-order: !!float 8 ibx: description: ibx example: IBX type: string - x-order: !!float 1 id: description: id example: IBX.685306-15843739015670.6640131967865078 type: string - x-order: !!float 3 region: description: region example: APAC type: string - x-order: !!float 2 streamId: description: unique message id example: IBX.685306-15843739015670.6640131967865078 type: string - x-order: !!float 0 tag: $ref: '#/definitions/AlertTagDetails' - x-order: !!float 10 threshold: $ref: '#/definitions/AlertThresholdDetails' - x-order: !!float 11 triggeredTime: description: alert triggered time example: 2023-10-03T13:09:32 type: string - x-order: !!float 12 type: description: type example: power type: string - x-order: !!float 4 typeId: description: type id example: drawAmpFalls type: string - x-order: !!float 5 required: - asset - ibx @@ -1506,10 +1357,8 @@ definitions: items: $ref: '#/definitions/AlertActivityLogObj' type: array - x-order: !!float 0 status: $ref: '#/definitions/status' - x-order: !!float 1 type: object AlertActivityLogObj: properties: @@ -1517,13 +1366,11 @@ definitions: items: $ref: '#/definitions/AlertDto2' type: array - x-order: !!float 0 totalCount: description: totalCount example: "1000" pattern: ^[0-9]{4}$ type: number - x-order: !!float 1 type: object AlertAssetDetails: description: asset details @@ -1532,321 +1379,249 @@ definitions: description: asset classification example: Electrical type: string - x-order: !!float 2 id: description: asset id example: "1.20849261E7" type: string - x-order: !!float 0 type: description: asset type example: CIRCUIT type: string - x-order: !!float 1 type: object AlertDto1: properties: accountNo: example: !!float 3213213 type: string - x-order: !!float 22 alertPaused: description: isAlertPaused example: true type: boolean - x-order: !!float 28 alertType: $ref: '#/definitions/AlertType' type: object - x-order: !!float 2 conditionalAlert: example: test type: string - x-order: !!float 8 country: example: SG type: string - x-order: !!float 26 createdBy: example: test type: string - x-order: !!float 13 createdOn: description: createdOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 14 customerAssets: items: $ref: '#/definitions/CustomerAssets' type: array - x-order: !!float 4 enabledAction: example: Enabled type: string - x-order: !!float 18 formatedSection: example: Power Draw type: string - x-order: !!float 17 heartbeatType: example: off type: string - x-order: !!float 6 ibx: example: CH1 type: string - x-order: !!float 1 id: example: 15476966877480.828 type: string - x-order: !!float 0 infraAssets: items: $ref: '#/definitions/CustomerAssets' type: array - x-order: !!float 5 isDuplicate: example: false type: boolean - x-order: !!float 19 lastTriggeredOn: description: lastTriggeredOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 16 metro: example: SG type: string - x-order: !!float 27 modifiedOn: description: modifiedOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 15 recipients: items: $ref: '#/definitions/recipientsArray' type: array - x-order: !!float 7 region: example: APAC type: string - x-order: !!float 25 section: example: electrical type: string - x-order: !!float 3 status: example: status type: string - x-order: !!float 24 thresholdUnit: example: '%' type: string - x-order: !!float 9 thresholdValue: example: "12" type: string - x-order: !!float 12 thresholdValueMax: example: "12" type: string - x-order: !!float 11 thresholdValueMin: example: "12" type: string - x-order: !!float 10 ucmid: example: ucmid type: string - x-order: !!float 21 uom: example: STANDARD type: string - x-order: !!float 23 userId: example: userId type: string - x-order: !!float 20 type: object AlertDto2: properties: accountNo: example: !!float 115767 type: string - x-order: !!float 12 acknowledge: example: true type: boolean - x-order: !!float 37 affectedCustomerAsset: example: !!float 1069 type: string - x-order: !!float 9 alertType: $ref: '#/definitions/AlertType' type: object - x-order: !!float 5 alertTypeName: example: tempExceeds type: string - x-order: !!float 10 asset: example: SG3 type: string - x-order: !!float 8 assetclassification: example: assetclassification type: string - x-order: !!float 19 assetname: example: SG3 type: string - x-order: !!float 28 assettype: example: IBX type: string - x-order: !!float 16 conditionalAlert: items: $ref: '#/definitions/ConditionalAlert' type: array - x-order: !!float 13 country: example: SG type: string - x-order: !!float 35 createdOn: description: createdOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 3 currentvalue: example: 23.38019323671497 type: string - x-order: !!float 15 eventtype: example: Exceeds type: string - x-order: !!float 18 ibx: example: CH1 type: string - x-order: !!float 2 id: example: 15476966877480.828 type: string - x-order: !!float 0 lastmaintenance: example: !!float 1547008897864 type: string - x-order: !!float 23 metro: example: SG type: string - x-order: !!float 36 modifiedOn: description: modifiedOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 4 notificationType: example: ALERT type: string - x-order: !!float 14 region: example: APAC type: string - x-order: !!float 1 relatedincidents: example: assetclassification type: string - x-order: !!float 20 resiliency: example: off type: string - x-order: !!float 25 section: example: electrical type: string - x-order: !!float 6 severity: example: ALERT type: string - x-order: !!float 24 tagid: example: Temperature type: string - x-order: !!float 17 thresholdUnit: example: '%' type: string - x-order: !!float 31 thresholdValue: example: "12" type: string - x-order: !!float 34 thresholdValueMax: example: "12" type: string - x-order: !!float 33 thresholdValueMin: example: "12" type: string - x-order: !!float 32 timeZone: example: Asia/Singapore type: string - x-order: !!float 30 timeacknowledged: example: !!float 1547008897864 type: string - x-order: !!float 22 timeprocessed: example: off type: string - x-order: !!float 26 timetriggeredMilisec: example: "1547007734678" type: string - x-order: !!float 27 triggeredOn: description: lastTriggeredOn example: !!float 1547696687748 pattern: ^[0-9]{4}$ type: number - x-order: !!float 7 type: example: ALERT type: string - x-order: !!float 21 uom: example: STANDARD type: string - x-order: !!float 29 year: example: !!float 2019 type: string - x-order: !!float 11 type: object AlertMessageData: description: alert message data properties: data: $ref: '#/definitions/Alert' - x-order: !!float 1 type: default: custom-alert description: message type example: custom-alert type: string - x-order: !!float 0 required: - data - type @@ -1857,13 +1632,11 @@ definitions: items: $ref: '#/definitions/AlertDto1' type: array - x-order: !!float 0 totalCount: description: totalCount example: "1000" pattern: ^[0-9]{4}$ type: number - x-order: !!float 1 type: object AlertTagDetails: description: tag details @@ -1872,7 +1645,6 @@ definitions: description: tag id example: IBX.CIRCUIT-EQ1-04:dirtyfilter type: string - x-order: !!float 0 type: object AlertThresholdDetails: description: threshold details @@ -1881,53 +1653,42 @@ definitions: description: threshold max value example: "5" type: string - x-order: !!float 1 minValue: description: threshold min value example: "1" type: string - x-order: !!float 2 unit: description: threshold unit example: Amp type: string - x-order: !!float 0 value: description: threshold value example: "10" type: string - x-order: !!float 3 type: object AlertType: properties: defaultValue: example: "258" type: string - x-order: !!float 5 eventType: example: Exceeds type: string - x-order: !!float 6 id: example: cageDrawExceeds type: string - x-order: !!float 0 tagId: example: "258" type: string - x-order: !!float 4 type: example: value type: string - x-order: !!float 1 unit: example: percentage type: string - x-order: !!float 3 value: example: Cage Draw kVA to Contractual kVA% Exceeds type: string - x-order: !!float 2 type: object Alerts: properties: @@ -1935,48 +1696,38 @@ definitions: items: $ref: '#/definitions/AlertObj' type: array - x-order: !!float 0 status: $ref: '#/definitions/status' - x-order: !!float 1 type: object ApiError: description: ApiError provides information about the occurred error. properties: additionalInfo: $ref: '#/definitions/ApiErrorAdditionalInfo' - x-order: !!float 5 correlationId: example: 06ce37f6-12af-4f47-9d15-e4f8fc77e1c5 type: string - x-order: !!float 2 details: example: The submitted payload does not meet validation criteria. type: string - x-order: !!float 3 errorCode: example: EQIX-ES-5000422 type: string - x-order: !!float 0 errorMessage: example: Unprocessable Entity type: string - x-order: !!float 1 help: example: ' ' type: string - x-order: !!float 4 type: object ApiErrorAdditionalInfo: properties: constraintCode: example: IbxesMustExistOnPaidView type: string - x-order: !!float 0 reason: example: the [PA8] have no access to paid view type: string - x-order: !!float 1 type: object Asset: description: Asset messages provide the latest readings for environmental, electrical, and mechanical assets within an IBX @@ -1984,7 +1735,6 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 assetClassification: description: Asset Classification value if specified, otherwise all allowable classifications items: @@ -1997,7 +1747,6 @@ definitions: minItems: !!float 1 type: array uniqueItems: true - x-order: !!float 2 assetId: items: type: string @@ -2005,13 +1754,11 @@ definitions: minItems: !!float 1 type: array uniqueItems: true - x-order: !!float 3 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 required: - accountNumber - ibx @@ -2025,29 +1772,23 @@ definitions: items: $ref: '#/definitions/AssetDetails' type: array - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetDetails: description: Asset Details includes Tag Points with Data for the asset @@ -2056,53 +1797,43 @@ definitions: description: Datetime when the latest alarm was processed on the asset example: Aug 21,2017 05:52 AM type: string - x-order: !!float 9 alarmLastTriggeredTime: description: Datetime when the latest alarm was triggered on the asset example: Aug 21,2017 04:38 AM type: string - x-order: !!float 8 assetId: description: asset id for the Asset example: CH1.Chiller-1 type: string - x-order: !!float 0 assetType: description: Template Name for the asset example: Cooling type: string - x-order: !!float 1 equipmentModelNumber: description: Equipment Model Number example: SACAC110-3EXX-2A1-16A-010 type: string - x-order: !!float 6 equipmentSerialNumber: description: Equipment Serial Number example: FF0010I233Q1276 type: string - x-order: !!float 7 lastMaintenanceDate: description: Datetime when the machine had its last maintenance example: Aug 03,2016 type: string - x-order: !!float 4 manufacturerName: description: Manufacturer name for the Asset example: SMARDT type: string - x-order: !!float 5 tags: description: List of tag points for the Asset items: $ref: '#/definitions/TagPointDataArray' type: array - x-order: !!float 3 userPrefTimeZone: description: Time zone for the user example: Asia/Katmandu type: string - x-order: !!float 2 type: object AssetDetailsGetResponse: properties: @@ -2112,75 +1843,60 @@ definitions: description: Datetime when the latest alarm was processed on the asset example: Aug 21,2017 05:52 AM type: string - x-order: !!float 9 alarmLastTriggeredTime: description: Datetime when the latest alarm was triggered on the asset example: Aug 21,2017 04:38 AM type: string - x-order: !!float 8 assetId: description: asset id for the Asset example: CH1.Chiller-1 type: string - x-order: !!float 0 assetType: description: Template Name for the asset example: Cooling type: string - x-order: !!float 1 equipmentModelNumber: description: Equipment Model Number example: SACAC110-3EXX-2A1-16A-010 type: string - x-order: !!float 6 equipmentSerialNumber: description: Equipment Serial Number example: FF0010I233Q1276 type: string - x-order: !!float 7 lastMaintenanceDate: description: Datetime when the machine had its last maintenance example: Aug 03,2016 type: string - x-order: !!float 4 manufacturerName: description: Manufacturer name for the Asset example: SMARDT type: string - x-order: !!float 5 tags: description: List of tag points for the Asset items: $ref: '#/definitions/TagPointDataArray' type: array - x-order: !!float 3 userPrefTimeZone: description: Time zone for the user example: Asia/Katmandu type: string - x-order: !!float 2 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetDetailsRequest: allOf: @@ -2200,34 +1916,27 @@ definitions: items: $ref: '#/definitions/AssetDetails' type: array - x-order: !!float 1 totalCount: description: total number of assets that match the request filters example: !!float 1 type: integer - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetDetailsTagPointData: properties: @@ -2235,7 +1944,6 @@ definitions: items: $ref: '#/definitions/TagPointDataArray' type: array - x-order: !!float 0 type: object Assets: properties: @@ -2245,33 +1953,26 @@ definitions: items: $ref: '#/definitions/AssetsArray' type: array - x-order: !!float 1 totalCount: example: !!float 1 type: integer - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages ' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AssetsArray: properties: @@ -2280,21 +1981,17 @@ definitions: Asset classification is electrical or mechanical example: Electrical type: string - x-order: !!float 3 assetId: description: "The assetid is the circuit number, sensor id, asset id, asset id \nfor type circuit, sensor, electrical and mechanical resp.\n" example: CH1.ASTS-1-2-A type: string - x-order: !!float 0 assetLabel: description: "Asset Label is the Circuit display label, Sensor ID, and Asset ID\nfor types circuit, sensor, electrical and mechanical resp. \n" example: CH1.ASTS-1-2-A type: string - x-order: !!float 2 type: example: ASTS type: string - x-order: !!float 1 type: object AssetsList: properties: @@ -2304,34 +2001,27 @@ definitions: items: $ref: '#/definitions/Category' type: array - x-order: !!float 1 classification: description: asset classification for the Electrical and Mechanical example: Mechanical type: string - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object AwsIotCoreChannelConfiguration: description: The configuration for an 'AWS_IOT_CORE' channel @@ -2339,7 +2029,6 @@ definitions: url: example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com type: string - x-order: !!float 0 required: - url type: object @@ -2351,19 +2040,16 @@ definitions: maximum: !!float 20 minimum: !!float 5 type: integer - x-order: !!float 2 numberOfConcurrentCalls: format: int32 maximum: !!float 50 minimum: !!float 20 type: integer - x-order: !!float 1 numberOfRetries: format: int32 maximum: !!float 5 minimum: !!float 1 type: integer - x-order: !!float 0 type: object Cabinets: properties: @@ -2371,16 +2057,13 @@ definitions: items: $ref: '#/definitions/Circuits' type: array - x-order: !!float 2 name: enum: - CH1:05:000430:0105 type: string - x-order: !!float 0 type: example: cabinet type: string - x-order: !!float 1 type: object Cages: properties: @@ -2388,49 +2071,40 @@ definitions: items: $ref: '#/definitions/Cabinets' type: array - x-order: !!float 2 name: description: Cage Unique Space Id example: CH1:05:000430 type: string - x-order: !!float 0 type: description: type of the asset example: cage type: string - x-order: !!float 1 type: object Category: properties: categoryName: example: Cooling type: string - x-order: !!float 1 templates: items: $ref: '#/definitions/Template' type: array - x-order: !!float 0 type: object Channel: description: Subscription can be created using one channel. properties: awsIotCoreChannelConfiguration: $ref: '#/definitions/AwsIotCoreChannelConfiguration' - x-order: !!float 1 azureChannelConfiguration: $ref: '#/definitions/AzureChannelConfiguration' - x-order: !!float 3 channelType: enum: - AWS_IOT_CORE - WEBHOOK - AZURE type: string - x-order: !!float 0 webhookChannelConfiguration: $ref: '#/definitions/WebhookChannelConfiguration' - x-order: !!float 2 type: object Circuits: properties: @@ -2438,12 +2112,10 @@ definitions: enum: - !!float 877484 type: string - x-order: !!float 0 type: enum: - circuit type: string - x-order: !!float 1 type: object CircuitsMapWithCage: properties: @@ -2451,12 +2123,10 @@ definitions: enum: - !!float 877483 type: string - x-order: !!float 0 type: enum: - circuit type: string - x-order: !!float 1 type: object ComparisonData: description: | @@ -2467,27 +2137,22 @@ definitions: enum: - percentageKva type: string - x-order: !!float 0 lastMonth: description: "comparison for the current value of the datapoint with the last \nmonth's value\n" example: -0.184 type: number - x-order: !!float 3 lastQuarter: description: "comparison for the current value of the datapoint with the last \nquarter's value \n" example: 52.434 type: number - x-order: !!float 4 lastWeek: description: "comparison for the current value of the datapoint with last week's \nvalue\n" example: -0.295 type: number - x-order: !!float 2 yesterday: description: "comparison for the current value of the datapoint with yesterday's \nvalue\n" example: 0.147 type: number - x-order: !!float 1 type: object ComparisonData_Trend: description: | @@ -2497,103 +2162,79 @@ definitions: description: datetime. example: "201701010004" type: string - x-order: !!float 0 value: description: trending values example: "0.147" type: string - x-order: !!float 1 type: object ConditionalAlert: properties: affectedCustomerAsset: example: "258" type: string - x-order: !!float 4 alertType: example: "258" type: string - x-order: !!float 8 asset: example: "12" type: string - x-order: !!float 13 assetname: example: "12" type: string - x-order: !!float 20 assettype: example: "12" type: string - x-order: !!float 21 condalerttypeid: example: "12" type: string - x-order: !!float 14 condassetclassification: example: "12" type: string - x-order: !!float 15 condassetid: example: "12" type: string - x-order: !!float 16 condcurrentvalue: example: "12" type: string - x-order: !!float 17 condeventtype: example: "12" type: string - x-order: !!float 18 condtagid: example: "12" type: string - x-order: !!float 19 customerAssets: example: "258" type: string - x-order: !!float 5 ibx: example: SG3 type: string - x-order: !!float 1 infraAssets: example: "258" type: string - x-order: !!float 6 measurementType: example: "258" type: string - x-order: !!float 7 region: example: APAC type: string - x-order: !!float 0 section: example: mechanical type: string - x-order: !!float 3 thresholdUnit: example: '%' type: string - x-order: !!float 9 thresholdValue: example: "12" type: string - x-order: !!float 12 thresholdValueMax: example: "12" type: string - x-order: !!float 11 thresholdValueMin: example: "12" type: string - x-order: !!float 10 uom: example: STANDARD type: string - x-order: !!float 2 type: object CurrentTagPointRequest: description: request object for tagpoint/current POST request @@ -2601,25 +2242,21 @@ definitions: accountNo: description: customer account number type: string - x-order: !!float 0 ibx: description: ibx code type: string - x-order: !!float 2 tagIds: items: description: tag ids type: string maxLength: !!float 1000 type: array - x-order: !!float 1 type: object CurrentTagPointResponse: description: response object for tagpoint/current POST request properties: totalCount: description: total number of current tag point - x-order: !!float 0 type: object CustomAlert: description: Custom Alert messages are sent when user-defined alert conditions become true. The message contains the data point value that triggered the alert. @@ -2627,16 +2264,13 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 user: type: string - x-order: !!float 2 required: - accountNumber - ibx @@ -2647,16 +2281,13 @@ definitions: items: example: "1069" type: array - x-order: !!float 1 assetsName: items: example: SG1:03:A20011 type: array - x-order: !!float 2 type: example: cage type: string - x-order: !!float 0 type: object DataValue: description: This object contains a single reading for the data point. @@ -2665,52 +2296,42 @@ definitions: description: timestamp since epoch. reading timestamp example: "1483977600000" type: string - x-order: !!float 2 modifiers: description: modifiers applicable for the reading value items: example: recorded type: string type: array - x-order: !!float 1 value: description: reading value for the datapoint example: "21.11" type: string - x-order: !!float 0 type: object Environment: description: message data properties: asset: $ref: '#/definitions/EnvironmentAssetDetails' - x-order: !!float 2 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 6 ibx: description: ibx example: IBX type: string - x-order: !!float 1 reading: $ref: '#/definitions/EnvironmentValueWithUnit' - x-order: !!float 3 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 5 streamId: description: unique message id example: IBX.IBX:humidity type: string - x-order: !!float 0 tag: $ref: '#/definitions/EnvironmentTagDetails' - x-order: !!float 4 required: - asset - ibx @@ -2725,12 +2346,10 @@ definitions: description: asset id example: IBX type: string - x-order: !!float 0 level: description: asset level example: IBX type: string - x-order: !!float 1 required: - id - level @@ -2743,79 +2362,63 @@ definitions: description: account number example: "1" type: string - x-order: !!float 1 cabinet: description: cabinet unique space id example: CH1:05:000550:0105 type: string - x-order: !!float 4 cage: description: cage unique space id example: CH1:05:000550 type: string - x-order: !!float 3 humidity: description: current humidity example: "43.00" type: string - x-order: !!float 7 humidityUom: description: unit of measure for humidity example: '%' type: string - x-order: !!float 10 ibx: description: ibx code example: CH1 type: string - x-order: !!float 0 sensor: description: sensor id example: CH1.Colo.CH1_05_000550_0105 type: string - x-order: !!float 5 temperature: description: current temperature example: "20.0" type: string - x-order: !!float 6 temperatureUom: description: unit of measure for temperature values example: °C type: string - x-order: !!float 9 timestamp: description: epoch timestamp when the current reading was read example: "1506665106579" type: string - x-order: !!float 8 zone: description: zone unique space id example: CH1:1:05:ColoArea:2 type: string - x-order: !!float 2 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object EnvironmentDataForArray: properties: @@ -2823,57 +2426,46 @@ definitions: description: account number example: "1" type: string - x-order: !!float 1 cabinet: description: cabinet unique space id example: CH1:05:000550:0105 type: string - x-order: !!float 4 cage: description: cage unique space id example: CH1:05:000550 type: string - x-order: !!float 3 humidity: description: current humidity example: "43.00" type: string - x-order: !!float 7 humidityUom: description: unit of measure for humidity example: '%' type: string - x-order: !!float 10 ibx: description: ibx code example: CH1 type: string - x-order: !!float 0 sensor: description: sensor id example: CH1.Colo.CH1_05_000550_0105 type: string - x-order: !!float 5 temperature: description: current temperature example: "20.0" type: string - x-order: !!float 6 temperatureUom: description: unit of measure for temperature values example: °C type: string - x-order: !!float 9 timestamp: description: epoch timestamp when the current reading was read example: "1506665106579" type: string - x-order: !!float 8 zone: description: zone unique space id example: CH1:1:05:ColoArea:2 type: string - x-order: !!float 2 type: object EnvironmentDataResponse: properties: @@ -2883,47 +2475,38 @@ definitions: items: $ref: '#/definitions/EnvironmentDataForArray' type: array - x-order: !!float 1 totalCount: description: total number of data values example: !!float 1 type: integer - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages ' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object EnvironmentMessageData: description: environment message data properties: data: $ref: '#/definitions/Environment' - x-order: !!float 1 type: default: environmental description: message type example: environmental type: string - x-order: !!float 0 required: - data - type @@ -2935,12 +2518,10 @@ definitions: description: tag display name example: Humidity type: string - x-order: !!float 1 id: description: tag id example: humidity type: string - x-order: !!float 0 required: - id type: object @@ -2951,12 +2532,10 @@ definitions: description: Environmental reading unit example: PERCENT type: string - x-order: !!float 1 value: description: Environmental reading value example: "50.045" type: string - x-order: !!float 0 required: - unit - value @@ -2967,13 +2546,11 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 level: description: This field is not required. If not provided in the request, subscription will include all environmental messages at the IBX, zone, and cage levels. If granularity is specified, at least one level must be provided. items: @@ -2986,7 +2563,6 @@ definitions: minItems: !!float 1 type: array uniqueItems: true - x-order: !!float 2 required: - accountNumber - ibx @@ -2995,42 +2571,34 @@ definitions: properties: payLoad: type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Invalid Level Type|Invalid Level Value|Invalid DataPoint|Invalid Interval|Invalid FromDate|Invalid ToDate|ToDate interval cannot be greater than 1 year|Invalid Account Details Or User is not Entitled|User Preference is not set as expected in the account|Invalid IBX|Invalid Account number|User is not entitled to the ibx|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR|NO_DATA|UNAUTHORISZED_ACCESS] are the possible messages' example: INTERNAL_ERROR type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|3004|3005|4000|5000|6001] are the possible status codes' example: "4000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - ERROR type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object GenericRequest: properties: accountNo: description: customer account number type: string - x-order: !!float 0 classification: description: asset classification type: string - x-order: !!float 2 ibx: description: ibx code type: string - x-order: !!float 1 type: object HierarchyNode: properties: @@ -3040,34 +2608,27 @@ definitions: items: $ref: '#/definitions/Cages' type: array - x-order: !!float 0 circuits: items: $ref: '#/definitions/CircuitsMapWithCage' type: array - x-order: !!float 1 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object LocationResponse: items: @@ -3081,37 +2642,31 @@ definitions: items: $ref: '#/definitions/Asset' type: array - x-order: !!float 0 customAlert: description: List of custom alert message type to subscribe items: $ref: '#/definitions/CustomAlert' type: array - x-order: !!float 5 environmental: description: List of environmental message type to subscribe items: $ref: '#/definitions/Environmental' type: array - x-order: !!float 1 meteredPower: description: List of metered power message type to subscribe items: $ref: '#/definitions/MeteredPower' type: array - x-order: !!float 3 power: description: List of power message type to subscribe items: $ref: '#/definitions/PowerMessage' type: array - x-order: !!float 2 systemAlert: description: List of system alert message type to subscribe items: $ref: '#/definitions/SystemAlert' type: array - x-order: !!float 4 type: object MeteredPower: description: message data @@ -3120,46 +2675,36 @@ definitions: description: account number example: "123456" type: string - x-order: !!float 5 asset: $ref: '#/definitions/MeteredPowerAssetDetails' - x-order: !!float 2 cage: description: cage example: IBX:02:021305 type: string - x-order: !!float 3 cageSerialNo: description: cage serial number example: 021305-20604711 type: string - x-order: !!float 4 dataQuality: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 9 ibx: description: ibx example: IBX type: string - x-order: !!float 1 reading: $ref: '#/definitions/MeteredPowerValueWithUnit' - x-order: !!float 7 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 8 streamId: description: unique message id example: IBX.CBM-B1-4-1:kilowattHour type: string - x-order: !!float 0 tag: $ref: '#/definitions/MeteredPowerTagDetails' - x-order: !!float 6 required: - asset - ibx @@ -3174,12 +2719,10 @@ definitions: description: asset id example: IBX.CBM-B1-4-1 type: string - x-order: !!float 0 type: description: asset type example: Customer Billing Meter type: string - x-order: !!float 1 required: - id type: object @@ -3188,13 +2731,11 @@ definitions: properties: data: $ref: '#/definitions/MeteredPower' - x-order: !!float 1 type: default: metered-power description: message type example: metered-power type: string - x-order: !!float 0 required: - data - type @@ -3206,12 +2747,10 @@ definitions: description: tag display name example: kilowattHour type: string - x-order: !!float 1 id: description: tag id example: IBX.CBM-B1-4-1:kilowattHour type: string - x-order: !!float 0 required: - id type: object @@ -3222,35 +2761,38 @@ definitions: description: reading unit example: kWh type: string - x-order: !!float 1 value: description: reading value example: "412568.125" type: string - x-order: !!float 0 required: - value type: object Pagination: - description: Represents pagination component of the paginated response + description: pagination properties: limit: - description: The page size. - format: int64 + description: limit specifies the maximum limit of items returned + example: !!float 100 + format: int32 type: integer next: - description: Represents a relative link to the next page. This can be empty if there is no next page available. + description: relative URL to the next page, has value only when next page exists + example: ?offset=200&limit=100 type: string offset: - description: The number of elements to skip. - format: int64 + description: offset of the first item in the given page + example: !!float 100 + format: int32 type: integer previous: - description: Represents a relative link to the previous page. This can be empty if there is no previous page available. + description: relative URL to the previous page, has value only when previous page exists + example: ?offset=0&limit=100 type: string total: - description: The total number of elements in the result set. - format: int64 + description: number of total records + example: !!float 500 + format: int32 type: integer required: - limit @@ -3264,96 +2806,72 @@ definitions: description: account number example: "123456" type: string - x-order: !!float 5 apparentPower: $ref: '#/definitions/PowerApparentPowerValueWithUnit' - x-order: !!float 10 asset: $ref: '#/definitions/PowerAssetDetails' - x-order: !!float 2 cabinet: description: cabinet example: IBX:01:000Z4Z:0102 type: string - x-order: !!float 4 cabinetRating: $ref: '#/definitions/PowerCabinetRatingValueWithUnit' - x-order: !!float 17 cage: description: cage example: IBX:02:021305 type: string - x-order: !!float 3 circuitType: description: circuit type example: PRIMARY type: string - x-order: !!float 8 contractualPower: $ref: '#/definitions/PowerContractualPowerValueWithUnit' - x-order: !!float 11 current: $ref: '#/definitions/PowerCurrentValueWithUnit' - x-order: !!float 12 description: description: description example: 32-amp 230v Single Phase Primary AC Power type: string - x-order: !!float 6 ibx: description: ibx example: IBX type: string - x-order: !!float 1 lastUpdated: description: last updated time example: 2023-10-03T13:09:32 type: string - x-order: !!float 22 oid: description: oid example: 1.3.6.1.2.1.299.36.10.1099 type: string - x-order: !!float 7 peakLastSevenDays: $ref: '#/definitions/PowerPeakLastSevenDaysValueWithUnit' - x-order: !!float 18 peakLastSevenDaysContractualPower: $ref: '#/definitions/PowerPeakLastSevenDaysContractualPowerValueWithUnit' - x-order: !!float 20 peakLastSevenDaysRatio: $ref: '#/definitions/PowerPeakLastSevenDaysRatioValueWithUnit' - x-order: !!float 19 peakLastSevenDaysTime: description: peak last seven days time example: 2023-10-03T13:09:32 type: string - x-order: !!float 21 powerConsumptionToContractual: $ref: '#/definitions/PowerPowerConsumptionToContractualValueWithUnit' - x-order: !!float 16 powerFactor: $ref: '#/definitions/PowerPowerFactorValueWithUnit' - x-order: !!float 13 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 23 realPower: $ref: '#/definitions/PowerRealPowerValueWithUnit' - x-order: !!float 9 soldCurrent: $ref: '#/definitions/PowerSoldCurrentValueWithUnit' - x-order: !!float 14 soldPower: $ref: '#/definitions/PowerSoldPowerValueWithUnit' - x-order: !!float 15 streamId: description: unique message id example: IBX:140838 type: string - x-order: !!float 0 required: - asset - ibx @@ -3366,12 +2884,10 @@ definitions: description: ApparentPower reading unit example: kVA type: string - x-order: !!float 1 value: description: ApparentPower reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3383,12 +2899,10 @@ definitions: description: asset id example: IBX:140838 type: string - x-order: !!float 0 type: description: asset type example: CIRCUIT type: string - x-order: !!float 1 required: - id - type @@ -3400,12 +2914,10 @@ definitions: description: CabinetRating reading unit example: kVA type: string - x-order: !!float 1 value: description: CabinetRating reading value example: "8.125" type: string - x-order: !!float 0 required: - unit - value @@ -3417,12 +2929,10 @@ definitions: description: ContractualPower reading unit example: kVA type: string - x-order: !!float 1 value: description: ContractualPower reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -3435,12 +2945,10 @@ definitions: description: ' Customer Account Number' example: "1234" type: string - x-order: !!float 0 ibx: description: trending values example: "0.147" type: string - x-order: !!float 1 levelType: description: level type allowed value [ibx|cage|cabinet|circuit] enum: @@ -3450,7 +2958,6 @@ definitions: - circuit example: "0.147" type: string - x-order: !!float 2 type: object PowerCurrentValueWithUnit: description: current details @@ -3459,12 +2966,10 @@ definitions: description: Current reading unit example: A type: string - x-order: !!float 1 value: description: Current reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3477,55 +2982,44 @@ definitions: description: customer account number example: ABC type: string - x-order: !!float 1 amps: description: instantaneous current amp reading on circuits example: !!float 123 type: number - x-order: !!float 6 cabinetRating: description: maximum kVA draw allowed for the cabinet|cabinet description when the levelType is cabinet. Null otherwise. example: 341.54 type: number - x-order: !!float 8 comparisonData: $ref: '#/definitions/ComparisonData' - x-order: !!float 11 contractualKva: description: "The maximum power draw contractually allowable in a \nprivate cage. \n" example: 341.54 type: number - x-order: !!float 9 customerName: example: ABC type: string - x-order: !!float 23 ibx: description: ibx code example: ABC type: string - x-order: !!float 0 isAlarm: description: returns boolean based on breakertip alarm example: "true" type: string - x-order: !!float 4 kva: description: power consumption in kva example: 54.402 type: number - x-order: !!float 5 kw: description: "measure of real power expressed in kilowatt applicable for ibxs\nthat have capability of energy meter reading|value will be \"NA\" for AMER and APAC regions \n" example: NA type: string - x-order: !!float 19 lastUpdatedTime: description: | date-time when the latest value was updated (epoc - milliseconds). example: "1497410520000" type: string - x-order: !!float 22 levelType: description: power hierarchy node levelType linked to the power data enum: @@ -3535,87 +3029,69 @@ definitions: - circuit example: ibx type: string - x-order: !!float 2 levelValue: description: power hierarchy node levelValue linked to the power data example: ABC type: string - x-order: !!float 3 peakKvaLastSevenDays: example: 55.296 type: number - x-order: !!float 12 peakKvaLastSevenDaysContractualKva: example: 55.296 type: number - x-order: !!float 14 peakKvaLastSevenDaysPercentage: example: 55.296 type: number - x-order: !!float 13 peakKvaLastSevenDaysTime: example: 55.296 type: integer - x-order: !!float 15 percentageKva: description: calculated field kva / contractualKva example: 341.54 type: number - x-order: !!float 10 powerFactor: description: | The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions example: NA type: string - x-order: !!float 20 primaryKva: description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" example: 28.31 type: number - x-order: !!float 17 readingTime: description: | date-time when the latest value was read in (epoc - milliseconds). example: "1497410400000" type: string - x-order: !!float 21 redundantKva: description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" example: 26.092 type: number - x-order: !!float 18 soldAmps: description: circuit description when the levelType is circuit. Null otherwise. example: !!float 123 type: integer - x-order: !!float 16 soldKva: description: maximum amp draw allowable on a circuit example: 598.349 type: number - x-order: !!float 7 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object PowerDataResponse_IBX: properties: @@ -3625,55 +3101,44 @@ definitions: items: $ref: '#/definitions/PowerData_IBX' type: array - x-order: !!float 0 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object PowerData_Error: properties: payLoad: type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: INTERNAL_ERROR type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "4000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - ERROR type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object PowerData_IBX: properties: @@ -3681,56 +3146,45 @@ definitions: description: customer account number example: ABC type: string - x-order: !!float 1 amps: description: instantaneous current amp reading on circuits example: !!float 123 type: number - x-order: !!float 6 cabinetRating: description: maximum kVA draw allowed for the cabinet example: !!float 123 type: number - x-order: !!float 8 comparisonData: $ref: '#/definitions/ComparisonData' - x-order: !!float 11 contractualKva: description: "The maximum power draw contractually allowable in a \nprivate cage. \nexample: 341.54\n" type: number - x-order: !!float 9 customerName: example: ABC type: string - x-order: !!float 23 ibx: description: ibx code example: ABC type: string - x-order: !!float 0 isAlarm: description: returns boolean based on breakertip alarm example: "true" type: string - x-order: !!float 4 kva: description: power consumption in kva example: 54.402 type: number - x-order: !!float 5 kw: description: | measure of real power expressed in kilowatt applicable for ibxs that have capability of energy meter reading|value will be "NA" for AMER and APAC regions example: NA type: string - x-order: !!float 19 lastUpdatedTime: description: | date-time when the latest value was updated (epoc - milliseconds). example: "1497410520000" type: string - x-order: !!float 22 levelType: description: power hierarchy node levelType linked to the power data enum: @@ -3740,65 +3194,52 @@ definitions: - circuit example: ibx type: string - x-order: !!float 2 levelValue: description: power hierarchy node levelValue linked to the power data example: ABC type: string - x-order: !!float 3 peakKvaLastSevenDays: example: 55.296 type: number - x-order: !!float 12 peakKvaLastSevenDaysContractualKva: example: 55.296 type: number - x-order: !!float 14 peakKvaLastSevenDaysPercentage: example: 55.296 type: number - x-order: !!float 13 peakKvaLastSevenDaysTime: example: 55.296 type: integer - x-order: !!float 15 percentageKva: description: calculated field kva / contractualKva example: 15.928 type: number - x-order: !!float 10 powerFactor: description: | The ratio between real power and apparent power in a circuit.(kW/kVA)|value will be "NA" for AMER and APAC regions example: NA type: string - x-order: !!float 20 primaryKva: description: "the sum of instantaneous power draw reading on all the primary \ncircuits within the levelType.\n" example: 28.31 type: number - x-order: !!float 17 readingTime: description: | date-time when the latest value was read in (epoc - milliseconds). example: "1497410400000" type: string - x-order: !!float 21 redundantKva: description: "the sum of instantaneous power draw reading on all the redundant \ncircuits within the levelType.\n" example: 26.092 type: number - x-order: !!float 18 soldAmps: description: circuit description when the levelType is circuit. Null otherwise. example: !!float 123 type: integer - x-order: !!float 16 soldKva: description: maximum amp draw allowable on a circuit example: 598.349 type: number - x-order: !!float 7 type: object PowerHierarchyNode: properties: @@ -3868,14 +3309,12 @@ definitions: items: $ref: '#/definitions/PowerHierarchyNode' type: array - x-order: !!float 3 label: description: | ibx code, cage unique space id, cabinet unique space id, circuit label for levelType ibx, cage, cabinet, circuit resp. example: XY1 type: string - x-order: !!float 2 levelType: description: "levelType indicates which level in the power hierarchy \ndoes the node belong to.\n" enum: @@ -3885,12 +3324,10 @@ definitions: - circuit example: IBX type: string - x-order: !!float 0 levelValue: description: "ibx code, cage us id, cabinet us id, circuit number for \nlevelType ibx, cage, cabinet, circuit resp.\n" example: XY1 type: string - x-order: !!float 1 type: object PowerMessage: description: Power messages provide the latest power usage data at the circuit-level. @@ -3898,13 +3335,11 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 required: - accountNumber - ibx @@ -3914,13 +3349,11 @@ definitions: properties: data: $ref: '#/definitions/Power' - x-order: !!float 1 type: default: power description: message type example: power type: string - x-order: !!float 0 required: - data - type @@ -3932,12 +3365,10 @@ definitions: description: PeakLastSevenDaysContractualPower reading unit example: kVA type: string - x-order: !!float 1 value: description: PeakLastSevenDaysContractualPower reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -3949,12 +3380,10 @@ definitions: description: PeakLastSevenDaysRatio reading unit example: PERCENT type: string - x-order: !!float 1 value: description: PeakLastSevenDaysRatio reading value example: "48.125" type: string - x-order: !!float 0 required: - unit - value @@ -3966,12 +3395,10 @@ definitions: description: PeakLastSevenDays reading unit example: kVA type: string - x-order: !!float 1 value: description: PeakLastSevenDays reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -3983,12 +3410,10 @@ definitions: description: PowerConsumptionToContractual reading unit example: PERCENT type: string - x-order: !!float 1 value: description: PowerConsumptionToContractual reading value example: "68.125" type: string - x-order: !!float 0 required: - unit - value @@ -4000,12 +3425,10 @@ definitions: description: PowerFactor reading unit example: pf type: string - x-order: !!float 1 value: description: PowerFactor reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -4017,12 +3440,10 @@ definitions: description: RealPower reading unit example: kW type: string - x-order: !!float 1 value: description: RealPower reading value example: "0.0" type: string - x-order: !!float 0 required: - unit - value @@ -4038,12 +3459,10 @@ definitions: description: SoldCurrent reading unit example: A type: string - x-order: !!float 1 value: description: SoldCurrent reading value example: "7.36" type: string - x-order: !!float 0 required: - unit - value @@ -4055,58 +3474,14 @@ definitions: description: SoldPower reading unit example: kVA type: string - x-order: !!float 1 value: description: SoldPower reading value example: "68.125" type: string - x-order: !!float 0 required: - unit - value type: object - Sensor reading: - description: Single environmental sensor reading. - properties: - humidity: - $ref: '#/definitions/ValueWithUnit' - description: 'Sensor reading: humidity' - example: '{ value: 33.3, unit: "%" }' - ibx: - description: The ibx identifier where the sensor is placed. - example: SV2 - type: string - sensorId: - description: The sensor identifier. - example: SV2.Environmental.Colo4-ZoneHumidity1 - type: string - temperature: - $ref: '#/definitions/ValueWithUnit' - description: 'Sensor reading: temperature' - example: '{ value: 23.08, unit: "CELSIUS" }' - zoneId: - description: The zone where the sensor is placed. - example: CH2:1:06:ColoArea:1 - type: string - required: - - ibx - - sensorId - - zoneId - type: object - SensorReadingsResponse: - properties: - data: - description: List of data objects - items: - $ref: '#/definitions/Sensor%20reading' - type: array - pagination: - $ref: '#/definitions/Pagination' - description: Pagination metadata - required: - - data - - pagination - type: object SubscriptionData: properties: alarmMessageData: @@ -4114,40 +3489,33 @@ definitions: items: $ref: '#/definitions/AlarmMessageData' type: array - x-order: !!float 0 alertMessageData: description: alert message data items: $ref: '#/definitions/AlertMessageData' type: array - x-order: !!float 1 environmentMessageData: description: environment message data items: $ref: '#/definitions/EnvironmentMessageData' type: array - x-order: !!float 2 meteredPowerMessageData: description: metered-power message data items: $ref: '#/definitions/MeteredPowerMessageData' type: array - x-order: !!float 3 pagination: $ref: '#/definitions/Pagination' - x-order: !!float 6 powerMessageData: description: power message data items: $ref: '#/definitions/PowerMessageData' type: array - x-order: !!float 4 tagPointMessageData: description: tag-point message data items: $ref: '#/definitions/TagPointMessageData' type: array - x-order: !!float 5 type: object SubscriptionRequest: description: Subscription Request Payload @@ -4155,33 +3523,25 @@ definitions: channel: $ref: '#/definitions/Channel' description: channel - x-order: !!float 1 messageType: $ref: '#/definitions/MessageType' - x-order: !!float 0 type: object SubscriptionResponse: description: Subscription Response properties: channel: $ref: '#/definitions/Channel' - x-order: !!float 3 createdBy: type: string - x-order: !!float 5 createdDateTime: format: date-time type: string - x-order: !!float 6 id: type: string - x-order: !!float 0 messageType: $ref: '#/definitions/MessageType' - x-order: !!float 2 orgId: type: string - x-order: !!float 4 status: enum: - PENDING @@ -4190,14 +3550,11 @@ definitions: - DELETE_IN_PROGRESS - DELETED type: string - x-order: !!float 1 updatedBy: type: string - x-order: !!float 7 updatedDateTime: format: date-time type: string - x-order: !!float 8 type: object SystemAlert: description: System Alert messages are sent when Equinix-defined alert conditions become true. The message contains the data point value that triggered the alert as well as the current value. @@ -4205,13 +3562,11 @@ definitions: accountNumber: example: "135888" type: string - x-order: !!float 0 ibx: items: type: string type: array uniqueItems: true - x-order: !!float 1 required: - accountNumber - ibx @@ -4223,12 +3578,10 @@ definitions: description: tag display name example: Output Voltage CA type: string - x-order: !!float 1 id: description: tag id example: IBX.ATS-M1-04:outputvoltageca type: string - x-order: !!float 0 required: - id type: object @@ -4239,28 +3592,22 @@ definitions: description: 'data quality: Good | Bad | Uncertain' example: Good type: string - x-order: !!float 5 ibx: description: ibx example: IBX type: string - x-order: !!float 1 reading: $ref: '#/definitions/TagPointValueWithUnit' - x-order: !!float 3 readingTime: description: message reading time example: 2023-10-03T13:09:32 type: string - x-order: !!float 4 streamId: description: unique message id example: IBX.ATS-M1-04:outputvoltageca type: string - x-order: !!float 0 tag: $ref: '#/definitions/TagDetails' - x-order: !!float 2 required: - dataQuality - ibx @@ -4275,27 +3622,22 @@ definitions: items: $ref: '#/definitions/TagPointDataArrayCurrent' type: array - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object TagPointDataArray: description: | @@ -4305,37 +3647,31 @@ definitions: description: "Generic label for the tag point \n" example: OK type: string - x-order: !!float 4 readingTime: description: | date time when the tag point value was read from the device. example: "20170907060449" type: string - x-order: !!float 5 tagDisplayName: description: | Generic label for the tag point example: Evaporator Leaving Water Temperature type: string - x-order: !!float 2 tagId: description: | ID for the tagPoint - Unique Identifier for the Tag Point example: CH1.Chiller-1:evapleavingwatertemperature type: string - x-order: !!float 1 uom: description: | Unit of measure for the data value for the tag point example: °C type: string - x-order: !!float 3 value: description: | Current data value for the tag point example: 4.9 type: string - x-order: !!float 0 type: object TagPointDataArrayCurrent: description: | @@ -4345,44 +3681,37 @@ definitions: description: "date time when the tag point value was read from the device. \n" example: "20170907125336" type: string - x-order: !!float 4 tagDisplayName: description: | Generic label for the tag point example: Evaporator Leaving Water Temperature type: string - x-order: !!float 2 tagId: description: | ID for the tagPoint - Unique Identifier for the Tag Point example: CH1.Chiller-1:evapleavingwatertemperature type: string - x-order: !!float 1 uom: description: | Unit of measure for the data value for the tag point example: °C type: string - x-order: !!float 3 value: description: | Current data value for the tag point example: 4.9 type: string - x-order: !!float 0 type: object TagPointMessageData: description: tag-point message data properties: data: $ref: '#/definitions/TagPoint' - x-order: !!float 1 type: default: tag-point description: message type example: tag-point type: string - x-order: !!float 0 required: - data - type @@ -4393,11 +3722,9 @@ definitions: description: UTC time example: "1504779867508" type: string - x-order: !!float 0 value: example: "0.0" type: string - x-order: !!float 1 type: object TagPointTrendingResponse: properties: @@ -4406,22 +3733,18 @@ definitions: accountNumber: example: "1" type: string - x-order: !!float 0 data: description: trend data of tag items: $ref: '#/definitions/TagPointTrendingData' type: array - x-order: !!float 7 dataType: description: data type of trend data vlaues example: Float type: string - x-order: !!float 6 ibx: example: CH1 type: string - x-order: !!float 1 interval: description: data sampling interval enum: @@ -4431,44 +3754,35 @@ definitions: - 1d example: 1h type: string - x-order: !!float 2 tagDisplayName: description: "the \n" example: Battery Time Remaining type: string - x-order: !!float 5 tagId: description: | the unique identifiers for the tag point ids for which the trending point is requested. example: CH1.UPS-20:batterytimeremaining type: string - x-order: !!float 4 uom: example: s type: string - x-order: !!float 3 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid Interval|Invalid FromDate|Invalid ToDate|From/ToDate interval cannot be greater than 1 year] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object - x-order: !!float 1 type: object TagPointValueWithUnit: description: reading details @@ -4477,12 +3791,10 @@ definitions: description: reading unit example: V type: string - x-order: !!float 1 value: description: reading value example: "50.045" type: string - x-order: !!float 0 required: - value type: object @@ -4493,12 +3805,10 @@ definitions: items: $ref: '#/definitions/Asset' type: array - x-order: !!float 0 templateId: description: template id - unique identifier for the template example: Cooling Plant type: string - x-order: !!float 1 type: object TrendingEnvironmentData: properties: @@ -4508,35 +3818,28 @@ definitions: description: customer account num example: "1" type: string - x-order: !!float 1 datapoint: description: data point for which the timeseries data is fetched example: temperature type: string - x-order: !!float 3 ibx: description: ibx code example: CH1 type: string - x-order: !!float 0 interval: description: interval example: reading type: string - x-order: !!float 2 series: description: Time series data for the data point items: $ref: '#/definitions/DataValue' type: array - x-order: !!float 5 uom: description: unit of measure used for the datapoint example: °C type: string - x-order: !!float 4 type: object - x-order: !!float 0 type: object TrendingPowerData: properties: @@ -4545,16 +3848,13 @@ definitions: accountNumber: example: "123456" type: string - x-order: !!float 0 data: items: $ref: '#/definitions/ComparisonData_Trend' type: array - x-order: !!float 5 ibx: example: ABX type: string - x-order: !!float 1 interval: description: serial number enum: @@ -4564,7 +3864,6 @@ definitions: - 1d example: 1h type: string - x-order: !!float 4 levelType: description: power hierarchy node levelType linked to the power data enum: @@ -4573,86 +3872,27 @@ definitions: - cabinet - circuit type: string - x-order: !!float 2 levelValue: description: ibx code, cage unique space id, cabinet unique space id and serial number for levelType ibx, cage, cabinet, circuit resp. example: ABX type: string - x-order: !!float 3 type: object - x-order: !!float 0 status: properties: msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|From/ToDate interval cannot be greater than 1 year|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 2 statuscode: description: '[1000|3001|3002|3003|4000] are the possible status codes' example: "1000" type: number - x-order: !!float 1 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 - type: object - x-order: !!float 1 - type: object - ValueWithUnit: - description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). - properties: - unit: - description: Unit for value. - example: CELSIUS - type: object - value: - description: Specific value, to be read together with unit. - example: "33.3" type: object - required: - - unit - - value - type: object - ValueWithUnitDoubleHumidityUnit: - description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). - properties: - unit: - description: Unit for value. - enum: - - PERCENT - example: CELSIUS - type: string - value: - description: Specific value, to be read together with unit. - example: 33.3 - format: double - type: number - required: - - unit - - value - type: object - ValueWithUnitDoubleTemperatureUnit: - description: Single value with related unit (e.g. percentage for humidity or Celsius degree for temperature). - properties: - unit: - description: Unit for value. - enum: - - CELSIUS - - FAHRENHEIT - example: CELSIUS - type: string - value: - description: Specific value, to be read together with unit. - example: 33.3 - format: double - type: number - required: - - unit - - value type: object WebhookChannelConfiguration: description: The configuration for a 'WEBHOOK' channel @@ -4662,27 +3902,22 @@ definitions: maximum: !!float 20 minimum: !!float 5 type: integer - x-order: !!float 4 numberOfConcurrentCalls: format: int32 maximum: !!float 50 minimum: !!float 20 type: integer - x-order: !!float 3 numberOfRetries: format: int32 maximum: !!float 5 minimum: !!float 1 type: integer - x-order: !!float 2 sslCertificate: example: ZkFzZLY1IGRpY31kZXI= type: string - x-order: !!float 0 url: example: https://b4c3mzxe8syvhd-ats.iot.us-west-2.amazonaws.com type: string - x-order: !!float 1 required: - url type: object @@ -4691,39 +3926,30 @@ definitions: email: example: true type: boolean - x-order: !!float 8 email_address: example: test type: string - x-order: !!float 2 firstName: example: test type: string - x-order: !!float 0 lastName: example: test type: string - x-order: !!float 1 mobilePhoneCode: example: test type: string - x-order: !!float 3 mobilePhoneNumber: example: test type: string - x-order: !!float 4 self: example: true type: boolean - x-order: !!float 5 sms: example: true type: boolean - x-order: !!float 6 voice: example: true type: boolean - x-order: !!float 7 type: object status: properties: @@ -4731,7 +3957,6 @@ definitions: description: root cause for error example: "null" type: string - x-order: !!float 1 info: properties: code: @@ -4741,20 +3966,16 @@ definitions: minimum: !!float 1000 pattern: ^[0-9]{4}$ type: number - x-order: !!float 0 msg: description: '[Ok|Permission Denied|Invalid Account number|Invalid IBX|Invalid LevelType|Invalid LevelValue|Invalid Interval|Invalid From/To Date|INVALID_SESSION|INVALID_SESSION_IBX|INTERNAL_ERROR] are the possible messages' example: OK type: string - x-order: !!float 1 type: object - x-order: !!float 2 type: description: '[INFO|ERROR] are the possible values' enum: - INFO type: string - x-order: !!float 0 type: object parameters: authorizationHeader: