Class BeaconsResource.AttachmentsResource.CreateRequest
Associates the given data with the specified beacon. Attachment data must contain two parts:
A namespaced type. The actual attachment data itself.
The namespaced type consists of two parts, the namespace and the type. The namespace must be one of the
values returned by the namespaces
endpoint, while the type can be a string of any characters except
for the forward slash (/
) up to 100 characters in length.
Attachment data can be up to 1024 bytes long.
Authenticate using an OAuth access token from a signed-in user with Is owner or Can edit permissions in the Google Developers Console project.
Inheritance
Inherited Members
Namespace: Google.Apis.Proximitybeacon.v1beta1
Assembly: Google.Apis.Proximitybeacon.v1beta1.dll
Syntax
public class CreateRequest : ProximitybeaconBaseServiceRequest<BeaconAttachment>, IClientServiceRequest<BeaconAttachment>, IClientServiceRequest
Constructors
CreateRequest(IClientService, BeaconAttachment, String)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, BeaconAttachment body, string beaconName)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
BeaconAttachment | body | |
System.String | beaconName |
Properties
BeaconName
Beacon on which the attachment should be created. A beacon name has the format
"beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is a code for
the beacon's type. Possible values are 3
for Eddystone-UID, 4
for Eddystone-EID, 1
for
iBeacon, or 5
for AltBeacon. For Eddystone-EID beacons, you may use either the current EID or the
beacon's "stable" UID. Required.
Declaration
[RequestParameter("beaconName", RequestParameterType.Path)]
public virtual string BeaconName { get; }
Property Value
Type | Description |
---|---|
System.String |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ProjectId
The project id of the project the attachment will belong to. If the project id is not specified then the project making the request is used. Optional.
Declaration
[RequestParameter("projectId", RequestParameterType.Query)]
public virtual string ProjectId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
System.Object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()