Documentation
¶
Index ¶
- Constants
- Variables
- func IsDfuTerminal(phase note.DfuPhase) bool
- func ParseDfuPhase(phase string) note.DfuPhase
- type ContactResponse
- type DeleteAppEnvironmentVariableResponse
- type DeleteDeviceEnvironmentVariableResponse
- type DeleteDeviceFleetsRequest
- type DeleteFleetEnvironmentVariableResponse
- type DeviceHealthLogEntry
- type DevicePublicKey
- type ErrorResponse
- func ErrBadRequest() ErrorResponse
- func ErrConflict() ErrorResponse
- func ErrEventsQueryTimeout() ErrorResponse
- func ErrForbidden() ErrorResponse
- func ErrInternalServerError() ErrorResponse
- func ErrMethodNotAllowed() ErrorResponse
- func ErrNotFound() ErrorResponse
- func ErrUnauthorized() ErrorResponse
- func ErrUnsupportedMediaType() ErrorResponse
- type FleetConnectivityAssurance
- type FleetResponse
- type GenerateClientAppResponse
- type GetAppEnvironmentVariablesResponse
- type GetAppResponse
- type GetBillingAccountResponse
- type GetBillingAccountsResponse
- type GetDeviceEnvironmentVariablesResponse
- type GetDeviceEnvironmentVariablesWithPINResponse
- type GetDeviceHealthLogResponse
- type GetDeviceLatestResponse
- type GetDeviceResponse
- type GetDeviceSessionsResponse
- type GetDevicesPublicKeysResponse
- type GetDevicesResponse
- type GetEventsByCursorResponse
- type GetEventsResponse
- type GetEventsResponseSelectedFields
- type GetFleetEnvironmentVariablesResponse
- type GetFleetsResponse
- type GetProductsResponse
- type HealthLogEntry
- type HubJob
- type HubJobReconciliation
- type HubJobReconciliationAppReport
- type HubJobReconciliationDeviceReport
- type HubJobReconciliationReport
- type HubJobReconciliationReportOptions
- type HubJobReconciliationReportStatus
- type HubJobReconciliationRequests
- type HubJobReport
- type HubJobType
- type HubReportReconciliation
- type Location
- type PostFleetRequest
- type PostProductRequest
- type ProductResponse
- type ProvisionDeviceRequest
- type PutAppEnvironmentVariablesRequest
- type PutAppEnvironmentVariablesResponse
- type PutDeviceEnvironmentVariablesRequest
- type PutDeviceEnvironmentVariablesResponse
- type PutDeviceEnvironmentVariablesWithPINRequest
- type PutDeviceEnvironmentVariablesWithPINResponse
- type PutDeviceFleetsRequest
- type PutFleetEnvironmentVariablesRequest
- type PutFleetEnvironmentVariablesResponse
- type PutFleetRequest
- type TowerInformation
Constants ¶
const ( HubJobStatusCancelled = "cancelled" HubJobStatusSubmitted = "submitted" )
const HubJobReconciliationMajorVersion = 1
Current data format of the reconciliation job type. Note that major types require conversion, while minor types can be handled by the same code.
const HubJobReconciliationMinorVersion = 1
Variables ¶
var SuspendedBillingAccountResponse = ErrorResponse{ Code: http.StatusForbidden, Status: "Forbidden", Error: "this billing account is suspended", }
Functions ¶
func IsDfuTerminal ¶ added in v1.7.3
func ParseDfuPhase ¶ added in v1.7.2
Types ¶
type ContactResponse ¶
type ContactResponse struct {
Name string `json:"name"`
Email string `json:"email"`
Role string `json:"role"`
Organization string `json:"organization"`
}
ContactResponse v1
The response object for an app contact.
type DeleteAppEnvironmentVariableResponse ¶
type DeleteAppEnvironmentVariableResponse struct {
// EnvironmentVariables
//
// The environment variables for this app.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
DeleteAppEnvironmentVariableResponse v1
The response object for deleting an app environment variable.
type DeleteDeviceEnvironmentVariableResponse ¶
type DeleteDeviceEnvironmentVariableResponse struct {
// EnvironmentVariables
//
// The environment variables for this device that have been set using host firmware or the Notehub API or UI.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
DeleteDeviceEnvironmentVariableResponse v1
The response object for deleting a device environment variable.
type DeleteDeviceFleetsRequest ¶ added in v1.4.8
type DeleteDeviceFleetsRequest struct {
// FleetUIDs
//
// The fleets the device should be disassociated from
//
// required: true
FleetUIDs []string `json:"fleet_uids"`
}
DeleteDeviceFleetsRequest v1
The request object for removing a device from fleets
type DeleteFleetEnvironmentVariableResponse ¶
type DeleteFleetEnvironmentVariableResponse struct {
// EnvironmentVariables
//
// The environment variables for this fleet.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
DeleteFleetEnvironmentVariableResponse v1
The response object for deleting an fleet environment variable.
type DeviceHealthLogEntry ¶ added in v1.7.3
type DeviceHealthLogEntry struct {
When string `json:"when"`
Text string `json:"text"`
Alert bool `json:"alert"`
}
Part of the response object for a device.
type DevicePublicKey ¶ added in v1.4.8
DevicePublicKey v1
A structure representing the public key for a specific device
type ErrorResponse ¶
type ErrorResponse struct {
// Error represents the human readable error message.
//
// required: true
// type: string
Error string `json:"err"`
// Code represents the standard status code
//
// required: true
// type: int
Code int `json:"code"`
// Status is the machine readable string representation of the error code.
//
// required: true
// type: string
Status string `json:"status"`
// Request is the request that was made that resulted in error. The url path would be sufficient.
//
// required: false
// type: string
Request string `json:"request,omitempty"`
// Details are any additional information about the request that would be nice to in the response.
// The request body would be nice especially if there are a lot of parameters.
//
// required: false
// type: object
Details map[string]interface{} `json:"details,omitempty"`
// Debug is any customer-facing information to aid in debugging.
//
// required: false
// type: string
Debug string `json:"debug,omitempty"`
}
ErrorResponse v1
The structure returned from HTTPS API calls when there is an error.
func ErrBadRequest ¶
func ErrBadRequest() ErrorResponse
ErrBadRequest returns the default for an HTTP 400 BadRequest
func ErrConflict ¶
func ErrConflict() ErrorResponse
ErrConflict returns the default for an HTTP 409 Conflict
func ErrEventsQueryTimeout ¶ added in v1.7.1
func ErrEventsQueryTimeout() ErrorResponse
ErrEventsQueryTimeout returns the default for a GetEvents (and related) request that took too long
func ErrForbidden ¶
func ErrForbidden() ErrorResponse
ErrForbidden returns the default for an HTTP 403 Forbidden
func ErrInternalServerError ¶
func ErrInternalServerError() ErrorResponse
ErrInternalServerError returns the default for an HTTP 500 InternalServerError
func ErrMethodNotAllowed ¶ added in v1.4.9
func ErrMethodNotAllowed() ErrorResponse
ErrMethodNotAllowed returns the default for an HTTP 405 Method Not Allowed
func ErrNotFound ¶
func ErrNotFound() ErrorResponse
ErrNotFound returns the default for an HTTP 404 NotFound
func ErrUnauthorized ¶
func ErrUnauthorized() ErrorResponse
ErrUnauthorized returns the default for an HTTP 401 Unauthorized
func ErrUnsupportedMediaType ¶
func ErrUnsupportedMediaType() ErrorResponse
ErrUnsupportedMediaType returns the default for an HTTP 415 UnsupportedMediaType
func (ErrorResponse) WithDebug ¶ added in v1.7.3
func (e ErrorResponse) WithDebug(msg string) ErrorResponse
WithDebug adds a debug string onto the error response object
func (ErrorResponse) WithError ¶
func (e ErrorResponse) WithError(err error) ErrorResponse
WithError adds an error string from an error object into the response.
func (ErrorResponse) WithRequest ¶
func (e ErrorResponse) WithRequest(r *http.Request) ErrorResponse
WithRequest is a an easy way to add http.Request information to an error. It takes a http.Request object, parses the URI string into response.Request and adds the request Body (if it exists) into the response.Details["body"] as a string
type FleetConnectivityAssurance ¶ added in v1.7.4
type FleetConnectivityAssurance struct {
Enabled bool `json:"enabled"`
}
FleetConnectivityAssurance v1
Includes, Enabled = Whether Connectivity Assurance is enabled for this fleet With flexibility to add more information in the future
type FleetResponse ¶
type FleetResponse struct {
UID string `json:"uid"`
Label string `json:"label"`
// RFC3339 timestamp, in UTC.
Created string `json:"created"`
EnvironmentVariables map[string]string `json:"environment_variables"`
SmartRule string `json:"smart_rule,omitempty"`
WatchdogMins int64 `json:"watchdog_mins,omitempty"`
ConnectivityAssurance FleetConnectivityAssurance `json:"connectivity_assurance,omitempty"`
}
FleetResponse v1
The response object for a fleet.
type GenerateClientAppResponse ¶ added in v1.5.0
type GenerateClientAppResponse struct {
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
}
GenerateClientAppResponse v1
The response object for generating a new client app for a specific app
type GetAppEnvironmentVariablesResponse ¶
type GetAppEnvironmentVariablesResponse struct {
// EnvironmentVariables
//
// The environment variables for this app.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
GetAppEnvironmentVariablesResponse v1
The response object for getting app environment variables.
type GetAppResponse ¶
type GetAppResponse struct {
UID string `json:"uid"`
Label string `json:"label"`
// RFC3339 timestamp, in UTC.
Created string `json:"created"`
AdministrativeContact *ContactResponse `json:"administrative_contact"`
TechnicalContact *ContactResponse `json:"technical_contact"`
// "owner", "developer", or "viewer"
Role *string `json:"role"`
}
GetAppResponse v1
The response object for getting an app.
type GetBillingAccountResponse ¶ added in v1.5.1
type GetBillingAccountResponse struct {
UID string `json:"uid"`
Name string `json:"name"`
// "billing_admin", "billing_manager", or "project_creator"
Role string `json:"role"`
}
GetBillingAccountResponse v1
The response object for getting a billing account.
type GetBillingAccountsResponse ¶ added in v1.5.1
type GetBillingAccountsResponse struct {
BillingAccounts []GetBillingAccountResponse `json:"billing_accounts"`
}
type GetDeviceEnvironmentVariablesResponse ¶
type GetDeviceEnvironmentVariablesResponse struct {
// EnvironmentVariables
//
// The environment variables for this device that have been set using host firmware or the Notehub API or UI.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
// EnvironmentVariablesEnvDefault
//
// The environment variables that have been set using the env.default request through the Notecard API.
//
// required: true
EnvironmentVariablesEnvDefault map[string]string `json:"environment_variables_env_default"`
// EnvironmentVariablesEffective
//
// The environment variables for the device as though they were fully resolved by resolution rules
//
// required: true
EnvironmentVariablesEffective map[string]string `json:"environment_variables_effective"`
}
GetDeviceEnvironmentVariablesResponse v1
The response object for getting device environment variables.
type GetDeviceEnvironmentVariablesWithPINResponse ¶
type GetDeviceEnvironmentVariablesWithPINResponse struct {
// EnvironmentVariables
//
// The environment variables for this device that have been set using host firmware or the Notehub API or UI.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
// EnvironmentVariablesEnvDefault
//
// The environment variables that have been set using the env.default request through the Notecard API.
//
// required: true
EnvironmentVariablesEnvDefault map[string]string `json:"environment_variables_env_default"`
}
GetDeviceEnvironmentVariablesWithPINResponse v1
The response object for getting device environment variables with a PIN.
type GetDeviceHealthLogResponse ¶
type GetDeviceHealthLogResponse struct {
HealthLog []HealthLogEntry `json:"health_log"`
}
GetDeviceHealthLogResponse v1
The response object for getting a device's health log.
type GetDeviceLatestResponse ¶
GetDeviceLatestResponse v1
The response object for retrieving the latest notefile values for a device
type GetDeviceResponse ¶ added in v1.7.3
type GetDeviceResponse struct {
UID string `json:"uid"`
SerialNumber string `json:"serial_number,omitempty"`
SKU string `json:"sku,omitempty"`
// RFC3339 timestamps, in UTC.
Provisioned string `json:"provisioned"`
LastActivity *string `json:"last_activity"`
FirmwareHost string `json:"firmware_host,omitempty"`
FirmwareNotecard string `json:"firmware_notecard,omitempty"`
Contact *ContactResponse `json:"contact,omitempty"`
ProductUID string `json:"product_uid"`
FleetUIDs []string `json:"fleet_uids"`
TowerInfo *TowerInformation `json:"tower_info,omitempty"`
TowerLocation *Location `json:"tower_location,omitempty"`
GPSLocation *Location `json:"gps_location,omitempty"`
TriangulatedLocation *Location `json:"triangulated_location,omitempty"`
BestLocation *Location `json:"best_location,omitempty"`
Voltage float64 `json:"voltage"`
Temperature float64 `json:"temperature"`
DFUEnv *note.DFUEnv `json:"dfu,omitempty"`
Disabled bool `json:"disabled,omitempty"`
Tags string `json:"tags,omitempty"`
// Activity
RecentActivityBase string `json:"recent_event_base,omitempty"`
RecentEventCount []int `json:"recent_event_count,omitempty"`
RecentSessionCount []int `json:"recent_session_count,omitempty"`
RecentSessionSeconds []int `json:"recent_session_seconds,omitempty"`
// Health
HealthLog []DeviceHealthLogEntry `json:"health_log,omitempty"`
}
DeviceResponse v1
The response object for a device.
type GetDeviceSessionsResponse ¶ added in v1.4.9
type GetDeviceSessionsResponse struct {
// Sessions
//
// The requested page of session logs for the device
//
// required: true
Sessions []note.DeviceSession `json:"sessions"`
// HasMore
//
// A boolean indicating whether there is at least one more
// page of data available after this page
//
// required: true
HasMore bool `json:"has_more"`
}
GetDeviceSessionsResponse is the structure returned from a GetDeviceSessions call
type GetDevicesPublicKeysResponse ¶ added in v1.4.8
type GetDevicesPublicKeysResponse struct {
DevicePublicKeys []DevicePublicKey `json:"device_public_keys"`
HasMore bool `json:"has_more"`
}
GetDevicesPublicKeysResponse v1
The response object for retrieving a collection of devices' public keys
type GetDevicesResponse ¶
type GetDevicesResponse struct {
Devices []GetDeviceResponse `json:"devices"`
HasMore bool `json:"has_more"`
}
GetDevicesResponse v1
The response object for getting devices.
type GetEventsByCursorResponse ¶ added in v1.5.0
type GetEventsByCursorResponse struct {
Events []note.Event `json:"events"`
NextCursor string `json:"next_cursor"`
HasMore bool `json:"has_more"`
}
GetEventsByCursorResponse v1
The response object for getting events by cursor.
type GetEventsResponse ¶
type GetEventsResponse struct {
Events []note.Event `json:"events"`
Through string `json:"through,omitempty"`
HasMore bool `json:"has_more"`
}
GetEventsResponse v1
The response object for getting events.
type GetEventsResponseSelectedFields ¶ added in v1.7.3
type GetEventsResponseSelectedFields struct {
Events []note.Event `json:"events"`
Through string `json:"through,omitempty"`
HasMore bool `json:"has_more"`
}
GetEventsResponseSelectedFields v1
The response object for getting events with selected fields.
type GetFleetEnvironmentVariablesResponse ¶
type GetFleetEnvironmentVariablesResponse struct {
// EnvironmentVariables
//
// The environment variables for this fleet.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
GetFleetEnvironmentVariablesResponse v1
The response object for getting fleet environment variables.
type GetFleetsResponse ¶
type GetFleetsResponse struct {
Fleets []FleetResponse `json:"fleets"`
}
GetFleetsResponse v1
The response object for getting fleets.
type GetProductsResponse ¶
type GetProductsResponse struct {
Products []ProductResponse `json:"products"`
}
GetProductsResponse v1
The response object for getting products.
type HealthLogEntry ¶
type HealthLogEntry struct {
When string `json:"when"`
Alert bool `json:"alert"`
Text string `json:"text"`
}
HealthLogEntry v1
The response object for a health log entry.
type HubJob ¶ added in v1.7.3
type HubJob struct {
Type HubJobType `json:"type,omitempty"`
Version string `json:"version,omitempty"`
Name string `json:"name,omitempty"`
Comment string `json:"comment,omitempty"`
Created int64 `json:"created,omitempty"`
CreatedBy string `json:"created_by,omitempty"`
}
This header is present for every type of job
type HubJobReconciliation ¶ added in v1.7.3
type HubJobReconciliation struct {
Header HubJob `json:"job,omitempty"`
Comment string `json:"comment,omitempty"`
Select struct {
Comment string `json:"comment,omitempty"`
AllDevices bool `json:"all_devices,omitempty"`
DevicesInFleets []string `json:"devices_in_fleets,omitempty"`
Devices []string `json:"devices,omitempty"`
DevicesBySn []string `json:"devices_by_sn,omitempty"`
} `json:"select,omitempty"`
DefaultRequests HubJobReconciliationRequests `json:"default_requests,omitempty"`
DeviceRequests map[string]HubJobReconciliationRequests `json:"device_requests,omitempty"`
ReportOptions HubJobReconciliationReportOptions `json:"report_options,omitempty"`
}
HubJobReconciliation is the format of a batch request file
type HubJobReconciliationAppReport ¶ added in v1.7.3
type HubJobReconciliationAppReport struct {
Info *GetAppResponse `json:"project_info,omitempty"`
Vars *GetAppEnvironmentVariablesResponse `json:"project_vars,omitempty"`
Fleets *GetFleetsResponse `json:"project_fleets,omitempty"`
}
HubJobReconciliationAppReport is a structure defining the app report
type HubJobReconciliationDeviceReport ¶ added in v1.7.3
type HubJobReconciliationDeviceReport struct {
Info *GetDeviceResponse `json:"device_info,omitempty"`
Vars *GetDeviceEnvironmentVariablesResponse `json:"device_vars,omitempty"`
}
HubJobReconciliationDeviceReport is a structure defining the device report
type HubJobReconciliationReport ¶ added in v1.7.3
type HubJobReconciliationReport struct {
App *HubJobReconciliationAppReport `json:"project,omitempty"`
Devices map[string]HubJobReconciliationDeviceReport `json:"devices,omitempty"`
}
HubJobReconciliationReport is the format of a batch report file
type HubJobReconciliationReportOptions ¶ added in v1.7.3
type HubJobReconciliationReportOptions struct {
Comment string `json:"comment,omitempty"`
AppInfo bool `json:"app_info,omitempty"`
AppVars bool `json:"app_vars,omitempty"`
AppFleets bool `json:"app_fleets,omitempty"`
DeviceInfo bool `json:"device_info,omitempty"`
DeviceActivity bool `json:"device_activity,omitempty"`
DeviceHealth bool `json:"device_health,omitempty"`
DeviceVars bool `json:"device_vars,omitempty"`
}
HubJobReconciliationReportOptions is a structure defining options for the report
type HubJobReconciliationReportStatus ¶ added in v1.7.3
type HubJobReconciliationReportStatus struct {
Error string `json:"error,omitempty"`
Errors map[string]string `json:"errors,omitempty"`
Actions map[string]string `json:"actions,omitempty"`
DeviceCount int `json:"device_count,omitempty"`
Provisioned []string `json:"provisioned,omitempty"`
}
HubJobReconciliationReportStatus is the status portion of a batch report file
type HubJobReconciliationRequests ¶ added in v1.7.3
type HubJobReconciliationRequests struct {
Comment string `json:"comment,omitempty"`
ProvisionProductUID string `json:"provision_product,omitempty"`
Disable bool `json:"disable,omitempty"`
Enable bool `json:"enable,omitempty"`
CaDisable bool `json:"connectivity_assurance_disable,omitempty"`
CaEnable bool `json:"connectivity_assurance_enable,omitempty"`
SnToDefault string `json:"sn_to_default,omitempty"`
SnToSet string `json:"sn_to_set,omitempty"`
VarsToDefault map[string]string `json:"vars_to_default,omitempty"`
VarsToSet map[string]string `json:"vars_to_set,omitempty"`
FleetsToDefault []string `json:"fleets_to_default,omitempty"`
FleetsToJoin []string `json:"fleets_to_join,omitempty"`
FleetsToLeave []string `json:"fleets_to_leave,omitempty"`
}
HubJobReconciliationRequests is a structure defining requests to apply to a set of selected devices. Note that if ProvisionProductUID is specified, the device will be provisioned if it isn't already provisioned, else it will fail if not provisioned. Also note that sn_to_set and vars_to_set use the same syntax as our standard API calls in that the value '-' means to clear the value.
type HubJobReport ¶ added in v1.7.3
type HubJobReport struct {
Type HubJobType `json:"type,omitempty"`
Version string `json:"version,omitempty"`
Comment string `json:"comment,omitempty"`
JobId string `json:"job_id"`
JobName string `json:"job_name"`
Status string `json:"status,omitempty"`
DryRun bool `json:"dry_run,omitempty"`
Cancel bool `json:"cancel,omitempty"`
SubmittedBy string `json:"who_submitted,omitempty"`
Submitted int64 `json:"when_submitted,omitempty"`
Started int64 `json:"when_started,omitempty"`
Updated int64 `json:"when_updated,omitempty"`
Completed int64 `json:"when_completed,omitempty"`
}
This header is present for every type of report
type HubJobType ¶ added in v1.7.3
type HubJobType string
Types of jobs
const ( HubJobTypeUnspecified HubJobType = "" HubJobTypeReconciliation HubJobType = "reconciliation" )
type HubReportReconciliation ¶ added in v1.7.3
type HubReportReconciliation struct {
Comment string `json:"comment,omitempty"`
Header HubJobReport `json:"job,omitempty"`
Status HubJobReconciliationReportStatus `json:"status,omitempty"`
Report *HubJobReconciliationReport `json:"output,omitempty"`
}
HubReportReconciliation is the format of the report generated by a reconciliation job.
type Location ¶
type Location struct {
When string `json:"when"`
Name string `json:"name"`
Country string `json:"country"`
Timezone string `json:"timezone"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
}
Location v1
The response object for a location.
type PostFleetRequest ¶ added in v1.4.8
type PostFleetRequest struct {
Label string `json:"label"`
SmartRule string `json:"smart_rule,omitempty"`
WatchdogMins int64 `json:"watchdog_mins,omitempty"`
}
PostFleetRequest v1
The request object for adding a fleet for a project
type PostProductRequest ¶
type PostProductRequest struct {
ProductUID string `json:"product_uid"`
Label string `json:"label"`
// Not required
AutoProvisionFleets []string `json:"auto_provision_fleets"`
// Not required
DisableDevicesByDefault bool `json:"disable_devices_by_default"`
}
PostProductRequest v1
The request object for adding a product.
type ProductResponse ¶
type ProductResponse struct {
UID string `json:"uid"`
Label string `json:"label"`
AutoProvisionFleets *[]string `json:"auto_provision_fleets"`
DisableDevicesByDefault bool `json:"disable_devices_by_default"`
}
ProductResponse v1
The response object for a product.
type ProvisionDeviceRequest ¶ added in v1.4.8
type ProvisionDeviceRequest struct {
ProductUID string `json:"product_uid"`
DeviceSN string `json:"device_sn"`
FleetUIDs *[]string `json:"fleet_uids,omitempty"`
}
ProvisionDeviceRequest v1
The request object for provisioning a device
type PutAppEnvironmentVariablesRequest ¶
type PutAppEnvironmentVariablesRequest struct {
// EnvironmentVariables
//
// The environment variables scoped at the app level
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutAppEnvironmentVariablesRequest v1
The request object for setting app environment variables.
type PutAppEnvironmentVariablesResponse ¶
type PutAppEnvironmentVariablesResponse struct {
// EnvironmentVariables
//
// The environment variables for this app.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutAppEnvironmentVariablesResponse v1
The response object for setting app environment variables.
type PutDeviceEnvironmentVariablesRequest ¶
type PutDeviceEnvironmentVariablesRequest struct {
// EnvironmentVariables
//
// The environment variables scoped at the device level
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutDeviceEnvironmentVariablesRequest v1
The request object for setting device environment variables.
type PutDeviceEnvironmentVariablesResponse ¶
type PutDeviceEnvironmentVariablesResponse struct {
// EnvironmentVariables
//
// The environment variables for this device that have been set using host firmware or the Notehub API or UI.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutDeviceEnvironmentVariablesResponse v1
The response object for setting device environment variables.
type PutDeviceEnvironmentVariablesWithPINRequest ¶
type PutDeviceEnvironmentVariablesWithPINRequest struct {
// EnvironmentVariables
//
// The environment variables scoped at the device level
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutDeviceEnvironmentVariablesWithPINRequest v1
The request object for setting device environment variables with a PIN. (The PIN comes in via a header)
type PutDeviceEnvironmentVariablesWithPINResponse ¶
type PutDeviceEnvironmentVariablesWithPINResponse struct {
// EnvironmentVariables
//
// The environment variables for this device that have been set using host firmware or the Notehub API or UI.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutDeviceEnvironmentVariablesWithPINResponse v1
The response object for setting device environment variables with a PIN.
type PutDeviceFleetsRequest ¶ added in v1.4.8
type PutDeviceFleetsRequest struct {
// FleetUIDs
//
// The fleets the device belong to
//
// required: true
FleetUIDs []string `json:"fleet_uids"`
}
PutDeviceFleetsRequest v1
The request object for adding a device to fleets
type PutFleetEnvironmentVariablesRequest ¶
type PutFleetEnvironmentVariablesRequest struct {
// EnvironmentVariables
//
// The environment variables scoped at the fleet level
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutFleetEnvironmentVariablesRequest v1
The request object for setting fleet environment variables.
type PutFleetEnvironmentVariablesResponse ¶
type PutFleetEnvironmentVariablesResponse struct {
// EnvironmentVariables
//
// The environment variables for this fleet.
//
// required: true
EnvironmentVariables map[string]string `json:"environment_variables"`
}
PutFleetEnvironmentVariablesResponse v1
The response object for setting fleet environment variables.
type PutFleetRequest ¶ added in v1.4.8
type PutFleetRequest struct {
Label string `json:"label"`
AddDevices []string `json:"addDevices,omitempty"`
RemoveDevices []string `json:"removeDevices,omitempty"`
SmartRule string `json:"smart_rule,omitempty"`
WatchdogMins int64 `json:"watchdog_mins,omitempty"`
}
PutFleetRequest v1
The request object for updating a fleet within a project