client

package module
v0.0.0-...-ef240eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2025 License: AGPL-3.0 Imports: 21 Imported by: 0

README

Go API client for client

This is the API for the Green Ecolution Management System.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: develop
  • Package version: 1.0.0
  • Generator version: 7.10.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://green-ecolution.de

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import client "github.com/green-ecolution/backend/pkg/client"

To use a proxy, set the environment variable HTTP_PROXY:

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 client.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value client.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), client.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 client.ContextOperationServerIndices and client.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), client.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), client.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
InfoAPI GetAppInfo Get /v1/info Get info about the app
PluginAPI GetPluginInfo Get /v1/plugin/{plugin_slug} Get a plugin info
PluginAPI GetPluginsList Get /v1/plugin Get a list of all registered plugins
PluginAPI PluginHeartbeat Post /v1/plugin/{plugin_slug}/heartbeat Heartbeat for a plugin
PluginAPI RefreshPluginToken Post /v1/plugin/{plugin_slug}/token/refresh Refresh plugin token
PluginAPI RegisterPlugin Post /v1/plugin Register a plugin
PluginAPI UnregisterPlugin Post /v1/plugin/{plugin_slug}/unregister Unregister a plugin
RegionAPI V1RegionGet Get /v1/region Get all regions
RegionAPI V1RegionIdGet Get /v1/region/{id} Get a region by ID
SensorAPI DeleteSensor Delete /v1/sensor/{sensor_id} Delete sensor
SensorAPI GetAllSensorDataById Get /v1/sensor/data/{sensor_id} Get all sensor data by id
SensorAPI GetAllSensors Get /v1/sensor Get all sensors
SensorAPI GetSensorById Get /v1/sensor/{sensor_id} Get sensor by ID
TreeAPI CreateTree Post /v1/tree Create tree
TreeAPI DeleteTree Delete /v1/tree/{tree_id} Delete tree
TreeAPI GetAllTrees Get /v1/tree Get all trees
TreeAPI GetTrees Get /v1/tree/{tree_id} Get tree by ID
TreeAPI UpdateTree Put /v1/tree/{tree_id} Update tree
TreeClusterAPI CreateTreeCluster Post /v1/cluster Create tree cluster
TreeClusterAPI DeleteTreeCluster Delete /v1/cluster/{cluster_id} Delete tree cluster
TreeClusterAPI GetAllTreeClusters Get /v1/cluster Get all tree clusters
TreeClusterAPI GetTreeClusterById Get /v1/cluster/{cluster_id} Get tree cluster by ID
TreeClusterAPI UpdateTreeCluster Put /v1/cluster/{cluster_id} Update tree cluster
TreeSensorAPI GetTreeBySensorId Get /v1/tree/sensor/{sensor_id} Get tree by sensor ID
UserAPI GetAllUsers Get /v1/user Get all users
UserAPI GetUsersByRole Get /v1/user/role/{role} Get users by role
UserAPI V1UserLoginGet Get /v1/user/login Request to login
UserAPI V1UserLoginTokenPost Post /v1/user/login/token Validate login code and request a access token
UserAPI V1UserLogoutPost Post /v1/user/logout Logout from the system
UserAPI V1UserPost Post /v1/user Register a new user
UserAPI V1UserTokenRefreshPost Post /v1/user/token/refresh Refresh token
VehicleAPI ArchiveVehicle Post /v1/vehicle/archive/{id} Archive vehicle
VehicleAPI CreateVehicle Post /v1/vehicle Create vehicle
VehicleAPI DeleteVehicle Delete /v1/vehicle/{id} Delete vehicle
VehicleAPI GetAllVehicles Get /v1/vehicle Get all vehicles
VehicleAPI GetArchiveVehicle Get /v1/vehicle/archive Get archived vehicle
VehicleAPI GetVehicleById Get /v1/vehicle/{id} Get vehicle by ID
VehicleAPI GetVehicleByPlate Get /v1/vehicle/plate/{plate} Get vehicle by plate
VehicleAPI UpdateVehicle Put /v1/vehicle/{id} Update vehicle
WateringPlanAPI CreateWateringPlan Post /v1/watering-plan Create watering plan
WateringPlanAPI DeleteWateringPlan Delete /v1/watering-plan/{id} Delete watering plan
WateringPlanAPI GetAllWateringPlans Get /v1/watering-plan Get all watering plans
WateringPlanAPI GetWateringPlanById Get /v1/watering-plan/{id} Get watering plan by ID
WateringPlanAPI UpdateWateringPlan Put /v1/watering-plan/{id} Update watering plan
WateringPlanAPI V1WateringPlanRouteGpxGpxNameGet Get /v1/watering-plan/route/gpx/{gpx_name} Generate route
WateringPlanAPI V1WateringPlanRoutePreviewPost Post /v1/watering-plan/route/preview Generate preview route

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

Keycloak

Example

auth := context.WithValue(context.Background(), client.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, client.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

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

info@green-ecolution.de

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// 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")
)
View Source
var AllowedDrivingLicenseEnumValues = []DrivingLicense{
	"B",
	"BE",
	"C",
	"CE",
}

All allowed values of DrivingLicense enum

View Source
var AllowedGeoJsonTypeEnumValues = []GeoJsonType{
	"FeatureCollection",
}

All allowed values of GeoJsonType enum

View Source
var AllowedSensorStatusEnumValues = []SensorStatus{
	"online",
	"offline",
	"unknown",
}

All allowed values of SensorStatus enum

View Source
var AllowedSoilConditionEnumValues = []SoilCondition{
	"schluffig",
	"sandig",
	"lehmig",
	"tonig",
	"unknown",
}

All allowed values of SoilCondition enum

View Source
var AllowedUserRoleEnumValues = []UserRole{
	"tbz",
	"green-ecolution",
	"smarte-grenzregion",
	"unknown",
}

All allowed values of UserRole enum

View Source
var AllowedUserStatusEnumValues = []UserStatus{
	"available",
	"absent",
	"unknown",
}

All allowed values of UserStatus enum

View Source
var AllowedVehicleStatusEnumValues = []VehicleStatus{
	"active",
	"available",
	"not available",
	"unknown",
}

All allowed values of VehicleStatus enum

View Source
var AllowedVehicleTypeEnumValues = []VehicleType{
	"transporter",
	"trailer",
	"unknown",
}

All allowed values of VehicleType enum

View Source
var AllowedWateringPlanStatusEnumValues = []WateringPlanStatus{
	"planned",
	"active",
	"canceled",
	"finished",
	"not competed",
	"unknown",
}

All allowed values of WateringPlanStatus enum

View Source
var AllowedWateringStatusEnumValues = []WateringStatus{
	"good",
	"moderate",
	"bad",
	"just watered",
	"unknown",
}

All allowed values of WateringStatus enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	InfoAPI *InfoAPIService

	PluginAPI *PluginAPIService

	RegionAPI *RegionAPIService

	SensorAPI *SensorAPIService

	TreeAPI *TreeAPIService

	TreeClusterAPI *TreeClusterAPIService

	TreeSensorAPI *TreeSensorAPIService

	UserAPI *UserAPIService

	VehicleAPI *VehicleAPIService

	WateringPlanAPI *WateringPlanAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Green Space Management API API vdevelop In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *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 (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

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:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiArchiveVehicleRequest

type ApiArchiveVehicleRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiArchiveVehicleRequest) Execute

func (r ApiArchiveVehicleRequest) Execute() (*http.Response, error)

type ApiCreateTreeClusterRequest

type ApiCreateTreeClusterRequest struct {
	ApiService *TreeClusterAPIService
	// contains filtered or unexported fields
}

func (ApiCreateTreeClusterRequest) Body

Tree Cluster Create Request

func (ApiCreateTreeClusterRequest) Execute

type ApiCreateTreeRequest

type ApiCreateTreeRequest struct {
	ApiService *TreeAPIService
	// contains filtered or unexported fields
}

func (ApiCreateTreeRequest) Body

Tree to create

func (ApiCreateTreeRequest) Execute

func (r ApiCreateTreeRequest) Execute() (*Tree, *http.Response, error)

type ApiCreateVehicleRequest

type ApiCreateVehicleRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiCreateVehicleRequest) Body

Vehicle Create Request

func (ApiCreateVehicleRequest) Execute

type ApiCreateWateringPlanRequest

type ApiCreateWateringPlanRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiCreateWateringPlanRequest) Body

Watering Plan Create Request

func (ApiCreateWateringPlanRequest) Execute

type ApiDeleteSensorRequest

type ApiDeleteSensorRequest struct {
	ApiService *SensorAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteSensorRequest) Execute

func (r ApiDeleteSensorRequest) Execute() (*http.Response, error)

type ApiDeleteTreeClusterRequest

type ApiDeleteTreeClusterRequest struct {
	ApiService *TreeClusterAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteTreeClusterRequest) Execute

type ApiDeleteTreeRequest

type ApiDeleteTreeRequest struct {
	ApiService *TreeAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteTreeRequest) Execute

func (r ApiDeleteTreeRequest) Execute() (*http.Response, error)

type ApiDeleteVehicleRequest

type ApiDeleteVehicleRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteVehicleRequest) Execute

func (r ApiDeleteVehicleRequest) Execute() (*http.Response, error)

type ApiDeleteWateringPlanRequest

type ApiDeleteWateringPlanRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteWateringPlanRequest) Execute

type ApiGetAllSensorDataByIdRequest

type ApiGetAllSensorDataByIdRequest struct {
	ApiService *SensorAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllSensorDataByIdRequest) Execute

type ApiGetAllSensorsRequest

type ApiGetAllSensorsRequest struct {
	ApiService *SensorAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllSensorsRequest) Execute

func (ApiGetAllSensorsRequest) Limit

Limit

func (ApiGetAllSensorsRequest) Page

Page

func (ApiGetAllSensorsRequest) Provider

Provider

type ApiGetAllTreeClustersRequest

type ApiGetAllTreeClustersRequest struct {
	ApiService *TreeClusterAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllTreeClustersRequest) Execute

func (ApiGetAllTreeClustersRequest) Limit

Limit

func (ApiGetAllTreeClustersRequest) Page

Page

func (ApiGetAllTreeClustersRequest) Provider

Provider

type ApiGetAllTreesRequest

type ApiGetAllTreesRequest struct {
	ApiService *TreeAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllTreesRequest) Execute

func (r ApiGetAllTreesRequest) Execute() (*TreeList, *http.Response, error)

func (ApiGetAllTreesRequest) Limit

Limit

func (ApiGetAllTreesRequest) Page

Page

func (ApiGetAllTreesRequest) Provider

func (r ApiGetAllTreesRequest) Provider(provider string) ApiGetAllTreesRequest

Provider

type ApiGetAllUsersRequest

type ApiGetAllUsersRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllUsersRequest) Execute

func (r ApiGetAllUsersRequest) Execute() (*UserList, *http.Response, error)

func (ApiGetAllUsersRequest) Limit

Limit

func (ApiGetAllUsersRequest) Limit2

Limit

func (ApiGetAllUsersRequest) Page

Page

func (ApiGetAllUsersRequest) UserIds

User IDs

type ApiGetAllVehiclesRequest

type ApiGetAllVehiclesRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllVehiclesRequest) Archived

With archived vehicles

func (ApiGetAllVehiclesRequest) Execute

func (ApiGetAllVehiclesRequest) Limit

Limit

func (ApiGetAllVehiclesRequest) Page

Page

func (ApiGetAllVehiclesRequest) Provider

Provider

func (ApiGetAllVehiclesRequest) Type_

Vehicle Type

type ApiGetAllWateringPlansRequest

type ApiGetAllWateringPlansRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiGetAllWateringPlansRequest) Execute

func (ApiGetAllWateringPlansRequest) Limit

Limit

func (ApiGetAllWateringPlansRequest) Page

Page

func (ApiGetAllWateringPlansRequest) Provider

Provider

type ApiGetAppInfoRequest

type ApiGetAppInfoRequest struct {
	ApiService *InfoAPIService
	// contains filtered or unexported fields
}

func (ApiGetAppInfoRequest) Execute

func (r ApiGetAppInfoRequest) Execute() (*AppInfo, *http.Response, error)

type ApiGetArchiveVehicleRequest

type ApiGetArchiveVehicleRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiGetArchiveVehicleRequest) Execute

type ApiGetPluginInfoRequest

type ApiGetPluginInfoRequest struct {
	ApiService *PluginAPIService
	// contains filtered or unexported fields
}

func (ApiGetPluginInfoRequest) Execute

func (r ApiGetPluginInfoRequest) Execute() (*Plugin, *http.Response, error)

type ApiGetPluginsListRequest

type ApiGetPluginsListRequest struct {
	ApiService *PluginAPIService
	// contains filtered or unexported fields
}

func (ApiGetPluginsListRequest) Execute

type ApiGetSensorByIdRequest

type ApiGetSensorByIdRequest struct {
	ApiService *SensorAPIService
	// contains filtered or unexported fields
}

func (ApiGetSensorByIdRequest) Execute

func (r ApiGetSensorByIdRequest) Execute() (*Sensor, *http.Response, error)

type ApiGetTreeBySensorIdRequest

type ApiGetTreeBySensorIdRequest struct {
	ApiService *TreeSensorAPIService
	// contains filtered or unexported fields
}

func (ApiGetTreeBySensorIdRequest) Execute

type ApiGetTreeClusterByIdRequest

type ApiGetTreeClusterByIdRequest struct {
	ApiService *TreeClusterAPIService
	// contains filtered or unexported fields
}

func (ApiGetTreeClusterByIdRequest) Execute

type ApiGetTreesRequest

type ApiGetTreesRequest struct {
	ApiService *TreeAPIService
	// contains filtered or unexported fields
}

func (ApiGetTreesRequest) Execute

func (r ApiGetTreesRequest) Execute() (*Tree, *http.Response, error)

type ApiGetUsersByRoleRequest

type ApiGetUsersByRoleRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiGetUsersByRoleRequest) Execute

func (ApiGetUsersByRoleRequest) Limit

Limit

func (ApiGetUsersByRoleRequest) Page

Page

type ApiGetVehicleByIdRequest

type ApiGetVehicleByIdRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiGetVehicleByIdRequest) Execute

type ApiGetVehicleByPlateRequest

type ApiGetVehicleByPlateRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiGetVehicleByPlateRequest) Execute

type ApiGetWateringPlanByIdRequest

type ApiGetWateringPlanByIdRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiGetWateringPlanByIdRequest) Execute

type ApiPluginHeartbeatRequest

type ApiPluginHeartbeatRequest struct {
	ApiService *PluginAPIService
	// contains filtered or unexported fields
}

func (ApiPluginHeartbeatRequest) Execute

type ApiRefreshPluginTokenRequest

type ApiRefreshPluginTokenRequest struct {
	ApiService *PluginAPIService
	// contains filtered or unexported fields
}

func (ApiRefreshPluginTokenRequest) Body

Plugin authentication

func (ApiRefreshPluginTokenRequest) Execute

type ApiRegisterPluginRequest

type ApiRegisterPluginRequest struct {
	ApiService *PluginAPIService
	// contains filtered or unexported fields
}

func (ApiRegisterPluginRequest) Body

Plugin registration request

func (ApiRegisterPluginRequest) Execute

type ApiUnregisterPluginRequest

type ApiUnregisterPluginRequest struct {
	ApiService *PluginAPIService
	// contains filtered or unexported fields
}

func (ApiUnregisterPluginRequest) Execute

type ApiUpdateTreeClusterRequest

type ApiUpdateTreeClusterRequest struct {
	ApiService *TreeClusterAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateTreeClusterRequest) Body

Tree Cluster Update Request

func (ApiUpdateTreeClusterRequest) Execute

type ApiUpdateTreeRequest

type ApiUpdateTreeRequest struct {
	ApiService *TreeAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateTreeRequest) Body

Tree to update

func (ApiUpdateTreeRequest) Execute

func (r ApiUpdateTreeRequest) Execute() (*Tree, *http.Response, error)

type ApiUpdateVehicleRequest

type ApiUpdateVehicleRequest struct {
	ApiService *VehicleAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateVehicleRequest) Body

Vehicle Update Request

func (ApiUpdateVehicleRequest) Execute

type ApiUpdateWateringPlanRequest

type ApiUpdateWateringPlanRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiUpdateWateringPlanRequest) Body

Watering Plan Update Request

func (ApiUpdateWateringPlanRequest) Execute

type ApiV1RegionGetRequest

type ApiV1RegionGetRequest struct {
	ApiService *RegionAPIService
	// contains filtered or unexported fields
}

func (ApiV1RegionGetRequest) Execute

func (ApiV1RegionGetRequest) Limit

Limit

func (ApiV1RegionGetRequest) Page

Page

type ApiV1RegionIdGetRequest

type ApiV1RegionIdGetRequest struct {
	ApiService *RegionAPIService
	// contains filtered or unexported fields
}

func (ApiV1RegionIdGetRequest) Execute

func (r ApiV1RegionIdGetRequest) Execute() (*Region, *http.Response, error)

type ApiV1UserLoginGetRequest

type ApiV1UserLoginGetRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiV1UserLoginGetRequest) Execute

func (ApiV1UserLoginGetRequest) RedirectUrl

func (r ApiV1UserLoginGetRequest) RedirectUrl(redirectUrl string) ApiV1UserLoginGetRequest

Redirect URL

type ApiV1UserLoginTokenPostRequest

type ApiV1UserLoginTokenPostRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiV1UserLoginTokenPostRequest) Body

Callback information

func (ApiV1UserLoginTokenPostRequest) Execute

func (ApiV1UserLoginTokenPostRequest) RedirectUrl

Redirect URL

type ApiV1UserLogoutPostRequest

type ApiV1UserLogoutPostRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiV1UserLogoutPostRequest) Body

Logout information

func (ApiV1UserLogoutPostRequest) Execute

type ApiV1UserPostRequest

type ApiV1UserPostRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiV1UserPostRequest) Execute

func (r ApiV1UserPostRequest) Execute() (*User, *http.Response, error)

func (ApiV1UserPostRequest) User

User information

type ApiV1UserTokenRefreshPostRequest

type ApiV1UserTokenRefreshPostRequest struct {
	ApiService *UserAPIService
	// contains filtered or unexported fields
}

func (ApiV1UserTokenRefreshPostRequest) Body

Refresh token information

func (ApiV1UserTokenRefreshPostRequest) Execute

type ApiV1WateringPlanRouteGpxGpxNameGetRequest

type ApiV1WateringPlanRouteGpxGpxNameGetRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiV1WateringPlanRouteGpxGpxNameGetRequest) Execute

type ApiV1WateringPlanRoutePreviewPostRequest

type ApiV1WateringPlanRoutePreviewPostRequest struct {
	ApiService *WateringPlanAPIService
	// contains filtered or unexported fields
}

func (ApiV1WateringPlanRoutePreviewPostRequest) Body

Route Request

func (ApiV1WateringPlanRoutePreviewPostRequest) Execute

type AppInfo

type AppInfo struct {
	BuildTime string     `json:"buildTime"`
	Git       GitInfo    `json:"git"`
	GoVersion string     `json:"goVersion"`
	Map       MapInfo    `json:"map"`
	Server    ServerInfo `json:"server"`
	Version   string     `json:"version"`
}

AppInfo struct for AppInfo

func NewAppInfo

func NewAppInfo(buildTime string, git GitInfo, goVersion string, map_ MapInfo, server ServerInfo, version string) *AppInfo

NewAppInfo instantiates a new AppInfo object This constructor will assign default values to properties that have it defined, 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 NewAppInfoWithDefaults

func NewAppInfoWithDefaults() *AppInfo

NewAppInfoWithDefaults instantiates a new AppInfo object This 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 (*AppInfo) GetBuildTime

func (o *AppInfo) GetBuildTime() string

GetBuildTime returns the BuildTime field value

func (*AppInfo) GetBuildTimeOk

func (o *AppInfo) GetBuildTimeOk() (*string, bool)

GetBuildTimeOk returns a tuple with the BuildTime field value and a boolean to check if the value has been set.

func (*AppInfo) GetGit

func (o *AppInfo) GetGit() GitInfo

GetGit returns the Git field value

func (*AppInfo) GetGitOk

func (o *AppInfo) GetGitOk() (*GitInfo, bool)

GetGitOk returns a tuple with the Git field value and a boolean to check if the value has been set.

func (*AppInfo) GetGoVersion

func (o *AppInfo) GetGoVersion() string

GetGoVersion returns the GoVersion field value

func (*AppInfo) GetGoVersionOk

func (o *AppInfo) GetGoVersionOk() (*string, bool)

GetGoVersionOk returns a tuple with the GoVersion field value and a boolean to check if the value has been set.

func (*AppInfo) GetMap

func (o *AppInfo) GetMap() MapInfo

GetMap returns the Map field value

func (*AppInfo) GetMapOk

func (o *AppInfo) GetMapOk() (*MapInfo, bool)

GetMapOk returns a tuple with the Map field value and a boolean to check if the value has been set.

func (*AppInfo) GetServer

func (o *AppInfo) GetServer() ServerInfo

GetServer returns the Server field value

func (*AppInfo) GetServerOk

func (o *AppInfo) GetServerOk() (*ServerInfo, bool)

GetServerOk returns a tuple with the Server field value and a boolean to check if the value has been set.

func (*AppInfo) GetVersion

func (o *AppInfo) GetVersion() string

GetVersion returns the Version field value

func (*AppInfo) GetVersionOk

func (o *AppInfo) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (AppInfo) MarshalJSON

func (o AppInfo) MarshalJSON() ([]byte, error)

func (*AppInfo) SetBuildTime

func (o *AppInfo) SetBuildTime(v string)

SetBuildTime sets field value

func (*AppInfo) SetGit

func (o *AppInfo) SetGit(v GitInfo)

SetGit sets field value

func (*AppInfo) SetGoVersion

func (o *AppInfo) SetGoVersion(v string)

SetGoVersion sets field value

func (*AppInfo) SetMap

func (o *AppInfo) SetMap(v MapInfo)

SetMap sets field value

func (*AppInfo) SetServer

func (o *AppInfo) SetServer(v ServerInfo)

SetServer sets field value

func (*AppInfo) SetVersion

func (o *AppInfo) SetVersion(v string)

SetVersion sets field value

func (AppInfo) ToMap

func (o AppInfo) ToMap() (map[string]interface{}, error)

func (*AppInfo) UnmarshalJSON

func (o *AppInfo) UnmarshalJSON(data []byte) (err error)

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ClientToken

type ClientToken struct {
	AccessToken      string `json:"access_token"`
	ExpiresIn        int32  `json:"expires_in"`
	Expiry           string `json:"expiry"`
	IdToken          string `json:"id_token"`
	NotBeforePolicy  int32  `json:"not_before_policy"`
	RefreshExpiresIn int32  `json:"refresh_expires_in"`
	RefreshToken     string `json:"refresh_token"`
	Scope            string `json:"scope"`
	SessionState     string `json:"session_state"`
	TokenType        string `json:"token_type"`
}

ClientToken struct for ClientToken

func NewClientToken

func NewClientToken(accessToken string, expiresIn int32, expiry string, idToken string, notBeforePolicy int32, refreshExpiresIn int32, refreshToken string, scope string, sessionState string, tokenType string) *ClientToken

NewClientToken instantiates a new ClientToken object This constructor will assign default values to properties that have it defined, 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 NewClientTokenWithDefaults

func NewClientTokenWithDefaults() *ClientToken

NewClientTokenWithDefaults instantiates a new ClientToken object This 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 (*ClientToken) GetAccessToken

func (o *ClientToken) GetAccessToken() string

GetAccessToken returns the AccessToken field value

func (*ClientToken) GetAccessTokenOk

func (o *ClientToken) GetAccessTokenOk() (*string, bool)

GetAccessTokenOk returns a tuple with the AccessToken field value and a boolean to check if the value has been set.

func (*ClientToken) GetExpiresIn

func (o *ClientToken) GetExpiresIn() int32

GetExpiresIn returns the ExpiresIn field value

func (*ClientToken) GetExpiresInOk

func (o *ClientToken) GetExpiresInOk() (*int32, bool)

GetExpiresInOk returns a tuple with the ExpiresIn field value and a boolean to check if the value has been set.

func (*ClientToken) GetExpiry

func (o *ClientToken) GetExpiry() string

GetExpiry returns the Expiry field value

func (*ClientToken) GetExpiryOk

func (o *ClientToken) GetExpiryOk() (*string, bool)

GetExpiryOk returns a tuple with the Expiry field value and a boolean to check if the value has been set.

func (*ClientToken) GetIdToken

func (o *ClientToken) GetIdToken() string

GetIdToken returns the IdToken field value

func (*ClientToken) GetIdTokenOk

func (o *ClientToken) GetIdTokenOk() (*string, bool)

GetIdTokenOk returns a tuple with the IdToken field value and a boolean to check if the value has been set.

func (*ClientToken) GetNotBeforePolicy

func (o *ClientToken) GetNotBeforePolicy() int32

GetNotBeforePolicy returns the NotBeforePolicy field value

func (*ClientToken) GetNotBeforePolicyOk

func (o *ClientToken) GetNotBeforePolicyOk() (*int32, bool)

GetNotBeforePolicyOk returns a tuple with the NotBeforePolicy field value and a boolean to check if the value has been set.

func (*ClientToken) GetRefreshExpiresIn

func (o *ClientToken) GetRefreshExpiresIn() int32

GetRefreshExpiresIn returns the RefreshExpiresIn field value

func (*ClientToken) GetRefreshExpiresInOk

func (o *ClientToken) GetRefreshExpiresInOk() (*int32, bool)

GetRefreshExpiresInOk returns a tuple with the RefreshExpiresIn field value and a boolean to check if the value has been set.

func (*ClientToken) GetRefreshToken

func (o *ClientToken) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field value

func (*ClientToken) GetRefreshTokenOk

func (o *ClientToken) GetRefreshTokenOk() (*string, bool)

GetRefreshTokenOk returns a tuple with the RefreshToken field value and a boolean to check if the value has been set.

func (*ClientToken) GetScope

func (o *ClientToken) GetScope() string

GetScope returns the Scope field value

func (*ClientToken) GetScopeOk

func (o *ClientToken) GetScopeOk() (*string, bool)

GetScopeOk returns a tuple with the Scope field value and a boolean to check if the value has been set.

func (*ClientToken) GetSessionState

func (o *ClientToken) GetSessionState() string

GetSessionState returns the SessionState field value

func (*ClientToken) GetSessionStateOk

func (o *ClientToken) GetSessionStateOk() (*string, bool)

GetSessionStateOk returns a tuple with the SessionState field value and a boolean to check if the value has been set.

func (*ClientToken) GetTokenType

func (o *ClientToken) GetTokenType() string

GetTokenType returns the TokenType field value

func (*ClientToken) GetTokenTypeOk

func (o *ClientToken) GetTokenTypeOk() (*string, bool)

GetTokenTypeOk returns a tuple with the TokenType field value and a boolean to check if the value has been set.

func (ClientToken) MarshalJSON

func (o ClientToken) MarshalJSON() ([]byte, error)

func (*ClientToken) SetAccessToken

func (o *ClientToken) SetAccessToken(v string)

SetAccessToken sets field value

func (*ClientToken) SetExpiresIn

func (o *ClientToken) SetExpiresIn(v int32)

SetExpiresIn sets field value

func (*ClientToken) SetExpiry

func (o *ClientToken) SetExpiry(v string)

SetExpiry sets field value

func (*ClientToken) SetIdToken

func (o *ClientToken) SetIdToken(v string)

SetIdToken sets field value

func (*ClientToken) SetNotBeforePolicy

func (o *ClientToken) SetNotBeforePolicy(v int32)

SetNotBeforePolicy sets field value

func (*ClientToken) SetRefreshExpiresIn

func (o *ClientToken) SetRefreshExpiresIn(v int32)

SetRefreshExpiresIn sets field value

func (*ClientToken) SetRefreshToken

func (o *ClientToken) SetRefreshToken(v string)

SetRefreshToken sets field value

func (*ClientToken) SetScope

func (o *ClientToken) SetScope(v string)

SetScope sets field value

func (*ClientToken) SetSessionState

func (o *ClientToken) SetSessionState(v string)

SetSessionState sets field value

func (*ClientToken) SetTokenType

func (o *ClientToken) SetTokenType(v string)

SetTokenType sets field value

func (ClientToken) ToMap

func (o ClientToken) ToMap() (map[string]interface{}, error)

func (*ClientToken) UnmarshalJSON

func (o *ClientToken) UnmarshalJSON(data []byte) (err error)

type Configuration

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
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DrivingLicense

type DrivingLicense string

DrivingLicense the model 'DrivingLicense'

const (
	DrivingLicenseB  DrivingLicense = "B"
	DrivingLicenseBE DrivingLicense = "BE"
	DrivingLicenseC  DrivingLicense = "C"
	DrivingLicenseCE DrivingLicense = "CE"
)

List of DrivingLicense

func NewDrivingLicenseFromValue

func NewDrivingLicenseFromValue(v string) (*DrivingLicense, error)

NewDrivingLicenseFromValue returns a pointer to a valid DrivingLicense for the value passed as argument, or an error if the value passed is not allowed by the enum

func (DrivingLicense) IsValid

func (v DrivingLicense) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (DrivingLicense) Ptr

func (v DrivingLicense) Ptr() *DrivingLicense

Ptr returns reference to DrivingLicense value

func (*DrivingLicense) UnmarshalJSON

func (v *DrivingLicense) UnmarshalJSON(src []byte) error

type EvaluationValue

type EvaluationValue struct {
	ConsumedWater  float32 `json:"consumed_water"`
	TreeClusterId  int32   `json:"tree_cluster_id"`
	WateringPlanId int32   `json:"watering_plan_id"`
}

EvaluationValue struct for EvaluationValue

func NewEvaluationValue

func NewEvaluationValue(consumedWater float32, treeClusterId int32, wateringPlanId int32) *EvaluationValue

NewEvaluationValue instantiates a new EvaluationValue object This constructor will assign default values to properties that have it defined, 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 NewEvaluationValueWithDefaults

func NewEvaluationValueWithDefaults() *EvaluationValue

NewEvaluationValueWithDefaults instantiates a new EvaluationValue object This 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 (*EvaluationValue) GetConsumedWater

func (o *EvaluationValue) GetConsumedWater() float32

GetConsumedWater returns the ConsumedWater field value

func (*EvaluationValue) GetConsumedWaterOk

func (o *EvaluationValue) GetConsumedWaterOk() (*float32, bool)

GetConsumedWaterOk returns a tuple with the ConsumedWater field value and a boolean to check if the value has been set.

func (*EvaluationValue) GetTreeClusterId

func (o *EvaluationValue) GetTreeClusterId() int32

GetTreeClusterId returns the TreeClusterId field value

func (*EvaluationValue) GetTreeClusterIdOk

func (o *EvaluationValue) GetTreeClusterIdOk() (*int32, bool)

GetTreeClusterIdOk returns a tuple with the TreeClusterId field value and a boolean to check if the value has been set.

func (*EvaluationValue) GetWateringPlanId

func (o *EvaluationValue) GetWateringPlanId() int32

GetWateringPlanId returns the WateringPlanId field value

func (*EvaluationValue) GetWateringPlanIdOk

func (o *EvaluationValue) GetWateringPlanIdOk() (*int32, bool)

GetWateringPlanIdOk returns a tuple with the WateringPlanId field value and a boolean to check if the value has been set.

func (EvaluationValue) MarshalJSON

func (o EvaluationValue) MarshalJSON() ([]byte, error)

func (*EvaluationValue) SetConsumedWater

func (o *EvaluationValue) SetConsumedWater(v float32)

SetConsumedWater sets field value

func (*EvaluationValue) SetTreeClusterId

func (o *EvaluationValue) SetTreeClusterId(v int32)

SetTreeClusterId sets field value

func (*EvaluationValue) SetWateringPlanId

func (o *EvaluationValue) SetWateringPlanId(v int32)

SetWateringPlanId sets field value

func (EvaluationValue) ToMap

func (o EvaluationValue) ToMap() (map[string]interface{}, error)

func (*EvaluationValue) UnmarshalJSON

func (o *EvaluationValue) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GeoJSONLocation

type GeoJSONLocation struct {
	Latitude  float32 `json:"latitude"`
	Longitude float32 `json:"longitude"`
}

GeoJSONLocation struct for GeoJSONLocation

func NewGeoJSONLocation

func NewGeoJSONLocation(latitude float32, longitude float32) *GeoJSONLocation

NewGeoJSONLocation instantiates a new GeoJSONLocation object This constructor will assign default values to properties that have it defined, 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 NewGeoJSONLocationWithDefaults

func NewGeoJSONLocationWithDefaults() *GeoJSONLocation

NewGeoJSONLocationWithDefaults instantiates a new GeoJSONLocation object This 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 (*GeoJSONLocation) GetLatitude

func (o *GeoJSONLocation) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*GeoJSONLocation) GetLatitudeOk

func (o *GeoJSONLocation) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*GeoJSONLocation) GetLongitude

func (o *GeoJSONLocation) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*GeoJSONLocation) GetLongitudeOk

func (o *GeoJSONLocation) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (GeoJSONLocation) MarshalJSON

func (o GeoJSONLocation) MarshalJSON() ([]byte, error)

func (*GeoJSONLocation) SetLatitude

func (o *GeoJSONLocation) SetLatitude(v float32)

SetLatitude sets field value

func (*GeoJSONLocation) SetLongitude

func (o *GeoJSONLocation) SetLongitude(v float32)

SetLongitude sets field value

func (GeoJSONLocation) ToMap

func (o GeoJSONLocation) ToMap() (map[string]interface{}, error)

func (*GeoJSONLocation) UnmarshalJSON

func (o *GeoJSONLocation) UnmarshalJSON(data []byte) (err error)

type GeoJSONMetadata

type GeoJSONMetadata struct {
	EndPoint      GeoJSONLocation `json:"end_point"`
	StartPoint    GeoJSONLocation `json:"start_point"`
	WateringPoint GeoJSONLocation `json:"watering_point"`
}

GeoJSONMetadata struct for GeoJSONMetadata

func NewGeoJSONMetadata

func NewGeoJSONMetadata(endPoint GeoJSONLocation, startPoint GeoJSONLocation, wateringPoint GeoJSONLocation) *GeoJSONMetadata

NewGeoJSONMetadata instantiates a new GeoJSONMetadata object This constructor will assign default values to properties that have it defined, 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 NewGeoJSONMetadataWithDefaults

func NewGeoJSONMetadataWithDefaults() *GeoJSONMetadata

NewGeoJSONMetadataWithDefaults instantiates a new GeoJSONMetadata object This 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 (*GeoJSONMetadata) GetEndPoint

func (o *GeoJSONMetadata) GetEndPoint() GeoJSONLocation

GetEndPoint returns the EndPoint field value

func (*GeoJSONMetadata) GetEndPointOk

func (o *GeoJSONMetadata) GetEndPointOk() (*GeoJSONLocation, bool)

GetEndPointOk returns a tuple with the EndPoint field value and a boolean to check if the value has been set.

func (*GeoJSONMetadata) GetStartPoint

func (o *GeoJSONMetadata) GetStartPoint() GeoJSONLocation

GetStartPoint returns the StartPoint field value

func (*GeoJSONMetadata) GetStartPointOk

func (o *GeoJSONMetadata) GetStartPointOk() (*GeoJSONLocation, bool)

GetStartPointOk returns a tuple with the StartPoint field value and a boolean to check if the value has been set.

func (*GeoJSONMetadata) GetWateringPoint

func (o *GeoJSONMetadata) GetWateringPoint() GeoJSONLocation

GetWateringPoint returns the WateringPoint field value

func (*GeoJSONMetadata) GetWateringPointOk

func (o *GeoJSONMetadata) GetWateringPointOk() (*GeoJSONLocation, bool)

GetWateringPointOk returns a tuple with the WateringPoint field value and a boolean to check if the value has been set.

func (GeoJSONMetadata) MarshalJSON

func (o GeoJSONMetadata) MarshalJSON() ([]byte, error)

func (*GeoJSONMetadata) SetEndPoint

func (o *GeoJSONMetadata) SetEndPoint(v GeoJSONLocation)

SetEndPoint sets field value

func (*GeoJSONMetadata) SetStartPoint

func (o *GeoJSONMetadata) SetStartPoint(v GeoJSONLocation)

SetStartPoint sets field value

func (*GeoJSONMetadata) SetWateringPoint

func (o *GeoJSONMetadata) SetWateringPoint(v GeoJSONLocation)

SetWateringPoint sets field value

func (GeoJSONMetadata) ToMap

func (o GeoJSONMetadata) ToMap() (map[string]interface{}, error)

func (*GeoJSONMetadata) UnmarshalJSON

func (o *GeoJSONMetadata) UnmarshalJSON(data []byte) (err error)

type GeoJson

type GeoJson struct {
	Bbox     []float32        `json:"bbox"`
	Features []GeoJsonFeature `json:"features"`
	Metadata GeoJSONMetadata  `json:"metadata"`
	Type     GeoJsonType      `json:"type"`
}

GeoJson struct for GeoJson

func NewGeoJson

func NewGeoJson(bbox []float32, features []GeoJsonFeature, metadata GeoJSONMetadata, type_ GeoJsonType) *GeoJson

NewGeoJson instantiates a new GeoJson object This constructor will assign default values to properties that have it defined, 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 NewGeoJsonWithDefaults

func NewGeoJsonWithDefaults() *GeoJson

NewGeoJsonWithDefaults instantiates a new GeoJson object This 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 (*GeoJson) GetBbox

func (o *GeoJson) GetBbox() []float32

GetBbox returns the Bbox field value

func (*GeoJson) GetBboxOk

func (o *GeoJson) GetBboxOk() ([]float32, bool)

GetBboxOk returns a tuple with the Bbox field value and a boolean to check if the value has been set.

func (*GeoJson) GetFeatures

func (o *GeoJson) GetFeatures() []GeoJsonFeature

GetFeatures returns the Features field value

func (*GeoJson) GetFeaturesOk

func (o *GeoJson) GetFeaturesOk() ([]GeoJsonFeature, bool)

GetFeaturesOk returns a tuple with the Features field value and a boolean to check if the value has been set.

func (*GeoJson) GetMetadata

func (o *GeoJson) GetMetadata() GeoJSONMetadata

GetMetadata returns the Metadata field value

func (*GeoJson) GetMetadataOk

func (o *GeoJson) GetMetadataOk() (*GeoJSONMetadata, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set.

func (*GeoJson) GetType

func (o *GeoJson) GetType() GeoJsonType

GetType returns the Type field value

func (*GeoJson) GetTypeOk

func (o *GeoJson) GetTypeOk() (*GeoJsonType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (GeoJson) MarshalJSON

func (o GeoJson) MarshalJSON() ([]byte, error)

func (*GeoJson) SetBbox

func (o *GeoJson) SetBbox(v []float32)

SetBbox sets field value

func (*GeoJson) SetFeatures

func (o *GeoJson) SetFeatures(v []GeoJsonFeature)

SetFeatures sets field value

func (*GeoJson) SetMetadata

func (o *GeoJson) SetMetadata(v GeoJSONMetadata)

SetMetadata sets field value

func (*GeoJson) SetType

func (o *GeoJson) SetType(v GeoJsonType)

SetType sets field value

func (GeoJson) ToMap

func (o GeoJson) ToMap() (map[string]interface{}, error)

func (*GeoJson) UnmarshalJSON

func (o *GeoJson) UnmarshalJSON(data []byte) (err error)

type GeoJsonFeature

type GeoJsonFeature struct {
	Bbox       []float32                         `json:"bbox"`
	Geometry   GeoJsonGeometry                   `json:"geometry"`
	Properties map[string]map[string]interface{} `json:"properties"`
	Type       GeoJsonType                       `json:"type"`
}

GeoJsonFeature struct for GeoJsonFeature

func NewGeoJsonFeature

func NewGeoJsonFeature(bbox []float32, geometry GeoJsonGeometry, properties map[string]map[string]interface{}, type_ GeoJsonType) *GeoJsonFeature

NewGeoJsonFeature instantiates a new GeoJsonFeature object This constructor will assign default values to properties that have it defined, 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 NewGeoJsonFeatureWithDefaults

func NewGeoJsonFeatureWithDefaults() *GeoJsonFeature

NewGeoJsonFeatureWithDefaults instantiates a new GeoJsonFeature object This 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 (*GeoJsonFeature) GetBbox

func (o *GeoJsonFeature) GetBbox() []float32

GetBbox returns the Bbox field value

func (*GeoJsonFeature) GetBboxOk

func (o *GeoJsonFeature) GetBboxOk() ([]float32, bool)

GetBboxOk returns a tuple with the Bbox field value and a boolean to check if the value has been set.

func (*GeoJsonFeature) GetGeometry

func (o *GeoJsonFeature) GetGeometry() GeoJsonGeometry

GetGeometry returns the Geometry field value

func (*GeoJsonFeature) GetGeometryOk

func (o *GeoJsonFeature) GetGeometryOk() (*GeoJsonGeometry, bool)

GetGeometryOk returns a tuple with the Geometry field value and a boolean to check if the value has been set.

func (*GeoJsonFeature) GetProperties

func (o *GeoJsonFeature) GetProperties() map[string]map[string]interface{}

GetProperties returns the Properties field value

func (*GeoJsonFeature) GetPropertiesOk

func (o *GeoJsonFeature) GetPropertiesOk() (map[string]map[string]interface{}, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*GeoJsonFeature) GetType

func (o *GeoJsonFeature) GetType() GeoJsonType

GetType returns the Type field value

func (*GeoJsonFeature) GetTypeOk

func (o *GeoJsonFeature) GetTypeOk() (*GeoJsonType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (GeoJsonFeature) MarshalJSON

func (o GeoJsonFeature) MarshalJSON() ([]byte, error)

func (*GeoJsonFeature) SetBbox

func (o *GeoJsonFeature) SetBbox(v []float32)

SetBbox sets field value

func (*GeoJsonFeature) SetGeometry

func (o *GeoJsonFeature) SetGeometry(v GeoJsonGeometry)

SetGeometry sets field value

func (*GeoJsonFeature) SetProperties

func (o *GeoJsonFeature) SetProperties(v map[string]map[string]interface{})

SetProperties sets field value

func (*GeoJsonFeature) SetType

func (o *GeoJsonFeature) SetType(v GeoJsonType)

SetType sets field value

func (GeoJsonFeature) ToMap

func (o GeoJsonFeature) ToMap() (map[string]interface{}, error)

func (*GeoJsonFeature) UnmarshalJSON

func (o *GeoJsonFeature) UnmarshalJSON(data []byte) (err error)

type GeoJsonGeometry

type GeoJsonGeometry struct {
	Coordinates [][]float32 `json:"coordinates"`
	Type        GeoJsonType `json:"type"`
}

GeoJsonGeometry struct for GeoJsonGeometry

func NewGeoJsonGeometry

func NewGeoJsonGeometry(coordinates [][]float32, type_ GeoJsonType) *GeoJsonGeometry

NewGeoJsonGeometry instantiates a new GeoJsonGeometry object This constructor will assign default values to properties that have it defined, 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 NewGeoJsonGeometryWithDefaults

func NewGeoJsonGeometryWithDefaults() *GeoJsonGeometry

NewGeoJsonGeometryWithDefaults instantiates a new GeoJsonGeometry object This 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 (*GeoJsonGeometry) GetCoordinates

func (o *GeoJsonGeometry) GetCoordinates() [][]float32

GetCoordinates returns the Coordinates field value

func (*GeoJsonGeometry) GetCoordinatesOk

func (o *GeoJsonGeometry) GetCoordinatesOk() ([][]float32, bool)

GetCoordinatesOk returns a tuple with the Coordinates field value and a boolean to check if the value has been set.

func (*GeoJsonGeometry) GetType

func (o *GeoJsonGeometry) GetType() GeoJsonType

GetType returns the Type field value

func (*GeoJsonGeometry) GetTypeOk

func (o *GeoJsonGeometry) GetTypeOk() (*GeoJsonType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (GeoJsonGeometry) MarshalJSON

func (o GeoJsonGeometry) MarshalJSON() ([]byte, error)

func (*GeoJsonGeometry) SetCoordinates

func (o *GeoJsonGeometry) SetCoordinates(v [][]float32)

SetCoordinates sets field value

func (*GeoJsonGeometry) SetType

func (o *GeoJsonGeometry) SetType(v GeoJsonType)

SetType sets field value

func (GeoJsonGeometry) ToMap

func (o GeoJsonGeometry) ToMap() (map[string]interface{}, error)

func (*GeoJsonGeometry) UnmarshalJSON

func (o *GeoJsonGeometry) UnmarshalJSON(data []byte) (err error)

type GeoJsonType

type GeoJsonType string

GeoJsonType the model 'GeoJsonType'

const (
	FeatureCollection GeoJsonType = "FeatureCollection"
)

List of GeoJsonType

func NewGeoJsonTypeFromValue

func NewGeoJsonTypeFromValue(v string) (*GeoJsonType, error)

NewGeoJsonTypeFromValue returns a pointer to a valid GeoJsonType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (GeoJsonType) IsValid

func (v GeoJsonType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (GeoJsonType) Ptr

func (v GeoJsonType) Ptr() *GeoJsonType

Ptr returns reference to GeoJsonType value

func (*GeoJsonType) UnmarshalJSON

func (v *GeoJsonType) UnmarshalJSON(src []byte) error

type GitInfo

type GitInfo struct {
	Branch     string `json:"branch"`
	Commit     string `json:"commit"`
	Repository string `json:"repository"`
}

GitInfo struct for GitInfo

func NewGitInfo

func NewGitInfo(branch string, commit string, repository string) *GitInfo

NewGitInfo instantiates a new GitInfo object This constructor will assign default values to properties that have it defined, 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 NewGitInfoWithDefaults

func NewGitInfoWithDefaults() *GitInfo

NewGitInfoWithDefaults instantiates a new GitInfo object This 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 (*GitInfo) GetBranch

func (o *GitInfo) GetBranch() string

GetBranch returns the Branch field value

func (*GitInfo) GetBranchOk

func (o *GitInfo) GetBranchOk() (*string, bool)

GetBranchOk returns a tuple with the Branch field value and a boolean to check if the value has been set.

func (*GitInfo) GetCommit

func (o *GitInfo) GetCommit() string

GetCommit returns the Commit field value

func (*GitInfo) GetCommitOk

func (o *GitInfo) GetCommitOk() (*string, bool)

GetCommitOk returns a tuple with the Commit field value and a boolean to check if the value has been set.

func (*GitInfo) GetRepository

func (o *GitInfo) GetRepository() string

GetRepository returns the Repository field value

func (*GitInfo) GetRepositoryOk

func (o *GitInfo) GetRepositoryOk() (*string, bool)

GetRepositoryOk returns a tuple with the Repository field value and a boolean to check if the value has been set.

func (GitInfo) MarshalJSON

func (o GitInfo) MarshalJSON() ([]byte, error)

func (*GitInfo) SetBranch

func (o *GitInfo) SetBranch(v string)

SetBranch sets field value

func (*GitInfo) SetCommit

func (o *GitInfo) SetCommit(v string)

SetCommit sets field value

func (*GitInfo) SetRepository

func (o *GitInfo) SetRepository(v string)

SetRepository sets field value

func (GitInfo) ToMap

func (o GitInfo) ToMap() (map[string]interface{}, error)

func (*GitInfo) UnmarshalJSON

func (o *GitInfo) UnmarshalJSON(data []byte) (err error)

type HTTPError

type HTTPError struct {
	Code   int32  `json:"code"`
	Error  string `json:"error"`
	Method string `json:"method"`
	Path   string `json:"path"`
}

HTTPError struct for HTTPError

func NewHTTPError

func NewHTTPError(code int32, error_ string, method string, path string) *HTTPError

NewHTTPError instantiates a new HTTPError object This constructor will assign default values to properties that have it defined, 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 NewHTTPErrorWithDefaults

func NewHTTPErrorWithDefaults() *HTTPError

NewHTTPErrorWithDefaults instantiates a new HTTPError object This 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 (*HTTPError) GetCode

func (o *HTTPError) GetCode() int32

GetCode returns the Code field value

func (*HTTPError) GetCodeOk

func (o *HTTPError) GetCodeOk() (*int32, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*HTTPError) GetError

func (o *HTTPError) GetError() string

GetError returns the Error field value

func (*HTTPError) GetErrorOk

func (o *HTTPError) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (*HTTPError) GetMethod

func (o *HTTPError) GetMethod() string

GetMethod returns the Method field value

func (*HTTPError) GetMethodOk

func (o *HTTPError) GetMethodOk() (*string, bool)

GetMethodOk returns a tuple with the Method field value and a boolean to check if the value has been set.

func (*HTTPError) GetPath

func (o *HTTPError) GetPath() string

GetPath returns the Path field value

func (*HTTPError) GetPathOk

func (o *HTTPError) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (HTTPError) MarshalJSON

func (o HTTPError) MarshalJSON() ([]byte, error)

func (*HTTPError) SetCode

func (o *HTTPError) SetCode(v int32)

SetCode sets field value

func (*HTTPError) SetError

func (o *HTTPError) SetError(v string)

SetError sets field value

func (*HTTPError) SetMethod

func (o *HTTPError) SetMethod(v string)

SetMethod sets field value

func (*HTTPError) SetPath

func (o *HTTPError) SetPath(v string)

SetPath sets field value

func (HTTPError) ToMap

func (o HTTPError) ToMap() (map[string]interface{}, error)

func (*HTTPError) UnmarshalJSON

func (o *HTTPError) UnmarshalJSON(data []byte) (err error)

type InfoAPIService

type InfoAPIService service

InfoAPIService InfoAPI service

func (*InfoAPIService) GetAppInfo

GetAppInfo Get info about the app

Get info about the app and the server

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAppInfoRequest

func (*InfoAPIService) GetAppInfoExecute

func (a *InfoAPIService) GetAppInfoExecute(r ApiGetAppInfoRequest) (*AppInfo, *http.Response, error)

Execute executes the request

@return AppInfo

type LoginResponse

type LoginResponse struct {
	LoginUrl string `json:"login_url"`
}

LoginResponse struct for LoginResponse

func NewLoginResponse

func NewLoginResponse(loginUrl string) *LoginResponse

NewLoginResponse instantiates a new LoginResponse object This constructor will assign default values to properties that have it defined, 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 NewLoginResponseWithDefaults

func NewLoginResponseWithDefaults() *LoginResponse

NewLoginResponseWithDefaults instantiates a new LoginResponse object This 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 (*LoginResponse) GetLoginUrl

func (o *LoginResponse) GetLoginUrl() string

GetLoginUrl returns the LoginUrl field value

func (*LoginResponse) GetLoginUrlOk

func (o *LoginResponse) GetLoginUrlOk() (*string, bool)

GetLoginUrlOk returns a tuple with the LoginUrl field value and a boolean to check if the value has been set.

func (LoginResponse) MarshalJSON

func (o LoginResponse) MarshalJSON() ([]byte, error)

func (*LoginResponse) SetLoginUrl

func (o *LoginResponse) SetLoginUrl(v string)

SetLoginUrl sets field value

func (LoginResponse) ToMap

func (o LoginResponse) ToMap() (map[string]interface{}, error)

func (*LoginResponse) UnmarshalJSON

func (o *LoginResponse) UnmarshalJSON(data []byte) (err error)

type LoginTokenRequest

type LoginTokenRequest struct {
	Code string `json:"code"`
}

LoginTokenRequest struct for LoginTokenRequest

func NewLoginTokenRequest

func NewLoginTokenRequest(code string) *LoginTokenRequest

NewLoginTokenRequest instantiates a new LoginTokenRequest object This constructor will assign default values to properties that have it defined, 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 NewLoginTokenRequestWithDefaults

func NewLoginTokenRequestWithDefaults() *LoginTokenRequest

NewLoginTokenRequestWithDefaults instantiates a new LoginTokenRequest object This 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 (*LoginTokenRequest) GetCode

func (o *LoginTokenRequest) GetCode() string

GetCode returns the Code field value

func (*LoginTokenRequest) GetCodeOk

func (o *LoginTokenRequest) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (LoginTokenRequest) MarshalJSON

func (o LoginTokenRequest) MarshalJSON() ([]byte, error)

func (*LoginTokenRequest) SetCode

func (o *LoginTokenRequest) SetCode(v string)

SetCode sets field value

func (LoginTokenRequest) ToMap

func (o LoginTokenRequest) ToMap() (map[string]interface{}, error)

func (*LoginTokenRequest) UnmarshalJSON

func (o *LoginTokenRequest) UnmarshalJSON(data []byte) (err error)

type LogoutRequest

type LogoutRequest struct {
	RefreshToken string `json:"refresh_token"`
}

LogoutRequest struct for LogoutRequest

func NewLogoutRequest

func NewLogoutRequest(refreshToken string) *LogoutRequest

NewLogoutRequest instantiates a new LogoutRequest object This constructor will assign default values to properties that have it defined, 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 NewLogoutRequestWithDefaults

func NewLogoutRequestWithDefaults() *LogoutRequest

NewLogoutRequestWithDefaults instantiates a new LogoutRequest object This 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 (*LogoutRequest) GetRefreshToken

func (o *LogoutRequest) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field value

func (*LogoutRequest) GetRefreshTokenOk

func (o *LogoutRequest) GetRefreshTokenOk() (*string, bool)

GetRefreshTokenOk returns a tuple with the RefreshToken field value and a boolean to check if the value has been set.

func (LogoutRequest) MarshalJSON

func (o LogoutRequest) MarshalJSON() ([]byte, error)

func (*LogoutRequest) SetRefreshToken

func (o *LogoutRequest) SetRefreshToken(v string)

SetRefreshToken sets field value

func (LogoutRequest) ToMap

func (o LogoutRequest) ToMap() (map[string]interface{}, error)

func (*LogoutRequest) UnmarshalJSON

func (o *LogoutRequest) UnmarshalJSON(data []byte) (err error)

type MapInfo

type MapInfo struct {
	Bbox   []float32 `json:"bbox"`
	Center []float32 `json:"center"`
}

MapInfo struct for MapInfo

func NewMapInfo

func NewMapInfo(bbox []float32, center []float32) *MapInfo

NewMapInfo instantiates a new MapInfo object This constructor will assign default values to properties that have it defined, 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 NewMapInfoWithDefaults

func NewMapInfoWithDefaults() *MapInfo

NewMapInfoWithDefaults instantiates a new MapInfo object This 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 (*MapInfo) GetBbox

func (o *MapInfo) GetBbox() []float32

GetBbox returns the Bbox field value

func (*MapInfo) GetBboxOk

func (o *MapInfo) GetBboxOk() ([]float32, bool)

GetBboxOk returns a tuple with the Bbox field value and a boolean to check if the value has been set.

func (*MapInfo) GetCenter

func (o *MapInfo) GetCenter() []float32

GetCenter returns the Center field value

func (*MapInfo) GetCenterOk

func (o *MapInfo) GetCenterOk() ([]float32, bool)

GetCenterOk returns a tuple with the Center field value and a boolean to check if the value has been set.

func (MapInfo) MarshalJSON

func (o MapInfo) MarshalJSON() ([]byte, error)

func (*MapInfo) SetBbox

func (o *MapInfo) SetBbox(v []float32)

SetBbox sets field value

func (*MapInfo) SetCenter

func (o *MapInfo) SetCenter(v []float32)

SetCenter sets field value

func (MapInfo) ToMap

func (o MapInfo) ToMap() (map[string]interface{}, error)

func (*MapInfo) UnmarshalJSON

func (o *MapInfo) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableAppInfo

type NullableAppInfo struct {
	// contains filtered or unexported fields
}

func NewNullableAppInfo

func NewNullableAppInfo(val *AppInfo) *NullableAppInfo

func (NullableAppInfo) Get

func (v NullableAppInfo) Get() *AppInfo

func (NullableAppInfo) IsSet

func (v NullableAppInfo) IsSet() bool

func (NullableAppInfo) MarshalJSON

func (v NullableAppInfo) MarshalJSON() ([]byte, error)

func (*NullableAppInfo) Set

func (v *NullableAppInfo) Set(val *AppInfo)

func (*NullableAppInfo) UnmarshalJSON

func (v *NullableAppInfo) UnmarshalJSON(src []byte) error

func (*NullableAppInfo) Unset

func (v *NullableAppInfo) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableClientToken

type NullableClientToken struct {
	// contains filtered or unexported fields
}

func NewNullableClientToken

func NewNullableClientToken(val *ClientToken) *NullableClientToken

func (NullableClientToken) Get

func (NullableClientToken) IsSet

func (v NullableClientToken) IsSet() bool

func (NullableClientToken) MarshalJSON

func (v NullableClientToken) MarshalJSON() ([]byte, error)

func (*NullableClientToken) Set

func (v *NullableClientToken) Set(val *ClientToken)

func (*NullableClientToken) UnmarshalJSON

func (v *NullableClientToken) UnmarshalJSON(src []byte) error

func (*NullableClientToken) Unset

func (v *NullableClientToken) Unset()

type NullableDrivingLicense

type NullableDrivingLicense struct {
	// contains filtered or unexported fields
}

func NewNullableDrivingLicense

func NewNullableDrivingLicense(val *DrivingLicense) *NullableDrivingLicense

func (NullableDrivingLicense) Get

func (NullableDrivingLicense) IsSet

func (v NullableDrivingLicense) IsSet() bool

func (NullableDrivingLicense) MarshalJSON

func (v NullableDrivingLicense) MarshalJSON() ([]byte, error)

func (*NullableDrivingLicense) Set

func (*NullableDrivingLicense) UnmarshalJSON

func (v *NullableDrivingLicense) UnmarshalJSON(src []byte) error

func (*NullableDrivingLicense) Unset

func (v *NullableDrivingLicense) Unset()

type NullableEvaluationValue

type NullableEvaluationValue struct {
	// contains filtered or unexported fields
}

func NewNullableEvaluationValue

func NewNullableEvaluationValue(val *EvaluationValue) *NullableEvaluationValue

func (NullableEvaluationValue) Get

func (NullableEvaluationValue) IsSet

func (v NullableEvaluationValue) IsSet() bool

func (NullableEvaluationValue) MarshalJSON

func (v NullableEvaluationValue) MarshalJSON() ([]byte, error)

func (*NullableEvaluationValue) Set

func (*NullableEvaluationValue) UnmarshalJSON

func (v *NullableEvaluationValue) UnmarshalJSON(src []byte) error

func (*NullableEvaluationValue) Unset

func (v *NullableEvaluationValue) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGeoJSONLocation

type NullableGeoJSONLocation struct {
	// contains filtered or unexported fields
}

func NewNullableGeoJSONLocation

func NewNullableGeoJSONLocation(val *GeoJSONLocation) *NullableGeoJSONLocation

func (NullableGeoJSONLocation) Get

func (NullableGeoJSONLocation) IsSet

func (v NullableGeoJSONLocation) IsSet() bool

func (NullableGeoJSONLocation) MarshalJSON

func (v NullableGeoJSONLocation) MarshalJSON() ([]byte, error)

func (*NullableGeoJSONLocation) Set

func (*NullableGeoJSONLocation) UnmarshalJSON

func (v *NullableGeoJSONLocation) UnmarshalJSON(src []byte) error

func (*NullableGeoJSONLocation) Unset

func (v *NullableGeoJSONLocation) Unset()

type NullableGeoJSONMetadata

type NullableGeoJSONMetadata struct {
	// contains filtered or unexported fields
}

func NewNullableGeoJSONMetadata

func NewNullableGeoJSONMetadata(val *GeoJSONMetadata) *NullableGeoJSONMetadata

func (NullableGeoJSONMetadata) Get

func (NullableGeoJSONMetadata) IsSet

func (v NullableGeoJSONMetadata) IsSet() bool

func (NullableGeoJSONMetadata) MarshalJSON

func (v NullableGeoJSONMetadata) MarshalJSON() ([]byte, error)

func (*NullableGeoJSONMetadata) Set

func (*NullableGeoJSONMetadata) UnmarshalJSON

func (v *NullableGeoJSONMetadata) UnmarshalJSON(src []byte) error

func (*NullableGeoJSONMetadata) Unset

func (v *NullableGeoJSONMetadata) Unset()

type NullableGeoJson

type NullableGeoJson struct {
	// contains filtered or unexported fields
}

func NewNullableGeoJson

func NewNullableGeoJson(val *GeoJson) *NullableGeoJson

func (NullableGeoJson) Get

func (v NullableGeoJson) Get() *GeoJson

func (NullableGeoJson) IsSet

func (v NullableGeoJson) IsSet() bool

func (NullableGeoJson) MarshalJSON

func (v NullableGeoJson) MarshalJSON() ([]byte, error)

func (*NullableGeoJson) Set

func (v *NullableGeoJson) Set(val *GeoJson)

func (*NullableGeoJson) UnmarshalJSON

func (v *NullableGeoJson) UnmarshalJSON(src []byte) error

func (*NullableGeoJson) Unset

func (v *NullableGeoJson) Unset()

type NullableGeoJsonFeature

type NullableGeoJsonFeature struct {
	// contains filtered or unexported fields
}

func NewNullableGeoJsonFeature

func NewNullableGeoJsonFeature(val *GeoJsonFeature) *NullableGeoJsonFeature

func (NullableGeoJsonFeature) Get

func (NullableGeoJsonFeature) IsSet

func (v NullableGeoJsonFeature) IsSet() bool

func (NullableGeoJsonFeature) MarshalJSON

func (v NullableGeoJsonFeature) MarshalJSON() ([]byte, error)

func (*NullableGeoJsonFeature) Set

func (*NullableGeoJsonFeature) UnmarshalJSON

func (v *NullableGeoJsonFeature) UnmarshalJSON(src []byte) error

func (*NullableGeoJsonFeature) Unset

func (v *NullableGeoJsonFeature) Unset()

type NullableGeoJsonGeometry

type NullableGeoJsonGeometry struct {
	// contains filtered or unexported fields
}

func NewNullableGeoJsonGeometry

func NewNullableGeoJsonGeometry(val *GeoJsonGeometry) *NullableGeoJsonGeometry

func (NullableGeoJsonGeometry) Get

func (NullableGeoJsonGeometry) IsSet

func (v NullableGeoJsonGeometry) IsSet() bool

func (NullableGeoJsonGeometry) MarshalJSON

func (v NullableGeoJsonGeometry) MarshalJSON() ([]byte, error)

func (*NullableGeoJsonGeometry) Set

func (*NullableGeoJsonGeometry) UnmarshalJSON

func (v *NullableGeoJsonGeometry) UnmarshalJSON(src []byte) error

func (*NullableGeoJsonGeometry) Unset

func (v *NullableGeoJsonGeometry) Unset()

type NullableGeoJsonType

type NullableGeoJsonType struct {
	// contains filtered or unexported fields
}

func NewNullableGeoJsonType

func NewNullableGeoJsonType(val *GeoJsonType) *NullableGeoJsonType

func (NullableGeoJsonType) Get

func (NullableGeoJsonType) IsSet

func (v NullableGeoJsonType) IsSet() bool

func (NullableGeoJsonType) MarshalJSON

func (v NullableGeoJsonType) MarshalJSON() ([]byte, error)

func (*NullableGeoJsonType) Set

func (v *NullableGeoJsonType) Set(val *GeoJsonType)

func (*NullableGeoJsonType) UnmarshalJSON

func (v *NullableGeoJsonType) UnmarshalJSON(src []byte) error

func (*NullableGeoJsonType) Unset

func (v *NullableGeoJsonType) Unset()

type NullableGitInfo

type NullableGitInfo struct {
	// contains filtered or unexported fields
}

func NewNullableGitInfo

func NewNullableGitInfo(val *GitInfo) *NullableGitInfo

func (NullableGitInfo) Get

func (v NullableGitInfo) Get() *GitInfo

func (NullableGitInfo) IsSet

func (v NullableGitInfo) IsSet() bool

func (NullableGitInfo) MarshalJSON

func (v NullableGitInfo) MarshalJSON() ([]byte, error)

func (*NullableGitInfo) Set

func (v *NullableGitInfo) Set(val *GitInfo)

func (*NullableGitInfo) UnmarshalJSON

func (v *NullableGitInfo) UnmarshalJSON(src []byte) error

func (*NullableGitInfo) Unset

func (v *NullableGitInfo) Unset()

type NullableHTTPError

type NullableHTTPError struct {
	// contains filtered or unexported fields
}

func NewNullableHTTPError

func NewNullableHTTPError(val *HTTPError) *NullableHTTPError

func (NullableHTTPError) Get

func (v NullableHTTPError) Get() *HTTPError

func (NullableHTTPError) IsSet

func (v NullableHTTPError) IsSet() bool

func (NullableHTTPError) MarshalJSON

func (v NullableHTTPError) MarshalJSON() ([]byte, error)

func (*NullableHTTPError) Set

func (v *NullableHTTPError) Set(val *HTTPError)

func (*NullableHTTPError) UnmarshalJSON

func (v *NullableHTTPError) UnmarshalJSON(src []byte) error

func (*NullableHTTPError) Unset

func (v *NullableHTTPError) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLoginResponse

type NullableLoginResponse struct {
	// contains filtered or unexported fields
}

func NewNullableLoginResponse

func NewNullableLoginResponse(val *LoginResponse) *NullableLoginResponse

func (NullableLoginResponse) Get

func (NullableLoginResponse) IsSet

func (v NullableLoginResponse) IsSet() bool

func (NullableLoginResponse) MarshalJSON

func (v NullableLoginResponse) MarshalJSON() ([]byte, error)

func (*NullableLoginResponse) Set

func (v *NullableLoginResponse) Set(val *LoginResponse)

func (*NullableLoginResponse) UnmarshalJSON

func (v *NullableLoginResponse) UnmarshalJSON(src []byte) error

func (*NullableLoginResponse) Unset

func (v *NullableLoginResponse) Unset()

type NullableLoginTokenRequest

type NullableLoginTokenRequest struct {
	// contains filtered or unexported fields
}

func NewNullableLoginTokenRequest

func NewNullableLoginTokenRequest(val *LoginTokenRequest) *NullableLoginTokenRequest

func (NullableLoginTokenRequest) Get

func (NullableLoginTokenRequest) IsSet

func (v NullableLoginTokenRequest) IsSet() bool

func (NullableLoginTokenRequest) MarshalJSON

func (v NullableLoginTokenRequest) MarshalJSON() ([]byte, error)

func (*NullableLoginTokenRequest) Set

func (*NullableLoginTokenRequest) UnmarshalJSON

func (v *NullableLoginTokenRequest) UnmarshalJSON(src []byte) error

func (*NullableLoginTokenRequest) Unset

func (v *NullableLoginTokenRequest) Unset()

type NullableLogoutRequest

type NullableLogoutRequest struct {
	// contains filtered or unexported fields
}

func NewNullableLogoutRequest

func NewNullableLogoutRequest(val *LogoutRequest) *NullableLogoutRequest

func (NullableLogoutRequest) Get

func (NullableLogoutRequest) IsSet

func (v NullableLogoutRequest) IsSet() bool

func (NullableLogoutRequest) MarshalJSON

func (v NullableLogoutRequest) MarshalJSON() ([]byte, error)

func (*NullableLogoutRequest) Set

func (v *NullableLogoutRequest) Set(val *LogoutRequest)

func (*NullableLogoutRequest) UnmarshalJSON

func (v *NullableLogoutRequest) UnmarshalJSON(src []byte) error

func (*NullableLogoutRequest) Unset

func (v *NullableLogoutRequest) Unset()

type NullableMapInfo

type NullableMapInfo struct {
	// contains filtered or unexported fields
}

func NewNullableMapInfo

func NewNullableMapInfo(val *MapInfo) *NullableMapInfo

func (NullableMapInfo) Get

func (v NullableMapInfo) Get() *MapInfo

func (NullableMapInfo) IsSet

func (v NullableMapInfo) IsSet() bool

func (NullableMapInfo) MarshalJSON

func (v NullableMapInfo) MarshalJSON() ([]byte, error)

func (*NullableMapInfo) Set

func (v *NullableMapInfo) Set(val *MapInfo)

func (*NullableMapInfo) UnmarshalJSON

func (v *NullableMapInfo) UnmarshalJSON(src []byte) error

func (*NullableMapInfo) Unset

func (v *NullableMapInfo) Unset()

type NullablePagination

type NullablePagination struct {
	// contains filtered or unexported fields
}

func NewNullablePagination

func NewNullablePagination(val *Pagination) *NullablePagination

func (NullablePagination) Get

func (v NullablePagination) Get() *Pagination

func (NullablePagination) IsSet

func (v NullablePagination) IsSet() bool

func (NullablePagination) MarshalJSON

func (v NullablePagination) MarshalJSON() ([]byte, error)

func (*NullablePagination) Set

func (v *NullablePagination) Set(val *Pagination)

func (*NullablePagination) UnmarshalJSON

func (v *NullablePagination) UnmarshalJSON(src []byte) error

func (*NullablePagination) Unset

func (v *NullablePagination) Unset()

type NullablePlugin

type NullablePlugin struct {
	// contains filtered or unexported fields
}

func NewNullablePlugin

func NewNullablePlugin(val *Plugin) *NullablePlugin

func (NullablePlugin) Get

func (v NullablePlugin) Get() *Plugin

func (NullablePlugin) IsSet

func (v NullablePlugin) IsSet() bool

func (NullablePlugin) MarshalJSON

func (v NullablePlugin) MarshalJSON() ([]byte, error)

func (*NullablePlugin) Set

func (v *NullablePlugin) Set(val *Plugin)

func (*NullablePlugin) UnmarshalJSON

func (v *NullablePlugin) UnmarshalJSON(src []byte) error

func (*NullablePlugin) Unset

func (v *NullablePlugin) Unset()

type NullablePluginAuth

type NullablePluginAuth struct {
	// contains filtered or unexported fields
}

func NewNullablePluginAuth

func NewNullablePluginAuth(val *PluginAuth) *NullablePluginAuth

func (NullablePluginAuth) Get

func (v NullablePluginAuth) Get() *PluginAuth

func (NullablePluginAuth) IsSet

func (v NullablePluginAuth) IsSet() bool

func (NullablePluginAuth) MarshalJSON

func (v NullablePluginAuth) MarshalJSON() ([]byte, error)

func (*NullablePluginAuth) Set

func (v *NullablePluginAuth) Set(val *PluginAuth)

func (*NullablePluginAuth) UnmarshalJSON

func (v *NullablePluginAuth) UnmarshalJSON(src []byte) error

func (*NullablePluginAuth) Unset

func (v *NullablePluginAuth) Unset()

type NullablePluginListResponse

type NullablePluginListResponse struct {
	// contains filtered or unexported fields
}

func NewNullablePluginListResponse

func NewNullablePluginListResponse(val *PluginListResponse) *NullablePluginListResponse

func (NullablePluginListResponse) Get

func (NullablePluginListResponse) IsSet

func (v NullablePluginListResponse) IsSet() bool

func (NullablePluginListResponse) MarshalJSON

func (v NullablePluginListResponse) MarshalJSON() ([]byte, error)

func (*NullablePluginListResponse) Set

func (*NullablePluginListResponse) UnmarshalJSON

func (v *NullablePluginListResponse) UnmarshalJSON(src []byte) error

func (*NullablePluginListResponse) Unset

func (v *NullablePluginListResponse) Unset()

type NullablePluginRegisterRequest

type NullablePluginRegisterRequest struct {
	// contains filtered or unexported fields
}

func (NullablePluginRegisterRequest) Get

func (NullablePluginRegisterRequest) IsSet

func (NullablePluginRegisterRequest) MarshalJSON

func (v NullablePluginRegisterRequest) MarshalJSON() ([]byte, error)

func (*NullablePluginRegisterRequest) Set

func (*NullablePluginRegisterRequest) UnmarshalJSON

func (v *NullablePluginRegisterRequest) UnmarshalJSON(src []byte) error

func (*NullablePluginRegisterRequest) Unset

func (v *NullablePluginRegisterRequest) Unset()

type NullableRefreshTokenRequest

type NullableRefreshTokenRequest struct {
	// contains filtered or unexported fields
}

func NewNullableRefreshTokenRequest

func NewNullableRefreshTokenRequest(val *RefreshTokenRequest) *NullableRefreshTokenRequest

func (NullableRefreshTokenRequest) Get

func (NullableRefreshTokenRequest) IsSet

func (NullableRefreshTokenRequest) MarshalJSON

func (v NullableRefreshTokenRequest) MarshalJSON() ([]byte, error)

func (*NullableRefreshTokenRequest) Set

func (*NullableRefreshTokenRequest) UnmarshalJSON

func (v *NullableRefreshTokenRequest) UnmarshalJSON(src []byte) error

func (*NullableRefreshTokenRequest) Unset

func (v *NullableRefreshTokenRequest) Unset()

type NullableRegion

type NullableRegion struct {
	// contains filtered or unexported fields
}

func NewNullableRegion

func NewNullableRegion(val *Region) *NullableRegion

func (NullableRegion) Get

func (v NullableRegion) Get() *Region

func (NullableRegion) IsSet

func (v NullableRegion) IsSet() bool

func (NullableRegion) MarshalJSON

func (v NullableRegion) MarshalJSON() ([]byte, error)

func (*NullableRegion) Set

func (v *NullableRegion) Set(val *Region)

func (*NullableRegion) UnmarshalJSON

func (v *NullableRegion) UnmarshalJSON(src []byte) error

func (*NullableRegion) Unset

func (v *NullableRegion) Unset()

type NullableRegionList

type NullableRegionList struct {
	// contains filtered or unexported fields
}

func NewNullableRegionList

func NewNullableRegionList(val *RegionList) *NullableRegionList

func (NullableRegionList) Get

func (v NullableRegionList) Get() *RegionList

func (NullableRegionList) IsSet

func (v NullableRegionList) IsSet() bool

func (NullableRegionList) MarshalJSON

func (v NullableRegionList) MarshalJSON() ([]byte, error)

func (*NullableRegionList) Set

func (v *NullableRegionList) Set(val *RegionList)

func (*NullableRegionList) UnmarshalJSON

func (v *NullableRegionList) UnmarshalJSON(src []byte) error

func (*NullableRegionList) Unset

func (v *NullableRegionList) Unset()

type NullableRouteRequest

type NullableRouteRequest struct {
	// contains filtered or unexported fields
}

func NewNullableRouteRequest

func NewNullableRouteRequest(val *RouteRequest) *NullableRouteRequest

func (NullableRouteRequest) Get

func (NullableRouteRequest) IsSet

func (v NullableRouteRequest) IsSet() bool

func (NullableRouteRequest) MarshalJSON

func (v NullableRouteRequest) MarshalJSON() ([]byte, error)

func (*NullableRouteRequest) Set

func (v *NullableRouteRequest) Set(val *RouteRequest)

func (*NullableRouteRequest) UnmarshalJSON

func (v *NullableRouteRequest) UnmarshalJSON(src []byte) error

func (*NullableRouteRequest) Unset

func (v *NullableRouteRequest) Unset()

type NullableSensor

type NullableSensor struct {
	// contains filtered or unexported fields
}

func NewNullableSensor

func NewNullableSensor(val *Sensor) *NullableSensor

func (NullableSensor) Get

func (v NullableSensor) Get() *Sensor

func (NullableSensor) IsSet

func (v NullableSensor) IsSet() bool

func (NullableSensor) MarshalJSON

func (v NullableSensor) MarshalJSON() ([]byte, error)

func (*NullableSensor) Set

func (v *NullableSensor) Set(val *Sensor)

func (*NullableSensor) UnmarshalJSON

func (v *NullableSensor) UnmarshalJSON(src []byte) error

func (*NullableSensor) Unset

func (v *NullableSensor) Unset()

type NullableSensorData

type NullableSensorData struct {
	// contains filtered or unexported fields
}

func NewNullableSensorData

func NewNullableSensorData(val *SensorData) *NullableSensorData

func (NullableSensorData) Get

func (v NullableSensorData) Get() *SensorData

func (NullableSensorData) IsSet

func (v NullableSensorData) IsSet() bool

func (NullableSensorData) MarshalJSON

func (v NullableSensorData) MarshalJSON() ([]byte, error)

func (*NullableSensorData) Set

func (v *NullableSensorData) Set(val *SensorData)

func (*NullableSensorData) UnmarshalJSON

func (v *NullableSensorData) UnmarshalJSON(src []byte) error

func (*NullableSensorData) Unset

func (v *NullableSensorData) Unset()

type NullableSensorDataList

type NullableSensorDataList struct {
	// contains filtered or unexported fields
}

func NewNullableSensorDataList

func NewNullableSensorDataList(val *SensorDataList) *NullableSensorDataList

func (NullableSensorDataList) Get

func (NullableSensorDataList) IsSet

func (v NullableSensorDataList) IsSet() bool

func (NullableSensorDataList) MarshalJSON

func (v NullableSensorDataList) MarshalJSON() ([]byte, error)

func (*NullableSensorDataList) Set

func (*NullableSensorDataList) UnmarshalJSON

func (v *NullableSensorDataList) UnmarshalJSON(src []byte) error

func (*NullableSensorDataList) Unset

func (v *NullableSensorDataList) Unset()

type NullableSensorList

type NullableSensorList struct {
	// contains filtered or unexported fields
}

func NewNullableSensorList

func NewNullableSensorList(val *SensorList) *NullableSensorList

func (NullableSensorList) Get

func (v NullableSensorList) Get() *SensorList

func (NullableSensorList) IsSet

func (v NullableSensorList) IsSet() bool

func (NullableSensorList) MarshalJSON

func (v NullableSensorList) MarshalJSON() ([]byte, error)

func (*NullableSensorList) Set

func (v *NullableSensorList) Set(val *SensorList)

func (*NullableSensorList) UnmarshalJSON

func (v *NullableSensorList) UnmarshalJSON(src []byte) error

func (*NullableSensorList) Unset

func (v *NullableSensorList) Unset()

type NullableSensorStatus

type NullableSensorStatus struct {
	// contains filtered or unexported fields
}

func NewNullableSensorStatus

func NewNullableSensorStatus(val *SensorStatus) *NullableSensorStatus

func (NullableSensorStatus) Get

func (NullableSensorStatus) IsSet

func (v NullableSensorStatus) IsSet() bool

func (NullableSensorStatus) MarshalJSON

func (v NullableSensorStatus) MarshalJSON() ([]byte, error)

func (*NullableSensorStatus) Set

func (v *NullableSensorStatus) Set(val *SensorStatus)

func (*NullableSensorStatus) UnmarshalJSON

func (v *NullableSensorStatus) UnmarshalJSON(src []byte) error

func (*NullableSensorStatus) Unset

func (v *NullableSensorStatus) Unset()

type NullableServerInfo

type NullableServerInfo struct {
	// contains filtered or unexported fields
}

func NewNullableServerInfo

func NewNullableServerInfo(val *ServerInfo) *NullableServerInfo

func (NullableServerInfo) Get

func (v NullableServerInfo) Get() *ServerInfo

func (NullableServerInfo) IsSet

func (v NullableServerInfo) IsSet() bool

func (NullableServerInfo) MarshalJSON

func (v NullableServerInfo) MarshalJSON() ([]byte, error)

func (*NullableServerInfo) Set

func (v *NullableServerInfo) Set(val *ServerInfo)

func (*NullableServerInfo) UnmarshalJSON

func (v *NullableServerInfo) UnmarshalJSON(src []byte) error

func (*NullableServerInfo) Unset

func (v *NullableServerInfo) Unset()

type NullableSoilCondition

type NullableSoilCondition struct {
	// contains filtered or unexported fields
}

func NewNullableSoilCondition

func NewNullableSoilCondition(val *SoilCondition) *NullableSoilCondition

func (NullableSoilCondition) Get

func (NullableSoilCondition) IsSet

func (v NullableSoilCondition) IsSet() bool

func (NullableSoilCondition) MarshalJSON

func (v NullableSoilCondition) MarshalJSON() ([]byte, error)

func (*NullableSoilCondition) Set

func (v *NullableSoilCondition) Set(val *SoilCondition)

func (*NullableSoilCondition) UnmarshalJSON

func (v *NullableSoilCondition) UnmarshalJSON(src []byte) error

func (*NullableSoilCondition) Unset

func (v *NullableSoilCondition) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTree

type NullableTree struct {
	// contains filtered or unexported fields
}

func NewNullableTree

func NewNullableTree(val *Tree) *NullableTree

func (NullableTree) Get

func (v NullableTree) Get() *Tree

func (NullableTree) IsSet

func (v NullableTree) IsSet() bool

func (NullableTree) MarshalJSON

func (v NullableTree) MarshalJSON() ([]byte, error)

func (*NullableTree) Set

func (v *NullableTree) Set(val *Tree)

func (*NullableTree) UnmarshalJSON

func (v *NullableTree) UnmarshalJSON(src []byte) error

func (*NullableTree) Unset

func (v *NullableTree) Unset()

type NullableTreeCluster

type NullableTreeCluster struct {
	// contains filtered or unexported fields
}

func NewNullableTreeCluster

func NewNullableTreeCluster(val *TreeCluster) *NullableTreeCluster

func (NullableTreeCluster) Get

func (NullableTreeCluster) IsSet

func (v NullableTreeCluster) IsSet() bool

func (NullableTreeCluster) MarshalJSON

func (v NullableTreeCluster) MarshalJSON() ([]byte, error)

func (*NullableTreeCluster) Set

func (v *NullableTreeCluster) Set(val *TreeCluster)

func (*NullableTreeCluster) UnmarshalJSON

func (v *NullableTreeCluster) UnmarshalJSON(src []byte) error

func (*NullableTreeCluster) Unset

func (v *NullableTreeCluster) Unset()

type NullableTreeClusterCreate

type NullableTreeClusterCreate struct {
	// contains filtered or unexported fields
}

func NewNullableTreeClusterCreate

func NewNullableTreeClusterCreate(val *TreeClusterCreate) *NullableTreeClusterCreate

func (NullableTreeClusterCreate) Get

func (NullableTreeClusterCreate) IsSet

func (v NullableTreeClusterCreate) IsSet() bool

func (NullableTreeClusterCreate) MarshalJSON

func (v NullableTreeClusterCreate) MarshalJSON() ([]byte, error)

func (*NullableTreeClusterCreate) Set

func (*NullableTreeClusterCreate) UnmarshalJSON

func (v *NullableTreeClusterCreate) UnmarshalJSON(src []byte) error

func (*NullableTreeClusterCreate) Unset

func (v *NullableTreeClusterCreate) Unset()

type NullableTreeClusterInList

type NullableTreeClusterInList struct {
	// contains filtered or unexported fields
}

func NewNullableTreeClusterInList

func NewNullableTreeClusterInList(val *TreeClusterInList) *NullableTreeClusterInList

func (NullableTreeClusterInList) Get

func (NullableTreeClusterInList) IsSet

func (v NullableTreeClusterInList) IsSet() bool

func (NullableTreeClusterInList) MarshalJSON

func (v NullableTreeClusterInList) MarshalJSON() ([]byte, error)

func (*NullableTreeClusterInList) Set

func (*NullableTreeClusterInList) UnmarshalJSON

func (v *NullableTreeClusterInList) UnmarshalJSON(src []byte) error

func (*NullableTreeClusterInList) Unset

func (v *NullableTreeClusterInList) Unset()

type NullableTreeClusterList

type NullableTreeClusterList struct {
	// contains filtered or unexported fields
}

func NewNullableTreeClusterList

func NewNullableTreeClusterList(val *TreeClusterList) *NullableTreeClusterList

func (NullableTreeClusterList) Get

func (NullableTreeClusterList) IsSet

func (v NullableTreeClusterList) IsSet() bool

func (NullableTreeClusterList) MarshalJSON

func (v NullableTreeClusterList) MarshalJSON() ([]byte, error)

func (*NullableTreeClusterList) Set

func (*NullableTreeClusterList) UnmarshalJSON

func (v *NullableTreeClusterList) UnmarshalJSON(src []byte) error

func (*NullableTreeClusterList) Unset

func (v *NullableTreeClusterList) Unset()

type NullableTreeClusterUpdate

type NullableTreeClusterUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableTreeClusterUpdate

func NewNullableTreeClusterUpdate(val *TreeClusterUpdate) *NullableTreeClusterUpdate

func (NullableTreeClusterUpdate) Get

func (NullableTreeClusterUpdate) IsSet

func (v NullableTreeClusterUpdate) IsSet() bool

func (NullableTreeClusterUpdate) MarshalJSON

func (v NullableTreeClusterUpdate) MarshalJSON() ([]byte, error)

func (*NullableTreeClusterUpdate) Set

func (*NullableTreeClusterUpdate) UnmarshalJSON

func (v *NullableTreeClusterUpdate) UnmarshalJSON(src []byte) error

func (*NullableTreeClusterUpdate) Unset

func (v *NullableTreeClusterUpdate) Unset()

type NullableTreeCreate

type NullableTreeCreate struct {
	// contains filtered or unexported fields
}

func NewNullableTreeCreate

func NewNullableTreeCreate(val *TreeCreate) *NullableTreeCreate

func (NullableTreeCreate) Get

func (v NullableTreeCreate) Get() *TreeCreate

func (NullableTreeCreate) IsSet

func (v NullableTreeCreate) IsSet() bool

func (NullableTreeCreate) MarshalJSON

func (v NullableTreeCreate) MarshalJSON() ([]byte, error)

func (*NullableTreeCreate) Set

func (v *NullableTreeCreate) Set(val *TreeCreate)

func (*NullableTreeCreate) UnmarshalJSON

func (v *NullableTreeCreate) UnmarshalJSON(src []byte) error

func (*NullableTreeCreate) Unset

func (v *NullableTreeCreate) Unset()

type NullableTreeList

type NullableTreeList struct {
	// contains filtered or unexported fields
}

func NewNullableTreeList

func NewNullableTreeList(val *TreeList) *NullableTreeList

func (NullableTreeList) Get

func (v NullableTreeList) Get() *TreeList

func (NullableTreeList) IsSet

func (v NullableTreeList) IsSet() bool

func (NullableTreeList) MarshalJSON

func (v NullableTreeList) MarshalJSON() ([]byte, error)

func (*NullableTreeList) Set

func (v *NullableTreeList) Set(val *TreeList)

func (*NullableTreeList) UnmarshalJSON

func (v *NullableTreeList) UnmarshalJSON(src []byte) error

func (*NullableTreeList) Unset

func (v *NullableTreeList) Unset()

type NullableTreeUpdate

type NullableTreeUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableTreeUpdate

func NewNullableTreeUpdate(val *TreeUpdate) *NullableTreeUpdate

func (NullableTreeUpdate) Get

func (v NullableTreeUpdate) Get() *TreeUpdate

func (NullableTreeUpdate) IsSet

func (v NullableTreeUpdate) IsSet() bool

func (NullableTreeUpdate) MarshalJSON

func (v NullableTreeUpdate) MarshalJSON() ([]byte, error)

func (*NullableTreeUpdate) Set

func (v *NullableTreeUpdate) Set(val *TreeUpdate)

func (*NullableTreeUpdate) UnmarshalJSON

func (v *NullableTreeUpdate) UnmarshalJSON(src []byte) error

func (*NullableTreeUpdate) Unset

func (v *NullableTreeUpdate) Unset()

type NullableUser

type NullableUser struct {
	// contains filtered or unexported fields
}

func NewNullableUser

func NewNullableUser(val *User) *NullableUser

func (NullableUser) Get

func (v NullableUser) Get() *User

func (NullableUser) IsSet

func (v NullableUser) IsSet() bool

func (NullableUser) MarshalJSON

func (v NullableUser) MarshalJSON() ([]byte, error)

func (*NullableUser) Set

func (v *NullableUser) Set(val *User)

func (*NullableUser) UnmarshalJSON

func (v *NullableUser) UnmarshalJSON(src []byte) error

func (*NullableUser) Unset

func (v *NullableUser) Unset()

type NullableUserList

type NullableUserList struct {
	// contains filtered or unexported fields
}

func NewNullableUserList

func NewNullableUserList(val *UserList) *NullableUserList

func (NullableUserList) Get

func (v NullableUserList) Get() *UserList

func (NullableUserList) IsSet

func (v NullableUserList) IsSet() bool

func (NullableUserList) MarshalJSON

func (v NullableUserList) MarshalJSON() ([]byte, error)

func (*NullableUserList) Set

func (v *NullableUserList) Set(val *UserList)

func (*NullableUserList) UnmarshalJSON

func (v *NullableUserList) UnmarshalJSON(src []byte) error

func (*NullableUserList) Unset

func (v *NullableUserList) Unset()

type NullableUserRegister

type NullableUserRegister struct {
	// contains filtered or unexported fields
}

func NewNullableUserRegister

func NewNullableUserRegister(val *UserRegister) *NullableUserRegister

func (NullableUserRegister) Get

func (NullableUserRegister) IsSet

func (v NullableUserRegister) IsSet() bool

func (NullableUserRegister) MarshalJSON

func (v NullableUserRegister) MarshalJSON() ([]byte, error)

func (*NullableUserRegister) Set

func (v *NullableUserRegister) Set(val *UserRegister)

func (*NullableUserRegister) UnmarshalJSON

func (v *NullableUserRegister) UnmarshalJSON(src []byte) error

func (*NullableUserRegister) Unset

func (v *NullableUserRegister) Unset()

type NullableUserRole

type NullableUserRole struct {
	// contains filtered or unexported fields
}

func NewNullableUserRole

func NewNullableUserRole(val *UserRole) *NullableUserRole

func (NullableUserRole) Get

func (v NullableUserRole) Get() *UserRole

func (NullableUserRole) IsSet

func (v NullableUserRole) IsSet() bool

func (NullableUserRole) MarshalJSON

func (v NullableUserRole) MarshalJSON() ([]byte, error)

func (*NullableUserRole) Set

func (v *NullableUserRole) Set(val *UserRole)

func (*NullableUserRole) UnmarshalJSON

func (v *NullableUserRole) UnmarshalJSON(src []byte) error

func (*NullableUserRole) Unset

func (v *NullableUserRole) Unset()

type NullableUserStatus

type NullableUserStatus struct {
	// contains filtered or unexported fields
}

func NewNullableUserStatus

func NewNullableUserStatus(val *UserStatus) *NullableUserStatus

func (NullableUserStatus) Get

func (v NullableUserStatus) Get() *UserStatus

func (NullableUserStatus) IsSet

func (v NullableUserStatus) IsSet() bool

func (NullableUserStatus) MarshalJSON

func (v NullableUserStatus) MarshalJSON() ([]byte, error)

func (*NullableUserStatus) Set

func (v *NullableUserStatus) Set(val *UserStatus)

func (*NullableUserStatus) UnmarshalJSON

func (v *NullableUserStatus) UnmarshalJSON(src []byte) error

func (*NullableUserStatus) Unset

func (v *NullableUserStatus) Unset()

type NullableVehicle

type NullableVehicle struct {
	// contains filtered or unexported fields
}

func NewNullableVehicle

func NewNullableVehicle(val *Vehicle) *NullableVehicle

func (NullableVehicle) Get

func (v NullableVehicle) Get() *Vehicle

func (NullableVehicle) IsSet

func (v NullableVehicle) IsSet() bool

func (NullableVehicle) MarshalJSON

func (v NullableVehicle) MarshalJSON() ([]byte, error)

func (*NullableVehicle) Set

func (v *NullableVehicle) Set(val *Vehicle)

func (*NullableVehicle) UnmarshalJSON

func (v *NullableVehicle) UnmarshalJSON(src []byte) error

func (*NullableVehicle) Unset

func (v *NullableVehicle) Unset()

type NullableVehicleCreate

type NullableVehicleCreate struct {
	// contains filtered or unexported fields
}

func NewNullableVehicleCreate

func NewNullableVehicleCreate(val *VehicleCreate) *NullableVehicleCreate

func (NullableVehicleCreate) Get

func (NullableVehicleCreate) IsSet

func (v NullableVehicleCreate) IsSet() bool

func (NullableVehicleCreate) MarshalJSON

func (v NullableVehicleCreate) MarshalJSON() ([]byte, error)

func (*NullableVehicleCreate) Set

func (v *NullableVehicleCreate) Set(val *VehicleCreate)

func (*NullableVehicleCreate) UnmarshalJSON

func (v *NullableVehicleCreate) UnmarshalJSON(src []byte) error

func (*NullableVehicleCreate) Unset

func (v *NullableVehicleCreate) Unset()

type NullableVehicleList

type NullableVehicleList struct {
	// contains filtered or unexported fields
}

func NewNullableVehicleList

func NewNullableVehicleList(val *VehicleList) *NullableVehicleList

func (NullableVehicleList) Get

func (NullableVehicleList) IsSet

func (v NullableVehicleList) IsSet() bool

func (NullableVehicleList) MarshalJSON

func (v NullableVehicleList) MarshalJSON() ([]byte, error)

func (*NullableVehicleList) Set

func (v *NullableVehicleList) Set(val *VehicleList)

func (*NullableVehicleList) UnmarshalJSON

func (v *NullableVehicleList) UnmarshalJSON(src []byte) error

func (*NullableVehicleList) Unset

func (v *NullableVehicleList) Unset()

type NullableVehicleStatus

type NullableVehicleStatus struct {
	// contains filtered or unexported fields
}

func NewNullableVehicleStatus

func NewNullableVehicleStatus(val *VehicleStatus) *NullableVehicleStatus

func (NullableVehicleStatus) Get

func (NullableVehicleStatus) IsSet

func (v NullableVehicleStatus) IsSet() bool

func (NullableVehicleStatus) MarshalJSON

func (v NullableVehicleStatus) MarshalJSON() ([]byte, error)

func (*NullableVehicleStatus) Set

func (v *NullableVehicleStatus) Set(val *VehicleStatus)

func (*NullableVehicleStatus) UnmarshalJSON

func (v *NullableVehicleStatus) UnmarshalJSON(src []byte) error

func (*NullableVehicleStatus) Unset

func (v *NullableVehicleStatus) Unset()

type NullableVehicleType

type NullableVehicleType struct {
	// contains filtered or unexported fields
}

func NewNullableVehicleType

func NewNullableVehicleType(val *VehicleType) *NullableVehicleType

func (NullableVehicleType) Get

func (NullableVehicleType) IsSet

func (v NullableVehicleType) IsSet() bool

func (NullableVehicleType) MarshalJSON

func (v NullableVehicleType) MarshalJSON() ([]byte, error)

func (*NullableVehicleType) Set

func (v *NullableVehicleType) Set(val *VehicleType)

func (*NullableVehicleType) UnmarshalJSON

func (v *NullableVehicleType) UnmarshalJSON(src []byte) error

func (*NullableVehicleType) Unset

func (v *NullableVehicleType) Unset()

type NullableVehicleUpdate

type NullableVehicleUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableVehicleUpdate

func NewNullableVehicleUpdate(val *VehicleUpdate) *NullableVehicleUpdate

func (NullableVehicleUpdate) Get

func (NullableVehicleUpdate) IsSet

func (v NullableVehicleUpdate) IsSet() bool

func (NullableVehicleUpdate) MarshalJSON

func (v NullableVehicleUpdate) MarshalJSON() ([]byte, error)

func (*NullableVehicleUpdate) Set

func (v *NullableVehicleUpdate) Set(val *VehicleUpdate)

func (*NullableVehicleUpdate) UnmarshalJSON

func (v *NullableVehicleUpdate) UnmarshalJSON(src []byte) error

func (*NullableVehicleUpdate) Unset

func (v *NullableVehicleUpdate) Unset()

type NullableWateringPlan

type NullableWateringPlan struct {
	// contains filtered or unexported fields
}

func NewNullableWateringPlan

func NewNullableWateringPlan(val *WateringPlan) *NullableWateringPlan

func (NullableWateringPlan) Get

func (NullableWateringPlan) IsSet

func (v NullableWateringPlan) IsSet() bool

func (NullableWateringPlan) MarshalJSON

func (v NullableWateringPlan) MarshalJSON() ([]byte, error)

func (*NullableWateringPlan) Set

func (v *NullableWateringPlan) Set(val *WateringPlan)

func (*NullableWateringPlan) UnmarshalJSON

func (v *NullableWateringPlan) UnmarshalJSON(src []byte) error

func (*NullableWateringPlan) Unset

func (v *NullableWateringPlan) Unset()

type NullableWateringPlanCreate

type NullableWateringPlanCreate struct {
	// contains filtered or unexported fields
}

func NewNullableWateringPlanCreate

func NewNullableWateringPlanCreate(val *WateringPlanCreate) *NullableWateringPlanCreate

func (NullableWateringPlanCreate) Get

func (NullableWateringPlanCreate) IsSet

func (v NullableWateringPlanCreate) IsSet() bool

func (NullableWateringPlanCreate) MarshalJSON

func (v NullableWateringPlanCreate) MarshalJSON() ([]byte, error)

func (*NullableWateringPlanCreate) Set

func (*NullableWateringPlanCreate) UnmarshalJSON

func (v *NullableWateringPlanCreate) UnmarshalJSON(src []byte) error

func (*NullableWateringPlanCreate) Unset

func (v *NullableWateringPlanCreate) Unset()

type NullableWateringPlanInList

type NullableWateringPlanInList struct {
	// contains filtered or unexported fields
}

func NewNullableWateringPlanInList

func NewNullableWateringPlanInList(val *WateringPlanInList) *NullableWateringPlanInList

func (NullableWateringPlanInList) Get

func (NullableWateringPlanInList) IsSet

func (v NullableWateringPlanInList) IsSet() bool

func (NullableWateringPlanInList) MarshalJSON

func (v NullableWateringPlanInList) MarshalJSON() ([]byte, error)

func (*NullableWateringPlanInList) Set

func (*NullableWateringPlanInList) UnmarshalJSON

func (v *NullableWateringPlanInList) UnmarshalJSON(src []byte) error

func (*NullableWateringPlanInList) Unset

func (v *NullableWateringPlanInList) Unset()

type NullableWateringPlanList

type NullableWateringPlanList struct {
	// contains filtered or unexported fields
}

func NewNullableWateringPlanList

func NewNullableWateringPlanList(val *WateringPlanList) *NullableWateringPlanList

func (NullableWateringPlanList) Get

func (NullableWateringPlanList) IsSet

func (v NullableWateringPlanList) IsSet() bool

func (NullableWateringPlanList) MarshalJSON

func (v NullableWateringPlanList) MarshalJSON() ([]byte, error)

func (*NullableWateringPlanList) Set

func (*NullableWateringPlanList) UnmarshalJSON

func (v *NullableWateringPlanList) UnmarshalJSON(src []byte) error

func (*NullableWateringPlanList) Unset

func (v *NullableWateringPlanList) Unset()

type NullableWateringPlanStatus

type NullableWateringPlanStatus struct {
	// contains filtered or unexported fields
}

func NewNullableWateringPlanStatus

func NewNullableWateringPlanStatus(val *WateringPlanStatus) *NullableWateringPlanStatus

func (NullableWateringPlanStatus) Get

func (NullableWateringPlanStatus) IsSet

func (v NullableWateringPlanStatus) IsSet() bool

func (NullableWateringPlanStatus) MarshalJSON

func (v NullableWateringPlanStatus) MarshalJSON() ([]byte, error)

func (*NullableWateringPlanStatus) Set

func (*NullableWateringPlanStatus) UnmarshalJSON

func (v *NullableWateringPlanStatus) UnmarshalJSON(src []byte) error

func (*NullableWateringPlanStatus) Unset

func (v *NullableWateringPlanStatus) Unset()

type NullableWateringPlanUpdate

type NullableWateringPlanUpdate struct {
	// contains filtered or unexported fields
}

func NewNullableWateringPlanUpdate

func NewNullableWateringPlanUpdate(val *WateringPlanUpdate) *NullableWateringPlanUpdate

func (NullableWateringPlanUpdate) Get

func (NullableWateringPlanUpdate) IsSet

func (v NullableWateringPlanUpdate) IsSet() bool

func (NullableWateringPlanUpdate) MarshalJSON

func (v NullableWateringPlanUpdate) MarshalJSON() ([]byte, error)

func (*NullableWateringPlanUpdate) Set

func (*NullableWateringPlanUpdate) UnmarshalJSON

func (v *NullableWateringPlanUpdate) UnmarshalJSON(src []byte) error

func (*NullableWateringPlanUpdate) Unset

func (v *NullableWateringPlanUpdate) Unset()

type NullableWateringStatus

type NullableWateringStatus struct {
	// contains filtered or unexported fields
}

func NewNullableWateringStatus

func NewNullableWateringStatus(val *WateringStatus) *NullableWateringStatus

func (NullableWateringStatus) Get

func (NullableWateringStatus) IsSet

func (v NullableWateringStatus) IsSet() bool

func (NullableWateringStatus) MarshalJSON

func (v NullableWateringStatus) MarshalJSON() ([]byte, error)

func (*NullableWateringStatus) Set

func (*NullableWateringStatus) UnmarshalJSON

func (v *NullableWateringStatus) UnmarshalJSON(src []byte) error

func (*NullableWateringStatus) Unset

func (v *NullableWateringStatus) Unset()

type NullableWatermarkResponse

type NullableWatermarkResponse struct {
	// contains filtered or unexported fields
}

func NewNullableWatermarkResponse

func NewNullableWatermarkResponse(val *WatermarkResponse) *NullableWatermarkResponse

func (NullableWatermarkResponse) Get

func (NullableWatermarkResponse) IsSet

func (v NullableWatermarkResponse) IsSet() bool

func (NullableWatermarkResponse) MarshalJSON

func (v NullableWatermarkResponse) MarshalJSON() ([]byte, error)

func (*NullableWatermarkResponse) Set

func (*NullableWatermarkResponse) UnmarshalJSON

func (v *NullableWatermarkResponse) UnmarshalJSON(src []byte) error

func (*NullableWatermarkResponse) Unset

func (v *NullableWatermarkResponse) Unset()

type Pagination

type Pagination struct {
	CurrentPage  int32 `json:"current_page"`
	NextPage     int32 `json:"next_page"`
	PrevPage     int32 `json:"prev_page"`
	TotalPages   int32 `json:"total_pages"`
	TotalRecords int32 `json:"total_records"`
}

Pagination struct for Pagination

func NewPagination

func NewPagination(currentPage int32, nextPage int32, prevPage int32, totalPages int32, totalRecords int32) *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 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

func (*Pagination) GetCurrentPage

func (o *Pagination) GetCurrentPage() int32

GetCurrentPage returns the CurrentPage field value

func (*Pagination) GetCurrentPageOk

func (o *Pagination) GetCurrentPageOk() (*int32, bool)

GetCurrentPageOk returns a tuple with the CurrentPage field value and a boolean to check if the value has been set.

func (*Pagination) GetNextPage

func (o *Pagination) GetNextPage() int32

GetNextPage returns the NextPage field value

func (*Pagination) GetNextPageOk

func (o *Pagination) GetNextPageOk() (*int32, bool)

GetNextPageOk returns a tuple with the NextPage field value and a boolean to check if the value has been set.

func (*Pagination) GetPrevPage

func (o *Pagination) GetPrevPage() int32

GetPrevPage returns the PrevPage field value

func (*Pagination) GetPrevPageOk

func (o *Pagination) GetPrevPageOk() (*int32, bool)

GetPrevPageOk returns a tuple with the PrevPage field value and a boolean to check if the value has been set.

func (*Pagination) GetTotalPages

func (o *Pagination) GetTotalPages() int32

GetTotalPages returns the TotalPages field value

func (*Pagination) GetTotalPagesOk

func (o *Pagination) GetTotalPagesOk() (*int32, bool)

GetTotalPagesOk returns a tuple with the TotalPages field value and a boolean to check if the value has been set.

func (*Pagination) GetTotalRecords

func (o *Pagination) GetTotalRecords() int32

GetTotalRecords returns the TotalRecords field value

func (*Pagination) GetTotalRecordsOk

func (o *Pagination) GetTotalRecordsOk() (*int32, bool)

GetTotalRecordsOk returns a tuple with the TotalRecords field value and a boolean to check if the value has been set.

func (Pagination) MarshalJSON

func (o Pagination) MarshalJSON() ([]byte, error)

func (*Pagination) SetCurrentPage

func (o *Pagination) SetCurrentPage(v int32)

SetCurrentPage sets field value

func (*Pagination) SetNextPage

func (o *Pagination) SetNextPage(v int32)

SetNextPage sets field value

func (*Pagination) SetPrevPage

func (o *Pagination) SetPrevPage(v int32)

SetPrevPage sets field value

func (*Pagination) SetTotalPages

func (o *Pagination) SetTotalPages(v int32)

SetTotalPages sets field value

func (*Pagination) SetTotalRecords

func (o *Pagination) SetTotalRecords(v int32)

SetTotalRecords sets field value

func (Pagination) ToMap

func (o Pagination) ToMap() (map[string]interface{}, error)

func (*Pagination) UnmarshalJSON

func (o *Pagination) UnmarshalJSON(data []byte) (err error)

type Plugin

type Plugin struct {
	Description string `json:"description"`
	HostPath    string `json:"host_path"`
	Name        string `json:"name"`
	Slug        string `json:"slug"`
	Version     string `json:"version"`
}

Plugin struct for Plugin

func NewPlugin

func NewPlugin(description string, hostPath string, name string, slug string, version string) *Plugin

NewPlugin instantiates a new Plugin object This constructor will assign default values to properties that have it defined, 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 NewPluginWithDefaults

func NewPluginWithDefaults() *Plugin

NewPluginWithDefaults instantiates a new Plugin object This 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 (*Plugin) GetDescription

func (o *Plugin) GetDescription() string

GetDescription returns the Description field value

func (*Plugin) GetDescriptionOk

func (o *Plugin) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Plugin) GetHostPath

func (o *Plugin) GetHostPath() string

GetHostPath returns the HostPath field value

func (*Plugin) GetHostPathOk

func (o *Plugin) GetHostPathOk() (*string, bool)

GetHostPathOk returns a tuple with the HostPath field value and a boolean to check if the value has been set.

func (*Plugin) GetName

func (o *Plugin) GetName() string

GetName returns the Name field value

func (*Plugin) GetNameOk

func (o *Plugin) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Plugin) GetSlug

func (o *Plugin) GetSlug() string

GetSlug returns the Slug field value

func (*Plugin) GetSlugOk

func (o *Plugin) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field value and a boolean to check if the value has been set.

func (*Plugin) GetVersion

func (o *Plugin) GetVersion() string

GetVersion returns the Version field value

func (*Plugin) GetVersionOk

func (o *Plugin) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (Plugin) MarshalJSON

func (o Plugin) MarshalJSON() ([]byte, error)

func (*Plugin) SetDescription

func (o *Plugin) SetDescription(v string)

SetDescription sets field value

func (*Plugin) SetHostPath

func (o *Plugin) SetHostPath(v string)

SetHostPath sets field value

func (*Plugin) SetName

func (o *Plugin) SetName(v string)

SetName sets field value

func (*Plugin) SetSlug

func (o *Plugin) SetSlug(v string)

SetSlug sets field value

func (*Plugin) SetVersion

func (o *Plugin) SetVersion(v string)

SetVersion sets field value

func (Plugin) ToMap

func (o Plugin) ToMap() (map[string]interface{}, error)

func (*Plugin) UnmarshalJSON

func (o *Plugin) UnmarshalJSON(data []byte) (err error)

type PluginAPIService

type PluginAPIService service

PluginAPIService PluginAPI service

func (*PluginAPIService) GetPluginInfo

func (a *PluginAPIService) GetPluginInfo(ctx context.Context, pluginSlug string) ApiGetPluginInfoRequest

GetPluginInfo Get a plugin info

Get a plugin info

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pluginSlug Slug of the plugin
@return ApiGetPluginInfoRequest

func (*PluginAPIService) GetPluginInfoExecute

func (a *PluginAPIService) GetPluginInfoExecute(r ApiGetPluginInfoRequest) (*Plugin, *http.Response, error)

Execute executes the request

@return Plugin

func (*PluginAPIService) GetPluginsList

GetPluginsList Get a list of all registered plugins

Get a list of all registered plugins

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetPluginsListRequest

func (*PluginAPIService) GetPluginsListExecute

Execute executes the request

@return PluginListResponse

func (*PluginAPIService) PluginHeartbeat

func (a *PluginAPIService) PluginHeartbeat(ctx context.Context, pluginSlug string) ApiPluginHeartbeatRequest

PluginHeartbeat Heartbeat for a plugin

Heartbeat for a plugin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pluginSlug Name of the plugin specified by slug during registration
@return ApiPluginHeartbeatRequest

func (*PluginAPIService) PluginHeartbeatExecute

func (a *PluginAPIService) PluginHeartbeatExecute(r ApiPluginHeartbeatRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*PluginAPIService) RefreshPluginToken

func (a *PluginAPIService) RefreshPluginToken(ctx context.Context, pluginSlug string) ApiRefreshPluginTokenRequest

RefreshPluginToken Refresh plugin token

Refresh plugin token

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pluginSlug Slug of the plugin
@return ApiRefreshPluginTokenRequest

func (*PluginAPIService) RefreshPluginTokenExecute

func (a *PluginAPIService) RefreshPluginTokenExecute(r ApiRefreshPluginTokenRequest) (*ClientToken, *http.Response, error)

Execute executes the request

@return ClientToken

func (*PluginAPIService) RegisterPlugin

RegisterPlugin Register a plugin

Register a plugin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRegisterPluginRequest

func (*PluginAPIService) RegisterPluginExecute

func (a *PluginAPIService) RegisterPluginExecute(r ApiRegisterPluginRequest) (*ClientToken, *http.Response, error)

Execute executes the request

@return ClientToken

func (*PluginAPIService) UnregisterPlugin

func (a *PluginAPIService) UnregisterPlugin(ctx context.Context, pluginSlug string) ApiUnregisterPluginRequest

UnregisterPlugin Unregister a plugin

Unregister a plugin

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param pluginSlug Slug of the plugin
@return ApiUnregisterPluginRequest

func (*PluginAPIService) UnregisterPluginExecute

func (a *PluginAPIService) UnregisterPluginExecute(r ApiUnregisterPluginRequest) (*http.Response, error)

Execute executes the request

type PluginAuth

type PluginAuth struct {
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
}

PluginAuth struct for PluginAuth

func NewPluginAuth

func NewPluginAuth(clientId string, clientSecret string) *PluginAuth

NewPluginAuth instantiates a new PluginAuth object This constructor will assign default values to properties that have it defined, 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 NewPluginAuthWithDefaults

func NewPluginAuthWithDefaults() *PluginAuth

NewPluginAuthWithDefaults instantiates a new PluginAuth object This 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 (*PluginAuth) GetClientId

func (o *PluginAuth) GetClientId() string

GetClientId returns the ClientId field value

func (*PluginAuth) GetClientIdOk

func (o *PluginAuth) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field value and a boolean to check if the value has been set.

func (*PluginAuth) GetClientSecret

func (o *PluginAuth) GetClientSecret() string

GetClientSecret returns the ClientSecret field value

func (*PluginAuth) GetClientSecretOk

func (o *PluginAuth) GetClientSecretOk() (*string, bool)

GetClientSecretOk returns a tuple with the ClientSecret field value and a boolean to check if the value has been set.

func (PluginAuth) MarshalJSON

func (o PluginAuth) MarshalJSON() ([]byte, error)

func (*PluginAuth) SetClientId

func (o *PluginAuth) SetClientId(v string)

SetClientId sets field value

func (*PluginAuth) SetClientSecret

func (o *PluginAuth) SetClientSecret(v string)

SetClientSecret sets field value

func (PluginAuth) ToMap

func (o PluginAuth) ToMap() (map[string]interface{}, error)

func (*PluginAuth) UnmarshalJSON

func (o *PluginAuth) UnmarshalJSON(data []byte) (err error)

type PluginListResponse

type PluginListResponse struct {
	Plugins []Plugin `json:"plugins"`
}

PluginListResponse struct for PluginListResponse

func NewPluginListResponse

func NewPluginListResponse(plugins []Plugin) *PluginListResponse

NewPluginListResponse instantiates a new PluginListResponse object This constructor will assign default values to properties that have it defined, 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 NewPluginListResponseWithDefaults

func NewPluginListResponseWithDefaults() *PluginListResponse

NewPluginListResponseWithDefaults instantiates a new PluginListResponse object This 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 (*PluginListResponse) GetPlugins

func (o *PluginListResponse) GetPlugins() []Plugin

GetPlugins returns the Plugins field value

func (*PluginListResponse) GetPluginsOk

func (o *PluginListResponse) GetPluginsOk() ([]Plugin, bool)

GetPluginsOk returns a tuple with the Plugins field value and a boolean to check if the value has been set.

func (PluginListResponse) MarshalJSON

func (o PluginListResponse) MarshalJSON() ([]byte, error)

func (*PluginListResponse) SetPlugins

func (o *PluginListResponse) SetPlugins(v []Plugin)

SetPlugins sets field value

func (PluginListResponse) ToMap

func (o PluginListResponse) ToMap() (map[string]interface{}, error)

func (*PluginListResponse) UnmarshalJSON

func (o *PluginListResponse) UnmarshalJSON(data []byte) (err error)

type PluginRegisterRequest

type PluginRegisterRequest struct {
	Auth        PluginAuth `json:"auth"`
	Description string     `json:"description"`
	Name        string     `json:"name"`
	Path        string     `json:"path"`
	Slug        string     `json:"slug"`
	Version     string     `json:"version"`
}

PluginRegisterRequest struct for PluginRegisterRequest

func NewPluginRegisterRequest

func NewPluginRegisterRequest(auth PluginAuth, description string, name string, path string, slug string, version string) *PluginRegisterRequest

NewPluginRegisterRequest instantiates a new PluginRegisterRequest object This constructor will assign default values to properties that have it defined, 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 NewPluginRegisterRequestWithDefaults

func NewPluginRegisterRequestWithDefaults() *PluginRegisterRequest

NewPluginRegisterRequestWithDefaults instantiates a new PluginRegisterRequest object This 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 (*PluginRegisterRequest) GetAuth

func (o *PluginRegisterRequest) GetAuth() PluginAuth

GetAuth returns the Auth field value

func (*PluginRegisterRequest) GetAuthOk

func (o *PluginRegisterRequest) GetAuthOk() (*PluginAuth, bool)

GetAuthOk returns a tuple with the Auth field value and a boolean to check if the value has been set.

func (*PluginRegisterRequest) GetDescription

func (o *PluginRegisterRequest) GetDescription() string

GetDescription returns the Description field value

func (*PluginRegisterRequest) GetDescriptionOk

func (o *PluginRegisterRequest) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*PluginRegisterRequest) GetName

func (o *PluginRegisterRequest) GetName() string

GetName returns the Name field value

func (*PluginRegisterRequest) GetNameOk

func (o *PluginRegisterRequest) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*PluginRegisterRequest) GetPath

func (o *PluginRegisterRequest) GetPath() string

GetPath returns the Path field value

func (*PluginRegisterRequest) GetPathOk

func (o *PluginRegisterRequest) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*PluginRegisterRequest) GetSlug

func (o *PluginRegisterRequest) GetSlug() string

GetSlug returns the Slug field value

func (*PluginRegisterRequest) GetSlugOk

func (o *PluginRegisterRequest) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field value and a boolean to check if the value has been set.

func (*PluginRegisterRequest) GetVersion

func (o *PluginRegisterRequest) GetVersion() string

GetVersion returns the Version field value

func (*PluginRegisterRequest) GetVersionOk

func (o *PluginRegisterRequest) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (PluginRegisterRequest) MarshalJSON

func (o PluginRegisterRequest) MarshalJSON() ([]byte, error)

func (*PluginRegisterRequest) SetAuth

func (o *PluginRegisterRequest) SetAuth(v PluginAuth)

SetAuth sets field value

func (*PluginRegisterRequest) SetDescription

func (o *PluginRegisterRequest) SetDescription(v string)

SetDescription sets field value

func (*PluginRegisterRequest) SetName

func (o *PluginRegisterRequest) SetName(v string)

SetName sets field value

func (*PluginRegisterRequest) SetPath

func (o *PluginRegisterRequest) SetPath(v string)

SetPath sets field value

func (*PluginRegisterRequest) SetSlug

func (o *PluginRegisterRequest) SetSlug(v string)

SetSlug sets field value

func (*PluginRegisterRequest) SetVersion

func (o *PluginRegisterRequest) SetVersion(v string)

SetVersion sets field value

func (PluginRegisterRequest) ToMap

func (o PluginRegisterRequest) ToMap() (map[string]interface{}, error)

func (*PluginRegisterRequest) UnmarshalJSON

func (o *PluginRegisterRequest) UnmarshalJSON(data []byte) (err error)

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `json:"refresh_token"`
}

RefreshTokenRequest struct for RefreshTokenRequest

func NewRefreshTokenRequest

func NewRefreshTokenRequest(refreshToken string) *RefreshTokenRequest

NewRefreshTokenRequest instantiates a new RefreshTokenRequest object This constructor will assign default values to properties that have it defined, 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 NewRefreshTokenRequestWithDefaults

func NewRefreshTokenRequestWithDefaults() *RefreshTokenRequest

NewRefreshTokenRequestWithDefaults instantiates a new RefreshTokenRequest object This 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 (*RefreshTokenRequest) GetRefreshToken

func (o *RefreshTokenRequest) GetRefreshToken() string

GetRefreshToken returns the RefreshToken field value

func (*RefreshTokenRequest) GetRefreshTokenOk

func (o *RefreshTokenRequest) GetRefreshTokenOk() (*string, bool)

GetRefreshTokenOk returns a tuple with the RefreshToken field value and a boolean to check if the value has been set.

func (RefreshTokenRequest) MarshalJSON

func (o RefreshTokenRequest) MarshalJSON() ([]byte, error)

func (*RefreshTokenRequest) SetRefreshToken

func (o *RefreshTokenRequest) SetRefreshToken(v string)

SetRefreshToken sets field value

func (RefreshTokenRequest) ToMap

func (o RefreshTokenRequest) ToMap() (map[string]interface{}, error)

func (*RefreshTokenRequest) UnmarshalJSON

func (o *RefreshTokenRequest) UnmarshalJSON(data []byte) (err error)

type Region

type Region struct {
	Id   int32  `json:"id"`
	Name string `json:"name"`
}

Region struct for Region

func NewRegion

func NewRegion(id int32, name string) *Region

NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, 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 NewRegionWithDefaults

func NewRegionWithDefaults() *Region

NewRegionWithDefaults instantiates a new Region object This 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 (*Region) GetId

func (o *Region) GetId() int32

GetId returns the Id field value

func (*Region) GetIdOk

func (o *Region) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Region) GetName

func (o *Region) GetName() string

GetName returns the Name field value

func (*Region) GetNameOk

func (o *Region) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (Region) MarshalJSON

func (o Region) MarshalJSON() ([]byte, error)

func (*Region) SetId

func (o *Region) SetId(v int32)

SetId sets field value

func (*Region) SetName

func (o *Region) SetName(v string)

SetName sets field value

func (Region) ToMap

func (o Region) ToMap() (map[string]interface{}, error)

func (*Region) UnmarshalJSON

func (o *Region) UnmarshalJSON(data []byte) (err error)

type RegionAPIService

type RegionAPIService service

RegionAPIService RegionAPI service

func (*RegionAPIService) V1RegionGet

V1RegionGet Get all regions

Get all regions

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1RegionGetRequest

func (*RegionAPIService) V1RegionGetExecute

func (a *RegionAPIService) V1RegionGetExecute(r ApiV1RegionGetRequest) (*RegionList, *http.Response, error)

Execute executes the request

@return RegionList

func (*RegionAPIService) V1RegionIdGet

V1RegionIdGet Get a region by ID

Get a region by ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Region ID
@return ApiV1RegionIdGetRequest

func (*RegionAPIService) V1RegionIdGetExecute

func (a *RegionAPIService) V1RegionIdGetExecute(r ApiV1RegionIdGetRequest) (*Region, *http.Response, error)

Execute executes the request

@return Region

type RegionList

type RegionList struct {
	Pagination *Pagination `json:"pagination,omitempty"`
	Regions    []Region    `json:"regions"`
}

RegionList struct for RegionList

func NewRegionList

func NewRegionList(regions []Region) *RegionList

NewRegionList instantiates a new RegionList object This constructor will assign default values to properties that have it defined, 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 NewRegionListWithDefaults

func NewRegionListWithDefaults() *RegionList

NewRegionListWithDefaults instantiates a new RegionList object This 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 (*RegionList) GetPagination

func (o *RegionList) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*RegionList) GetPaginationOk

func (o *RegionList) GetPaginationOk() (*Pagination, bool)

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 (*RegionList) GetRegions

func (o *RegionList) GetRegions() []Region

GetRegions returns the Regions field value

func (*RegionList) GetRegionsOk

func (o *RegionList) GetRegionsOk() ([]Region, bool)

GetRegionsOk returns a tuple with the Regions field value and a boolean to check if the value has been set.

func (*RegionList) HasPagination

func (o *RegionList) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (RegionList) MarshalJSON

func (o RegionList) MarshalJSON() ([]byte, error)

func (*RegionList) SetPagination

func (o *RegionList) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (*RegionList) SetRegions

func (o *RegionList) SetRegions(v []Region)

SetRegions sets field value

func (RegionList) ToMap

func (o RegionList) ToMap() (map[string]interface{}, error)

func (*RegionList) UnmarshalJSON

func (o *RegionList) UnmarshalJSON(data []byte) (err error)

type RouteRequest

type RouteRequest struct {
	ClusterIds    []int32 `json:"cluster_ids"`
	TrailerId     *int32  `json:"trailer_id,omitempty"`
	TransporterId int32   `json:"transporter_id"`
}

RouteRequest struct for RouteRequest

func NewRouteRequest

func NewRouteRequest(clusterIds []int32, transporterId int32) *RouteRequest

NewRouteRequest instantiates a new RouteRequest object This constructor will assign default values to properties that have it defined, 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 NewRouteRequestWithDefaults

func NewRouteRequestWithDefaults() *RouteRequest

NewRouteRequestWithDefaults instantiates a new RouteRequest object This 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 (*RouteRequest) GetClusterIds

func (o *RouteRequest) GetClusterIds() []int32

GetClusterIds returns the ClusterIds field value

func (*RouteRequest) GetClusterIdsOk

func (o *RouteRequest) GetClusterIdsOk() ([]int32, bool)

GetClusterIdsOk returns a tuple with the ClusterIds field value and a boolean to check if the value has been set.

func (*RouteRequest) GetTrailerId

func (o *RouteRequest) GetTrailerId() int32

GetTrailerId returns the TrailerId field value if set, zero value otherwise.

func (*RouteRequest) GetTrailerIdOk

func (o *RouteRequest) GetTrailerIdOk() (*int32, bool)

GetTrailerIdOk returns a tuple with the TrailerId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RouteRequest) GetTransporterId

func (o *RouteRequest) GetTransporterId() int32

GetTransporterId returns the TransporterId field value

func (*RouteRequest) GetTransporterIdOk

func (o *RouteRequest) GetTransporterIdOk() (*int32, bool)

GetTransporterIdOk returns a tuple with the TransporterId field value and a boolean to check if the value has been set.

func (*RouteRequest) HasTrailerId

func (o *RouteRequest) HasTrailerId() bool

HasTrailerId returns a boolean if a field has been set.

func (RouteRequest) MarshalJSON

func (o RouteRequest) MarshalJSON() ([]byte, error)

func (*RouteRequest) SetClusterIds

func (o *RouteRequest) SetClusterIds(v []int32)

SetClusterIds sets field value

func (*RouteRequest) SetTrailerId

func (o *RouteRequest) SetTrailerId(v int32)

SetTrailerId gets a reference to the given int32 and assigns it to the TrailerId field.

func (*RouteRequest) SetTransporterId

func (o *RouteRequest) SetTransporterId(v int32)

SetTransporterId sets field value

func (RouteRequest) ToMap

func (o RouteRequest) ToMap() (map[string]interface{}, error)

func (*RouteRequest) UnmarshalJSON

func (o *RouteRequest) UnmarshalJSON(data []byte) (err error)

type Sensor

type Sensor struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	CreatedAt             string                 `json:"created_at"`
	Id                    string                 `json:"id"`
	LatestData            SensorData             `json:"latest_data"`
	Latitude              float32                `json:"latitude"`
	Longitude             float32                `json:"longitude"`
	Provider              string                 `json:"provider"`
	Status                SensorStatus           `json:"status"`
	UpdatedAt             string                 `json:"updated_at"`
}

Sensor struct for Sensor

func NewSensor

func NewSensor(createdAt string, id string, latestData SensorData, latitude float32, longitude float32, provider string, status SensorStatus, updatedAt string) *Sensor

NewSensor instantiates a new Sensor object This constructor will assign default values to properties that have it defined, 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 NewSensorWithDefaults

func NewSensorWithDefaults() *Sensor

NewSensorWithDefaults instantiates a new Sensor object This 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 (*Sensor) GetAdditionalInformation

func (o *Sensor) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*Sensor) GetAdditionalInformationOk

func (o *Sensor) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sensor) GetCreatedAt

func (o *Sensor) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*Sensor) GetCreatedAtOk

func (o *Sensor) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Sensor) GetId

func (o *Sensor) GetId() string

GetId returns the Id field value

func (*Sensor) GetIdOk

func (o *Sensor) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Sensor) GetLatestData

func (o *Sensor) GetLatestData() SensorData

GetLatestData returns the LatestData field value

func (*Sensor) GetLatestDataOk

func (o *Sensor) GetLatestDataOk() (*SensorData, bool)

GetLatestDataOk returns a tuple with the LatestData field value and a boolean to check if the value has been set.

func (*Sensor) GetLatitude

func (o *Sensor) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*Sensor) GetLatitudeOk

func (o *Sensor) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*Sensor) GetLongitude

func (o *Sensor) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*Sensor) GetLongitudeOk

func (o *Sensor) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (*Sensor) GetProvider

func (o *Sensor) GetProvider() string

GetProvider returns the Provider field value

func (*Sensor) GetProviderOk

func (o *Sensor) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*Sensor) GetStatus

func (o *Sensor) GetStatus() SensorStatus

GetStatus returns the Status field value

func (*Sensor) GetStatusOk

func (o *Sensor) GetStatusOk() (*SensorStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Sensor) GetUpdatedAt

func (o *Sensor) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*Sensor) GetUpdatedAtOk

func (o *Sensor) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Sensor) HasAdditionalInformation

func (o *Sensor) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (Sensor) MarshalJSON

func (o Sensor) MarshalJSON() ([]byte, error)

func (*Sensor) SetAdditionalInformation

func (o *Sensor) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*Sensor) SetCreatedAt

func (o *Sensor) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*Sensor) SetId

func (o *Sensor) SetId(v string)

SetId sets field value

func (*Sensor) SetLatestData

func (o *Sensor) SetLatestData(v SensorData)

SetLatestData sets field value

func (*Sensor) SetLatitude

func (o *Sensor) SetLatitude(v float32)

SetLatitude sets field value

func (*Sensor) SetLongitude

func (o *Sensor) SetLongitude(v float32)

SetLongitude sets field value

func (*Sensor) SetProvider

func (o *Sensor) SetProvider(v string)

SetProvider sets field value

func (*Sensor) SetStatus

func (o *Sensor) SetStatus(v SensorStatus)

SetStatus sets field value

func (*Sensor) SetUpdatedAt

func (o *Sensor) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (Sensor) ToMap

func (o Sensor) ToMap() (map[string]interface{}, error)

func (*Sensor) UnmarshalJSON

func (o *Sensor) UnmarshalJSON(data []byte) (err error)

type SensorAPIService

type SensorAPIService service

SensorAPIService SensorAPI service

func (*SensorAPIService) DeleteSensor

func (a *SensorAPIService) DeleteSensor(ctx context.Context, sensorId string) ApiDeleteSensorRequest

DeleteSensor Delete sensor

Delete sensor

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sensorId Sensor ID
@return ApiDeleteSensorRequest

func (*SensorAPIService) DeleteSensorExecute

func (a *SensorAPIService) DeleteSensorExecute(r ApiDeleteSensorRequest) (*http.Response, error)

Execute executes the request

func (*SensorAPIService) GetAllSensorDataById

func (a *SensorAPIService) GetAllSensorDataById(ctx context.Context, sensorId string) ApiGetAllSensorDataByIdRequest

GetAllSensorDataById Get all sensor data by id

Get all sensor data by id

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sensorId Sensor ID
@return ApiGetAllSensorDataByIdRequest

func (*SensorAPIService) GetAllSensorDataByIdExecute

func (a *SensorAPIService) GetAllSensorDataByIdExecute(r ApiGetAllSensorDataByIdRequest) (*SensorDataList, *http.Response, error)

Execute executes the request

@return SensorDataList

func (*SensorAPIService) GetAllSensors

GetAllSensors Get all sensors

Get all sensors

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllSensorsRequest

func (*SensorAPIService) GetAllSensorsExecute

func (a *SensorAPIService) GetAllSensorsExecute(r ApiGetAllSensorsRequest) (*SensorList, *http.Response, error)

Execute executes the request

@return SensorList

func (*SensorAPIService) GetSensorById

func (a *SensorAPIService) GetSensorById(ctx context.Context, sensorId string) ApiGetSensorByIdRequest

GetSensorById Get sensor by ID

Get sensor by ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sensorId Sensor ID
@return ApiGetSensorByIdRequest

func (*SensorAPIService) GetSensorByIdExecute

func (a *SensorAPIService) GetSensorByIdExecute(r ApiGetSensorByIdRequest) (*Sensor, *http.Response, error)

Execute executes the request

@return Sensor

type SensorData

type SensorData struct {
	Battery     float32             `json:"battery"`
	CreatedAt   string              `json:"created_at"`
	Humidity    float32             `json:"humidity"`
	Temperature float32             `json:"temperature"`
	UpdatedAt   string              `json:"updated_at"`
	Watermarks  []WatermarkResponse `json:"watermarks"`
}

SensorData struct for SensorData

func NewSensorData

func NewSensorData(battery float32, createdAt string, humidity float32, temperature float32, updatedAt string, watermarks []WatermarkResponse) *SensorData

NewSensorData instantiates a new SensorData object This constructor will assign default values to properties that have it defined, 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 NewSensorDataWithDefaults

func NewSensorDataWithDefaults() *SensorData

NewSensorDataWithDefaults instantiates a new SensorData object This 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 (*SensorData) GetBattery

func (o *SensorData) GetBattery() float32

GetBattery returns the Battery field value

func (*SensorData) GetBatteryOk

func (o *SensorData) GetBatteryOk() (*float32, bool)

GetBatteryOk returns a tuple with the Battery field value and a boolean to check if the value has been set.

func (*SensorData) GetCreatedAt

func (o *SensorData) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*SensorData) GetCreatedAtOk

func (o *SensorData) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*SensorData) GetHumidity

func (o *SensorData) GetHumidity() float32

GetHumidity returns the Humidity field value

func (*SensorData) GetHumidityOk

func (o *SensorData) GetHumidityOk() (*float32, bool)

GetHumidityOk returns a tuple with the Humidity field value and a boolean to check if the value has been set.

func (*SensorData) GetTemperature

func (o *SensorData) GetTemperature() float32

GetTemperature returns the Temperature field value

func (*SensorData) GetTemperatureOk

func (o *SensorData) GetTemperatureOk() (*float32, bool)

GetTemperatureOk returns a tuple with the Temperature field value and a boolean to check if the value has been set.

func (*SensorData) GetUpdatedAt

func (o *SensorData) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*SensorData) GetUpdatedAtOk

func (o *SensorData) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*SensorData) GetWatermarks

func (o *SensorData) GetWatermarks() []WatermarkResponse

GetWatermarks returns the Watermarks field value

func (*SensorData) GetWatermarksOk

func (o *SensorData) GetWatermarksOk() ([]WatermarkResponse, bool)

GetWatermarksOk returns a tuple with the Watermarks field value and a boolean to check if the value has been set.

func (SensorData) MarshalJSON

func (o SensorData) MarshalJSON() ([]byte, error)

func (*SensorData) SetBattery

func (o *SensorData) SetBattery(v float32)

SetBattery sets field value

func (*SensorData) SetCreatedAt

func (o *SensorData) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*SensorData) SetHumidity

func (o *SensorData) SetHumidity(v float32)

SetHumidity sets field value

func (*SensorData) SetTemperature

func (o *SensorData) SetTemperature(v float32)

SetTemperature sets field value

func (*SensorData) SetUpdatedAt

func (o *SensorData) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*SensorData) SetWatermarks

func (o *SensorData) SetWatermarks(v []WatermarkResponse)

SetWatermarks sets field value

func (SensorData) ToMap

func (o SensorData) ToMap() (map[string]interface{}, error)

func (*SensorData) UnmarshalJSON

func (o *SensorData) UnmarshalJSON(data []byte) (err error)

type SensorDataList

type SensorDataList struct {
	Data []SensorData `json:"data"`
}

SensorDataList struct for SensorDataList

func NewSensorDataList

func NewSensorDataList(data []SensorData) *SensorDataList

NewSensorDataList instantiates a new SensorDataList object This constructor will assign default values to properties that have it defined, 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 NewSensorDataListWithDefaults

func NewSensorDataListWithDefaults() *SensorDataList

NewSensorDataListWithDefaults instantiates a new SensorDataList object This 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 (*SensorDataList) GetData

func (o *SensorDataList) GetData() []SensorData

GetData returns the Data field value

func (*SensorDataList) GetDataOk

func (o *SensorDataList) GetDataOk() ([]SensorData, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (SensorDataList) MarshalJSON

func (o SensorDataList) MarshalJSON() ([]byte, error)

func (*SensorDataList) SetData

func (o *SensorDataList) SetData(v []SensorData)

SetData sets field value

func (SensorDataList) ToMap

func (o SensorDataList) ToMap() (map[string]interface{}, error)

func (*SensorDataList) UnmarshalJSON

func (o *SensorDataList) UnmarshalJSON(data []byte) (err error)

type SensorList

type SensorList struct {
	Data       []Sensor    `json:"data"`
	Pagination *Pagination `json:"pagination,omitempty"`
}

SensorList struct for SensorList

func NewSensorList

func NewSensorList(data []Sensor) *SensorList

NewSensorList instantiates a new SensorList object This constructor will assign default values to properties that have it defined, 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 NewSensorListWithDefaults

func NewSensorListWithDefaults() *SensorList

NewSensorListWithDefaults instantiates a new SensorList object This 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 (*SensorList) GetData

func (o *SensorList) GetData() []Sensor

GetData returns the Data field value

func (*SensorList) GetDataOk

func (o *SensorList) GetDataOk() ([]Sensor, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*SensorList) GetPagination

func (o *SensorList) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*SensorList) GetPaginationOk

func (o *SensorList) GetPaginationOk() (*Pagination, bool)

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 (*SensorList) HasPagination

func (o *SensorList) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (SensorList) MarshalJSON

func (o SensorList) MarshalJSON() ([]byte, error)

func (*SensorList) SetData

func (o *SensorList) SetData(v []Sensor)

SetData sets field value

func (*SensorList) SetPagination

func (o *SensorList) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (SensorList) ToMap

func (o SensorList) ToMap() (map[string]interface{}, error)

func (*SensorList) UnmarshalJSON

func (o *SensorList) UnmarshalJSON(data []byte) (err error)

type SensorStatus

type SensorStatus string

SensorStatus the model 'SensorStatus'

const (
	SensorStatusOnline  SensorStatus = "online"
	SensorStatusOffline SensorStatus = "offline"
	SensorStatusUnknown SensorStatus = "unknown"
)

List of SensorStatus

func NewSensorStatusFromValue

func NewSensorStatusFromValue(v string) (*SensorStatus, error)

NewSensorStatusFromValue returns a pointer to a valid SensorStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (SensorStatus) IsValid

func (v SensorStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (SensorStatus) Ptr

func (v SensorStatus) Ptr() *SensorStatus

Ptr returns reference to SensorStatus value

func (*SensorStatus) UnmarshalJSON

func (v *SensorStatus) UnmarshalJSON(src []byte) error

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerInfo

type ServerInfo struct {
	Arch      string `json:"arch"`
	Hostname  string `json:"hostname"`
	Interface string `json:"interface"`
	Ip        string `json:"ip"`
	Os        string `json:"os"`
	Port      int32  `json:"port"`
	Uptime    string `json:"uptime"`
	Url       string `json:"url"`
}

ServerInfo struct for ServerInfo

func NewServerInfo

func NewServerInfo(arch string, hostname string, interface_ string, ip string, os string, port int32, uptime string, url string) *ServerInfo

NewServerInfo instantiates a new ServerInfo object This constructor will assign default values to properties that have it defined, 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 NewServerInfoWithDefaults

func NewServerInfoWithDefaults() *ServerInfo

NewServerInfoWithDefaults instantiates a new ServerInfo object This 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 (*ServerInfo) GetArch

func (o *ServerInfo) GetArch() string

GetArch returns the Arch field value

func (*ServerInfo) GetArchOk

func (o *ServerInfo) GetArchOk() (*string, bool)

GetArchOk returns a tuple with the Arch field value and a boolean to check if the value has been set.

func (*ServerInfo) GetHostname

func (o *ServerInfo) GetHostname() string

GetHostname returns the Hostname field value

func (*ServerInfo) GetHostnameOk

func (o *ServerInfo) GetHostnameOk() (*string, bool)

GetHostnameOk returns a tuple with the Hostname field value and a boolean to check if the value has been set.

func (*ServerInfo) GetInterface

func (o *ServerInfo) GetInterface() string

GetInterface returns the Interface field value

func (*ServerInfo) GetInterfaceOk

func (o *ServerInfo) GetInterfaceOk() (*string, bool)

GetInterfaceOk returns a tuple with the Interface field value and a boolean to check if the value has been set.

func (*ServerInfo) GetIp

func (o *ServerInfo) GetIp() string

GetIp returns the Ip field value

func (*ServerInfo) GetIpOk

func (o *ServerInfo) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value and a boolean to check if the value has been set.

func (*ServerInfo) GetOs

func (o *ServerInfo) GetOs() string

GetOs returns the Os field value

func (*ServerInfo) GetOsOk

func (o *ServerInfo) GetOsOk() (*string, bool)

GetOsOk returns a tuple with the Os field value and a boolean to check if the value has been set.

func (*ServerInfo) GetPort

func (o *ServerInfo) GetPort() int32

GetPort returns the Port field value

func (*ServerInfo) GetPortOk

func (o *ServerInfo) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value and a boolean to check if the value has been set.

func (*ServerInfo) GetUptime

func (o *ServerInfo) GetUptime() string

GetUptime returns the Uptime field value

func (*ServerInfo) GetUptimeOk

func (o *ServerInfo) GetUptimeOk() (*string, bool)

GetUptimeOk returns a tuple with the Uptime field value and a boolean to check if the value has been set.

func (*ServerInfo) GetUrl

func (o *ServerInfo) GetUrl() string

GetUrl returns the Url field value

func (*ServerInfo) GetUrlOk

func (o *ServerInfo) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (ServerInfo) MarshalJSON

func (o ServerInfo) MarshalJSON() ([]byte, error)

func (*ServerInfo) SetArch

func (o *ServerInfo) SetArch(v string)

SetArch sets field value

func (*ServerInfo) SetHostname

func (o *ServerInfo) SetHostname(v string)

SetHostname sets field value

func (*ServerInfo) SetInterface

func (o *ServerInfo) SetInterface(v string)

SetInterface sets field value

func (*ServerInfo) SetIp

func (o *ServerInfo) SetIp(v string)

SetIp sets field value

func (*ServerInfo) SetOs

func (o *ServerInfo) SetOs(v string)

SetOs sets field value

func (*ServerInfo) SetPort

func (o *ServerInfo) SetPort(v int32)

SetPort sets field value

func (*ServerInfo) SetUptime

func (o *ServerInfo) SetUptime(v string)

SetUptime sets field value

func (*ServerInfo) SetUrl

func (o *ServerInfo) SetUrl(v string)

SetUrl sets field value

func (ServerInfo) ToMap

func (o ServerInfo) ToMap() (map[string]interface{}, error)

func (*ServerInfo) UnmarshalJSON

func (o *ServerInfo) UnmarshalJSON(data []byte) (err error)

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SoilCondition

type SoilCondition string

SoilCondition the model 'SoilCondition'

const (
	TreeSoilConditionSchluffig SoilCondition = "schluffig"
	TreeSoilConditionSandig    SoilCondition = "sandig"
	TreeSoilConditionLehmig    SoilCondition = "lehmig"
	TreeSoilConditionTonig     SoilCondition = "tonig"
	TreeSoilConditionUnknown   SoilCondition = "unknown"
)

List of SoilCondition

func NewSoilConditionFromValue

func NewSoilConditionFromValue(v string) (*SoilCondition, error)

NewSoilConditionFromValue returns a pointer to a valid SoilCondition for the value passed as argument, or an error if the value passed is not allowed by the enum

func (SoilCondition) IsValid

func (v SoilCondition) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (SoilCondition) Ptr

func (v SoilCondition) Ptr() *SoilCondition

Ptr returns reference to SoilCondition value

func (*SoilCondition) UnmarshalJSON

func (v *SoilCondition) UnmarshalJSON(src []byte) error

type Tree

type Tree struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	CreatedAt             string                 `json:"created_at"`
	Description           string                 `json:"description"`
	Id                    int32                  `json:"id"`
	LastWatered           *string                `json:"last_watered,omitempty"`
	Latitude              float32                `json:"latitude"`
	Longitude             float32                `json:"longitude"`
	Number                string                 `json:"number"`
	PlantingYear          int32                  `json:"planting_year"`
	Provider              string                 `json:"provider"`
	Sensor                *Sensor                `json:"sensor,omitempty"`
	Species               string                 `json:"species"`
	TreeClusterId         *int32                 `json:"tree_cluster_id,omitempty"`
	UpdatedAt             string                 `json:"updated_at"`
	WateringStatus        WateringStatus         `json:"watering_status"`
}

Tree struct for Tree

func NewTree

func NewTree(createdAt string, description string, id int32, latitude float32, longitude float32, number string, plantingYear int32, provider string, species string, updatedAt string, wateringStatus WateringStatus) *Tree

NewTree instantiates a new Tree object This constructor will assign default values to properties that have it defined, 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 NewTreeWithDefaults

func NewTreeWithDefaults() *Tree

NewTreeWithDefaults instantiates a new Tree object This 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 (*Tree) GetAdditionalInformation

func (o *Tree) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*Tree) GetAdditionalInformationOk

func (o *Tree) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tree) GetCreatedAt

func (o *Tree) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*Tree) GetCreatedAtOk

func (o *Tree) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Tree) GetDescription

func (o *Tree) GetDescription() string

GetDescription returns the Description field value

func (*Tree) GetDescriptionOk

func (o *Tree) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Tree) GetId

func (o *Tree) GetId() int32

GetId returns the Id field value

func (*Tree) GetIdOk

func (o *Tree) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Tree) GetLastWatered

func (o *Tree) GetLastWatered() string

GetLastWatered returns the LastWatered field value if set, zero value otherwise.

func (*Tree) GetLastWateredOk

func (o *Tree) GetLastWateredOk() (*string, bool)

GetLastWateredOk returns a tuple with the LastWatered field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tree) GetLatitude

func (o *Tree) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*Tree) GetLatitudeOk

func (o *Tree) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*Tree) GetLongitude

func (o *Tree) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*Tree) GetLongitudeOk

func (o *Tree) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (*Tree) GetNumber

func (o *Tree) GetNumber() string

GetNumber returns the Number field value

func (*Tree) GetNumberOk

func (o *Tree) GetNumberOk() (*string, bool)

GetNumberOk returns a tuple with the Number field value and a boolean to check if the value has been set.

func (*Tree) GetPlantingYear

func (o *Tree) GetPlantingYear() int32

GetPlantingYear returns the PlantingYear field value

func (*Tree) GetPlantingYearOk

func (o *Tree) GetPlantingYearOk() (*int32, bool)

GetPlantingYearOk returns a tuple with the PlantingYear field value and a boolean to check if the value has been set.

func (*Tree) GetProvider

func (o *Tree) GetProvider() string

GetProvider returns the Provider field value

func (*Tree) GetProviderOk

func (o *Tree) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*Tree) GetSensor

func (o *Tree) GetSensor() Sensor

GetSensor returns the Sensor field value if set, zero value otherwise.

func (*Tree) GetSensorOk

func (o *Tree) GetSensorOk() (*Sensor, bool)

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 (*Tree) GetSpecies

func (o *Tree) GetSpecies() string

GetSpecies returns the Species field value

func (*Tree) GetSpeciesOk

func (o *Tree) GetSpeciesOk() (*string, bool)

GetSpeciesOk returns a tuple with the Species field value and a boolean to check if the value has been set.

func (*Tree) GetTreeClusterId

func (o *Tree) GetTreeClusterId() int32

GetTreeClusterId returns the TreeClusterId field value if set, zero value otherwise.

func (*Tree) GetTreeClusterIdOk

func (o *Tree) GetTreeClusterIdOk() (*int32, bool)

GetTreeClusterIdOk returns a tuple with the TreeClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tree) GetUpdatedAt

func (o *Tree) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*Tree) GetUpdatedAtOk

func (o *Tree) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Tree) GetWateringStatus

func (o *Tree) GetWateringStatus() WateringStatus

GetWateringStatus returns the WateringStatus field value

func (*Tree) GetWateringStatusOk

func (o *Tree) GetWateringStatusOk() (*WateringStatus, bool)

GetWateringStatusOk returns a tuple with the WateringStatus field value and a boolean to check if the value has been set.

func (*Tree) HasAdditionalInformation

func (o *Tree) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*Tree) HasLastWatered

func (o *Tree) HasLastWatered() bool

HasLastWatered returns a boolean if a field has been set.

func (*Tree) HasSensor

func (o *Tree) HasSensor() bool

HasSensor returns a boolean if a field has been set.

func (*Tree) HasTreeClusterId

func (o *Tree) HasTreeClusterId() bool

HasTreeClusterId returns a boolean if a field has been set.

func (Tree) MarshalJSON

func (o Tree) MarshalJSON() ([]byte, error)

func (*Tree) SetAdditionalInformation

func (o *Tree) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*Tree) SetCreatedAt

func (o *Tree) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*Tree) SetDescription

func (o *Tree) SetDescription(v string)

SetDescription sets field value

func (*Tree) SetId

func (o *Tree) SetId(v int32)

SetId sets field value

func (*Tree) SetLastWatered

func (o *Tree) SetLastWatered(v string)

SetLastWatered gets a reference to the given string and assigns it to the LastWatered field.

func (*Tree) SetLatitude

func (o *Tree) SetLatitude(v float32)

SetLatitude sets field value

func (*Tree) SetLongitude

func (o *Tree) SetLongitude(v float32)

SetLongitude sets field value

func (*Tree) SetNumber

func (o *Tree) SetNumber(v string)

SetNumber sets field value

func (*Tree) SetPlantingYear

func (o *Tree) SetPlantingYear(v int32)

SetPlantingYear sets field value

func (*Tree) SetProvider

func (o *Tree) SetProvider(v string)

SetProvider sets field value

func (*Tree) SetSensor

func (o *Tree) SetSensor(v Sensor)

SetSensor gets a reference to the given Sensor and assigns it to the Sensor field.

func (*Tree) SetSpecies

func (o *Tree) SetSpecies(v string)

SetSpecies sets field value

func (*Tree) SetTreeClusterId

func (o *Tree) SetTreeClusterId(v int32)

SetTreeClusterId gets a reference to the given int32 and assigns it to the TreeClusterId field.

func (*Tree) SetUpdatedAt

func (o *Tree) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*Tree) SetWateringStatus

func (o *Tree) SetWateringStatus(v WateringStatus)

SetWateringStatus sets field value

func (Tree) ToMap

func (o Tree) ToMap() (map[string]interface{}, error)

func (*Tree) UnmarshalJSON

func (o *Tree) UnmarshalJSON(data []byte) (err error)

type TreeAPIService

type TreeAPIService service

TreeAPIService TreeAPI service

func (*TreeAPIService) CreateTree

CreateTree Create tree

Create tree

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateTreeRequest

func (*TreeAPIService) CreateTreeExecute

func (a *TreeAPIService) CreateTreeExecute(r ApiCreateTreeRequest) (*Tree, *http.Response, error)

Execute executes the request

@return Tree

func (*TreeAPIService) DeleteTree

func (a *TreeAPIService) DeleteTree(ctx context.Context, treeId int32) ApiDeleteTreeRequest

DeleteTree Delete tree

Delete tree

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param treeId Tree ID
@return ApiDeleteTreeRequest

func (*TreeAPIService) DeleteTreeExecute

func (a *TreeAPIService) DeleteTreeExecute(r ApiDeleteTreeRequest) (*http.Response, error)

Execute executes the request

func (*TreeAPIService) GetAllTrees

GetAllTrees Get all trees

Get all trees

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllTreesRequest

func (*TreeAPIService) GetAllTreesExecute

func (a *TreeAPIService) GetAllTreesExecute(r ApiGetAllTreesRequest) (*TreeList, *http.Response, error)

Execute executes the request

@return TreeList

func (*TreeAPIService) GetTrees

func (a *TreeAPIService) GetTrees(ctx context.Context, treeId int32) ApiGetTreesRequest

GetTrees Get tree by ID

Get tree by ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param treeId Tree ID
@return ApiGetTreesRequest

func (*TreeAPIService) GetTreesExecute

func (a *TreeAPIService) GetTreesExecute(r ApiGetTreesRequest) (*Tree, *http.Response, error)

Execute executes the request

@return Tree

func (*TreeAPIService) UpdateTree

func (a *TreeAPIService) UpdateTree(ctx context.Context, treeId int32) ApiUpdateTreeRequest

UpdateTree Update tree

Update tree

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param treeId Tree ID
@return ApiUpdateTreeRequest

func (*TreeAPIService) UpdateTreeExecute

func (a *TreeAPIService) UpdateTreeExecute(r ApiUpdateTreeRequest) (*Tree, *http.Response, error)

Execute executes the request

@return Tree

type TreeCluster

type TreeCluster struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Address               string                 `json:"address"`
	Archived              bool                   `json:"archived"`
	CreatedAt             string                 `json:"created_at"`
	Description           string                 `json:"description"`
	Id                    int32                  `json:"id"`
	LastWatered           *string                `json:"last_watered,omitempty"`
	Latitude              float32                `json:"latitude"`
	Longitude             float32                `json:"longitude"`
	MoistureLevel         float32                `json:"moisture_level"`
	Name                  string                 `json:"name"`
	Provider              string                 `json:"provider"`
	Region                *Region                `json:"region,omitempty"`
	SoilCondition         SoilCondition          `json:"soil_condition"`
	Trees                 []Tree                 `json:"trees,omitempty"`
	UpdatedAt             string                 `json:"updated_at"`
	WateringStatus        WateringStatus         `json:"watering_status"`
}

TreeCluster struct for TreeCluster

func NewTreeCluster

func NewTreeCluster(address string, archived bool, createdAt string, description string, id int32, latitude float32, longitude float32, moistureLevel float32, name string, provider string, soilCondition SoilCondition, updatedAt string, wateringStatus WateringStatus) *TreeCluster

NewTreeCluster instantiates a new TreeCluster object This constructor will assign default values to properties that have it defined, 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 NewTreeClusterWithDefaults

func NewTreeClusterWithDefaults() *TreeCluster

NewTreeClusterWithDefaults instantiates a new TreeCluster object This 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 (*TreeCluster) GetAdditionalInformation

func (o *TreeCluster) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*TreeCluster) GetAdditionalInformationOk

func (o *TreeCluster) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCluster) GetAddress

func (o *TreeCluster) GetAddress() string

GetAddress returns the Address field value

func (*TreeCluster) GetAddressOk

func (o *TreeCluster) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*TreeCluster) GetArchived

func (o *TreeCluster) GetArchived() bool

GetArchived returns the Archived field value

func (*TreeCluster) GetArchivedOk

func (o *TreeCluster) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value and a boolean to check if the value has been set.

func (*TreeCluster) GetCreatedAt

func (o *TreeCluster) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*TreeCluster) GetCreatedAtOk

func (o *TreeCluster) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*TreeCluster) GetDescription

func (o *TreeCluster) GetDescription() string

GetDescription returns the Description field value

func (*TreeCluster) GetDescriptionOk

func (o *TreeCluster) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*TreeCluster) GetId

func (o *TreeCluster) GetId() int32

GetId returns the Id field value

func (*TreeCluster) GetIdOk

func (o *TreeCluster) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*TreeCluster) GetLastWatered

func (o *TreeCluster) GetLastWatered() string

GetLastWatered returns the LastWatered field value if set, zero value otherwise.

func (*TreeCluster) GetLastWateredOk

func (o *TreeCluster) GetLastWateredOk() (*string, bool)

GetLastWateredOk returns a tuple with the LastWatered field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCluster) GetLatitude

func (o *TreeCluster) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*TreeCluster) GetLatitudeOk

func (o *TreeCluster) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*TreeCluster) GetLongitude

func (o *TreeCluster) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*TreeCluster) GetLongitudeOk

func (o *TreeCluster) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (*TreeCluster) GetMoistureLevel

func (o *TreeCluster) GetMoistureLevel() float32

GetMoistureLevel returns the MoistureLevel field value

func (*TreeCluster) GetMoistureLevelOk

func (o *TreeCluster) GetMoistureLevelOk() (*float32, bool)

GetMoistureLevelOk returns a tuple with the MoistureLevel field value and a boolean to check if the value has been set.

func (*TreeCluster) GetName

func (o *TreeCluster) GetName() string

GetName returns the Name field value

func (*TreeCluster) GetNameOk

func (o *TreeCluster) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TreeCluster) GetProvider

func (o *TreeCluster) GetProvider() string

GetProvider returns the Provider field value

func (*TreeCluster) GetProviderOk

func (o *TreeCluster) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*TreeCluster) GetRegion

func (o *TreeCluster) GetRegion() Region

GetRegion returns the Region field value if set, zero value otherwise.

func (*TreeCluster) GetRegionOk

func (o *TreeCluster) GetRegionOk() (*Region, bool)

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 (*TreeCluster) GetSoilCondition

func (o *TreeCluster) GetSoilCondition() SoilCondition

GetSoilCondition returns the SoilCondition field value

func (*TreeCluster) GetSoilConditionOk

func (o *TreeCluster) GetSoilConditionOk() (*SoilCondition, bool)

GetSoilConditionOk returns a tuple with the SoilCondition field value and a boolean to check if the value has been set.

func (*TreeCluster) GetTrees

func (o *TreeCluster) GetTrees() []Tree

GetTrees returns the Trees field value if set, zero value otherwise.

func (*TreeCluster) GetTreesOk

func (o *TreeCluster) GetTreesOk() ([]Tree, bool)

GetTreesOk returns a tuple with the Trees field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCluster) GetUpdatedAt

func (o *TreeCluster) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*TreeCluster) GetUpdatedAtOk

func (o *TreeCluster) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*TreeCluster) GetWateringStatus

func (o *TreeCluster) GetWateringStatus() WateringStatus

GetWateringStatus returns the WateringStatus field value

func (*TreeCluster) GetWateringStatusOk

func (o *TreeCluster) GetWateringStatusOk() (*WateringStatus, bool)

GetWateringStatusOk returns a tuple with the WateringStatus field value and a boolean to check if the value has been set.

func (*TreeCluster) HasAdditionalInformation

func (o *TreeCluster) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*TreeCluster) HasLastWatered

func (o *TreeCluster) HasLastWatered() bool

HasLastWatered returns a boolean if a field has been set.

func (*TreeCluster) HasRegion

func (o *TreeCluster) HasRegion() bool

HasRegion returns a boolean if a field has been set.

func (*TreeCluster) HasTrees

func (o *TreeCluster) HasTrees() bool

HasTrees returns a boolean if a field has been set.

func (TreeCluster) MarshalJSON

func (o TreeCluster) MarshalJSON() ([]byte, error)

func (*TreeCluster) SetAdditionalInformation

func (o *TreeCluster) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*TreeCluster) SetAddress

func (o *TreeCluster) SetAddress(v string)

SetAddress sets field value

func (*TreeCluster) SetArchived

func (o *TreeCluster) SetArchived(v bool)

SetArchived sets field value

func (*TreeCluster) SetCreatedAt

func (o *TreeCluster) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*TreeCluster) SetDescription

func (o *TreeCluster) SetDescription(v string)

SetDescription sets field value

func (*TreeCluster) SetId

func (o *TreeCluster) SetId(v int32)

SetId sets field value

func (*TreeCluster) SetLastWatered

func (o *TreeCluster) SetLastWatered(v string)

SetLastWatered gets a reference to the given string and assigns it to the LastWatered field.

func (*TreeCluster) SetLatitude

func (o *TreeCluster) SetLatitude(v float32)

SetLatitude sets field value

func (*TreeCluster) SetLongitude

func (o *TreeCluster) SetLongitude(v float32)

SetLongitude sets field value

func (*TreeCluster) SetMoistureLevel

func (o *TreeCluster) SetMoistureLevel(v float32)

SetMoistureLevel sets field value

func (*TreeCluster) SetName

func (o *TreeCluster) SetName(v string)

SetName sets field value

func (*TreeCluster) SetProvider

func (o *TreeCluster) SetProvider(v string)

SetProvider sets field value

func (*TreeCluster) SetRegion

func (o *TreeCluster) SetRegion(v Region)

SetRegion gets a reference to the given Region and assigns it to the Region field.

func (*TreeCluster) SetSoilCondition

func (o *TreeCluster) SetSoilCondition(v SoilCondition)

SetSoilCondition sets field value

func (*TreeCluster) SetTrees

func (o *TreeCluster) SetTrees(v []Tree)

SetTrees gets a reference to the given []Tree and assigns it to the Trees field.

func (*TreeCluster) SetUpdatedAt

func (o *TreeCluster) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*TreeCluster) SetWateringStatus

func (o *TreeCluster) SetWateringStatus(v WateringStatus)

SetWateringStatus sets field value

func (TreeCluster) ToMap

func (o TreeCluster) ToMap() (map[string]interface{}, error)

func (*TreeCluster) UnmarshalJSON

func (o *TreeCluster) UnmarshalJSON(data []byte) (err error)

type TreeClusterAPIService

type TreeClusterAPIService service

TreeClusterAPIService TreeClusterAPI service

func (*TreeClusterAPIService) CreateTreeCluster

CreateTreeCluster Create tree cluster

Create tree cluster

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateTreeClusterRequest

func (*TreeClusterAPIService) CreateTreeClusterExecute

func (a *TreeClusterAPIService) CreateTreeClusterExecute(r ApiCreateTreeClusterRequest) (*TreeCluster, *http.Response, error)

Execute executes the request

@return TreeCluster

func (*TreeClusterAPIService) DeleteTreeCluster

func (a *TreeClusterAPIService) DeleteTreeCluster(ctx context.Context, clusterId int32) ApiDeleteTreeClusterRequest

DeleteTreeCluster Delete tree cluster

Delete tree cluster

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param clusterId Tree Cluster ID
@return ApiDeleteTreeClusterRequest

func (*TreeClusterAPIService) DeleteTreeClusterExecute

func (a *TreeClusterAPIService) DeleteTreeClusterExecute(r ApiDeleteTreeClusterRequest) (*http.Response, error)

Execute executes the request

func (*TreeClusterAPIService) GetAllTreeClusters

GetAllTreeClusters Get all tree clusters

Get all tree clusters

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllTreeClustersRequest

func (*TreeClusterAPIService) GetAllTreeClustersExecute

Execute executes the request

@return TreeClusterList

func (*TreeClusterAPIService) GetTreeClusterById

func (a *TreeClusterAPIService) GetTreeClusterById(ctx context.Context, clusterId int32) ApiGetTreeClusterByIdRequest

GetTreeClusterById Get tree cluster by ID

Get tree cluster by ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param clusterId Tree Cluster ID
@return ApiGetTreeClusterByIdRequest

func (*TreeClusterAPIService) GetTreeClusterByIdExecute

func (a *TreeClusterAPIService) GetTreeClusterByIdExecute(r ApiGetTreeClusterByIdRequest) (*TreeCluster, *http.Response, error)

Execute executes the request

@return TreeCluster

func (*TreeClusterAPIService) UpdateTreeCluster

func (a *TreeClusterAPIService) UpdateTreeCluster(ctx context.Context, clusterId int32) ApiUpdateTreeClusterRequest

UpdateTreeCluster Update tree cluster

Update tree cluster

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param clusterId Tree Cluster ID
@return ApiUpdateTreeClusterRequest

func (*TreeClusterAPIService) UpdateTreeClusterExecute

func (a *TreeClusterAPIService) UpdateTreeClusterExecute(r ApiUpdateTreeClusterRequest) (*TreeCluster, *http.Response, error)

Execute executes the request

@return TreeCluster

type TreeClusterCreate

type TreeClusterCreate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Address               string                 `json:"address"`
	Description           string                 `json:"description"`
	Name                  string                 `json:"name"`
	Provider              *string                `json:"provider,omitempty"`
	SoilCondition         SoilCondition          `json:"soil_condition"`
	TreeIds               []int32                `json:"tree_ids"`
}

TreeClusterCreate struct for TreeClusterCreate

func NewTreeClusterCreate

func NewTreeClusterCreate(address string, description string, name string, soilCondition SoilCondition, treeIds []int32) *TreeClusterCreate

NewTreeClusterCreate instantiates a new TreeClusterCreate object This constructor will assign default values to properties that have it defined, 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 NewTreeClusterCreateWithDefaults

func NewTreeClusterCreateWithDefaults() *TreeClusterCreate

NewTreeClusterCreateWithDefaults instantiates a new TreeClusterCreate object This 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 (*TreeClusterCreate) GetAdditionalInformation

func (o *TreeClusterCreate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*TreeClusterCreate) GetAdditionalInformationOk

func (o *TreeClusterCreate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeClusterCreate) GetAddress

func (o *TreeClusterCreate) GetAddress() string

GetAddress returns the Address field value

func (*TreeClusterCreate) GetAddressOk

func (o *TreeClusterCreate) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*TreeClusterCreate) GetDescription

func (o *TreeClusterCreate) GetDescription() string

GetDescription returns the Description field value

func (*TreeClusterCreate) GetDescriptionOk

func (o *TreeClusterCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*TreeClusterCreate) GetName

func (o *TreeClusterCreate) GetName() string

GetName returns the Name field value

func (*TreeClusterCreate) GetNameOk

func (o *TreeClusterCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TreeClusterCreate) GetProvider

func (o *TreeClusterCreate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*TreeClusterCreate) GetProviderOk

func (o *TreeClusterCreate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeClusterCreate) GetSoilCondition

func (o *TreeClusterCreate) GetSoilCondition() SoilCondition

GetSoilCondition returns the SoilCondition field value

func (*TreeClusterCreate) GetSoilConditionOk

func (o *TreeClusterCreate) GetSoilConditionOk() (*SoilCondition, bool)

GetSoilConditionOk returns a tuple with the SoilCondition field value and a boolean to check if the value has been set.

func (*TreeClusterCreate) GetTreeIds

func (o *TreeClusterCreate) GetTreeIds() []int32

GetTreeIds returns the TreeIds field value

func (*TreeClusterCreate) GetTreeIdsOk

func (o *TreeClusterCreate) GetTreeIdsOk() ([]int32, bool)

GetTreeIdsOk returns a tuple with the TreeIds field value and a boolean to check if the value has been set.

func (*TreeClusterCreate) HasAdditionalInformation

func (o *TreeClusterCreate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*TreeClusterCreate) HasProvider

func (o *TreeClusterCreate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (TreeClusterCreate) MarshalJSON

func (o TreeClusterCreate) MarshalJSON() ([]byte, error)

func (*TreeClusterCreate) SetAdditionalInformation

func (o *TreeClusterCreate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*TreeClusterCreate) SetAddress

func (o *TreeClusterCreate) SetAddress(v string)

SetAddress sets field value

func (*TreeClusterCreate) SetDescription

func (o *TreeClusterCreate) SetDescription(v string)

SetDescription sets field value

func (*TreeClusterCreate) SetName

func (o *TreeClusterCreate) SetName(v string)

SetName sets field value

func (*TreeClusterCreate) SetProvider

func (o *TreeClusterCreate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*TreeClusterCreate) SetSoilCondition

func (o *TreeClusterCreate) SetSoilCondition(v SoilCondition)

SetSoilCondition sets field value

func (*TreeClusterCreate) SetTreeIds

func (o *TreeClusterCreate) SetTreeIds(v []int32)

SetTreeIds sets field value

func (TreeClusterCreate) ToMap

func (o TreeClusterCreate) ToMap() (map[string]interface{}, error)

func (*TreeClusterCreate) UnmarshalJSON

func (o *TreeClusterCreate) UnmarshalJSON(data []byte) (err error)

type TreeClusterInList

type TreeClusterInList struct {
	Address        string         `json:"address"`
	Archived       bool           `json:"archived"`
	CreatedAt      string         `json:"created_at"`
	Description    string         `json:"description"`
	Id             int32          `json:"id"`
	LastWatered    *string        `json:"last_watered,omitempty"`
	Latitude       float32        `json:"latitude"`
	Longitude      float32        `json:"longitude"`
	MoistureLevel  float32        `json:"moisture_level"`
	Name           string         `json:"name"`
	Region         *Region        `json:"region,omitempty"`
	SoilCondition  SoilCondition  `json:"soil_condition"`
	TreeIds        []int32        `json:"tree_ids,omitempty"`
	UpdatedAt      string         `json:"updated_at"`
	WateringStatus WateringStatus `json:"watering_status"`
}

TreeClusterInList struct for TreeClusterInList

func NewTreeClusterInList

func NewTreeClusterInList(address string, archived bool, createdAt string, description string, id int32, latitude float32, longitude float32, moistureLevel float32, name string, soilCondition SoilCondition, updatedAt string, wateringStatus WateringStatus) *TreeClusterInList

NewTreeClusterInList instantiates a new TreeClusterInList object This constructor will assign default values to properties that have it defined, 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 NewTreeClusterInListWithDefaults

func NewTreeClusterInListWithDefaults() *TreeClusterInList

NewTreeClusterInListWithDefaults instantiates a new TreeClusterInList object This 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 (*TreeClusterInList) GetAddress

func (o *TreeClusterInList) GetAddress() string

GetAddress returns the Address field value

func (*TreeClusterInList) GetAddressOk

func (o *TreeClusterInList) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetArchived

func (o *TreeClusterInList) GetArchived() bool

GetArchived returns the Archived field value

func (*TreeClusterInList) GetArchivedOk

func (o *TreeClusterInList) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetCreatedAt

func (o *TreeClusterInList) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*TreeClusterInList) GetCreatedAtOk

func (o *TreeClusterInList) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetDescription

func (o *TreeClusterInList) GetDescription() string

GetDescription returns the Description field value

func (*TreeClusterInList) GetDescriptionOk

func (o *TreeClusterInList) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetId

func (o *TreeClusterInList) GetId() int32

GetId returns the Id field value

func (*TreeClusterInList) GetIdOk

func (o *TreeClusterInList) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetLastWatered

func (o *TreeClusterInList) GetLastWatered() string

GetLastWatered returns the LastWatered field value if set, zero value otherwise.

func (*TreeClusterInList) GetLastWateredOk

func (o *TreeClusterInList) GetLastWateredOk() (*string, bool)

GetLastWateredOk returns a tuple with the LastWatered field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeClusterInList) GetLatitude

func (o *TreeClusterInList) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*TreeClusterInList) GetLatitudeOk

func (o *TreeClusterInList) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetLongitude

func (o *TreeClusterInList) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*TreeClusterInList) GetLongitudeOk

func (o *TreeClusterInList) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetMoistureLevel

func (o *TreeClusterInList) GetMoistureLevel() float32

GetMoistureLevel returns the MoistureLevel field value

func (*TreeClusterInList) GetMoistureLevelOk

func (o *TreeClusterInList) GetMoistureLevelOk() (*float32, bool)

GetMoistureLevelOk returns a tuple with the MoistureLevel field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetName

func (o *TreeClusterInList) GetName() string

GetName returns the Name field value

func (*TreeClusterInList) GetNameOk

func (o *TreeClusterInList) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetRegion

func (o *TreeClusterInList) GetRegion() Region

GetRegion returns the Region field value if set, zero value otherwise.

func (*TreeClusterInList) GetRegionOk

func (o *TreeClusterInList) GetRegionOk() (*Region, bool)

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 (*TreeClusterInList) GetSoilCondition

func (o *TreeClusterInList) GetSoilCondition() SoilCondition

GetSoilCondition returns the SoilCondition field value

func (*TreeClusterInList) GetSoilConditionOk

func (o *TreeClusterInList) GetSoilConditionOk() (*SoilCondition, bool)

GetSoilConditionOk returns a tuple with the SoilCondition field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetTreeIds

func (o *TreeClusterInList) GetTreeIds() []int32

GetTreeIds returns the TreeIds field value if set, zero value otherwise.

func (*TreeClusterInList) GetTreeIdsOk

func (o *TreeClusterInList) GetTreeIdsOk() ([]int32, bool)

GetTreeIdsOk returns a tuple with the TreeIds field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeClusterInList) GetUpdatedAt

func (o *TreeClusterInList) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*TreeClusterInList) GetUpdatedAtOk

func (o *TreeClusterInList) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*TreeClusterInList) GetWateringStatus

func (o *TreeClusterInList) GetWateringStatus() WateringStatus

GetWateringStatus returns the WateringStatus field value

func (*TreeClusterInList) GetWateringStatusOk

func (o *TreeClusterInList) GetWateringStatusOk() (*WateringStatus, bool)

GetWateringStatusOk returns a tuple with the WateringStatus field value and a boolean to check if the value has been set.

func (*TreeClusterInList) HasLastWatered

func (o *TreeClusterInList) HasLastWatered() bool

HasLastWatered returns a boolean if a field has been set.

func (*TreeClusterInList) HasRegion

func (o *TreeClusterInList) HasRegion() bool

HasRegion returns a boolean if a field has been set.

func (*TreeClusterInList) HasTreeIds

func (o *TreeClusterInList) HasTreeIds() bool

HasTreeIds returns a boolean if a field has been set.

func (TreeClusterInList) MarshalJSON

func (o TreeClusterInList) MarshalJSON() ([]byte, error)

func (*TreeClusterInList) SetAddress

func (o *TreeClusterInList) SetAddress(v string)

SetAddress sets field value

func (*TreeClusterInList) SetArchived

func (o *TreeClusterInList) SetArchived(v bool)

SetArchived sets field value

func (*TreeClusterInList) SetCreatedAt

func (o *TreeClusterInList) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*TreeClusterInList) SetDescription

func (o *TreeClusterInList) SetDescription(v string)

SetDescription sets field value

func (*TreeClusterInList) SetId

func (o *TreeClusterInList) SetId(v int32)

SetId sets field value

func (*TreeClusterInList) SetLastWatered

func (o *TreeClusterInList) SetLastWatered(v string)

SetLastWatered gets a reference to the given string and assigns it to the LastWatered field.

func (*TreeClusterInList) SetLatitude

func (o *TreeClusterInList) SetLatitude(v float32)

SetLatitude sets field value

func (*TreeClusterInList) SetLongitude

func (o *TreeClusterInList) SetLongitude(v float32)

SetLongitude sets field value

func (*TreeClusterInList) SetMoistureLevel

func (o *TreeClusterInList) SetMoistureLevel(v float32)

SetMoistureLevel sets field value

func (*TreeClusterInList) SetName

func (o *TreeClusterInList) SetName(v string)

SetName sets field value

func (*TreeClusterInList) SetRegion

func (o *TreeClusterInList) SetRegion(v Region)

SetRegion gets a reference to the given Region and assigns it to the Region field.

func (*TreeClusterInList) SetSoilCondition

func (o *TreeClusterInList) SetSoilCondition(v SoilCondition)

SetSoilCondition sets field value

func (*TreeClusterInList) SetTreeIds

func (o *TreeClusterInList) SetTreeIds(v []int32)

SetTreeIds gets a reference to the given []int32 and assigns it to the TreeIds field.

func (*TreeClusterInList) SetUpdatedAt

func (o *TreeClusterInList) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*TreeClusterInList) SetWateringStatus

func (o *TreeClusterInList) SetWateringStatus(v WateringStatus)

SetWateringStatus sets field value

func (TreeClusterInList) ToMap

func (o TreeClusterInList) ToMap() (map[string]interface{}, error)

func (*TreeClusterInList) UnmarshalJSON

func (o *TreeClusterInList) UnmarshalJSON(data []byte) (err error)

type TreeClusterList

type TreeClusterList struct {
	Data       []TreeClusterInList `json:"data"`
	Pagination *Pagination         `json:"pagination,omitempty"`
}

TreeClusterList struct for TreeClusterList

func NewTreeClusterList

func NewTreeClusterList(data []TreeClusterInList) *TreeClusterList

NewTreeClusterList instantiates a new TreeClusterList object This constructor will assign default values to properties that have it defined, 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 NewTreeClusterListWithDefaults

func NewTreeClusterListWithDefaults() *TreeClusterList

NewTreeClusterListWithDefaults instantiates a new TreeClusterList object This 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 (*TreeClusterList) GetData

func (o *TreeClusterList) GetData() []TreeClusterInList

GetData returns the Data field value

func (*TreeClusterList) GetDataOk

func (o *TreeClusterList) GetDataOk() ([]TreeClusterInList, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*TreeClusterList) GetPagination

func (o *TreeClusterList) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*TreeClusterList) GetPaginationOk

func (o *TreeClusterList) GetPaginationOk() (*Pagination, bool)

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 (*TreeClusterList) HasPagination

func (o *TreeClusterList) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (TreeClusterList) MarshalJSON

func (o TreeClusterList) MarshalJSON() ([]byte, error)

func (*TreeClusterList) SetData

func (o *TreeClusterList) SetData(v []TreeClusterInList)

SetData sets field value

func (*TreeClusterList) SetPagination

func (o *TreeClusterList) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (TreeClusterList) ToMap

func (o TreeClusterList) ToMap() (map[string]interface{}, error)

func (*TreeClusterList) UnmarshalJSON

func (o *TreeClusterList) UnmarshalJSON(data []byte) (err error)

type TreeClusterUpdate

type TreeClusterUpdate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Address               string                 `json:"address"`
	Description           string                 `json:"description"`
	Name                  string                 `json:"name"`
	Provider              *string                `json:"provider,omitempty"`
	SoilCondition         SoilCondition          `json:"soil_condition"`
	TreeIds               []int32                `json:"tree_ids"`
}

TreeClusterUpdate struct for TreeClusterUpdate

func NewTreeClusterUpdate

func NewTreeClusterUpdate(address string, description string, name string, soilCondition SoilCondition, treeIds []int32) *TreeClusterUpdate

NewTreeClusterUpdate instantiates a new TreeClusterUpdate object This constructor will assign default values to properties that have it defined, 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 NewTreeClusterUpdateWithDefaults

func NewTreeClusterUpdateWithDefaults() *TreeClusterUpdate

NewTreeClusterUpdateWithDefaults instantiates a new TreeClusterUpdate object This 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 (*TreeClusterUpdate) GetAdditionalInformation

func (o *TreeClusterUpdate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*TreeClusterUpdate) GetAdditionalInformationOk

func (o *TreeClusterUpdate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeClusterUpdate) GetAddress

func (o *TreeClusterUpdate) GetAddress() string

GetAddress returns the Address field value

func (*TreeClusterUpdate) GetAddressOk

func (o *TreeClusterUpdate) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*TreeClusterUpdate) GetDescription

func (o *TreeClusterUpdate) GetDescription() string

GetDescription returns the Description field value

func (*TreeClusterUpdate) GetDescriptionOk

func (o *TreeClusterUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*TreeClusterUpdate) GetName

func (o *TreeClusterUpdate) GetName() string

GetName returns the Name field value

func (*TreeClusterUpdate) GetNameOk

func (o *TreeClusterUpdate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TreeClusterUpdate) GetProvider

func (o *TreeClusterUpdate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*TreeClusterUpdate) GetProviderOk

func (o *TreeClusterUpdate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeClusterUpdate) GetSoilCondition

func (o *TreeClusterUpdate) GetSoilCondition() SoilCondition

GetSoilCondition returns the SoilCondition field value

func (*TreeClusterUpdate) GetSoilConditionOk

func (o *TreeClusterUpdate) GetSoilConditionOk() (*SoilCondition, bool)

GetSoilConditionOk returns a tuple with the SoilCondition field value and a boolean to check if the value has been set.

func (*TreeClusterUpdate) GetTreeIds

func (o *TreeClusterUpdate) GetTreeIds() []int32

GetTreeIds returns the TreeIds field value

func (*TreeClusterUpdate) GetTreeIdsOk

func (o *TreeClusterUpdate) GetTreeIdsOk() ([]int32, bool)

GetTreeIdsOk returns a tuple with the TreeIds field value and a boolean to check if the value has been set.

func (*TreeClusterUpdate) HasAdditionalInformation

func (o *TreeClusterUpdate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*TreeClusterUpdate) HasProvider

func (o *TreeClusterUpdate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (TreeClusterUpdate) MarshalJSON

func (o TreeClusterUpdate) MarshalJSON() ([]byte, error)

func (*TreeClusterUpdate) SetAdditionalInformation

func (o *TreeClusterUpdate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*TreeClusterUpdate) SetAddress

func (o *TreeClusterUpdate) SetAddress(v string)

SetAddress sets field value

func (*TreeClusterUpdate) SetDescription

func (o *TreeClusterUpdate) SetDescription(v string)

SetDescription sets field value

func (*TreeClusterUpdate) SetName

func (o *TreeClusterUpdate) SetName(v string)

SetName sets field value

func (*TreeClusterUpdate) SetProvider

func (o *TreeClusterUpdate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*TreeClusterUpdate) SetSoilCondition

func (o *TreeClusterUpdate) SetSoilCondition(v SoilCondition)

SetSoilCondition sets field value

func (*TreeClusterUpdate) SetTreeIds

func (o *TreeClusterUpdate) SetTreeIds(v []int32)

SetTreeIds sets field value

func (TreeClusterUpdate) ToMap

func (o TreeClusterUpdate) ToMap() (map[string]interface{}, error)

func (*TreeClusterUpdate) UnmarshalJSON

func (o *TreeClusterUpdate) UnmarshalJSON(data []byte) (err error)

type TreeCreate

type TreeCreate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Description           string                 `json:"description"`
	Latitude              float32                `json:"latitude"`
	Longitude             float32                `json:"longitude"`
	Number                string                 `json:"number"`
	PlantingYear          int32                  `json:"planting_year"`
	Provider              *string                `json:"provider,omitempty"`
	SensorId              *string                `json:"sensor_id,omitempty"`
	Species               string                 `json:"species"`
	TreeClusterId         *int32                 `json:"tree_cluster_id,omitempty"`
}

TreeCreate struct for TreeCreate

func NewTreeCreate

func NewTreeCreate(description string, latitude float32, longitude float32, number string, plantingYear int32, species string) *TreeCreate

NewTreeCreate instantiates a new TreeCreate object This constructor will assign default values to properties that have it defined, 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 NewTreeCreateWithDefaults

func NewTreeCreateWithDefaults() *TreeCreate

NewTreeCreateWithDefaults instantiates a new TreeCreate object This 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 (*TreeCreate) GetAdditionalInformation

func (o *TreeCreate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*TreeCreate) GetAdditionalInformationOk

func (o *TreeCreate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCreate) GetDescription

func (o *TreeCreate) GetDescription() string

GetDescription returns the Description field value

func (*TreeCreate) GetDescriptionOk

func (o *TreeCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*TreeCreate) GetLatitude

func (o *TreeCreate) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*TreeCreate) GetLatitudeOk

func (o *TreeCreate) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*TreeCreate) GetLongitude

func (o *TreeCreate) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*TreeCreate) GetLongitudeOk

func (o *TreeCreate) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (*TreeCreate) GetNumber

func (o *TreeCreate) GetNumber() string

GetNumber returns the Number field value

func (*TreeCreate) GetNumberOk

func (o *TreeCreate) GetNumberOk() (*string, bool)

GetNumberOk returns a tuple with the Number field value and a boolean to check if the value has been set.

func (*TreeCreate) GetPlantingYear

func (o *TreeCreate) GetPlantingYear() int32

GetPlantingYear returns the PlantingYear field value

func (*TreeCreate) GetPlantingYearOk

func (o *TreeCreate) GetPlantingYearOk() (*int32, bool)

GetPlantingYearOk returns a tuple with the PlantingYear field value and a boolean to check if the value has been set.

func (*TreeCreate) GetProvider

func (o *TreeCreate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*TreeCreate) GetProviderOk

func (o *TreeCreate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCreate) GetSensorId

func (o *TreeCreate) GetSensorId() string

GetSensorId returns the SensorId field value if set, zero value otherwise.

func (*TreeCreate) GetSensorIdOk

func (o *TreeCreate) GetSensorIdOk() (*string, bool)

GetSensorIdOk returns a tuple with the SensorId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCreate) GetSpecies

func (o *TreeCreate) GetSpecies() string

GetSpecies returns the Species field value

func (*TreeCreate) GetSpeciesOk

func (o *TreeCreate) GetSpeciesOk() (*string, bool)

GetSpeciesOk returns a tuple with the Species field value and a boolean to check if the value has been set.

func (*TreeCreate) GetTreeClusterId

func (o *TreeCreate) GetTreeClusterId() int32

GetTreeClusterId returns the TreeClusterId field value if set, zero value otherwise.

func (*TreeCreate) GetTreeClusterIdOk

func (o *TreeCreate) GetTreeClusterIdOk() (*int32, bool)

GetTreeClusterIdOk returns a tuple with the TreeClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeCreate) HasAdditionalInformation

func (o *TreeCreate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*TreeCreate) HasProvider

func (o *TreeCreate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*TreeCreate) HasSensorId

func (o *TreeCreate) HasSensorId() bool

HasSensorId returns a boolean if a field has been set.

func (*TreeCreate) HasTreeClusterId

func (o *TreeCreate) HasTreeClusterId() bool

HasTreeClusterId returns a boolean if a field has been set.

func (TreeCreate) MarshalJSON

func (o TreeCreate) MarshalJSON() ([]byte, error)

func (*TreeCreate) SetAdditionalInformation

func (o *TreeCreate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*TreeCreate) SetDescription

func (o *TreeCreate) SetDescription(v string)

SetDescription sets field value

func (*TreeCreate) SetLatitude

func (o *TreeCreate) SetLatitude(v float32)

SetLatitude sets field value

func (*TreeCreate) SetLongitude

func (o *TreeCreate) SetLongitude(v float32)

SetLongitude sets field value

func (*TreeCreate) SetNumber

func (o *TreeCreate) SetNumber(v string)

SetNumber sets field value

func (*TreeCreate) SetPlantingYear

func (o *TreeCreate) SetPlantingYear(v int32)

SetPlantingYear sets field value

func (*TreeCreate) SetProvider

func (o *TreeCreate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*TreeCreate) SetSensorId

func (o *TreeCreate) SetSensorId(v string)

SetSensorId gets a reference to the given string and assigns it to the SensorId field.

func (*TreeCreate) SetSpecies

func (o *TreeCreate) SetSpecies(v string)

SetSpecies sets field value

func (*TreeCreate) SetTreeClusterId

func (o *TreeCreate) SetTreeClusterId(v int32)

SetTreeClusterId gets a reference to the given int32 and assigns it to the TreeClusterId field.

func (TreeCreate) ToMap

func (o TreeCreate) ToMap() (map[string]interface{}, error)

func (*TreeCreate) UnmarshalJSON

func (o *TreeCreate) UnmarshalJSON(data []byte) (err error)

type TreeList

type TreeList struct {
	Data       []Tree      `json:"data"`
	Pagination *Pagination `json:"pagination,omitempty"`
}

TreeList struct for TreeList

func NewTreeList

func NewTreeList(data []Tree) *TreeList

NewTreeList instantiates a new TreeList object This constructor will assign default values to properties that have it defined, 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 NewTreeListWithDefaults

func NewTreeListWithDefaults() *TreeList

NewTreeListWithDefaults instantiates a new TreeList object This 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 (*TreeList) GetData

func (o *TreeList) GetData() []Tree

GetData returns the Data field value

func (*TreeList) GetDataOk

func (o *TreeList) GetDataOk() ([]Tree, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*TreeList) GetPagination

func (o *TreeList) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*TreeList) GetPaginationOk

func (o *TreeList) GetPaginationOk() (*Pagination, bool)

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 (*TreeList) HasPagination

func (o *TreeList) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (TreeList) MarshalJSON

func (o TreeList) MarshalJSON() ([]byte, error)

func (*TreeList) SetData

func (o *TreeList) SetData(v []Tree)

SetData sets field value

func (*TreeList) SetPagination

func (o *TreeList) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (TreeList) ToMap

func (o TreeList) ToMap() (map[string]interface{}, error)

func (*TreeList) UnmarshalJSON

func (o *TreeList) UnmarshalJSON(data []byte) (err error)

type TreeSensorAPIService

type TreeSensorAPIService service

TreeSensorAPIService TreeSensorAPI service

func (*TreeSensorAPIService) GetTreeBySensorId

func (a *TreeSensorAPIService) GetTreeBySensorId(ctx context.Context, sensorId string) ApiGetTreeBySensorIdRequest

GetTreeBySensorId Get tree by sensor ID

Get tree by sensor ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sensorId Sensor ID
@return ApiGetTreeBySensorIdRequest

func (*TreeSensorAPIService) GetTreeBySensorIdExecute

func (a *TreeSensorAPIService) GetTreeBySensorIdExecute(r ApiGetTreeBySensorIdRequest) (*Tree, *http.Response, error)

Execute executes the request

@return Tree

type TreeUpdate

type TreeUpdate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Description           string                 `json:"description"`
	Latitude              float32                `json:"latitude"`
	Longitude             float32                `json:"longitude"`
	Number                string                 `json:"number"`
	PlantingYear          int32                  `json:"planting_year"`
	Provider              *string                `json:"provider,omitempty"`
	SensorId              *string                `json:"sensor_id,omitempty"`
	Species               string                 `json:"species"`
	TreeClusterId         *int32                 `json:"tree_cluster_id,omitempty"`
}

TreeUpdate struct for TreeUpdate

func NewTreeUpdate

func NewTreeUpdate(description string, latitude float32, longitude float32, number string, plantingYear int32, species string) *TreeUpdate

NewTreeUpdate instantiates a new TreeUpdate object This constructor will assign default values to properties that have it defined, 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 NewTreeUpdateWithDefaults

func NewTreeUpdateWithDefaults() *TreeUpdate

NewTreeUpdateWithDefaults instantiates a new TreeUpdate object This 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 (*TreeUpdate) GetAdditionalInformation

func (o *TreeUpdate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*TreeUpdate) GetAdditionalInformationOk

func (o *TreeUpdate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeUpdate) GetDescription

func (o *TreeUpdate) GetDescription() string

GetDescription returns the Description field value

func (*TreeUpdate) GetDescriptionOk

func (o *TreeUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*TreeUpdate) GetLatitude

func (o *TreeUpdate) GetLatitude() float32

GetLatitude returns the Latitude field value

func (*TreeUpdate) GetLatitudeOk

func (o *TreeUpdate) GetLatitudeOk() (*float32, bool)

GetLatitudeOk returns a tuple with the Latitude field value and a boolean to check if the value has been set.

func (*TreeUpdate) GetLongitude

func (o *TreeUpdate) GetLongitude() float32

GetLongitude returns the Longitude field value

func (*TreeUpdate) GetLongitudeOk

func (o *TreeUpdate) GetLongitudeOk() (*float32, bool)

GetLongitudeOk returns a tuple with the Longitude field value and a boolean to check if the value has been set.

func (*TreeUpdate) GetNumber

func (o *TreeUpdate) GetNumber() string

GetNumber returns the Number field value

func (*TreeUpdate) GetNumberOk

func (o *TreeUpdate) GetNumberOk() (*string, bool)

GetNumberOk returns a tuple with the Number field value and a boolean to check if the value has been set.

func (*TreeUpdate) GetPlantingYear

func (o *TreeUpdate) GetPlantingYear() int32

GetPlantingYear returns the PlantingYear field value

func (*TreeUpdate) GetPlantingYearOk

func (o *TreeUpdate) GetPlantingYearOk() (*int32, bool)

GetPlantingYearOk returns a tuple with the PlantingYear field value and a boolean to check if the value has been set.

func (*TreeUpdate) GetProvider

func (o *TreeUpdate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*TreeUpdate) GetProviderOk

func (o *TreeUpdate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeUpdate) GetSensorId

func (o *TreeUpdate) GetSensorId() string

GetSensorId returns the SensorId field value if set, zero value otherwise.

func (*TreeUpdate) GetSensorIdOk

func (o *TreeUpdate) GetSensorIdOk() (*string, bool)

GetSensorIdOk returns a tuple with the SensorId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeUpdate) GetSpecies

func (o *TreeUpdate) GetSpecies() string

GetSpecies returns the Species field value

func (*TreeUpdate) GetSpeciesOk

func (o *TreeUpdate) GetSpeciesOk() (*string, bool)

GetSpeciesOk returns a tuple with the Species field value and a boolean to check if the value has been set.

func (*TreeUpdate) GetTreeClusterId

func (o *TreeUpdate) GetTreeClusterId() int32

GetTreeClusterId returns the TreeClusterId field value if set, zero value otherwise.

func (*TreeUpdate) GetTreeClusterIdOk

func (o *TreeUpdate) GetTreeClusterIdOk() (*int32, bool)

GetTreeClusterIdOk returns a tuple with the TreeClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeUpdate) HasAdditionalInformation

func (o *TreeUpdate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*TreeUpdate) HasProvider

func (o *TreeUpdate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*TreeUpdate) HasSensorId

func (o *TreeUpdate) HasSensorId() bool

HasSensorId returns a boolean if a field has been set.

func (*TreeUpdate) HasTreeClusterId

func (o *TreeUpdate) HasTreeClusterId() bool

HasTreeClusterId returns a boolean if a field has been set.

func (TreeUpdate) MarshalJSON

func (o TreeUpdate) MarshalJSON() ([]byte, error)

func (*TreeUpdate) SetAdditionalInformation

func (o *TreeUpdate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*TreeUpdate) SetDescription

func (o *TreeUpdate) SetDescription(v string)

SetDescription sets field value

func (*TreeUpdate) SetLatitude

func (o *TreeUpdate) SetLatitude(v float32)

SetLatitude sets field value

func (*TreeUpdate) SetLongitude

func (o *TreeUpdate) SetLongitude(v float32)

SetLongitude sets field value

func (*TreeUpdate) SetNumber

func (o *TreeUpdate) SetNumber(v string)

SetNumber sets field value

func (*TreeUpdate) SetPlantingYear

func (o *TreeUpdate) SetPlantingYear(v int32)

SetPlantingYear sets field value

func (*TreeUpdate) SetProvider

func (o *TreeUpdate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*TreeUpdate) SetSensorId

func (o *TreeUpdate) SetSensorId(v string)

SetSensorId gets a reference to the given string and assigns it to the SensorId field.

func (*TreeUpdate) SetSpecies

func (o *TreeUpdate) SetSpecies(v string)

SetSpecies sets field value

func (*TreeUpdate) SetTreeClusterId

func (o *TreeUpdate) SetTreeClusterId(v int32)

SetTreeClusterId gets a reference to the given int32 and assigns it to the TreeClusterId field.

func (TreeUpdate) ToMap

func (o TreeUpdate) ToMap() (map[string]interface{}, error)

func (*TreeUpdate) UnmarshalJSON

func (o *TreeUpdate) UnmarshalJSON(data []byte) (err error)

type User

type User struct {
	AvatarUrl       string           `json:"avatar_url"`
	CreatedAt       string           `json:"created_at"`
	DrivingLicenses []DrivingLicense `json:"driving_licenses"`
	Email           string           `json:"email"`
	EmailVerified   bool             `json:"email_verified"`
	EmployeeId      string           `json:"employee_id"`
	FirstName       string           `json:"first_name"`
	Id              string           `json:"id"`
	LastName        string           `json:"last_name"`
	PhoneNumber     string           `json:"phone_number"`
	Roles           []UserRole       `json:"roles"`
	Status          UserStatus       `json:"status"`
	Username        string           `json:"username"`
}

User struct for User

func NewUser

func NewUser(avatarUrl string, createdAt string, drivingLicenses []DrivingLicense, email string, emailVerified bool, employeeId string, firstName string, id string, lastName string, phoneNumber string, roles []UserRole, status UserStatus, username string) *User

NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, 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 NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User object This 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 (*User) GetAvatarUrl

func (o *User) GetAvatarUrl() string

GetAvatarUrl returns the AvatarUrl field value

func (*User) GetAvatarUrlOk

func (o *User) GetAvatarUrlOk() (*string, bool)

GetAvatarUrlOk returns a tuple with the AvatarUrl field value and a boolean to check if the value has been set.

func (*User) GetCreatedAt

func (o *User) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*User) GetCreatedAtOk

func (o *User) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*User) GetDrivingLicenses

func (o *User) GetDrivingLicenses() []DrivingLicense

GetDrivingLicenses returns the DrivingLicenses field value

func (*User) GetDrivingLicensesOk

func (o *User) GetDrivingLicensesOk() ([]DrivingLicense, bool)

GetDrivingLicensesOk returns a tuple with the DrivingLicenses field value and a boolean to check if the value has been set.

func (*User) GetEmail

func (o *User) GetEmail() string

GetEmail returns the Email field value

func (*User) GetEmailOk

func (o *User) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*User) GetEmailVerified

func (o *User) GetEmailVerified() bool

GetEmailVerified returns the EmailVerified field value

func (*User) GetEmailVerifiedOk

func (o *User) GetEmailVerifiedOk() (*bool, bool)

GetEmailVerifiedOk returns a tuple with the EmailVerified field value and a boolean to check if the value has been set.

func (*User) GetEmployeeId

func (o *User) GetEmployeeId() string

GetEmployeeId returns the EmployeeId field value

func (*User) GetEmployeeIdOk

func (o *User) GetEmployeeIdOk() (*string, bool)

GetEmployeeIdOk returns a tuple with the EmployeeId field value and a boolean to check if the value has been set.

func (*User) GetFirstName

func (o *User) GetFirstName() string

GetFirstName returns the FirstName field value

func (*User) GetFirstNameOk

func (o *User) GetFirstNameOk() (*string, bool)

GetFirstNameOk returns a tuple with the FirstName field value and a boolean to check if the value has been set.

func (*User) GetId

func (o *User) GetId() string

GetId returns the Id field value

func (*User) GetIdOk

func (o *User) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*User) GetLastName

func (o *User) GetLastName() string

GetLastName returns the LastName field value

func (*User) GetLastNameOk

func (o *User) GetLastNameOk() (*string, bool)

GetLastNameOk returns a tuple with the LastName field value and a boolean to check if the value has been set.

func (*User) GetPhoneNumber

func (o *User) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value

func (*User) GetPhoneNumberOk

func (o *User) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value and a boolean to check if the value has been set.

func (*User) GetRoles

func (o *User) GetRoles() []UserRole

GetRoles returns the Roles field value

func (*User) GetRolesOk

func (o *User) GetRolesOk() ([]UserRole, bool)

GetRolesOk returns a tuple with the Roles field value and a boolean to check if the value has been set.

func (*User) GetStatus

func (o *User) GetStatus() UserStatus

GetStatus returns the Status field value

func (*User) GetStatusOk

func (o *User) GetStatusOk() (*UserStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*User) GetUsername

func (o *User) GetUsername() string

GetUsername returns the Username field value

func (*User) GetUsernameOk

func (o *User) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (User) MarshalJSON

func (o User) MarshalJSON() ([]byte, error)

func (*User) SetAvatarUrl

func (o *User) SetAvatarUrl(v string)

SetAvatarUrl sets field value

func (*User) SetCreatedAt

func (o *User) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*User) SetDrivingLicenses

func (o *User) SetDrivingLicenses(v []DrivingLicense)

SetDrivingLicenses sets field value

func (*User) SetEmail

func (o *User) SetEmail(v string)

SetEmail sets field value

func (*User) SetEmailVerified

func (o *User) SetEmailVerified(v bool)

SetEmailVerified sets field value

func (*User) SetEmployeeId

func (o *User) SetEmployeeId(v string)

SetEmployeeId sets field value

func (*User) SetFirstName

func (o *User) SetFirstName(v string)

SetFirstName sets field value

func (*User) SetId

func (o *User) SetId(v string)

SetId sets field value

func (*User) SetLastName

func (o *User) SetLastName(v string)

SetLastName sets field value

func (*User) SetPhoneNumber

func (o *User) SetPhoneNumber(v string)

SetPhoneNumber sets field value

func (*User) SetRoles

func (o *User) SetRoles(v []UserRole)

SetRoles sets field value

func (*User) SetStatus

func (o *User) SetStatus(v UserStatus)

SetStatus sets field value

func (*User) SetUsername

func (o *User) SetUsername(v string)

SetUsername sets field value

func (User) ToMap

func (o User) ToMap() (map[string]interface{}, error)

func (*User) UnmarshalJSON

func (o *User) UnmarshalJSON(data []byte) (err error)

type UserAPIService

type UserAPIService service

UserAPIService UserAPI service

func (*UserAPIService) GetAllUsers

GetAllUsers Get all users

Get all users

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllUsersRequest

func (*UserAPIService) GetAllUsersExecute

func (a *UserAPIService) GetAllUsersExecute(r ApiGetAllUsersRequest) (*UserList, *http.Response, error)

Execute executes the request

@return UserList

func (*UserAPIService) GetUsersByRole

func (a *UserAPIService) GetUsersByRole(ctx context.Context, role string) ApiGetUsersByRoleRequest

GetUsersByRole Get users by role

Get users by role

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param role Role
@return ApiGetUsersByRoleRequest

func (*UserAPIService) GetUsersByRoleExecute

func (a *UserAPIService) GetUsersByRoleExecute(r ApiGetUsersByRoleRequest) (*UserList, *http.Response, error)

Execute executes the request

@return UserList

func (*UserAPIService) V1UserLoginGet

func (a *UserAPIService) V1UserLoginGet(ctx context.Context) ApiV1UserLoginGetRequest

V1UserLoginGet Request to login

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1UserLoginGetRequest

func (*UserAPIService) V1UserLoginGetExecute

func (a *UserAPIService) V1UserLoginGetExecute(r ApiV1UserLoginGetRequest) (*LoginResponse, *http.Response, error)

Execute executes the request

@return LoginResponse

func (*UserAPIService) V1UserLoginTokenPost

func (a *UserAPIService) V1UserLoginTokenPost(ctx context.Context) ApiV1UserLoginTokenPostRequest

V1UserLoginTokenPost Validate login code and request a access token

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1UserLoginTokenPostRequest

func (*UserAPIService) V1UserLoginTokenPostExecute

func (a *UserAPIService) V1UserLoginTokenPostExecute(r ApiV1UserLoginTokenPostRequest) (*ClientToken, *http.Response, error)

Execute executes the request

@return ClientToken

func (*UserAPIService) V1UserLogoutPost

func (a *UserAPIService) V1UserLogoutPost(ctx context.Context) ApiV1UserLogoutPostRequest

V1UserLogoutPost Logout from the system

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1UserLogoutPostRequest

func (*UserAPIService) V1UserLogoutPostExecute

func (a *UserAPIService) V1UserLogoutPostExecute(r ApiV1UserLogoutPostRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*UserAPIService) V1UserPost

V1UserPost Register a new user

Register a new user

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1UserPostRequest

func (*UserAPIService) V1UserPostExecute

func (a *UserAPIService) V1UserPostExecute(r ApiV1UserPostRequest) (*User, *http.Response, error)

Execute executes the request

@return User

func (*UserAPIService) V1UserTokenRefreshPost

func (a *UserAPIService) V1UserTokenRefreshPost(ctx context.Context) ApiV1UserTokenRefreshPostRequest

V1UserTokenRefreshPost Refresh token

Refresh token

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1UserTokenRefreshPostRequest

func (*UserAPIService) V1UserTokenRefreshPostExecute

func (a *UserAPIService) V1UserTokenRefreshPostExecute(r ApiV1UserTokenRefreshPostRequest) (*ClientToken, *http.Response, error)

Execute executes the request

@return ClientToken

type UserList

type UserList struct {
	Data []User `json:"data"`
}

UserList struct for UserList

func NewUserList

func NewUserList(data []User) *UserList

NewUserList instantiates a new UserList object This constructor will assign default values to properties that have it defined, 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 NewUserListWithDefaults

func NewUserListWithDefaults() *UserList

NewUserListWithDefaults instantiates a new UserList object This 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 (*UserList) GetData

func (o *UserList) GetData() []User

GetData returns the Data field value

func (*UserList) GetDataOk

func (o *UserList) GetDataOk() ([]User, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (UserList) MarshalJSON

func (o UserList) MarshalJSON() ([]byte, error)

func (*UserList) SetData

func (o *UserList) SetData(v []User)

SetData sets field value

func (UserList) ToMap

func (o UserList) ToMap() (map[string]interface{}, error)

func (*UserList) UnmarshalJSON

func (o *UserList) UnmarshalJSON(data []byte) (err error)

type UserRegister

type UserRegister struct {
	AvatarUrl   string   `json:"avatar_url"`
	Email       string   `json:"email"`
	EmployeeId  string   `json:"employee_id"`
	FirstName   string   `json:"first_name"`
	LastName    string   `json:"last_name"`
	Password    string   `json:"password"`
	PhoneNumber string   `json:"phone_number"`
	Roles       []string `json:"roles"`
	Username    string   `json:"username"`
}

UserRegister struct for UserRegister

func NewUserRegister

func NewUserRegister(avatarUrl string, email string, employeeId string, firstName string, lastName string, password string, phoneNumber string, roles []string, username string) *UserRegister

NewUserRegister instantiates a new UserRegister object This constructor will assign default values to properties that have it defined, 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 NewUserRegisterWithDefaults

func NewUserRegisterWithDefaults() *UserRegister

NewUserRegisterWithDefaults instantiates a new UserRegister object This 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 (*UserRegister) GetAvatarUrl

func (o *UserRegister) GetAvatarUrl() string

GetAvatarUrl returns the AvatarUrl field value

func (*UserRegister) GetAvatarUrlOk

func (o *UserRegister) GetAvatarUrlOk() (*string, bool)

GetAvatarUrlOk returns a tuple with the AvatarUrl field value and a boolean to check if the value has been set.

func (*UserRegister) GetEmail

func (o *UserRegister) GetEmail() string

GetEmail returns the Email field value

func (*UserRegister) GetEmailOk

func (o *UserRegister) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*UserRegister) GetEmployeeId

func (o *UserRegister) GetEmployeeId() string

GetEmployeeId returns the EmployeeId field value

func (*UserRegister) GetEmployeeIdOk

func (o *UserRegister) GetEmployeeIdOk() (*string, bool)

GetEmployeeIdOk returns a tuple with the EmployeeId field value and a boolean to check if the value has been set.

func (*UserRegister) GetFirstName

func (o *UserRegister) GetFirstName() string

GetFirstName returns the FirstName field value

func (*UserRegister) GetFirstNameOk

func (o *UserRegister) GetFirstNameOk() (*string, bool)

GetFirstNameOk returns a tuple with the FirstName field value and a boolean to check if the value has been set.

func (*UserRegister) GetLastName

func (o *UserRegister) GetLastName() string

GetLastName returns the LastName field value

func (*UserRegister) GetLastNameOk

func (o *UserRegister) GetLastNameOk() (*string, bool)

GetLastNameOk returns a tuple with the LastName field value and a boolean to check if the value has been set.

func (*UserRegister) GetPassword

func (o *UserRegister) GetPassword() string

GetPassword returns the Password field value

func (*UserRegister) GetPasswordOk

func (o *UserRegister) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set.

func (*UserRegister) GetPhoneNumber

func (o *UserRegister) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value

func (*UserRegister) GetPhoneNumberOk

func (o *UserRegister) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value and a boolean to check if the value has been set.

func (*UserRegister) GetRoles

func (o *UserRegister) GetRoles() []string

GetRoles returns the Roles field value

func (*UserRegister) GetRolesOk

func (o *UserRegister) GetRolesOk() ([]string, bool)

GetRolesOk returns a tuple with the Roles field value and a boolean to check if the value has been set.

func (*UserRegister) GetUsername

func (o *UserRegister) GetUsername() string

GetUsername returns the Username field value

func (*UserRegister) GetUsernameOk

func (o *UserRegister) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (UserRegister) MarshalJSON

func (o UserRegister) MarshalJSON() ([]byte, error)

func (*UserRegister) SetAvatarUrl

func (o *UserRegister) SetAvatarUrl(v string)

SetAvatarUrl sets field value

func (*UserRegister) SetEmail

func (o *UserRegister) SetEmail(v string)

SetEmail sets field value

func (*UserRegister) SetEmployeeId

func (o *UserRegister) SetEmployeeId(v string)

SetEmployeeId sets field value

func (*UserRegister) SetFirstName

func (o *UserRegister) SetFirstName(v string)

SetFirstName sets field value

func (*UserRegister) SetLastName

func (o *UserRegister) SetLastName(v string)

SetLastName sets field value

func (*UserRegister) SetPassword

func (o *UserRegister) SetPassword(v string)

SetPassword sets field value

func (*UserRegister) SetPhoneNumber

func (o *UserRegister) SetPhoneNumber(v string)

SetPhoneNumber sets field value

func (*UserRegister) SetRoles

func (o *UserRegister) SetRoles(v []string)

SetRoles sets field value

func (*UserRegister) SetUsername

func (o *UserRegister) SetUsername(v string)

SetUsername sets field value

func (UserRegister) ToMap

func (o UserRegister) ToMap() (map[string]interface{}, error)

func (*UserRegister) UnmarshalJSON

func (o *UserRegister) UnmarshalJSON(data []byte) (err error)

type UserRole

type UserRole string

UserRole the model 'UserRole'

const (
	UserRoleTbz               UserRole = "tbz"
	UserRoleGreenEcolution    UserRole = "green-ecolution"
	UserRoleSmarteGrenzregion UserRole = "smarte-grenzregion"
	UserRoleUnknown           UserRole = "unknown"
)

List of UserRole

func NewUserRoleFromValue

func NewUserRoleFromValue(v string) (*UserRole, error)

NewUserRoleFromValue returns a pointer to a valid UserRole for the value passed as argument, or an error if the value passed is not allowed by the enum

func (UserRole) IsValid

func (v UserRole) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (UserRole) Ptr

func (v UserRole) Ptr() *UserRole

Ptr returns reference to UserRole value

func (*UserRole) UnmarshalJSON

func (v *UserRole) UnmarshalJSON(src []byte) error

type UserStatus

type UserStatus string

UserStatus the model 'UserStatus'

const (
	UserStatusAvailable UserStatus = "available"
	UserStatusAbsent    UserStatus = "absent"
	UserStatusUnknown   UserStatus = "unknown"
)

List of UserStatus

func NewUserStatusFromValue

func NewUserStatusFromValue(v string) (*UserStatus, error)

NewUserStatusFromValue returns a pointer to a valid UserStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (UserStatus) IsValid

func (v UserStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (UserStatus) Ptr

func (v UserStatus) Ptr() *UserStatus

Ptr returns reference to UserStatus value

func (*UserStatus) UnmarshalJSON

func (v *UserStatus) UnmarshalJSON(src []byte) error

type Vehicle

type Vehicle struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	ArchivedAt            string                 `json:"archived_at"`
	CreatedAt             string                 `json:"created_at"`
	Description           string                 `json:"description"`
	DrivingLicense        DrivingLicense         `json:"driving_license"`
	Height                float32                `json:"height"`
	Id                    int32                  `json:"id"`
	Length                float32                `json:"length"`
	Model                 string                 `json:"model"`
	NumberPlate           string                 `json:"number_plate"`
	Provider              string                 `json:"provider"`
	Status                VehicleStatus          `json:"status"`
	Type                  VehicleType            `json:"type"`
	UpdatedAt             string                 `json:"updated_at"`
	WaterCapacity         float32                `json:"water_capacity"`
	Weight                float32                `json:"weight"`
	Width                 float32                `json:"width"`
}

Vehicle struct for Vehicle

func NewVehicle

func NewVehicle(archivedAt string, createdAt string, description string, drivingLicense DrivingLicense, height float32, id int32, length float32, model string, numberPlate string, provider string, status VehicleStatus, type_ VehicleType, updatedAt string, waterCapacity float32, weight float32, width float32) *Vehicle

NewVehicle instantiates a new Vehicle object This constructor will assign default values to properties that have it defined, 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 NewVehicleWithDefaults

func NewVehicleWithDefaults() *Vehicle

NewVehicleWithDefaults instantiates a new Vehicle object This 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 (*Vehicle) GetAdditionalInformation

func (o *Vehicle) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*Vehicle) GetAdditionalInformationOk

func (o *Vehicle) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Vehicle) GetArchivedAt

func (o *Vehicle) GetArchivedAt() string

GetArchivedAt returns the ArchivedAt field value

func (*Vehicle) GetArchivedAtOk

func (o *Vehicle) GetArchivedAtOk() (*string, bool)

GetArchivedAtOk returns a tuple with the ArchivedAt field value and a boolean to check if the value has been set.

func (*Vehicle) GetCreatedAt

func (o *Vehicle) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*Vehicle) GetCreatedAtOk

func (o *Vehicle) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Vehicle) GetDescription

func (o *Vehicle) GetDescription() string

GetDescription returns the Description field value

func (*Vehicle) GetDescriptionOk

func (o *Vehicle) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Vehicle) GetDrivingLicense

func (o *Vehicle) GetDrivingLicense() DrivingLicense

GetDrivingLicense returns the DrivingLicense field value

func (*Vehicle) GetDrivingLicenseOk

func (o *Vehicle) GetDrivingLicenseOk() (*DrivingLicense, bool)

GetDrivingLicenseOk returns a tuple with the DrivingLicense field value and a boolean to check if the value has been set.

func (*Vehicle) GetHeight

func (o *Vehicle) GetHeight() float32

GetHeight returns the Height field value

func (*Vehicle) GetHeightOk

func (o *Vehicle) GetHeightOk() (*float32, bool)

GetHeightOk returns a tuple with the Height field value and a boolean to check if the value has been set.

func (*Vehicle) GetId

func (o *Vehicle) GetId() int32

GetId returns the Id field value

func (*Vehicle) GetIdOk

func (o *Vehicle) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Vehicle) GetLength

func (o *Vehicle) GetLength() float32

GetLength returns the Length field value

func (*Vehicle) GetLengthOk

func (o *Vehicle) GetLengthOk() (*float32, bool)

GetLengthOk returns a tuple with the Length field value and a boolean to check if the value has been set.

func (*Vehicle) GetModel

func (o *Vehicle) GetModel() string

GetModel returns the Model field value

func (*Vehicle) GetModelOk

func (o *Vehicle) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.

func (*Vehicle) GetNumberPlate

func (o *Vehicle) GetNumberPlate() string

GetNumberPlate returns the NumberPlate field value

func (*Vehicle) GetNumberPlateOk

func (o *Vehicle) GetNumberPlateOk() (*string, bool)

GetNumberPlateOk returns a tuple with the NumberPlate field value and a boolean to check if the value has been set.

func (*Vehicle) GetProvider

func (o *Vehicle) GetProvider() string

GetProvider returns the Provider field value

func (*Vehicle) GetProviderOk

func (o *Vehicle) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*Vehicle) GetStatus

func (o *Vehicle) GetStatus() VehicleStatus

GetStatus returns the Status field value

func (*Vehicle) GetStatusOk

func (o *Vehicle) GetStatusOk() (*VehicleStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Vehicle) GetType

func (o *Vehicle) GetType() VehicleType

GetType returns the Type field value

func (*Vehicle) GetTypeOk

func (o *Vehicle) GetTypeOk() (*VehicleType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Vehicle) GetUpdatedAt

func (o *Vehicle) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*Vehicle) GetUpdatedAtOk

func (o *Vehicle) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Vehicle) GetWaterCapacity

func (o *Vehicle) GetWaterCapacity() float32

GetWaterCapacity returns the WaterCapacity field value

func (*Vehicle) GetWaterCapacityOk

func (o *Vehicle) GetWaterCapacityOk() (*float32, bool)

GetWaterCapacityOk returns a tuple with the WaterCapacity field value and a boolean to check if the value has been set.

func (*Vehicle) GetWeight

func (o *Vehicle) GetWeight() float32

GetWeight returns the Weight field value

func (*Vehicle) GetWeightOk

func (o *Vehicle) GetWeightOk() (*float32, bool)

GetWeightOk returns a tuple with the Weight field value and a boolean to check if the value has been set.

func (*Vehicle) GetWidth

func (o *Vehicle) GetWidth() float32

GetWidth returns the Width field value

func (*Vehicle) GetWidthOk

func (o *Vehicle) GetWidthOk() (*float32, bool)

GetWidthOk returns a tuple with the Width field value and a boolean to check if the value has been set.

func (*Vehicle) HasAdditionalInformation

func (o *Vehicle) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (Vehicle) MarshalJSON

func (o Vehicle) MarshalJSON() ([]byte, error)

func (*Vehicle) SetAdditionalInformation

func (o *Vehicle) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*Vehicle) SetArchivedAt

func (o *Vehicle) SetArchivedAt(v string)

SetArchivedAt sets field value

func (*Vehicle) SetCreatedAt

func (o *Vehicle) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*Vehicle) SetDescription

func (o *Vehicle) SetDescription(v string)

SetDescription sets field value

func (*Vehicle) SetDrivingLicense

func (o *Vehicle) SetDrivingLicense(v DrivingLicense)

SetDrivingLicense sets field value

func (*Vehicle) SetHeight

func (o *Vehicle) SetHeight(v float32)

SetHeight sets field value

func (*Vehicle) SetId

func (o *Vehicle) SetId(v int32)

SetId sets field value

func (*Vehicle) SetLength

func (o *Vehicle) SetLength(v float32)

SetLength sets field value

func (*Vehicle) SetModel

func (o *Vehicle) SetModel(v string)

SetModel sets field value

func (*Vehicle) SetNumberPlate

func (o *Vehicle) SetNumberPlate(v string)

SetNumberPlate sets field value

func (*Vehicle) SetProvider

func (o *Vehicle) SetProvider(v string)

SetProvider sets field value

func (*Vehicle) SetStatus

func (o *Vehicle) SetStatus(v VehicleStatus)

SetStatus sets field value

func (*Vehicle) SetType

func (o *Vehicle) SetType(v VehicleType)

SetType sets field value

func (*Vehicle) SetUpdatedAt

func (o *Vehicle) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*Vehicle) SetWaterCapacity

func (o *Vehicle) SetWaterCapacity(v float32)

SetWaterCapacity sets field value

func (*Vehicle) SetWeight

func (o *Vehicle) SetWeight(v float32)

SetWeight sets field value

func (*Vehicle) SetWidth

func (o *Vehicle) SetWidth(v float32)

SetWidth sets field value

func (Vehicle) ToMap

func (o Vehicle) ToMap() (map[string]interface{}, error)

func (*Vehicle) UnmarshalJSON

func (o *Vehicle) UnmarshalJSON(data []byte) (err error)

type VehicleAPIService

type VehicleAPIService service

VehicleAPIService VehicleAPI service

func (*VehicleAPIService) ArchiveVehicle

func (a *VehicleAPIService) ArchiveVehicle(ctx context.Context, id int32) ApiArchiveVehicleRequest

ArchiveVehicle Archive vehicle

Archive vehicle

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Vehicle ID
@return ApiArchiveVehicleRequest

func (*VehicleAPIService) ArchiveVehicleExecute

func (a *VehicleAPIService) ArchiveVehicleExecute(r ApiArchiveVehicleRequest) (*http.Response, error)

Execute executes the request

func (*VehicleAPIService) CreateVehicle

CreateVehicle Create vehicle

Create vehicle

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateVehicleRequest

func (*VehicleAPIService) CreateVehicleExecute

func (a *VehicleAPIService) CreateVehicleExecute(r ApiCreateVehicleRequest) (*Vehicle, *http.Response, error)

Execute executes the request

@return Vehicle

func (*VehicleAPIService) DeleteVehicle

DeleteVehicle Delete vehicle

Delete vehicle

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Vehicle ID
@return ApiDeleteVehicleRequest

func (*VehicleAPIService) DeleteVehicleExecute

func (a *VehicleAPIService) DeleteVehicleExecute(r ApiDeleteVehicleRequest) (*http.Response, error)

Execute executes the request

func (*VehicleAPIService) GetAllVehicles

GetAllVehicles Get all vehicles

Get all vehicles

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllVehiclesRequest

func (*VehicleAPIService) GetAllVehiclesExecute

func (a *VehicleAPIService) GetAllVehiclesExecute(r ApiGetAllVehiclesRequest) (*VehicleList, *http.Response, error)

Execute executes the request

@return VehicleList

func (*VehicleAPIService) GetArchiveVehicle

GetArchiveVehicle Get archived vehicle

Get archived vehicle

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetArchiveVehicleRequest

func (*VehicleAPIService) GetArchiveVehicleExecute

func (a *VehicleAPIService) GetArchiveVehicleExecute(r ApiGetArchiveVehicleRequest) ([]Vehicle, *http.Response, error)

Execute executes the request

@return []Vehicle

func (*VehicleAPIService) GetVehicleById

func (a *VehicleAPIService) GetVehicleById(ctx context.Context, id int32) ApiGetVehicleByIdRequest

GetVehicleById Get vehicle by ID

Get vehicle by ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Vehicle ID
@return ApiGetVehicleByIdRequest

func (*VehicleAPIService) GetVehicleByIdExecute

func (a *VehicleAPIService) GetVehicleByIdExecute(r ApiGetVehicleByIdRequest) (*Vehicle, *http.Response, error)

Execute executes the request

@return Vehicle

func (*VehicleAPIService) GetVehicleByPlate

func (a *VehicleAPIService) GetVehicleByPlate(ctx context.Context, plate string) ApiGetVehicleByPlateRequest

GetVehicleByPlate Get vehicle by plate

Get vehicle by plate

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param plate Vehicle plate number
@return ApiGetVehicleByPlateRequest

func (*VehicleAPIService) GetVehicleByPlateExecute

func (a *VehicleAPIService) GetVehicleByPlateExecute(r ApiGetVehicleByPlateRequest) (*Vehicle, *http.Response, error)

Execute executes the request

@return Vehicle

func (*VehicleAPIService) UpdateVehicle

UpdateVehicle Update vehicle

Update vehicle

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Vehicle ID
@return ApiUpdateVehicleRequest

func (*VehicleAPIService) UpdateVehicleExecute

func (a *VehicleAPIService) UpdateVehicleExecute(r ApiUpdateVehicleRequest) (*Vehicle, *http.Response, error)

Execute executes the request

@return Vehicle

type VehicleCreate

type VehicleCreate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Description           string                 `json:"description"`
	DrivingLicense        DrivingLicense         `json:"driving_license"`
	Height                float32                `json:"height"`
	Length                float32                `json:"length"`
	Model                 string                 `json:"model"`
	NumberPlate           string                 `json:"number_plate"`
	Provider              *string                `json:"provider,omitempty"`
	Status                VehicleStatus          `json:"status"`
	Type                  VehicleType            `json:"type"`
	WaterCapacity         float32                `json:"water_capacity"`
	Weight                float32                `json:"weight"`
	Width                 float32                `json:"width"`
}

VehicleCreate struct for VehicleCreate

func NewVehicleCreate

func NewVehicleCreate(description string, drivingLicense DrivingLicense, height float32, length float32, model string, numberPlate string, status VehicleStatus, type_ VehicleType, waterCapacity float32, weight float32, width float32) *VehicleCreate

NewVehicleCreate instantiates a new VehicleCreate object This constructor will assign default values to properties that have it defined, 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 NewVehicleCreateWithDefaults

func NewVehicleCreateWithDefaults() *VehicleCreate

NewVehicleCreateWithDefaults instantiates a new VehicleCreate object This 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 (*VehicleCreate) GetAdditionalInformation

func (o *VehicleCreate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*VehicleCreate) GetAdditionalInformationOk

func (o *VehicleCreate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VehicleCreate) GetDescription

func (o *VehicleCreate) GetDescription() string

GetDescription returns the Description field value

func (*VehicleCreate) GetDescriptionOk

func (o *VehicleCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetDrivingLicense

func (o *VehicleCreate) GetDrivingLicense() DrivingLicense

GetDrivingLicense returns the DrivingLicense field value

func (*VehicleCreate) GetDrivingLicenseOk

func (o *VehicleCreate) GetDrivingLicenseOk() (*DrivingLicense, bool)

GetDrivingLicenseOk returns a tuple with the DrivingLicense field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetHeight

func (o *VehicleCreate) GetHeight() float32

GetHeight returns the Height field value

func (*VehicleCreate) GetHeightOk

func (o *VehicleCreate) GetHeightOk() (*float32, bool)

GetHeightOk returns a tuple with the Height field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetLength

func (o *VehicleCreate) GetLength() float32

GetLength returns the Length field value

func (*VehicleCreate) GetLengthOk

func (o *VehicleCreate) GetLengthOk() (*float32, bool)

GetLengthOk returns a tuple with the Length field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetModel

func (o *VehicleCreate) GetModel() string

GetModel returns the Model field value

func (*VehicleCreate) GetModelOk

func (o *VehicleCreate) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetNumberPlate

func (o *VehicleCreate) GetNumberPlate() string

GetNumberPlate returns the NumberPlate field value

func (*VehicleCreate) GetNumberPlateOk

func (o *VehicleCreate) GetNumberPlateOk() (*string, bool)

GetNumberPlateOk returns a tuple with the NumberPlate field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetProvider

func (o *VehicleCreate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*VehicleCreate) GetProviderOk

func (o *VehicleCreate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VehicleCreate) GetStatus

func (o *VehicleCreate) GetStatus() VehicleStatus

GetStatus returns the Status field value

func (*VehicleCreate) GetStatusOk

func (o *VehicleCreate) GetStatusOk() (*VehicleStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetType

func (o *VehicleCreate) GetType() VehicleType

GetType returns the Type field value

func (*VehicleCreate) GetTypeOk

func (o *VehicleCreate) GetTypeOk() (*VehicleType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetWaterCapacity

func (o *VehicleCreate) GetWaterCapacity() float32

GetWaterCapacity returns the WaterCapacity field value

func (*VehicleCreate) GetWaterCapacityOk

func (o *VehicleCreate) GetWaterCapacityOk() (*float32, bool)

GetWaterCapacityOk returns a tuple with the WaterCapacity field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetWeight

func (o *VehicleCreate) GetWeight() float32

GetWeight returns the Weight field value

func (*VehicleCreate) GetWeightOk

func (o *VehicleCreate) GetWeightOk() (*float32, bool)

GetWeightOk returns a tuple with the Weight field value and a boolean to check if the value has been set.

func (*VehicleCreate) GetWidth

func (o *VehicleCreate) GetWidth() float32

GetWidth returns the Width field value

func (*VehicleCreate) GetWidthOk

func (o *VehicleCreate) GetWidthOk() (*float32, bool)

GetWidthOk returns a tuple with the Width field value and a boolean to check if the value has been set.

func (*VehicleCreate) HasAdditionalInformation

func (o *VehicleCreate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*VehicleCreate) HasProvider

func (o *VehicleCreate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (VehicleCreate) MarshalJSON

func (o VehicleCreate) MarshalJSON() ([]byte, error)

func (*VehicleCreate) SetAdditionalInformation

func (o *VehicleCreate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*VehicleCreate) SetDescription

func (o *VehicleCreate) SetDescription(v string)

SetDescription sets field value

func (*VehicleCreate) SetDrivingLicense

func (o *VehicleCreate) SetDrivingLicense(v DrivingLicense)

SetDrivingLicense sets field value

func (*VehicleCreate) SetHeight

func (o *VehicleCreate) SetHeight(v float32)

SetHeight sets field value

func (*VehicleCreate) SetLength

func (o *VehicleCreate) SetLength(v float32)

SetLength sets field value

func (*VehicleCreate) SetModel

func (o *VehicleCreate) SetModel(v string)

SetModel sets field value

func (*VehicleCreate) SetNumberPlate

func (o *VehicleCreate) SetNumberPlate(v string)

SetNumberPlate sets field value

func (*VehicleCreate) SetProvider

func (o *VehicleCreate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*VehicleCreate) SetStatus

func (o *VehicleCreate) SetStatus(v VehicleStatus)

SetStatus sets field value

func (*VehicleCreate) SetType

func (o *VehicleCreate) SetType(v VehicleType)

SetType sets field value

func (*VehicleCreate) SetWaterCapacity

func (o *VehicleCreate) SetWaterCapacity(v float32)

SetWaterCapacity sets field value

func (*VehicleCreate) SetWeight

func (o *VehicleCreate) SetWeight(v float32)

SetWeight sets field value

func (*VehicleCreate) SetWidth

func (o *VehicleCreate) SetWidth(v float32)

SetWidth sets field value

func (VehicleCreate) ToMap

func (o VehicleCreate) ToMap() (map[string]interface{}, error)

func (*VehicleCreate) UnmarshalJSON

func (o *VehicleCreate) UnmarshalJSON(data []byte) (err error)

type VehicleList

type VehicleList struct {
	Data       []Vehicle   `json:"data"`
	Pagination *Pagination `json:"pagination,omitempty"`
}

VehicleList struct for VehicleList

func NewVehicleList

func NewVehicleList(data []Vehicle) *VehicleList

NewVehicleList instantiates a new VehicleList object This constructor will assign default values to properties that have it defined, 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 NewVehicleListWithDefaults

func NewVehicleListWithDefaults() *VehicleList

NewVehicleListWithDefaults instantiates a new VehicleList object This 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 (*VehicleList) GetData

func (o *VehicleList) GetData() []Vehicle

GetData returns the Data field value

func (*VehicleList) GetDataOk

func (o *VehicleList) GetDataOk() ([]Vehicle, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*VehicleList) GetPagination

func (o *VehicleList) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*VehicleList) GetPaginationOk

func (o *VehicleList) GetPaginationOk() (*Pagination, bool)

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 (*VehicleList) HasPagination

func (o *VehicleList) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (VehicleList) MarshalJSON

func (o VehicleList) MarshalJSON() ([]byte, error)

func (*VehicleList) SetData

func (o *VehicleList) SetData(v []Vehicle)

SetData sets field value

func (*VehicleList) SetPagination

func (o *VehicleList) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (VehicleList) ToMap

func (o VehicleList) ToMap() (map[string]interface{}, error)

func (*VehicleList) UnmarshalJSON

func (o *VehicleList) UnmarshalJSON(data []byte) (err error)

type VehicleStatus

type VehicleStatus string

VehicleStatus the model 'VehicleStatus'

const (
	VehicleStatusActive       VehicleStatus = "active"
	VehicleStatusAvailable    VehicleStatus = "available"
	VehicleStatusNotAvailable VehicleStatus = "not available"
	VehicleStatusUnknown      VehicleStatus = "unknown"
)

List of VehicleStatus

func NewVehicleStatusFromValue

func NewVehicleStatusFromValue(v string) (*VehicleStatus, error)

NewVehicleStatusFromValue returns a pointer to a valid VehicleStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (VehicleStatus) IsValid

func (v VehicleStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (VehicleStatus) Ptr

func (v VehicleStatus) Ptr() *VehicleStatus

Ptr returns reference to VehicleStatus value

func (*VehicleStatus) UnmarshalJSON

func (v *VehicleStatus) UnmarshalJSON(src []byte) error

type VehicleType

type VehicleType string

VehicleType the model 'VehicleType'

const (
	VehicleTypeTransporter VehicleType = "transporter"
	VehicleTypeTrailer     VehicleType = "trailer"
	VehicleTypeUnknown     VehicleType = "unknown"
)

List of VehicleType

func NewVehicleTypeFromValue

func NewVehicleTypeFromValue(v string) (*VehicleType, error)

NewVehicleTypeFromValue returns a pointer to a valid VehicleType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (VehicleType) IsValid

func (v VehicleType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (VehicleType) Ptr

func (v VehicleType) Ptr() *VehicleType

Ptr returns reference to VehicleType value

func (*VehicleType) UnmarshalJSON

func (v *VehicleType) UnmarshalJSON(src []byte) error

type VehicleUpdate

type VehicleUpdate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Description           string                 `json:"description"`
	DrivingLicense        DrivingLicense         `json:"driving_license"`
	Height                float32                `json:"height"`
	Length                float32                `json:"length"`
	Model                 string                 `json:"model"`
	NumberPlate           string                 `json:"number_plate"`
	Provider              *string                `json:"provider,omitempty"`
	Status                VehicleStatus          `json:"status"`
	Type                  VehicleType            `json:"type"`
	WaterCapacity         float32                `json:"water_capacity"`
	Weight                float32                `json:"weight"`
	Width                 float32                `json:"width"`
}

VehicleUpdate struct for VehicleUpdate

func NewVehicleUpdate

func NewVehicleUpdate(description string, drivingLicense DrivingLicense, height float32, length float32, model string, numberPlate string, status VehicleStatus, type_ VehicleType, waterCapacity float32, weight float32, width float32) *VehicleUpdate

NewVehicleUpdate instantiates a new VehicleUpdate object This constructor will assign default values to properties that have it defined, 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 NewVehicleUpdateWithDefaults

func NewVehicleUpdateWithDefaults() *VehicleUpdate

NewVehicleUpdateWithDefaults instantiates a new VehicleUpdate object This 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 (*VehicleUpdate) GetAdditionalInformation

func (o *VehicleUpdate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*VehicleUpdate) GetAdditionalInformationOk

func (o *VehicleUpdate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VehicleUpdate) GetDescription

func (o *VehicleUpdate) GetDescription() string

GetDescription returns the Description field value

func (*VehicleUpdate) GetDescriptionOk

func (o *VehicleUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetDrivingLicense

func (o *VehicleUpdate) GetDrivingLicense() DrivingLicense

GetDrivingLicense returns the DrivingLicense field value

func (*VehicleUpdate) GetDrivingLicenseOk

func (o *VehicleUpdate) GetDrivingLicenseOk() (*DrivingLicense, bool)

GetDrivingLicenseOk returns a tuple with the DrivingLicense field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetHeight

func (o *VehicleUpdate) GetHeight() float32

GetHeight returns the Height field value

func (*VehicleUpdate) GetHeightOk

func (o *VehicleUpdate) GetHeightOk() (*float32, bool)

GetHeightOk returns a tuple with the Height field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetLength

func (o *VehicleUpdate) GetLength() float32

GetLength returns the Length field value

func (*VehicleUpdate) GetLengthOk

func (o *VehicleUpdate) GetLengthOk() (*float32, bool)

GetLengthOk returns a tuple with the Length field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetModel

func (o *VehicleUpdate) GetModel() string

GetModel returns the Model field value

func (*VehicleUpdate) GetModelOk

func (o *VehicleUpdate) GetModelOk() (*string, bool)

GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetNumberPlate

func (o *VehicleUpdate) GetNumberPlate() string

GetNumberPlate returns the NumberPlate field value

func (*VehicleUpdate) GetNumberPlateOk

func (o *VehicleUpdate) GetNumberPlateOk() (*string, bool)

GetNumberPlateOk returns a tuple with the NumberPlate field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetProvider

func (o *VehicleUpdate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*VehicleUpdate) GetProviderOk

func (o *VehicleUpdate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*VehicleUpdate) GetStatus

func (o *VehicleUpdate) GetStatus() VehicleStatus

GetStatus returns the Status field value

func (*VehicleUpdate) GetStatusOk

func (o *VehicleUpdate) GetStatusOk() (*VehicleStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetType

func (o *VehicleUpdate) GetType() VehicleType

GetType returns the Type field value

func (*VehicleUpdate) GetTypeOk

func (o *VehicleUpdate) GetTypeOk() (*VehicleType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetWaterCapacity

func (o *VehicleUpdate) GetWaterCapacity() float32

GetWaterCapacity returns the WaterCapacity field value

func (*VehicleUpdate) GetWaterCapacityOk

func (o *VehicleUpdate) GetWaterCapacityOk() (*float32, bool)

GetWaterCapacityOk returns a tuple with the WaterCapacity field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetWeight

func (o *VehicleUpdate) GetWeight() float32

GetWeight returns the Weight field value

func (*VehicleUpdate) GetWeightOk

func (o *VehicleUpdate) GetWeightOk() (*float32, bool)

GetWeightOk returns a tuple with the Weight field value and a boolean to check if the value has been set.

func (*VehicleUpdate) GetWidth

func (o *VehicleUpdate) GetWidth() float32

GetWidth returns the Width field value

func (*VehicleUpdate) GetWidthOk

func (o *VehicleUpdate) GetWidthOk() (*float32, bool)

GetWidthOk returns a tuple with the Width field value and a boolean to check if the value has been set.

func (*VehicleUpdate) HasAdditionalInformation

func (o *VehicleUpdate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*VehicleUpdate) HasProvider

func (o *VehicleUpdate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (VehicleUpdate) MarshalJSON

func (o VehicleUpdate) MarshalJSON() ([]byte, error)

func (*VehicleUpdate) SetAdditionalInformation

func (o *VehicleUpdate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*VehicleUpdate) SetDescription

func (o *VehicleUpdate) SetDescription(v string)

SetDescription sets field value

func (*VehicleUpdate) SetDrivingLicense

func (o *VehicleUpdate) SetDrivingLicense(v DrivingLicense)

SetDrivingLicense sets field value

func (*VehicleUpdate) SetHeight

func (o *VehicleUpdate) SetHeight(v float32)

SetHeight sets field value

func (*VehicleUpdate) SetLength

func (o *VehicleUpdate) SetLength(v float32)

SetLength sets field value

func (*VehicleUpdate) SetModel

func (o *VehicleUpdate) SetModel(v string)

SetModel sets field value

func (*VehicleUpdate) SetNumberPlate

func (o *VehicleUpdate) SetNumberPlate(v string)

SetNumberPlate sets field value

func (*VehicleUpdate) SetProvider

func (o *VehicleUpdate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*VehicleUpdate) SetStatus

func (o *VehicleUpdate) SetStatus(v VehicleStatus)

SetStatus sets field value

func (*VehicleUpdate) SetType

func (o *VehicleUpdate) SetType(v VehicleType)

SetType sets field value

func (*VehicleUpdate) SetWaterCapacity

func (o *VehicleUpdate) SetWaterCapacity(v float32)

SetWaterCapacity sets field value

func (*VehicleUpdate) SetWeight

func (o *VehicleUpdate) SetWeight(v float32)

SetWeight sets field value

func (*VehicleUpdate) SetWidth

func (o *VehicleUpdate) SetWidth(v float32)

SetWidth sets field value

func (VehicleUpdate) ToMap

func (o VehicleUpdate) ToMap() (map[string]interface{}, error)

func (*VehicleUpdate) UnmarshalJSON

func (o *VehicleUpdate) UnmarshalJSON(data []byte) (err error)

type WateringPlan

type WateringPlan struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	CancellationNote      string                 `json:"cancellation_note"`
	CreatedAt             string                 `json:"created_at"`
	Date                  string                 `json:"date"`
	Description           string                 `json:"description"`
	Distance              float32                `json:"distance"`
	Duration              float32                `json:"duration"`
	Evaluation            []EvaluationValue      `json:"evaluation"`
	GpxUrl                string                 `json:"gpx_url"`
	Id                    int32                  `json:"id"`
	Provider              string                 `json:"provider"`
	RefillCount           int32                  `json:"refill_count"`
	Status                WateringPlanStatus     `json:"status"`
	TotalWaterRequired    float32                `json:"total_water_required"`
	Trailer               *Vehicle               `json:"trailer,omitempty"`
	Transporter           Vehicle                `json:"transporter"`
	Treeclusters          []TreeClusterInList    `json:"treeclusters"`
	UpdatedAt             string                 `json:"updated_at"`
	UserIds               []string               `json:"user_ids"`
}

WateringPlan struct for WateringPlan

func NewWateringPlan

func NewWateringPlan(cancellationNote string, createdAt string, date string, description string, distance float32, duration float32, evaluation []EvaluationValue, gpxUrl string, id int32, provider string, refillCount int32, status WateringPlanStatus, totalWaterRequired float32, transporter Vehicle, treeclusters []TreeClusterInList, updatedAt string, userIds []string) *WateringPlan

NewWateringPlan instantiates a new WateringPlan object This constructor will assign default values to properties that have it defined, 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 NewWateringPlanWithDefaults

func NewWateringPlanWithDefaults() *WateringPlan

NewWateringPlanWithDefaults instantiates a new WateringPlan object This 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 (*WateringPlan) GetAdditionalInformation

func (o *WateringPlan) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*WateringPlan) GetAdditionalInformationOk

func (o *WateringPlan) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlan) GetCancellationNote

func (o *WateringPlan) GetCancellationNote() string

GetCancellationNote returns the CancellationNote field value

func (*WateringPlan) GetCancellationNoteOk

func (o *WateringPlan) GetCancellationNoteOk() (*string, bool)

GetCancellationNoteOk returns a tuple with the CancellationNote field value and a boolean to check if the value has been set.

func (*WateringPlan) GetCreatedAt

func (o *WateringPlan) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*WateringPlan) GetCreatedAtOk

func (o *WateringPlan) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*WateringPlan) GetDate

func (o *WateringPlan) GetDate() string

GetDate returns the Date field value

func (*WateringPlan) GetDateOk

func (o *WateringPlan) GetDateOk() (*string, bool)

GetDateOk returns a tuple with the Date field value and a boolean to check if the value has been set.

func (*WateringPlan) GetDescription

func (o *WateringPlan) GetDescription() string

GetDescription returns the Description field value

func (*WateringPlan) GetDescriptionOk

func (o *WateringPlan) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*WateringPlan) GetDistance

func (o *WateringPlan) GetDistance() float32

GetDistance returns the Distance field value

func (*WateringPlan) GetDistanceOk

func (o *WateringPlan) GetDistanceOk() (*float32, bool)

GetDistanceOk returns a tuple with the Distance field value and a boolean to check if the value has been set.

func (*WateringPlan) GetDuration

func (o *WateringPlan) GetDuration() float32

GetDuration returns the Duration field value

func (*WateringPlan) GetDurationOk

func (o *WateringPlan) GetDurationOk() (*float32, bool)

GetDurationOk returns a tuple with the Duration field value and a boolean to check if the value has been set.

func (*WateringPlan) GetEvaluation

func (o *WateringPlan) GetEvaluation() []EvaluationValue

GetEvaluation returns the Evaluation field value

func (*WateringPlan) GetEvaluationOk

func (o *WateringPlan) GetEvaluationOk() ([]EvaluationValue, bool)

GetEvaluationOk returns a tuple with the Evaluation field value and a boolean to check if the value has been set.

func (*WateringPlan) GetGpxUrl

func (o *WateringPlan) GetGpxUrl() string

GetGpxUrl returns the GpxUrl field value

func (*WateringPlan) GetGpxUrlOk

func (o *WateringPlan) GetGpxUrlOk() (*string, bool)

GetGpxUrlOk returns a tuple with the GpxUrl field value and a boolean to check if the value has been set.

func (*WateringPlan) GetId

func (o *WateringPlan) GetId() int32

GetId returns the Id field value

func (*WateringPlan) GetIdOk

func (o *WateringPlan) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*WateringPlan) GetProvider

func (o *WateringPlan) GetProvider() string

GetProvider returns the Provider field value

func (*WateringPlan) GetProviderOk

func (o *WateringPlan) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*WateringPlan) GetRefillCount

func (o *WateringPlan) GetRefillCount() int32

GetRefillCount returns the RefillCount field value

func (*WateringPlan) GetRefillCountOk

func (o *WateringPlan) GetRefillCountOk() (*int32, bool)

GetRefillCountOk returns a tuple with the RefillCount field value and a boolean to check if the value has been set.

func (*WateringPlan) GetStatus

func (o *WateringPlan) GetStatus() WateringPlanStatus

GetStatus returns the Status field value

func (*WateringPlan) GetStatusOk

func (o *WateringPlan) GetStatusOk() (*WateringPlanStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*WateringPlan) GetTotalWaterRequired

func (o *WateringPlan) GetTotalWaterRequired() float32

GetTotalWaterRequired returns the TotalWaterRequired field value

func (*WateringPlan) GetTotalWaterRequiredOk

func (o *WateringPlan) GetTotalWaterRequiredOk() (*float32, bool)

GetTotalWaterRequiredOk returns a tuple with the TotalWaterRequired field value and a boolean to check if the value has been set.

func (*WateringPlan) GetTrailer

func (o *WateringPlan) GetTrailer() Vehicle

GetTrailer returns the Trailer field value if set, zero value otherwise.

func (*WateringPlan) GetTrailerOk

func (o *WateringPlan) GetTrailerOk() (*Vehicle, bool)

GetTrailerOk returns a tuple with the Trailer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlan) GetTransporter

func (o *WateringPlan) GetTransporter() Vehicle

GetTransporter returns the Transporter field value

func (*WateringPlan) GetTransporterOk

func (o *WateringPlan) GetTransporterOk() (*Vehicle, bool)

GetTransporterOk returns a tuple with the Transporter field value and a boolean to check if the value has been set.

func (*WateringPlan) GetTreeclusters

func (o *WateringPlan) GetTreeclusters() []TreeClusterInList

GetTreeclusters returns the Treeclusters field value

func (*WateringPlan) GetTreeclustersOk

func (o *WateringPlan) GetTreeclustersOk() ([]TreeClusterInList, bool)

GetTreeclustersOk returns a tuple with the Treeclusters field value and a boolean to check if the value has been set.

func (*WateringPlan) GetUpdatedAt

func (o *WateringPlan) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*WateringPlan) GetUpdatedAtOk

func (o *WateringPlan) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*WateringPlan) GetUserIds

func (o *WateringPlan) GetUserIds() []string

GetUserIds returns the UserIds field value

func (*WateringPlan) GetUserIdsOk

func (o *WateringPlan) GetUserIdsOk() ([]string, bool)

GetUserIdsOk returns a tuple with the UserIds field value and a boolean to check if the value has been set.

func (*WateringPlan) HasAdditionalInformation

func (o *WateringPlan) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*WateringPlan) HasTrailer

func (o *WateringPlan) HasTrailer() bool

HasTrailer returns a boolean if a field has been set.

func (WateringPlan) MarshalJSON

func (o WateringPlan) MarshalJSON() ([]byte, error)

func (*WateringPlan) SetAdditionalInformation

func (o *WateringPlan) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*WateringPlan) SetCancellationNote

func (o *WateringPlan) SetCancellationNote(v string)

SetCancellationNote sets field value

func (*WateringPlan) SetCreatedAt

func (o *WateringPlan) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*WateringPlan) SetDate

func (o *WateringPlan) SetDate(v string)

SetDate sets field value

func (*WateringPlan) SetDescription

func (o *WateringPlan) SetDescription(v string)

SetDescription sets field value

func (*WateringPlan) SetDistance

func (o *WateringPlan) SetDistance(v float32)

SetDistance sets field value

func (*WateringPlan) SetDuration

func (o *WateringPlan) SetDuration(v float32)

SetDuration sets field value

func (*WateringPlan) SetEvaluation

func (o *WateringPlan) SetEvaluation(v []EvaluationValue)

SetEvaluation sets field value

func (*WateringPlan) SetGpxUrl

func (o *WateringPlan) SetGpxUrl(v string)

SetGpxUrl sets field value

func (*WateringPlan) SetId

func (o *WateringPlan) SetId(v int32)

SetId sets field value

func (*WateringPlan) SetProvider

func (o *WateringPlan) SetProvider(v string)

SetProvider sets field value

func (*WateringPlan) SetRefillCount

func (o *WateringPlan) SetRefillCount(v int32)

SetRefillCount sets field value

func (*WateringPlan) SetStatus

func (o *WateringPlan) SetStatus(v WateringPlanStatus)

SetStatus sets field value

func (*WateringPlan) SetTotalWaterRequired

func (o *WateringPlan) SetTotalWaterRequired(v float32)

SetTotalWaterRequired sets field value

func (*WateringPlan) SetTrailer

func (o *WateringPlan) SetTrailer(v Vehicle)

SetTrailer gets a reference to the given Vehicle and assigns it to the Trailer field.

func (*WateringPlan) SetTransporter

func (o *WateringPlan) SetTransporter(v Vehicle)

SetTransporter sets field value

func (*WateringPlan) SetTreeclusters

func (o *WateringPlan) SetTreeclusters(v []TreeClusterInList)

SetTreeclusters sets field value

func (*WateringPlan) SetUpdatedAt

func (o *WateringPlan) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*WateringPlan) SetUserIds

func (o *WateringPlan) SetUserIds(v []string)

SetUserIds sets field value

func (WateringPlan) ToMap

func (o WateringPlan) ToMap() (map[string]interface{}, error)

func (*WateringPlan) UnmarshalJSON

func (o *WateringPlan) UnmarshalJSON(data []byte) (err error)

type WateringPlanAPIService

type WateringPlanAPIService service

WateringPlanAPIService WateringPlanAPI service

func (*WateringPlanAPIService) CreateWateringPlan

CreateWateringPlan Create watering plan

Create watering plan

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateWateringPlanRequest

func (*WateringPlanAPIService) CreateWateringPlanExecute

Execute executes the request

@return WateringPlan

func (*WateringPlanAPIService) DeleteWateringPlan

DeleteWateringPlan Delete watering plan

Delete watering plan

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Watering Plan ID
@return ApiDeleteWateringPlanRequest

func (*WateringPlanAPIService) DeleteWateringPlanExecute

func (a *WateringPlanAPIService) DeleteWateringPlanExecute(r ApiDeleteWateringPlanRequest) (*http.Response, error)

Execute executes the request

func (*WateringPlanAPIService) GetAllWateringPlans

GetAllWateringPlans Get all watering plans

Get all watering plans

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllWateringPlansRequest

func (*WateringPlanAPIService) GetAllWateringPlansExecute

Execute executes the request

@return WateringPlanList

func (*WateringPlanAPIService) GetWateringPlanById

GetWateringPlanById Get watering plan by ID

Get watering plan by ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Watering Plan ID
@return ApiGetWateringPlanByIdRequest

func (*WateringPlanAPIService) GetWateringPlanByIdExecute

Execute executes the request

@return WateringPlan

func (*WateringPlanAPIService) UpdateWateringPlan

UpdateWateringPlan Update watering plan

Update watering plan

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Watering Plan ID
@return ApiUpdateWateringPlanRequest

func (*WateringPlanAPIService) UpdateWateringPlanExecute

Execute executes the request

@return WateringPlan

func (*WateringPlanAPIService) V1WateringPlanRouteGpxGpxNameGet

func (a *WateringPlanAPIService) V1WateringPlanRouteGpxGpxNameGet(ctx context.Context, gpxName string) ApiV1WateringPlanRouteGpxGpxNameGetRequest

V1WateringPlanRouteGpxGpxNameGet Generate route

Generate route

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gpxName gpx file name
@return ApiV1WateringPlanRouteGpxGpxNameGetRequest

func (*WateringPlanAPIService) V1WateringPlanRouteGpxGpxNameGetExecute

func (a *WateringPlanAPIService) V1WateringPlanRouteGpxGpxNameGetExecute(r ApiV1WateringPlanRouteGpxGpxNameGetRequest) (*os.File, *http.Response, error)

Execute executes the request

@return *os.File

func (*WateringPlanAPIService) V1WateringPlanRoutePreviewPost

func (a *WateringPlanAPIService) V1WateringPlanRoutePreviewPost(ctx context.Context) ApiV1WateringPlanRoutePreviewPostRequest

V1WateringPlanRoutePreviewPost Generate preview route

Generate preview route

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiV1WateringPlanRoutePreviewPostRequest

func (*WateringPlanAPIService) V1WateringPlanRoutePreviewPostExecute

func (a *WateringPlanAPIService) V1WateringPlanRoutePreviewPostExecute(r ApiV1WateringPlanRoutePreviewPostRequest) (*GeoJson, *http.Response, error)

Execute executes the request

@return GeoJson

type WateringPlanCreate

type WateringPlanCreate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	Date                  string                 `json:"date"`
	Description           string                 `json:"description"`
	Provider              *string                `json:"provider,omitempty"`
	TrailerId             *int32                 `json:"trailer_id,omitempty"`
	TransporterId         int32                  `json:"transporter_id"`
	TreeClusterIds        []int32                `json:"tree_cluster_ids"`
	UserIds               []string               `json:"user_ids"`
}

WateringPlanCreate struct for WateringPlanCreate

func NewWateringPlanCreate

func NewWateringPlanCreate(date string, description string, transporterId int32, treeClusterIds []int32, userIds []string) *WateringPlanCreate

NewWateringPlanCreate instantiates a new WateringPlanCreate object This constructor will assign default values to properties that have it defined, 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 NewWateringPlanCreateWithDefaults

func NewWateringPlanCreateWithDefaults() *WateringPlanCreate

NewWateringPlanCreateWithDefaults instantiates a new WateringPlanCreate object This 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 (*WateringPlanCreate) GetAdditionalInformation

func (o *WateringPlanCreate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*WateringPlanCreate) GetAdditionalInformationOk

func (o *WateringPlanCreate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetDate

func (o *WateringPlanCreate) GetDate() string

GetDate returns the Date field value

func (*WateringPlanCreate) GetDateOk

func (o *WateringPlanCreate) GetDateOk() (*string, bool)

GetDateOk returns a tuple with the Date field value and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetDescription

func (o *WateringPlanCreate) GetDescription() string

GetDescription returns the Description field value

func (*WateringPlanCreate) GetDescriptionOk

func (o *WateringPlanCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetProvider

func (o *WateringPlanCreate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*WateringPlanCreate) GetProviderOk

func (o *WateringPlanCreate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetTrailerId

func (o *WateringPlanCreate) GetTrailerId() int32

GetTrailerId returns the TrailerId field value if set, zero value otherwise.

func (*WateringPlanCreate) GetTrailerIdOk

func (o *WateringPlanCreate) GetTrailerIdOk() (*int32, bool)

GetTrailerIdOk returns a tuple with the TrailerId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetTransporterId

func (o *WateringPlanCreate) GetTransporterId() int32

GetTransporterId returns the TransporterId field value

func (*WateringPlanCreate) GetTransporterIdOk

func (o *WateringPlanCreate) GetTransporterIdOk() (*int32, bool)

GetTransporterIdOk returns a tuple with the TransporterId field value and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetTreeClusterIds

func (o *WateringPlanCreate) GetTreeClusterIds() []int32

GetTreeClusterIds returns the TreeClusterIds field value

func (*WateringPlanCreate) GetTreeClusterIdsOk

func (o *WateringPlanCreate) GetTreeClusterIdsOk() ([]int32, bool)

GetTreeClusterIdsOk returns a tuple with the TreeClusterIds field value and a boolean to check if the value has been set.

func (*WateringPlanCreate) GetUserIds

func (o *WateringPlanCreate) GetUserIds() []string

GetUserIds returns the UserIds field value

func (*WateringPlanCreate) GetUserIdsOk

func (o *WateringPlanCreate) GetUserIdsOk() ([]string, bool)

GetUserIdsOk returns a tuple with the UserIds field value and a boolean to check if the value has been set.

func (*WateringPlanCreate) HasAdditionalInformation

func (o *WateringPlanCreate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*WateringPlanCreate) HasProvider

func (o *WateringPlanCreate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*WateringPlanCreate) HasTrailerId

func (o *WateringPlanCreate) HasTrailerId() bool

HasTrailerId returns a boolean if a field has been set.

func (WateringPlanCreate) MarshalJSON

func (o WateringPlanCreate) MarshalJSON() ([]byte, error)

func (*WateringPlanCreate) SetAdditionalInformation

func (o *WateringPlanCreate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*WateringPlanCreate) SetDate

func (o *WateringPlanCreate) SetDate(v string)

SetDate sets field value

func (*WateringPlanCreate) SetDescription

func (o *WateringPlanCreate) SetDescription(v string)

SetDescription sets field value

func (*WateringPlanCreate) SetProvider

func (o *WateringPlanCreate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*WateringPlanCreate) SetTrailerId

func (o *WateringPlanCreate) SetTrailerId(v int32)

SetTrailerId gets a reference to the given int32 and assigns it to the TrailerId field.

func (*WateringPlanCreate) SetTransporterId

func (o *WateringPlanCreate) SetTransporterId(v int32)

SetTransporterId sets field value

func (*WateringPlanCreate) SetTreeClusterIds

func (o *WateringPlanCreate) SetTreeClusterIds(v []int32)

SetTreeClusterIds sets field value

func (*WateringPlanCreate) SetUserIds

func (o *WateringPlanCreate) SetUserIds(v []string)

SetUserIds sets field value

func (WateringPlanCreate) ToMap

func (o WateringPlanCreate) ToMap() (map[string]interface{}, error)

func (*WateringPlanCreate) UnmarshalJSON

func (o *WateringPlanCreate) UnmarshalJSON(data []byte) (err error)

type WateringPlanInList

type WateringPlanInList struct {
	CancellationNote   string              `json:"cancellation_note"`
	CreatedAt          string              `json:"created_at"`
	Date               string              `json:"date"`
	Description        string              `json:"description"`
	Distance           float32             `json:"distance"`
	Id                 int32               `json:"id"`
	Status             WateringPlanStatus  `json:"status"`
	TotalWaterRequired float32             `json:"total_water_required"`
	Trailer            *Vehicle            `json:"trailer,omitempty"`
	Transporter        Vehicle             `json:"transporter"`
	Treeclusters       []TreeClusterInList `json:"treeclusters"`
	UpdatedAt          string              `json:"updated_at"`
	UserIds            []string            `json:"user_ids"`
}

WateringPlanInList struct for WateringPlanInList

func NewWateringPlanInList

func NewWateringPlanInList(cancellationNote string, createdAt string, date string, description string, distance float32, id int32, status WateringPlanStatus, totalWaterRequired float32, transporter Vehicle, treeclusters []TreeClusterInList, updatedAt string, userIds []string) *WateringPlanInList

NewWateringPlanInList instantiates a new WateringPlanInList object This constructor will assign default values to properties that have it defined, 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 NewWateringPlanInListWithDefaults

func NewWateringPlanInListWithDefaults() *WateringPlanInList

NewWateringPlanInListWithDefaults instantiates a new WateringPlanInList object This 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 (*WateringPlanInList) GetCancellationNote

func (o *WateringPlanInList) GetCancellationNote() string

GetCancellationNote returns the CancellationNote field value

func (*WateringPlanInList) GetCancellationNoteOk

func (o *WateringPlanInList) GetCancellationNoteOk() (*string, bool)

GetCancellationNoteOk returns a tuple with the CancellationNote field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetCreatedAt

func (o *WateringPlanInList) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value

func (*WateringPlanInList) GetCreatedAtOk

func (o *WateringPlanInList) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetDate

func (o *WateringPlanInList) GetDate() string

GetDate returns the Date field value

func (*WateringPlanInList) GetDateOk

func (o *WateringPlanInList) GetDateOk() (*string, bool)

GetDateOk returns a tuple with the Date field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetDescription

func (o *WateringPlanInList) GetDescription() string

GetDescription returns the Description field value

func (*WateringPlanInList) GetDescriptionOk

func (o *WateringPlanInList) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetDistance

func (o *WateringPlanInList) GetDistance() float32

GetDistance returns the Distance field value

func (*WateringPlanInList) GetDistanceOk

func (o *WateringPlanInList) GetDistanceOk() (*float32, bool)

GetDistanceOk returns a tuple with the Distance field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetId

func (o *WateringPlanInList) GetId() int32

GetId returns the Id field value

func (*WateringPlanInList) GetIdOk

func (o *WateringPlanInList) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetStatus

func (o *WateringPlanInList) GetStatus() WateringPlanStatus

GetStatus returns the Status field value

func (*WateringPlanInList) GetStatusOk

func (o *WateringPlanInList) GetStatusOk() (*WateringPlanStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetTotalWaterRequired

func (o *WateringPlanInList) GetTotalWaterRequired() float32

GetTotalWaterRequired returns the TotalWaterRequired field value

func (*WateringPlanInList) GetTotalWaterRequiredOk

func (o *WateringPlanInList) GetTotalWaterRequiredOk() (*float32, bool)

GetTotalWaterRequiredOk returns a tuple with the TotalWaterRequired field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetTrailer

func (o *WateringPlanInList) GetTrailer() Vehicle

GetTrailer returns the Trailer field value if set, zero value otherwise.

func (*WateringPlanInList) GetTrailerOk

func (o *WateringPlanInList) GetTrailerOk() (*Vehicle, bool)

GetTrailerOk returns a tuple with the Trailer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanInList) GetTransporter

func (o *WateringPlanInList) GetTransporter() Vehicle

GetTransporter returns the Transporter field value

func (*WateringPlanInList) GetTransporterOk

func (o *WateringPlanInList) GetTransporterOk() (*Vehicle, bool)

GetTransporterOk returns a tuple with the Transporter field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetTreeclusters

func (o *WateringPlanInList) GetTreeclusters() []TreeClusterInList

GetTreeclusters returns the Treeclusters field value

func (*WateringPlanInList) GetTreeclustersOk

func (o *WateringPlanInList) GetTreeclustersOk() ([]TreeClusterInList, bool)

GetTreeclustersOk returns a tuple with the Treeclusters field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetUpdatedAt

func (o *WateringPlanInList) GetUpdatedAt() string

GetUpdatedAt returns the UpdatedAt field value

func (*WateringPlanInList) GetUpdatedAtOk

func (o *WateringPlanInList) GetUpdatedAtOk() (*string, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*WateringPlanInList) GetUserIds

func (o *WateringPlanInList) GetUserIds() []string

GetUserIds returns the UserIds field value

func (*WateringPlanInList) GetUserIdsOk

func (o *WateringPlanInList) GetUserIdsOk() ([]string, bool)

GetUserIdsOk returns a tuple with the UserIds field value and a boolean to check if the value has been set.

func (*WateringPlanInList) HasTrailer

func (o *WateringPlanInList) HasTrailer() bool

HasTrailer returns a boolean if a field has been set.

func (WateringPlanInList) MarshalJSON

func (o WateringPlanInList) MarshalJSON() ([]byte, error)

func (*WateringPlanInList) SetCancellationNote

func (o *WateringPlanInList) SetCancellationNote(v string)

SetCancellationNote sets field value

func (*WateringPlanInList) SetCreatedAt

func (o *WateringPlanInList) SetCreatedAt(v string)

SetCreatedAt sets field value

func (*WateringPlanInList) SetDate

func (o *WateringPlanInList) SetDate(v string)

SetDate sets field value

func (*WateringPlanInList) SetDescription

func (o *WateringPlanInList) SetDescription(v string)

SetDescription sets field value

func (*WateringPlanInList) SetDistance

func (o *WateringPlanInList) SetDistance(v float32)

SetDistance sets field value

func (*WateringPlanInList) SetId

func (o *WateringPlanInList) SetId(v int32)

SetId sets field value

func (*WateringPlanInList) SetStatus

func (o *WateringPlanInList) SetStatus(v WateringPlanStatus)

SetStatus sets field value

func (*WateringPlanInList) SetTotalWaterRequired

func (o *WateringPlanInList) SetTotalWaterRequired(v float32)

SetTotalWaterRequired sets field value

func (*WateringPlanInList) SetTrailer

func (o *WateringPlanInList) SetTrailer(v Vehicle)

SetTrailer gets a reference to the given Vehicle and assigns it to the Trailer field.

func (*WateringPlanInList) SetTransporter

func (o *WateringPlanInList) SetTransporter(v Vehicle)

SetTransporter sets field value

func (*WateringPlanInList) SetTreeclusters

func (o *WateringPlanInList) SetTreeclusters(v []TreeClusterInList)

SetTreeclusters sets field value

func (*WateringPlanInList) SetUpdatedAt

func (o *WateringPlanInList) SetUpdatedAt(v string)

SetUpdatedAt sets field value

func (*WateringPlanInList) SetUserIds

func (o *WateringPlanInList) SetUserIds(v []string)

SetUserIds sets field value

func (WateringPlanInList) ToMap

func (o WateringPlanInList) ToMap() (map[string]interface{}, error)

func (*WateringPlanInList) UnmarshalJSON

func (o *WateringPlanInList) UnmarshalJSON(data []byte) (err error)

type WateringPlanList

type WateringPlanList struct {
	Data       []WateringPlanInList `json:"data"`
	Pagination *Pagination          `json:"pagination,omitempty"`
}

WateringPlanList struct for WateringPlanList

func NewWateringPlanList

func NewWateringPlanList(data []WateringPlanInList) *WateringPlanList

NewWateringPlanList instantiates a new WateringPlanList object This constructor will assign default values to properties that have it defined, 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 NewWateringPlanListWithDefaults

func NewWateringPlanListWithDefaults() *WateringPlanList

NewWateringPlanListWithDefaults instantiates a new WateringPlanList object This 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 (*WateringPlanList) GetData

func (o *WateringPlanList) GetData() []WateringPlanInList

GetData returns the Data field value

func (*WateringPlanList) GetDataOk

func (o *WateringPlanList) GetDataOk() ([]WateringPlanInList, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*WateringPlanList) GetPagination

func (o *WateringPlanList) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*WateringPlanList) GetPaginationOk

func (o *WateringPlanList) GetPaginationOk() (*Pagination, bool)

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 (*WateringPlanList) HasPagination

func (o *WateringPlanList) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (WateringPlanList) MarshalJSON

func (o WateringPlanList) MarshalJSON() ([]byte, error)

func (*WateringPlanList) SetData

func (o *WateringPlanList) SetData(v []WateringPlanInList)

SetData sets field value

func (*WateringPlanList) SetPagination

func (o *WateringPlanList) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (WateringPlanList) ToMap

func (o WateringPlanList) ToMap() (map[string]interface{}, error)

func (*WateringPlanList) UnmarshalJSON

func (o *WateringPlanList) UnmarshalJSON(data []byte) (err error)

type WateringPlanStatus

type WateringPlanStatus string

WateringPlanStatus the model 'WateringPlanStatus'

const (
	WateringPlanStatusPlanned     WateringPlanStatus = "planned"
	WateringPlanStatusActive      WateringPlanStatus = "active"
	WateringPlanStatusCanceled    WateringPlanStatus = "canceled"
	WateringPlanStatusFinished    WateringPlanStatus = "finished"
	WateringPlanStatusNotCompeted WateringPlanStatus = "not competed"
	WateringPlanStatusUnknown     WateringPlanStatus = "unknown"
)

List of WateringPlanStatus

func NewWateringPlanStatusFromValue

func NewWateringPlanStatusFromValue(v string) (*WateringPlanStatus, error)

NewWateringPlanStatusFromValue returns a pointer to a valid WateringPlanStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (WateringPlanStatus) IsValid

func (v WateringPlanStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (WateringPlanStatus) Ptr

Ptr returns reference to WateringPlanStatus value

func (*WateringPlanStatus) UnmarshalJSON

func (v *WateringPlanStatus) UnmarshalJSON(src []byte) error

type WateringPlanUpdate

type WateringPlanUpdate struct {
	AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
	CancellationNote      string                 `json:"cancellation_note"`
	Date                  string                 `json:"date"`
	Description           string                 `json:"description"`
	Evaluation            []EvaluationValue      `json:"evaluation,omitempty"`
	Provider              *string                `json:"provider,omitempty"`
	Status                WateringPlanStatus     `json:"status"`
	TrailerId             *int32                 `json:"trailer_id,omitempty"`
	TransporterId         int32                  `json:"transporter_id"`
	TreeClusterIds        []int32                `json:"tree_cluster_ids"`
	UserIds               []string               `json:"user_ids"`
}

WateringPlanUpdate struct for WateringPlanUpdate

func NewWateringPlanUpdate

func NewWateringPlanUpdate(cancellationNote string, date string, description string, status WateringPlanStatus, transporterId int32, treeClusterIds []int32, userIds []string) *WateringPlanUpdate

NewWateringPlanUpdate instantiates a new WateringPlanUpdate object This constructor will assign default values to properties that have it defined, 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 NewWateringPlanUpdateWithDefaults

func NewWateringPlanUpdateWithDefaults() *WateringPlanUpdate

NewWateringPlanUpdateWithDefaults instantiates a new WateringPlanUpdate object This 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 (*WateringPlanUpdate) GetAdditionalInformation

func (o *WateringPlanUpdate) GetAdditionalInformation() map[string]interface{}

GetAdditionalInformation returns the AdditionalInformation field value if set, zero value otherwise.

func (*WateringPlanUpdate) GetAdditionalInformationOk

func (o *WateringPlanUpdate) GetAdditionalInformationOk() (map[string]interface{}, bool)

GetAdditionalInformationOk returns a tuple with the AdditionalInformation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetCancellationNote

func (o *WateringPlanUpdate) GetCancellationNote() string

GetCancellationNote returns the CancellationNote field value

func (*WateringPlanUpdate) GetCancellationNoteOk

func (o *WateringPlanUpdate) GetCancellationNoteOk() (*string, bool)

GetCancellationNoteOk returns a tuple with the CancellationNote field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetDate

func (o *WateringPlanUpdate) GetDate() string

GetDate returns the Date field value

func (*WateringPlanUpdate) GetDateOk

func (o *WateringPlanUpdate) GetDateOk() (*string, bool)

GetDateOk returns a tuple with the Date field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetDescription

func (o *WateringPlanUpdate) GetDescription() string

GetDescription returns the Description field value

func (*WateringPlanUpdate) GetDescriptionOk

func (o *WateringPlanUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetEvaluation

func (o *WateringPlanUpdate) GetEvaluation() []EvaluationValue

GetEvaluation returns the Evaluation field value if set, zero value otherwise.

func (*WateringPlanUpdate) GetEvaluationOk

func (o *WateringPlanUpdate) GetEvaluationOk() ([]EvaluationValue, bool)

GetEvaluationOk returns a tuple with the Evaluation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetProvider

func (o *WateringPlanUpdate) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*WateringPlanUpdate) GetProviderOk

func (o *WateringPlanUpdate) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetStatus

func (o *WateringPlanUpdate) GetStatus() WateringPlanStatus

GetStatus returns the Status field value

func (*WateringPlanUpdate) GetStatusOk

func (o *WateringPlanUpdate) GetStatusOk() (*WateringPlanStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetTrailerId

func (o *WateringPlanUpdate) GetTrailerId() int32

GetTrailerId returns the TrailerId field value if set, zero value otherwise.

func (*WateringPlanUpdate) GetTrailerIdOk

func (o *WateringPlanUpdate) GetTrailerIdOk() (*int32, bool)

GetTrailerIdOk returns a tuple with the TrailerId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetTransporterId

func (o *WateringPlanUpdate) GetTransporterId() int32

GetTransporterId returns the TransporterId field value

func (*WateringPlanUpdate) GetTransporterIdOk

func (o *WateringPlanUpdate) GetTransporterIdOk() (*int32, bool)

GetTransporterIdOk returns a tuple with the TransporterId field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetTreeClusterIds

func (o *WateringPlanUpdate) GetTreeClusterIds() []int32

GetTreeClusterIds returns the TreeClusterIds field value

func (*WateringPlanUpdate) GetTreeClusterIdsOk

func (o *WateringPlanUpdate) GetTreeClusterIdsOk() ([]int32, bool)

GetTreeClusterIdsOk returns a tuple with the TreeClusterIds field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) GetUserIds

func (o *WateringPlanUpdate) GetUserIds() []string

GetUserIds returns the UserIds field value

func (*WateringPlanUpdate) GetUserIdsOk

func (o *WateringPlanUpdate) GetUserIdsOk() ([]string, bool)

GetUserIdsOk returns a tuple with the UserIds field value and a boolean to check if the value has been set.

func (*WateringPlanUpdate) HasAdditionalInformation

func (o *WateringPlanUpdate) HasAdditionalInformation() bool

HasAdditionalInformation returns a boolean if a field has been set.

func (*WateringPlanUpdate) HasEvaluation

func (o *WateringPlanUpdate) HasEvaluation() bool

HasEvaluation returns a boolean if a field has been set.

func (*WateringPlanUpdate) HasProvider

func (o *WateringPlanUpdate) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*WateringPlanUpdate) HasTrailerId

func (o *WateringPlanUpdate) HasTrailerId() bool

HasTrailerId returns a boolean if a field has been set.

func (WateringPlanUpdate) MarshalJSON

func (o WateringPlanUpdate) MarshalJSON() ([]byte, error)

func (*WateringPlanUpdate) SetAdditionalInformation

func (o *WateringPlanUpdate) SetAdditionalInformation(v map[string]interface{})

SetAdditionalInformation gets a reference to the given map[string]interface{} and assigns it to the AdditionalInformation field.

func (*WateringPlanUpdate) SetCancellationNote

func (o *WateringPlanUpdate) SetCancellationNote(v string)

SetCancellationNote sets field value

func (*WateringPlanUpdate) SetDate

func (o *WateringPlanUpdate) SetDate(v string)

SetDate sets field value

func (*WateringPlanUpdate) SetDescription

func (o *WateringPlanUpdate) SetDescription(v string)

SetDescription sets field value

func (*WateringPlanUpdate) SetEvaluation

func (o *WateringPlanUpdate) SetEvaluation(v []EvaluationValue)

SetEvaluation gets a reference to the given []EvaluationValue and assigns it to the Evaluation field.

func (*WateringPlanUpdate) SetProvider

func (o *WateringPlanUpdate) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*WateringPlanUpdate) SetStatus

func (o *WateringPlanUpdate) SetStatus(v WateringPlanStatus)

SetStatus sets field value

func (*WateringPlanUpdate) SetTrailerId

func (o *WateringPlanUpdate) SetTrailerId(v int32)

SetTrailerId gets a reference to the given int32 and assigns it to the TrailerId field.

func (*WateringPlanUpdate) SetTransporterId

func (o *WateringPlanUpdate) SetTransporterId(v int32)

SetTransporterId sets field value

func (*WateringPlanUpdate) SetTreeClusterIds

func (o *WateringPlanUpdate) SetTreeClusterIds(v []int32)

SetTreeClusterIds sets field value

func (*WateringPlanUpdate) SetUserIds

func (o *WateringPlanUpdate) SetUserIds(v []string)

SetUserIds sets field value

func (WateringPlanUpdate) ToMap

func (o WateringPlanUpdate) ToMap() (map[string]interface{}, error)

func (*WateringPlanUpdate) UnmarshalJSON

func (o *WateringPlanUpdate) UnmarshalJSON(data []byte) (err error)

type WateringStatus

type WateringStatus string

WateringStatus the model 'WateringStatus'

const (
	WateringStatusGood        WateringStatus = "good"
	WateringStatusModerate    WateringStatus = "moderate"
	WateringStatusBad         WateringStatus = "bad"
	WateringStatusJustWatered WateringStatus = "just watered"
	WateringStatusUnknown     WateringStatus = "unknown"
)

List of WateringStatus

func NewWateringStatusFromValue

func NewWateringStatusFromValue(v string) (*WateringStatus, error)

NewWateringStatusFromValue returns a pointer to a valid WateringStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (WateringStatus) IsValid

func (v WateringStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (WateringStatus) Ptr

func (v WateringStatus) Ptr() *WateringStatus

Ptr returns reference to WateringStatus value

func (*WateringStatus) UnmarshalJSON

func (v *WateringStatus) UnmarshalJSON(src []byte) error

type WatermarkResponse

type WatermarkResponse struct {
	Centibar   int32 `json:"centibar"`
	Depth      int32 `json:"depth"`
	Resistance int32 `json:"resistance"`
}

WatermarkResponse struct for WatermarkResponse

func NewWatermarkResponse

func NewWatermarkResponse(centibar int32, depth int32, resistance int32) *WatermarkResponse

NewWatermarkResponse instantiates a new WatermarkResponse object This constructor will assign default values to properties that have it defined, 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 NewWatermarkResponseWithDefaults

func NewWatermarkResponseWithDefaults() *WatermarkResponse

NewWatermarkResponseWithDefaults instantiates a new WatermarkResponse object This 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 (*WatermarkResponse) GetCentibar

func (o *WatermarkResponse) GetCentibar() int32

GetCentibar returns the Centibar field value

func (*WatermarkResponse) GetCentibarOk

func (o *WatermarkResponse) GetCentibarOk() (*int32, bool)

GetCentibarOk returns a tuple with the Centibar field value and a boolean to check if the value has been set.

func (*WatermarkResponse) GetDepth

func (o *WatermarkResponse) GetDepth() int32

GetDepth returns the Depth field value

func (*WatermarkResponse) GetDepthOk

func (o *WatermarkResponse) GetDepthOk() (*int32, bool)

GetDepthOk returns a tuple with the Depth field value and a boolean to check if the value has been set.

func (*WatermarkResponse) GetResistance

func (o *WatermarkResponse) GetResistance() int32

GetResistance returns the Resistance field value

func (*WatermarkResponse) GetResistanceOk

func (o *WatermarkResponse) GetResistanceOk() (*int32, bool)

GetResistanceOk returns a tuple with the Resistance field value and a boolean to check if the value has been set.

func (WatermarkResponse) MarshalJSON

func (o WatermarkResponse) MarshalJSON() ([]byte, error)

func (*WatermarkResponse) SetCentibar

func (o *WatermarkResponse) SetCentibar(v int32)

SetCentibar sets field value

func (*WatermarkResponse) SetDepth

func (o *WatermarkResponse) SetDepth(v int32)

SetDepth sets field value

func (*WatermarkResponse) SetResistance

func (o *WatermarkResponse) SetResistance(v int32)

SetResistance sets field value

func (WatermarkResponse) ToMap

func (o WatermarkResponse) ToMap() (map[string]interface{}, error)

func (*WatermarkResponse) UnmarshalJSON

func (o *WatermarkResponse) UnmarshalJSON(data []byte) (err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL