Class: Google::Apis::FirebaserulesV1::File
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::File
- 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
-
#content ⇒ String
Required.
-
#fingerprint ⇒ String
Fingerprint (e.g. github sha) associated with the
File
. -
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#content ⇒ String
Required. Textual Content.
Corresponds to the JSON property content
109 110 111 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 109 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.
115 116 117 |
# File 'lib/google/apis/firebaserules_v1/classes.rb', line 115 def fingerprint @fingerprint end |
#name ⇒ String
Required. File name.
Corresponds to the JSON property name
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 |