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



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

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)


274
275
276
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 274

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)


303
304
305
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 303

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)


309
310
311
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 309

def ruleset_name
  @ruleset_name
end

#update_timeString

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

Returns:

  • (String)


280
281
282
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 280

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



316
317
318
319
320
321
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 316

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @update_time = args[:update_time] if args.key?(:update_time)
  @name = args[:name] if args.key?(:name)
  @ruleset_name = args[:ruleset_name] if args.key?(:ruleset_name)
end