Class: Google::Apis::FirebaserulesV1::Release

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

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

Returns:

  • (String)


362
363
364
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 362

def create_time
  @create_time
end

#nameString

Required. Format: projects/project_id/releases/release_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


367
368
369
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 367

def name
  @name
end

#ruleset_nameString

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

Returns:

  • (String)


373
374
375
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 373

def ruleset_name
  @ruleset_name
end

#update_timeString

Output only. Time the release was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


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