Class: Google::Apis::ProximitybeaconV1beta1::Namespace

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

An attachment namespace defines read and write access for all the attachments created under it. Each namespace is globally unique, and owned by one project which is the only project that can create attachments under it.

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) ⇒ Namespace

Returns a new instance of Namespace.



492
493
494
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 492

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

Instance Attribute Details

#namespace_nameString

Resource name of this namespace. Namespaces names have the format: namespaces/ namespace. Corresponds to the JSON property namespaceName

Returns:

  • (String)


484
485
486
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 484

def namespace_name
  @namespace_name
end

#serving_visibilityString

Specifies what clients may receive attachments under this namespace via beaconinfo.getforobserved. Corresponds to the JSON property servingVisibility

Returns:

  • (String)


490
491
492
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 490

def serving_visibility
  @serving_visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
500
# File 'generated/google/apis/proximitybeacon_v1beta1/classes.rb', line 497

def update!(**args)
  @namespace_name = args[:namespace_name] if args.key?(:namespace_name)
  @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility)
end