Class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty
- Inherits:
-
Object
- Object
- Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty
- 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
A property of an index.
Instance Attribute Summary collapse
-
#direction ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDatastoreAdminV1IndexedProperty
constructor
A new instance of GoogleDatastoreAdminV1IndexedProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDatastoreAdminV1IndexedProperty
Returns a new instance of GoogleDatastoreAdminV1IndexedProperty.
993 994 995 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 993 def initialize(**args) update!(**args) end |
Instance Attribute Details
#direction ⇒ String
Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
Corresponds to the JSON property direction
986 987 988 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 986 def direction @direction end |
#name ⇒ String
Required. The property name to index.
Corresponds to the JSON property name
991 992 993 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 991 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
998 999 1000 1001 |
# File 'lib/google/apis/datastore_v1/classes.rb', line 998 def update!(**args) @direction = args[:direction] if args.key?(:direction) @name = args[:name] if args.key?(:name) end |