Show / Hide Table of Contents

Class DevicesResource.ReportStateAndNotificationRequest

Reports device state and optionally sends device notifications. Called by your smart home Action when the state of a third-party device changes or you need to send a notification about the device. See Implement Report State for more information. This method updates the device state according to its declared traits. Publishing a new state value outside of these traits will result in an INVALID_ARGUMENT error response. The third-party user's identity is passed in via the agent_user_id (see ReportStateAndNotificationRequest). This request must be authorized using service account credentials from your Actions console project.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<ReportStateAndNotificationResponse>
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>
DevicesResource.ReportStateAndNotificationRequest
Implements
IClientServiceRequest<ReportStateAndNotificationResponse>
IClientServiceRequest
Inherited Members
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.Xgafv
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.AccessToken
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.Alt
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.Callback
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.Fields
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.Key
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.OauthToken
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.PrettyPrint
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.QuotaUser
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.UploadType
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.UploadProtocol
ClientServiceRequest<ReportStateAndNotificationResponse>.Execute()
ClientServiceRequest<ReportStateAndNotificationResponse>.ExecuteAsStream()
ClientServiceRequest<ReportStateAndNotificationResponse>.ExecuteAsync()
ClientServiceRequest<ReportStateAndNotificationResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<ReportStateAndNotificationResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<ReportStateAndNotificationResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<ReportStateAndNotificationResponse>.CreateRequest(bool?)
ClientServiceRequest<ReportStateAndNotificationResponse>.GenerateRequestUri()
ClientServiceRequest<ReportStateAndNotificationResponse>.GetDefaultETagAction(string)
ClientServiceRequest<ReportStateAndNotificationResponse>.ETagAction
ClientServiceRequest<ReportStateAndNotificationResponse>.ModifyRequest
ClientServiceRequest<ReportStateAndNotificationResponse>.ValidateParameters
ClientServiceRequest<ReportStateAndNotificationResponse>.ApiVersion
ClientServiceRequest<ReportStateAndNotificationResponse>.RequestParameters
ClientServiceRequest<ReportStateAndNotificationResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HomeGraphService.v1
Assembly: Google.Apis.HomeGraphService.v1.dll
Syntax
public class DevicesResource.ReportStateAndNotificationRequest : HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>, IClientServiceRequest<ReportStateAndNotificationResponse>, IClientServiceRequest

Constructors

ReportStateAndNotificationRequest(IClientService, ReportStateAndNotificationRequest)

Constructs a new ReportStateAndNotification request.

Declaration
public ReportStateAndNotificationRequest(IClientService service, ReportStateAndNotificationRequest body)
Parameters
Type Name Description
IClientService service
ReportStateAndNotificationRequest body

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ReportStateAndNotificationResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ReportStateAndNotificationResponse>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<ReportStateAndNotificationResponse>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<ReportStateAndNotificationResponse>.GetBody()

InitParameters()

Initializes ReportStateAndNotification parameter list.

Declaration
protected override void InitParameters()
Overrides
HomeGraphServiceBaseServiceRequest<ReportStateAndNotificationResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX