Class: Google::Apis::FirebaserulesV1::Ruleset

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

Ruleset is an immutable copy of Source with a globally unique identifier and a creation time.

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

Returns a new instance of Ruleset



416
417
418
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 416

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

Instance Attribute Details

#create_timeString

Time the Ruleset was created. Output only. Corresponds to the JSON property createTime

Returns:

  • (String)


402
403
404
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 402

def create_time
  @create_time
end

#nameString

Name of the Ruleset. The ruleset_id is auto generated by the service. Format: projects/project_id/rulesets/ruleset_id` Output only. Corresponds to the JSON propertyname`

Returns:

  • (String)


409
410
411
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 409

def name
  @name
end

#sourceGoogle::Apis::FirebaserulesV1::Source

Source is one or more File messages comprising a logical set of rules. Corresponds to the JSON property source



414
415
416
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 414

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



421
422
423
424
425
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 421

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