Class: Google::Apis::DocsV1::TabProperties
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DocsV1::TabProperties
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb 
Overview
Properties of a tab.
Instance Attribute Summary collapse
- 
  
    
      #index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The zero-based index of the tab within the parent.
 - 
  
    
      #nesting_level  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #parent_tab_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #tab_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The user-visible name of the tab.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TabProperties 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of TabProperties.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ TabProperties
Returns a new instance of TabProperties.
      5556 5557 5558  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5556 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#index ⇒ Fixnum
The zero-based index of the tab within the parent.
Corresponds to the JSON property index
      5532 5533 5534  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5532 def index @index end  | 
  
#nesting_level ⇒ Fixnum
Output only. The depth of the tab within the document. Root-level tabs start
at 0.
Corresponds to the JSON property nestingLevel
      5538 5539 5540  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5538 def nesting_level @nesting_level end  | 
  
#parent_tab_id ⇒ String
Optional. The ID of the parent tab. Empty when the current tab is a root-level
tab, which means it doesn't have any parents.
Corresponds to the JSON property parentTabId
      5544 5545 5546  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5544 def parent_tab_id @parent_tab_id end  | 
  
#tab_id ⇒ String
Output only. The ID of the tab. This field can't be changed.
Corresponds to the JSON property tabId
      5549 5550 5551  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5549 def tab_id @tab_id end  | 
  
#title ⇒ String
The user-visible name of the tab.
Corresponds to the JSON property title
      5554 5555 5556  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5554 def title @title end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5561 5562 5563 5564 5565 5566 5567  | 
    
      # File 'lib/google/apis/docs_v1/classes.rb', line 5561 def update!(**args) @index = args[:index] if args.key?(:index) @nesting_level = args[:nesting_level] if args.key?(:nesting_level) @parent_tab_id = args[:parent_tab_id] if args.key?(:parent_tab_id) @tab_id = args[:tab_id] if args.key?(:tab_id) @title = args[:title] if args.key?(:title) end  |