Class: Google::Apis::FirebaserulesV1::File
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::File
- 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
-
#content ⇒ String
Textual Content.
-
#fingerprint ⇒ String
Fingerprint (e.g. github sha) associated with the
File
. -
#name ⇒ String
File name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File.
128 129 130 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 128 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
Textual Content.
Corresponds to the JSON property content
115 116 117 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 115 def content @content end |
#fingerprint ⇒ String
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.
121 122 123 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 121 def fingerprint @fingerprint end |
#name ⇒ String
File name.
Corresponds to the JSON property name
126 127 128 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 126 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
133 134 135 136 137 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 133 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 |