Class: Google::Apis::ProximitybeaconV1beta1::BeaconAttachment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BeaconAttachment

Returns a new instance of BeaconAttachment.



405
406
407
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 405

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attachment_nameString

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

Returns:

  • (String)


388
389
390
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 388

def attachment_name
  @attachment_name
end

#dataString

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

Returns:

  • (String)


403
404
405
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 403

def data
  @data
end

#namespaced_typeString

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

Returns:

  • (String)


396
397
398
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 396

def namespaced_type
  @namespaced_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



410
411
412
413
414
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 410

def update!(**args)
  @attachment_name = args[:attachment_name] if args.key?(:attachment_name)
  @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type)
  @data = args[:data] if args.key?(:data)
end