Class DevicesResource.RequestSyncRequest
Requests Google to send an action.devices.SYNC
intent to your smart home Action to update
device metadata for the given user. The third-party user's identity is passed via the agent_user_id
(see
RequestSyncDevicesRequest). This request must be authorized using service account credentials from your
Actions console project.
Inheritance
DevicesResource.RequestSyncRequest
Inherited Members
Namespace: Google.Apis.HomeGraphService.v1
Assembly: Google.Apis.HomeGraphService.v1.dll
Syntax
public class DevicesResource.RequestSyncRequest : HomeGraphServiceBaseServiceRequest<RequestSyncDevicesResponse>, IClientServiceRequest<RequestSyncDevicesResponse>, IClientServiceRequest
Constructors
RequestSyncRequest(IClientService, RequestSyncDevicesRequest)
Constructs a new RequestSync request.
Declaration
public RequestSyncRequest(IClientService service, RequestSyncDevicesRequest body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RequestSyncDevicesRequest | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HomeGraphService.v1.Data.RequestSyncDevicesResponse>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HomeGraphService.v1.Data.RequestSyncDevicesResponse>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HomeGraphService.v1.Data.RequestSyncDevicesResponse>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.HomeGraphService.v1.Data.RequestSyncDevicesResponse>.GetBody()
InitParameters()
Initializes RequestSync parameter list.
Declaration
protected override void InitParameters()