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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Release

Returns a new instance of Release



348
349
350
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 348

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)


311
312
313
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 311

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)


334
335
336
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 334

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)


340
341
342
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 340

def ruleset_name
  @ruleset_name
end

#update_timeString

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

Returns:

  • (String)


346
347
348
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 346

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



353
354
355
356
357
358
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 353

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