Documentation
¶
Overview ¶
Package fcm provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- type AndroidCheckinRequestWire
- type AndroidCheckinResponseWire
- type CheckInFCMClientParams
- type CheckInFCMClientParamsContentType
- type CreateFCMInstallationJSONRequestBody
- type CreateFCMInstallationParams
- type CreateFCMInstallationParamsAccept
- type CreateFCMInstallationParamsContentType
- type CreateFCMInstallationParamsXGoogApiKey
- type FCMRegistrationRequest
- type FCMRegistrationResponse
- type FCMWebRegistration
- type GoogleAPIKey
- type InstallationAuthToken
- type InstallationRequest
- type InstallationRequestAppId
- type InstallationRequestAuthVersion
- type InstallationRequestSdkVersion
- type InstallationResponse
- type JSONAccept
- type JSONContentType
- type LegacyRegistrationRequest
- type LegacyRegistrationRequestApp
- type LegacyRegistrationRequestSender
- type LegacyRegistrationRequestXSubtype
- type LegacyRegistrationResponse
- type ProtobufContentType
- type RegisterFCMClientFormdataRequestBody
- type RegisterFCMClientParams
- type RegisterFCMClientParamsContentType
- type RegisterFCMInstallationJSONRequestBody
- type RegisterFCMInstallationParams
- type RegisterFCMInstallationParamsContentType
- type RegisterFCMInstallationParamsXGoogApiKey
- type RingPushNotificationConfig
- func (a RingPushNotificationConfig) Get(fieldName string) (value interface{}, found bool)
- func (a RingPushNotificationConfig) MarshalJSON() ([]byte, error)
- func (a *RingPushNotificationConfig) Set(fieldName string, value interface{})
- func (a *RingPushNotificationConfig) UnmarshalJSON(b []byte) error
- type RingPushNotificationDevice
- func (a RingPushNotificationDevice) Get(fieldName string) (value interface{}, found bool)
- func (a RingPushNotificationDevice) MarshalJSON() ([]byte, error)
- func (a *RingPushNotificationDevice) Set(fieldName string, value interface{})
- func (a *RingPushNotificationDevice) UnmarshalJSON(b []byte) error
- type RingPushNotificationEnvelope
- func (a RingPushNotificationEnvelope) Get(fieldName string) (value interface{}, found bool)
- func (a RingPushNotificationEnvelope) MarshalJSON() ([]byte, error)
- func (a *RingPushNotificationEnvelope) Set(fieldName string, value interface{})
- func (a *RingPushNotificationEnvelope) UnmarshalJSON(b []byte) error
- type RingPushNotificationEnvelopeAndroidConfig0
- type RingPushNotificationEnvelopeData0
- type RingPushNotificationEnvelope_AndroidConfig
- func (t RingPushNotificationEnvelope_AndroidConfig) AsRingPushNotificationConfig() (RingPushNotificationConfig, error)
- func (t RingPushNotificationEnvelope_AndroidConfig) AsRingPushNotificationEnvelopeAndroidConfig0() (RingPushNotificationEnvelopeAndroidConfig0, error)
- func (t *RingPushNotificationEnvelope_AndroidConfig) FromRingPushNotificationConfig(v RingPushNotificationConfig) error
- func (t *RingPushNotificationEnvelope_AndroidConfig) FromRingPushNotificationEnvelopeAndroidConfig0(v RingPushNotificationEnvelopeAndroidConfig0) error
- func (t RingPushNotificationEnvelope_AndroidConfig) MarshalJSON() ([]byte, error)
- func (t *RingPushNotificationEnvelope_AndroidConfig) MergeRingPushNotificationConfig(v RingPushNotificationConfig) error
- func (t *RingPushNotificationEnvelope_AndroidConfig) MergeRingPushNotificationEnvelopeAndroidConfig0(v RingPushNotificationEnvelopeAndroidConfig0) error
- func (t *RingPushNotificationEnvelope_AndroidConfig) UnmarshalJSON(b []byte) error
- type RingPushNotificationEnvelope_Data
- func (t RingPushNotificationEnvelope_Data) AsRingPushNotificationEnvelopeData0() (RingPushNotificationEnvelopeData0, error)
- func (t RingPushNotificationEnvelope_Data) AsRingPushNotificationPayload() (RingPushNotificationPayload, error)
- func (t *RingPushNotificationEnvelope_Data) FromRingPushNotificationEnvelopeData0(v RingPushNotificationEnvelopeData0) error
- func (t *RingPushNotificationEnvelope_Data) FromRingPushNotificationPayload(v RingPushNotificationPayload) error
- func (t RingPushNotificationEnvelope_Data) MarshalJSON() ([]byte, error)
- func (t *RingPushNotificationEnvelope_Data) MergeRingPushNotificationEnvelopeData0(v RingPushNotificationEnvelopeData0) error
- func (t *RingPushNotificationEnvelope_Data) MergeRingPushNotificationPayload(v RingPushNotificationPayload) error
- func (t *RingPushNotificationEnvelope_Data) UnmarshalJSON(b []byte) error
- type RingPushNotificationGCMData
- func (a RingPushNotificationGCMData) Get(fieldName string) (value interface{}, found bool)
- func (a RingPushNotificationGCMData) MarshalJSON() ([]byte, error)
- func (a *RingPushNotificationGCMData) Set(fieldName string, value interface{})
- func (a *RingPushNotificationGCMData) UnmarshalJSON(b []byte) error
- type RingPushNotificationPayload
- func (a RingPushNotificationPayload) Get(fieldName string) (value interface{}, found bool)
- func (a RingPushNotificationPayload) MarshalJSON() ([]byte, error)
- func (a *RingPushNotificationPayload) Set(fieldName string, value interface{})
- func (a *RingPushNotificationPayload) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AndroidCheckinRequestWire ¶
type AndroidCheckinRequestWire = openapi_types.File
AndroidCheckinRequestWire Protobuf wire encoding of checkin_proto.AndroidCheckinRequest in the pinned checkin.proto files.
type AndroidCheckinResponseWire ¶
type AndroidCheckinResponseWire = openapi_types.File
AndroidCheckinResponseWire Protobuf wire encoding of checkin_proto.AndroidCheckinResponse in the pinned checkin.proto files.
type CheckInFCMClientParams ¶
type CheckInFCMClientParams struct {
ContentType CheckInFCMClientParamsContentType `json:"Content-Type"`
}
CheckInFCMClientParams defines parameters for CheckInFCMClient.
type CheckInFCMClientParamsContentType ¶
type CheckInFCMClientParamsContentType string
CheckInFCMClientParamsContentType defines parameters for CheckInFCMClient.
const (
CheckInFCMClientParamsContentTypeApplicationxProtobuf CheckInFCMClientParamsContentType = "application/x-protobuf"
)
Defines values for CheckInFCMClientParamsContentType.
func (CheckInFCMClientParamsContentType) Valid ¶
func (e CheckInFCMClientParamsContentType) Valid() bool
Valid indicates whether the value is a known member of the CheckInFCMClientParamsContentType enum.
type CreateFCMInstallationJSONRequestBody ¶
type CreateFCMInstallationJSONRequestBody = InstallationRequest
CreateFCMInstallationJSONRequestBody defines body for CreateFCMInstallation for application/json ContentType.
type CreateFCMInstallationParams ¶
type CreateFCMInstallationParams struct {
Accept CreateFCMInstallationParamsAccept `json:"Accept"`
ContentType CreateFCMInstallationParamsContentType `json:"Content-Type"`
// XGoogApiKey Public API key configured by the pinned Ring Android client.
XGoogApiKey CreateFCMInstallationParamsXGoogApiKey `json:"X-Goog-Api-Key"`
}
CreateFCMInstallationParams defines parameters for CreateFCMInstallation.
type CreateFCMInstallationParamsAccept ¶
type CreateFCMInstallationParamsAccept string
CreateFCMInstallationParamsAccept defines parameters for CreateFCMInstallation.
const (
CreateFCMInstallationParamsAcceptApplicationjson CreateFCMInstallationParamsAccept = "application/json"
)
Defines values for CreateFCMInstallationParamsAccept.
func (CreateFCMInstallationParamsAccept) Valid ¶
func (e CreateFCMInstallationParamsAccept) Valid() bool
Valid indicates whether the value is a known member of the CreateFCMInstallationParamsAccept enum.
type CreateFCMInstallationParamsContentType ¶
type CreateFCMInstallationParamsContentType string
CreateFCMInstallationParamsContentType defines parameters for CreateFCMInstallation.
const (
CreateFCMInstallationParamsContentTypeApplicationjson CreateFCMInstallationParamsContentType = "application/json"
)
Defines values for CreateFCMInstallationParamsContentType.
func (CreateFCMInstallationParamsContentType) Valid ¶
func (e CreateFCMInstallationParamsContentType) Valid() bool
Valid indicates whether the value is a known member of the CreateFCMInstallationParamsContentType enum.
type CreateFCMInstallationParamsXGoogApiKey ¶
type CreateFCMInstallationParamsXGoogApiKey string
CreateFCMInstallationParamsXGoogApiKey defines parameters for CreateFCMInstallation.
const (
CreateFCMInstallationParamsXGoogApiKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 CreateFCMInstallationParamsXGoogApiKey = "AIzaSyCv-hdFBmmdBBJadNy-TFwB-xN_H5m3Bk8"
)
Defines values for CreateFCMInstallationParamsXGoogApiKey.
func (CreateFCMInstallationParamsXGoogApiKey) Valid ¶
func (e CreateFCMInstallationParamsXGoogApiKey) Valid() bool
Valid indicates whether the value is a known member of the CreateFCMInstallationParamsXGoogApiKey enum.
type FCMRegistrationRequest ¶
type FCMRegistrationRequest struct {
Web FCMWebRegistration `json:"web"`
}
FCMRegistrationRequest defines model for FCMRegistrationRequest.
type FCMRegistrationResponse ¶
type FCMRegistrationResponse struct {
PushSet *string `json:"pushSet,omitempty"`
Token string `json:"token"`
AdditionalProperties map[string]interface{} `json:"-"`
}
FCMRegistrationResponse defines model for FCMRegistrationResponse.
func (FCMRegistrationResponse) Get ¶
func (a FCMRegistrationResponse) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for FCMRegistrationResponse. Returns the specified element and whether it was found
func (FCMRegistrationResponse) MarshalJSON ¶
func (a FCMRegistrationResponse) MarshalJSON() ([]byte, error)
Override default JSON handling for FCMRegistrationResponse to handle AdditionalProperties
func (*FCMRegistrationResponse) Set ¶
func (a *FCMRegistrationResponse) Set(fieldName string, value interface{})
Setter for additional properties for FCMRegistrationResponse
func (*FCMRegistrationResponse) UnmarshalJSON ¶
func (a *FCMRegistrationResponse) UnmarshalJSON(b []byte) error
Override default JSON handling for FCMRegistrationResponse to handle AdditionalProperties
type FCMWebRegistration ¶
type FCMWebRegistration struct {
// Auth URL-safe base64 encoding of a 16-byte Web Push authentication secret.
Auth string `json:"auth"`
Endpoint string `json:"endpoint"`
// P256dh URL-safe base64 encoding of a 65-byte uncompressed P-256 public key.
P256dh string `json:"p256dh"`
}
FCMWebRegistration defines model for FCMWebRegistration.
type GoogleAPIKey ¶
type GoogleAPIKey string
GoogleAPIKey defines model for GoogleAPIKey.
const (
GoogleAPIKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 GoogleAPIKey = "AIzaSyCv-hdFBmmdBBJadNy-TFwB-xN_H5m3Bk8"
)
Defines values for GoogleAPIKey.
func (GoogleAPIKey) Valid ¶
func (e GoogleAPIKey) Valid() bool
Valid indicates whether the value is a known member of the GoogleAPIKey enum.
type InstallationAuthToken ¶
type InstallationAuthToken struct {
ExpiresIn *string `json:"expiresIn,omitempty"`
Token string `json:"token"`
AdditionalProperties map[string]interface{} `json:"-"`
}
InstallationAuthToken defines model for InstallationAuthToken.
func (InstallationAuthToken) Get ¶
func (a InstallationAuthToken) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for InstallationAuthToken. Returns the specified element and whether it was found
func (InstallationAuthToken) MarshalJSON ¶
func (a InstallationAuthToken) MarshalJSON() ([]byte, error)
Override default JSON handling for InstallationAuthToken to handle AdditionalProperties
func (*InstallationAuthToken) Set ¶
func (a *InstallationAuthToken) Set(fieldName string, value interface{})
Setter for additional properties for InstallationAuthToken
func (*InstallationAuthToken) UnmarshalJSON ¶
func (a *InstallationAuthToken) UnmarshalJSON(b []byte) error
Override default JSON handling for InstallationAuthToken to handle AdditionalProperties
type InstallationRequest ¶
type InstallationRequest struct {
AppId InstallationRequestAppId `json:"appId"`
AuthVersion InstallationRequestAuthVersion `json:"authVersion"`
// Fid Base64-encoded 17-byte FID from the pinned receiver implementation.
Fid string `json:"fid"`
SdkVersion InstallationRequestSdkVersion `json:"sdkVersion"`
}
InstallationRequest defines model for InstallationRequest.
type InstallationRequestAppId ¶
type InstallationRequestAppId string
InstallationRequestAppId defines model for InstallationRequest.AppId.
const (
InstallationRequestAppIdN1876313859327AndroidE10ec6ddb3c81f39 InstallationRequestAppId = "1:876313859327:android:e10ec6ddb3c81f39"
)
Defines values for InstallationRequestAppId.
func (InstallationRequestAppId) Valid ¶
func (e InstallationRequestAppId) Valid() bool
Valid indicates whether the value is a known member of the InstallationRequestAppId enum.
type InstallationRequestAuthVersion ¶
type InstallationRequestAuthVersion string
InstallationRequestAuthVersion defines model for InstallationRequest.AuthVersion.
const (
FISV2 InstallationRequestAuthVersion = "FIS_v2"
)
Defines values for InstallationRequestAuthVersion.
func (InstallationRequestAuthVersion) Valid ¶
func (e InstallationRequestAuthVersion) Valid() bool
Valid indicates whether the value is a known member of the InstallationRequestAuthVersion enum.
type InstallationRequestSdkVersion ¶
type InstallationRequestSdkVersion string
InstallationRequestSdkVersion defines model for InstallationRequest.SdkVersion.
const (
W0617 InstallationRequestSdkVersion = "w:0.6.17"
)
Defines values for InstallationRequestSdkVersion.
func (InstallationRequestSdkVersion) Valid ¶
func (e InstallationRequestSdkVersion) Valid() bool
Valid indicates whether the value is a known member of the InstallationRequestSdkVersion enum.
type InstallationResponse ¶
type InstallationResponse struct {
AuthToken InstallationAuthToken `json:"authToken"`
Fid string `json:"fid"`
Name string `json:"name"`
RefreshToken string `json:"refreshToken"`
AdditionalProperties map[string]interface{} `json:"-"`
}
InstallationResponse defines model for InstallationResponse.
func (InstallationResponse) Get ¶
func (a InstallationResponse) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for InstallationResponse. Returns the specified element and whether it was found
func (InstallationResponse) MarshalJSON ¶
func (a InstallationResponse) MarshalJSON() ([]byte, error)
Override default JSON handling for InstallationResponse to handle AdditionalProperties
func (*InstallationResponse) Set ¶
func (a *InstallationResponse) Set(fieldName string, value interface{})
Setter for additional properties for InstallationResponse
func (*InstallationResponse) UnmarshalJSON ¶
func (a *InstallationResponse) UnmarshalJSON(b []byte) error
Override default JSON handling for InstallationResponse to handle AdditionalProperties
type JSONAccept ¶
type JSONAccept string
JSONAccept defines model for JSONAccept.
const (
JSONAcceptApplicationjson JSONAccept = "application/json"
)
Defines values for JSONAccept.
func (JSONAccept) Valid ¶
func (e JSONAccept) Valid() bool
Valid indicates whether the value is a known member of the JSONAccept enum.
type JSONContentType ¶
type JSONContentType string
JSONContentType defines model for JSONContentType.
const (
JSONContentTypeApplicationjson JSONContentType = "application/json"
)
Defines values for JSONContentType.
func (JSONContentType) Valid ¶
func (e JSONContentType) Valid() bool
Valid indicates whether the value is a known member of the JSONContentType enum.
type LegacyRegistrationRequest ¶
type LegacyRegistrationRequest struct {
XSubtype LegacyRegistrationRequestXSubtype `json:"X-subtype"`
App LegacyRegistrationRequestApp `json:"app"`
Device string `json:"device"`
Sender LegacyRegistrationRequestSender `json:"sender"`
}
LegacyRegistrationRequest Form fields are URL encoded as UTF-8.
type LegacyRegistrationRequestApp ¶
type LegacyRegistrationRequestApp string
LegacyRegistrationRequestApp defines model for LegacyRegistrationRequest.App.
const (
OrgChromiumLinux LegacyRegistrationRequestApp = "org.chromium.linux"
)
Defines values for LegacyRegistrationRequestApp.
func (LegacyRegistrationRequestApp) Valid ¶
func (e LegacyRegistrationRequestApp) Valid() bool
Valid indicates whether the value is a known member of the LegacyRegistrationRequestApp enum.
type LegacyRegistrationRequestSender ¶
type LegacyRegistrationRequestSender string
LegacyRegistrationRequestSender defines model for LegacyRegistrationRequest.Sender.
const (
BDOU99H67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv4L2LxQcYwhqby2xGpWwzjfAnG4 LegacyRegistrationRequestSender = "BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4"
)
Defines values for LegacyRegistrationRequestSender.
func (LegacyRegistrationRequestSender) Valid ¶
func (e LegacyRegistrationRequestSender) Valid() bool
Valid indicates whether the value is a known member of the LegacyRegistrationRequestSender enum.
type LegacyRegistrationRequestXSubtype ¶
type LegacyRegistrationRequestXSubtype string
LegacyRegistrationRequestXSubtype defines model for LegacyRegistrationRequest.XSubtype.
const (
LegacyRegistrationRequestXSubtypeN1876313859327AndroidE10ec6ddb3c81f39 LegacyRegistrationRequestXSubtype = "1:876313859327:android:e10ec6ddb3c81f39"
)
Defines values for LegacyRegistrationRequestXSubtype.
func (LegacyRegistrationRequestXSubtype) Valid ¶
func (e LegacyRegistrationRequestXSubtype) Valid() bool
Valid indicates whether the value is a known member of the LegacyRegistrationRequestXSubtype enum.
type LegacyRegistrationResponse ¶
type LegacyRegistrationResponse = string
LegacyRegistrationResponse Form-encoded response containing the registration token.
type ProtobufContentType ¶
type ProtobufContentType string
ProtobufContentType defines model for ProtobufContentType.
const (
ProtobufContentTypeApplicationxProtobuf ProtobufContentType = "application/x-protobuf"
)
Defines values for ProtobufContentType.
func (ProtobufContentType) Valid ¶
func (e ProtobufContentType) Valid() bool
Valid indicates whether the value is a known member of the ProtobufContentType enum.
type RegisterFCMClientFormdataRequestBody ¶
type RegisterFCMClientFormdataRequestBody = LegacyRegistrationRequest
RegisterFCMClientFormdataRequestBody defines body for RegisterFCMClient for application/x-www-form-urlencoded ContentType.
type RegisterFCMClientParams ¶
type RegisterFCMClientParams struct {
ContentType RegisterFCMClientParamsContentType `json:"Content-Type"`
// Authorization Android ID and security token from the check-in response.
Authorization string `json:"Authorization"`
// UserAgent The pinned receiver sends an empty User-Agent value.
UserAgent string `json:"User-Agent"`
}
RegisterFCMClientParams defines parameters for RegisterFCMClient.
type RegisterFCMClientParamsContentType ¶
type RegisterFCMClientParamsContentType string
RegisterFCMClientParamsContentType defines parameters for RegisterFCMClient.
const (
ApplicationxWwwFormUrlencoded RegisterFCMClientParamsContentType = "application/x-www-form-urlencoded"
)
Defines values for RegisterFCMClientParamsContentType.
func (RegisterFCMClientParamsContentType) Valid ¶
func (e RegisterFCMClientParamsContentType) Valid() bool
Valid indicates whether the value is a known member of the RegisterFCMClientParamsContentType enum.
type RegisterFCMInstallationJSONRequestBody ¶
type RegisterFCMInstallationJSONRequestBody = FCMRegistrationRequest
RegisterFCMInstallationJSONRequestBody defines body for RegisterFCMInstallation for application/json ContentType.
type RegisterFCMInstallationParams ¶
type RegisterFCMInstallationParams struct {
ContentType RegisterFCMInstallationParamsContentType `json:"Content-Type"`
// XGoogApiKey Public API key configured by the pinned Ring Android client.
XGoogApiKey RegisterFCMInstallationParamsXGoogApiKey `json:"X-Goog-Api-Key"`
// XGoogFirebaseInstallationsAuth The local compatibility adapter removes the upstream FIS prefix before forwarding.
XGoogFirebaseInstallationsAuth string `json:"X-Goog-Firebase-Installations-Auth"`
}
RegisterFCMInstallationParams defines parameters for RegisterFCMInstallation.
type RegisterFCMInstallationParamsContentType ¶
type RegisterFCMInstallationParamsContentType string
RegisterFCMInstallationParamsContentType defines parameters for RegisterFCMInstallation.
const (
RegisterFCMInstallationParamsContentTypeApplicationjson RegisterFCMInstallationParamsContentType = "application/json"
)
Defines values for RegisterFCMInstallationParamsContentType.
func (RegisterFCMInstallationParamsContentType) Valid ¶
func (e RegisterFCMInstallationParamsContentType) Valid() bool
Valid indicates whether the value is a known member of the RegisterFCMInstallationParamsContentType enum.
type RegisterFCMInstallationParamsXGoogApiKey ¶
type RegisterFCMInstallationParamsXGoogApiKey string
RegisterFCMInstallationParamsXGoogApiKey defines parameters for RegisterFCMInstallation.
const (
RegisterFCMInstallationParamsXGoogApiKeyAIzaSyCvHdFBmmdBBJadNyTFwBXNH5m3Bk8 RegisterFCMInstallationParamsXGoogApiKey = "AIzaSyCv-hdFBmmdBBJadNy-TFwB-xN_H5m3Bk8"
)
Defines values for RegisterFCMInstallationParamsXGoogApiKey.
func (RegisterFCMInstallationParamsXGoogApiKey) Valid ¶
func (e RegisterFCMInstallationParamsXGoogApiKey) Valid() bool
Valid indicates whether the value is a known member of the RegisterFCMInstallationParamsXGoogApiKey enum.
type RingPushNotificationConfig ¶
type RingPushNotificationConfig struct {
// Category Open Ring action category, such as ding or motion.
Category *string `json:"category,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
RingPushNotificationConfig Optional Ring category in an MCS notification's android_config JSON string.
func (RingPushNotificationConfig) Get ¶
func (a RingPushNotificationConfig) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for RingPushNotificationConfig. Returns the specified element and whether it was found
func (RingPushNotificationConfig) MarshalJSON ¶
func (a RingPushNotificationConfig) MarshalJSON() ([]byte, error)
Override default JSON handling for RingPushNotificationConfig to handle AdditionalProperties
func (*RingPushNotificationConfig) Set ¶
func (a *RingPushNotificationConfig) Set(fieldName string, value interface{})
Setter for additional properties for RingPushNotificationConfig
func (*RingPushNotificationConfig) UnmarshalJSON ¶
func (a *RingPushNotificationConfig) UnmarshalJSON(b []byte) error
Override default JSON handling for RingPushNotificationConfig to handle AdditionalProperties
type RingPushNotificationDevice ¶
type RingPushNotificationDevice struct {
Id *int64 `json:"id,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
RingPushNotificationDevice defines model for RingPushNotificationDevice.
func (RingPushNotificationDevice) Get ¶
func (a RingPushNotificationDevice) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for RingPushNotificationDevice. Returns the specified element and whether it was found
func (RingPushNotificationDevice) MarshalJSON ¶
func (a RingPushNotificationDevice) MarshalJSON() ([]byte, error)
Override default JSON handling for RingPushNotificationDevice to handle AdditionalProperties
func (*RingPushNotificationDevice) Set ¶
func (a *RingPushNotificationDevice) Set(fieldName string, value interface{})
Setter for additional properties for RingPushNotificationDevice
func (*RingPushNotificationDevice) UnmarshalJSON ¶
func (a *RingPushNotificationDevice) UnmarshalJSON(b []byte) error
Override default JSON handling for RingPushNotificationDevice to handle AdditionalProperties
type RingPushNotificationEnvelope ¶
type RingPushNotificationEnvelope struct {
AndroidConfig *RingPushNotificationEnvelope_AndroidConfig `json:"android_config,omitempty"`
Data *RingPushNotificationEnvelope_Data `json:"data,omitempty"`
// DoorbotId Synthetic compatibility fallback when a nested device ID is absent.
DoorbotId *int64 `json:"doorbot_id,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
RingPushNotificationEnvelope Synthetic decoded notification envelope used by the public push adapter. The captured encrypted MCS replay carries android_config and data as JSON-encoded strings; the adapter also accepts already-decoded objects.
func (RingPushNotificationEnvelope) Get ¶
func (a RingPushNotificationEnvelope) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for RingPushNotificationEnvelope. Returns the specified element and whether it was found
func (RingPushNotificationEnvelope) MarshalJSON ¶
func (a RingPushNotificationEnvelope) MarshalJSON() ([]byte, error)
Override default JSON handling for RingPushNotificationEnvelope to handle AdditionalProperties
func (*RingPushNotificationEnvelope) Set ¶
func (a *RingPushNotificationEnvelope) Set(fieldName string, value interface{})
Setter for additional properties for RingPushNotificationEnvelope
func (*RingPushNotificationEnvelope) UnmarshalJSON ¶
func (a *RingPushNotificationEnvelope) UnmarshalJSON(b []byte) error
Override default JSON handling for RingPushNotificationEnvelope to handle AdditionalProperties
type RingPushNotificationEnvelopeAndroidConfig0 ¶
type RingPushNotificationEnvelopeAndroidConfig0 = string
RingPushNotificationEnvelopeAndroidConfig0 defines model for RingPushNotificationEnvelope.AndroidConfig.0.
type RingPushNotificationEnvelopeData0 ¶
type RingPushNotificationEnvelopeData0 = string
RingPushNotificationEnvelopeData0 defines model for RingPushNotificationEnvelope.Data.0.
type RingPushNotificationEnvelope_AndroidConfig ¶
type RingPushNotificationEnvelope_AndroidConfig struct {
// contains filtered or unexported fields
}
RingPushNotificationEnvelope_AndroidConfig defines model for RingPushNotificationEnvelope.AndroidConfig.
func (RingPushNotificationEnvelope_AndroidConfig) AsRingPushNotificationConfig ¶
func (t RingPushNotificationEnvelope_AndroidConfig) AsRingPushNotificationConfig() (RingPushNotificationConfig, error)
AsRingPushNotificationConfig returns the union data inside the RingPushNotificationEnvelope_AndroidConfig as a RingPushNotificationConfig
func (RingPushNotificationEnvelope_AndroidConfig) AsRingPushNotificationEnvelopeAndroidConfig0 ¶
func (t RingPushNotificationEnvelope_AndroidConfig) AsRingPushNotificationEnvelopeAndroidConfig0() (RingPushNotificationEnvelopeAndroidConfig0, error)
AsRingPushNotificationEnvelopeAndroidConfig0 returns the union data inside the RingPushNotificationEnvelope_AndroidConfig as a RingPushNotificationEnvelopeAndroidConfig0
func (*RingPushNotificationEnvelope_AndroidConfig) FromRingPushNotificationConfig ¶
func (t *RingPushNotificationEnvelope_AndroidConfig) FromRingPushNotificationConfig(v RingPushNotificationConfig) error
FromRingPushNotificationConfig overwrites any union data inside the RingPushNotificationEnvelope_AndroidConfig as the provided RingPushNotificationConfig
func (*RingPushNotificationEnvelope_AndroidConfig) FromRingPushNotificationEnvelopeAndroidConfig0 ¶
func (t *RingPushNotificationEnvelope_AndroidConfig) FromRingPushNotificationEnvelopeAndroidConfig0(v RingPushNotificationEnvelopeAndroidConfig0) error
FromRingPushNotificationEnvelopeAndroidConfig0 overwrites any union data inside the RingPushNotificationEnvelope_AndroidConfig as the provided RingPushNotificationEnvelopeAndroidConfig0
func (RingPushNotificationEnvelope_AndroidConfig) MarshalJSON ¶
func (t RingPushNotificationEnvelope_AndroidConfig) MarshalJSON() ([]byte, error)
func (*RingPushNotificationEnvelope_AndroidConfig) MergeRingPushNotificationConfig ¶
func (t *RingPushNotificationEnvelope_AndroidConfig) MergeRingPushNotificationConfig(v RingPushNotificationConfig) error
MergeRingPushNotificationConfig performs a merge with any union data inside the RingPushNotificationEnvelope_AndroidConfig, using the provided RingPushNotificationConfig
func (*RingPushNotificationEnvelope_AndroidConfig) MergeRingPushNotificationEnvelopeAndroidConfig0 ¶
func (t *RingPushNotificationEnvelope_AndroidConfig) MergeRingPushNotificationEnvelopeAndroidConfig0(v RingPushNotificationEnvelopeAndroidConfig0) error
MergeRingPushNotificationEnvelopeAndroidConfig0 performs a merge with any union data inside the RingPushNotificationEnvelope_AndroidConfig, using the provided RingPushNotificationEnvelopeAndroidConfig0
func (*RingPushNotificationEnvelope_AndroidConfig) UnmarshalJSON ¶
func (t *RingPushNotificationEnvelope_AndroidConfig) UnmarshalJSON(b []byte) error
type RingPushNotificationEnvelope_Data ¶
type RingPushNotificationEnvelope_Data struct {
// contains filtered or unexported fields
}
RingPushNotificationEnvelope_Data defines model for RingPushNotificationEnvelope.Data.
func (RingPushNotificationEnvelope_Data) AsRingPushNotificationEnvelopeData0 ¶
func (t RingPushNotificationEnvelope_Data) AsRingPushNotificationEnvelopeData0() (RingPushNotificationEnvelopeData0, error)
AsRingPushNotificationEnvelopeData0 returns the union data inside the RingPushNotificationEnvelope_Data as a RingPushNotificationEnvelopeData0
func (RingPushNotificationEnvelope_Data) AsRingPushNotificationPayload ¶
func (t RingPushNotificationEnvelope_Data) AsRingPushNotificationPayload() (RingPushNotificationPayload, error)
AsRingPushNotificationPayload returns the union data inside the RingPushNotificationEnvelope_Data as a RingPushNotificationPayload
func (*RingPushNotificationEnvelope_Data) FromRingPushNotificationEnvelopeData0 ¶
func (t *RingPushNotificationEnvelope_Data) FromRingPushNotificationEnvelopeData0(v RingPushNotificationEnvelopeData0) error
FromRingPushNotificationEnvelopeData0 overwrites any union data inside the RingPushNotificationEnvelope_Data as the provided RingPushNotificationEnvelopeData0
func (*RingPushNotificationEnvelope_Data) FromRingPushNotificationPayload ¶
func (t *RingPushNotificationEnvelope_Data) FromRingPushNotificationPayload(v RingPushNotificationPayload) error
FromRingPushNotificationPayload overwrites any union data inside the RingPushNotificationEnvelope_Data as the provided RingPushNotificationPayload
func (RingPushNotificationEnvelope_Data) MarshalJSON ¶
func (t RingPushNotificationEnvelope_Data) MarshalJSON() ([]byte, error)
func (*RingPushNotificationEnvelope_Data) MergeRingPushNotificationEnvelopeData0 ¶
func (t *RingPushNotificationEnvelope_Data) MergeRingPushNotificationEnvelopeData0(v RingPushNotificationEnvelopeData0) error
MergeRingPushNotificationEnvelopeData0 performs a merge with any union data inside the RingPushNotificationEnvelope_Data, using the provided RingPushNotificationEnvelopeData0
func (*RingPushNotificationEnvelope_Data) MergeRingPushNotificationPayload ¶
func (t *RingPushNotificationEnvelope_Data) MergeRingPushNotificationPayload(v RingPushNotificationPayload) error
MergeRingPushNotificationPayload performs a merge with any union data inside the RingPushNotificationEnvelope_Data, using the provided RingPushNotificationPayload
func (*RingPushNotificationEnvelope_Data) UnmarshalJSON ¶
func (t *RingPushNotificationEnvelope_Data) UnmarshalJSON(b []byte) error
type RingPushNotificationGCMData ¶
type RingPushNotificationGCMData struct {
// Action Open Ring action name, including intercom_unlock.
Action *string `json:"action,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
RingPushNotificationGCMData defines model for RingPushNotificationGCMData.
func (RingPushNotificationGCMData) Get ¶
func (a RingPushNotificationGCMData) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for RingPushNotificationGCMData. Returns the specified element and whether it was found
func (RingPushNotificationGCMData) MarshalJSON ¶
func (a RingPushNotificationGCMData) MarshalJSON() ([]byte, error)
Override default JSON handling for RingPushNotificationGCMData to handle AdditionalProperties
func (*RingPushNotificationGCMData) Set ¶
func (a *RingPushNotificationGCMData) Set(fieldName string, value interface{})
Setter for additional properties for RingPushNotificationGCMData
func (*RingPushNotificationGCMData) UnmarshalJSON ¶
func (a *RingPushNotificationGCMData) UnmarshalJSON(b []byte) error
Override default JSON handling for RingPushNotificationGCMData to handle AdditionalProperties
type RingPushNotificationPayload ¶
type RingPushNotificationPayload struct {
Device *RingPushNotificationDevice `json:"device,omitempty"`
GcmData *RingPushNotificationGCMData `json:"gcmData,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
RingPushNotificationPayload Optional Ring data object carried as a JSON string in an MCS notification.
func (RingPushNotificationPayload) Get ¶
func (a RingPushNotificationPayload) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for RingPushNotificationPayload. Returns the specified element and whether it was found
func (RingPushNotificationPayload) MarshalJSON ¶
func (a RingPushNotificationPayload) MarshalJSON() ([]byte, error)
Override default JSON handling for RingPushNotificationPayload to handle AdditionalProperties
func (*RingPushNotificationPayload) Set ¶
func (a *RingPushNotificationPayload) Set(fieldName string, value interface{})
Setter for additional properties for RingPushNotificationPayload
func (*RingPushNotificationPayload) UnmarshalJSON ¶
func (a *RingPushNotificationPayload) UnmarshalJSON(b []byte) error
Override default JSON handling for RingPushNotificationPayload to handle AdditionalProperties