Class: Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1Index
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1beta1/classes.rb,
lib/google/apis/firestore_v1beta1/representations.rb,
lib/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::GoogleFirestoreAdminV1beta1IndexField>
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) ⇒ GoogleFirestoreAdminV1beta1Index
constructor
A new instance of GoogleFirestoreAdminV1beta1Index.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFirestoreAdminV1beta1Index
Returns a new instance of GoogleFirestoreAdminV1beta1Index.
1087 1088 1089 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1087 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
1070 1071 1072 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1070 def collection_id @collection_id end |
#fields ⇒ Array<Google::Apis::FirestoreV1beta1::GoogleFirestoreAdminV1beta1IndexField>
The fields to index.
Corresponds to the JSON property fields
1075 1076 1077 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1075 def fields @fields end |
#name ⇒ String
The resource name of the index. Output only.
Corresponds to the JSON property name
1080 1081 1082 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1080 def name @name end |
#state ⇒ String
The state of the index. Output only.
Corresponds to the JSON property state
1085 1086 1087 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1085 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1092 1093 1094 1095 1096 1097 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1092 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 |