Class ProjectsResource.LocationsResource.RegistriesResource.DevicesResource.CreateRequest
Creates a device in a device registry.
Inheritance
object
ProjectsResource.LocationsResource.RegistriesResource.DevicesResource.CreateRequest
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.CreateRequest : CloudIotBaseServiceRequest<Device>, IClientServiceRequest<Device>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Device, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Device body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Device | body | |
string | parent |
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
Parent
Required. The name of the device registry where this device should be created. For example,
projects/example-project/locations/us-central1/registries/my-registry
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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
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 Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudIot.v1.CloudIotBaseServiceRequest<Google.Apis.CloudIot.v1.Data.Device>.InitParameters()