Class: Google::Apis::FirebaserulesV1::Metadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaserules_v1/classes.rb,
lib/google/apis/firebaserules_v1/representations.rb,
lib/google/apis/firebaserules_v1/representations.rb

Overview

Metadata for a Ruleset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Metadata

Returns a new instance of Metadata.



344
345
346
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 344

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

Instance Attribute Details

#servicesArray<String>

Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these. Corresponds to the JSON property services

Returns:

  • (Array<String>)


342
343
344
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 342

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



349
350
351
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 349

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