Autogenerated update (2018-03-24)
Update: - container_v1 - datastore_v1 - datastore_v1beta1 - datastore_v1beta3 - firestore_v1beta1 - gmail_v1
This commit is contained in:
1 parent
4a402cf1bf
commit
a7b3825916
19 files changed
+3797
-117
No files matched your search
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180223'
|
||||
REVISION = '20180308'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -355,6 +355,10 @@ module Google
|
||||
class CancelOperationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :operation_id, as: 'operationId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -395,6 +399,7 @@ module Google
|
||||
property :label_fingerprint, as: 'labelFingerprint'
|
||||
property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
|
||||
|
||||
property :location, as: 'location'
|
||||
collection :locations, as: 'locations'
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation
|
||||
@@ -444,6 +449,10 @@ module Google
|
||||
class CompleteIpRotationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -452,14 +461,21 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster, as: 'cluster', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
|
||||
|
||||
property :parent, as: 'parent'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
property :parent, as: 'parent'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -663,6 +679,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :detail, as: 'detail'
|
||||
property :end_time, as: 'endTime'
|
||||
property :location, as: 'location'
|
||||
property :name, as: 'name'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :self_link, as: 'selfLink'
|
||||
@@ -677,6 +694,11 @@ module Google
|
||||
class RollbackNodePoolUpgradeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :node_pool_id, as: 'nodePoolId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -696,43 +718,67 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetLabelsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :label_fingerprint, as: 'labelFingerprint'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
hash :resource_labels, as: 'resourceLabels'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetLegacyAbacRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :enabled, as: 'enabled'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetLocationsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
collection :locations, as: 'locations'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetLoggingServiceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :logging_service, as: 'loggingService'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetMaintenancePolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :maintenance_policy, as: 'maintenancePolicy', class: Google::Apis::ContainerV1::MaintenancePolicy, decorator: Google::Apis::ContainerV1::MaintenancePolicy::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -740,23 +786,35 @@ module Google
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action, as: 'action'
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :update, as: 'update', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
|
||||
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetMonitoringServiceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :monitoring_service, as: 'monitoringService'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetNetworkPolicyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :network_policy, as: 'networkPolicy', class: Google::Apis::ContainerV1::NetworkPolicy, decorator: Google::Apis::ContainerV1::NetworkPolicy::Representation
|
||||
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -765,50 +823,82 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
|
||||
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :node_pool_id, as: 'nodePoolId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetNodePoolManagementRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :node_pool_id, as: 'nodePoolId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class SetNodePoolSizeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :node_count, as: 'nodeCount'
|
||||
property :node_pool_id, as: 'nodePoolId'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class StartIpRotationRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :update, as: 'update', class: Google::Apis::ContainerV1::ClusterUpdate, decorator: Google::Apis::ContainerV1::ClusterUpdate::Representation
|
||||
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateMasterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :master_version, as: 'masterVersion'
|
||||
property :name, as: 'name'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
|
||||
class UpdateNodePoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cluster_id, as: 'clusterId'
|
||||
property :image_type, as: 'imageType'
|
||||
property :name, as: 'name'
|
||||
property :node_pool_id, as: 'nodePoolId'
|
||||
property :node_version, as: 'nodeVersion'
|
||||
property :project_id, as: 'projectId'
|
||||
property :zone, as: 'zone'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171024'
|
||||
REVISION = '20180321'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -343,6 +343,378 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# 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
|
||||
|
||||
# The client-assigned labels which were provided when the operation was
|
||||
# created. May also include additional labels.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The type of the operation. Can be used as a filter in
|
||||
# ListOperationsRequest.
|
||||
# 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
|
||||
# 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']
|
||||
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
|
||||
|
||||
# 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.
|
||||
# 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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# 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.
|
||||
# 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
|
||||
|
||||
# The request for
|
||||
# google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
|
||||
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
|
||||
# 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']
|
||||
# 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
|
||||
|
||||
# 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.
|
||||
# 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
|
||||
|
||||
# The response for
|
||||
# google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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.
|
||||
# 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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# The location of the import metadata file. This will be the same value as
|
||||
# the google.datastore.admin.v1.ExportEntitiesResponse.output_url field.
|
||||
# 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
|
||||
|
||||
# The request for
|
||||
# google.datastore.admin.v1.DatastoreAdmin.ImportEntities.
|
||||
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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# The full resource URL of the external storage location. Currently, 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.
|
||||
# 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
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount of work that has been completed. Note that this may be greater
|
||||
# than work_estimated.
|
||||
# Corresponds to the JSON property `workCompleted`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :work_completed
|
||||
|
||||
# An estimate of how much work needs to be performed. May be zero if the
|
||||
# work estimate is unavailable.
|
||||
# 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
|
||||
|
||||
# Metadata common to all Datastore Admin operations.
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -94,6 +94,54 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1CommonMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1EntityFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -419,6 +467,90 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1CommonMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
hash :labels, as: 'labels'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :start_time, as: 'startTime'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1EntityFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :kinds, as: 'kinds'
|
||||
collection :namespace_ids, as: 'namespaceIds'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :common, as: 'common', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata::Representation
|
||||
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :output_url_prefix, as: 'outputUrlPrefix'
|
||||
property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
hash :labels, as: 'labels'
|
||||
property :output_url_prefix, as: 'outputUrlPrefix'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :output_url, as: 'outputUrl'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :common, as: 'common', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1CommonMetadata::Representation
|
||||
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :input_url, as: 'inputUrl'
|
||||
property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :input_url, as: 'inputUrl'
|
||||
hash :labels, as: 'labels'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :work_completed, :numeric_string => true, as: 'workCompleted'
|
||||
property :work_estimated, :numeric_string => true, as: 'workEstimated'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -149,6 +149,83 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Exports a copy of all or a subset of entities from Google Cloud Datastore
|
||||
# to another storage system, such as Google Cloud Storage. Recent updates to
|
||||
# entities may not be reflected in the export. The export occurs in the
|
||||
# background and its progress can be monitored and managed via the
|
||||
# Operation resource that is created. The output of an export may only be
|
||||
# used once the associated operation is done. If an export operation is
|
||||
# cancelled before completion it may leave partial data behind in Google
|
||||
# Cloud Storage.
|
||||
# @param [String] project_id
|
||||
# Project ID against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ExportEntitiesRequest] google_datastore_admin_v1_export_entities_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def export_project(project_id, google_datastore_admin_v1_export_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:export', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ExportEntitiesRequest::Representation
|
||||
command.request_object = google_datastore_admin_v1_export_entities_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Imports entities into Google Cloud Datastore. Existing entities with the
|
||||
# same key are overwritten. The import occurs in the background and its
|
||||
# progress can be monitored and managed via the Operation resource that is
|
||||
# created. If an ImportEntities operation is cancelled, it is possible
|
||||
# that a subset of the data has already been imported to Cloud Datastore.
|
||||
# @param [String] project_id
|
||||
# Project ID against which to make the request.
|
||||
# @param [Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ImportEntitiesRequest] google_datastore_admin_v1_import_entities_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DatastoreV1::GoogleLongrunningOperation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def import_project(project_id, google_datastore_admin_v1_import_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}:import', options)
|
||||
command.request_representation = Google::Apis::DatastoreV1::GoogleDatastoreAdminV1ImportEntitiesRequest::Representation
|
||||
command.request_object = google_datastore_admin_v1_import_entities_request_object
|
||||
command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation
|
||||
command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Looks up entities by key.
|
||||
# @param [String] project_id
|
||||
# The ID of the project against which to make the request.
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20170904'
|
||||
REVISION = '20180321'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -22,6 +22,261 @@ module Google
|
||||
module Apis
|
||||
module DatastoreV1beta1
|
||||
|
||||
# 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
|
||||
|
||||
# The client-assigned labels which were provided when the operation was
|
||||
# created. May also include additional labels.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The type of the operation. Can be used as a filter in
|
||||
# ListOperationsRequest.
|
||||
# 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
|
||||
# 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']
|
||||
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
|
||||
|
||||
# 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.
|
||||
# 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::DatastoreV1beta1::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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# 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.
|
||||
# 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::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
|
||||
attr_accessor :progress_bytes
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
# Corresponds to the JSON property `progressEntities`
|
||||
# @return [Google::Apis::DatastoreV1beta1::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
|
||||
|
||||
# The response for
|
||||
# google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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.
|
||||
# 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::DatastoreV1beta1::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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# The location of the import metadata file. This will be the same value as
|
||||
# the google.datastore.admin.v1.ExportEntitiesResponse.output_url field.
|
||||
# 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::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
|
||||
attr_accessor :progress_bytes
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
# Corresponds to the JSON property `progressEntities`
|
||||
# @return [Google::Apis::DatastoreV1beta1::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
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount of work that has been completed. Note that this may be greater
|
||||
# than work_estimated.
|
||||
# Corresponds to the JSON property `workCompleted`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :work_completed
|
||||
|
||||
# An estimate of how much work needs to be performed. May be zero if the
|
||||
# work estimate is unavailable.
|
||||
# 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
|
||||
|
||||
# Metadata common to all Datastore Admin operations.
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -22,6 +22,42 @@ module Google
|
||||
module Apis
|
||||
module DatastoreV1beta1
|
||||
|
||||
class GoogleDatastoreAdminV1CommonMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1EntityFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -82,6 +118,70 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1CommonMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
hash :labels, as: 'labels'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :start_time, as: 'startTime'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1EntityFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :kinds, as: 'kinds'
|
||||
collection :namespace_ids, as: 'namespaceIds'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata::Representation
|
||||
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :output_url_prefix, as: 'outputUrlPrefix'
|
||||
property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :output_url, as: 'outputUrl'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata::Representation
|
||||
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :input_url, as: 'inputUrl'
|
||||
property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :work_completed, :numeric_string => true, as: 'workCompleted'
|
||||
property :work_estimated, :numeric_string => true, as: 'workEstimated'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -26,7 +26,7 @@ module Google
|
||||
# @see https://cloud.google.com/datastore/
|
||||
module DatastoreV1beta3
|
||||
VERSION = 'V1beta3'
|
||||
REVISION = '20171024'
|
||||
REVISION = '20180321'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -324,6 +324,261 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# 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
|
||||
|
||||
# The client-assigned labels which were provided when the operation was
|
||||
# created. May also include additional labels.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# The type of the operation. Can be used as a filter in
|
||||
# ListOperationsRequest.
|
||||
# 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
|
||||
# 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']
|
||||
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
|
||||
|
||||
# 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.
|
||||
# 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::DatastoreV1beta3::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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# 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.
|
||||
# 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::DatastoreV1beta3::GoogleDatastoreAdminV1Progress]
|
||||
attr_accessor :progress_bytes
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
# Corresponds to the JSON property `progressEntities`
|
||||
# @return [Google::Apis::DatastoreV1beta3::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
|
||||
|
||||
# The response for
|
||||
# google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# 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.
|
||||
# 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::DatastoreV1beta3::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
|
||||
# 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']
|
||||
# Corresponds to the JSON property `entityFilter`
|
||||
# @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter]
|
||||
attr_accessor :entity_filter
|
||||
|
||||
# The location of the import metadata file. This will be the same value as
|
||||
# the google.datastore.admin.v1.ExportEntitiesResponse.output_url field.
|
||||
# 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::DatastoreV1beta3::GoogleDatastoreAdminV1Progress]
|
||||
attr_accessor :progress_bytes
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
# Corresponds to the JSON property `progressEntities`
|
||||
# @return [Google::Apis::DatastoreV1beta3::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
|
||||
|
||||
# Measures the progress of a particular metric.
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The amount of work that has been completed. Note that this may be greater
|
||||
# than work_estimated.
|
||||
# Corresponds to the JSON property `workCompleted`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :work_completed
|
||||
|
||||
# An estimate of how much work needs to be performed. May be zero if the
|
||||
# work estimate is unavailable.
|
||||
# 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
|
||||
|
||||
# Metadata common to all Datastore Admin operations.
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -88,6 +88,42 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1CommonMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1EntityFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -389,6 +425,70 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1CommonMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
hash :labels, as: 'labels'
|
||||
property :operation_type, as: 'operationType'
|
||||
property :start_time, as: 'startTime'
|
||||
property :state, as: 'state'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1EntityFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :kinds, as: 'kinds'
|
||||
collection :namespace_ids, as: 'namespaceIds'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :common, as: 'common', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata::Representation
|
||||
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :output_url_prefix, as: 'outputUrlPrefix'
|
||||
property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ExportEntitiesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :output_url, as: 'outputUrl'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1ImportEntitiesMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :common, as: 'common', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1CommonMetadata::Representation
|
||||
|
||||
property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1EntityFilter::Representation
|
||||
|
||||
property :input_url, as: 'inputUrl'
|
||||
property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress, decorator: Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1Progress::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1Progress
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :work_completed, :numeric_string => true, as: 'workCompleted'
|
||||
property :work_estimated, :numeric_string => true, as: 'workEstimated'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleDatastoreAdminV1beta1CommonMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://cloud.google.com/firestore
|
||||
module FirestoreV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20180124'
|
||||
REVISION = '20180321'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
@@ -358,7 +358,7 @@ module Google
|
||||
attr_accessor :name
|
||||
|
||||
# Output only. The time at which the document was last changed.
|
||||
# This value is initally set to the `create_time` then increases
|
||||
# This value is initially set to the `create_time` then increases
|
||||
# monotonically with each change to the document. It can also be
|
||||
# compared to values from other documents and the `read_time` of a query.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
|
||||
@@ -25,7 +25,7 @@ module Google
|
||||
# @see https://developers.google.com/gmail/api/
|
||||
module GmailV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180131'
|
||||
REVISION = '20180319'
|
||||
|
||||
# Read, send, delete, and manage your email
|
||||
AUTH_SCOPE = 'https://mail.google.com/'
|
||||
|
||||
@@ -1147,7 +1147,8 @@ module Google
|
||||
# A name that appears in the "From:" header for mail sent using this alias. For
|
||||
# custom "from" addresses, when this is empty, Gmail will populate the "From:"
|
||||
# header with the name that is used for the primary address associated with the
|
||||
# account.
|
||||
# account. If the admin has disabled the ability for users to update their name
|
||||
# format, requests to update this field for the primary login will silently fail.
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
Reference in new issue
Block a user