BootNotificationResponse

package
v0.0.0-...-07563a9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootNotificationResponseJson

type BootNotificationResponseJson struct {
	// This contains the CSMS’s current time.
	//
	CurrentTime string `json:"currentTime" yaml:"currentTime"`

	// CustomData corresponds to the JSON schema field "customData".
	CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"`

	// When <<cmn_registrationstatusenumtype,Status>> is Accepted, this
	// contains the heartbeat interval in seconds. If the CSMS returns something other
	// than Accepted, the value of the interval field indicates the minimum wait time
	// before sending a next BootNotification request.
	//
	Interval int `json:"interval" yaml:"interval"`

	// Status corresponds to the JSON schema field "status".
	Status RegistrationStatusEnumType_1 `json:"status" yaml:"status"`

	// StatusInfo corresponds to the JSON schema field "statusInfo".
	StatusInfo *StatusInfoType `json:"statusInfo,omitempty" yaml:"statusInfo,omitempty"`
}

func (*BootNotificationResponseJson) UnmarshalJSON

func (j *BootNotificationResponseJson) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type CustomDataType

type CustomDataType struct {
	// VendorId corresponds to the JSON schema field "vendorId".
	VendorId string `json:"vendorId" yaml:"vendorId"`
}

This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.

func (*CustomDataType) UnmarshalJSON

func (j *CustomDataType) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type RegistrationStatusEnumType

type RegistrationStatusEnumType string
const RegistrationStatusEnumTypeAccepted RegistrationStatusEnumType = "Accepted"
const RegistrationStatusEnumTypePending RegistrationStatusEnumType = "Pending"
const RegistrationStatusEnumTypeRejected RegistrationStatusEnumType = "Rejected"

func (*RegistrationStatusEnumType) UnmarshalJSON

func (j *RegistrationStatusEnumType) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type RegistrationStatusEnumType_1

type RegistrationStatusEnumType_1 string
const RegistrationStatusEnumType_1_Accepted RegistrationStatusEnumType_1 = "Accepted"
const RegistrationStatusEnumType_1_Pending RegistrationStatusEnumType_1 = "Pending"
const RegistrationStatusEnumType_1_Rejected RegistrationStatusEnumType_1 = "Rejected"

func (*RegistrationStatusEnumType_1) UnmarshalJSON

func (j *RegistrationStatusEnumType_1) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

type StatusInfoType

type StatusInfoType struct {
	// Additional text to provide detailed information.
	//
	AdditionalInfo *string `json:"additionalInfo,omitempty" yaml:"additionalInfo,omitempty"`

	// CustomData corresponds to the JSON schema field "customData".
	CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"`

	// A predefined code for the reason why the status is returned in this response.
	// The string is case-insensitive.
	//
	ReasonCode string `json:"reasonCode" yaml:"reasonCode"`
}

Element providing more information about the status.

func (*StatusInfoType) UnmarshalJSON

func (j *StatusInfoType) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL