Class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
- Inherits:
-
Object
- Object
- Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/proximitybeacon_v1beta1/classes.rb,
generated/google/apis/proximitybeacon_v1beta1/representations.rb,
generated/google/apis/proximitybeacon_v1beta1/representations.rb
Overview
Project-specific data associated with a beacon.
Instance Attribute Summary collapse
-
#attachment_name ⇒ String
Resource name of this attachment.
-
#creation_time_ms ⇒ String
The UTC time when this attachment was created, in milliseconds since the UNIX epoch.
-
#data ⇒ String
An opaque data container for client-provided data.
-
#namespaced_type ⇒ String
Specifies what kind of attachment this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BeaconAttachment
constructor
A new instance of BeaconAttachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BeaconAttachment
Returns a new instance of BeaconAttachment
260 261 262 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 260 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_name ⇒ String
Resource name of this attachment. Attachment names have the format:
beacons/beacon_id/attachments/attachment_id.
Leave this empty on creation.
Corresponds to the JSON property attachmentName
249 250 251 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 249 def @attachment_name end |
#creation_time_ms ⇒ String
The UTC time when this attachment was created, in milliseconds since the
UNIX epoch.
Corresponds to the JSON property creationTimeMs
242 243 244 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 242 def creation_time_ms @creation_time_ms end |
#data ⇒ String
An opaque data container for client-provided data. Must be
base64 encoded in HTTP
requests, and will be so encoded (with padding) in responses.
Required.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
236 237 238 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 236 def data @data end |
#namespaced_type ⇒ String
Specifies what kind of attachment this is. Tells a client how to
interpret the data field. Format is namespace/type. Namespace
provides type separation between clients. Type describes the type of
data, for use by the client when parsing the data field.
Required.
Corresponds to the JSON property namespacedType
258 259 260 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 258 def namespaced_type @namespaced_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
265 266 267 268 269 270 |
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 265 def update!(**args) @data = args[:data] if args.key?(:data) @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms) @attachment_name = args[:attachment_name] if args.key?(:attachment_name) @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type) end |