Class: Google::Apis::FirebaserulesV1::Ruleset
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::Ruleset
- 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
Ruleset
is an immutable copy of Source
with a globally unique identifier
and a creation time.
Instance Attribute Summary collapse
-
#attachment_point ⇒ String
Immutable.
-
#create_time ⇒ String
Output only.
-
#metadata ⇒ Google::Apis::FirebaserulesV1::Metadata
Metadata for a Ruleset.
-
#name ⇒ String
Output only.
-
#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.
455 456 457 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_point ⇒ String
Immutable. Intended resource to which this Ruleset should be released. May be
left blank to signify the resource associated with the default release.
Expected format: firestore.googleapis.com/projects//databases/
Corresponds to the JSON property attachmentPoint
432 433 434 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 432 def @attachment_point end |
#create_time ⇒ String
Output only. Time the Ruleset
was created.
Corresponds to the JSON property createTime
437 438 439 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 437 def create_time @create_time end |
#metadata ⇒ Google::Apis::FirebaserulesV1::Metadata
Metadata for a Ruleset.
Corresponds to the JSON property metadata
442 443 444 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 442 def @metadata end |
#name ⇒ String
Output only. Name of the Ruleset
. The ruleset_id is auto generated by the
service. Format: projects/
project_id/rulesets/
ruleset_id`
Corresponds to the JSON property
name`
448 449 450 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 448 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
453 454 455 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 453 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
460 461 462 463 464 465 466 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 460 def update!(**args) @attachment_point = args[:attachment_point] if args.key?(:attachment_point) @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 |