Class: Google::Apis::DataformV1::WriteFile

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

Overview

Represents the write file operation (for files added or modified).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WriteFile

Returns a new instance of WriteFile.



4339
4340
4341
# File 'lib/google/apis/dataform_v1/classes.rb', line 4339

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

Instance Attribute Details

#contentsString

The file's contents. Corresponds to the JSON property contents NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4337
4338
4339
# File 'lib/google/apis/dataform_v1/classes.rb', line 4337

def contents
  @contents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4344
4345
4346
# File 'lib/google/apis/dataform_v1/classes.rb', line 4344

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