Class BeaconsResource.AttachmentsResource
The "attachments" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Proximitybeacon.v1beta1
Assembly: Google.Apis.Proximitybeacon.v1beta1.dll
Syntax
public class AttachmentsResource
Constructors
AttachmentsResource(IClientService)
Constructs a new resource.
Declaration
public AttachmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
BatchDelete(String)
Deletes multiple attachments on a given beacon. This operation is permanent and cannot be undone.
You can optionally specify namespacedType
to choose which attachments should be deleted. If you do not
specify namespacedType
, all your attachments on the given beacon will be deleted. You also may
explicitly specify *
to delete all.
Authenticate using an OAuth access token from a signed-in user with Is owner or Can edit permissions in the Google Developers Console project.
Declaration
public virtual BeaconsResource.AttachmentsResource.BatchDeleteRequest BatchDelete(string beaconName)
Parameters
Type | Name | Description |
---|---|---|
System.String | beaconName | The beacon whose attachments should be deleted. 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 |
Returns
Type | Description |
---|---|
BeaconsResource.AttachmentsResource.BatchDeleteRequest |
Create(BeaconAttachment, String)
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.
Declaration
public virtual BeaconsResource.AttachmentsResource.CreateRequest Create(BeaconAttachment body, string beaconName)
Parameters
Type | Name | Description |
---|---|---|
BeaconAttachment | body | The body of the request. |
System.String | 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 |
Returns
Type | Description |
---|---|
BeaconsResource.AttachmentsResource.CreateRequest |
Delete(String)
Deletes the specified attachment for the given beacon. Each attachment has a unique attachment
name (attachmentName
) which is returned when you fetch the attachment data via this API. You specify
this with the delete request to control which attachment is removed. This operation cannot be undone.
Authenticate using an OAuth access token from a signed-in user with Is owner or Can edit permissions in the Google Developers Console project.
Declaration
public virtual BeaconsResource.AttachmentsResource.DeleteRequest Delete(string attachmentName)
Parameters
Type | Name | Description |
---|---|---|
System.String | attachmentName | The attachment name ( |
Returns
Type | Description |
---|---|
BeaconsResource.AttachmentsResource.DeleteRequest |
List(String)
Returns the attachments for the specified beacon that match the specified namespaced-type pattern.
To control which namespaced types are returned, you add the namespacedType
query parameter to the
request. You must either use *
, to return all attachments, or the namespace must be one of the ones
returned from the namespaces
endpoint.
Authenticate using an OAuth access token from a signed-in user with viewer, Is owner or Can edit permissions in the Google Developers Console project.
Declaration
public virtual BeaconsResource.AttachmentsResource.ListRequest List(string beaconName)
Parameters
Type | Name | Description |
---|---|---|
System.String | beaconName | Beacon whose attachments should be fetched. 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 |
Returns
Type | Description |
---|---|
BeaconsResource.AttachmentsResource.ListRequest |