Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + const HomegraphScope + type AgentDeviceId struct + ForceSendFields []string + Id string + NullFields []string + func (s *AgentDeviceId) MarshalJSON() ([]byte, error) + type AgentOtherDeviceId struct + AgentId string + DeviceId string + ForceSendFields []string + NullFields []string + func (s *AgentOtherDeviceId) MarshalJSON() ([]byte, error) + type AgentUsersDeleteCall struct + func (c *AgentUsersDeleteCall) Context(ctx context.Context) *AgentUsersDeleteCall + func (c *AgentUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) + func (c *AgentUsersDeleteCall) Fields(s ...googleapi.Field) *AgentUsersDeleteCall + func (c *AgentUsersDeleteCall) Header() http.Header + func (c *AgentUsersDeleteCall) RequestId(requestId string) *AgentUsersDeleteCall + type AgentUsersService struct + func NewAgentUsersService(s *Service) *AgentUsersService + func (r *AgentUsersService) Delete(agentUserId string) *AgentUsersDeleteCall + type Device struct + Attributes googleapi.RawMessage + CustomData googleapi.RawMessage + DeviceInfo *DeviceInfo + ForceSendFields []string + Id string + Name *DeviceNames + NotificationSupportedByAgent bool + NullFields []string + OtherDeviceIds []*AgentOtherDeviceId + RoomHint string + StructureHint string + Traits []string + Type string + WillReportState bool + func (s *Device) MarshalJSON() ([]byte, error) + type DeviceInfo struct + ForceSendFields []string + HwVersion string + Manufacturer string + Model string + NullFields []string + SwVersion string + func (s *DeviceInfo) MarshalJSON() ([]byte, error) + type DeviceNames struct + DefaultNames []string + ForceSendFields []string + Name string + Nicknames []string + NullFields []string + func (s *DeviceNames) MarshalJSON() ([]byte, error) + type DevicesQueryCall struct + func (c *DevicesQueryCall) Context(ctx context.Context) *DevicesQueryCall + func (c *DevicesQueryCall) Do(opts ...googleapi.CallOption) (*QueryResponse, error) + func (c *DevicesQueryCall) Fields(s ...googleapi.Field) *DevicesQueryCall + func (c *DevicesQueryCall) Header() http.Header + type DevicesReportStateAndNotificationCall struct + func (c *DevicesReportStateAndNotificationCall) Context(ctx context.Context) *DevicesReportStateAndNotificationCall + func (c *DevicesReportStateAndNotificationCall) Do(opts ...googleapi.CallOption) (*ReportStateAndNotificationResponse, error) + func (c *DevicesReportStateAndNotificationCall) Fields(s ...googleapi.Field) *DevicesReportStateAndNotificationCall + func (c *DevicesReportStateAndNotificationCall) Header() http.Header + type DevicesRequestSyncCall struct + func (c *DevicesRequestSyncCall) Context(ctx context.Context) *DevicesRequestSyncCall + func (c *DevicesRequestSyncCall) Do(opts ...googleapi.CallOption) (*RequestSyncDevicesResponse, error) + func (c *DevicesRequestSyncCall) Fields(s ...googleapi.Field) *DevicesRequestSyncCall + func (c *DevicesRequestSyncCall) Header() http.Header + type DevicesService struct + func NewDevicesService(s *Service) *DevicesService + func (r *DevicesService) Query(queryrequest *QueryRequest) *DevicesQueryCall + func (r *DevicesService) ReportStateAndNotification(reportstateandnotificationrequest *ReportStateAndNotificationRequest) *DevicesReportStateAndNotificationCall + func (r *DevicesService) RequestSync(requestsyncdevicesrequest *RequestSyncDevicesRequest) *DevicesRequestSyncCall + func (r *DevicesService) Sync(syncrequest *SyncRequest) *DevicesSyncCall + type DevicesSyncCall struct + func (c *DevicesSyncCall) Context(ctx context.Context) *DevicesSyncCall + func (c *DevicesSyncCall) Do(opts ...googleapi.CallOption) (*SyncResponse, error) + func (c *DevicesSyncCall) Fields(s ...googleapi.Field) *DevicesSyncCall + func (c *DevicesSyncCall) Header() http.Header + type Empty struct + type QueryRequest struct + AgentUserId string + ForceSendFields []string + Inputs []*QueryRequestInput + NullFields []string + RequestId string + func (s *QueryRequest) MarshalJSON() ([]byte, error) + type QueryRequestInput struct + ForceSendFields []string + NullFields []string + Payload *QueryRequestPayload + func (s *QueryRequestInput) MarshalJSON() ([]byte, error) + type QueryRequestPayload struct + Devices []*AgentDeviceId + ForceSendFields []string + NullFields []string + func (s *QueryRequestPayload) MarshalJSON() ([]byte, error) + type QueryResponse struct + ForceSendFields []string + NullFields []string + Payload *QueryResponsePayload + RequestId string + func (s *QueryResponse) MarshalJSON() ([]byte, error) + type QueryResponsePayload struct + Devices map[string]googleapi.RawMessage + ForceSendFields []string + NullFields []string + func (s *QueryResponsePayload) MarshalJSON() ([]byte, error) + type ReportStateAndNotificationDevice struct + ForceSendFields []string + Notifications googleapi.RawMessage + NullFields []string + States googleapi.RawMessage + func (s *ReportStateAndNotificationDevice) MarshalJSON() ([]byte, error) + type ReportStateAndNotificationRequest struct + AgentUserId string + EventId string + FollowUpToken string + ForceSendFields []string + NullFields []string + Payload *StateAndNotificationPayload + RequestId string + func (s *ReportStateAndNotificationRequest) MarshalJSON() ([]byte, error) + type ReportStateAndNotificationResponse struct + ForceSendFields []string + NullFields []string + RequestId string + func (s *ReportStateAndNotificationResponse) MarshalJSON() ([]byte, error) + type RequestSyncDevicesRequest struct + AgentUserId string + Async bool + ForceSendFields []string + NullFields []string + func (s *RequestSyncDevicesRequest) MarshalJSON() ([]byte, error) + type RequestSyncDevicesResponse struct + type Service struct + AgentUsers *AgentUsersService + BasePath string + Devices *DevicesService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type StateAndNotificationPayload struct + Devices *ReportStateAndNotificationDevice + ForceSendFields []string + NullFields []string + func (s *StateAndNotificationPayload) MarshalJSON() ([]byte, error) + type SyncRequest struct + AgentUserId string + ForceSendFields []string + NullFields []string + RequestId string + func (s *SyncRequest) MarshalJSON() ([]byte, error) + type SyncResponse struct + ForceSendFields []string + NullFields []string + Payload *SyncResponsePayload + RequestId string + func (s *SyncResponse) MarshalJSON() ([]byte, error) + type SyncResponsePayload struct + AgentUserId string + Devices []*Device + ForceSendFields []string + NullFields []string + func (s *SyncResponsePayload) MarshalJSON() ([]byte, error)