Class: Google::Apis::FirebasedataconnectV1::File

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasedataconnect_v1/classes.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb

Overview

Individual files.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



397
398
399
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 397

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

Instance Attribute Details

#contentString

Required. The file's textual content. Corresponds to the JSON property content

Returns:

  • (String)


388
389
390
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 388

def content
  @content
end

#pathString

Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/.gql). Corresponds to the JSON property path

Returns:

  • (String)


395
396
397
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 395

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



402
403
404
405
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 402

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