Documentation
¶
Overview ¶
Package generatedhttp 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 ¶
- func NewBeginOrContinueOAuthAuthorizationRequest(server string, params *BeginOrContinueOAuthAuthorizationParams) (*http.Request, error)
- func NewDeleteRecordingRequest(server string, recordingId RecordingId, params *DeleteRecordingParams) (*http.Request, error)
- func NewExchangeOrRefreshOAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewExchangeOrRefreshOAuthTokenRequestWithFormdataBody(server string, body ExchangeOrRefreshOAuthTokenFormdataRequestBody) (*http.Request, error)
- func NewFavoriteRecordingRequest(server string, recordingId RecordingId) (*http.Request, error)
- func NewGetActiveDingsRequest(server string) (*http.Request, error)
- func NewGetCapturedLocationTicketsRequest(server string, params *GetCapturedLocationTicketsParams) (*http.Request, error)
- func NewGetDeviceRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewGetDeviceSettingsRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewGetDeviceTimelineRequest(server string, deviceId DeviceId, params *GetDeviceTimelineParams) (*http.Request, error)
- func NewGetHistoryDevicesRequest(server string, params *GetHistoryDevicesParams) (*http.Request, error)
- func NewGetLegacyDeviceHealthRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewGetLegacyDeviceHistoryRequest(server string, deviceId DeviceId, params *GetLegacyDeviceHistoryParams) (*http.Request, error)
- func NewGetLegacyRecordingShareURLRequest(server string, recordingId RecordingId) (*http.Request, error)
- func NewGetLegacySnapshotImageRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewGetLocationRequest(server string, locationId LocationId, params *GetLocationParams) (*http.Request, error)
- func NewListDevicesRequest(server string) (*http.Request, error)
- func NewListLocationDevicesRequest(server string, locationId LocationId) (*http.Request, error)
- func NewListLocationGroupsRequest(server string, locationId LocationId) (*http.Request, error)
- func NewListLocationsRequest(server string) (*http.Request, error)
- func NewPatchDeviceSettingsRequest(server string, deviceId DeviceId, body PatchDeviceSettingsJSONRequestBody) (*http.Request, error)
- func NewPatchDeviceSettingsRequestWithBody(server string, deviceId DeviceId, contentType string, body io.Reader) (*http.Request, error)
- func NewRefreshLegacySnapshotTimestampRequest(server string, body RefreshLegacySnapshotTimestampJSONRequestBody) (*http.Request, error)
- func NewRefreshLegacySnapshotTimestampRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRegisterClientSessionRequest(server string, body RegisterClientSessionJSONRequestBody) (*http.Request, error)
- func NewRegisterClientSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRequestLegacySignalingTicketRequest(server string) (*http.Request, error)
- func NewSendDeviceCommandRequest(server string, deviceId DeviceId, body SendDeviceCommandJSONRequestBody) (*http.Request, error)
- func NewSendDeviceCommandRequestWithBody(server string, deviceId DeviceId, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChimeVolumeRequest(server string, deviceId DeviceId, params *SetChimeVolumeParams) (*http.Request, error)
- func NewSetLiveViewEnabledRequest(server string, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody) (*http.Request, error)
- func NewSetLiveViewEnabledRequestWithBody(server string, deviceId DeviceId, contentType string, body io.Reader) (*http.Request, error)
- func NewStreamRecordingRequest(server string, recordingId RecordingId) (*http.Request, error)
- func NewSubmitOAuthCredentialsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSubmitOAuthCredentialsRequestWithFormdataBody(server string, body SubmitOAuthCredentialsFormdataRequestBody) (*http.Request, error)
- func NewTestChimeSoundRequest(server string, deviceId DeviceId, params *TestChimeSoundParams) (*http.Request, error)
- func NewTurnFloodlightOffRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewTurnFloodlightOnRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewTurnSirenOffRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewTurnSirenOnRequest(server string, deviceId DeviceId) (*http.Request, error)
- func NewUpdateLegacyDoorbotControlsRequest(server string, deviceId DeviceId, params *UpdateLegacyDoorbotControlsParams) (*http.Request, error)
- func NewVerifyOAuthTwoFactorCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVerifyOAuthTwoFactorCodeRequestWithFormdataBody(server string, body VerifyOAuthTwoFactorCodeFormdataRequestBody) (*http.Request, error)
- type AllowUserOnly
- type AuthFailure
- type AuthorizationCodeGrant
- type AuthorizationCodeGrantGrantType
- type BeginOrContinueOAuthAuthorizationParams
- type BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod
- type BeginOrContinueOAuthAuthorizationParamsResponseType
- type BeginOrContinueOAuthAuthorizationResponse
- func (r BeginOrContinueOAuthAuthorizationResponse) ContentType() string
- func (r BeginOrContinueOAuthAuthorizationResponse) GetBody() []byte
- func (r BeginOrContinueOAuthAuthorizationResponse) GetJSONDefault() *AuthFailure
- func (r BeginOrContinueOAuthAuthorizationResponse) Status() string
- func (r BeginOrContinueOAuthAuthorizationResponse) StatusCode() int
- type BeginOrContinueOAuthAuthorizationResponse302Headers
- type CameraDeviceKind
- type Capabilities
- type CapturedTickets
- type ChimeDeviceKind
- type ChimeSettings
- type Client
- func (c *Client) BeginOrContinueOAuthAuthorization(ctx context.Context, params *BeginOrContinueOAuthAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) DeleteRecording(ctx context.Context, recordingId RecordingId, params *DeleteRecordingParams, ...) (*http.Response, error)
- func (c *Client) ExchangeOrRefreshOAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExchangeOrRefreshOAuthTokenWithFormdataBody(ctx context.Context, body ExchangeOrRefreshOAuthTokenFormdataRequestBody, ...) (*http.Response, error)
- func (c *Client) FavoriteRecording(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetActiveDings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCapturedLocationTickets(ctx context.Context, params *GetCapturedLocationTicketsParams, ...) (*http.Response, error)
- func (c *Client) GetDevice(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDeviceSettings(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDeviceTimeline(ctx context.Context, deviceId DeviceId, params *GetDeviceTimelineParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryDevices(ctx context.Context, params *GetHistoryDevicesParams, ...) (*http.Response, error)
- func (c *Client) GetLegacyDeviceHealth(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLegacyDeviceHistory(ctx context.Context, deviceId DeviceId, params *GetLegacyDeviceHistoryParams, ...) (*http.Response, error)
- func (c *Client) GetLegacyRecordingShareURL(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLegacySnapshotImage(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLocation(ctx context.Context, locationId LocationId, params *GetLocationParams, ...) (*http.Response, error)
- func (c *Client) ListDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLocationDevices(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLocationGroups(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLocations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PatchDeviceSettings(ctx context.Context, deviceId DeviceId, ...) (*http.Response, error)
- func (c *Client) PatchDeviceSettingsWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RefreshLegacySnapshotTimestamp(ctx context.Context, body RefreshLegacySnapshotTimestampJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RefreshLegacySnapshotTimestampWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RegisterClientSession(ctx context.Context, body RegisterClientSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RegisterClientSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RequestLegacySignalingTicket(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SendDeviceCommand(ctx context.Context, deviceId DeviceId, body SendDeviceCommandJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendDeviceCommandWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChimeVolume(ctx context.Context, deviceId DeviceId, params *SetChimeVolumeParams, ...) (*http.Response, error)
- func (c *Client) SetLiveViewEnabled(ctx context.Context, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetLiveViewEnabledWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StreamRecording(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SubmitOAuthCredentialsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SubmitOAuthCredentialsWithFormdataBody(ctx context.Context, body SubmitOAuthCredentialsFormdataRequestBody, ...) (*http.Response, error)
- func (c *Client) TestChimeSound(ctx context.Context, deviceId DeviceId, params *TestChimeSoundParams, ...) (*http.Response, error)
- func (c *Client) TurnFloodlightOff(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TurnFloodlightOn(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TurnSirenOff(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TurnSirenOn(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateLegacyDoorbotControls(ctx context.Context, deviceId DeviceId, ...) (*http.Response, error)
- func (c *Client) VerifyOAuthTwoFactorCodeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VerifyOAuthTwoFactorCodeWithFormdataBody(ctx context.Context, body VerifyOAuthTwoFactorCodeFormdataRequestBody, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientSessionRegistration
- type ClientSessionRegistrationDeviceMetadataApiVersion
- type ClientSessionRegistrationDeviceOs
- type ClientSessionRegistration_Device
- func (a ClientSessionRegistration_Device) Get(fieldName string) (value interface{}, found bool)
- func (a ClientSessionRegistration_Device) MarshalJSON() ([]byte, error)
- func (a *ClientSessionRegistration_Device) Set(fieldName string, value interface{})
- func (a *ClientSessionRegistration_Device) UnmarshalJSON(b []byte) error
- type ClientSessionRegistration_Device_Metadata
- func (a ClientSessionRegistration_Device_Metadata) Get(fieldName string) (value interface{}, found bool)
- func (a ClientSessionRegistration_Device_Metadata) MarshalJSON() ([]byte, error)
- func (a *ClientSessionRegistration_Device_Metadata) Set(fieldName string, value interface{})
- func (a *ClientSessionRegistration_Device_Metadata) UnmarshalJSON(b []byte) error
- type ClientWithResponses
- func (c *ClientWithResponses) BeginOrContinueOAuthAuthorizationWithResponse(ctx context.Context, params *BeginOrContinueOAuthAuthorizationParams, ...) (*BeginOrContinueOAuthAuthorizationResponse, error)
- func (c *ClientWithResponses) DeleteRecordingWithResponse(ctx context.Context, recordingId RecordingId, params *DeleteRecordingParams, ...) (*DeleteRecordingResponse, error)
- func (c *ClientWithResponses) ExchangeOrRefreshOAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ExchangeOrRefreshOAuthTokenResponse, error)
- func (c *ClientWithResponses) ExchangeOrRefreshOAuthTokenWithFormdataBodyWithResponse(ctx context.Context, body ExchangeOrRefreshOAuthTokenFormdataRequestBody, ...) (*ExchangeOrRefreshOAuthTokenResponse, error)
- func (c *ClientWithResponses) FavoriteRecordingWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*FavoriteRecordingResponse, error)
- func (c *ClientWithResponses) GetActiveDingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetActiveDingsResponse, error)
- func (c *ClientWithResponses) GetCapturedLocationTicketsWithResponse(ctx context.Context, params *GetCapturedLocationTicketsParams, ...) (*GetCapturedLocationTicketsResponse, error)
- func (c *ClientWithResponses) GetDeviceSettingsWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetDeviceSettingsResponse, error)
- func (c *ClientWithResponses) GetDeviceTimelineWithResponse(ctx context.Context, deviceId DeviceId, params *GetDeviceTimelineParams, ...) (*GetDeviceTimelineResponse, error)
- func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
- func (c *ClientWithResponses) GetHistoryDevicesWithResponse(ctx context.Context, params *GetHistoryDevicesParams, ...) (*GetHistoryDevicesResponse, error)
- func (c *ClientWithResponses) GetLegacyDeviceHealthWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetLegacyDeviceHealthResponse, error)
- func (c *ClientWithResponses) GetLegacyDeviceHistoryWithResponse(ctx context.Context, deviceId DeviceId, params *GetLegacyDeviceHistoryParams, ...) (*GetLegacyDeviceHistoryResponse, error)
- func (c *ClientWithResponses) GetLegacyRecordingShareURLWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*GetLegacyRecordingShareURLResponse, error)
- func (c *ClientWithResponses) GetLegacySnapshotImageWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetLegacySnapshotImageResponse, error)
- func (c *ClientWithResponses) GetLocationWithResponse(ctx context.Context, locationId LocationId, params *GetLocationParams, ...) (*GetLocationResponse, error)
- func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)
- func (c *ClientWithResponses) ListLocationDevicesWithResponse(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*ListLocationDevicesResponse, error)
- func (c *ClientWithResponses) ListLocationGroupsWithResponse(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*ListLocationGroupsResponse, error)
- func (c *ClientWithResponses) ListLocationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLocationsResponse, error)
- func (c *ClientWithResponses) PatchDeviceSettingsWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, ...) (*PatchDeviceSettingsResponse, error)
- func (c *ClientWithResponses) PatchDeviceSettingsWithResponse(ctx context.Context, deviceId DeviceId, ...) (*PatchDeviceSettingsResponse, error)
- func (c *ClientWithResponses) RefreshLegacySnapshotTimestampWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RefreshLegacySnapshotTimestampResponse, error)
- func (c *ClientWithResponses) RefreshLegacySnapshotTimestampWithResponse(ctx context.Context, body RefreshLegacySnapshotTimestampJSONRequestBody, ...) (*RefreshLegacySnapshotTimestampResponse, error)
- func (c *ClientWithResponses) RegisterClientSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RegisterClientSessionResponse, error)
- func (c *ClientWithResponses) RegisterClientSessionWithResponse(ctx context.Context, body RegisterClientSessionJSONRequestBody, ...) (*RegisterClientSessionResponse, error)
- func (c *ClientWithResponses) RequestLegacySignalingTicketWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RequestLegacySignalingTicketResponse, error)
- func (c *ClientWithResponses) SendDeviceCommandWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, ...) (*SendDeviceCommandResponse, error)
- func (c *ClientWithResponses) SendDeviceCommandWithResponse(ctx context.Context, deviceId DeviceId, body SendDeviceCommandJSONRequestBody, ...) (*SendDeviceCommandResponse, error)
- func (c *ClientWithResponses) SetChimeVolumeWithResponse(ctx context.Context, deviceId DeviceId, params *SetChimeVolumeParams, ...) (*SetChimeVolumeResponse, error)
- func (c *ClientWithResponses) SetLiveViewEnabledWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, ...) (*SetLiveViewEnabledResponse, error)
- func (c *ClientWithResponses) SetLiveViewEnabledWithResponse(ctx context.Context, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody, ...) (*SetLiveViewEnabledResponse, error)
- func (c *ClientWithResponses) StreamRecordingWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*StreamRecordingResponse, error)
- func (c *ClientWithResponses) SubmitOAuthCredentialsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SubmitOAuthCredentialsResponse, error)
- func (c *ClientWithResponses) SubmitOAuthCredentialsWithFormdataBodyWithResponse(ctx context.Context, body SubmitOAuthCredentialsFormdataRequestBody, ...) (*SubmitOAuthCredentialsResponse, error)
- func (c *ClientWithResponses) TestChimeSoundWithResponse(ctx context.Context, deviceId DeviceId, params *TestChimeSoundParams, ...) (*TestChimeSoundResponse, error)
- func (c *ClientWithResponses) TurnFloodlightOffWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnFloodlightOffResponse, error)
- func (c *ClientWithResponses) TurnFloodlightOnWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnFloodlightOnResponse, error)
- func (c *ClientWithResponses) TurnSirenOffWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnSirenOffResponse, error)
- func (c *ClientWithResponses) TurnSirenOnWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnSirenOnResponse, error)
- func (c *ClientWithResponses) UpdateLegacyDoorbotControlsWithResponse(ctx context.Context, deviceId DeviceId, ...) (*UpdateLegacyDoorbotControlsResponse, error)
- func (c *ClientWithResponses) VerifyOAuthTwoFactorCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VerifyOAuthTwoFactorCodeResponse, error)
- func (c *ClientWithResponses) VerifyOAuthTwoFactorCodeWithFormdataBodyWithResponse(ctx context.Context, body VerifyOAuthTwoFactorCodeFormdataRequestBody, ...) (*VerifyOAuthTwoFactorCodeResponse, error)
- type ClientWithResponsesInterface
- type ConfirmDeleteFavorite
- type DeleteRecordingParams
- type DeleteRecordingResponse
- type Device
- type DeviceCommand
- type DeviceCommandCommandName
- type DeviceDetail
- type DeviceFamilyCode
- type DeviceFeatures
- type DeviceHealth
- type DeviceId
- type DeviceLegacySettings
- type DeviceList
- type DeviceOperationSet
- type DeviceOwner
- type DeviceOwnerId0
- type DeviceOwnerId1
- type DeviceOwner_Id
- func (t DeviceOwner_Id) AsDeviceOwnerId0() (DeviceOwnerId0, error)
- func (t DeviceOwner_Id) AsDeviceOwnerId1() (DeviceOwnerId1, error)
- func (t *DeviceOwner_Id) FromDeviceOwnerId0(v DeviceOwnerId0) error
- func (t *DeviceOwner_Id) FromDeviceOwnerId1(v DeviceOwnerId1) error
- func (t DeviceOwner_Id) MarshalJSON() ([]byte, error)
- func (t *DeviceOwner_Id) MergeDeviceOwnerId0(v DeviceOwnerId0) error
- func (t *DeviceOwner_Id) MergeDeviceOwnerId1(v DeviceOwnerId1) error
- func (t *DeviceOwner_Id) UnmarshalJSON(b []byte) error
- type DeviceSettings
- type DeviceSettingsPatch
- type DeviceTimeline
- type DoorbellDeviceKind
- type EnableExtendedEmergencyCellUsage
- type EndTime
- type ExchangeOrRefreshOAuthTokenFormdataRequestBody
- type ExchangeOrRefreshOAuthTokenResponse
- func (r ExchangeOrRefreshOAuthTokenResponse) ContentType() string
- func (r ExchangeOrRefreshOAuthTokenResponse) GetBody() []byte
- func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON200() *OAuthToken
- func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON400() *AuthFailure
- func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON401() *AuthFailure
- func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON412() *TwoFactorRequired
- func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON429() *RateLimited
- func (r ExchangeOrRefreshOAuthTokenResponse) GetJSONDefault() *AuthFailure
- func (r ExchangeOrRefreshOAuthTokenResponse) Status() string
- func (r ExchangeOrRefreshOAuthTokenResponse) StatusCode() int
- type ExtensibleObject
- type FavoriteRecordingResponse
- type FeatureAvailability
- type FeatureEligibility
- type FeatureEnablement
- type GeoCoordinates
- type GetActiveDingsResponse
- func (r GetActiveDingsResponse) ContentType() string
- func (r GetActiveDingsResponse) GetBody() []byte
- func (r GetActiveDingsResponse) GetJSON200() *RecordingArray
- func (r GetActiveDingsResponse) GetJSONDefault() *HTTPFailure
- func (r GetActiveDingsResponse) Status() string
- func (r GetActiveDingsResponse) StatusCode() int
- type GetCapturedLocationTicketsParams
- type GetCapturedLocationTicketsResponse
- func (r GetCapturedLocationTicketsResponse) ContentType() string
- func (r GetCapturedLocationTicketsResponse) GetBody() []byte
- func (r GetCapturedLocationTicketsResponse) GetJSON200() *CapturedTickets
- func (r GetCapturedLocationTicketsResponse) Status() string
- func (r GetCapturedLocationTicketsResponse) StatusCode() int
- type GetDeviceResponse
- type GetDeviceSettingsResponse
- type GetDeviceTimelineParams
- type GetDeviceTimelineResponse
- type GetHistoryDevicesParams
- type GetHistoryDevicesResponse
- type GetLegacyDeviceHealthResponse
- func (r GetLegacyDeviceHealthResponse) ContentType() string
- func (r GetLegacyDeviceHealthResponse) GetBody() []byte
- func (r GetLegacyDeviceHealthResponse) GetJSON200() *LegacyDeviceHealth
- func (r GetLegacyDeviceHealthResponse) GetJSONDefault() *HTTPFailure
- func (r GetLegacyDeviceHealthResponse) Status() string
- func (r GetLegacyDeviceHealthResponse) StatusCode() int
- type GetLegacyDeviceHistoryParams
- type GetLegacyDeviceHistoryResponse
- func (r GetLegacyDeviceHistoryResponse) ContentType() string
- func (r GetLegacyDeviceHistoryResponse) GetBody() []byte
- func (r GetLegacyDeviceHistoryResponse) GetJSON200() *RecordingArray
- func (r GetLegacyDeviceHistoryResponse) GetJSONDefault() *HTTPFailure
- func (r GetLegacyDeviceHistoryResponse) Status() string
- func (r GetLegacyDeviceHistoryResponse) StatusCode() int
- type GetLegacyRecordingShareURLResponse
- func (r GetLegacyRecordingShareURLResponse) ContentType() string
- func (r GetLegacyRecordingShareURLResponse) GetBody() []byte
- func (r GetLegacyRecordingShareURLResponse) GetJSON200() *RecordingShare
- func (r GetLegacyRecordingShareURLResponse) GetJSONDefault() *HTTPFailure
- func (r GetLegacyRecordingShareURLResponse) Status() string
- func (r GetLegacyRecordingShareURLResponse) StatusCode() int
- type GetLegacySnapshotImageResponse
- func (r GetLegacySnapshotImageResponse) ContentType() string
- func (r GetLegacySnapshotImageResponse) GetBody() []byte
- func (r GetLegacySnapshotImageResponse) GetJSONDefault() *HTTPFailure
- func (r GetLegacySnapshotImageResponse) Status() string
- func (r GetLegacySnapshotImageResponse) StatusCode() int
- type GetLocationParams
- type GetLocationResponse
- type HTTPFailure
- type HistoryDevices
- type HistoryFeedItem
- type HttpRequestDoer
- type Include
- type Json
- type JsonValue
- type Kind
- type LegacyDeviceHealth
- type LegacyPasswordGrant
- type LegacyPasswordGrantGrantType
- type LegacySignalingTicket
- type Limit
- type ListDevicesResponse
- type ListLocationDevicesResponse
- type ListLocationGroupsResponse
- type ListLocationsResponse
- type LiveViewSetting
- type LiveViewSettingRequest
- type LocationAddress
- type LocationAttributes
- type LocationDetail
- type LocationGroup
- type LocationGroupDevices
- type LocationGroups
- type LocationID
- type LocationId
- type LocationList
- type LocationMeta
- type LocationResource
- type LocationSubscription
- type LocationSummary
- type MotionSettings
- type MotionSettingsPatch
- type OAuthToken
- type OAuthTokenGrant
- func (t OAuthTokenGrant) AsAuthorizationCodeGrant() (AuthorizationCodeGrant, error)
- func (t OAuthTokenGrant) AsLegacyPasswordGrant() (LegacyPasswordGrant, error)
- func (t OAuthTokenGrant) AsRefreshTokenGrant() (RefreshTokenGrant, error)
- func (t *OAuthTokenGrant) FromAuthorizationCodeGrant(v AuthorizationCodeGrant) error
- func (t *OAuthTokenGrant) FromLegacyPasswordGrant(v LegacyPasswordGrant) error
- func (t *OAuthTokenGrant) FromRefreshTokenGrant(v RefreshTokenGrant) error
- func (t OAuthTokenGrant) MarshalJSON() ([]byte, error)
- func (t *OAuthTokenGrant) MergeAuthorizationCodeGrant(v AuthorizationCodeGrant) error
- func (t *OAuthTokenGrant) MergeLegacyPasswordGrant(v LegacyPasswordGrant) error
- func (t *OAuthTokenGrant) MergeRefreshTokenGrant(v RefreshTokenGrant) error
- func (t *OAuthTokenGrant) UnmarshalJSON(b []byte) error
- type OlderThan
- type Order
- type OtherDeviceKind
- type PTZAutoScan
- type PTZAxisSettings
- type PTZMovement
- type PTZPositions
- type PTZSettings
- type PatchDeviceSettingsJSONRequestBody
- type PatchDeviceSettingsResponse
- type RateLimited
- type Recording
- type RecordingArray
- type RecordingId
- type RecordingShare
- type Recording_Doorbot
- type RefreshLegacySnapshotTimestampJSONRequestBody
- type RefreshLegacySnapshotTimestampResponse
- func (r RefreshLegacySnapshotTimestampResponse) ContentType() string
- func (r RefreshLegacySnapshotTimestampResponse) GetBody() []byte
- func (r RefreshLegacySnapshotTimestampResponse) GetJSON200() *SnapshotTimestampResponse
- func (r RefreshLegacySnapshotTimestampResponse) GetJSONDefault() *HTTPFailure
- func (r RefreshLegacySnapshotTimestampResponse) Status() string
- func (r RefreshLegacySnapshotTimestampResponse) StatusCode() int
- type RefreshTokenGrant
- type RefreshTokenGrantGrantType
- type RegisterClientSessionJSONRequestBody
- type RegisterClientSessionResponse
- func (r RegisterClientSessionResponse) ContentType() string
- func (r RegisterClientSessionResponse) GetBody() []byte
- func (r RegisterClientSessionResponse) GetJSON200() *Json
- func (r RegisterClientSessionResponse) GetJSONDefault() *HTTPFailure
- func (r RegisterClientSessionResponse) Status() string
- func (r RegisterClientSessionResponse) StatusCode() int
- type RequestEditorFn
- type RequestLegacySignalingTicketResponse
- func (r RequestLegacySignalingTicketResponse) ContentType() string
- func (r RequestLegacySignalingTicketResponse) GetBody() []byte
- func (r RequestLegacySignalingTicketResponse) GetJSON200() *LegacySignalingTicket
- func (r RequestLegacySignalingTicketResponse) Status() string
- func (r RequestLegacySignalingTicketResponse) StatusCode() int
- type RequestedTransport
- type SendDeviceCommandJSONRequestBody
- type SendDeviceCommandResponse
- type SetChimeVolumeParams
- type SetChimeVolumeResponse
- func (r SetChimeVolumeResponse) ContentType() string
- func (r SetChimeVolumeResponse) GetBody() []byte
- func (r SetChimeVolumeResponse) GetJSON200() *Json
- func (r SetChimeVolumeResponse) GetJSONDefault() *HTTPFailure
- func (r SetChimeVolumeResponse) Status() string
- func (r SetChimeVolumeResponse) StatusCode() int
- type SetLiveViewEnabledJSONRequestBody
- type SetLiveViewEnabledResponse
- type SettingsObject
- type SignInForm
- type SignInState
- type SirenOn
- type SirenStatus
- type SnapshotTimestamp
- type SnapshotTimestampRequest
- type SnapshotTimestampResponse
- type SourceIds
- type StartTime
- type StreamRecordingResponse
- type StreamRecordingResponse302Headers
- type SubmitOAuthCredentialsFormdataRequestBody
- type SubmitOAuthCredentialsResponse
- func (r SubmitOAuthCredentialsResponse) ContentType() string
- func (r SubmitOAuthCredentialsResponse) GetBody() []byte
- func (r SubmitOAuthCredentialsResponse) GetJSON200() *SignInState
- func (r SubmitOAuthCredentialsResponse) GetJSON412() *TwoFactorRequired
- func (r SubmitOAuthCredentialsResponse) GetJSONDefault() *AuthFailure
- func (r SubmitOAuthCredentialsResponse) Status() string
- func (r SubmitOAuthCredentialsResponse) StatusCode() int
- type SubmitOAuthCredentialsResponse302Headers
- type TestChimeSoundParams
- type TestChimeSoundParamsKind
- type TestChimeSoundResponse
- func (r TestChimeSoundResponse) ContentType() string
- func (r TestChimeSoundResponse) GetBody() []byte
- func (r TestChimeSoundResponse) GetJSON200() *Json
- func (r TestChimeSoundResponse) GetJSONDefault() *HTTPFailure
- func (r TestChimeSoundResponse) Status() string
- func (r TestChimeSoundResponse) StatusCode() int
- type TimelineDevice
- type TimelineEvent
- type TurnFloodlightOffResponse
- func (r TurnFloodlightOffResponse) ContentType() string
- func (r TurnFloodlightOffResponse) GetBody() []byte
- func (r TurnFloodlightOffResponse) GetJSON200() *Json
- func (r TurnFloodlightOffResponse) GetJSONDefault() *HTTPFailure
- func (r TurnFloodlightOffResponse) Status() string
- func (r TurnFloodlightOffResponse) StatusCode() int
- type TurnFloodlightOnResponse
- func (r TurnFloodlightOnResponse) ContentType() string
- func (r TurnFloodlightOnResponse) GetBody() []byte
- func (r TurnFloodlightOnResponse) GetJSON200() *Json
- func (r TurnFloodlightOnResponse) GetJSONDefault() *HTTPFailure
- func (r TurnFloodlightOnResponse) Status() string
- func (r TurnFloodlightOnResponse) StatusCode() int
- type TurnSirenOffResponse
- type TurnSirenOnResponse
- type TwoFactorForm
- type TwoFactorFormRememberMe
- type TwoFactorRequired
- type UpdateLegacyDoorbotControlsParams
- type UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable
- type UpdateLegacyDoorbotControlsResponse
- func (r UpdateLegacyDoorbotControlsResponse) ContentType() string
- func (r UpdateLegacyDoorbotControlsResponse) GetBody() []byte
- func (r UpdateLegacyDoorbotControlsResponse) GetJSON200() *Json
- func (r UpdateLegacyDoorbotControlsResponse) GetJSONDefault() *HTTPFailure
- func (r UpdateLegacyDoorbotControlsResponse) Status() string
- func (r UpdateLegacyDoorbotControlsResponse) StatusCode() int
- type VerifyOAuthTwoFactorCodeFormdataRequestBody
- type VerifyOAuthTwoFactorCodeResponse
- func (r VerifyOAuthTwoFactorCodeResponse) ContentType() string
- func (r VerifyOAuthTwoFactorCodeResponse) GetBody() []byte
- func (r VerifyOAuthTwoFactorCodeResponse) GetJSON200() *Json
- func (r VerifyOAuthTwoFactorCodeResponse) GetJSON201() *Json
- func (r VerifyOAuthTwoFactorCodeResponse) GetJSON400() *AuthFailure
- func (r VerifyOAuthTwoFactorCodeResponse) GetJSON401() *AuthFailure
- func (r VerifyOAuthTwoFactorCodeResponse) GetJSONDefault() *AuthFailure
- func (r VerifyOAuthTwoFactorCodeResponse) Status() string
- func (r VerifyOAuthTwoFactorCodeResponse) StatusCode() int
- type VideoRenderingFeature
- type VideoSettings
- type VolumeSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBeginOrContinueOAuthAuthorizationRequest ¶
func NewBeginOrContinueOAuthAuthorizationRequest(server string, params *BeginOrContinueOAuthAuthorizationParams) (*http.Request, error)
NewBeginOrContinueOAuthAuthorizationRequest constructs an http.Request for the BeginOrContinueOAuthAuthorization method
func NewDeleteRecordingRequest ¶
func NewDeleteRecordingRequest(server string, recordingId RecordingId, params *DeleteRecordingParams) (*http.Request, error)
NewDeleteRecordingRequest constructs an http.Request for the DeleteRecording method
func NewExchangeOrRefreshOAuthTokenRequestWithBody ¶
func NewExchangeOrRefreshOAuthTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewExchangeOrRefreshOAuthTokenRequestWithBody constructs an http.Request for the ExchangeOrRefreshOAuthToken method, with any body, and a specified content type
func NewExchangeOrRefreshOAuthTokenRequestWithFormdataBody ¶
func NewExchangeOrRefreshOAuthTokenRequestWithFormdataBody(server string, body ExchangeOrRefreshOAuthTokenFormdataRequestBody) (*http.Request, error)
NewExchangeOrRefreshOAuthTokenRequestWithFormdataBody calls the generic ExchangeOrRefreshOAuthToken builder with application/x-www-form-urlencoded body
func NewFavoriteRecordingRequest ¶
func NewFavoriteRecordingRequest(server string, recordingId RecordingId) (*http.Request, error)
NewFavoriteRecordingRequest constructs an http.Request for the FavoriteRecording method
func NewGetActiveDingsRequest ¶
NewGetActiveDingsRequest constructs an http.Request for the GetActiveDings method
func NewGetCapturedLocationTicketsRequest ¶
func NewGetCapturedLocationTicketsRequest(server string, params *GetCapturedLocationTicketsParams) (*http.Request, error)
NewGetCapturedLocationTicketsRequest constructs an http.Request for the GetCapturedLocationTickets method
func NewGetDeviceRequest ¶
NewGetDeviceRequest constructs an http.Request for the GetDevice method
func NewGetDeviceSettingsRequest ¶
NewGetDeviceSettingsRequest constructs an http.Request for the GetDeviceSettings method
func NewGetDeviceTimelineRequest ¶
func NewGetDeviceTimelineRequest(server string, deviceId DeviceId, params *GetDeviceTimelineParams) (*http.Request, error)
NewGetDeviceTimelineRequest constructs an http.Request for the GetDeviceTimeline method
func NewGetHistoryDevicesRequest ¶
func NewGetHistoryDevicesRequest(server string, params *GetHistoryDevicesParams) (*http.Request, error)
NewGetHistoryDevicesRequest constructs an http.Request for the GetHistoryDevices method
func NewGetLegacyDeviceHealthRequest ¶
NewGetLegacyDeviceHealthRequest constructs an http.Request for the GetLegacyDeviceHealth method
func NewGetLegacyDeviceHistoryRequest ¶
func NewGetLegacyDeviceHistoryRequest(server string, deviceId DeviceId, params *GetLegacyDeviceHistoryParams) (*http.Request, error)
NewGetLegacyDeviceHistoryRequest constructs an http.Request for the GetLegacyDeviceHistory method
func NewGetLegacyRecordingShareURLRequest ¶
func NewGetLegacyRecordingShareURLRequest(server string, recordingId RecordingId) (*http.Request, error)
NewGetLegacyRecordingShareURLRequest constructs an http.Request for the GetLegacyRecordingShareURL method
func NewGetLegacySnapshotImageRequest ¶
NewGetLegacySnapshotImageRequest constructs an http.Request for the GetLegacySnapshotImage method
func NewGetLocationRequest ¶
func NewGetLocationRequest(server string, locationId LocationId, params *GetLocationParams) (*http.Request, error)
NewGetLocationRequest constructs an http.Request for the GetLocation method
func NewListDevicesRequest ¶
NewListDevicesRequest constructs an http.Request for the ListDevices method
func NewListLocationDevicesRequest ¶
func NewListLocationDevicesRequest(server string, locationId LocationId) (*http.Request, error)
NewListLocationDevicesRequest constructs an http.Request for the ListLocationDevices method
func NewListLocationGroupsRequest ¶
func NewListLocationGroupsRequest(server string, locationId LocationId) (*http.Request, error)
NewListLocationGroupsRequest constructs an http.Request for the ListLocationGroups method
func NewListLocationsRequest ¶
NewListLocationsRequest constructs an http.Request for the ListLocations method
func NewPatchDeviceSettingsRequest ¶
func NewPatchDeviceSettingsRequest(server string, deviceId DeviceId, body PatchDeviceSettingsJSONRequestBody) (*http.Request, error)
NewPatchDeviceSettingsRequest calls the generic PatchDeviceSettings builder with application/json body
func NewPatchDeviceSettingsRequestWithBody ¶
func NewPatchDeviceSettingsRequestWithBody(server string, deviceId DeviceId, contentType string, body io.Reader) (*http.Request, error)
NewPatchDeviceSettingsRequestWithBody constructs an http.Request for the PatchDeviceSettings method, with any body, and a specified content type
func NewRefreshLegacySnapshotTimestampRequest ¶
func NewRefreshLegacySnapshotTimestampRequest(server string, body RefreshLegacySnapshotTimestampJSONRequestBody) (*http.Request, error)
NewRefreshLegacySnapshotTimestampRequest calls the generic RefreshLegacySnapshotTimestamp builder with application/json body
func NewRefreshLegacySnapshotTimestampRequestWithBody ¶
func NewRefreshLegacySnapshotTimestampRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRefreshLegacySnapshotTimestampRequestWithBody constructs an http.Request for the RefreshLegacySnapshotTimestamp method, with any body, and a specified content type
func NewRegisterClientSessionRequest ¶
func NewRegisterClientSessionRequest(server string, body RegisterClientSessionJSONRequestBody) (*http.Request, error)
NewRegisterClientSessionRequest calls the generic RegisterClientSession builder with application/json body
func NewRegisterClientSessionRequestWithBody ¶
func NewRegisterClientSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRegisterClientSessionRequestWithBody constructs an http.Request for the RegisterClientSession method, with any body, and a specified content type
func NewRequestLegacySignalingTicketRequest ¶
NewRequestLegacySignalingTicketRequest constructs an http.Request for the RequestLegacySignalingTicket method
func NewSendDeviceCommandRequest ¶
func NewSendDeviceCommandRequest(server string, deviceId DeviceId, body SendDeviceCommandJSONRequestBody) (*http.Request, error)
NewSendDeviceCommandRequest calls the generic SendDeviceCommand builder with application/json body
func NewSendDeviceCommandRequestWithBody ¶
func NewSendDeviceCommandRequestWithBody(server string, deviceId DeviceId, contentType string, body io.Reader) (*http.Request, error)
NewSendDeviceCommandRequestWithBody constructs an http.Request for the SendDeviceCommand method, with any body, and a specified content type
func NewSetChimeVolumeRequest ¶
func NewSetChimeVolumeRequest(server string, deviceId DeviceId, params *SetChimeVolumeParams) (*http.Request, error)
NewSetChimeVolumeRequest constructs an http.Request for the SetChimeVolume method
func NewSetLiveViewEnabledRequest ¶
func NewSetLiveViewEnabledRequest(server string, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody) (*http.Request, error)
NewSetLiveViewEnabledRequest calls the generic SetLiveViewEnabled builder with application/json body
func NewSetLiveViewEnabledRequestWithBody ¶
func NewSetLiveViewEnabledRequestWithBody(server string, deviceId DeviceId, contentType string, body io.Reader) (*http.Request, error)
NewSetLiveViewEnabledRequestWithBody constructs an http.Request for the SetLiveViewEnabled method, with any body, and a specified content type
func NewStreamRecordingRequest ¶
func NewStreamRecordingRequest(server string, recordingId RecordingId) (*http.Request, error)
NewStreamRecordingRequest constructs an http.Request for the StreamRecording method
func NewSubmitOAuthCredentialsRequestWithBody ¶
func NewSubmitOAuthCredentialsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSubmitOAuthCredentialsRequestWithBody constructs an http.Request for the SubmitOAuthCredentials method, with any body, and a specified content type
func NewSubmitOAuthCredentialsRequestWithFormdataBody ¶
func NewSubmitOAuthCredentialsRequestWithFormdataBody(server string, body SubmitOAuthCredentialsFormdataRequestBody) (*http.Request, error)
NewSubmitOAuthCredentialsRequestWithFormdataBody calls the generic SubmitOAuthCredentials builder with application/x-www-form-urlencoded body
func NewTestChimeSoundRequest ¶
func NewTestChimeSoundRequest(server string, deviceId DeviceId, params *TestChimeSoundParams) (*http.Request, error)
NewTestChimeSoundRequest constructs an http.Request for the TestChimeSound method
func NewTurnFloodlightOffRequest ¶
NewTurnFloodlightOffRequest constructs an http.Request for the TurnFloodlightOff method
func NewTurnFloodlightOnRequest ¶
NewTurnFloodlightOnRequest constructs an http.Request for the TurnFloodlightOn method
func NewTurnSirenOffRequest ¶
NewTurnSirenOffRequest constructs an http.Request for the TurnSirenOff method
func NewTurnSirenOnRequest ¶
NewTurnSirenOnRequest constructs an http.Request for the TurnSirenOn method
func NewUpdateLegacyDoorbotControlsRequest ¶
func NewUpdateLegacyDoorbotControlsRequest(server string, deviceId DeviceId, params *UpdateLegacyDoorbotControlsParams) (*http.Request, error)
NewUpdateLegacyDoorbotControlsRequest constructs an http.Request for the UpdateLegacyDoorbotControls method
func NewVerifyOAuthTwoFactorCodeRequestWithBody ¶
func NewVerifyOAuthTwoFactorCodeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewVerifyOAuthTwoFactorCodeRequestWithBody constructs an http.Request for the VerifyOAuthTwoFactorCode method, with any body, and a specified content type
func NewVerifyOAuthTwoFactorCodeRequestWithFormdataBody ¶
func NewVerifyOAuthTwoFactorCodeRequestWithFormdataBody(server string, body VerifyOAuthTwoFactorCodeFormdataRequestBody) (*http.Request, error)
NewVerifyOAuthTwoFactorCodeRequestWithFormdataBody calls the generic VerifyOAuthTwoFactorCode builder with application/x-www-form-urlencoded body
Types ¶
type AuthFailure ¶
type AuthFailure = JsonValue
AuthFailure Explicit escape hatch for fields without observed structure or typed error responses.
type AuthorizationCodeGrant ¶
type AuthorizationCodeGrant struct {
ClientId string `json:"client_id"`
Code string `json:"code"`
CodeVerifier string `json:"code_verifier"`
GrantType AuthorizationCodeGrantGrantType `json:"grant_type"`
RedirectUri string `json:"redirect_uri"`
}
AuthorizationCodeGrant defines model for AuthorizationCodeGrant.
type AuthorizationCodeGrantGrantType ¶
type AuthorizationCodeGrantGrantType string
AuthorizationCodeGrantGrantType defines model for AuthorizationCodeGrant.GrantType.
const (
AuthorizationCode AuthorizationCodeGrantGrantType = "authorization_code"
)
Defines values for AuthorizationCodeGrantGrantType.
func (AuthorizationCodeGrantGrantType) Valid ¶
func (e AuthorizationCodeGrantGrantType) Valid() bool
Valid indicates whether the value is a known member of the AuthorizationCodeGrantGrantType enum.
type BeginOrContinueOAuthAuthorizationParams ¶
type BeginOrContinueOAuthAuthorizationParams struct {
RedirectUri *string `form:"redirect_uri,omitempty" json:"redirect_uri,omitempty"`
ClientId *string `form:"client_id,omitempty" json:"client_id,omitempty"`
ResponseType *BeginOrContinueOAuthAuthorizationParamsResponseType `form:"response_type,omitempty" json:"response_type,omitempty"`
// Prompt The implemented PKCE flow sends login; other OAuth prompts may exist.
Prompt *string `form:"prompt,omitempty" json:"prompt,omitempty"`
State *string `form:"state,omitempty" json:"state,omitempty"`
// Scope The implemented client requests the client scope.
Scope *string `form:"scope,omitempty" json:"scope,omitempty"`
CodeChallenge *string `form:"code_challenge,omitempty" json:"code_challenge,omitempty"`
CodeChallengeMethod *BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod `form:"code_challenge_method,omitempty" json:"code_challenge_method,omitempty"`
DeviceModel *string `form:"device_model,omitempty" json:"device_model,omitempty"`
AppVersion *string `form:"app_version,omitempty" json:"app_version,omitempty"`
// DarkMode Boolean serialized as a query string.
DarkMode *bool `form:"dark_mode,omitempty" json:"dark_mode,omitempty"`
DeviceBrand *string `form:"device_brand,omitempty" json:"device_brand,omitempty"`
DeviceOsVersion *string `form:"device_os_version,omitempty" json:"device_os_version,omitempty"`
AppBrand *string `form:"app_brand,omitempty" json:"app_brand,omitempty"`
HardwareId *string `form:"hardware_id,omitempty" json:"hardware_id,omitempty"`
}
BeginOrContinueOAuthAuthorizationParams defines parameters for BeginOrContinueOAuthAuthorization.
type BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod ¶
type BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod string
BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod defines parameters for BeginOrContinueOAuthAuthorization.
const (
S256 BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod = "S256"
)
Defines values for BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod.
func (BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod) Valid ¶
func (e BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod) Valid() bool
Valid indicates whether the value is a known member of the BeginOrContinueOAuthAuthorizationParamsCodeChallengeMethod enum.
type BeginOrContinueOAuthAuthorizationParamsResponseType ¶
type BeginOrContinueOAuthAuthorizationParamsResponseType string
BeginOrContinueOAuthAuthorizationParamsResponseType defines parameters for BeginOrContinueOAuthAuthorization.
const (
Code BeginOrContinueOAuthAuthorizationParamsResponseType = "code"
)
Defines values for BeginOrContinueOAuthAuthorizationParamsResponseType.
func (BeginOrContinueOAuthAuthorizationParamsResponseType) Valid ¶
func (e BeginOrContinueOAuthAuthorizationParamsResponseType) Valid() bool
Valid indicates whether the value is a known member of the BeginOrContinueOAuthAuthorizationParamsResponseType enum.
type BeginOrContinueOAuthAuthorizationResponse ¶
type BeginOrContinueOAuthAuthorizationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *AuthFailure
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *BeginOrContinueOAuthAuthorizationResponse302Headers
}
func ParseBeginOrContinueOAuthAuthorizationResponse ¶
func ParseBeginOrContinueOAuthAuthorizationResponse(rsp *http.Response) (*BeginOrContinueOAuthAuthorizationResponse, error)
ParseBeginOrContinueOAuthAuthorizationResponse parses an HTTP response from a BeginOrContinueOAuthAuthorizationWithResponse call
func (BeginOrContinueOAuthAuthorizationResponse) ContentType ¶
func (r BeginOrContinueOAuthAuthorizationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (BeginOrContinueOAuthAuthorizationResponse) GetBody ¶
func (r BeginOrContinueOAuthAuthorizationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (BeginOrContinueOAuthAuthorizationResponse) GetJSONDefault ¶
func (r BeginOrContinueOAuthAuthorizationResponse) GetJSONDefault() *AuthFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (BeginOrContinueOAuthAuthorizationResponse) Status ¶
func (r BeginOrContinueOAuthAuthorizationResponse) Status() string
Status returns HTTPResponse.Status
func (BeginOrContinueOAuthAuthorizationResponse) StatusCode ¶
func (r BeginOrContinueOAuthAuthorizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BeginOrContinueOAuthAuthorizationResponse302Headers ¶
type BeginOrContinueOAuthAuthorizationResponse302Headers struct {
Location string
}
BeginOrContinueOAuthAuthorizationResponse302Headers the declared response headers of an HTTP 302 response for BeginOrContinueOAuthAuthorization
type CameraDeviceKind ¶
type CameraDeviceKind string
CameraDeviceKind Known camera kinds from captured and baseline inventories.
const ( CocoaCamera CameraDeviceKind = "cocoa_camera" CocoaFloodlight CameraDeviceKind = "cocoa_floodlight" CocoaSpotlight CameraDeviceKind = "cocoa_spotlight" FloodlightPro CameraDeviceKind = "floodlight_pro" FloodlightV2 CameraDeviceKind = "floodlight_v2" HpCamV1 CameraDeviceKind = "hp_cam_v1" HpCamV2 CameraDeviceKind = "hp_cam_v2" SpotlightwV2 CameraDeviceKind = "spotlightw_v2" StickupCam CameraDeviceKind = "stickup_cam" StickupCamElite CameraDeviceKind = "stickup_cam_elite" StickupCamLongfin CameraDeviceKind = "stickup_cam_longfin" StickupCamLunar CameraDeviceKind = "stickup_cam_lunar" StickupCamMini CameraDeviceKind = "stickup_cam_mini" StickupCamMiniPtzV1 CameraDeviceKind = "stickup_cam_mini_ptz_v1" StickupCamMiniV2 CameraDeviceKind = "stickup_cam_mini_v2" StickupCamV3 CameraDeviceKind = "stickup_cam_v3" StickupCamV4 CameraDeviceKind = "stickup_cam_v4" StickupCamWired CameraDeviceKind = "stickup_cam_wired" )
Defines values for CameraDeviceKind.
func (CameraDeviceKind) Valid ¶
func (e CameraDeviceKind) Valid() bool
Valid indicates whether the value is a known member of the CameraDeviceKind enum.
type CapturedTickets ¶
type CapturedTickets struct {
Assets *[]JsonValue `json:"assets,omitempty"`
Host string `json:"host"`
SubscriptionTopics *[]string `json:"subscriptionTopics,omitempty"`
Ticket string `json:"ticket"`
AdditionalProperties map[string]interface{} `json:"-"`
}
CapturedTickets defines model for CapturedTickets.
func (CapturedTickets) Get ¶
func (a CapturedTickets) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for CapturedTickets. Returns the specified element and whether it was found
func (CapturedTickets) MarshalJSON ¶
func (a CapturedTickets) MarshalJSON() ([]byte, error)
Override default JSON handling for CapturedTickets to handle AdditionalProperties
func (*CapturedTickets) Set ¶
func (a *CapturedTickets) Set(fieldName string, value interface{})
Setter for additional properties for CapturedTickets
func (*CapturedTickets) UnmarshalJSON ¶
func (a *CapturedTickets) UnmarshalJSON(b []byte) error
Override default JSON handling for CapturedTickets to handle AdditionalProperties
type ChimeDeviceKind ¶
type ChimeDeviceKind string
ChimeDeviceKind Known chime kinds from captured and baseline inventories.
const ( Chime ChimeDeviceKind = "chime" ChimePro ChimeDeviceKind = "chime_pro" ChimeProV2 ChimeDeviceKind = "chime_pro_v2" ChimeV2 ChimeDeviceKind = "chime_v2" )
Defines values for ChimeDeviceKind.
func (ChimeDeviceKind) Valid ¶
func (e ChimeDeviceKind) Valid() bool
Valid indicates whether the value is a known member of the ChimeDeviceKind enum.
type ChimeSettings ¶
type ChimeSettings struct {
// Duration Chime duration in seconds.
Duration *int `json:"duration,omitempty"`
Enable *bool `json:"enable,omitempty"`
// Type Captured chime type code is 2; other numeric codes remain valid.
Type *int `json:"type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ChimeSettings defines model for ChimeSettings.
func (ChimeSettings) Get ¶
func (a ChimeSettings) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ChimeSettings. Returns the specified element and whether it was found
func (ChimeSettings) MarshalJSON ¶
func (a ChimeSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for ChimeSettings to handle AdditionalProperties
func (*ChimeSettings) Set ¶
func (a *ChimeSettings) Set(fieldName string, value interface{})
Setter for additional properties for ChimeSettings
func (*ChimeSettings) UnmarshalJSON ¶
func (a *ChimeSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for ChimeSettings to handle AdditionalProperties
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) BeginOrContinueOAuthAuthorization ¶
func (c *Client) BeginOrContinueOAuthAuthorization(ctx context.Context, params *BeginOrContinueOAuthAuthorizationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
BeginOrContinueOAuthAuthorization performs a GET /oauth/v2/authorize (the `BeginOrContinueOAuthAuthorization` operationId) request.
Existing Go PKCE flow. The first request sends the authorization query parameters; later requests reuse the cookie-backed session and may omit them. Redirect state is checked by the client. This route is not present in the C1 HTTP captures.
func (*Client) DeleteRecording ¶
func (c *Client) DeleteRecording(ctx context.Context, recordingId RecordingId, params *DeleteRecordingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteRecording performs a DELETE /clients_api/dings/{recording_id} (the `DeleteRecording` operationId) request.
func (*Client) ExchangeOrRefreshOAuthTokenWithBody ¶
func (c *Client) ExchangeOrRefreshOAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExchangeOrRefreshOAuthTokenWithBody performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request, with any type of body and a specified content type.
Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
func (*Client) ExchangeOrRefreshOAuthTokenWithFormdataBody ¶
func (c *Client) ExchangeOrRefreshOAuthTokenWithFormdataBody(ctx context.Context, body ExchangeOrRefreshOAuthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ExchangeOrRefreshOAuthTokenWithFormdataBody performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request. Takes a body of the `application/x-www-form-urlencoded` content type.
Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
func (*Client) FavoriteRecording ¶
func (c *Client) FavoriteRecording(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
FavoriteRecording performs a PUT /clients_api/dings/{recording_id}/favorite (the `FavoriteRecording` operationId) request.
func (*Client) GetActiveDings ¶
func (c *Client) GetActiveDings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetActiveDings performs a GET /clients_api/dings/active (the `GetActiveDings` operationId) request.
Existing Go active-dings route. No matching C1 capture was identified.
func (*Client) GetCapturedLocationTickets ¶
func (c *Client) GetCapturedLocationTickets(ctx context.Context, params *GetCapturedLocationTicketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCapturedLocationTickets performs a GET /api/v1/clap/tickets (the `GetCapturedLocationTickets` operationId) request.
Captured GET route. Its relationship to the existing POST signaling bootstrap below is not established.
func (*Client) GetDevice ¶
func (c *Client) GetDevice(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDevice performs a GET /device_info/v3/devices/{device_id} (the `GetDevice` operationId) request.
func (*Client) GetDeviceSettings ¶
func (c *Client) GetDeviceSettings(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDeviceSettings performs a GET /devices/v1/devices/{device_id}/settings (the `GetDeviceSettings` operationId) request.
Captured response is extensible; typed Go API exposes motion_detection_enabled only.
func (*Client) GetDeviceTimeline ¶
func (c *Client) GetDeviceTimeline(ctx context.Context, deviceId DeviceId, params *GetDeviceTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDeviceTimeline performs a GET /evm/v2/timeline/devices/{device_id} (the `GetDeviceTimeline` operationId) request.
func (*Client) GetHistoryDevices ¶
func (c *Client) GetHistoryDevices(ctx context.Context, params *GetHistoryDevicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryDevices performs a GET /evm/v3/history/devices (the `GetHistoryDevices` operationId) request.
func (*Client) GetLegacyDeviceHealth ¶
func (c *Client) GetLegacyDeviceHealth(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLegacyDeviceHealth performs a GET /clients_api/ring_devices/{device_id}/health (the `GetLegacyDeviceHealth` operationId) request.
Generic device health route. The captured HTTP set has no matching health response; SDK tests use local fixtures only.
func (*Client) GetLegacyDeviceHistory ¶
func (c *Client) GetLegacyDeviceHistory(ctx context.Context, deviceId DeviceId, params *GetLegacyDeviceHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLegacyDeviceHistory performs a GET /clients_api/doorbots/{device_id}/history (the `GetLegacyDeviceHistory` operationId) request.
Existing Go history operation uses this doorbot path. The Go API exposes limit and kind; older_than is documented but not sent by the client. C1 history routes use EVM endpoints and are specified separately.
func (*Client) GetLegacyRecordingShareURL ¶
func (c *Client) GetLegacyRecordingShareURL(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLegacyRecordingShareURL performs a GET /clients_api/dings/{recording_id}/share/play (the `GetLegacyRecordingShareURL` operationId) request.
Legacy share/play response, replayed synthetically; no matching C1 response.
func (*Client) GetLegacySnapshotImage ¶
func (c *Client) GetLegacySnapshotImage(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLegacySnapshotImage performs a GET /clients_api/snapshots/image/{device_id} (the `GetLegacySnapshotImage` operationId) request.
Legacy image download after a newer timestamp appears; response shape is synthetic replay evidence.
func (*Client) GetLocation ¶
func (c *Client) GetLocation(ctx context.Context, locationId LocationId, params *GetLocationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLocation performs a GET /location_info/v4/locations/{location_id} (the `GetLocation` operationId) request.
func (*Client) ListDevices ¶
func (c *Client) ListDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDevices performs a GET /device_info/v3/devices (the `ListDevices` operationId) request.
func (*Client) ListLocationDevices ¶
func (c *Client) ListLocationDevices(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLocationDevices performs a GET /groups/v1/locations/{location_id}/devices (the `ListLocationDevices` operationId) request.
func (*Client) ListLocationGroups ¶
func (c *Client) ListLocationGroups(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLocationGroups performs a GET /groups/v1/locations/{location_id}/groups (the `ListLocationGroups` operationId) request.
func (*Client) ListLocations ¶
func (c *Client) ListLocations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListLocations performs a GET /location_info/v3/locations (the `ListLocations` operationId) request.
func (*Client) PatchDeviceSettings ¶
func (c *Client) PatchDeviceSettings(ctx context.Context, deviceId DeviceId, body PatchDeviceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchDeviceSettings performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request. Takes a body of the `application/json` content type.
The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
func (*Client) PatchDeviceSettingsWithBody ¶
func (c *Client) PatchDeviceSettingsWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchDeviceSettingsWithBody performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request, with any type of body and a specified content type.
The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
func (*Client) RefreshLegacySnapshotTimestamp ¶
func (c *Client) RefreshLegacySnapshotTimestamp(ctx context.Context, body RefreshLegacySnapshotTimestampJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshLegacySnapshotTimestamp performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request. Takes a body of the `application/json` content type.
Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
func (*Client) RefreshLegacySnapshotTimestampWithBody ¶
func (c *Client) RefreshLegacySnapshotTimestampWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RefreshLegacySnapshotTimestampWithBody performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request, with any type of body and a specified content type.
Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
func (*Client) RegisterClientSession ¶
func (c *Client) RegisterClientSession(ctx context.Context, body RegisterClientSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterClientSession performs a POST /clients_api/session (the `RegisterClientSession` operationId) request. Takes a body of the `application/json` content type.
Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
func (*Client) RegisterClientSessionWithBody ¶
func (c *Client) RegisterClientSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RegisterClientSessionWithBody performs a POST /clients_api/session (the `RegisterClientSession` operationId) request, with any type of body and a specified content type.
Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
func (*Client) RequestLegacySignalingTicket ¶
func (c *Client) RequestLegacySignalingTicket(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
RequestLegacySignalingTicket performs a POST /api/v1/clap/ticket/request/signalsocket (the `RequestLegacySignalingTicket` operationId) request.
Existing Go signaling bootstrap. This POST route is implemented and covered by local tests, but was not found in the C1 HTTP recordings. It is distinct from the captured GET /api/v1/clap/tickets operation.
func (*Client) SendDeviceCommand ¶
func (c *Client) SendDeviceCommand(ctx context.Context, deviceId DeviceId, body SendDeviceCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SendDeviceCommand performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request. Takes a body of the `application/json` content type.
func (*Client) SendDeviceCommandWithBody ¶
func (c *Client) SendDeviceCommandWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendDeviceCommandWithBody performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request, with any type of body and a specified content type.
func (*Client) SetChimeVolume ¶
func (c *Client) SetChimeVolume(ctx context.Context, deviceId DeviceId, params *SetChimeVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChimeVolume performs a PUT /clients_api/chimes/{device_id} (the `SetChimeVolume` operationId) request.
Legacy volume update. The client requires description to reproduce the synthetic replay request shape; no capture proves the server requires that query field for volume changes.
func (*Client) SetLiveViewEnabled ¶
func (c *Client) SetLiveViewEnabled(ctx context.Context, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SetLiveViewEnabled performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request. Takes a body of the `application/json` content type.
func (*Client) SetLiveViewEnabledWithBody ¶
func (c *Client) SetLiveViewEnabledWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetLiveViewEnabledWithBody performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request, with any type of body and a specified content type.
func (*Client) StreamRecording ¶
func (c *Client) StreamRecording(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
StreamRecording performs a GET /clients_api/dings/{recording_id}/recording (the `StreamRecording` operationId) request.
Existing Go method returns the response body as a streaming VideoStream; the caller owns and must close Body. It requests video/mp4 and does not buffer the media. Go's default http.Client follows redirects according to its CheckRedirect policy; a custom client may change that behavior. No sanitized recording response establishes redirect or media-host details.
func (*Client) SubmitOAuthCredentialsWithBody ¶
func (c *Client) SubmitOAuthCredentialsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitOAuthCredentialsWithBody performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request, with any type of body and a specified content type.
Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
func (*Client) SubmitOAuthCredentialsWithFormdataBody ¶
func (c *Client) SubmitOAuthCredentialsWithFormdataBody(ctx context.Context, body SubmitOAuthCredentialsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitOAuthCredentialsWithFormdataBody performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request. Takes a body of the `application/x-www-form-urlencoded` content type.
Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
func (*Client) TestChimeSound ¶
func (c *Client) TestChimeSound(ctx context.Context, deviceId DeviceId, params *TestChimeSoundParams, reqEditors ...RequestEditorFn) (*http.Response, error)
TestChimeSound performs a POST /clients_api/chimes/{device_id}/play_sound (the `TestChimeSound` operationId) request.
Legacy sound request from synthetic replay.
func (*Client) TurnFloodlightOff ¶
func (c *Client) TurnFloodlightOff(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
TurnFloodlightOff performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_off (the `TurnFloodlightOff` operationId) request.
Legacy off path; no corresponding captured or synthetic request fixture.
func (*Client) TurnFloodlightOn ¶
func (c *Client) TurnFloodlightOn(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
TurnFloodlightOn performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_on (the `TurnFloodlightOn` operationId) request.
Legacy light-on request from synthetic replay.
func (*Client) TurnSirenOff ¶
func (c *Client) TurnSirenOff(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
TurnSirenOff performs a PUT /clients_api/doorbots/{device_id}/siren_off (the `TurnSirenOff` operationId) request.
func (*Client) TurnSirenOn ¶
func (c *Client) TurnSirenOn(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
TurnSirenOn performs a PUT /clients_api/doorbots/{device_id}/siren_on (the `TurnSirenOn` operationId) request.
No duration query or request body is present in the capture.
func (*Client) UpdateLegacyDoorbotControls ¶
func (c *Client) UpdateLegacyDoorbotControls(ctx context.Context, deviceId DeviceId, params *UpdateLegacyDoorbotControlsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateLegacyDoorbotControls performs a PUT /clients_api/doorbots/{device_id} (the `UpdateLegacyDoorbotControls` operationId) request.
Legacy doorbell-volume or one in-home chime setting; query variants come from portable synthetic fixtures, not a C1 field capture. The client requires description to reproduce the replayed request shape; server necessity is unverified. A separate captured doorbot PUT sent a description and an empty settings object.
func (*Client) VerifyOAuthTwoFactorCodeWithBody ¶
func (c *Client) VerifyOAuthTwoFactorCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VerifyOAuthTwoFactorCodeWithBody performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request, with any type of body and a specified content type.
Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
func (*Client) VerifyOAuthTwoFactorCodeWithFormdataBody ¶
func (c *Client) VerifyOAuthTwoFactorCodeWithFormdataBody(ctx context.Context, body VerifyOAuthTwoFactorCodeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
VerifyOAuthTwoFactorCodeWithFormdataBody performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request. Takes a body of the `application/x-www-form-urlencoded` content type.
Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
type ClientInterface ¶
type ClientInterface interface {
// RequestLegacySignalingTicket performs a POST /api/v1/clap/ticket/request/signalsocket (the `RequestLegacySignalingTicket` operationId) request.
//
// Existing Go signaling bootstrap. This POST route is implemented and covered by local tests, but was not found in the C1 HTTP recordings. It is distinct from the captured GET /api/v1/clap/tickets operation.
RequestLegacySignalingTicket(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCapturedLocationTickets performs a GET /api/v1/clap/tickets (the `GetCapturedLocationTickets` operationId) request.
//
// Captured GET route. Its relationship to the existing POST signaling bootstrap below is not established.
GetCapturedLocationTickets(ctx context.Context, params *GetCapturedLocationTicketsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChimeVolume performs a PUT /clients_api/chimes/{device_id} (the `SetChimeVolume` operationId) request.
//
// Legacy volume update. The client requires description to reproduce the synthetic replay request shape; no capture proves the server requires that query field for volume changes.
SetChimeVolume(ctx context.Context, deviceId DeviceId, params *SetChimeVolumeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestChimeSound performs a POST /clients_api/chimes/{device_id}/play_sound (the `TestChimeSound` operationId) request.
//
// Legacy sound request from synthetic replay.
TestChimeSound(ctx context.Context, deviceId DeviceId, params *TestChimeSoundParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetActiveDings performs a GET /clients_api/dings/active (the `GetActiveDings` operationId) request.
//
// Existing Go active-dings route. No matching C1 capture was identified.
GetActiveDings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteRecording performs a DELETE /clients_api/dings/{recording_id} (the `DeleteRecording` operationId) request.
DeleteRecording(ctx context.Context, recordingId RecordingId, params *DeleteRecordingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// FavoriteRecording performs a PUT /clients_api/dings/{recording_id}/favorite (the `FavoriteRecording` operationId) request.
FavoriteRecording(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
// StreamRecording performs a GET /clients_api/dings/{recording_id}/recording (the `StreamRecording` operationId) request.
//
// Existing Go method returns the response body as a streaming VideoStream; the caller owns and must close Body. It requests video/mp4 and does not buffer the media. Go's default http.Client follows redirects according to its CheckRedirect policy; a custom client may change that behavior. No sanitized recording response establishes redirect or media-host details.
StreamRecording(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
//
// Legacy share/play response, replayed synthetically; no matching C1 response.
GetLegacyRecordingShareURL(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateLegacyDoorbotControls performs a PUT /clients_api/doorbots/{device_id} (the `UpdateLegacyDoorbotControls` operationId) request.
//
// Legacy doorbell-volume or one in-home chime setting; query variants come from portable synthetic fixtures, not a C1 field capture. The client requires description to reproduce the replayed request shape; server necessity is unverified. A separate captured doorbot PUT sent a description and an empty settings object.
UpdateLegacyDoorbotControls(ctx context.Context, deviceId DeviceId, params *UpdateLegacyDoorbotControlsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TurnFloodlightOff performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_off (the `TurnFloodlightOff` operationId) request.
//
// Legacy off path; no corresponding captured or synthetic request fixture.
TurnFloodlightOff(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// TurnFloodlightOn performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_on (the `TurnFloodlightOn` operationId) request.
//
// Legacy light-on request from synthetic replay.
TurnFloodlightOn(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLegacyDeviceHistory performs a GET /clients_api/doorbots/{device_id}/history (the `GetLegacyDeviceHistory` operationId) request.
//
// Existing Go history operation uses this doorbot path. The Go API exposes limit and kind; older_than is documented but not sent by the client. C1 history routes use EVM endpoints and are specified separately.
GetLegacyDeviceHistory(ctx context.Context, deviceId DeviceId, params *GetLegacyDeviceHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TurnSirenOff performs a PUT /clients_api/doorbots/{device_id}/siren_off (the `TurnSirenOff` operationId) request.
TurnSirenOff(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// TurnSirenOn performs a PUT /clients_api/doorbots/{device_id}/siren_on (the `TurnSirenOn` operationId) request.
//
// No duration query or request body is present in the capture.
TurnSirenOn(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLegacyDeviceHealth performs a GET /clients_api/ring_devices/{device_id}/health (the `GetLegacyDeviceHealth` operationId) request.
//
// Generic device health route. The captured HTTP set has no matching health response; SDK tests use local fixtures only.
GetLegacyDeviceHealth(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterClientSessionWithBody performs a POST /clients_api/session (the `RegisterClientSession` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
RegisterClientSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterClientSession performs a POST /clients_api/session (the `RegisterClientSession` operationId) request.
// Takes a body of the `application/json` content type.
//
// Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
RegisterClientSession(ctx context.Context, body RegisterClientSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLegacySnapshotImage performs a GET /clients_api/snapshots/image/{device_id} (the `GetLegacySnapshotImage` operationId) request.
//
// Legacy image download after a newer timestamp appears; response shape is synthetic replay evidence.
GetLegacySnapshotImage(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshLegacySnapshotTimestampWithBody performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request,
// with any type of body and a specified content type.
//
// Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
RefreshLegacySnapshotTimestampWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefreshLegacySnapshotTimestamp performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request.
// Takes a body of the `application/json` content type.
//
// Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
RefreshLegacySnapshotTimestamp(ctx context.Context, body RefreshLegacySnapshotTimestampJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendDeviceCommandWithBody performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request,
// with any type of body and a specified content type.
SendDeviceCommandWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendDeviceCommand performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request.
// Takes a body of the `application/json` content type.
SendDeviceCommand(ctx context.Context, deviceId DeviceId, body SendDeviceCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDevices performs a GET /device_info/v3/devices (the `ListDevices` operationId) request.
ListDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDevice performs a GET /device_info/v3/devices/{device_id} (the `GetDevice` operationId) request.
GetDevice(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDeviceSettings performs a GET /devices/v1/devices/{device_id}/settings (the `GetDeviceSettings` operationId) request.
//
// Captured response is extensible; typed Go API exposes motion_detection_enabled only.
GetDeviceSettings(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchDeviceSettingsWithBody performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request,
// with any type of body and a specified content type.
//
// The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
PatchDeviceSettingsWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchDeviceSettings performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request.
// Takes a body of the `application/json` content type.
//
// The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
PatchDeviceSettings(ctx context.Context, deviceId DeviceId, body PatchDeviceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetLiveViewEnabledWithBody performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request,
// with any type of body and a specified content type.
SetLiveViewEnabledWithBody(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetLiveViewEnabled performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request.
// Takes a body of the `application/json` content type.
SetLiveViewEnabled(ctx context.Context, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDeviceTimeline performs a GET /evm/v2/timeline/devices/{device_id} (the `GetDeviceTimeline` operationId) request.
GetDeviceTimeline(ctx context.Context, deviceId DeviceId, params *GetDeviceTimelineParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryDevices performs a GET /evm/v3/history/devices (the `GetHistoryDevices` operationId) request.
GetHistoryDevices(ctx context.Context, params *GetHistoryDevicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLocationDevices performs a GET /groups/v1/locations/{location_id}/devices (the `ListLocationDevices` operationId) request.
ListLocationDevices(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLocationGroups performs a GET /groups/v1/locations/{location_id}/groups (the `ListLocationGroups` operationId) request.
ListLocationGroups(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLocations performs a GET /location_info/v3/locations (the `ListLocations` operationId) request.
ListLocations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLocation performs a GET /location_info/v4/locations/{location_id} (the `GetLocation` operationId) request.
GetLocation(ctx context.Context, locationId LocationId, params *GetLocationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExchangeOrRefreshOAuthTokenWithBody performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
ExchangeOrRefreshOAuthTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExchangeOrRefreshOAuthTokenWithFormdataBody performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request.
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
ExchangeOrRefreshOAuthTokenWithFormdataBody(ctx context.Context, body ExchangeOrRefreshOAuthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyOAuthTwoFactorCodeWithBody performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
VerifyOAuthTwoFactorCodeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyOAuthTwoFactorCodeWithFormdataBody performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request.
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
VerifyOAuthTwoFactorCodeWithFormdataBody(ctx context.Context, body VerifyOAuthTwoFactorCodeFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BeginOrContinueOAuthAuthorization performs a GET /oauth/v2/authorize (the `BeginOrContinueOAuthAuthorization` operationId) request.
//
// Existing Go PKCE flow. The first request sends the authorization query parameters; later requests reuse the cookie-backed session and may omit them. Redirect state is checked by the client. This route is not present in the C1 HTTP captures.
BeginOrContinueOAuthAuthorization(ctx context.Context, params *BeginOrContinueOAuthAuthorizationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubmitOAuthCredentialsWithBody performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
SubmitOAuthCredentialsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubmitOAuthCredentialsWithFormdataBody performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request.
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
SubmitOAuthCredentialsWithFormdataBody(ctx context.Context, body SubmitOAuthCredentialsFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientSessionRegistration ¶
type ClientSessionRegistration struct {
Device ClientSessionRegistration_Device `json:"device"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ClientSessionRegistration defines model for ClientSessionRegistration.
func (ClientSessionRegistration) Get ¶
func (a ClientSessionRegistration) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ClientSessionRegistration. Returns the specified element and whether it was found
func (ClientSessionRegistration) MarshalJSON ¶
func (a ClientSessionRegistration) MarshalJSON() ([]byte, error)
Override default JSON handling for ClientSessionRegistration to handle AdditionalProperties
func (*ClientSessionRegistration) Set ¶
func (a *ClientSessionRegistration) Set(fieldName string, value interface{})
Setter for additional properties for ClientSessionRegistration
func (*ClientSessionRegistration) UnmarshalJSON ¶
func (a *ClientSessionRegistration) UnmarshalJSON(b []byte) error
Override default JSON handling for ClientSessionRegistration to handle AdditionalProperties
type ClientSessionRegistrationDeviceMetadataApiVersion ¶
type ClientSessionRegistrationDeviceMetadataApiVersion int
ClientSessionRegistrationDeviceMetadataApiVersion defines model for ClientSessionRegistration.Device.Metadata.ApiVersion.
const (
N11 ClientSessionRegistrationDeviceMetadataApiVersion = 11
)
Defines values for ClientSessionRegistrationDeviceMetadataApiVersion.
func (ClientSessionRegistrationDeviceMetadataApiVersion) Valid ¶
func (e ClientSessionRegistrationDeviceMetadataApiVersion) Valid() bool
Valid indicates whether the value is a known member of the ClientSessionRegistrationDeviceMetadataApiVersion enum.
type ClientSessionRegistrationDeviceOs ¶
type ClientSessionRegistrationDeviceOs string
ClientSessionRegistrationDeviceOs defines model for ClientSessionRegistration.Device.Os.
const (
Android ClientSessionRegistrationDeviceOs = "android"
)
Defines values for ClientSessionRegistrationDeviceOs.
func (ClientSessionRegistrationDeviceOs) Valid ¶
func (e ClientSessionRegistrationDeviceOs) Valid() bool
Valid indicates whether the value is a known member of the ClientSessionRegistrationDeviceOs enum.
type ClientSessionRegistration_Device ¶
type ClientSessionRegistration_Device struct {
HardwareId string `json:"hardware_id"`
Metadata ClientSessionRegistration_Device_Metadata `json:"metadata"`
Os ClientSessionRegistrationDeviceOs `json:"os"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ClientSessionRegistration_Device defines model for ClientSessionRegistration.Device.
func (ClientSessionRegistration_Device) Get ¶
func (a ClientSessionRegistration_Device) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ClientSessionRegistration_Device. Returns the specified element and whether it was found
func (ClientSessionRegistration_Device) MarshalJSON ¶
func (a ClientSessionRegistration_Device) MarshalJSON() ([]byte, error)
Override default JSON handling for ClientSessionRegistration_Device to handle AdditionalProperties
func (*ClientSessionRegistration_Device) Set ¶
func (a *ClientSessionRegistration_Device) Set(fieldName string, value interface{})
Setter for additional properties for ClientSessionRegistration_Device
func (*ClientSessionRegistration_Device) UnmarshalJSON ¶
func (a *ClientSessionRegistration_Device) UnmarshalJSON(b []byte) error
Override default JSON handling for ClientSessionRegistration_Device to handle AdditionalProperties
type ClientSessionRegistration_Device_Metadata ¶
type ClientSessionRegistration_Device_Metadata struct {
ApiVersion ClientSessionRegistrationDeviceMetadataApiVersion `json:"api_version"`
DeviceModel string `json:"device_model"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ClientSessionRegistration_Device_Metadata defines model for ClientSessionRegistration.Device.Metadata.
func (ClientSessionRegistration_Device_Metadata) Get ¶
func (a ClientSessionRegistration_Device_Metadata) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ClientSessionRegistration_Device_Metadata. Returns the specified element and whether it was found
func (ClientSessionRegistration_Device_Metadata) MarshalJSON ¶
func (a ClientSessionRegistration_Device_Metadata) MarshalJSON() ([]byte, error)
Override default JSON handling for ClientSessionRegistration_Device_Metadata to handle AdditionalProperties
func (*ClientSessionRegistration_Device_Metadata) Set ¶
func (a *ClientSessionRegistration_Device_Metadata) Set(fieldName string, value interface{})
Setter for additional properties for ClientSessionRegistration_Device_Metadata
func (*ClientSessionRegistration_Device_Metadata) UnmarshalJSON ¶
func (a *ClientSessionRegistration_Device_Metadata) UnmarshalJSON(b []byte) error
Override default JSON handling for ClientSessionRegistration_Device_Metadata to handle AdditionalProperties
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) BeginOrContinueOAuthAuthorizationWithResponse ¶
func (c *ClientWithResponses) BeginOrContinueOAuthAuthorizationWithResponse(ctx context.Context, params *BeginOrContinueOAuthAuthorizationParams, reqEditors ...RequestEditorFn) (*BeginOrContinueOAuthAuthorizationResponse, error)
BeginOrContinueOAuthAuthorizationWithResponse performs a GET /oauth/v2/authorize (the `BeginOrContinueOAuthAuthorization` operationId) request.
Existing Go PKCE flow. The first request sends the authorization query parameters; later requests reuse the cookie-backed session and may omit them. Redirect state is checked by the client. This route is not present in the C1 HTTP captures.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) DeleteRecordingWithResponse ¶
func (c *ClientWithResponses) DeleteRecordingWithResponse(ctx context.Context, recordingId RecordingId, params *DeleteRecordingParams, reqEditors ...RequestEditorFn) (*DeleteRecordingResponse, error)
DeleteRecordingWithResponse performs a DELETE /clients_api/dings/{recording_id} (the `DeleteRecording` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ExchangeOrRefreshOAuthTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) ExchangeOrRefreshOAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeOrRefreshOAuthTokenResponse, error)
ExchangeOrRefreshOAuthTokenWithBodyWithResponse performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request, with any type of body and a specified content type.
Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ExchangeOrRefreshOAuthTokenWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) ExchangeOrRefreshOAuthTokenWithFormdataBodyWithResponse(ctx context.Context, body ExchangeOrRefreshOAuthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*ExchangeOrRefreshOAuthTokenResponse, error)
ExchangeOrRefreshOAuthTokenWithFormdataBodyWithResponse performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request. Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
func (*ClientWithResponses) FavoriteRecordingWithResponse ¶
func (c *ClientWithResponses) FavoriteRecordingWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*FavoriteRecordingResponse, error)
FavoriteRecordingWithResponse performs a PUT /clients_api/dings/{recording_id}/favorite (the `FavoriteRecording` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetActiveDingsWithResponse ¶
func (c *ClientWithResponses) GetActiveDingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetActiveDingsResponse, error)
GetActiveDingsWithResponse performs a GET /clients_api/dings/active (the `GetActiveDings` operationId) request.
Existing Go active-dings route. No matching C1 capture was identified.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetCapturedLocationTicketsWithResponse ¶
func (c *ClientWithResponses) GetCapturedLocationTicketsWithResponse(ctx context.Context, params *GetCapturedLocationTicketsParams, reqEditors ...RequestEditorFn) (*GetCapturedLocationTicketsResponse, error)
GetCapturedLocationTicketsWithResponse performs a GET /api/v1/clap/tickets (the `GetCapturedLocationTickets` operationId) request.
Captured GET route. Its relationship to the existing POST signaling bootstrap below is not established.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetDeviceSettingsWithResponse ¶
func (c *ClientWithResponses) GetDeviceSettingsWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetDeviceSettingsResponse, error)
GetDeviceSettingsWithResponse performs a GET /devices/v1/devices/{device_id}/settings (the `GetDeviceSettings` operationId) request.
Captured response is extensible; typed Go API exposes motion_detection_enabled only.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetDeviceTimelineWithResponse ¶
func (c *ClientWithResponses) GetDeviceTimelineWithResponse(ctx context.Context, deviceId DeviceId, params *GetDeviceTimelineParams, reqEditors ...RequestEditorFn) (*GetDeviceTimelineResponse, error)
GetDeviceTimelineWithResponse performs a GET /evm/v2/timeline/devices/{device_id} (the `GetDeviceTimeline` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetDeviceWithResponse ¶
func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
GetDeviceWithResponse performs a GET /device_info/v3/devices/{device_id} (the `GetDevice` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetHistoryDevicesWithResponse ¶
func (c *ClientWithResponses) GetHistoryDevicesWithResponse(ctx context.Context, params *GetHistoryDevicesParams, reqEditors ...RequestEditorFn) (*GetHistoryDevicesResponse, error)
GetHistoryDevicesWithResponse performs a GET /evm/v3/history/devices (the `GetHistoryDevices` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetLegacyDeviceHealthWithResponse ¶
func (c *ClientWithResponses) GetLegacyDeviceHealthWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetLegacyDeviceHealthResponse, error)
GetLegacyDeviceHealthWithResponse performs a GET /clients_api/ring_devices/{device_id}/health (the `GetLegacyDeviceHealth` operationId) request.
Generic device health route. The captured HTTP set has no matching health response; SDK tests use local fixtures only.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetLegacyDeviceHistoryWithResponse ¶
func (c *ClientWithResponses) GetLegacyDeviceHistoryWithResponse(ctx context.Context, deviceId DeviceId, params *GetLegacyDeviceHistoryParams, reqEditors ...RequestEditorFn) (*GetLegacyDeviceHistoryResponse, error)
GetLegacyDeviceHistoryWithResponse performs a GET /clients_api/doorbots/{device_id}/history (the `GetLegacyDeviceHistory` operationId) request.
Existing Go history operation uses this doorbot path. The Go API exposes limit and kind; older_than is documented but not sent by the client. C1 history routes use EVM endpoints and are specified separately.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetLegacyRecordingShareURLWithResponse ¶
func (c *ClientWithResponses) GetLegacyRecordingShareURLWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*GetLegacyRecordingShareURLResponse, error)
GetLegacyRecordingShareURLWithResponse performs a GET /clients_api/dings/{recording_id}/share/play (the `GetLegacyRecordingShareURL` operationId) request.
Legacy share/play response, replayed synthetically; no matching C1 response.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetLegacySnapshotImageWithResponse ¶
func (c *ClientWithResponses) GetLegacySnapshotImageWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetLegacySnapshotImageResponse, error)
GetLegacySnapshotImageWithResponse performs a GET /clients_api/snapshots/image/{device_id} (the `GetLegacySnapshotImage` operationId) request.
Legacy image download after a newer timestamp appears; response shape is synthetic replay evidence.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) GetLocationWithResponse ¶
func (c *ClientWithResponses) GetLocationWithResponse(ctx context.Context, locationId LocationId, params *GetLocationParams, reqEditors ...RequestEditorFn) (*GetLocationResponse, error)
GetLocationWithResponse performs a GET /location_info/v4/locations/{location_id} (the `GetLocation` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListDevicesWithResponse ¶
func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)
ListDevicesWithResponse performs a GET /device_info/v3/devices (the `ListDevices` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListLocationDevicesWithResponse ¶
func (c *ClientWithResponses) ListLocationDevicesWithResponse(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*ListLocationDevicesResponse, error)
ListLocationDevicesWithResponse performs a GET /groups/v1/locations/{location_id}/devices (the `ListLocationDevices` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListLocationGroupsWithResponse ¶
func (c *ClientWithResponses) ListLocationGroupsWithResponse(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*ListLocationGroupsResponse, error)
ListLocationGroupsWithResponse performs a GET /groups/v1/locations/{location_id}/groups (the `ListLocationGroups` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) ListLocationsWithResponse ¶
func (c *ClientWithResponses) ListLocationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLocationsResponse, error)
ListLocationsWithResponse performs a GET /location_info/v3/locations (the `ListLocations` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PatchDeviceSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchDeviceSettingsWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchDeviceSettingsResponse, error)
PatchDeviceSettingsWithBodyWithResponse performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request, with any type of body and a specified content type.
The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) PatchDeviceSettingsWithResponse ¶
func (c *ClientWithResponses) PatchDeviceSettingsWithResponse(ctx context.Context, deviceId DeviceId, body PatchDeviceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchDeviceSettingsResponse, error)
PatchDeviceSettingsWithResponse performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
func (*ClientWithResponses) RefreshLegacySnapshotTimestampWithBodyWithResponse ¶
func (c *ClientWithResponses) RefreshLegacySnapshotTimestampWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshLegacySnapshotTimestampResponse, error)
RefreshLegacySnapshotTimestampWithBodyWithResponse performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request, with any type of body and a specified content type.
Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) RefreshLegacySnapshotTimestampWithResponse ¶
func (c *ClientWithResponses) RefreshLegacySnapshotTimestampWithResponse(ctx context.Context, body RefreshLegacySnapshotTimestampJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshLegacySnapshotTimestampResponse, error)
RefreshLegacySnapshotTimestampWithResponse performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
func (*ClientWithResponses) RegisterClientSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterClientSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterClientSessionResponse, error)
RegisterClientSessionWithBodyWithResponse performs a POST /clients_api/session (the `RegisterClientSession` operationId) request, with any type of body and a specified content type.
Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) RegisterClientSessionWithResponse ¶
func (c *ClientWithResponses) RegisterClientSessionWithResponse(ctx context.Context, body RegisterClientSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterClientSessionResponse, error)
RegisterClientSessionWithResponse performs a POST /clients_api/session (the `RegisterClientSession` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
func (*ClientWithResponses) RequestLegacySignalingTicketWithResponse ¶
func (c *ClientWithResponses) RequestLegacySignalingTicketWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RequestLegacySignalingTicketResponse, error)
RequestLegacySignalingTicketWithResponse performs a POST /api/v1/clap/ticket/request/signalsocket (the `RequestLegacySignalingTicket` operationId) request.
Existing Go signaling bootstrap. This POST route is implemented and covered by local tests, but was not found in the C1 HTTP recordings. It is distinct from the captured GET /api/v1/clap/tickets operation.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SendDeviceCommandWithBodyWithResponse ¶
func (c *ClientWithResponses) SendDeviceCommandWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendDeviceCommandResponse, error)
SendDeviceCommandWithBodyWithResponse performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SendDeviceCommandWithResponse ¶
func (c *ClientWithResponses) SendDeviceCommandWithResponse(ctx context.Context, deviceId DeviceId, body SendDeviceCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*SendDeviceCommandResponse, error)
SendDeviceCommandWithResponse performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SetChimeVolumeWithResponse ¶
func (c *ClientWithResponses) SetChimeVolumeWithResponse(ctx context.Context, deviceId DeviceId, params *SetChimeVolumeParams, reqEditors ...RequestEditorFn) (*SetChimeVolumeResponse, error)
SetChimeVolumeWithResponse performs a PUT /clients_api/chimes/{device_id} (the `SetChimeVolume` operationId) request.
Legacy volume update. The client requires description to reproduce the synthetic replay request shape; no capture proves the server requires that query field for volume changes.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SetLiveViewEnabledWithBodyWithResponse ¶
func (c *ClientWithResponses) SetLiveViewEnabledWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetLiveViewEnabledResponse, error)
SetLiveViewEnabledWithBodyWithResponse performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request, with any type of body and a specified content type.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SetLiveViewEnabledWithResponse ¶
func (c *ClientWithResponses) SetLiveViewEnabledWithResponse(ctx context.Context, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody, reqEditors ...RequestEditorFn) (*SetLiveViewEnabledResponse, error)
SetLiveViewEnabledWithResponse performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request. Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) StreamRecordingWithResponse ¶
func (c *ClientWithResponses) StreamRecordingWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*StreamRecordingResponse, error)
StreamRecordingWithResponse performs a GET /clients_api/dings/{recording_id}/recording (the `StreamRecording` operationId) request.
Existing Go method returns the response body as a streaming VideoStream; the caller owns and must close Body. It requests video/mp4 and does not buffer the media. Go's default http.Client follows redirects according to its CheckRedirect policy; a custom client may change that behavior. No sanitized recording response establishes redirect or media-host details.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SubmitOAuthCredentialsWithBodyWithResponse ¶
func (c *ClientWithResponses) SubmitOAuthCredentialsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitOAuthCredentialsResponse, error)
SubmitOAuthCredentialsWithBodyWithResponse performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request, with any type of body and a specified content type.
Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) SubmitOAuthCredentialsWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) SubmitOAuthCredentialsWithFormdataBodyWithResponse(ctx context.Context, body SubmitOAuthCredentialsFormdataRequestBody, reqEditors ...RequestEditorFn) (*SubmitOAuthCredentialsResponse, error)
SubmitOAuthCredentialsWithFormdataBodyWithResponse performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request. Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
func (*ClientWithResponses) TestChimeSoundWithResponse ¶
func (c *ClientWithResponses) TestChimeSoundWithResponse(ctx context.Context, deviceId DeviceId, params *TestChimeSoundParams, reqEditors ...RequestEditorFn) (*TestChimeSoundResponse, error)
TestChimeSoundWithResponse performs a POST /clients_api/chimes/{device_id}/play_sound (the `TestChimeSound` operationId) request.
Legacy sound request from synthetic replay.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) TurnFloodlightOffWithResponse ¶
func (c *ClientWithResponses) TurnFloodlightOffWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnFloodlightOffResponse, error)
TurnFloodlightOffWithResponse performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_off (the `TurnFloodlightOff` operationId) request.
Legacy off path; no corresponding captured or synthetic request fixture.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) TurnFloodlightOnWithResponse ¶
func (c *ClientWithResponses) TurnFloodlightOnWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnFloodlightOnResponse, error)
TurnFloodlightOnWithResponse performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_on (the `TurnFloodlightOn` operationId) request.
Legacy light-on request from synthetic replay.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) TurnSirenOffWithResponse ¶
func (c *ClientWithResponses) TurnSirenOffWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnSirenOffResponse, error)
TurnSirenOffWithResponse performs a PUT /clients_api/doorbots/{device_id}/siren_off (the `TurnSirenOff` operationId) request.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) TurnSirenOnWithResponse ¶
func (c *ClientWithResponses) TurnSirenOnWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnSirenOnResponse, error)
TurnSirenOnWithResponse performs a PUT /clients_api/doorbots/{device_id}/siren_on (the `TurnSirenOn` operationId) request.
No duration query or request body is present in the capture.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) UpdateLegacyDoorbotControlsWithResponse ¶
func (c *ClientWithResponses) UpdateLegacyDoorbotControlsWithResponse(ctx context.Context, deviceId DeviceId, params *UpdateLegacyDoorbotControlsParams, reqEditors ...RequestEditorFn) (*UpdateLegacyDoorbotControlsResponse, error)
UpdateLegacyDoorbotControlsWithResponse performs a PUT /clients_api/doorbots/{device_id} (the `UpdateLegacyDoorbotControls` operationId) request.
Legacy doorbell-volume or one in-home chime setting; query variants come from portable synthetic fixtures, not a C1 field capture. The client requires description to reproduce the replayed request shape; server necessity is unverified. A separate captured doorbot PUT sent a description and an empty settings object.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VerifyOAuthTwoFactorCodeWithBodyWithResponse ¶
func (c *ClientWithResponses) VerifyOAuthTwoFactorCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyOAuthTwoFactorCodeResponse, error)
VerifyOAuthTwoFactorCodeWithBodyWithResponse performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request, with any type of body and a specified content type.
Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
Returns a wrapper object for the known response body format(s).
func (*ClientWithResponses) VerifyOAuthTwoFactorCodeWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) VerifyOAuthTwoFactorCodeWithFormdataBodyWithResponse(ctx context.Context, body VerifyOAuthTwoFactorCodeFormdataRequestBody, reqEditors ...RequestEditorFn) (*VerifyOAuthTwoFactorCodeResponse, error)
VerifyOAuthTwoFactorCodeWithFormdataBodyWithResponse performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request. Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// RequestLegacySignalingTicketWithResponse performs a POST /api/v1/clap/ticket/request/signalsocket (the `RequestLegacySignalingTicket` operationId) request.
//
// Existing Go signaling bootstrap. This POST route is implemented and covered by local tests, but was not found in the C1 HTTP recordings. It is distinct from the captured GET /api/v1/clap/tickets operation.
//
// Returns a wrapper object for the known response body format(s).
RequestLegacySignalingTicketWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RequestLegacySignalingTicketResponse, error)
// GetCapturedLocationTicketsWithResponse performs a GET /api/v1/clap/tickets (the `GetCapturedLocationTickets` operationId) request.
//
// Captured GET route. Its relationship to the existing POST signaling bootstrap below is not established.
//
// Returns a wrapper object for the known response body format(s).
GetCapturedLocationTicketsWithResponse(ctx context.Context, params *GetCapturedLocationTicketsParams, reqEditors ...RequestEditorFn) (*GetCapturedLocationTicketsResponse, error)
// SetChimeVolumeWithResponse performs a PUT /clients_api/chimes/{device_id} (the `SetChimeVolume` operationId) request.
//
// Legacy volume update. The client requires description to reproduce the synthetic replay request shape; no capture proves the server requires that query field for volume changes.
//
// Returns a wrapper object for the known response body format(s).
SetChimeVolumeWithResponse(ctx context.Context, deviceId DeviceId, params *SetChimeVolumeParams, reqEditors ...RequestEditorFn) (*SetChimeVolumeResponse, error)
// TestChimeSoundWithResponse performs a POST /clients_api/chimes/{device_id}/play_sound (the `TestChimeSound` operationId) request.
//
// Legacy sound request from synthetic replay.
//
// Returns a wrapper object for the known response body format(s).
TestChimeSoundWithResponse(ctx context.Context, deviceId DeviceId, params *TestChimeSoundParams, reqEditors ...RequestEditorFn) (*TestChimeSoundResponse, error)
// GetActiveDingsWithResponse performs a GET /clients_api/dings/active (the `GetActiveDings` operationId) request.
//
// Existing Go active-dings route. No matching C1 capture was identified.
//
// Returns a wrapper object for the known response body format(s).
GetActiveDingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetActiveDingsResponse, error)
// DeleteRecordingWithResponse performs a DELETE /clients_api/dings/{recording_id} (the `DeleteRecording` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
DeleteRecordingWithResponse(ctx context.Context, recordingId RecordingId, params *DeleteRecordingParams, reqEditors ...RequestEditorFn) (*DeleteRecordingResponse, error)
// FavoriteRecordingWithResponse performs a PUT /clients_api/dings/{recording_id}/favorite (the `FavoriteRecording` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
FavoriteRecordingWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*FavoriteRecordingResponse, error)
// StreamRecordingWithResponse performs a GET /clients_api/dings/{recording_id}/recording (the `StreamRecording` operationId) request.
//
// Existing Go method returns the response body as a streaming VideoStream; the caller owns and must close Body. It requests video/mp4 and does not buffer the media. Go's default http.Client follows redirects according to its CheckRedirect policy; a custom client may change that behavior. No sanitized recording response establishes redirect or media-host details.
//
// Returns a wrapper object for the known response body format(s).
StreamRecordingWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*StreamRecordingResponse, error)
//
// Legacy share/play response, replayed synthetically; no matching C1 response.
//
// Returns a wrapper object for the known response body format(s).
GetLegacyRecordingShareURLWithResponse(ctx context.Context, recordingId RecordingId, reqEditors ...RequestEditorFn) (*GetLegacyRecordingShareURLResponse, error)
// UpdateLegacyDoorbotControlsWithResponse performs a PUT /clients_api/doorbots/{device_id} (the `UpdateLegacyDoorbotControls` operationId) request.
//
// Legacy doorbell-volume or one in-home chime setting; query variants come from portable synthetic fixtures, not a C1 field capture. The client requires description to reproduce the replayed request shape; server necessity is unverified. A separate captured doorbot PUT sent a description and an empty settings object.
//
// Returns a wrapper object for the known response body format(s).
UpdateLegacyDoorbotControlsWithResponse(ctx context.Context, deviceId DeviceId, params *UpdateLegacyDoorbotControlsParams, reqEditors ...RequestEditorFn) (*UpdateLegacyDoorbotControlsResponse, error)
// TurnFloodlightOffWithResponse performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_off (the `TurnFloodlightOff` operationId) request.
//
// Legacy off path; no corresponding captured or synthetic request fixture.
//
// Returns a wrapper object for the known response body format(s).
TurnFloodlightOffWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnFloodlightOffResponse, error)
// TurnFloodlightOnWithResponse performs a PUT /clients_api/doorbots/{device_id}/floodlight_light_on (the `TurnFloodlightOn` operationId) request.
//
// Legacy light-on request from synthetic replay.
//
// Returns a wrapper object for the known response body format(s).
TurnFloodlightOnWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnFloodlightOnResponse, error)
// GetLegacyDeviceHistoryWithResponse performs a GET /clients_api/doorbots/{device_id}/history (the `GetLegacyDeviceHistory` operationId) request.
//
// Existing Go history operation uses this doorbot path. The Go API exposes limit and kind; older_than is documented but not sent by the client. C1 history routes use EVM endpoints and are specified separately.
//
// Returns a wrapper object for the known response body format(s).
GetLegacyDeviceHistoryWithResponse(ctx context.Context, deviceId DeviceId, params *GetLegacyDeviceHistoryParams, reqEditors ...RequestEditorFn) (*GetLegacyDeviceHistoryResponse, error)
// TurnSirenOffWithResponse performs a PUT /clients_api/doorbots/{device_id}/siren_off (the `TurnSirenOff` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
TurnSirenOffWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnSirenOffResponse, error)
// TurnSirenOnWithResponse performs a PUT /clients_api/doorbots/{device_id}/siren_on (the `TurnSirenOn` operationId) request.
//
// No duration query or request body is present in the capture.
//
// Returns a wrapper object for the known response body format(s).
TurnSirenOnWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*TurnSirenOnResponse, error)
// GetLegacyDeviceHealthWithResponse performs a GET /clients_api/ring_devices/{device_id}/health (the `GetLegacyDeviceHealth` operationId) request.
//
// Generic device health route. The captured HTTP set has no matching health response; SDK tests use local fixtures only.
//
// Returns a wrapper object for the known response body format(s).
GetLegacyDeviceHealthWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetLegacyDeviceHealthResponse, error)
// RegisterClientSessionWithBodyWithResponse performs a POST /clients_api/session (the `RegisterClientSession` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
//
// Returns a wrapper object for the known response body format(s).
RegisterClientSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterClientSessionResponse, error)
// RegisterClientSessionWithResponse performs a POST /clients_api/session (the `RegisterClientSession` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Existing Go session-registration body, sent once before inventory or signaling when a hardware ID is configured. The shape below follows the Go implementation; no C1 capture was identified.
RegisterClientSessionWithResponse(ctx context.Context, body RegisterClientSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterClientSessionResponse, error)
// GetLegacySnapshotImageWithResponse performs a GET /clients_api/snapshots/image/{device_id} (the `GetLegacySnapshotImage` operationId) request.
//
// Legacy image download after a newer timestamp appears; response shape is synthetic replay evidence.
//
// Returns a wrapper object for the known response body format(s).
GetLegacySnapshotImageWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetLegacySnapshotImageResponse, error)
// RefreshLegacySnapshotTimestampWithBodyWithResponse performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request,
// with any type of body and a specified content type.
//
// Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
//
// Returns a wrapper object for the known response body format(s).
RefreshLegacySnapshotTimestampWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshLegacySnapshotTimestampResponse, error)
// RefreshLegacySnapshotTimestampWithResponse performs a POST /clients_api/snapshots/timestamps (the `RefreshLegacySnapshotTimestamp` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Legacy snapshot trigger and poll. The first response may omit timestamps. This contract comes from shared synthetic replay, not the C1 app-snaps request with missing response.
RefreshLegacySnapshotTimestampWithResponse(ctx context.Context, body RefreshLegacySnapshotTimestampJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshLegacySnapshotTimestampResponse, error)
// SendDeviceCommandWithBodyWithResponse performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
SendDeviceCommandWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendDeviceCommandResponse, error)
// SendDeviceCommandWithResponse performs a PATCH /commands/v1/devices/{device_id} (the `SendDeviceCommand` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
SendDeviceCommandWithResponse(ctx context.Context, deviceId DeviceId, body SendDeviceCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*SendDeviceCommandResponse, error)
// ListDevicesWithResponse performs a GET /device_info/v3/devices (the `ListDevices` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
ListDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)
// GetDeviceWithResponse performs a GET /device_info/v3/devices/{device_id} (the `GetDevice` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetDeviceWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
// GetDeviceSettingsWithResponse performs a GET /devices/v1/devices/{device_id}/settings (the `GetDeviceSettings` operationId) request.
//
// Captured response is extensible; typed Go API exposes motion_detection_enabled only.
//
// Returns a wrapper object for the known response body format(s).
GetDeviceSettingsWithResponse(ctx context.Context, deviceId DeviceId, reqEditors ...RequestEditorFn) (*GetDeviceSettingsResponse, error)
// PatchDeviceSettingsWithBodyWithResponse performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request,
// with any type of body and a specified content type.
//
// The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
//
// Returns a wrapper object for the known response body format(s).
PatchDeviceSettingsWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchDeviceSettingsResponse, error)
// PatchDeviceSettingsWithResponse performs a PATCH /devices/v1/devices/{device_id}/settings (the `PatchDeviceSettings` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// The wire schema accepts all captured settings patches. The typed Go API currently sends only motion_settings.motion_detection_enabled.
PatchDeviceSettingsWithResponse(ctx context.Context, deviceId DeviceId, body PatchDeviceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchDeviceSettingsResponse, error)
// SetLiveViewEnabledWithBodyWithResponse performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request,
// with any type of body and a specified content type.
//
// Returns a wrapper object for the known response body format(s).
SetLiveViewEnabledWithBodyWithResponse(ctx context.Context, deviceId DeviceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetLiveViewEnabledResponse, error)
// SetLiveViewEnabledWithResponse performs a PUT /duos/v1/devices/{device_id}/update (the `SetLiveViewEnabled` operationId) request.
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
SetLiveViewEnabledWithResponse(ctx context.Context, deviceId DeviceId, body SetLiveViewEnabledJSONRequestBody, reqEditors ...RequestEditorFn) (*SetLiveViewEnabledResponse, error)
// GetDeviceTimelineWithResponse performs a GET /evm/v2/timeline/devices/{device_id} (the `GetDeviceTimeline` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetDeviceTimelineWithResponse(ctx context.Context, deviceId DeviceId, params *GetDeviceTimelineParams, reqEditors ...RequestEditorFn) (*GetDeviceTimelineResponse, error)
// GetHistoryDevicesWithResponse performs a GET /evm/v3/history/devices (the `GetHistoryDevices` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetHistoryDevicesWithResponse(ctx context.Context, params *GetHistoryDevicesParams, reqEditors ...RequestEditorFn) (*GetHistoryDevicesResponse, error)
// ListLocationDevicesWithResponse performs a GET /groups/v1/locations/{location_id}/devices (the `ListLocationDevices` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
ListLocationDevicesWithResponse(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*ListLocationDevicesResponse, error)
// ListLocationGroupsWithResponse performs a GET /groups/v1/locations/{location_id}/groups (the `ListLocationGroups` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
ListLocationGroupsWithResponse(ctx context.Context, locationId LocationId, reqEditors ...RequestEditorFn) (*ListLocationGroupsResponse, error)
// ListLocationsWithResponse performs a GET /location_info/v3/locations (the `ListLocations` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
ListLocationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLocationsResponse, error)
// GetLocationWithResponse performs a GET /location_info/v4/locations/{location_id} (the `GetLocation` operationId) request.
//
// Returns a wrapper object for the known response body format(s).
GetLocationWithResponse(ctx context.Context, locationId LocationId, params *GetLocationParams, reqEditors ...RequestEditorFn) (*GetLocationResponse, error)
// ExchangeOrRefreshOAuthTokenWithBodyWithResponse performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
//
// Returns a wrapper object for the known response body format(s).
ExchangeOrRefreshOAuthTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExchangeOrRefreshOAuthTokenResponse, error)
// ExchangeOrRefreshOAuthTokenWithFormdataBodyWithResponse performs a POST /oauth/token (the `ExchangeOrRefreshOAuthToken` operationId) request.
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Existing Go authorization-code PKCE exchange and explicit refresh; legacy password grant remains a fallback only when the OAuth authorize endpoint is unavailable. There is no captured OAuth token exchange.
ExchangeOrRefreshOAuthTokenWithFormdataBodyWithResponse(ctx context.Context, body ExchangeOrRefreshOAuthTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*ExchangeOrRefreshOAuthTokenResponse, error)
// VerifyOAuthTwoFactorCodeWithBodyWithResponse performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
//
// Returns a wrapper object for the known response body format(s).
VerifyOAuthTwoFactorCodeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyOAuthTwoFactorCodeResponse, error)
// VerifyOAuthTwoFactorCodeWithFormdataBodyWithResponse performs a POST /oauth/v2/2fa/verify (the `VerifyOAuthTwoFactorCode` operationId) request.
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Existing Go PKCE verification request; uses the same cookie-backed session. No C1 capture.
VerifyOAuthTwoFactorCodeWithFormdataBodyWithResponse(ctx context.Context, body VerifyOAuthTwoFactorCodeFormdataRequestBody, reqEditors ...RequestEditorFn) (*VerifyOAuthTwoFactorCodeResponse, error)
// BeginOrContinueOAuthAuthorizationWithResponse performs a GET /oauth/v2/authorize (the `BeginOrContinueOAuthAuthorization` operationId) request.
//
// Existing Go PKCE flow. The first request sends the authorization query parameters; later requests reuse the cookie-backed session and may omit them. Redirect state is checked by the client. This route is not present in the C1 HTTP captures.
//
// Returns a wrapper object for the known response body format(s).
BeginOrContinueOAuthAuthorizationWithResponse(ctx context.Context, params *BeginOrContinueOAuthAuthorizationParams, reqEditors ...RequestEditorFn) (*BeginOrContinueOAuthAuthorizationResponse, error)
// SubmitOAuthCredentialsWithBodyWithResponse performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request,
// with any type of body and a specified content type.
//
// Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
//
// Returns a wrapper object for the known response body format(s).
SubmitOAuthCredentialsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitOAuthCredentialsResponse, error)
// SubmitOAuthCredentialsWithFormdataBodyWithResponse performs a POST /oauth/v2/signin (the `SubmitOAuthCredentials` operationId) request.
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Existing Go PKCE credential submission using the OAuth cookie jar and CSRF token. Credentials are form data, never query parameters. No C1 capture establishes this flow.
SubmitOAuthCredentialsWithFormdataBodyWithResponse(ctx context.Context, body SubmitOAuthCredentialsFormdataRequestBody, reqEditors ...RequestEditorFn) (*SubmitOAuthCredentialsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ConfirmDeleteFavorite ¶
type ConfirmDeleteFavorite = bool
ConfirmDeleteFavorite defines model for confirm_delete_favorite.
type DeleteRecordingParams ¶
type DeleteRecordingParams struct {
// ConfirmDeleteFavorite Boolean encoded as a query string; false was recorded and requiredness is not established.
ConfirmDeleteFavorite *ConfirmDeleteFavorite `form:"confirm_delete_favorite,omitempty" json:"confirm_delete_favorite,omitempty"`
}
DeleteRecordingParams defines parameters for DeleteRecording.
type DeleteRecordingResponse ¶
func ParseDeleteRecordingResponse ¶
func ParseDeleteRecordingResponse(rsp *http.Response) (*DeleteRecordingResponse, error)
ParseDeleteRecordingResponse parses an HTTP response from a DeleteRecordingWithResponse call
func (DeleteRecordingResponse) ContentType ¶
func (r DeleteRecordingResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteRecordingResponse) GetBody ¶
func (r DeleteRecordingResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteRecordingResponse) Status ¶
func (r DeleteRecordingResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteRecordingResponse) StatusCode ¶
func (r DeleteRecordingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Device ¶
type Device struct {
Address *string `json:"address,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
DeactivatedAt *time.Time `json:"deactivated_at,omitempty"`
Description string `json:"description"`
DeviceId *string `json:"device_id,omitempty"`
// Family Baseline families include doorbots, chimes, stickup_cams and other; absent in the v3 capture and unknown families remain valid.
Family *string `json:"family,omitempty"`
Features *DeviceFeatures `json:"features,omitempty"`
HasLight *bool `json:"has_light,omitempty"`
Health *DeviceHealth `json:"health,omitempty"`
Id int64 `json:"id"`
// Kind Observed v3 kind is stickup_cam_mini_ptz_v1; baseline fixtures also include doorbells, chimes and intercoms. Unknown kinds remain valid.
Kind string `json:"kind"`
LightBrightness *int `json:"light_brightness,omitempty"`
LocationId *string `json:"location_id,omitempty"`
MotionDetectionEnabled *bool `json:"motion_detection_enabled,omitempty"`
// Name Legacy inventory display name; v3 capture uses description.
Name *string `json:"name,omitempty"`
OperationSet *string `json:"operation_set,omitempty"`
Owned *bool `json:"owned,omitempty"`
Owner *DeviceOwner `json:"owner,omitempty"`
Settings *DeviceLegacySettings `json:"settings,omitempty"`
// TimeZone Alternate legacy timezone spelling.
TimeZone *string `json:"time_zone,omitempty"`
Timezone *string `json:"timezone,omitempty"`
Volume *int `json:"volume,omitempty"`
WifiName *string `json:"wifi_name,omitempty"`
WifiSignalStrength *int `json:"wifi_signal_strength,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
Device Captured inventory/detail shape with additional baseline fixture fields; unknown hardware fields remain open.
func (Device) Get ¶
Getter for additional properties for Device. Returns the specified element and whether it was found
func (Device) MarshalJSON ¶
Override default JSON handling for Device to handle AdditionalProperties
func (*Device) UnmarshalJSON ¶
Override default JSON handling for Device to handle AdditionalProperties
type DeviceCommand ¶
type DeviceCommand struct {
CommandName DeviceCommandCommandName `json:"command_name"`
}
DeviceCommand defines model for DeviceCommand.
type DeviceCommandCommandName ¶
type DeviceCommandCommandName string
DeviceCommandCommandName defines model for DeviceCommand.CommandName.
const (
Reboot DeviceCommandCommandName = "reboot"
)
Defines values for DeviceCommandCommandName.
func (DeviceCommandCommandName) Valid ¶
func (e DeviceCommandCommandName) Valid() bool
Valid indicates whether the value is a known member of the DeviceCommandCommandName enum.
type DeviceDetail ¶
type DeviceDetail struct {
// Device Captured inventory/detail shape with additional baseline fixture fields; unknown hardware fields remain open.
Device Device `json:"device"`
DeviceOperationSet *map[string]DeviceOperationSet `json:"device_operation_set,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceDetail defines model for DeviceDetail.
func (DeviceDetail) Get ¶
func (a DeviceDetail) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceDetail. Returns the specified element and whether it was found
func (DeviceDetail) MarshalJSON ¶
func (a DeviceDetail) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceDetail to handle AdditionalProperties
func (*DeviceDetail) Set ¶
func (a *DeviceDetail) Set(fieldName string, value interface{})
Setter for additional properties for DeviceDetail
func (*DeviceDetail) UnmarshalJSON ¶
func (a *DeviceDetail) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceDetail to handle AdditionalProperties
type DeviceFamilyCode ¶
type DeviceFamilyCode string
DeviceFamilyCode Observed legacy family labels. The device family field itself remains open to future values.
const ( Chimes DeviceFamilyCode = "chimes" Doorbots DeviceFamilyCode = "doorbots" Other DeviceFamilyCode = "other" StickupCams DeviceFamilyCode = "stickup_cams" )
Defines values for DeviceFamilyCode.
func (DeviceFamilyCode) Valid ¶
func (e DeviceFamilyCode) Valid() bool
Valid indicates whether the value is a known member of the DeviceFamilyCode enum.
type DeviceFeatures ¶
type DeviceFeatures struct {
AutoTrack *FeatureAvailability `json:"auto_track,omitempty"`
AutoZoomTrack *FeatureAvailability `json:"auto_zoom_track,omitempty"`
MotionsEnabled *bool `json:"motions_enabled,omitempty"`
VideoRendering *VideoRenderingFeature `json:"video_rendering,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceFeatures defines model for DeviceFeatures.
func (DeviceFeatures) Get ¶
func (a DeviceFeatures) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceFeatures. Returns the specified element and whether it was found
func (DeviceFeatures) MarshalJSON ¶
func (a DeviceFeatures) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceFeatures to handle AdditionalProperties
func (*DeviceFeatures) Set ¶
func (a *DeviceFeatures) Set(fieldName string, value interface{})
Setter for additional properties for DeviceFeatures
func (*DeviceFeatures) UnmarshalJSON ¶
func (a *DeviceFeatures) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceFeatures to handle AdditionalProperties
type DeviceHealth ¶
type DeviceHealth struct {
BatteryLevel *int `json:"battery_level,omitempty"`
// BatteryPercentageCategory The capture reports unknown; other battery categories remain valid.
BatteryPercentageCategory *string `json:"battery_percentage_category,omitempty"`
BatteryStatus *string `json:"battery_status,omitempty"`
Connected *bool `json:"connected,omitempty"`
FirmwareVersion *string `json:"firmware_version,omitempty"`
LastUpdate *string `json:"last_update,omitempty"`
// PtzConnected Observed non-null PTZ connection label is emperor; other hardware labels remain valid.
PtzConnected *string `json:"ptz_connected,omitempty"`
Rssi *float32 `json:"rssi,omitempty"`
SignalStrength *int `json:"signal_strength,omitempty"`
SupportedRpcCommands *[]string `json:"supported_rpc_commands,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceHealth defines model for DeviceHealth.
func (DeviceHealth) Get ¶
func (a DeviceHealth) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceHealth. Returns the specified element and whether it was found
func (DeviceHealth) MarshalJSON ¶
func (a DeviceHealth) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceHealth to handle AdditionalProperties
func (*DeviceHealth) Set ¶
func (a *DeviceHealth) Set(fieldName string, value interface{})
Setter for additional properties for DeviceHealth
func (*DeviceHealth) UnmarshalJSON ¶
func (a *DeviceHealth) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceHealth to handle AdditionalProperties
type DeviceLegacySettings ¶
type DeviceLegacySettings struct {
// DoorbellVolume Legacy doorbell volume accepted by the Go client.
DoorbellVolume *int `json:"doorbell_volume,omitempty"`
LiveViewDisabled *bool `json:"live_view_disabled,omitempty"`
MotionDetectionEnabled *bool `json:"motion_detection_enabled,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceLegacySettings defines model for DeviceLegacySettings.
func (DeviceLegacySettings) Get ¶
func (a DeviceLegacySettings) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceLegacySettings. Returns the specified element and whether it was found
func (DeviceLegacySettings) MarshalJSON ¶
func (a DeviceLegacySettings) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceLegacySettings to handle AdditionalProperties
func (*DeviceLegacySettings) Set ¶
func (a *DeviceLegacySettings) Set(fieldName string, value interface{})
Setter for additional properties for DeviceLegacySettings
func (*DeviceLegacySettings) UnmarshalJSON ¶
func (a *DeviceLegacySettings) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceLegacySettings to handle AdditionalProperties
type DeviceList ¶
type DeviceList struct {
DeviceOperationSets *map[string]DeviceOperationSet `json:"device_operation_sets,omitempty"`
Devices []Device `json:"devices"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceList defines model for DeviceList.
func (DeviceList) Get ¶
func (a DeviceList) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceList. Returns the specified element and whether it was found
func (DeviceList) MarshalJSON ¶
func (a DeviceList) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceList to handle AdditionalProperties
func (*DeviceList) Set ¶
func (a *DeviceList) Set(fieldName string, value interface{})
Setter for additional properties for DeviceList
func (*DeviceList) UnmarshalJSON ¶
func (a *DeviceList) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceList to handle AdditionalProperties
type DeviceOperationSet ¶
DeviceOperationSet Operation names are dynamic; captured entries are empty capability descriptors.
type DeviceOwner ¶
type DeviceOwner struct {
Email *string `json:"email,omitempty"`
FirstName *string `json:"first_name,omitempty"`
// Id Numeric in the v3 capture and string in legacy inventory fixtures.
Id *DeviceOwner_Id `json:"id,omitempty"`
LastName *string `json:"last_name,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceOwner defines model for DeviceOwner.
func (DeviceOwner) Get ¶
func (a DeviceOwner) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceOwner. Returns the specified element and whether it was found
func (DeviceOwner) MarshalJSON ¶
func (a DeviceOwner) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceOwner to handle AdditionalProperties
func (*DeviceOwner) Set ¶
func (a *DeviceOwner) Set(fieldName string, value interface{})
Setter for additional properties for DeviceOwner
func (*DeviceOwner) UnmarshalJSON ¶
func (a *DeviceOwner) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceOwner to handle AdditionalProperties
type DeviceOwnerId0 ¶
type DeviceOwnerId0 = int64
DeviceOwnerId0 defines model for DeviceOwner.Id.0.
type DeviceOwnerId1 ¶
type DeviceOwnerId1 = string
DeviceOwnerId1 defines model for DeviceOwner.Id.1.
type DeviceOwner_Id ¶
type DeviceOwner_Id struct {
// contains filtered or unexported fields
}
DeviceOwner_Id Numeric in the v3 capture and string in legacy inventory fixtures.
func (DeviceOwner_Id) AsDeviceOwnerId0 ¶
func (t DeviceOwner_Id) AsDeviceOwnerId0() (DeviceOwnerId0, error)
AsDeviceOwnerId0 returns the union data inside the DeviceOwner_Id as a DeviceOwnerId0
func (DeviceOwner_Id) AsDeviceOwnerId1 ¶
func (t DeviceOwner_Id) AsDeviceOwnerId1() (DeviceOwnerId1, error)
AsDeviceOwnerId1 returns the union data inside the DeviceOwner_Id as a DeviceOwnerId1
func (*DeviceOwner_Id) FromDeviceOwnerId0 ¶
func (t *DeviceOwner_Id) FromDeviceOwnerId0(v DeviceOwnerId0) error
FromDeviceOwnerId0 overwrites any union data inside the DeviceOwner_Id as the provided DeviceOwnerId0
func (*DeviceOwner_Id) FromDeviceOwnerId1 ¶
func (t *DeviceOwner_Id) FromDeviceOwnerId1(v DeviceOwnerId1) error
FromDeviceOwnerId1 overwrites any union data inside the DeviceOwner_Id as the provided DeviceOwnerId1
func (DeviceOwner_Id) MarshalJSON ¶
func (t DeviceOwner_Id) MarshalJSON() ([]byte, error)
func (*DeviceOwner_Id) MergeDeviceOwnerId0 ¶
func (t *DeviceOwner_Id) MergeDeviceOwnerId0(v DeviceOwnerId0) error
MergeDeviceOwnerId0 performs a merge with any union data inside the DeviceOwner_Id, using the provided DeviceOwnerId0
func (*DeviceOwner_Id) MergeDeviceOwnerId1 ¶
func (t *DeviceOwner_Id) MergeDeviceOwnerId1(v DeviceOwnerId1) error
MergeDeviceOwnerId1 performs a merge with any union data inside the DeviceOwner_Id, using the provided DeviceOwnerId1
func (*DeviceOwner_Id) UnmarshalJSON ¶
func (t *DeviceOwner_Id) UnmarshalJSON(b []byte) error
type DeviceSettings ¶
type DeviceSettings struct {
ChimeSettings *ChimeSettings `json:"chime_settings,omitempty"`
MotionSettings *MotionSettings `json:"motion_settings,omitempty"`
PtzSettings *PTZSettings `json:"ptz_settings,omitempty"`
VideoSettings *VideoSettings `json:"video_settings,omitempty"`
VolumeSettings *VolumeSettings `json:"volume_settings,omitempty"`
AdditionalProperties map[string]JsonValue `json:"-"`
}
DeviceSettings defines model for DeviceSettings.
func (DeviceSettings) Get ¶
func (a DeviceSettings) Get(fieldName string) (value JsonValue, found bool)
Getter for additional properties for DeviceSettings. Returns the specified element and whether it was found
func (DeviceSettings) MarshalJSON ¶
func (a DeviceSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceSettings to handle AdditionalProperties
func (*DeviceSettings) Set ¶
func (a *DeviceSettings) Set(fieldName string, value JsonValue)
Setter for additional properties for DeviceSettings
func (*DeviceSettings) UnmarshalJSON ¶
func (a *DeviceSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceSettings to handle AdditionalProperties
type DeviceSettingsPatch ¶
type DeviceSettingsPatch struct {
GeneralSettings *SettingsObject `json:"general_settings,omitempty"`
MotionSettings *MotionSettingsPatch `json:"motion_settings,omitempty"`
VideoSettings *SettingsObject `json:"video_settings,omitempty"`
VolumeSettings *SettingsObject `json:"volume_settings,omitempty"`
AdditionalProperties map[string]SettingsObject `json:"-"`
}
DeviceSettingsPatch Extensible wire patch. Captured variants include motion_settings, video_settings, general_settings, and volume_settings. The public typed Go method currently emits motion_settings only.
func (DeviceSettingsPatch) Get ¶
func (a DeviceSettingsPatch) Get(fieldName string) (value SettingsObject, found bool)
Getter for additional properties for DeviceSettingsPatch. Returns the specified element and whether it was found
func (DeviceSettingsPatch) MarshalJSON ¶
func (a DeviceSettingsPatch) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceSettingsPatch to handle AdditionalProperties
func (*DeviceSettingsPatch) Set ¶
func (a *DeviceSettingsPatch) Set(fieldName string, value SettingsObject)
Setter for additional properties for DeviceSettingsPatch
func (*DeviceSettingsPatch) UnmarshalJSON ¶
func (a *DeviceSettingsPatch) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceSettingsPatch to handle AdditionalProperties
type DeviceTimeline ¶
type DeviceTimeline struct {
Items []TimelineEvent `json:"items"`
PaginationKey *string `json:"pagination_key,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
DeviceTimeline defines model for DeviceTimeline.
func (DeviceTimeline) Get ¶
func (a DeviceTimeline) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for DeviceTimeline. Returns the specified element and whether it was found
func (DeviceTimeline) MarshalJSON ¶
func (a DeviceTimeline) MarshalJSON() ([]byte, error)
Override default JSON handling for DeviceTimeline to handle AdditionalProperties
func (*DeviceTimeline) Set ¶
func (a *DeviceTimeline) Set(fieldName string, value interface{})
Setter for additional properties for DeviceTimeline
func (*DeviceTimeline) UnmarshalJSON ¶
func (a *DeviceTimeline) UnmarshalJSON(b []byte) error
Override default JSON handling for DeviceTimeline to handle AdditionalProperties
type DoorbellDeviceKind ¶
type DoorbellDeviceKind string
DoorbellDeviceKind Known doorbell kinds from captured and baseline inventories; unknown kinds remain valid on Device.kind.
const ( CocoaDoorbell DoorbellDeviceKind = "cocoa_doorbell" CocoaDoorbellV2 DoorbellDeviceKind = "cocoa_doorbell_v2" DfDoorbellClownfish DoorbellDeviceKind = "df_doorbell_clownfish" Doorbell DoorbellDeviceKind = "doorbell" DoorbellGrahamCracker DoorbellDeviceKind = "doorbell_graham_cracker" DoorbellOyster DoorbellDeviceKind = "doorbell_oyster" DoorbellPortal DoorbellDeviceKind = "doorbell_portal" DoorbellScallop DoorbellDeviceKind = "doorbell_scallop" DoorbellScallopLite DoorbellDeviceKind = "doorbell_scallop_lite" DoorbellV3 DoorbellDeviceKind = "doorbell_v3" DoorbellV4 DoorbellDeviceKind = "doorbell_v4" DoorbellV5 DoorbellDeviceKind = "doorbell_v5" Doorbot DoorbellDeviceKind = "doorbot" JboxV1 DoorbellDeviceKind = "jbox_v1" LpdV1 DoorbellDeviceKind = "lpd_v1" LpdV2 DoorbellDeviceKind = "lpd_v2" LpdV3 DoorbellDeviceKind = "lpd_v3" LpdV4 DoorbellDeviceKind = "lpd_v4" )
Defines values for DoorbellDeviceKind.
func (DoorbellDeviceKind) Valid ¶
func (e DoorbellDeviceKind) Valid() bool
Valid indicates whether the value is a known member of the DoorbellDeviceKind enum.
type EnableExtendedEmergencyCellUsage ¶
type EnableExtendedEmergencyCellUsage = bool
EnableExtendedEmergencyCellUsage defines model for enableExtendedEmergencyCellUsage.
type ExchangeOrRefreshOAuthTokenFormdataRequestBody ¶
type ExchangeOrRefreshOAuthTokenFormdataRequestBody = OAuthTokenGrant
ExchangeOrRefreshOAuthTokenFormdataRequestBody defines body for ExchangeOrRefreshOAuthToken for application/x-www-form-urlencoded ContentType.
type ExchangeOrRefreshOAuthTokenResponse ¶
type ExchangeOrRefreshOAuthTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OAuthToken
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *AuthFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *AuthFailure
// JSON412 the response for an HTTP 412 `application/json` response
JSON412 *TwoFactorRequired
// JSON429 the response for an HTTP 429 `application/json` response
JSON429 *RateLimited
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *AuthFailure
}
func ParseExchangeOrRefreshOAuthTokenResponse ¶
func ParseExchangeOrRefreshOAuthTokenResponse(rsp *http.Response) (*ExchangeOrRefreshOAuthTokenResponse, error)
ParseExchangeOrRefreshOAuthTokenResponse parses an HTTP response from a ExchangeOrRefreshOAuthTokenWithResponse call
func (ExchangeOrRefreshOAuthTokenResponse) ContentType ¶
func (r ExchangeOrRefreshOAuthTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ExchangeOrRefreshOAuthTokenResponse) GetBody ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ExchangeOrRefreshOAuthTokenResponse) GetJSON200 ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON200() *OAuthToken
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ExchangeOrRefreshOAuthTokenResponse) GetJSON400 ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON400() *AuthFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ExchangeOrRefreshOAuthTokenResponse) GetJSON401 ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON401() *AuthFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ExchangeOrRefreshOAuthTokenResponse) GetJSON412 ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON412() *TwoFactorRequired
GetJSON412 returns the response for an HTTP 412 `application/json` response
func (ExchangeOrRefreshOAuthTokenResponse) GetJSON429 ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetJSON429() *RateLimited
GetJSON429 returns the response for an HTTP 429 `application/json` response
func (ExchangeOrRefreshOAuthTokenResponse) GetJSONDefault ¶
func (r ExchangeOrRefreshOAuthTokenResponse) GetJSONDefault() *AuthFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (ExchangeOrRefreshOAuthTokenResponse) Status ¶
func (r ExchangeOrRefreshOAuthTokenResponse) Status() string
Status returns HTTPResponse.Status
func (ExchangeOrRefreshOAuthTokenResponse) StatusCode ¶
func (r ExchangeOrRefreshOAuthTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExtensibleObject ¶
ExtensibleObject defines model for ExtensibleObject.
type FavoriteRecordingResponse ¶
func ParseFavoriteRecordingResponse ¶
func ParseFavoriteRecordingResponse(rsp *http.Response) (*FavoriteRecordingResponse, error)
ParseFavoriteRecordingResponse parses an HTTP response from a FavoriteRecordingWithResponse call
func (FavoriteRecordingResponse) ContentType ¶
func (r FavoriteRecordingResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (FavoriteRecordingResponse) GetBody ¶
func (r FavoriteRecordingResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (FavoriteRecordingResponse) Status ¶
func (r FavoriteRecordingResponse) Status() string
Status returns HTTPResponse.Status
func (FavoriteRecordingResponse) StatusCode ¶
func (r FavoriteRecordingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FeatureAvailability ¶
type FeatureAvailability struct {
Eligibility *FeatureEligibility `json:"eligibility,omitempty"`
Enablement *FeatureEnablement `json:"enablement,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
FeatureAvailability defines model for FeatureAvailability.
func (FeatureAvailability) Get ¶
func (a FeatureAvailability) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for FeatureAvailability. Returns the specified element and whether it was found
func (FeatureAvailability) MarshalJSON ¶
func (a FeatureAvailability) MarshalJSON() ([]byte, error)
Override default JSON handling for FeatureAvailability to handle AdditionalProperties
func (*FeatureAvailability) Set ¶
func (a *FeatureAvailability) Set(fieldName string, value interface{})
Setter for additional properties for FeatureAvailability
func (*FeatureAvailability) UnmarshalJSON ¶
func (a *FeatureAvailability) UnmarshalJSON(b []byte) error
Override default JSON handling for FeatureAvailability to handle AdditionalProperties
type FeatureEligibility ¶
type FeatureEligibility struct {
Eligible *bool `json:"eligible,omitempty"`
IneligibilityReasons *[]string `json:"ineligibility_reasons,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
FeatureEligibility defines model for FeatureEligibility.
func (FeatureEligibility) Get ¶
func (a FeatureEligibility) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for FeatureEligibility. Returns the specified element and whether it was found
func (FeatureEligibility) MarshalJSON ¶
func (a FeatureEligibility) MarshalJSON() ([]byte, error)
Override default JSON handling for FeatureEligibility to handle AdditionalProperties
func (*FeatureEligibility) Set ¶
func (a *FeatureEligibility) Set(fieldName string, value interface{})
Setter for additional properties for FeatureEligibility
func (*FeatureEligibility) UnmarshalJSON ¶
func (a *FeatureEligibility) UnmarshalJSON(b []byte) error
Override default JSON handling for FeatureEligibility to handle AdditionalProperties
type FeatureEnablement ¶
type FeatureEnablement struct {
Allowed *bool `json:"allowed,omitempty"`
DisallowReasons *[]string `json:"disallow_reasons,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
FeatureEnablement defines model for FeatureEnablement.
func (FeatureEnablement) Get ¶
func (a FeatureEnablement) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for FeatureEnablement. Returns the specified element and whether it was found
func (FeatureEnablement) MarshalJSON ¶
func (a FeatureEnablement) MarshalJSON() ([]byte, error)
Override default JSON handling for FeatureEnablement to handle AdditionalProperties
func (*FeatureEnablement) Set ¶
func (a *FeatureEnablement) Set(fieldName string, value interface{})
Setter for additional properties for FeatureEnablement
func (*FeatureEnablement) UnmarshalJSON ¶
func (a *FeatureEnablement) UnmarshalJSON(b []byte) error
Override default JSON handling for FeatureEnablement to handle AdditionalProperties
type GeoCoordinates ¶
type GeoCoordinates struct {
Latitude *float32 `json:"latitude,omitempty"`
Longitude *float32 `json:"longitude,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
GeoCoordinates defines model for GeoCoordinates.
func (GeoCoordinates) Get ¶
func (a GeoCoordinates) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for GeoCoordinates. Returns the specified element and whether it was found
func (GeoCoordinates) MarshalJSON ¶
func (a GeoCoordinates) MarshalJSON() ([]byte, error)
Override default JSON handling for GeoCoordinates to handle AdditionalProperties
func (*GeoCoordinates) Set ¶
func (a *GeoCoordinates) Set(fieldName string, value interface{})
Setter for additional properties for GeoCoordinates
func (*GeoCoordinates) UnmarshalJSON ¶
func (a *GeoCoordinates) UnmarshalJSON(b []byte) error
Override default JSON handling for GeoCoordinates to handle AdditionalProperties
type GetActiveDingsResponse ¶
type GetActiveDingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RecordingArray
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseGetActiveDingsResponse ¶
func ParseGetActiveDingsResponse(rsp *http.Response) (*GetActiveDingsResponse, error)
ParseGetActiveDingsResponse parses an HTTP response from a GetActiveDingsWithResponse call
func (GetActiveDingsResponse) ContentType ¶
func (r GetActiveDingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetActiveDingsResponse) GetBody ¶
func (r GetActiveDingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetActiveDingsResponse) GetJSON200 ¶
func (r GetActiveDingsResponse) GetJSON200() *RecordingArray
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetActiveDingsResponse) GetJSONDefault ¶
func (r GetActiveDingsResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetActiveDingsResponse) Status ¶
func (r GetActiveDingsResponse) Status() string
Status returns HTTPResponse.Status
func (GetActiveDingsResponse) StatusCode ¶
func (r GetActiveDingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCapturedLocationTicketsParams ¶
type GetCapturedLocationTicketsParams struct {
// AllowUserOnly Boolean encoded as a query string; false was recorded.
AllowUserOnly *AllowUserOnly `form:"allowUserOnly,omitempty" json:"allowUserOnly,omitempty"`
LocationID *LocationID `form:"locationID,omitempty" json:"locationID,omitempty"`
LocationSubscription *LocationSubscription `form:"locationSubscription,omitempty" json:"locationSubscription,omitempty"`
// EnableExtendedEmergencyCellUsage Boolean encoded as a query string; true was recorded.
EnableExtendedEmergencyCellUsage *EnableExtendedEmergencyCellUsage `form:"enableExtendedEmergencyCellUsage,omitempty" json:"enableExtendedEmergencyCellUsage,omitempty"`
// RequestedTransport WebSocket transport ws was recorded; other transports remain possible.
RequestedTransport *RequestedTransport `form:"requestedTransport,omitempty" json:"requestedTransport,omitempty"`
}
GetCapturedLocationTicketsParams defines parameters for GetCapturedLocationTickets.
type GetCapturedLocationTicketsResponse ¶
type GetCapturedLocationTicketsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CapturedTickets
}
func ParseGetCapturedLocationTicketsResponse ¶
func ParseGetCapturedLocationTicketsResponse(rsp *http.Response) (*GetCapturedLocationTicketsResponse, error)
ParseGetCapturedLocationTicketsResponse parses an HTTP response from a GetCapturedLocationTicketsWithResponse call
func (GetCapturedLocationTicketsResponse) ContentType ¶
func (r GetCapturedLocationTicketsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCapturedLocationTicketsResponse) GetBody ¶
func (r GetCapturedLocationTicketsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetCapturedLocationTicketsResponse) GetJSON200 ¶
func (r GetCapturedLocationTicketsResponse) GetJSON200() *CapturedTickets
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetCapturedLocationTicketsResponse) Status ¶
func (r GetCapturedLocationTicketsResponse) Status() string
Status returns HTTPResponse.Status
func (GetCapturedLocationTicketsResponse) StatusCode ¶
func (r GetCapturedLocationTicketsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeviceResponse ¶
type GetDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeviceDetail
}
func ParseGetDeviceResponse ¶
func ParseGetDeviceResponse(rsp *http.Response) (*GetDeviceResponse, error)
ParseGetDeviceResponse parses an HTTP response from a GetDeviceWithResponse call
func (GetDeviceResponse) ContentType ¶
func (r GetDeviceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDeviceResponse) GetBody ¶
func (r GetDeviceResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDeviceResponse) GetJSON200 ¶
func (r GetDeviceResponse) GetJSON200() *DeviceDetail
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDeviceResponse) Status ¶
func (r GetDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeviceResponse) StatusCode ¶
func (r GetDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeviceSettingsResponse ¶
type GetDeviceSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeviceSettings
}
func ParseGetDeviceSettingsResponse ¶
func ParseGetDeviceSettingsResponse(rsp *http.Response) (*GetDeviceSettingsResponse, error)
ParseGetDeviceSettingsResponse parses an HTTP response from a GetDeviceSettingsWithResponse call
func (GetDeviceSettingsResponse) ContentType ¶
func (r GetDeviceSettingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDeviceSettingsResponse) GetBody ¶
func (r GetDeviceSettingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDeviceSettingsResponse) GetJSON200 ¶
func (r GetDeviceSettingsResponse) GetJSON200() *DeviceSettings
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDeviceSettingsResponse) Status ¶
func (r GetDeviceSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeviceSettingsResponse) StatusCode ¶
func (r GetDeviceSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeviceTimelineParams ¶
type GetDeviceTimelineParams struct {
// StartTime Inclusive timeline start in RFC 3339 format; requiredness is not established.
StartTime *StartTime `form:"start_time,omitempty" json:"start_time,omitempty"`
// EndTime Timeline end in RFC 3339 format; requiredness is not established.
EndTime *EndTime `form:"end_time,omitempty" json:"end_time,omitempty"`
// Order Descending order was recorded; other values may be accepted.
Order *Order `form:"order,omitempty" json:"order,omitempty"`
// Limit Positive maximum number of results; 20 was recorded.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Capabilities Comma-separated capability tokens. Observed tokens are offline_event, vehicle and ringtercom; future tokens are possible.
Capabilities *Capabilities `form:"capabilities,omitempty" json:"capabilities,omitempty"`
}
GetDeviceTimelineParams defines parameters for GetDeviceTimeline.
type GetDeviceTimelineResponse ¶
type GetDeviceTimelineResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeviceTimeline
}
func ParseGetDeviceTimelineResponse ¶
func ParseGetDeviceTimelineResponse(rsp *http.Response) (*GetDeviceTimelineResponse, error)
ParseGetDeviceTimelineResponse parses an HTTP response from a GetDeviceTimelineWithResponse call
func (GetDeviceTimelineResponse) ContentType ¶
func (r GetDeviceTimelineResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDeviceTimelineResponse) GetBody ¶
func (r GetDeviceTimelineResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDeviceTimelineResponse) GetJSON200 ¶
func (r GetDeviceTimelineResponse) GetJSON200() *DeviceTimeline
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDeviceTimelineResponse) Status ¶
func (r GetDeviceTimelineResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeviceTimelineResponse) StatusCode ¶
func (r GetDeviceTimelineResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryDevicesParams ¶
type GetHistoryDevicesParams struct {
// SourceIds Observed query name; value is sanitized in the capture.
SourceIds *SourceIds `form:"source_ids,omitempty" json:"source_ids,omitempty"`
// Capabilities Comma-separated capability tokens. Observed tokens are offline_event, vehicle and ringtercom; future tokens are possible.
Capabilities *Capabilities `form:"capabilities,omitempty" json:"capabilities,omitempty"`
}
GetHistoryDevicesParams defines parameters for GetHistoryDevices.
type GetHistoryDevicesResponse ¶
type GetHistoryDevicesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HistoryDevices
}
func ParseGetHistoryDevicesResponse ¶
func ParseGetHistoryDevicesResponse(rsp *http.Response) (*GetHistoryDevicesResponse, error)
ParseGetHistoryDevicesResponse parses an HTTP response from a GetHistoryDevicesWithResponse call
func (GetHistoryDevicesResponse) ContentType ¶
func (r GetHistoryDevicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryDevicesResponse) GetBody ¶
func (r GetHistoryDevicesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryDevicesResponse) GetJSON200 ¶
func (r GetHistoryDevicesResponse) GetJSON200() *HistoryDevices
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHistoryDevicesResponse) Status ¶
func (r GetHistoryDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryDevicesResponse) StatusCode ¶
func (r GetHistoryDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLegacyDeviceHealthResponse ¶
type GetLegacyDeviceHealthResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LegacyDeviceHealth
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseGetLegacyDeviceHealthResponse ¶
func ParseGetLegacyDeviceHealthResponse(rsp *http.Response) (*GetLegacyDeviceHealthResponse, error)
ParseGetLegacyDeviceHealthResponse parses an HTTP response from a GetLegacyDeviceHealthWithResponse call
func (GetLegacyDeviceHealthResponse) ContentType ¶
func (r GetLegacyDeviceHealthResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLegacyDeviceHealthResponse) GetBody ¶
func (r GetLegacyDeviceHealthResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLegacyDeviceHealthResponse) GetJSON200 ¶
func (r GetLegacyDeviceHealthResponse) GetJSON200() *LegacyDeviceHealth
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLegacyDeviceHealthResponse) GetJSONDefault ¶
func (r GetLegacyDeviceHealthResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLegacyDeviceHealthResponse) Status ¶
func (r GetLegacyDeviceHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetLegacyDeviceHealthResponse) StatusCode ¶
func (r GetLegacyDeviceHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLegacyDeviceHistoryParams ¶
type GetLegacyDeviceHistoryParams struct {
// Limit Positive maximum number of results; 20 was recorded.
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Kind Go forwards this value without restricting it; known history kinds are ding, motion and on_demand.
Kind *Kind `form:"kind,omitempty" json:"kind,omitempty"`
// OlderThan Positive history cursor timestamp documented for this route; not currently sent by Go.
OlderThan *OlderThan `form:"older_than,omitempty" json:"older_than,omitempty"`
}
GetLegacyDeviceHistoryParams defines parameters for GetLegacyDeviceHistory.
type GetLegacyDeviceHistoryResponse ¶
type GetLegacyDeviceHistoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RecordingArray
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseGetLegacyDeviceHistoryResponse ¶
func ParseGetLegacyDeviceHistoryResponse(rsp *http.Response) (*GetLegacyDeviceHistoryResponse, error)
ParseGetLegacyDeviceHistoryResponse parses an HTTP response from a GetLegacyDeviceHistoryWithResponse call
func (GetLegacyDeviceHistoryResponse) ContentType ¶
func (r GetLegacyDeviceHistoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLegacyDeviceHistoryResponse) GetBody ¶
func (r GetLegacyDeviceHistoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLegacyDeviceHistoryResponse) GetJSON200 ¶
func (r GetLegacyDeviceHistoryResponse) GetJSON200() *RecordingArray
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLegacyDeviceHistoryResponse) GetJSONDefault ¶
func (r GetLegacyDeviceHistoryResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLegacyDeviceHistoryResponse) Status ¶
func (r GetLegacyDeviceHistoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetLegacyDeviceHistoryResponse) StatusCode ¶
func (r GetLegacyDeviceHistoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLegacyRecordingShareURLResponse ¶
type GetLegacyRecordingShareURLResponse struct {
JSON200 *RecordingShare
JSONDefault *HTTPFailure
}
func ParseGetLegacyRecordingShareURLResponse ¶
func ParseGetLegacyRecordingShareURLResponse(rsp *http.Response) (*GetLegacyRecordingShareURLResponse, error)
ParseGetLegacyRecordingShareURLResponse parses an HTTP response from a GetLegacyRecordingShareURLWithResponse call
func (GetLegacyRecordingShareURLResponse) ContentType ¶
func (r GetLegacyRecordingShareURLResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLegacyRecordingShareURLResponse) GetBody ¶
func (r GetLegacyRecordingShareURLResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLegacyRecordingShareURLResponse) GetJSON200 ¶
func (r GetLegacyRecordingShareURLResponse) GetJSON200() *RecordingShare
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLegacyRecordingShareURLResponse) GetJSONDefault ¶
func (r GetLegacyRecordingShareURLResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLegacyRecordingShareURLResponse) Status ¶
func (r GetLegacyRecordingShareURLResponse) Status() string
Status returns HTTPResponse.Status
func (GetLegacyRecordingShareURLResponse) StatusCode ¶
func (r GetLegacyRecordingShareURLResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLegacySnapshotImageResponse ¶
type GetLegacySnapshotImageResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseGetLegacySnapshotImageResponse ¶
func ParseGetLegacySnapshotImageResponse(rsp *http.Response) (*GetLegacySnapshotImageResponse, error)
ParseGetLegacySnapshotImageResponse parses an HTTP response from a GetLegacySnapshotImageWithResponse call
func (GetLegacySnapshotImageResponse) ContentType ¶
func (r GetLegacySnapshotImageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLegacySnapshotImageResponse) GetBody ¶
func (r GetLegacySnapshotImageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLegacySnapshotImageResponse) GetJSONDefault ¶
func (r GetLegacySnapshotImageResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (GetLegacySnapshotImageResponse) Status ¶
func (r GetLegacySnapshotImageResponse) Status() string
Status returns HTTPResponse.Status
func (GetLegacySnapshotImageResponse) StatusCode ¶
func (r GetLegacySnapshotImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLocationParams ¶
type GetLocationParams struct {
// Include Comma-separated location expansions. Observed tokens are capabilities, presentation and status; future tokens are possible.
Include *Include `form:"include,omitempty" json:"include,omitempty"`
}
GetLocationParams defines parameters for GetLocation.
type GetLocationResponse ¶
type GetLocationResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LocationDetail
}
func ParseGetLocationResponse ¶
func ParseGetLocationResponse(rsp *http.Response) (*GetLocationResponse, error)
ParseGetLocationResponse parses an HTTP response from a GetLocationWithResponse call
func (GetLocationResponse) ContentType ¶
func (r GetLocationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLocationResponse) GetBody ¶
func (r GetLocationResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLocationResponse) GetJSON200 ¶
func (r GetLocationResponse) GetJSON200() *LocationDetail
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLocationResponse) Status ¶
func (r GetLocationResponse) Status() string
Status returns HTTPResponse.Status
func (GetLocationResponse) StatusCode ¶
func (r GetLocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HTTPFailure ¶
type HTTPFailure = JsonValue
HTTPFailure Explicit escape hatch for fields without observed structure or typed error responses.
type HistoryDevices ¶
type HistoryDevices struct {
Events []TimelineEvent `json:"events"`
Feed *[]HistoryFeedItem `json:"feed,omitempty"`
PaginationKey *string `json:"pagination_key,omitempty"`
Schema *string `json:"schema,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
HistoryDevices defines model for HistoryDevices.
func (HistoryDevices) Get ¶
func (a HistoryDevices) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for HistoryDevices. Returns the specified element and whether it was found
func (HistoryDevices) MarshalJSON ¶
func (a HistoryDevices) MarshalJSON() ([]byte, error)
Override default JSON handling for HistoryDevices to handle AdditionalProperties
func (*HistoryDevices) Set ¶
func (a *HistoryDevices) Set(fieldName string, value interface{})
Setter for additional properties for HistoryDevices
func (*HistoryDevices) UnmarshalJSON ¶
func (a *HistoryDevices) UnmarshalJSON(b []byte) error
Override default JSON handling for HistoryDevices to handle AdditionalProperties
type HistoryFeedItem ¶
type HistoryFeedItem struct {
Id *string `json:"id,omitempty"`
// Type Captured feed item type is EVENT; other types remain valid.
Type *string `json:"type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
HistoryFeedItem defines model for HistoryFeedItem.
func (HistoryFeedItem) Get ¶
func (a HistoryFeedItem) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for HistoryFeedItem. Returns the specified element and whether it was found
func (HistoryFeedItem) MarshalJSON ¶
func (a HistoryFeedItem) MarshalJSON() ([]byte, error)
Override default JSON handling for HistoryFeedItem to handle AdditionalProperties
func (*HistoryFeedItem) Set ¶
func (a *HistoryFeedItem) Set(fieldName string, value interface{})
Setter for additional properties for HistoryFeedItem
func (*HistoryFeedItem) UnmarshalJSON ¶
func (a *HistoryFeedItem) UnmarshalJSON(b []byte) error
Override default JSON handling for HistoryFeedItem to handle AdditionalProperties
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Json ¶
type Json = JsonValue
Json Explicit escape hatch for fields without observed structure or typed error responses.
type JsonValue ¶
type JsonValue = interface{}
JsonValue Explicit escape hatch for fields without observed structure or typed error responses.
type LegacyDeviceHealth ¶
type LegacyDeviceHealth struct {
BatteryLevel *int `json:"battery_level,omitempty"`
BatteryStatus *string `json:"battery_status,omitempty"`
FirmwareVersion *string `json:"firmware_version,omitempty"`
LastUpdate *string `json:"last_update,omitempty"`
SignalStrength *int `json:"signal_strength,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LegacyDeviceHealth Fields consumed by the legacy health adapter; no captured C1 response establishes additional fields.
func (LegacyDeviceHealth) Get ¶
func (a LegacyDeviceHealth) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LegacyDeviceHealth. Returns the specified element and whether it was found
func (LegacyDeviceHealth) MarshalJSON ¶
func (a LegacyDeviceHealth) MarshalJSON() ([]byte, error)
Override default JSON handling for LegacyDeviceHealth to handle AdditionalProperties
func (*LegacyDeviceHealth) Set ¶
func (a *LegacyDeviceHealth) Set(fieldName string, value interface{})
Setter for additional properties for LegacyDeviceHealth
func (*LegacyDeviceHealth) UnmarshalJSON ¶
func (a *LegacyDeviceHealth) UnmarshalJSON(b []byte) error
Override default JSON handling for LegacyDeviceHealth to handle AdditionalProperties
type LegacyPasswordGrant ¶
type LegacyPasswordGrant struct {
ClientId string `json:"client_id"`
GrantType LegacyPasswordGrantGrantType `json:"grant_type"`
Password string `json:"password"`
Scope string `json:"scope"`
Username string `json:"username"`
}
LegacyPasswordGrant defines model for LegacyPasswordGrant.
type LegacyPasswordGrantGrantType ¶
type LegacyPasswordGrantGrantType string
LegacyPasswordGrantGrantType defines model for LegacyPasswordGrant.GrantType.
const (
Password LegacyPasswordGrantGrantType = "password"
)
Defines values for LegacyPasswordGrantGrantType.
func (LegacyPasswordGrantGrantType) Valid ¶
func (e LegacyPasswordGrantGrantType) Valid() bool
Valid indicates whether the value is a known member of the LegacyPasswordGrantGrantType enum.
type LegacySignalingTicket ¶
type LegacySignalingTicket struct {
Ticket string `json:"ticket"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LegacySignalingTicket defines model for LegacySignalingTicket.
func (LegacySignalingTicket) Get ¶
func (a LegacySignalingTicket) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LegacySignalingTicket. Returns the specified element and whether it was found
func (LegacySignalingTicket) MarshalJSON ¶
func (a LegacySignalingTicket) MarshalJSON() ([]byte, error)
Override default JSON handling for LegacySignalingTicket to handle AdditionalProperties
func (*LegacySignalingTicket) Set ¶
func (a *LegacySignalingTicket) Set(fieldName string, value interface{})
Setter for additional properties for LegacySignalingTicket
func (*LegacySignalingTicket) UnmarshalJSON ¶
func (a *LegacySignalingTicket) UnmarshalJSON(b []byte) error
Override default JSON handling for LegacySignalingTicket to handle AdditionalProperties
type ListDevicesResponse ¶
type ListDevicesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeviceList
}
func ParseListDevicesResponse ¶
func ParseListDevicesResponse(rsp *http.Response) (*ListDevicesResponse, error)
ParseListDevicesResponse parses an HTTP response from a ListDevicesWithResponse call
func (ListDevicesResponse) ContentType ¶
func (r ListDevicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDevicesResponse) GetBody ¶
func (r ListDevicesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDevicesResponse) GetJSON200 ¶
func (r ListDevicesResponse) GetJSON200() *DeviceList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDevicesResponse) Status ¶
func (r ListDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListDevicesResponse) StatusCode ¶
func (r ListDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLocationDevicesResponse ¶
type ListLocationDevicesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LocationGroupDevices
}
func ParseListLocationDevicesResponse ¶
func ParseListLocationDevicesResponse(rsp *http.Response) (*ListLocationDevicesResponse, error)
ParseListLocationDevicesResponse parses an HTTP response from a ListLocationDevicesWithResponse call
func (ListLocationDevicesResponse) ContentType ¶
func (r ListLocationDevicesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLocationDevicesResponse) GetBody ¶
func (r ListLocationDevicesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLocationDevicesResponse) GetJSON200 ¶
func (r ListLocationDevicesResponse) GetJSON200() *LocationGroupDevices
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLocationDevicesResponse) Status ¶
func (r ListLocationDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListLocationDevicesResponse) StatusCode ¶
func (r ListLocationDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLocationGroupsResponse ¶
type ListLocationGroupsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LocationGroups
}
func ParseListLocationGroupsResponse ¶
func ParseListLocationGroupsResponse(rsp *http.Response) (*ListLocationGroupsResponse, error)
ParseListLocationGroupsResponse parses an HTTP response from a ListLocationGroupsWithResponse call
func (ListLocationGroupsResponse) ContentType ¶
func (r ListLocationGroupsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLocationGroupsResponse) GetBody ¶
func (r ListLocationGroupsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLocationGroupsResponse) GetJSON200 ¶
func (r ListLocationGroupsResponse) GetJSON200() *LocationGroups
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLocationGroupsResponse) Status ¶
func (r ListLocationGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (ListLocationGroupsResponse) StatusCode ¶
func (r ListLocationGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLocationsResponse ¶
type ListLocationsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LocationList
}
func ParseListLocationsResponse ¶
func ParseListLocationsResponse(rsp *http.Response) (*ListLocationsResponse, error)
ParseListLocationsResponse parses an HTTP response from a ListLocationsWithResponse call
func (ListLocationsResponse) ContentType ¶
func (r ListLocationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListLocationsResponse) GetBody ¶
func (r ListLocationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListLocationsResponse) GetJSON200 ¶
func (r ListLocationsResponse) GetJSON200() *LocationList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListLocationsResponse) Status ¶
func (r ListLocationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListLocationsResponse) StatusCode ¶
func (r ListLocationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LiveViewSetting ¶
type LiveViewSetting struct {
LiveViewEnabled bool `json:"live_view_enabled"`
}
LiveViewSetting defines model for LiveViewSetting.
type LiveViewSettingRequest ¶
type LiveViewSettingRequest struct {
Entity LiveViewSetting `json:"entity"`
}
LiveViewSettingRequest defines model for LiveViewSettingRequest.
type LocationAddress ¶
type LocationAddress struct {
Address1 *string `json:"address1,omitempty"`
Address2 *string `json:"address2,omitempty"`
City *string `json:"city,omitempty"`
Country *string `json:"country,omitempty"`
State *string `json:"state,omitempty"`
Timezone *string `json:"timezone,omitempty"`
ZipCode *string `json:"zip_code,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationAddress defines model for LocationAddress.
func (LocationAddress) Get ¶
func (a LocationAddress) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationAddress. Returns the specified element and whether it was found
func (LocationAddress) MarshalJSON ¶
func (a LocationAddress) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationAddress to handle AdditionalProperties
func (*LocationAddress) Set ¶
func (a *LocationAddress) Set(fieldName string, value interface{})
Setter for additional properties for LocationAddress
func (*LocationAddress) UnmarshalJSON ¶
func (a *LocationAddress) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationAddress to handle AdditionalProperties
type LocationAttributes ¶
type LocationAttributes struct {
City *string `json:"city,omitempty"`
Country *string `json:"country,omitempty"`
Latitude *float32 `json:"latitude,omitempty"`
Longitude *float32 `json:"longitude,omitempty"`
Name *string `json:"name,omitempty"`
State *string `json:"state,omitempty"`
TimeZone *string `json:"time_zone,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationAttributes defines model for LocationAttributes.
func (LocationAttributes) Get ¶
func (a LocationAttributes) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationAttributes. Returns the specified element and whether it was found
func (LocationAttributes) MarshalJSON ¶
func (a LocationAttributes) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationAttributes to handle AdditionalProperties
func (*LocationAttributes) Set ¶
func (a *LocationAttributes) Set(fieldName string, value interface{})
Setter for additional properties for LocationAttributes
func (*LocationAttributes) UnmarshalJSON ¶
func (a *LocationAttributes) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationAttributes to handle AdditionalProperties
type LocationDetail ¶
type LocationDetail struct {
Data LocationResource `json:"data"`
Included *[]LocationResource `json:"included,omitempty"`
Meta *LocationMeta `json:"meta,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationDetail defines model for LocationDetail.
func (LocationDetail) Get ¶
func (a LocationDetail) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationDetail. Returns the specified element and whether it was found
func (LocationDetail) MarshalJSON ¶
func (a LocationDetail) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationDetail to handle AdditionalProperties
func (*LocationDetail) Set ¶
func (a *LocationDetail) Set(fieldName string, value interface{})
Setter for additional properties for LocationDetail
func (*LocationDetail) UnmarshalJSON ¶
func (a *LocationDetail) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationDetail to handle AdditionalProperties
type LocationGroup ¶
type LocationGroup struct {
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationGroup Group entries were empty or null in the capture; identity fields follow the baseline fixtures.
func (LocationGroup) Get ¶
func (a LocationGroup) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationGroup. Returns the specified element and whether it was found
func (LocationGroup) MarshalJSON ¶
func (a LocationGroup) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationGroup to handle AdditionalProperties
func (*LocationGroup) Set ¶
func (a *LocationGroup) Set(fieldName string, value interface{})
Setter for additional properties for LocationGroup
func (*LocationGroup) UnmarshalJSON ¶
func (a *LocationGroup) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationGroup to handle AdditionalProperties
type LocationGroupDevices ¶
type LocationGroupDevices struct {
Groups []LocationGroup `json:"groups"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationGroupDevices defines model for LocationGroupDevices.
func (LocationGroupDevices) Get ¶
func (a LocationGroupDevices) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationGroupDevices. Returns the specified element and whether it was found
func (LocationGroupDevices) MarshalJSON ¶
func (a LocationGroupDevices) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationGroupDevices to handle AdditionalProperties
func (*LocationGroupDevices) Set ¶
func (a *LocationGroupDevices) Set(fieldName string, value interface{})
Setter for additional properties for LocationGroupDevices
func (*LocationGroupDevices) UnmarshalJSON ¶
func (a *LocationGroupDevices) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationGroupDevices to handle AdditionalProperties
type LocationGroups ¶
type LocationGroups struct {
DeviceGroups *[]LocationGroup `json:"device_groups,omitempty"`
IsOwner *bool `json:"is_owner,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationGroups defines model for LocationGroups.
func (LocationGroups) Get ¶
func (a LocationGroups) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationGroups. Returns the specified element and whether it was found
func (LocationGroups) MarshalJSON ¶
func (a LocationGroups) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationGroups to handle AdditionalProperties
func (*LocationGroups) Set ¶
func (a *LocationGroups) Set(fieldName string, value interface{})
Setter for additional properties for LocationGroups
func (*LocationGroups) UnmarshalJSON ¶
func (a *LocationGroups) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationGroups to handle AdditionalProperties
type LocationList ¶
type LocationList struct {
LocationOperationSets *map[string]DeviceOperationSet `json:"location_operation_sets,omitempty"`
UserLocations []LocationSummary `json:"user_locations"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationList defines model for LocationList.
func (LocationList) Get ¶
func (a LocationList) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationList. Returns the specified element and whether it was found
func (LocationList) MarshalJSON ¶
func (a LocationList) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationList to handle AdditionalProperties
func (*LocationList) Set ¶
func (a *LocationList) Set(fieldName string, value interface{})
Setter for additional properties for LocationList
func (*LocationList) UnmarshalJSON ¶
func (a *LocationList) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationList to handle AdditionalProperties
type LocationMeta ¶
type LocationMeta struct {
Time *time.Time `json:"time,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationMeta defines model for LocationMeta.
func (LocationMeta) Get ¶
func (a LocationMeta) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationMeta. Returns the specified element and whether it was found
func (LocationMeta) MarshalJSON ¶
func (a LocationMeta) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationMeta to handle AdditionalProperties
func (*LocationMeta) Set ¶
func (a *LocationMeta) Set(fieldName string, value interface{})
Setter for additional properties for LocationMeta
func (*LocationMeta) UnmarshalJSON ¶
func (a *LocationMeta) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationMeta to handle AdditionalProperties
type LocationResource ¶
type LocationResource struct {
Attributes *LocationAttributes `json:"attributes,omitempty"`
Id string `json:"id"`
Type string `json:"type"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationResource defines model for LocationResource.
func (LocationResource) Get ¶
func (a LocationResource) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationResource. Returns the specified element and whether it was found
func (LocationResource) MarshalJSON ¶
func (a LocationResource) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationResource to handle AdditionalProperties
func (*LocationResource) Set ¶
func (a *LocationResource) Set(fieldName string, value interface{})
Setter for additional properties for LocationResource
func (*LocationResource) UnmarshalJSON ¶
func (a *LocationResource) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationResource to handle AdditionalProperties
type LocationSubscription ¶
type LocationSubscription = string
LocationSubscription defines model for locationSubscription.
type LocationSummary ¶
type LocationSummary struct {
Address *LocationAddress `json:"address,omitempty"`
GeoCoordinates *GeoCoordinates `json:"geo_coordinates,omitempty"`
IsOwner *bool `json:"is_owner,omitempty"`
LocationId string `json:"location_id"`
LocationType *string `json:"location_type,omitempty"`
Name string `json:"name"`
OwnerId *int64 `json:"owner_id,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
LocationSummary defines model for LocationSummary.
func (LocationSummary) Get ¶
func (a LocationSummary) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for LocationSummary. Returns the specified element and whether it was found
func (LocationSummary) MarshalJSON ¶
func (a LocationSummary) MarshalJSON() ([]byte, error)
Override default JSON handling for LocationSummary to handle AdditionalProperties
func (*LocationSummary) Set ¶
func (a *LocationSummary) Set(fieldName string, value interface{})
Setter for additional properties for LocationSummary
func (*LocationSummary) UnmarshalJSON ¶
func (a *LocationSummary) UnmarshalJSON(b []byte) error
Override default JSON handling for LocationSummary to handle AdditionalProperties
type MotionSettings ¶
type MotionSettings struct {
MotionDetectionEnabled *bool `json:"motion_detection_enabled,omitempty"`
AdditionalProperties map[string]JsonValue `json:"-"`
}
MotionSettings defines model for MotionSettings.
func (MotionSettings) Get ¶
func (a MotionSettings) Get(fieldName string) (value JsonValue, found bool)
Getter for additional properties for MotionSettings. Returns the specified element and whether it was found
func (MotionSettings) MarshalJSON ¶
func (a MotionSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for MotionSettings to handle AdditionalProperties
func (*MotionSettings) Set ¶
func (a *MotionSettings) Set(fieldName string, value JsonValue)
Setter for additional properties for MotionSettings
func (*MotionSettings) UnmarshalJSON ¶
func (a *MotionSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for MotionSettings to handle AdditionalProperties
type MotionSettingsPatch ¶
type MotionSettingsPatch struct {
MotionDetectionEnabled *bool `json:"motion_detection_enabled,omitempty"`
AdditionalProperties map[string]JsonValue `json:"-"`
}
MotionSettingsPatch defines model for MotionSettingsPatch.
func (MotionSettingsPatch) Get ¶
func (a MotionSettingsPatch) Get(fieldName string) (value JsonValue, found bool)
Getter for additional properties for MotionSettingsPatch. Returns the specified element and whether it was found
func (MotionSettingsPatch) MarshalJSON ¶
func (a MotionSettingsPatch) MarshalJSON() ([]byte, error)
Override default JSON handling for MotionSettingsPatch to handle AdditionalProperties
func (*MotionSettingsPatch) Set ¶
func (a *MotionSettingsPatch) Set(fieldName string, value JsonValue)
Setter for additional properties for MotionSettingsPatch
func (*MotionSettingsPatch) UnmarshalJSON ¶
func (a *MotionSettingsPatch) UnmarshalJSON(b []byte) error
Override default JSON handling for MotionSettingsPatch to handle AdditionalProperties
type OAuthToken ¶
type OAuthToken struct {
AccessToken string `json:"access_token"`
ExpiresIn *int `json:"expires_in,omitempty"`
RefreshToken *string `json:"refresh_token,omitempty"`
Scope *string `json:"scope,omitempty"`
TokenType string `json:"token_type"`
AdditionalProperties map[string]interface{} `json:"-"`
}
OAuthToken defines model for OAuthToken.
func (OAuthToken) Get ¶
func (a OAuthToken) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for OAuthToken. Returns the specified element and whether it was found
func (OAuthToken) MarshalJSON ¶
func (a OAuthToken) MarshalJSON() ([]byte, error)
Override default JSON handling for OAuthToken to handle AdditionalProperties
func (*OAuthToken) Set ¶
func (a *OAuthToken) Set(fieldName string, value interface{})
Setter for additional properties for OAuthToken
func (*OAuthToken) UnmarshalJSON ¶
func (a *OAuthToken) UnmarshalJSON(b []byte) error
Override default JSON handling for OAuthToken to handle AdditionalProperties
type OAuthTokenGrant ¶
type OAuthTokenGrant struct {
// contains filtered or unexported fields
}
OAuthTokenGrant Form variants currently used by Go: authorization-code PKCE, explicit refresh, and the compatibility password grant fallback.
func (OAuthTokenGrant) AsAuthorizationCodeGrant ¶
func (t OAuthTokenGrant) AsAuthorizationCodeGrant() (AuthorizationCodeGrant, error)
AsAuthorizationCodeGrant returns the union data inside the OAuthTokenGrant as a AuthorizationCodeGrant
func (OAuthTokenGrant) AsLegacyPasswordGrant ¶
func (t OAuthTokenGrant) AsLegacyPasswordGrant() (LegacyPasswordGrant, error)
AsLegacyPasswordGrant returns the union data inside the OAuthTokenGrant as a LegacyPasswordGrant
func (OAuthTokenGrant) AsRefreshTokenGrant ¶
func (t OAuthTokenGrant) AsRefreshTokenGrant() (RefreshTokenGrant, error)
AsRefreshTokenGrant returns the union data inside the OAuthTokenGrant as a RefreshTokenGrant
func (*OAuthTokenGrant) FromAuthorizationCodeGrant ¶
func (t *OAuthTokenGrant) FromAuthorizationCodeGrant(v AuthorizationCodeGrant) error
FromAuthorizationCodeGrant overwrites any union data inside the OAuthTokenGrant as the provided AuthorizationCodeGrant
func (*OAuthTokenGrant) FromLegacyPasswordGrant ¶
func (t *OAuthTokenGrant) FromLegacyPasswordGrant(v LegacyPasswordGrant) error
FromLegacyPasswordGrant overwrites any union data inside the OAuthTokenGrant as the provided LegacyPasswordGrant
func (*OAuthTokenGrant) FromRefreshTokenGrant ¶
func (t *OAuthTokenGrant) FromRefreshTokenGrant(v RefreshTokenGrant) error
FromRefreshTokenGrant overwrites any union data inside the OAuthTokenGrant as the provided RefreshTokenGrant
func (OAuthTokenGrant) MarshalJSON ¶
func (t OAuthTokenGrant) MarshalJSON() ([]byte, error)
func (*OAuthTokenGrant) MergeAuthorizationCodeGrant ¶
func (t *OAuthTokenGrant) MergeAuthorizationCodeGrant(v AuthorizationCodeGrant) error
MergeAuthorizationCodeGrant performs a merge with any union data inside the OAuthTokenGrant, using the provided AuthorizationCodeGrant
func (*OAuthTokenGrant) MergeLegacyPasswordGrant ¶
func (t *OAuthTokenGrant) MergeLegacyPasswordGrant(v LegacyPasswordGrant) error
MergeLegacyPasswordGrant performs a merge with any union data inside the OAuthTokenGrant, using the provided LegacyPasswordGrant
func (*OAuthTokenGrant) MergeRefreshTokenGrant ¶
func (t *OAuthTokenGrant) MergeRefreshTokenGrant(v RefreshTokenGrant) error
MergeRefreshTokenGrant performs a merge with any union data inside the OAuthTokenGrant, using the provided RefreshTokenGrant
func (*OAuthTokenGrant) UnmarshalJSON ¶
func (t *OAuthTokenGrant) UnmarshalJSON(b []byte) error
type OtherDeviceKind ¶
type OtherDeviceKind string
OtherDeviceKind Known devices with no doorbell, chime, or camera projection.
const ( BeamsCt200Transformer OtherDeviceKind = "beams_ct200_transformer" IntercomHandsetAudio OtherDeviceKind = "intercom_handset_audio" IntercomHandsetVideo OtherDeviceKind = "intercom_handset_video" )
Defines values for OtherDeviceKind.
func (OtherDeviceKind) Valid ¶
func (e OtherDeviceKind) Valid() bool
Valid indicates whether the value is a known member of the OtherDeviceKind enum.
type PTZAutoScan ¶
type PTZAutoScan struct {
// PauseMs Auto-scan pause in milliseconds.
PauseMs *int `json:"pause_ms,omitempty"`
// StepSize Device-reported auto-scan step size; units are not established by the capture.
StepSize *float32 `json:"step_size,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PTZAutoScan defines model for PTZAutoScan.
func (PTZAutoScan) Get ¶
func (a PTZAutoScan) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for PTZAutoScan. Returns the specified element and whether it was found
func (PTZAutoScan) MarshalJSON ¶
func (a PTZAutoScan) MarshalJSON() ([]byte, error)
Override default JSON handling for PTZAutoScan to handle AdditionalProperties
func (*PTZAutoScan) Set ¶
func (a *PTZAutoScan) Set(fieldName string, value interface{})
Setter for additional properties for PTZAutoScan
func (*PTZAutoScan) UnmarshalJSON ¶
func (a *PTZAutoScan) UnmarshalJSON(b []byte) error
Override default JSON handling for PTZAutoScan to handle AdditionalProperties
type PTZAxisSettings ¶
type PTZAxisSettings struct {
Movement *PTZMovement `json:"movement,omitempty"`
Positions *PTZPositions `json:"positions,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PTZAxisSettings defines model for PTZAxisSettings.
func (PTZAxisSettings) Get ¶
func (a PTZAxisSettings) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for PTZAxisSettings. Returns the specified element and whether it was found
func (PTZAxisSettings) MarshalJSON ¶
func (a PTZAxisSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for PTZAxisSettings to handle AdditionalProperties
func (*PTZAxisSettings) Set ¶
func (a *PTZAxisSettings) Set(fieldName string, value interface{})
Setter for additional properties for PTZAxisSettings
func (*PTZAxisSettings) UnmarshalJSON ¶
func (a *PTZAxisSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for PTZAxisSettings to handle AdditionalProperties
type PTZMovement ¶
type PTZMovement struct {
// MaxAcceleration Non-negative device-reported acceleration limit; its scale is not established.
MaxAcceleration *float32 `json:"max_acceleration,omitempty"`
// MaxSpeed Device-reported normalized maximum PTZ speed, distinct from a command's requested speed.
MaxSpeed *float32 `json:"max_speed,omitempty"`
// StepSize Device-reported movement step size; units are not established by the capture.
StepSize *float32 `json:"step_size,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PTZMovement defines model for PTZMovement.
func (PTZMovement) Get ¶
func (a PTZMovement) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for PTZMovement. Returns the specified element and whether it was found
func (PTZMovement) MarshalJSON ¶
func (a PTZMovement) MarshalJSON() ([]byte, error)
Override default JSON handling for PTZMovement to handle AdditionalProperties
func (*PTZMovement) Set ¶
func (a *PTZMovement) Set(fieldName string, value interface{})
Setter for additional properties for PTZMovement
func (*PTZMovement) UnmarshalJSON ¶
func (a *PTZMovement) UnmarshalJSON(b []byte) error
Override default JSON handling for PTZMovement to handle AdditionalProperties
type PTZPositions ¶
type PTZPositions struct {
Default *float32 `json:"default,omitempty"`
Max *float32 `json:"max,omitempty"`
Min *float32 `json:"min,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PTZPositions defines model for PTZPositions.
func (PTZPositions) Get ¶
func (a PTZPositions) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for PTZPositions. Returns the specified element and whether it was found
func (PTZPositions) MarshalJSON ¶
func (a PTZPositions) MarshalJSON() ([]byte, error)
Override default JSON handling for PTZPositions to handle AdditionalProperties
func (*PTZPositions) Set ¶
func (a *PTZPositions) Set(fieldName string, value interface{})
Setter for additional properties for PTZPositions
func (*PTZPositions) UnmarshalJSON ¶
func (a *PTZPositions) UnmarshalJSON(b []byte) error
Override default JSON handling for PTZPositions to handle AdditionalProperties
type PTZSettings ¶
type PTZSettings struct {
AutoScan *PTZAutoScan `json:"auto_scan,omitempty"`
// Mode Observed PTZ mode is user; other device modes remain valid.
Mode *string `json:"mode,omitempty"`
PanSettings *PTZAxisSettings `json:"pan_settings,omitempty"`
TiltSettings *PTZAxisSettings `json:"tilt_settings,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
PTZSettings defines model for PTZSettings.
func (PTZSettings) Get ¶
func (a PTZSettings) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for PTZSettings. Returns the specified element and whether it was found
func (PTZSettings) MarshalJSON ¶
func (a PTZSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for PTZSettings to handle AdditionalProperties
func (*PTZSettings) Set ¶
func (a *PTZSettings) Set(fieldName string, value interface{})
Setter for additional properties for PTZSettings
func (*PTZSettings) UnmarshalJSON ¶
func (a *PTZSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for PTZSettings to handle AdditionalProperties
type PatchDeviceSettingsJSONRequestBody ¶
type PatchDeviceSettingsJSONRequestBody = DeviceSettingsPatch
PatchDeviceSettingsJSONRequestBody defines body for PatchDeviceSettings for application/json ContentType.
type PatchDeviceSettingsResponse ¶
type PatchDeviceSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DeviceSettings
}
func ParsePatchDeviceSettingsResponse ¶
func ParsePatchDeviceSettingsResponse(rsp *http.Response) (*PatchDeviceSettingsResponse, error)
ParsePatchDeviceSettingsResponse parses an HTTP response from a PatchDeviceSettingsWithResponse call
func (PatchDeviceSettingsResponse) ContentType ¶
func (r PatchDeviceSettingsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchDeviceSettingsResponse) GetBody ¶
func (r PatchDeviceSettingsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PatchDeviceSettingsResponse) GetJSON200 ¶
func (r PatchDeviceSettingsResponse) GetJSON200() *DeviceSettings
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (PatchDeviceSettingsResponse) Status ¶
func (r PatchDeviceSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (PatchDeviceSettingsResponse) StatusCode ¶
func (r PatchDeviceSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RateLimited ¶
type RateLimited = JsonValue
RateLimited Explicit escape hatch for fields without observed structure or typed error responses.
type Recording ¶
type Recording struct {
Answered bool `json:"answered"`
CreatedAt string `json:"created_at"`
Doorbot Recording_Doorbot `json:"doorbot"`
Id int `json:"id"`
// Kind Known recording kinds include ding, motion and on_demand; future kinds remain valid.
Kind string `json:"kind"`
AdditionalProperties map[string]interface{} `json:"-"`
}
Recording defines model for Recording.
func (Recording) Get ¶
Getter for additional properties for Recording. Returns the specified element and whether it was found
func (Recording) MarshalJSON ¶
Override default JSON handling for Recording to handle AdditionalProperties
func (*Recording) UnmarshalJSON ¶
Override default JSON handling for Recording to handle AdditionalProperties
type RecordingArray ¶
type RecordingArray = []Recording
RecordingArray defines model for RecordingArray.
type RecordingShare ¶
type RecordingShare struct {
}
RecordingShare defines model for RecordingShare.
type Recording_Doorbot ¶
type Recording_Doorbot struct {
// Description Legacy recording fixture field.
Description *string `json:"description,omitempty"`
Id int `json:"id"`
// Type Legacy recording fixture field.
Type *string `json:"type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
Recording_Doorbot defines model for Recording.Doorbot.
func (Recording_Doorbot) Get ¶
func (a Recording_Doorbot) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for Recording_Doorbot. Returns the specified element and whether it was found
func (Recording_Doorbot) MarshalJSON ¶
func (a Recording_Doorbot) MarshalJSON() ([]byte, error)
Override default JSON handling for Recording_Doorbot to handle AdditionalProperties
func (*Recording_Doorbot) Set ¶
func (a *Recording_Doorbot) Set(fieldName string, value interface{})
Setter for additional properties for Recording_Doorbot
func (*Recording_Doorbot) UnmarshalJSON ¶
func (a *Recording_Doorbot) UnmarshalJSON(b []byte) error
Override default JSON handling for Recording_Doorbot to handle AdditionalProperties
type RefreshLegacySnapshotTimestampJSONRequestBody ¶
type RefreshLegacySnapshotTimestampJSONRequestBody = SnapshotTimestampRequest
RefreshLegacySnapshotTimestampJSONRequestBody defines body for RefreshLegacySnapshotTimestamp for application/json ContentType.
type RefreshLegacySnapshotTimestampResponse ¶
type RefreshLegacySnapshotTimestampResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SnapshotTimestampResponse
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseRefreshLegacySnapshotTimestampResponse ¶
func ParseRefreshLegacySnapshotTimestampResponse(rsp *http.Response) (*RefreshLegacySnapshotTimestampResponse, error)
ParseRefreshLegacySnapshotTimestampResponse parses an HTTP response from a RefreshLegacySnapshotTimestampWithResponse call
func (RefreshLegacySnapshotTimestampResponse) ContentType ¶
func (r RefreshLegacySnapshotTimestampResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RefreshLegacySnapshotTimestampResponse) GetBody ¶
func (r RefreshLegacySnapshotTimestampResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RefreshLegacySnapshotTimestampResponse) GetJSON200 ¶
func (r RefreshLegacySnapshotTimestampResponse) GetJSON200() *SnapshotTimestampResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RefreshLegacySnapshotTimestampResponse) GetJSONDefault ¶
func (r RefreshLegacySnapshotTimestampResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RefreshLegacySnapshotTimestampResponse) Status ¶
func (r RefreshLegacySnapshotTimestampResponse) Status() string
Status returns HTTPResponse.Status
func (RefreshLegacySnapshotTimestampResponse) StatusCode ¶
func (r RefreshLegacySnapshotTimestampResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RefreshTokenGrant ¶
type RefreshTokenGrant struct {
ClientId string `json:"client_id"`
GrantType RefreshTokenGrantGrantType `json:"grant_type"`
RefreshToken string `json:"refresh_token"`
Scope string `json:"scope"`
}
RefreshTokenGrant defines model for RefreshTokenGrant.
type RefreshTokenGrantGrantType ¶
type RefreshTokenGrantGrantType string
RefreshTokenGrantGrantType defines model for RefreshTokenGrant.GrantType.
const (
RefreshToken RefreshTokenGrantGrantType = "refresh_token"
)
Defines values for RefreshTokenGrantGrantType.
func (RefreshTokenGrantGrantType) Valid ¶
func (e RefreshTokenGrantGrantType) Valid() bool
Valid indicates whether the value is a known member of the RefreshTokenGrantGrantType enum.
type RegisterClientSessionJSONRequestBody ¶
type RegisterClientSessionJSONRequestBody = ClientSessionRegistration
RegisterClientSessionJSONRequestBody defines body for RegisterClientSession for application/json ContentType.
type RegisterClientSessionResponse ¶
type RegisterClientSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseRegisterClientSessionResponse ¶
func ParseRegisterClientSessionResponse(rsp *http.Response) (*RegisterClientSessionResponse, error)
ParseRegisterClientSessionResponse parses an HTTP response from a RegisterClientSessionWithResponse call
func (RegisterClientSessionResponse) ContentType ¶
func (r RegisterClientSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RegisterClientSessionResponse) GetBody ¶
func (r RegisterClientSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RegisterClientSessionResponse) GetJSON200 ¶
func (r RegisterClientSessionResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RegisterClientSessionResponse) GetJSONDefault ¶
func (r RegisterClientSessionResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (RegisterClientSessionResponse) Status ¶
func (r RegisterClientSessionResponse) Status() string
Status returns HTTPResponse.Status
func (RegisterClientSessionResponse) StatusCode ¶
func (r RegisterClientSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestLegacySignalingTicketResponse ¶
type RequestLegacySignalingTicketResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *LegacySignalingTicket
}
func ParseRequestLegacySignalingTicketResponse ¶
func ParseRequestLegacySignalingTicketResponse(rsp *http.Response) (*RequestLegacySignalingTicketResponse, error)
ParseRequestLegacySignalingTicketResponse parses an HTTP response from a RequestLegacySignalingTicketWithResponse call
func (RequestLegacySignalingTicketResponse) ContentType ¶
func (r RequestLegacySignalingTicketResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RequestLegacySignalingTicketResponse) GetBody ¶
func (r RequestLegacySignalingTicketResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RequestLegacySignalingTicketResponse) GetJSON200 ¶
func (r RequestLegacySignalingTicketResponse) GetJSON200() *LegacySignalingTicket
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RequestLegacySignalingTicketResponse) Status ¶
func (r RequestLegacySignalingTicketResponse) Status() string
Status returns HTTPResponse.Status
func (RequestLegacySignalingTicketResponse) StatusCode ¶
func (r RequestLegacySignalingTicketResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestedTransport ¶
type RequestedTransport = string
RequestedTransport defines model for requestedTransport.
type SendDeviceCommandJSONRequestBody ¶
type SendDeviceCommandJSONRequestBody = DeviceCommand
SendDeviceCommandJSONRequestBody defines body for SendDeviceCommand for application/json ContentType.
type SendDeviceCommandResponse ¶
func ParseSendDeviceCommandResponse ¶
func ParseSendDeviceCommandResponse(rsp *http.Response) (*SendDeviceCommandResponse, error)
ParseSendDeviceCommandResponse parses an HTTP response from a SendDeviceCommandWithResponse call
func (SendDeviceCommandResponse) ContentType ¶
func (r SendDeviceCommandResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SendDeviceCommandResponse) GetBody ¶
func (r SendDeviceCommandResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SendDeviceCommandResponse) Status ¶
func (r SendDeviceCommandResponse) Status() string
Status returns HTTPResponse.Status
func (SendDeviceCommandResponse) StatusCode ¶
func (r SendDeviceCommandResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChimeVolumeParams ¶
type SetChimeVolumeParams struct {
ChimeDescription string `form:"chime[description]" json:"chime[description]"`
ChimeSettingsVolume int `form:"chime[settings][volume]" json:"chime[settings][volume]"`
}
SetChimeVolumeParams defines parameters for SetChimeVolume.
type SetChimeVolumeResponse ¶
type SetChimeVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseSetChimeVolumeResponse ¶
func ParseSetChimeVolumeResponse(rsp *http.Response) (*SetChimeVolumeResponse, error)
ParseSetChimeVolumeResponse parses an HTTP response from a SetChimeVolumeWithResponse call
func (SetChimeVolumeResponse) ContentType ¶
func (r SetChimeVolumeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetChimeVolumeResponse) GetBody ¶
func (r SetChimeVolumeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SetChimeVolumeResponse) GetJSON200 ¶
func (r SetChimeVolumeResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SetChimeVolumeResponse) GetJSONDefault ¶
func (r SetChimeVolumeResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (SetChimeVolumeResponse) Status ¶
func (r SetChimeVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (SetChimeVolumeResponse) StatusCode ¶
func (r SetChimeVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetLiveViewEnabledJSONRequestBody ¶
type SetLiveViewEnabledJSONRequestBody = LiveViewSettingRequest
SetLiveViewEnabledJSONRequestBody defines body for SetLiveViewEnabled for application/json ContentType.
type SetLiveViewEnabledResponse ¶
func ParseSetLiveViewEnabledResponse ¶
func ParseSetLiveViewEnabledResponse(rsp *http.Response) (*SetLiveViewEnabledResponse, error)
ParseSetLiveViewEnabledResponse parses an HTTP response from a SetLiveViewEnabledWithResponse call
func (SetLiveViewEnabledResponse) ContentType ¶
func (r SetLiveViewEnabledResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetLiveViewEnabledResponse) GetBody ¶
func (r SetLiveViewEnabledResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SetLiveViewEnabledResponse) Status ¶
func (r SetLiveViewEnabledResponse) Status() string
Status returns HTTPResponse.Status
func (SetLiveViewEnabledResponse) StatusCode ¶
func (r SetLiveViewEnabledResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SettingsObject ¶
SettingsObject defines model for SettingsObject.
type SignInForm ¶
type SignInForm struct {
CsrfToken string `json:"csrf-token"`
Password string `json:"password"`
Username string `json:"username"`
}
SignInForm defines model for SignInForm.
type SignInState ¶
type SignInState struct {
NextTimeInSecs *int `json:"next_time_in_secs,omitempty"`
// TsvState Presence indicates two-factor verification is required.
TsvState *string `json:"tsv_state,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
SignInState defines model for SignInState.
func (SignInState) Get ¶
func (a SignInState) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for SignInState. Returns the specified element and whether it was found
func (SignInState) MarshalJSON ¶
func (a SignInState) MarshalJSON() ([]byte, error)
Override default JSON handling for SignInState to handle AdditionalProperties
func (*SignInState) Set ¶
func (a *SignInState) Set(fieldName string, value interface{})
Setter for additional properties for SignInState
func (*SignInState) UnmarshalJSON ¶
func (a *SignInState) UnmarshalJSON(b []byte) error
Override default JSON handling for SignInState to handle AdditionalProperties
type SirenStatus ¶
type SirenStatus struct {
// Duration Server-reported siren duration in seconds.
Duration int `json:"duration"`
EndsAt time.Time `json:"ends_at"`
// SecondsRemaining Server-reported remaining siren time in seconds.
SecondsRemaining int `json:"seconds_remaining"`
StartedAt time.Time `json:"started_at"`
AdditionalProperties map[string]interface{} `json:"-"`
}
SirenStatus defines model for SirenStatus.
func (SirenStatus) Get ¶
func (a SirenStatus) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for SirenStatus. Returns the specified element and whether it was found
func (SirenStatus) MarshalJSON ¶
func (a SirenStatus) MarshalJSON() ([]byte, error)
Override default JSON handling for SirenStatus to handle AdditionalProperties
func (*SirenStatus) Set ¶
func (a *SirenStatus) Set(fieldName string, value interface{})
Setter for additional properties for SirenStatus
func (*SirenStatus) UnmarshalJSON ¶
func (a *SirenStatus) UnmarshalJSON(b []byte) error
Override default JSON handling for SirenStatus to handle AdditionalProperties
type SnapshotTimestamp ¶
type SnapshotTimestamp struct {
Timestamp int64 `json:"timestamp"`
}
SnapshotTimestamp defines model for SnapshotTimestamp.
type SnapshotTimestampRequest ¶
type SnapshotTimestampRequest struct {
DoorbotIds []int `json:"doorbot_ids"`
}
SnapshotTimestampRequest defines model for SnapshotTimestampRequest.
type SnapshotTimestampResponse ¶
type SnapshotTimestampResponse struct {
Timestamps *[]SnapshotTimestamp `json:"timestamps,omitempty"`
}
SnapshotTimestampResponse defines model for SnapshotTimestampResponse.
type StreamRecordingResponse ¶
type StreamRecordingResponse struct {
Body []byte
HTTPResponse *http.Response
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *StreamRecordingResponse302Headers
}
func ParseStreamRecordingResponse ¶
func ParseStreamRecordingResponse(rsp *http.Response) (*StreamRecordingResponse, error)
ParseStreamRecordingResponse parses an HTTP response from a StreamRecordingWithResponse call
func (StreamRecordingResponse) ContentType ¶
func (r StreamRecordingResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StreamRecordingResponse) GetBody ¶
func (r StreamRecordingResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (StreamRecordingResponse) GetJSONDefault ¶
func (r StreamRecordingResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (StreamRecordingResponse) Status ¶
func (r StreamRecordingResponse) Status() string
Status returns HTTPResponse.Status
func (StreamRecordingResponse) StatusCode ¶
func (r StreamRecordingResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StreamRecordingResponse302Headers ¶
type StreamRecordingResponse302Headers struct {
Location *string
}
StreamRecordingResponse302Headers the declared response headers of an HTTP 302 response for StreamRecording
type SubmitOAuthCredentialsFormdataRequestBody ¶
type SubmitOAuthCredentialsFormdataRequestBody = SignInForm
SubmitOAuthCredentialsFormdataRequestBody defines body for SubmitOAuthCredentials for application/x-www-form-urlencoded ContentType.
type SubmitOAuthCredentialsResponse ¶
type SubmitOAuthCredentialsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SignInState
// JSON412 the response for an HTTP 412 `application/json` response
JSON412 *TwoFactorRequired
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *AuthFailure
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *SubmitOAuthCredentialsResponse302Headers
}
func ParseSubmitOAuthCredentialsResponse ¶
func ParseSubmitOAuthCredentialsResponse(rsp *http.Response) (*SubmitOAuthCredentialsResponse, error)
ParseSubmitOAuthCredentialsResponse parses an HTTP response from a SubmitOAuthCredentialsWithResponse call
func (SubmitOAuthCredentialsResponse) ContentType ¶
func (r SubmitOAuthCredentialsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SubmitOAuthCredentialsResponse) GetBody ¶
func (r SubmitOAuthCredentialsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SubmitOAuthCredentialsResponse) GetJSON200 ¶
func (r SubmitOAuthCredentialsResponse) GetJSON200() *SignInState
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SubmitOAuthCredentialsResponse) GetJSON412 ¶
func (r SubmitOAuthCredentialsResponse) GetJSON412() *TwoFactorRequired
GetJSON412 returns the response for an HTTP 412 `application/json` response
func (SubmitOAuthCredentialsResponse) GetJSONDefault ¶
func (r SubmitOAuthCredentialsResponse) GetJSONDefault() *AuthFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (SubmitOAuthCredentialsResponse) Status ¶
func (r SubmitOAuthCredentialsResponse) Status() string
Status returns HTTPResponse.Status
func (SubmitOAuthCredentialsResponse) StatusCode ¶
func (r SubmitOAuthCredentialsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SubmitOAuthCredentialsResponse302Headers ¶
type SubmitOAuthCredentialsResponse302Headers struct {
Location string
}
SubmitOAuthCredentialsResponse302Headers the declared response headers of an HTTP 302 response for SubmitOAuthCredentials
type TestChimeSoundParams ¶
type TestChimeSoundParams struct {
Kind TestChimeSoundParamsKind `form:"kind" json:"kind"`
}
TestChimeSoundParams defines parameters for TestChimeSound.
type TestChimeSoundParamsKind ¶
type TestChimeSoundParamsKind string
TestChimeSoundParamsKind defines parameters for TestChimeSound.
const ( Ding TestChimeSoundParamsKind = "ding" Motion TestChimeSoundParamsKind = "motion" )
Defines values for TestChimeSoundParamsKind.
func (TestChimeSoundParamsKind) Valid ¶
func (e TestChimeSoundParamsKind) Valid() bool
Valid indicates whether the value is a known member of the TestChimeSoundParamsKind enum.
type TestChimeSoundResponse ¶
type TestChimeSoundResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseTestChimeSoundResponse ¶
func ParseTestChimeSoundResponse(rsp *http.Response) (*TestChimeSoundResponse, error)
ParseTestChimeSoundResponse parses an HTTP response from a TestChimeSoundWithResponse call
func (TestChimeSoundResponse) ContentType ¶
func (r TestChimeSoundResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TestChimeSoundResponse) GetBody ¶
func (r TestChimeSoundResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TestChimeSoundResponse) GetJSON200 ¶
func (r TestChimeSoundResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TestChimeSoundResponse) GetJSONDefault ¶
func (r TestChimeSoundResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (TestChimeSoundResponse) Status ¶
func (r TestChimeSoundResponse) Status() string
Status returns HTTPResponse.Status
func (TestChimeSoundResponse) StatusCode ¶
func (r TestChimeSoundResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TimelineDevice ¶
type TimelineDevice struct {
Description *string `json:"description,omitempty"`
Id *int64 `json:"id,omitempty"`
Type *string `json:"type,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
TimelineDevice defines model for TimelineDevice.
func (TimelineDevice) Get ¶
func (a TimelineDevice) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for TimelineDevice. Returns the specified element and whether it was found
func (TimelineDevice) MarshalJSON ¶
func (a TimelineDevice) MarshalJSON() ([]byte, error)
Override default JSON handling for TimelineDevice to handle AdditionalProperties
func (*TimelineDevice) Set ¶
func (a *TimelineDevice) Set(fieldName string, value interface{})
Setter for additional properties for TimelineDevice
func (*TimelineDevice) UnmarshalJSON ¶
func (a *TimelineDevice) UnmarshalJSON(b []byte) error
Override default JSON handling for TimelineDevice to handle AdditionalProperties
type TimelineEvent ¶
type TimelineEvent struct {
Device *TimelineDevice `json:"device,omitempty"`
// DurationMs Event duration in milliseconds.
DurationMs *int `json:"duration_ms,omitempty"`
EndTime *time.Time `json:"end_time,omitempty"`
EventId string `json:"event_id"`
// EventType Captured type is on_demand; other event kinds remain valid.
EventType string `json:"event_type"`
IsFavorite *bool `json:"is_favorite,omitempty"`
// RecordingStatus Captured recording status is ready; other statuses remain valid.
RecordingStatus *string `json:"recording_status,omitempty"`
Schema *string `json:"schema,omitempty"`
SourceId *string `json:"source_id,omitempty"`
StartTime time.Time `json:"start_time"`
// State Captured event state is completed; other states remain valid.
State *string `json:"state,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
TimelineEvent defines model for TimelineEvent.
func (TimelineEvent) Get ¶
func (a TimelineEvent) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for TimelineEvent. Returns the specified element and whether it was found
func (TimelineEvent) MarshalJSON ¶
func (a TimelineEvent) MarshalJSON() ([]byte, error)
Override default JSON handling for TimelineEvent to handle AdditionalProperties
func (*TimelineEvent) Set ¶
func (a *TimelineEvent) Set(fieldName string, value interface{})
Setter for additional properties for TimelineEvent
func (*TimelineEvent) UnmarshalJSON ¶
func (a *TimelineEvent) UnmarshalJSON(b []byte) error
Override default JSON handling for TimelineEvent to handle AdditionalProperties
type TurnFloodlightOffResponse ¶
type TurnFloodlightOffResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseTurnFloodlightOffResponse ¶
func ParseTurnFloodlightOffResponse(rsp *http.Response) (*TurnFloodlightOffResponse, error)
ParseTurnFloodlightOffResponse parses an HTTP response from a TurnFloodlightOffWithResponse call
func (TurnFloodlightOffResponse) ContentType ¶
func (r TurnFloodlightOffResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TurnFloodlightOffResponse) GetBody ¶
func (r TurnFloodlightOffResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TurnFloodlightOffResponse) GetJSON200 ¶
func (r TurnFloodlightOffResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TurnFloodlightOffResponse) GetJSONDefault ¶
func (r TurnFloodlightOffResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (TurnFloodlightOffResponse) Status ¶
func (r TurnFloodlightOffResponse) Status() string
Status returns HTTPResponse.Status
func (TurnFloodlightOffResponse) StatusCode ¶
func (r TurnFloodlightOffResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TurnFloodlightOnResponse ¶
type TurnFloodlightOnResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseTurnFloodlightOnResponse ¶
func ParseTurnFloodlightOnResponse(rsp *http.Response) (*TurnFloodlightOnResponse, error)
ParseTurnFloodlightOnResponse parses an HTTP response from a TurnFloodlightOnWithResponse call
func (TurnFloodlightOnResponse) ContentType ¶
func (r TurnFloodlightOnResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TurnFloodlightOnResponse) GetBody ¶
func (r TurnFloodlightOnResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TurnFloodlightOnResponse) GetJSON200 ¶
func (r TurnFloodlightOnResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TurnFloodlightOnResponse) GetJSONDefault ¶
func (r TurnFloodlightOnResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (TurnFloodlightOnResponse) Status ¶
func (r TurnFloodlightOnResponse) Status() string
Status returns HTTPResponse.Status
func (TurnFloodlightOnResponse) StatusCode ¶
func (r TurnFloodlightOnResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TurnSirenOffResponse ¶
func ParseTurnSirenOffResponse ¶
func ParseTurnSirenOffResponse(rsp *http.Response) (*TurnSirenOffResponse, error)
ParseTurnSirenOffResponse parses an HTTP response from a TurnSirenOffWithResponse call
func (TurnSirenOffResponse) ContentType ¶
func (r TurnSirenOffResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TurnSirenOffResponse) GetBody ¶
func (r TurnSirenOffResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TurnSirenOffResponse) Status ¶
func (r TurnSirenOffResponse) Status() string
Status returns HTTPResponse.Status
func (TurnSirenOffResponse) StatusCode ¶
func (r TurnSirenOffResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TurnSirenOnResponse ¶
type TurnSirenOnResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SirenOn
}
func ParseTurnSirenOnResponse ¶
func ParseTurnSirenOnResponse(rsp *http.Response) (*TurnSirenOnResponse, error)
ParseTurnSirenOnResponse parses an HTTP response from a TurnSirenOnWithResponse call
func (TurnSirenOnResponse) ContentType ¶
func (r TurnSirenOnResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TurnSirenOnResponse) GetBody ¶
func (r TurnSirenOnResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (TurnSirenOnResponse) GetJSON200 ¶
func (r TurnSirenOnResponse) GetJSON200() *SirenOn
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (TurnSirenOnResponse) Status ¶
func (r TurnSirenOnResponse) Status() string
Status returns HTTPResponse.Status
func (TurnSirenOnResponse) StatusCode ¶
func (r TurnSirenOnResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TwoFactorForm ¶
type TwoFactorForm struct {
N2faCode string `json:"2fa_code"`
CsrfToken string `json:"csrf-token"`
RememberMe TwoFactorFormRememberMe `json:"remember_me"`
}
TwoFactorForm defines model for TwoFactorForm.
type TwoFactorFormRememberMe ¶
type TwoFactorFormRememberMe string
TwoFactorFormRememberMe defines model for TwoFactorForm.RememberMe.
const (
False TwoFactorFormRememberMe = "false"
)
Defines values for TwoFactorFormRememberMe.
func (TwoFactorFormRememberMe) Valid ¶
func (e TwoFactorFormRememberMe) Valid() bool
Valid indicates whether the value is a known member of the TwoFactorFormRememberMe enum.
type TwoFactorRequired ¶
type TwoFactorRequired = JsonValue
TwoFactorRequired Explicit escape hatch for fields without observed structure or typed error responses.
type UpdateLegacyDoorbotControlsParams ¶
type UpdateLegacyDoorbotControlsParams struct {
DoorbotDescription string `form:"doorbot[description]" json:"doorbot[description]"`
DoorbotSettingsDoorbellVolume *int `form:"doorbot[settings][doorbell_volume],omitempty" json:"doorbot[settings][doorbell_volume],omitempty"`
DoorbotSettingsChimeSettingsType *int `form:"doorbot[settings][chime_settings][type],omitempty" json:"doorbot[settings][chime_settings][type],omitempty"`
DoorbotSettingsChimeSettingsEnable *UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable `form:"doorbot[settings][chime_settings][enable],omitempty" json:"doorbot[settings][chime_settings][enable],omitempty"`
DoorbotSettingsChimeSettingsDuration *int `form:"doorbot[settings][chime_settings][duration],omitempty" json:"doorbot[settings][chime_settings][duration],omitempty"`
}
UpdateLegacyDoorbotControlsParams defines parameters for UpdateLegacyDoorbotControls.
type UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable ¶
type UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable int
UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable defines parameters for UpdateLegacyDoorbotControls.
const ( N0 UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable = 0 N1 UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable = 1 )
Defines values for UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable.
func (UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable) Valid ¶
func (e UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable) Valid() bool
Valid indicates whether the value is a known member of the UpdateLegacyDoorbotControlsParamsDoorbotSettingsChimeSettingsEnable enum.
type UpdateLegacyDoorbotControlsResponse ¶
type UpdateLegacyDoorbotControlsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *HTTPFailure
}
func ParseUpdateLegacyDoorbotControlsResponse ¶
func ParseUpdateLegacyDoorbotControlsResponse(rsp *http.Response) (*UpdateLegacyDoorbotControlsResponse, error)
ParseUpdateLegacyDoorbotControlsResponse parses an HTTP response from a UpdateLegacyDoorbotControlsWithResponse call
func (UpdateLegacyDoorbotControlsResponse) ContentType ¶
func (r UpdateLegacyDoorbotControlsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateLegacyDoorbotControlsResponse) GetBody ¶
func (r UpdateLegacyDoorbotControlsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateLegacyDoorbotControlsResponse) GetJSON200 ¶
func (r UpdateLegacyDoorbotControlsResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateLegacyDoorbotControlsResponse) GetJSONDefault ¶
func (r UpdateLegacyDoorbotControlsResponse) GetJSONDefault() *HTTPFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (UpdateLegacyDoorbotControlsResponse) Status ¶
func (r UpdateLegacyDoorbotControlsResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLegacyDoorbotControlsResponse) StatusCode ¶
func (r UpdateLegacyDoorbotControlsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VerifyOAuthTwoFactorCodeFormdataRequestBody ¶
type VerifyOAuthTwoFactorCodeFormdataRequestBody = TwoFactorForm
VerifyOAuthTwoFactorCodeFormdataRequestBody defines body for VerifyOAuthTwoFactorCode for application/x-www-form-urlencoded ContentType.
type VerifyOAuthTwoFactorCodeResponse ¶
type VerifyOAuthTwoFactorCodeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Json
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *Json
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *AuthFailure
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *AuthFailure
// JSONDefault the response for an HTTP default `application/json` response
JSONDefault *AuthFailure
}
func ParseVerifyOAuthTwoFactorCodeResponse ¶
func ParseVerifyOAuthTwoFactorCodeResponse(rsp *http.Response) (*VerifyOAuthTwoFactorCodeResponse, error)
ParseVerifyOAuthTwoFactorCodeResponse parses an HTTP response from a VerifyOAuthTwoFactorCodeWithResponse call
func (VerifyOAuthTwoFactorCodeResponse) ContentType ¶
func (r VerifyOAuthTwoFactorCodeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VerifyOAuthTwoFactorCodeResponse) GetBody ¶
func (r VerifyOAuthTwoFactorCodeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VerifyOAuthTwoFactorCodeResponse) GetJSON200 ¶
func (r VerifyOAuthTwoFactorCodeResponse) GetJSON200() *Json
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VerifyOAuthTwoFactorCodeResponse) GetJSON201 ¶
func (r VerifyOAuthTwoFactorCodeResponse) GetJSON201() *Json
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (VerifyOAuthTwoFactorCodeResponse) GetJSON400 ¶
func (r VerifyOAuthTwoFactorCodeResponse) GetJSON400() *AuthFailure
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (VerifyOAuthTwoFactorCodeResponse) GetJSON401 ¶
func (r VerifyOAuthTwoFactorCodeResponse) GetJSON401() *AuthFailure
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (VerifyOAuthTwoFactorCodeResponse) GetJSONDefault ¶
func (r VerifyOAuthTwoFactorCodeResponse) GetJSONDefault() *AuthFailure
GetJSONDefault returns the response for an HTTP default `application/json` response
func (VerifyOAuthTwoFactorCodeResponse) Status ¶
func (r VerifyOAuthTwoFactorCodeResponse) Status() string
Status returns HTTPResponse.Status
func (VerifyOAuthTwoFactorCodeResponse) StatusCode ¶
func (r VerifyOAuthTwoFactorCodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VideoRenderingFeature ¶
type VideoRenderingFeature struct {
// MaxDigitalZoomLevel Device-reported maximum digital zoom level; units beyond the capture are not established.
MaxDigitalZoomLevel *float32 `json:"max_digital_zoom_level,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
VideoRenderingFeature defines model for VideoRenderingFeature.
func (VideoRenderingFeature) Get ¶
func (a VideoRenderingFeature) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for VideoRenderingFeature. Returns the specified element and whether it was found
func (VideoRenderingFeature) MarshalJSON ¶
func (a VideoRenderingFeature) MarshalJSON() ([]byte, error)
Override default JSON handling for VideoRenderingFeature to handle AdditionalProperties
func (*VideoRenderingFeature) Set ¶
func (a *VideoRenderingFeature) Set(fieldName string, value interface{})
Setter for additional properties for VideoRenderingFeature
func (*VideoRenderingFeature) UnmarshalJSON ¶
func (a *VideoRenderingFeature) UnmarshalJSON(b []byte) error
Override default JSON handling for VideoRenderingFeature to handle AdditionalProperties
type VideoSettings ¶
type VideoSettings struct {
// Brightness Device-reported brightness level; the capture does not establish a maximum.
Brightness *int `json:"brightness,omitempty"`
// ClipLengthMax Maximum clip duration in seconds.
ClipLengthMax *int `json:"clip_length_max,omitempty"`
// ClipLengthMin Minimum clip duration in seconds.
ClipLengthMin *int `json:"clip_length_min,omitempty"`
HdrEnable *bool `json:"hdr_enable,omitempty"`
HevcEnabled *bool `json:"hevc_enabled,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
VideoSettings defines model for VideoSettings.
func (VideoSettings) Get ¶
func (a VideoSettings) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for VideoSettings. Returns the specified element and whether it was found
func (VideoSettings) MarshalJSON ¶
func (a VideoSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for VideoSettings to handle AdditionalProperties
func (*VideoSettings) Set ¶
func (a *VideoSettings) Set(fieldName string, value interface{})
Setter for additional properties for VideoSettings
func (*VideoSettings) UnmarshalJSON ¶
func (a *VideoSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for VideoSettings to handle AdditionalProperties
type VolumeSettings ¶
type VolumeSettings struct {
// DoorbellVolume Legacy doorbell volume accepted by the Go client.
DoorbellVolume *int `json:"doorbell_volume,omitempty"`
// MicVolume Non-negative device-reported microphone volume; upper bound is not established.
MicVolume *int `json:"mic_volume,omitempty"`
// VoiceVolume Non-negative device-reported voice volume; upper bound is not established.
VoiceVolume *int `json:"voice_volume,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
VolumeSettings defines model for VolumeSettings.
func (VolumeSettings) Get ¶
func (a VolumeSettings) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for VolumeSettings. Returns the specified element and whether it was found
func (VolumeSettings) MarshalJSON ¶
func (a VolumeSettings) MarshalJSON() ([]byte, error)
Override default JSON handling for VolumeSettings to handle AdditionalProperties
func (*VolumeSettings) Set ¶
func (a *VolumeSettings) Set(fieldName string, value interface{})
Setter for additional properties for VolumeSettings
func (*VolumeSettings) UnmarshalJSON ¶
func (a *VolumeSettings) UnmarshalJSON(b []byte) error
Override default JSON handling for VolumeSettings to handle AdditionalProperties