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

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

File containing source content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



122
123
124
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 122

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

Instance Attribute Details

#contentString

Required. Textual Content. Corresponds to the JSON property content

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 109

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)


115
116
117
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 115

def fingerprint
  @fingerprint
end

#nameString

Required. File name. Corresponds to the JSON property name

Returns:

  • (String)


120
121
122
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 120

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



127
128
129
130
131
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 127

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