Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/datastore_v1/classes.rb,
generated/google/apis/datastore_v1/representations.rb,
generated/google/apis/datastore_v1/representations.rb 
Overview
A minimal index definition. Next tag: 8
Instance Attribute Summary collapse
- 
  
    
      #ancestor  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The index's ancestor mode.
 - 
  
    
      #index_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The resource ID of the index.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The entity kind to which this index applies.
 - 
  
    
      #project_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Project ID.
 - 
  
    
      #properties  ⇒ Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An ordered sequence of property names and their index attributes.
 - 
  
    
      #state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The state of the index.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleDatastoreAdminV1Index 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleDatastoreAdminV1Index.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDatastoreAdminV1Index
Returns a new instance of GoogleDatastoreAdminV1Index
      732 733 734  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 732 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#ancestor ⇒ String
The index's ancestor mode.  Must not be ANCESTOR_MODE_UNSPECIFIED.
Required.
Corresponds to the JSON property ancestor
      700 701 702  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 700 def ancestor @ancestor end  | 
  
#index_id ⇒ String
The resource ID of the index.
Output only.
Corresponds to the JSON property indexId
      706 707 708  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 706 def index_id @index_id end  | 
  
#kind ⇒ String
The entity kind to which this index applies.
Required.
Corresponds to the JSON property kind
      712 713 714  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 712 def kind @kind end  | 
  
#project_id ⇒ String
Project ID.
Output only.
Corresponds to the JSON property projectId
      718 719 720  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 718 def project_id @project_id end  | 
  
#properties ⇒ Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>
An ordered sequence of property names and their index attributes.
Required.
Corresponds to the JSON property properties
      724 725 726  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 724 def properties @properties end  | 
  
#state ⇒ String
The state of the index.
Output only.
Corresponds to the JSON property state
      730 731 732  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 730 def state @state end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      737 738 739 740 741 742 743 744  | 
    
      # File 'generated/google/apis/datastore_v1/classes.rb', line 737 def update!(**args) @ancestor = args[:ancestor] if args.key?(:ancestor) @index_id = args[:index_id] if args.key?(:index_id) @kind = args[:kind] if args.key?(:kind) @project_id = args[:project_id] if args.key?(:project_id) @properties = args[:properties] if args.key?(:properties) @state = args[:state] if args.key?(:state) end  |