Class: Google::Apis::FirestoreV1beta1::Index
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::FirestoreV1beta1::Index
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1beta1/classes.rb,
 generated/google/apis/firestore_v1beta1/representations.rb,
 generated/google/apis/firestore_v1beta1/representations.rb
Overview
An index definition.
Instance Attribute Summary collapse
- 
  
    
      #collection_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The collection ID to which this index applies. 
- 
  
    
      #fields  ⇒ Array<Google::Apis::FirestoreV1beta1::IndexField> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The fields to index. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The resource name of the index. 
- 
  
    
      #state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The state of the index. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Index 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Index. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Index
Returns a new instance of Index
| 742 743 744 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 742 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#collection_id ⇒ String
The collection ID to which this index applies. Required.
Corresponds to the JSON property collectionId
| 723 724 725 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 723 def collection_id @collection_id end | 
#fields ⇒ Array<Google::Apis::FirestoreV1beta1::IndexField>
The fields to index.
Corresponds to the JSON property fields
| 728 729 730 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 728 def fields @fields end | 
#name ⇒ String
The resource name of the index.
Output only.
Corresponds to the JSON property name
| 734 735 736 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 734 def name @name end | 
#state ⇒ String
The state of the index.
Output only.
Corresponds to the JSON property state
| 740 741 742 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 740 def state @state end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 747 748 749 750 751 752 | # File 'generated/google/apis/firestore_v1beta1/classes.rb', line 747 def update!(**args) @collection_id = args[:collection_id] if args.key?(:collection_id) @fields = args[:fields] if args.key?(:fields) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |