2016-09-20 18:55:45 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module DatastoreV1
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The request for Datastore.AllocateIds.
|
|
|
|
class AllocateIdsRequest
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. A list of keys with incomplete key paths for which to allocate IDs.
|
2017-08-25 19:54:22 +00:00
|
|
|
# No key may be reserved/read-only.
|
|
|
|
# Corresponds to the JSON property `keys`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
|
|
attr_accessor :keys
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@keys = args[:keys] if args.key?(:keys)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The response for Datastore.AllocateIds.
|
|
|
|
class AllocateIdsResponse
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The keys specified in the request (in the same order), each with its key path
|
|
|
|
# completed with a newly allocated ID.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `keys`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
|
|
attr_accessor :keys
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@keys = args[:keys] if args.key?(:keys)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# An array value.
|
|
|
|
class ArrayValue
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Values in the array. The order of values in an array is preserved as long as
|
|
|
|
# all values have identical settings for 'exclude_from_indexes'.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `values`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Value>]
|
|
|
|
attr_accessor :values
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@values = args[:values] if args.key?(:values)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The request for Datastore.BeginTransaction.
|
|
|
|
class BeginTransactionRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Options for beginning a new transaction. Transactions can be created
|
|
|
|
# explicitly with calls to Datastore.BeginTransaction or implicitly by setting
|
2017-08-25 19:54:22 +00:00
|
|
|
# ReadOptions.new_transaction in read requests.
|
|
|
|
# Corresponds to the JSON property `transactionOptions`
|
|
|
|
# @return [Google::Apis::DatastoreV1::TransactionOptions]
|
|
|
|
attr_accessor :transaction_options
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@transaction_options = args[:transaction_options] if args.key?(:transaction_options)
|
|
|
|
end
|
|
|
|
end
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The response for Datastore.BeginTransaction.
|
|
|
|
class BeginTransactionResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The transaction identifier (always present).
|
|
|
|
# Corresponds to the JSON property `transaction`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :transaction
|
2017-05-26 16:44:32 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@transaction = args[:transaction] if args.key?(:transaction)
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The request for Datastore.Commit.
|
|
|
|
class CommitRequest
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The type of commit to perform. Defaults to `TRANSACTIONAL`.
|
|
|
|
# Corresponds to the JSON property `mode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :mode
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a
|
|
|
|
# single entity are applied in order. The following sequences of mutations
|
|
|
|
# affecting a single entity are not permitted in a single `Commit` request: - `
|
|
|
|
# insert` followed by `insert` - `update` followed by `insert` - `upsert`
|
|
|
|
# followed by `insert` - `delete` followed by `update` When mode is `
|
|
|
|
# NON_TRANSACTIONAL`, no two mutations may affect a single entity.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `mutations`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Mutation>]
|
|
|
|
attr_accessor :mutations
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The identifier of the transaction associated with the commit. A transaction
|
|
|
|
# identifier is returned by a call to Datastore.BeginTransaction.
|
2017-06-14 17:02:03 +00:00
|
|
|
# Corresponds to the JSON property `transaction`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :transaction
|
2017-05-26 16:44:32 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@mode = args[:mode] if args.key?(:mode)
|
|
|
|
@mutations = args[:mutations] if args.key?(:mutations)
|
2017-06-14 17:02:03 +00:00
|
|
|
@transaction = args[:transaction] if args.key?(:transaction)
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The response for Datastore.Commit.
|
|
|
|
class CommitResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The number of index entries updated during the commit, or zero if none were
|
|
|
|
# updated.
|
|
|
|
# Corresponds to the JSON property `indexUpdates`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :index_updates
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The result of performing the mutations. The i-th mutation result corresponds
|
|
|
|
# to the i-th mutation in the request.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `mutationResults`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::MutationResult>]
|
|
|
|
attr_accessor :mutation_results
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@index_updates = args[:index_updates] if args.key?(:index_updates)
|
|
|
|
@mutation_results = args[:mutation_results] if args.key?(:mutation_results)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# A filter that merges multiple other filters using the given operator.
|
|
|
|
class CompositeFilter
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The list of filters to combine. Must contain at least one filter.
|
2017-06-14 17:02:03 +00:00
|
|
|
# Corresponds to the JSON property `filters`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Filter>]
|
|
|
|
attr_accessor :filters
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# The operator for combining multiple filters.
|
|
|
|
# Corresponds to the JSON property `op`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :op
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-06-14 17:02:03 +00:00
|
|
|
@filters = args[:filters] if args.key?(:filters)
|
|
|
|
@op = args[:op] if args.key?(:op)
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
|
|
# messages in your APIs. A typical example is to use it as the request or the
|
|
|
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
|
|
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
|
|
|
# `Empty` is empty JSON object ````.
|
2017-08-25 19:54:22 +00:00
|
|
|
class Empty
|
2017-06-02 06:11:31 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
|
|
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
2017-08-25 19:54:22 +00:00
|
|
|
# message.
|
|
|
|
class Entity
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A unique identifier for an entity. If a key's partition ID or any of its path
|
|
|
|
# kinds or names are reserved/read-only, the key is reserved/read-only. A
|
|
|
|
# reserved/read-only key is forbidden in certain documented contexts.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `key`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
|
|
attr_accessor :key
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The entity's properties. The map's keys are property names. A property name
|
|
|
|
# matching regex `__.*__` is reserved. A reserved property name is forbidden in
|
|
|
|
# certain documented contexts. The name must not contain more than 500
|
|
|
|
# characters. The name cannot be `""`.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `properties`
|
|
|
|
# @return [Hash<String,Google::Apis::DatastoreV1::Value>]
|
|
|
|
attr_accessor :properties
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-05-26 16:44:32 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@key = args[:key] if args.key?(:key)
|
|
|
|
@properties = args[:properties] if args.key?(:properties)
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# The result of fetching an entity from Datastore.
|
|
|
|
class EntityResult
|
2017-05-04 19:35:56 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A cursor that points to the position after the result entity. Set only when
|
|
|
|
# the `EntityResult` is part of a `QueryResultBatch` message.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `cursor`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cursor
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
|
|
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
2017-07-12 20:10:42 +00:00
|
|
|
# message.
|
|
|
|
# Corresponds to the JSON property `entity`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
|
|
attr_accessor :entity
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# The version of the entity, a strictly positive number that monotonically
|
2020-08-18 00:38:22 +00:00
|
|
|
# increases with changes to the entity. This field is set for `FULL` entity
|
|
|
|
# results. For missing entities in `LookupResponse`, this is the version of the
|
|
|
|
# snapshot that was used to look up the entity, and it is always set except for
|
|
|
|
# eventually consistent reads.
|
2017-06-14 17:02:03 +00:00
|
|
|
# Corresponds to the JSON property `version`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :version
|
2017-06-02 06:11:31 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
2017-05-04 19:35:56 +00:00
|
|
|
def update!(**args)
|
2017-06-14 17:02:03 +00:00
|
|
|
@cursor = args[:cursor] if args.key?(:cursor)
|
2017-08-25 19:54:22 +00:00
|
|
|
@entity = args[:entity] if args.key?(:entity)
|
2017-06-14 17:02:03 +00:00
|
|
|
@version = args[:version] if args.key?(:version)
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A holder for any type of filter.
|
|
|
|
class Filter
|
2017-05-04 19:35:56 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A filter that merges multiple other filters using the given operator.
|
|
|
|
# Corresponds to the JSON property `compositeFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::CompositeFilter]
|
|
|
|
attr_accessor :composite_filter
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A filter on a specific property.
|
|
|
|
# Corresponds to the JSON property `propertyFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::PropertyFilter]
|
|
|
|
attr_accessor :property_filter
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@composite_filter = args[:composite_filter] if args.key?(:composite_filter)
|
|
|
|
@property_filter = args[:property_filter] if args.key?(:property_filter)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-03-24 00:35:25 +00:00
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
class GoogleDatastoreAdminV1CommonMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The time the operation ended, either successfully or otherwise.
|
|
|
|
# Corresponds to the JSON property `endTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_time
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The client-assigned labels which were provided when the operation was created.
|
|
|
|
# May also include additional labels.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `labels`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :labels
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The type of the operation. Can be used as a filter in ListOperationsRequest.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `operationType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :operation_type
|
|
|
|
|
|
|
|
# The time that work began on the operation.
|
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
|
|
|
|
|
|
|
# The current state of the Operation.
|
|
|
|
# Corresponds to the JSON property `state`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :state
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@labels = args[:labels] if args.key?(:labels)
|
|
|
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
|
|
@state = args[:state] if args.key?(:state)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2018-03-24 00:35:25 +00:00
|
|
|
class GoogleDatastoreAdminV1EntityFilter
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# If empty, then this represents all kinds.
|
|
|
|
# Corresponds to the JSON property `kinds`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :kinds
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# An empty list represents all namespaces. This is the preferred usage for
|
|
|
|
# projects that don't use namespaces. An empty string element represents the
|
|
|
|
# default namespace. This should be used if the project has data in non-default
|
|
|
|
# namespaces, but doesn't want to include them. Each namespace in this list must
|
|
|
|
# be unique.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `namespaceIds`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :namespace_ids
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kinds = args[:kinds] if args.key?(:kinds)
|
|
|
|
@namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Metadata for ExportEntities operations.
|
|
|
|
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
# Corresponds to the JSON property `common`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata]
|
|
|
|
attr_accessor :common
|
|
|
|
|
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `entityFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
|
|
|
attr_accessor :entity_filter
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Location for the export metadata and data files. This will be the same value
|
|
|
|
# as the google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix field.
|
|
|
|
# The final output location is provided in google.datastore.admin.v1.
|
|
|
|
# ExportEntitiesResponse.output_url.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `outputUrlPrefix`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :output_url_prefix
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressBytes`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress]
|
|
|
|
attr_accessor :progress_bytes
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressEntities`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress]
|
|
|
|
attr_accessor :progress_entities
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@common = args[:common] if args.key?(:common)
|
|
|
|
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
|
|
@output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
|
|
|
|
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
|
|
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The request for google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
|
2018-03-24 00:35:25 +00:00
|
|
|
class GoogleDatastoreAdminV1ExportEntitiesRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `entityFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
|
|
|
attr_accessor :entity_filter
|
|
|
|
|
|
|
|
# Client-assigned labels.
|
|
|
|
# Corresponds to the JSON property `labels`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :labels
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Required. Location for the export metadata and data files. The full resource
|
|
|
|
# URL of the external storage location. Currently, only Google Cloud Storage is
|
|
|
|
# supported. So output_url_prefix should be of the form: `gs://BUCKET_NAME[/
|
|
|
|
# NAMESPACE_PATH]`, where `BUCKET_NAME` is the name of the Cloud Storage bucket
|
|
|
|
# and `NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not
|
|
|
|
# a Cloud Datastore namespace). For more information about Cloud Storage
|
|
|
|
# namespace paths, see [Object name considerations](https://cloud.google.com/
|
|
|
|
# storage/docs/naming#object-considerations). The resulting files will be nested
|
|
|
|
# deeper than the specified URL prefix. The final output URL will be provided in
|
|
|
|
# the google.datastore.admin.v1.ExportEntitiesResponse.output_url field. That
|
|
|
|
# value should be used for subsequent ImportEntities operations. By nesting the
|
|
|
|
# data files deeper, the same Cloud Storage bucket can be used in multiple
|
|
|
|
# ExportEntities operations without conflict.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `outputUrlPrefix`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :output_url_prefix
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
|
|
@labels = args[:labels] if args.key?(:labels)
|
|
|
|
@output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The response for google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
|
2018-03-24 00:35:25 +00:00
|
|
|
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Location of the output metadata file. This can be used to begin an import into
|
|
|
|
# Cloud Datastore (this project or another project). See google.datastore.admin.
|
|
|
|
# v1.ImportEntitiesRequest.input_url. Only present if the operation completed
|
|
|
|
# successfully.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `outputUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :output_url
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@output_url = args[:output_url] if args.key?(:output_url)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Metadata for ImportEntities operations.
|
|
|
|
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
# Corresponds to the JSON property `common`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata]
|
|
|
|
attr_accessor :common
|
|
|
|
|
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `entityFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
|
|
|
attr_accessor :entity_filter
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The location of the import metadata file. This will be the same value as the
|
|
|
|
# google.datastore.admin.v1.ExportEntitiesResponse.output_url field.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `inputUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :input_url
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressBytes`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress]
|
|
|
|
attr_accessor :progress_bytes
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressEntities`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress]
|
|
|
|
attr_accessor :progress_entities
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@common = args[:common] if args.key?(:common)
|
|
|
|
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
|
|
@input_url = args[:input_url] if args.key?(:input_url)
|
|
|
|
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
|
|
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The request for google.datastore.admin.v1.DatastoreAdmin.ImportEntities.
|
2018-03-24 00:35:25 +00:00
|
|
|
class GoogleDatastoreAdminV1ImportEntitiesRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `entityFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
|
|
|
attr_accessor :entity_filter
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. The full resource URL of the external storage location. Currently,
|
2020-08-18 00:38:22 +00:00
|
|
|
# only Google Cloud Storage is supported. So input_url should be of the form: `
|
|
|
|
# gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `
|
|
|
|
# BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an
|
|
|
|
# optional Cloud Storage namespace path (this is not a Cloud Datastore namespace)
|
|
|
|
# , and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the
|
|
|
|
# ExportEntities operation. For more information about Cloud Storage namespace
|
|
|
|
# paths, see [Object name considerations](https://cloud.google.com/storage/docs/
|
|
|
|
# naming#object-considerations). For more information, see google.datastore.
|
|
|
|
# admin.v1.ExportEntitiesResponse.output_url.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `inputUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :input_url
|
|
|
|
|
|
|
|
# Client-assigned labels.
|
|
|
|
# Corresponds to the JSON property `labels`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :labels
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
|
|
@input_url = args[:input_url] if args.key?(:input_url)
|
|
|
|
@labels = args[:labels] if args.key?(:labels)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-07-15 00:38:40 +00:00
|
|
|
# Datastore composite index definition.
|
2018-08-22 21:14:52 +00:00
|
|
|
class GoogleDatastoreAdminV1Index
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `ancestor`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :ancestor
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Output only. The resource ID of the index.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `indexId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :index_id
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. The entity kind to which this index applies.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Output only. Project ID.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `projectId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :project_id
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. An ordered sequence of property names and their index attributes.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `properties`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1IndexedProperty>]
|
|
|
|
attr_accessor :properties
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Output only. The state of the index.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `state`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :state
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
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
|
|
|
|
end
|
|
|
|
|
|
|
|
# Metadata for Index operations.
|
|
|
|
class GoogleDatastoreAdminV1IndexOperationMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
# Corresponds to the JSON property `common`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata]
|
|
|
|
attr_accessor :common
|
|
|
|
|
|
|
|
# The index resource ID that this operation is acting on.
|
|
|
|
# Corresponds to the JSON property `indexId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :index_id
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressEntities`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress]
|
|
|
|
attr_accessor :progress_entities
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@common = args[:common] if args.key?(:common)
|
|
|
|
@index_id = args[:index_id] if args.key?(:index_id)
|
|
|
|
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-12-22 00:36:15 +00:00
|
|
|
# A property of an index.
|
2018-08-22 21:14:52 +00:00
|
|
|
class GoogleDatastoreAdminV1IndexedProperty
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `direction`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :direction
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. The property name to index.
|
2018-08-22 21:14:52 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@direction = args[:direction] if args.key?(:direction)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The response for google.datastore.admin.v1.DatastoreAdmin.ListIndexes.
|
2018-08-22 21:14:52 +00:00
|
|
|
class GoogleDatastoreAdminV1ListIndexesResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The indexes.
|
|
|
|
# Corresponds to the JSON property `indexes`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Index>]
|
|
|
|
attr_accessor :indexes
|
|
|
|
|
|
|
|
# The standard List next-page token.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@indexes = args[:indexes] if args.key?(:indexes)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-03-24 00:35:25 +00:00
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
class GoogleDatastoreAdminV1Progress
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The amount of work that has been completed. Note that this may be greater than
|
|
|
|
# work_estimated.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `workCompleted`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :work_completed
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# An estimate of how much work needs to be performed. May be zero if the work
|
|
|
|
# estimate is unavailable.
|
2018-03-24 00:35:25 +00:00
|
|
|
# Corresponds to the JSON property `workEstimated`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :work_estimated
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@work_completed = args[:work_completed] if args.key?(:work_completed)
|
|
|
|
@work_estimated = args[:work_estimated] if args.key?(:work_estimated)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
class GoogleDatastoreAdminV1beta1CommonMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The time the operation ended, either successfully or otherwise.
|
|
|
|
# Corresponds to the JSON property `endTime`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :end_time
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The client-assigned labels which were provided when the operation was created.
|
|
|
|
# May also include additional labels.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `labels`
|
|
|
|
# @return [Hash<String,String>]
|
|
|
|
attr_accessor :labels
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The type of the operation. Can be used as a filter in ListOperationsRequest.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `operationType`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :operation_type
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The time that work began on the operation.
|
|
|
|
# Corresponds to the JSON property `startTime`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_time
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The current state of the Operation.
|
|
|
|
# Corresponds to the JSON property `state`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :state
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
|
|
@labels = args[:labels] if args.key?(:labels)
|
|
|
|
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
|
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
|
|
@state = args[:state] if args.key?(:state)
|
|
|
|
end
|
|
|
|
end
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-09-08 00:35:46 +00:00
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2017-08-25 19:54:22 +00:00
|
|
|
class GoogleDatastoreAdminV1beta1EntityFilter
|
|
|
|
include Google::Apis::Core::Hashable
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# If empty, then this represents all kinds.
|
|
|
|
# Corresponds to the JSON property `kinds`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :kinds
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# An empty list represents all namespaces. This is the preferred usage for
|
|
|
|
# projects that don't use namespaces. An empty string element represents the
|
|
|
|
# default namespace. This should be used if the project has data in non-default
|
|
|
|
# namespaces, but doesn't want to include them. Each namespace in this list must
|
|
|
|
# be unique.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `namespaceIds`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :namespace_ids
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kinds = args[:kinds] if args.key?(:kinds)
|
|
|
|
@namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
|
|
|
|
end
|
|
|
|
end
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Metadata for ExportEntities operations.
|
|
|
|
class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
# Corresponds to the JSON property `common`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1CommonMetadata]
|
|
|
|
attr_accessor :common
|
|
|
|
|
2017-09-08 00:35:46 +00:00
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `entityFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
|
|
attr_accessor :entity_filter
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Location for the export metadata and data files. This will be the same value
|
|
|
|
# as the google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix
|
|
|
|
# field. The final output location is provided in google.datastore.admin.v1beta1.
|
|
|
|
# ExportEntitiesResponse.output_url.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `outputUrlPrefix`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :output_url_prefix
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressBytes`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
|
|
attr_accessor :progress_bytes
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressEntities`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
|
|
attr_accessor :progress_entities
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-05-04 19:35:56 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@common = args[:common] if args.key?(:common)
|
|
|
|
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
|
|
@output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
|
|
|
|
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
|
|
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The response for google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
|
2017-08-25 19:54:22 +00:00
|
|
|
class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
|
2017-06-02 06:11:31 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Location of the output metadata file. This can be used to begin an import into
|
|
|
|
# Cloud Datastore (this project or another project). See google.datastore.admin.
|
|
|
|
# v1beta1.ImportEntitiesRequest.input_url. Only present if the operation
|
|
|
|
# completed successfully.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `outputUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :output_url
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@output_url = args[:output_url] if args.key?(:output_url)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Metadata for ImportEntities operations.
|
|
|
|
class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Metadata common to all Datastore Admin operations.
|
|
|
|
# Corresponds to the JSON property `common`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1CommonMetadata]
|
|
|
|
attr_accessor :common
|
|
|
|
|
2017-09-08 00:35:46 +00:00
|
|
|
# Identifies a subset of entities in a project. This is specified as
|
|
|
|
# combinations of kinds and namespaces (either or both of which may be all, as
|
2020-08-18 00:38:22 +00:00
|
|
|
# described in the following examples). Example usage: Entire project: kinds=[],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
|
|
|
|
# namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
|
|
|
|
# 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
|
|
|
|
# namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
|
|
|
|
# namespace: kinds=[], namespace_ids=['Baz']
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `entityFilter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
|
|
attr_accessor :entity_filter
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The location of the import metadata file. This will be the same value as the
|
|
|
|
# google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url field.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `inputUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :input_url
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressBytes`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
|
|
attr_accessor :progress_bytes
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
# Corresponds to the JSON property `progressEntities`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1beta1Progress]
|
|
|
|
attr_accessor :progress_entities
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@common = args[:common] if args.key?(:common)
|
|
|
|
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
|
|
@input_url = args[:input_url] if args.key?(:input_url)
|
|
|
|
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
|
|
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Measures the progress of a particular metric.
|
|
|
|
class GoogleDatastoreAdminV1beta1Progress
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The amount of work that has been completed. Note that this may be greater than
|
|
|
|
# work_estimated.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `workCompleted`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Fixnum]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :work_completed
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# An estimate of how much work needs to be performed. May be zero if the work
|
|
|
|
# estimate is unavailable.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `workEstimated`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :work_estimated
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@work_completed = args[:work_completed] if args.key?(:work_completed)
|
|
|
|
@work_estimated = args[:work_estimated] if args.key?(:work_estimated)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The response message for Operations.ListOperations.
|
|
|
|
class GoogleLongrunningListOperationsResponse
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The standard List next-page token.
|
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :next_page_token
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A list of operations that matches the specified filter in the request.
|
|
|
|
# Corresponds to the JSON property `operations`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::GoogleLongrunningOperation>]
|
|
|
|
attr_accessor :operations
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
@operations = args[:operations] if args.key?(:operations)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# This resource represents a long-running operation that is the result of a
|
|
|
|
# network API call.
|
|
|
|
class GoogleLongrunningOperation
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# If the value is `false`, it means the operation is still in progress. If `true`
|
|
|
|
# , the operation is completed, and either `error` or `response` is available.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `done`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :done
|
|
|
|
alias_method :done?, :done
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The `Status` type defines a logical error model that is suitable for different
|
|
|
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
|
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
|
|
# data: error code, error message, and error details. You can find out more
|
|
|
|
# about this error model and how to work with it in the [API Design Guide](https:
|
|
|
|
# //cloud.google.com/apis/design/errors).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `error`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Status]
|
|
|
|
attr_accessor :error
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Service-specific metadata associated with the operation. It typically contains
|
|
|
|
# progress information and common metadata such as create time. Some services
|
|
|
|
# might not provide such metadata. Any method that returns a long-running
|
|
|
|
# operation should document the metadata type, if any.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `metadata`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :metadata
|
|
|
|
|
|
|
|
# The server-assigned name, which is only unique within the same service that
|
2020-08-18 00:38:22 +00:00
|
|
|
# originally returns it. If you use the default HTTP mapping, the `name` should
|
|
|
|
# be a resource name ending with `operations/`unique_id``.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :name
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The normal response of the operation in case of success. If the original
|
|
|
|
# method returns no data on success, such as `Delete`, the response is `google.
|
|
|
|
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
|
|
|
# the response should be the resource. For other methods, the response should
|
|
|
|
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
|
|
|
# example, if the original method name is `TakeSnapshot()`, the inferred
|
|
|
|
# response type is `TakeSnapshotResponse`.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `response`
|
|
|
|
# @return [Hash<String,Object>]
|
|
|
|
attr_accessor :response
|
2017-06-14 17:02:03 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@done = args[:done] if args.key?(:done)
|
|
|
|
@error = args[:error] if args.key?(:error)
|
|
|
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
@response = args[:response] if args.key?(:response)
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
2017-08-25 19:54:22 +00:00
|
|
|
class GqlQuery
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# When false, the query string must not contain any literals and instead must
|
2020-08-18 00:38:22 +00:00
|
|
|
# bind all values. For example, `SELECT * FROM Kind WHERE a = 'string literal'`
|
|
|
|
# is not allowed, while `SELECT * FROM Kind WHERE a = @value` is.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `allowLiterals`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :allow_literals
|
|
|
|
alias_method :allow_literals?, :allow_literals
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# For each non-reserved named binding site in the query string, there must be a
|
|
|
|
# named parameter with that name, but not necessarily the inverse. Key must
|
|
|
|
# match regex `A-Za-z_$*`, must not match regex `__.*__`, and must not be `""`.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `namedBindings`
|
|
|
|
# @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
|
|
attr_accessor :named_bindings
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Numbered binding site @1 references the first numbered parameter, effectively
|
|
|
|
# using 1-based indexing, rather than the usual 0. For each binding site
|
|
|
|
# numbered i in `query_string`, there must be an i-th numbered parameter. The
|
|
|
|
# inverse must also be true.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `positionalBindings`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
|
|
|
|
attr_accessor :positional_bindings
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A string of the format described [here](https://cloud.google.com/datastore/
|
|
|
|
# docs/apis/gql/gql_reference).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `queryString`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :query_string
|
2017-03-31 19:53:27 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@allow_literals = args[:allow_literals] if args.key?(:allow_literals)
|
|
|
|
@named_bindings = args[:named_bindings] if args.key?(:named_bindings)
|
|
|
|
@positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
|
|
|
|
@query_string = args[:query_string] if args.key?(:query_string)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A binding parameter for a GQL query.
|
|
|
|
class GqlQueryParameter
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A query cursor. Query cursors are returned in query result batches.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `cursor`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cursor
|
|
|
|
|
|
|
|
# A message that can hold any of the supported value types and associated
|
|
|
|
# metadata.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Value]
|
|
|
|
attr_accessor :value
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cursor = args[:cursor] if args.key?(:cursor)
|
|
|
|
@value = args[:value] if args.key?(:value)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A unique identifier for an entity. If a key's partition ID or any of its path
|
|
|
|
# kinds or names are reserved/read-only, the key is reserved/read-only. A
|
|
|
|
# reserved/read-only key is forbidden in certain documented contexts.
|
2017-08-25 19:54:22 +00:00
|
|
|
class Key
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A partition ID identifies a grouping of entities. The grouping is always by
|
|
|
|
# project and namespace, however the namespace ID may be empty. A partition ID
|
|
|
|
# contains several dimensions: project ID and namespace ID. Partition dimensions:
|
|
|
|
# - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match
|
|
|
|
# regex `[A-Za-z\d\.\-_]`1,100`` If the value of any dimension matches regex `__.
|
|
|
|
# *__`, the partition is reserved/read-only. A reserved/read-only partition ID
|
|
|
|
# is forbidden in certain documented contexts. Foreign partition IDs (in which
|
|
|
|
# the project ID does not match the context project ID ) are discouraged. Reads
|
|
|
|
# and writes of foreign partition IDs may fail if the project is not in an
|
2017-08-25 19:54:22 +00:00
|
|
|
# active state.
|
|
|
|
# Corresponds to the JSON property `partitionId`
|
|
|
|
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
|
|
attr_accessor :partition_id
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The entity path. An entity path consists of one or more elements composed of a
|
|
|
|
# kind and a string or numerical identifier, which identify entities. The first
|
|
|
|
# element identifies a _root entity_, the second element identifies a _child_ of
|
|
|
|
# the root entity, the third element identifies a child of the second entity,
|
|
|
|
# and so forth. The entities identified by all prefixes of the path are called
|
|
|
|
# the element's _ancestors_. An entity path is always fully complete: *all* of
|
|
|
|
# the entity's ancestors are required to be in the path along with the entity
|
|
|
|
# identifier itself. The only exception is that in some documented cases, the
|
|
|
|
# identifier in the last path element (for the entity) itself may be omitted.
|
|
|
|
# For example, the last path element of the key of `Mutation.insert` may have no
|
|
|
|
# identifier. A path can never be empty, and a path can have at most 100
|
|
|
|
# elements.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `path`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::PathElement>]
|
|
|
|
attr_accessor :path
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
|
|
@path = args[:path] if args.key?(:path)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A representation of a kind.
|
|
|
|
class KindExpression
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The name of the kind.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
feat: Automated regeneration of datastore v1 client (#1294)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-28 02:12:52,590 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-datastore-v1
nothing to commit, working tree clean
2020-10-28 02:12:52,622 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth datastore v1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth datastore v1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.7
Installing tzinfo 1.2.7
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.47.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.0512
Installing mime-types-data 3.2020.0512
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.3
Installing rspec-expectations 3.9.3
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=datastore.v1 --names-out=/workspace/api_names_out.yaml
Loading datastore, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/datastore.v1.json
conflict google/apis/datastore_v1.rb
<is/datastore_v1.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/datastore_v1.rb
identical google/apis/datastore_v1/service.rb
conflict google/apis/datastore_v1/classes.rb
force google/apis/datastore_v1/classes.rb
identical google/apis/datastore_v1/representations.rb
identical /workspace/api_names_out.yaml
2020-10-28 02:13:19,270 synthtool [DEBUG] > Wrote metadata to generated/google/apis/datastore_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/datastore_v1/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/fc014795-ecad-4bb9-a08f-f26793ec33cc/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-28 09:26:02 +00:00
|
|
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
|
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
2020-08-18 00:38:22 +00:00
|
|
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
|
|
|
# within normalized ranges.
|
2017-08-25 19:54:22 +00:00
|
|
|
class LatLng
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
|
|
|
# Corresponds to the JSON property `latitude`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :latitude
|
|
|
|
|
|
|
|
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
|
|
|
# Corresponds to the JSON property `longitude`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :longitude
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@latitude = args[:latitude] if args.key?(:latitude)
|
|
|
|
@longitude = args[:longitude] if args.key?(:longitude)
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# The request for Datastore.Lookup.
|
|
|
|
class LookupRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. Keys of entities to look up.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `keys`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
|
|
attr_accessor :keys
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# The options shared by read requests.
|
|
|
|
# Corresponds to the JSON property `readOptions`
|
|
|
|
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
|
|
attr_accessor :read_options
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@keys = args[:keys] if args.key?(:keys)
|
|
|
|
@read_options = args[:read_options] if args.key?(:read_options)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# The response for Datastore.Lookup.
|
|
|
|
class LookupResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A list of keys that were not looked up due to resource constraints. The order
|
|
|
|
# of results in this field is undefined and has no relation to the order of the
|
|
|
|
# keys in the input.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `deferred`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :deferred
|
|
|
|
|
|
|
|
# Entities found as `ResultType.FULL` entities. The order of results in this
|
2020-08-18 00:38:22 +00:00
|
|
|
# field is undefined and has no relation to the order of the keys in the input.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `found`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
|
|
attr_accessor :found
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Entities not found as `ResultType.KEY_ONLY` entities. The order of results in
|
|
|
|
# this field is undefined and has no relation to the order of the keys in the
|
|
|
|
# input.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `missing`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
|
|
|
attr_accessor :missing
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@deferred = args[:deferred] if args.key?(:deferred)
|
|
|
|
@found = args[:found] if args.key?(:found)
|
|
|
|
@missing = args[:missing] if args.key?(:missing)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A mutation to apply to an entity.
|
|
|
|
class Mutation
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The version of the entity that this mutation is being applied to. If this does
|
|
|
|
# not match the current version on the server, the mutation conflicts.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `baseVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :base_version
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A unique identifier for an entity. If a key's partition ID or any of its path
|
|
|
|
# kinds or names are reserved/read-only, the key is reserved/read-only. A
|
|
|
|
# reserved/read-only key is forbidden in certain documented contexts.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `delete`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
|
|
attr_accessor :delete
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
|
|
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
2017-08-25 19:54:22 +00:00
|
|
|
# message.
|
|
|
|
# Corresponds to the JSON property `insert`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
|
|
attr_accessor :insert
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
|
|
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
2017-08-25 19:54:22 +00:00
|
|
|
# message.
|
|
|
|
# Corresponds to the JSON property `update`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
|
|
attr_accessor :update
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
|
|
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
2017-08-25 19:54:22 +00:00
|
|
|
# message.
|
|
|
|
# Corresponds to the JSON property `upsert`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Entity]
|
|
|
|
attr_accessor :upsert
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@base_version = args[:base_version] if args.key?(:base_version)
|
|
|
|
@delete = args[:delete] if args.key?(:delete)
|
|
|
|
@insert = args[:insert] if args.key?(:insert)
|
|
|
|
@update = args[:update] if args.key?(:update)
|
|
|
|
@upsert = args[:upsert] if args.key?(:upsert)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# The result of applying a mutation.
|
|
|
|
class MutationResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Whether a conflict was detected for this mutation. Always false when a
|
|
|
|
# conflict detection strategy field is not set in the mutation.
|
|
|
|
# Corresponds to the JSON property `conflictDetected`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :conflict_detected
|
|
|
|
alias_method :conflict_detected?, :conflict_detected
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A unique identifier for an entity. If a key's partition ID or any of its path
|
|
|
|
# kinds or names are reserved/read-only, the key is reserved/read-only. A
|
|
|
|
# reserved/read-only key is forbidden in certain documented contexts.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `key`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Key]
|
|
|
|
attr_accessor :key
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The version of the entity on the server after processing the mutation. If the
|
|
|
|
# mutation doesn't change anything on the server, then the version will be the
|
|
|
|
# version of the current entity or, if no entity is present, a version that is
|
|
|
|
# strictly greater than the version of any previous entity and less than the
|
|
|
|
# version of any possible future entity.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `version`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :version
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
|
|
|
|
@key = args[:key] if args.key?(:key)
|
|
|
|
@version = args[:version] if args.key?(:version)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A partition ID identifies a grouping of entities. The grouping is always by
|
|
|
|
# project and namespace, however the namespace ID may be empty. A partition ID
|
|
|
|
# contains several dimensions: project ID and namespace ID. Partition dimensions:
|
|
|
|
# - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match
|
|
|
|
# regex `[A-Za-z\d\.\-_]`1,100`` If the value of any dimension matches regex `__.
|
|
|
|
# *__`, the partition is reserved/read-only. A reserved/read-only partition ID
|
|
|
|
# is forbidden in certain documented contexts. Foreign partition IDs (in which
|
|
|
|
# the project ID does not match the context project ID ) are discouraged. Reads
|
|
|
|
# and writes of foreign partition IDs may fail if the project is not in an
|
2017-08-25 19:54:22 +00:00
|
|
|
# active state.
|
|
|
|
class PartitionId
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# If not empty, the ID of the namespace to which the entities belong.
|
|
|
|
# Corresponds to the JSON property `namespaceId`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :namespace_id
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The ID of the project to which the entities belong.
|
|
|
|
# Corresponds to the JSON property `projectId`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :project_id
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-04-03 20:18:48 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@namespace_id = args[:namespace_id] if args.key?(:namespace_id)
|
|
|
|
@project_id = args[:project_id] if args.key?(:project_id)
|
2017-04-03 20:18:48 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A (kind, ID/name) pair used to construct a key path. If either name or ID is
|
|
|
|
# set, the element is complete. If neither is set, the element is incomplete.
|
2017-06-14 17:02:03 +00:00
|
|
|
class PathElement
|
2017-05-26 16:44:32 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The auto-allocated ID of the entity. Never equal to zero. Values less than
|
|
|
|
# zero are discouraged and may not be supported in the future.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :id
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The kind of the entity. A kind matching regex `__.*__` is reserved/read-only.
|
|
|
|
# A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `""`
|
|
|
|
# .
|
2017-06-14 17:02:03 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The name of the entity. A name matching regex `__.*__` is reserved/read-only.
|
|
|
|
# A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `""`.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
2017-05-26 16:44:32 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-06-14 17:02:03 +00:00
|
|
|
@id = args[:id] if args.key?(:id)
|
2017-08-25 19:54:22 +00:00
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
2017-05-26 16:44:32 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A representation of a property in a projection.
|
|
|
|
class Projection
|
2017-03-30 22:30:51 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A reference to a property relative to the kind expressions.
|
|
|
|
# Corresponds to the JSON property `property`
|
|
|
|
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
|
|
attr_accessor :property
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@property = args[:property] if args.key?(:property)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A filter on a specific property.
|
|
|
|
class PropertyFilter
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The operator to filter by.
|
|
|
|
# Corresponds to the JSON property `op`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :op
|
|
|
|
|
|
|
|
# A reference to a property relative to the kind expressions.
|
|
|
|
# Corresponds to the JSON property `property`
|
|
|
|
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
|
|
attr_accessor :property
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# A message that can hold any of the supported value types and associated
|
|
|
|
# metadata.
|
|
|
|
# Corresponds to the JSON property `value`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Value]
|
|
|
|
attr_accessor :value
|
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@op = args[:op] if args.key?(:op)
|
|
|
|
@property = args[:property] if args.key?(:property)
|
2017-07-12 20:10:42 +00:00
|
|
|
@value = args[:value] if args.key?(:value)
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The desired order for a specific property.
|
|
|
|
class PropertyOrder
|
2017-06-02 06:11:31 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The direction to order by. Defaults to `ASCENDING`.
|
|
|
|
# Corresponds to the JSON property `direction`
|
2017-03-30 22:30:51 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :direction
|
|
|
|
|
|
|
|
# A reference to a property relative to the kind expressions.
|
|
|
|
# Corresponds to the JSON property `property`
|
|
|
|
# @return [Google::Apis::DatastoreV1::PropertyReference]
|
|
|
|
attr_accessor :property
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-06-02 06:11:31 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@direction = args[:direction] if args.key?(:direction)
|
|
|
|
@property = args[:property] if args.key?(:property)
|
2017-06-02 06:11:31 +00:00
|
|
|
end
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A reference to a property relative to the kind expressions.
|
|
|
|
class PropertyReference
|
2017-06-02 06:11:31 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2017-03-30 22:30:51 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The name of the property. If name includes "."s, it may be interpreted as a
|
|
|
|
# property name path.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# A query for entities.
|
|
|
|
class Query
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The properties to make distinct. The query results will contain the first
|
2020-08-18 00:38:22 +00:00
|
|
|
# result for each distinct combination of values for the given properties (if
|
|
|
|
# empty, all results are returned).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `distinctOn`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
|
|
|
|
attr_accessor :distinct_on
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# An ending point for the query results. Query cursors are returned in query
|
|
|
|
# result batches and [can only be used to limit the same query](https://cloud.
|
|
|
|
# google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `endCursor`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_cursor
|
|
|
|
|
|
|
|
# A holder for any type of filter.
|
|
|
|
# Corresponds to the JSON property `filter`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Filter]
|
|
|
|
attr_accessor :filter
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The kinds to query (if empty, returns entities of all kinds). Currently at
|
|
|
|
# most 1 kind may be specified.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::KindExpression>]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The maximum number of results to return. Applies after all other constraints.
|
|
|
|
# Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `limit`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :limit
|
|
|
|
|
|
|
|
# The number of results to skip. Applies before limit, but after all other
|
|
|
|
# constraints. Optional. Must be >= 0 if specified.
|
|
|
|
# Corresponds to the JSON property `offset`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :offset
|
|
|
|
|
|
|
|
# The order to apply to the query results (if empty, order is unspecified).
|
|
|
|
# Corresponds to the JSON property `order`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
|
|
|
|
attr_accessor :order
|
|
|
|
|
|
|
|
# The projection to return. Defaults to returning all properties.
|
|
|
|
# Corresponds to the JSON property `projection`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Projection>]
|
|
|
|
attr_accessor :projection
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A starting point for the query results. Query cursors are returned in query
|
|
|
|
# result batches and [can only be used to continue the same query](https://cloud.
|
|
|
|
# google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `startCursor`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :start_cursor
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2017-05-04 19:35:56 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@distinct_on = args[:distinct_on] if args.key?(:distinct_on)
|
|
|
|
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
|
|
@filter = args[:filter] if args.key?(:filter)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@limit = args[:limit] if args.key?(:limit)
|
|
|
|
@offset = args[:offset] if args.key?(:offset)
|
|
|
|
@order = args[:order] if args.key?(:order)
|
|
|
|
@projection = args[:projection] if args.key?(:projection)
|
|
|
|
@start_cursor = args[:start_cursor] if args.key?(:start_cursor)
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A batch of results produced by a query.
|
|
|
|
class QueryResultBatch
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A cursor that points to the position after the last result in the batch.
|
|
|
|
# Corresponds to the JSON property `endCursor`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :end_cursor
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The result type for every entity in `entity_results`.
|
|
|
|
# Corresponds to the JSON property `entityResultType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :entity_result_type
|
|
|
|
|
|
|
|
# The results for this batch.
|
|
|
|
# Corresponds to the JSON property `entityResults`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Array<Google::Apis::DatastoreV1::EntityResult>]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :entity_results
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The state of the query after the current batch.
|
|
|
|
# Corresponds to the JSON property `moreResults`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :more_results
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A cursor that points to the position after the last skipped result. Will be
|
|
|
|
# set when `skipped_results` != 0.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `skippedCursor`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :skipped_cursor
|
|
|
|
|
|
|
|
# The number of results skipped, typically because of an offset.
|
|
|
|
# Corresponds to the JSON property `skippedResults`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :skipped_results
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The version number of the snapshot this batch was returned from. This applies
|
|
|
|
# to the range of results from the query's `start_cursor` (or the beginning of
|
|
|
|
# the query if no cursor was given) to this batch's `end_cursor` (not the query'
|
|
|
|
# s `end_cursor`). In a single transaction, subsequent query result batches for
|
|
|
|
# the same query can have a greater snapshot version number. Each batch's
|
|
|
|
# snapshot version is valid for all preceding batches. The value will be zero
|
|
|
|
# for eventually consistent queries.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `snapshotVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :snapshot_version
|
2017-05-04 19:35:56 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@end_cursor = args[:end_cursor] if args.key?(:end_cursor)
|
|
|
|
@entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
|
|
|
|
@entity_results = args[:entity_results] if args.key?(:entity_results)
|
|
|
|
@more_results = args[:more_results] if args.key?(:more_results)
|
|
|
|
@skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
|
|
|
|
@skipped_results = args[:skipped_results] if args.key?(:skipped_results)
|
|
|
|
@snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
|
2017-03-31 19:53:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Options specific to read-only transactions.
|
|
|
|
class ReadOnly
|
2016-09-20 18:55:45 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The options shared by read requests.
|
|
|
|
class ReadOptions
|
2017-03-31 19:53:27 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The non-transactional read consistency to use. Cannot be set to `STRONG` for
|
|
|
|
# global queries.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `readConsistency`
|
2017-05-26 16:44:32 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :read_consistency
|
2017-05-26 16:44:32 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The identifier of the transaction in which to read. A transaction identifier
|
|
|
|
# is returned by a call to Datastore.BeginTransaction.
|
2017-07-12 20:10:42 +00:00
|
|
|
# Corresponds to the JSON property `transaction`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :transaction
|
|
|
|
|
2016-09-20 18:55:45 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@read_consistency = args[:read_consistency] if args.key?(:read_consistency)
|
2017-07-12 20:10:42 +00:00
|
|
|
@transaction = args[:transaction] if args.key?(:transaction)
|
2016-09-20 18:55:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Options specific to read / write transactions.
|
|
|
|
class ReadWrite
|
2016-09-20 18:55:45 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The transaction identifier of the transaction being retried.
|
|
|
|
# Corresponds to the JSON property `previousTransaction`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :previous_transaction
|
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@previous_transaction = args[:previous_transaction] if args.key?(:previous_transaction)
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-10-18 00:35:03 +00:00
|
|
|
# The request for Datastore.ReserveIds.
|
|
|
|
class ReserveIdsRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# If not empty, the ID of the database against which to make the request.
|
|
|
|
# Corresponds to the JSON property `databaseId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :database_id
|
|
|
|
|
2019-12-13 00:37:03 +00:00
|
|
|
# Required. A list of keys with complete key paths whose numeric IDs should not
|
2020-08-18 00:38:22 +00:00
|
|
|
# be auto-allocated.
|
2017-10-18 00:35:03 +00:00
|
|
|
# Corresponds to the JSON property `keys`
|
|
|
|
# @return [Array<Google::Apis::DatastoreV1::Key>]
|
|
|
|
attr_accessor :keys
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@database_id = args[:database_id] if args.key?(:database_id)
|
|
|
|
@keys = args[:keys] if args.key?(:keys)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# The response for Datastore.ReserveIds.
|
|
|
|
class ReserveIdsResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The request for Datastore.Rollback.
|
|
|
|
class RollbackRequest
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Required. The transaction identifier, returned by a call to Datastore.
|
|
|
|
# BeginTransaction.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `transaction`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :transaction
|
2017-07-12 20:10:42 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@transaction = args[:transaction] if args.key?(:transaction)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The response for Datastore.Rollback. (an empty message).
|
2017-08-25 19:54:22 +00:00
|
|
|
class RollbackResponse
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2016-09-20 18:55:45 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The request for Datastore.RunQuery.
|
|
|
|
class RunQueryRequest
|
2017-07-12 20:10:42 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `gqlQuery`
|
|
|
|
# @return [Google::Apis::DatastoreV1::GqlQuery]
|
|
|
|
attr_accessor :gql_query
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A partition ID identifies a grouping of entities. The grouping is always by
|
|
|
|
# project and namespace, however the namespace ID may be empty. A partition ID
|
|
|
|
# contains several dimensions: project ID and namespace ID. Partition dimensions:
|
|
|
|
# - May be `""`. - Must be valid UTF-8 bytes. - Must have values that match
|
|
|
|
# regex `[A-Za-z\d\.\-_]`1,100`` If the value of any dimension matches regex `__.
|
|
|
|
# *__`, the partition is reserved/read-only. A reserved/read-only partition ID
|
|
|
|
# is forbidden in certain documented contexts. Foreign partition IDs (in which
|
|
|
|
# the project ID does not match the context project ID ) are discouraged. Reads
|
|
|
|
# and writes of foreign partition IDs may fail if the project is not in an
|
2017-08-25 19:54:22 +00:00
|
|
|
# active state.
|
|
|
|
# Corresponds to the JSON property `partitionId`
|
|
|
|
# @return [Google::Apis::DatastoreV1::PartitionId]
|
|
|
|
attr_accessor :partition_id
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A query for entities.
|
|
|
|
# Corresponds to the JSON property `query`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Query]
|
|
|
|
attr_accessor :query
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The options shared by read requests.
|
|
|
|
# Corresponds to the JSON property `readOptions`
|
|
|
|
# @return [Google::Apis::DatastoreV1::ReadOptions]
|
|
|
|
attr_accessor :read_options
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2016-09-20 18:55:45 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@gql_query = args[:gql_query] if args.key?(:gql_query)
|
|
|
|
@partition_id = args[:partition_id] if args.key?(:partition_id)
|
|
|
|
@query = args[:query] if args.key?(:query)
|
|
|
|
@read_options = args[:read_options] if args.key?(:read_options)
|
2016-09-20 18:55:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The response for Datastore.RunQuery.
|
|
|
|
class RunQueryResponse
|
2016-09-20 18:55:45 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A batch of results produced by a query.
|
|
|
|
# Corresponds to the JSON property `batch`
|
|
|
|
# @return [Google::Apis::DatastoreV1::QueryResultBatch]
|
|
|
|
attr_accessor :batch
|
|
|
|
|
|
|
|
# A query for entities.
|
|
|
|
# Corresponds to the JSON property `query`
|
|
|
|
# @return [Google::Apis::DatastoreV1::Query]
|
|
|
|
attr_accessor :query
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-06-14 17:02:03 +00:00
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@batch = args[:batch] if args.key?(:batch)
|
|
|
|
@query = args[:query] if args.key?(:query)
|
2017-06-14 17:02:03 +00:00
|
|
|
end
|
|
|
|
end
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# The `Status` type defines a logical error model that is suitable for different
|
|
|
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
|
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
|
|
# data: error code, error message, and error details. You can find out more
|
|
|
|
# about this error model and how to work with it in the [API Design Guide](https:
|
|
|
|
# //cloud.google.com/apis/design/errors).
|
2017-08-25 19:54:22 +00:00
|
|
|
class Status
|
2017-06-14 17:02:03 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
2017-06-02 06:11:31 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The status code, which should be an enum value of google.rpc.Code.
|
|
|
|
# Corresponds to the JSON property `code`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :code
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A list of messages that carry the error details. There is a common set of
|
2017-08-25 19:54:22 +00:00
|
|
|
# message types for APIs to use.
|
|
|
|
# Corresponds to the JSON property `details`
|
|
|
|
# @return [Array<Hash<String,Object>>]
|
|
|
|
attr_accessor :details
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A developer-facing error message, which should be in English. Any user-facing
|
|
|
|
# error message should be localized and sent in the google.rpc.Status.details
|
|
|
|
# field, or localized by the client.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `message`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :message
|
2017-03-31 19:53:27 +00:00
|
|
|
|
2016-09-20 18:55:45 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@code = args[:code] if args.key?(:code)
|
|
|
|
@details = args[:details] if args.key?(:details)
|
|
|
|
@message = args[:message] if args.key?(:message)
|
2016-09-20 18:55:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# Options for beginning a new transaction. Transactions can be created
|
|
|
|
# explicitly with calls to Datastore.BeginTransaction or implicitly by setting
|
2017-08-25 19:54:22 +00:00
|
|
|
# ReadOptions.new_transaction in read requests.
|
|
|
|
class TransactionOptions
|
2016-09-20 18:55:45 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Options specific to read-only transactions.
|
|
|
|
# Corresponds to the JSON property `readOnly`
|
|
|
|
# @return [Google::Apis::DatastoreV1::ReadOnly]
|
|
|
|
attr_accessor :read_only
|
|
|
|
|
|
|
|
# Options specific to read / write transactions.
|
|
|
|
# Corresponds to the JSON property `readWrite`
|
|
|
|
# @return [Google::Apis::DatastoreV1::ReadWrite]
|
|
|
|
attr_accessor :read_write
|
2016-09-20 18:55:45 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@read_only = args[:read_only] if args.key?(:read_only)
|
|
|
|
@read_write = args[:read_write] if args.key?(:read_write)
|
2016-09-20 18:55:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A message that can hold any of the supported value types and associated
|
|
|
|
# metadata.
|
|
|
|
class Value
|
2016-09-20 18:55:45 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# An array value.
|
|
|
|
# Corresponds to the JSON property `arrayValue`
|
|
|
|
# @return [Google::Apis::DatastoreV1::ArrayValue]
|
|
|
|
attr_accessor :array_value
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is
|
|
|
|
# false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `blobValue`
|
|
|
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :blob_value
|
2017-07-12 20:10:42 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A boolean value.
|
|
|
|
# Corresponds to the JSON property `booleanValue`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :boolean_value
|
|
|
|
alias_method :boolean_value?, :boolean_value
|
|
|
|
|
|
|
|
# A double value.
|
|
|
|
# Corresponds to the JSON property `doubleValue`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :double_value
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A Datastore data object. An entity is limited to 1 megabyte when stored. That
|
|
|
|
# _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this
|
2017-06-14 17:02:03 +00:00
|
|
|
# message.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `entityValue`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @return [Google::Apis::DatastoreV1::Entity]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :entity_value
|
|
|
|
|
|
|
|
# If the value should be excluded from all indexes including those defined
|
|
|
|
# explicitly.
|
|
|
|
# Corresponds to the JSON property `excludeFromIndexes`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :exclude_from_indexes
|
|
|
|
alias_method :exclude_from_indexes?, :exclude_from_indexes
|
|
|
|
|
feat: Automated regeneration of datastore v1 client (#1294)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-28 02:12:52,590 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-datastore-v1
nothing to commit, working tree clean
2020-10-28 02:12:52,622 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth datastore v1
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth datastore v1
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.7
Installing tzinfo 1.2.7
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching gems 1.2.0
Installing gems 1.2.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.47.0 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.0512
Installing mime-types-data 3.2020.0512
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.9.4
Installing rspec-support 3.9.4
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.3
Installing rspec-expectations 3.9.3
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 31 Gemfile dependencies, 78 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=datastore.v1 --names-out=/workspace/api_names_out.yaml
Loading datastore, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/datastore.v1.json
conflict google/apis/datastore_v1.rb
<is/datastore_v1.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/datastore_v1.rb
identical google/apis/datastore_v1/service.rb
conflict google/apis/datastore_v1/classes.rb
force google/apis/datastore_v1/classes.rb
identical google/apis/datastore_v1/representations.rb
identical /workspace/api_names_out.yaml
2020-10-28 02:13:19,270 synthtool [DEBUG] > Wrote metadata to generated/google/apis/datastore_v1/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/datastore_v1/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/fc014795-ecad-4bb9-a08f-f26793ec33cc/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-28 09:26:02 +00:00
|
|
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
|
|
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
2020-08-18 00:38:22 +00:00
|
|
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
|
|
|
# within normalized ranges.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `geoPointValue`
|
|
|
|
# @return [Google::Apis::DatastoreV1::LatLng]
|
|
|
|
attr_accessor :geo_point_value
|
|
|
|
|
|
|
|
# An integer value.
|
|
|
|
# Corresponds to the JSON property `integerValue`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :integer_value
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A unique identifier for an entity. If a key's partition ID or any of its path
|
|
|
|
# kinds or names are reserved/read-only, the key is reserved/read-only. A
|
|
|
|
# reserved/read-only key is forbidden in certain documented contexts.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `keyValue`
|
2017-06-02 06:11:31 +00:00
|
|
|
# @return [Google::Apis::DatastoreV1::Key]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :key_value
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# The `meaning` field should only be populated for backwards compatibility.
|
|
|
|
# Corresponds to the JSON property `meaning`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :meaning
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# A null value.
|
|
|
|
# Corresponds to the JSON property `nullValue`
|
2017-06-02 06:11:31 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :null_value
|
2016-09-20 18:55:45 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is
|
|
|
|
# indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,
|
|
|
|
# 000 bytes.
|
2017-08-25 19:54:22 +00:00
|
|
|
# Corresponds to the JSON property `stringValue`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [String]
|
2017-08-25 19:54:22 +00:00
|
|
|
attr_accessor :string_value
|
2017-06-14 17:02:03 +00:00
|
|
|
|
2020-08-18 00:38:22 +00:00
|
|
|
# A timestamp value. When stored in the Datastore, precise only to microseconds;
|
2017-08-25 19:54:22 +00:00
|
|
|
# any additional precision is rounded down.
|
|
|
|
# Corresponds to the JSON property `timestampValue`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :timestamp_value
|
2016-09-20 18:55:45 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2017-08-25 19:54:22 +00:00
|
|
|
@array_value = args[:array_value] if args.key?(:array_value)
|
|
|
|
@blob_value = args[:blob_value] if args.key?(:blob_value)
|
|
|
|
@boolean_value = args[:boolean_value] if args.key?(:boolean_value)
|
|
|
|
@double_value = args[:double_value] if args.key?(:double_value)
|
|
|
|
@entity_value = args[:entity_value] if args.key?(:entity_value)
|
|
|
|
@exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
|
|
|
|
@geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
|
|
|
|
@integer_value = args[:integer_value] if args.key?(:integer_value)
|
|
|
|
@key_value = args[:key_value] if args.key?(:key_value)
|
|
|
|
@meaning = args[:meaning] if args.key?(:meaning)
|
|
|
|
@null_value = args[:null_value] if args.key?(:null_value)
|
|
|
|
@string_value = args[:string_value] if args.key?(:string_value)
|
|
|
|
@timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
|
2016-09-20 18:55:45 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|