Class ProjectsResource.LocationsResource.RegistriesResource.DevicesResource.PatchRequest
Updates a device.
Inheritance
object
ProjectsResource.LocationsResource.RegistriesResource.DevicesResource.PatchRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudIot.v1
Assembly: Google.Apis.CloudIot.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RegistriesResource.DevicesResource.PatchRequest : CloudIotBaseServiceRequest<Device>, IClientServiceRequest<Device>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Device, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Device body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Device | body | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudIot.v1.Data.Device>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudIot.v1.Data.Device>.MethodName
Name
The resource path name. For example,
projects/p1/locations/us-central1/registries/registry0/devices/dev0 or
projects/p1/locations/us-central1/registries/registry0/devices/{num_id}. When name is
populated as a response from the service, it always ends in the device numeric ID.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudIot.v1.Data.Device>.RestPath
UpdateMask
Required. Only updates the device fields indicated by this mask. The field mask must not
be empty, and it must not contain fields that are immutable or only set by the server.
Mutable top-level fields: credentials, blocked, and metadata
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudIot.v1.Data.Device>.GetBody()
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudIot.v1.CloudIotBaseServiceRequest<Google.Apis.CloudIot.v1.Data.Device>.InitParameters()