Class: Google::Apis::FirebaserulesV1::Release
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::Release
- 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
Release
is a named reference to a Ruleset
. Once a Release
refers to a
Ruleset
, rules-enabled services will be able to enforce the Ruleset
.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Required.
-
#ruleset_name ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Release
constructor
A new instance of Release.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Release
Returns a new instance of Release.
380 381 382 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 380 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time the release was created.
Corresponds to the JSON property createTime
362 363 364 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 362 def create_time @create_time end |
#name ⇒ String
Required. Format: projects/
project_id/releases/
release_id`
Corresponds to the JSON property
name`
367 368 369 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 367 def name @name end |
#ruleset_name ⇒ String
Required. Name of the Ruleset
referred to by this Release
. The Ruleset
must exist for the Release
to be created.
Corresponds to the JSON property rulesetName
373 374 375 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 373 def ruleset_name @ruleset_name end |
#update_time ⇒ String
Output only. Time the release was updated.
Corresponds to the JSON property updateTime
378 379 380 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 378 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
385 386 387 388 389 390 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 385 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name) @update_time = args[:update_time] if args.key?(:update_time) end |