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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebaserules_v1/classes.rb,
generated/google/apis/firebaserules_v1/representations.rb,
generated/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.



346
347
348
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 346

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


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

def services
  @services
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



351
352
353
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 351

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