Class: Google::Apis::DataformV1beta1::WriteFileRequest

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

Overview

WriteFile request message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WriteFileRequest

Returns a new instance of WriteFileRequest.



2672
2673
2674
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2672

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

Instance Attribute Details

#contentsString

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

Returns:

  • (String)


2665
2666
2667
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2665

def contents
  @contents
end

#pathString

Required. The file. Corresponds to the JSON property path

Returns:

  • (String)


2670
2671
2672
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2670

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2677
2678
2679
2680
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2677

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