Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,4 @@ model_user_dfu_state_machine_status.go
model_user_firmware_info.go
model_webhook_settings.go
response.go
test/api_alert_test.go
test/api_authorization_test.go
test/api_billing_account_test.go
test/api_device_test.go
test/api_event_test.go
test/api_external_devices_test.go
test/api_monitor_test.go
test/api_project_test.go
test/api_route_test.go
test/api_usage_test.go
test/api_webhook_test.go
utils.go
60 changes: 22 additions & 38 deletions api_device.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions api_usage.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/CreateMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
| **RoutingCooldownPeriod** | Pointer to **string** | The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit. | [optional] |
| **Silenced** | Pointer to **bool** | If true, alerts will be created, but no notifications will be sent. | [optional] |
| **SourceSelector** | Pointer to **string** | A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value. | [optional] |
| **SourceType** | Pointer to **string** | The type of source to monitor. Currently only \"event\" is supported. | [optional] |
| **SourceType** | Pointer to **string** | The type of source to monitor. Supported values are \"event\" and \"heartbeat\". | [optional] |
| **Threshold** | Pointer to **int32** | The type of condition to apply to the value selected by the source_selector | [optional] |
| **Uid** | Pointer to **string** | | [optional] |

Expand Down
24 changes: 13 additions & 11 deletions docs/DeviceAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Other parameters are passed through a pointer to a apiAddQiNoteRequest struct vi

## DeleteDevice

> DeleteDevice(ctx, projectOrProductUID, deviceUID).Purge(purge).Execute()
> DeleteDevice(ctx, projectOrProductUID, deviceUID).Execute()

### Example

Expand All @@ -190,11 +190,10 @@ import (
func main() {
projectOrProductUID := "app:2606f411-dea6-44a0-9743-1130f57d77d8" // string |
deviceUID := "dev:000000000000000" // string |
purge := true // bool | (default to false)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.DeviceAPI.DeleteDevice(context.Background(), projectOrProductUID, deviceUID).Purge(purge).Execute()
r, err := apiClient.DeviceAPI.DeleteDevice(context.Background(), projectOrProductUID, deviceUID).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeviceAPI.DeleteDevice``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -217,8 +216,6 @@ Other parameters are passed through a pointer to a apiDeleteDeviceRequest struct
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |

**purge** | **bool** | | [default to false]

### Return type

(empty response body)
Expand Down Expand Up @@ -950,7 +947,7 @@ Other parameters are passed through a pointer to a apiGetDeviceEnvironmentVariab

## GetDeviceEnvironmentVariablesByPin

> GetDeviceEnvironmentVariablesByPin200Response GetDeviceEnvironmentVariablesByPin(ctx, productUID, deviceUID).Execute()
> GetDeviceEnvironmentVariablesByPin200Response GetDeviceEnvironmentVariablesByPin(ctx, productUID, deviceUID).XAuthToken(xAuthToken).Execute()

### Example

Expand All @@ -967,10 +964,11 @@ import (
func main() {
productUID := "com.blues.bridge:sensors" // string |
deviceUID := "dev:000000000000000" // string |
xAuthToken := "xAuthToken_example" // string | For accessing endpoints by Device pin.

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeviceAPI.GetDeviceEnvironmentVariablesByPin(context.Background(), productUID, deviceUID).Execute()
resp, r, err := apiClient.DeviceAPI.GetDeviceEnvironmentVariablesByPin(context.Background(), productUID, deviceUID).XAuthToken(xAuthToken).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeviceAPI.GetDeviceEnvironmentVariablesByPin``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -995,13 +993,15 @@ Other parameters are passed through a pointer to a apiGetDeviceEnvironmentVariab
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |

**xAuthToken** | **string** | For accessing endpoints by Device pin. |

### Return type

[**GetDeviceEnvironmentVariablesByPin200Response**](GetDeviceEnvironmentVariablesByPin200Response.md)

### Authorization

[pin](../README.md#pin)
No authorization required

### HTTP request headers

Expand Down Expand Up @@ -1863,7 +1863,7 @@ Other parameters are passed through a pointer to a apiSetDeviceEnvironmentVariab

## SetDeviceEnvironmentVariablesByPin

> EnvironmentVariables SetDeviceEnvironmentVariablesByPin(ctx, productUID, deviceUID).EnvironmentVariables(environmentVariables).Execute()
> EnvironmentVariables SetDeviceEnvironmentVariablesByPin(ctx, productUID, deviceUID).XAuthToken(xAuthToken).EnvironmentVariables(environmentVariables).Execute()

### Example

Expand All @@ -1880,11 +1880,12 @@ import (
func main() {
productUID := "com.blues.bridge:sensors" // string |
deviceUID := "dev:000000000000000" // string |
xAuthToken := "xAuthToken_example" // string | For accessing endpoints by Device pin.
environmentVariables := *openapiclient.NewEnvironmentVariables(map[string]string{"key": "Inner_example"}) // EnvironmentVariables | Environment variables to be added to the device

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DeviceAPI.SetDeviceEnvironmentVariablesByPin(context.Background(), productUID, deviceUID).EnvironmentVariables(environmentVariables).Execute()
resp, r, err := apiClient.DeviceAPI.SetDeviceEnvironmentVariablesByPin(context.Background(), productUID, deviceUID).XAuthToken(xAuthToken).EnvironmentVariables(environmentVariables).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DeviceAPI.SetDeviceEnvironmentVariablesByPin``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -1909,6 +1910,7 @@ Other parameters are passed through a pointer to a apiSetDeviceEnvironmentVariab
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |

**xAuthToken** | **string** | For accessing endpoints by Device pin. |
**environmentVariables** | [**EnvironmentVariables**](EnvironmentVariables.md) | Environment variables to be added to the device |

### Return type
Expand All @@ -1917,7 +1919,7 @@ Other parameters are passed through a pointer to a apiSetDeviceEnvironmentVariab

### Authorization

[pin](../README.md#pin)
No authorization required

### HTTP request headers

Expand Down
42 changes: 34 additions & 8 deletions docs/GetDataUsage200ResponseDataInner.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## Properties

| Name | Type | Description | Notes |
| ---------- | ------------------------------- | ------------------------------------------------------------------------------------------- | ---------- |
| **Data** | [**[]UsageData**](UsageData.md) | |
| **Device** | Pointer to **string** | The device UID this usage data belongs to (only present when aggregate is 'device') | [optional] |
| **Fleet** | Pointer to **string** | The fleet UID this usage data belongs to (only present when aggregate is 'fleet') | [optional] |
| **Iccid** | Pointer to **string** | The ICCID of the cellular SIM card (only present when type is 'cellular') | [optional] |
| **Imsi** | Pointer to **string** | The IMSI of the satellite device (only present when type is 'satellite') | [optional] |
| **Type** | **string** | The type of connectivity |
| Name | Type | Description | Notes |
| --------------- | ------------------------------- | ------------------------------------------------------------------------------------------- | ---------- |
| **Data** | [**[]UsageData**](UsageData.md) | |
| **Device** | Pointer to **string** | The device UID this usage data belongs to (only present when aggregate is 'device') | [optional] |
| **DeviceCount** | Pointer to **int32** | the number of devices represented by this data point | [optional] |
| **Fleet** | Pointer to **string** | The fleet UID this usage data belongs to (only present when aggregate is 'fleet') | [optional] |
| **Iccid** | Pointer to **string** | The ICCID of the cellular SIM card (only present when type is 'cellular') | [optional] |
| **Imsi** | Pointer to **string** | The IMSI of the satellite device (only present when type is 'satellite') | [optional] |
| **Type** | **string** | The type of connectivity |

## Methods

Expand Down Expand Up @@ -74,6 +75,31 @@ SetDevice sets Device field to given value.

HasDevice returns a boolean if a field has been set.

### GetDeviceCount

`func (o *GetDataUsage200ResponseDataInner) GetDeviceCount() int32`

GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.

### GetDeviceCountOk

`func (o *GetDataUsage200ResponseDataInner) GetDeviceCountOk() (*int32, bool)`

GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDeviceCount

`func (o *GetDataUsage200ResponseDataInner) SetDeviceCount(v int32)`

SetDeviceCount sets DeviceCount field to given value.

### HasDeviceCount

`func (o *GetDataUsage200ResponseDataInner) HasDeviceCount() bool`

HasDeviceCount returns a boolean if a field has been set.

### GetFleet

`func (o *GetDataUsage200ResponseDataInner) GetFleet() string`
Expand Down
Loading
Loading