Class: Google::Apis::FirebaserulesV1::Ruleset
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::Ruleset
- 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
-
#create_time ⇒ String
Time the
Ruleset
was created. -
#metadata ⇒ Google::Apis::FirebaserulesV1::Metadata
Metadata for a Ruleset.
-
#name ⇒ String
Name of the
Ruleset
. -
#source ⇒ Google::Apis::FirebaserulesV1::Source
Source
is one or moreFile
messages comprising a logical set of rules.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Ruleset
constructor
A new instance of Ruleset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Ruleset
Returns a new instance of Ruleset.
465 466 467 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 465 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Time the Ruleset
was created. Output only.
Corresponds to the JSON property createTime
447 448 449 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 447 def create_time @create_time end |
#metadata ⇒ Google::Apis::FirebaserulesV1::Metadata
Metadata for a Ruleset.
Corresponds to the JSON property metadata
452 453 454 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 452 def @metadata end |
#name ⇒ String
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 property
name`
458 459 460 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 458 def name @name end |
#source ⇒ Google::Apis::FirebaserulesV1::Source
Source
is one or more File
messages comprising a logical set of rules.
Corresponds to the JSON property source
463 464 465 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 463 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
470 471 472 473 474 475 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 470 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @metadata = args[:metadata] if args.key?(:metadata) @name = args[:name] if args.key?(:name) @source = args[:source] if args.key?(:source) end |