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

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

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.



396
397
398
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 396

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


364
365
366
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 364

def create_time
  @create_time
end

#nameString

Resource name for the Release. Release names may be structured app1/prod/ v2 or flat app1_prod_v2 which affords developers a great deal of flexibility in mapping the name to the style that best fits their existing development practices. For example, a name could refer to an environment, an app, a version, or some combination of three. In the table below, for the project name projects/foo, the following relative release paths show how flat and structured names might be chosen to match a desired development / deployment strategy. Use Case | Flat Name | Structured Name -------------|----- ----------------|---------------- Environments | releases/qa | releases/qa Apps | releases/app1_qa | releases/app1/qa Versions | releases/app1_v2_qa | releases/app1/v2/qa The delimiter between the release name path elements can be almost anything and it should work equally well with the release name list filter, but in many ways the structured paths provide a clearer picture of the relationship between Release instances. Format: projects/project_id/ releases/release_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


383
384
385
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 383

def name
  @name
end

#ruleset_nameString

Name of the Ruleset referred to by this Release. The Ruleset must exist the Release to be created. Corresponds to the JSON property rulesetName

Returns:

  • (String)


389
390
391
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 389

def ruleset_name
  @ruleset_name
end

#update_timeString

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

Returns:

  • (String)


394
395
396
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 394

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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