Class: Google::Apis::FirebaserulesV1::File

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

File containing source content.

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) ⇒ File

Returns a new instance of File



609
610
611
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 609

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

Instance Attribute Details

#contentString

Textual Content. Corresponds to the JSON property content

Returns:

  • (String)


607
608
609
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 607

def content
  @content
end

#fingerprintString

Fingerprint (e.g. github sha) associated with the File. Corresponds to the JSON property fingerprint NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


597
598
599
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 597

def fingerprint
  @fingerprint
end

#nameString

File name. Corresponds to the JSON property name

Returns:

  • (String)


602
603
604
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 602

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



614
615
616
617
618
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 614

def update!(**args)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @name = args[:name] if args.key?(:name)
  @content = args[:content] if args.key?(:content)
end