Class: Google::Apis::SheetsV4::AddProtectedRangeRequest

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

Adds a new protected range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddProtectedRangeRequest

Returns a new instance of AddProtectedRangeRequest.



319
320
321
# File 'generated/google/apis/sheets_v4/classes.rb', line 319

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

Instance Attribute Details

#protected_rangeGoogle::Apis::SheetsV4::ProtectedRange

A protected range. Corresponds to the JSON property protectedRange



317
318
319
# File 'generated/google/apis/sheets_v4/classes.rb', line 317

def protected_range
  @protected_range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



324
325
326
# File 'generated/google/apis/sheets_v4/classes.rb', line 324

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