Class: Google::Apis::FirebasedataconnectV1beta::File

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

Overview

Individual files.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



293
294
295
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 293

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

Instance Attribute Details

#contentString

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

Returns:

  • (String)


284
285
286
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 284

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)


291
292
293
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 291

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



298
299
300
301
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 298

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