Class: Google::Apis::SheetsV4::AppendDimensionRequest

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

Overview

Appends rows or columns to the end of a sheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AppendDimensionRequest

Returns a new instance of AppendDimensionRequest.


4972
4973
4974
# File 'generated/google/apis/sheets_v4/classes.rb', line 4972

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

Instance Attribute Details

#dimensionString

Whether rows or columns should be appended. Corresponds to the JSON property dimension

Returns:

  • (String)

4970
4971
4972
# File 'generated/google/apis/sheets_v4/classes.rb', line 4970

def dimension
  @dimension
end

#lengthFixnum

The number of rows or columns to append. Corresponds to the JSON property length

Returns:

  • (Fixnum)

4965
4966
4967
# File 'generated/google/apis/sheets_v4/classes.rb', line 4965

def length
  @length
end

#sheet_idFixnum

The sheet to append rows or columns to. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)

4960
4961
4962
# File 'generated/google/apis/sheets_v4/classes.rb', line 4960

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4977
4978
4979
4980
4981
# File 'generated/google/apis/sheets_v4/classes.rb', line 4977

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