Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/representations.rb more...
Overview
Datastore composite index definition.
Instance Attribute Summary collapse
-
#ancestor ⇒ String
Required.
-
#index_id ⇒ String
Output only.
-
#kind ⇒ String
Required.
-
#project_id ⇒ String
Output only.
-
#properties ⇒ Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>
Required.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDatastoreAdminV1Index
constructor
A new instance of GoogleDatastoreAdminV1Index.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDatastoreAdminV1Index
Returns a new instance of GoogleDatastoreAdminV1Index.
1088 1089 1090 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1088 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ancestor ⇒ String
Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
Corresponds to the JSON property ancestor
1060 1061 1062 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1060 def ancestor @ancestor end |
#index_id ⇒ String
Output only. The resource ID of the index.
Corresponds to the JSON property indexId
1065 1066 1067 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1065 def index_id @index_id end |
#kind ⇒ String
Required. The entity kind to which this index applies.
Corresponds to the JSON property kind
1070 1071 1072 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1070 def kind @kind end |
#project_id ⇒ String
Output only. Project ID.
Corresponds to the JSON property projectId
1075 1076 1077 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1075 def project_id @project_id end |
#properties ⇒ Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>
Required. An ordered sequence of property names and their index attributes.
Requires: * A maximum of 100 properties.
Corresponds to the JSON property properties
1081 1082 1083 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1081 def properties @properties end |
#state ⇒ String
Output only. The state of the index.
Corresponds to the JSON property state
1086 1087 1088 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1086 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 1093 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 |