google-api-client 0.13.4 → 0.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +43 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +4 -3
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +33 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +16 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +10 -1
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -253
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -99
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +12 -6
- data/generated/google/apis/cloudtrace_v2/representations.rb +2 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +72 -15
- data/generated/google/apis/container_v1/representations.rb +7 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +58 -15
- data/generated/google/apis/container_v1beta1/representations.rb +5 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +16 -0
- data/generated/google/apis/content_v2/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +87 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +46 -0
- data/generated/google/apis/datastore_v1beta1.rb +38 -0
- data/generated/google/apis/datastore_v1beta1/classes.rb +567 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +191 -0
- data/generated/google/apis/datastore_v1beta1/service.rb +137 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/service.rb +142 -7
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +6 -0
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +6 -6
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +6 -0
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +6 -6
- data/generated/google/apis/firebaseremoteconfig_v1.rb +32 -0
- data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +180 -0
- data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +87 -0
- data/generated/google/apis/firebaseremoteconfig_v1/service.rb +153 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +444 -18
- data/generated/google/apis/logging_v2/representations.rb +119 -0
- data/generated/google/apis/logging_v2/service.rb +808 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +367 -18
- data/generated/google/apis/logging_v2beta1/representations.rb +88 -0
- data/generated/google/apis/logging_v2beta1/service.rb +4 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1 -254
- data/generated/google/apis/ml_v1/representations.rb +0 -99
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +213 -0
- data/generated/google/apis/monitoring_v3/representations.rb +61 -0
- data/generated/google/apis/monitoring_v3/service.rb +4 -4
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +37 -0
- data/generated/google/apis/people_v1/representations.rb +18 -0
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +13 -3
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +10 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +5 -3
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +48 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +48 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +137 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +62 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +80 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/datastore_v1beta1/service.rb'
|
|
16
|
+
require 'google/apis/datastore_v1beta1/classes.rb'
|
|
17
|
+
require 'google/apis/datastore_v1beta1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Google Cloud Datastore API
|
|
22
|
+
#
|
|
23
|
+
# Accesses the schemaless NoSQL database to provide fully managed, robust,
|
|
24
|
+
# scalable storage for your application.
|
|
25
|
+
#
|
|
26
|
+
# @see https://cloud.google.com/datastore/
|
|
27
|
+
module DatastoreV1beta1
|
|
28
|
+
VERSION = 'V1beta1'
|
|
29
|
+
REVISION = '20170821'
|
|
30
|
+
|
|
31
|
+
# View and manage your data across Google Cloud Platform services
|
|
32
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
33
|
+
|
|
34
|
+
# View and manage your Google Cloud Datastore data
|
|
35
|
+
AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module DatastoreV1beta1
|
|
24
|
+
|
|
25
|
+
# Metadata common to all Datastore Admin operations.
|
|
26
|
+
class GoogleDatastoreAdminV1beta1CommonMetadata
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# The time the operation ended, either successfully or otherwise.
|
|
30
|
+
# Corresponds to the JSON property `endTime`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :end_time
|
|
33
|
+
|
|
34
|
+
# The client-assigned labels which were provided when the operation was
|
|
35
|
+
# created. May also include additional labels.
|
|
36
|
+
# Corresponds to the JSON property `labels`
|
|
37
|
+
# @return [Hash<String,String>]
|
|
38
|
+
attr_accessor :labels
|
|
39
|
+
|
|
40
|
+
# The type of the operation. Can be used as a filter in
|
|
41
|
+
# ListOperationsRequest.
|
|
42
|
+
# Corresponds to the JSON property `operationType`
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :operation_type
|
|
45
|
+
|
|
46
|
+
# The time that work began on the operation.
|
|
47
|
+
# Corresponds to the JSON property `startTime`
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :start_time
|
|
50
|
+
|
|
51
|
+
# The current state of the Operation.
|
|
52
|
+
# Corresponds to the JSON property `state`
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :state
|
|
55
|
+
|
|
56
|
+
def initialize(**args)
|
|
57
|
+
update!(**args)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Update properties of this object
|
|
61
|
+
def update!(**args)
|
|
62
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
63
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
64
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
65
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
66
|
+
@state = args[:state] if args.key?(:state)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
71
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
72
|
+
# described in the following examples).
|
|
73
|
+
# Example usage:
|
|
74
|
+
# Entire project:
|
|
75
|
+
# kinds=[], namespace_ids=[]
|
|
76
|
+
# Kinds Foo and Bar in all namespaces:
|
|
77
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
78
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
79
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
80
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
81
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
82
|
+
# The entire Baz namespace:
|
|
83
|
+
# kinds=[], namespace_ids=['Baz']
|
|
84
|
+
class GoogleDatastoreAdminV1beta1EntityFilter
|
|
85
|
+
include Google::Apis::Core::Hashable
|
|
86
|
+
|
|
87
|
+
# If empty, then this represents all kinds.
|
|
88
|
+
# Corresponds to the JSON property `kinds`
|
|
89
|
+
# @return [Array<String>]
|
|
90
|
+
attr_accessor :kinds
|
|
91
|
+
|
|
92
|
+
# An empty list represents all namespaces. This is the preferred
|
|
93
|
+
# usage for projects that don't use namespaces.
|
|
94
|
+
# An empty string element represents the default namespace. This should be
|
|
95
|
+
# used if the project has data in non-default namespaces, but doesn't want to
|
|
96
|
+
# include them.
|
|
97
|
+
# Each namespace in this list must be unique.
|
|
98
|
+
# Corresponds to the JSON property `namespaceIds`
|
|
99
|
+
# @return [Array<String>]
|
|
100
|
+
attr_accessor :namespace_ids
|
|
101
|
+
|
|
102
|
+
def initialize(**args)
|
|
103
|
+
update!(**args)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Update properties of this object
|
|
107
|
+
def update!(**args)
|
|
108
|
+
@kinds = args[:kinds] if args.key?(:kinds)
|
|
109
|
+
@namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Metadata for ExportEntities operations.
|
|
114
|
+
class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
|
|
115
|
+
include Google::Apis::Core::Hashable
|
|
116
|
+
|
|
117
|
+
# Metadata common to all Datastore Admin operations.
|
|
118
|
+
# Corresponds to the JSON property `common`
|
|
119
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata]
|
|
120
|
+
attr_accessor :common
|
|
121
|
+
|
|
122
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
123
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
124
|
+
# described in the following examples).
|
|
125
|
+
# Example usage:
|
|
126
|
+
# Entire project:
|
|
127
|
+
# kinds=[], namespace_ids=[]
|
|
128
|
+
# Kinds Foo and Bar in all namespaces:
|
|
129
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
130
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
131
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
132
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
133
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
134
|
+
# The entire Baz namespace:
|
|
135
|
+
# kinds=[], namespace_ids=['Baz']
|
|
136
|
+
# Corresponds to the JSON property `entityFilter`
|
|
137
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
138
|
+
attr_accessor :entity_filter
|
|
139
|
+
|
|
140
|
+
# Location for the export metadata and data files. This will be the same
|
|
141
|
+
# value as the
|
|
142
|
+
# google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix
|
|
143
|
+
# field. The final output location is provided in
|
|
144
|
+
# google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.
|
|
145
|
+
# Corresponds to the JSON property `outputUrlPrefix`
|
|
146
|
+
# @return [String]
|
|
147
|
+
attr_accessor :output_url_prefix
|
|
148
|
+
|
|
149
|
+
# Measures the progress of a particular metric.
|
|
150
|
+
# Corresponds to the JSON property `progressBytes`
|
|
151
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
|
|
152
|
+
attr_accessor :progress_bytes
|
|
153
|
+
|
|
154
|
+
# Measures the progress of a particular metric.
|
|
155
|
+
# Corresponds to the JSON property `progressEntities`
|
|
156
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
|
|
157
|
+
attr_accessor :progress_entities
|
|
158
|
+
|
|
159
|
+
def initialize(**args)
|
|
160
|
+
update!(**args)
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Update properties of this object
|
|
164
|
+
def update!(**args)
|
|
165
|
+
@common = args[:common] if args.key?(:common)
|
|
166
|
+
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
167
|
+
@output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
|
|
168
|
+
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
169
|
+
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# The request for
|
|
174
|
+
# google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
|
|
175
|
+
class GoogleDatastoreAdminV1beta1ExportEntitiesRequest
|
|
176
|
+
include Google::Apis::Core::Hashable
|
|
177
|
+
|
|
178
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
179
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
180
|
+
# described in the following examples).
|
|
181
|
+
# Example usage:
|
|
182
|
+
# Entire project:
|
|
183
|
+
# kinds=[], namespace_ids=[]
|
|
184
|
+
# Kinds Foo and Bar in all namespaces:
|
|
185
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
186
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
187
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
188
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
189
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
190
|
+
# The entire Baz namespace:
|
|
191
|
+
# kinds=[], namespace_ids=['Baz']
|
|
192
|
+
# Corresponds to the JSON property `entityFilter`
|
|
193
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
194
|
+
attr_accessor :entity_filter
|
|
195
|
+
|
|
196
|
+
# Client-assigned labels.
|
|
197
|
+
# Corresponds to the JSON property `labels`
|
|
198
|
+
# @return [Hash<String,String>]
|
|
199
|
+
attr_accessor :labels
|
|
200
|
+
|
|
201
|
+
# Location for the export metadata and data files.
|
|
202
|
+
# The full resource URL of the external storage location. Currently, only
|
|
203
|
+
# Google Cloud Storage is supported. So output_url_prefix should be of the
|
|
204
|
+
# form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the
|
|
205
|
+
# name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud
|
|
206
|
+
# Storage namespace path (this is not a Cloud Datastore namespace). For more
|
|
207
|
+
# information about Cloud Storage namespace paths, see
|
|
208
|
+
# [Object name
|
|
209
|
+
# considerations](https://cloud.google.com/storage/docs/naming#object-
|
|
210
|
+
# considerations).
|
|
211
|
+
# The resulting files will be nested deeper than the specified URL prefix.
|
|
212
|
+
# The final output URL will be provided in the
|
|
213
|
+
# google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url
|
|
214
|
+
# field. That value should be used for subsequent ImportEntities operations.
|
|
215
|
+
# By nesting the data files deeper, the same Cloud Storage bucket can be used
|
|
216
|
+
# in multiple ExportEntities operations without conflict.
|
|
217
|
+
# Corresponds to the JSON property `outputUrlPrefix`
|
|
218
|
+
# @return [String]
|
|
219
|
+
attr_accessor :output_url_prefix
|
|
220
|
+
|
|
221
|
+
def initialize(**args)
|
|
222
|
+
update!(**args)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Update properties of this object
|
|
226
|
+
def update!(**args)
|
|
227
|
+
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
228
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
229
|
+
@output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# The response for
|
|
234
|
+
# google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
|
|
235
|
+
class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
|
|
236
|
+
include Google::Apis::Core::Hashable
|
|
237
|
+
|
|
238
|
+
# Location of the output metadata file. This can be used to begin an import
|
|
239
|
+
# into Cloud Datastore (this project or another project). See
|
|
240
|
+
# google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.
|
|
241
|
+
# Only present if the operation completed successfully.
|
|
242
|
+
# Corresponds to the JSON property `outputUrl`
|
|
243
|
+
# @return [String]
|
|
244
|
+
attr_accessor :output_url
|
|
245
|
+
|
|
246
|
+
def initialize(**args)
|
|
247
|
+
update!(**args)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Update properties of this object
|
|
251
|
+
def update!(**args)
|
|
252
|
+
@output_url = args[:output_url] if args.key?(:output_url)
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Metadata for ImportEntities operations.
|
|
257
|
+
class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
|
|
258
|
+
include Google::Apis::Core::Hashable
|
|
259
|
+
|
|
260
|
+
# Metadata common to all Datastore Admin operations.
|
|
261
|
+
# Corresponds to the JSON property `common`
|
|
262
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata]
|
|
263
|
+
attr_accessor :common
|
|
264
|
+
|
|
265
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
266
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
267
|
+
# described in the following examples).
|
|
268
|
+
# Example usage:
|
|
269
|
+
# Entire project:
|
|
270
|
+
# kinds=[], namespace_ids=[]
|
|
271
|
+
# Kinds Foo and Bar in all namespaces:
|
|
272
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
273
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
274
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
275
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
276
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
277
|
+
# The entire Baz namespace:
|
|
278
|
+
# kinds=[], namespace_ids=['Baz']
|
|
279
|
+
# Corresponds to the JSON property `entityFilter`
|
|
280
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
281
|
+
attr_accessor :entity_filter
|
|
282
|
+
|
|
283
|
+
# The location of the import metadata file. This will be the same value as
|
|
284
|
+
# the google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url
|
|
285
|
+
# field.
|
|
286
|
+
# Corresponds to the JSON property `inputUrl`
|
|
287
|
+
# @return [String]
|
|
288
|
+
attr_accessor :input_url
|
|
289
|
+
|
|
290
|
+
# Measures the progress of a particular metric.
|
|
291
|
+
# Corresponds to the JSON property `progressBytes`
|
|
292
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
|
|
293
|
+
attr_accessor :progress_bytes
|
|
294
|
+
|
|
295
|
+
# Measures the progress of a particular metric.
|
|
296
|
+
# Corresponds to the JSON property `progressEntities`
|
|
297
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
|
|
298
|
+
attr_accessor :progress_entities
|
|
299
|
+
|
|
300
|
+
def initialize(**args)
|
|
301
|
+
update!(**args)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Update properties of this object
|
|
305
|
+
def update!(**args)
|
|
306
|
+
@common = args[:common] if args.key?(:common)
|
|
307
|
+
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
308
|
+
@input_url = args[:input_url] if args.key?(:input_url)
|
|
309
|
+
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
|
310
|
+
@progress_entities = args[:progress_entities] if args.key?(:progress_entities)
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
|
|
314
|
+
# The request for
|
|
315
|
+
# google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.
|
|
316
|
+
class GoogleDatastoreAdminV1beta1ImportEntitiesRequest
|
|
317
|
+
include Google::Apis::Core::Hashable
|
|
318
|
+
|
|
319
|
+
# Identifies a subset of entities in a project. This is specified as
|
|
320
|
+
# combinations of kind + namespace (either or both of which may be all, as
|
|
321
|
+
# described in the following examples).
|
|
322
|
+
# Example usage:
|
|
323
|
+
# Entire project:
|
|
324
|
+
# kinds=[], namespace_ids=[]
|
|
325
|
+
# Kinds Foo and Bar in all namespaces:
|
|
326
|
+
# kinds=['Foo', 'Bar'], namespace_ids=[]
|
|
327
|
+
# Kinds Foo and Bar only in the default namespace:
|
|
328
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['']
|
|
329
|
+
# Kinds Foo and Bar in both the default and Baz namespaces:
|
|
330
|
+
# kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
|
|
331
|
+
# The entire Baz namespace:
|
|
332
|
+
# kinds=[], namespace_ids=['Baz']
|
|
333
|
+
# Corresponds to the JSON property `entityFilter`
|
|
334
|
+
# @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
|
|
335
|
+
attr_accessor :entity_filter
|
|
336
|
+
|
|
337
|
+
# The full resource URL of the external storage location. Currently, only
|
|
338
|
+
# Google Cloud Storage is supported. So input_url should be of the form:
|
|
339
|
+
# `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
|
|
340
|
+
# `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
|
|
341
|
+
# an optional Cloud Storage namespace path (this is not a Cloud Datastore
|
|
342
|
+
# namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written
|
|
343
|
+
# by the ExportEntities operation. For more information about Cloud Storage
|
|
344
|
+
# namespace paths, see
|
|
345
|
+
# [Object name
|
|
346
|
+
# considerations](https://cloud.google.com/storage/docs/naming#object-
|
|
347
|
+
# considerations).
|
|
348
|
+
# For more information, see
|
|
349
|
+
# google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.
|
|
350
|
+
# Corresponds to the JSON property `inputUrl`
|
|
351
|
+
# @return [String]
|
|
352
|
+
attr_accessor :input_url
|
|
353
|
+
|
|
354
|
+
# Client-assigned labels.
|
|
355
|
+
# Corresponds to the JSON property `labels`
|
|
356
|
+
# @return [Hash<String,String>]
|
|
357
|
+
attr_accessor :labels
|
|
358
|
+
|
|
359
|
+
def initialize(**args)
|
|
360
|
+
update!(**args)
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Update properties of this object
|
|
364
|
+
def update!(**args)
|
|
365
|
+
@entity_filter = args[:entity_filter] if args.key?(:entity_filter)
|
|
366
|
+
@input_url = args[:input_url] if args.key?(:input_url)
|
|
367
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Measures the progress of a particular metric.
|
|
372
|
+
class GoogleDatastoreAdminV1beta1Progress
|
|
373
|
+
include Google::Apis::Core::Hashable
|
|
374
|
+
|
|
375
|
+
# Note that this may be greater than work_estimated.
|
|
376
|
+
# Corresponds to the JSON property `workCompleted`
|
|
377
|
+
# @return [Fixnum]
|
|
378
|
+
attr_accessor :work_completed
|
|
379
|
+
|
|
380
|
+
# An estimate of how much work needs to be performed. May be zero if the
|
|
381
|
+
# work estimate is unavailable.
|
|
382
|
+
# Corresponds to the JSON property `workEstimated`
|
|
383
|
+
# @return [Fixnum]
|
|
384
|
+
attr_accessor :work_estimated
|
|
385
|
+
|
|
386
|
+
def initialize(**args)
|
|
387
|
+
update!(**args)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Update properties of this object
|
|
391
|
+
def update!(**args)
|
|
392
|
+
@work_completed = args[:work_completed] if args.key?(:work_completed)
|
|
393
|
+
@work_estimated = args[:work_estimated] if args.key?(:work_estimated)
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# This resource represents a long-running operation that is the result of a
|
|
398
|
+
# network API call.
|
|
399
|
+
class GoogleLongrunningOperation
|
|
400
|
+
include Google::Apis::Core::Hashable
|
|
401
|
+
|
|
402
|
+
# If the value is `false`, it means the operation is still in progress.
|
|
403
|
+
# If true, the operation is completed, and either `error` or `response` is
|
|
404
|
+
# available.
|
|
405
|
+
# Corresponds to the JSON property `done`
|
|
406
|
+
# @return [Boolean]
|
|
407
|
+
attr_accessor :done
|
|
408
|
+
alias_method :done?, :done
|
|
409
|
+
|
|
410
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
411
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
412
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
413
|
+
# - Simple to use and understand for most users
|
|
414
|
+
# - Flexible enough to meet unexpected needs
|
|
415
|
+
# # Overview
|
|
416
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
417
|
+
# and error details. The error code should be an enum value of
|
|
418
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
419
|
+
# error message should be a developer-facing English message that helps
|
|
420
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
421
|
+
# error message is needed, put the localized message in the error details or
|
|
422
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
423
|
+
# information about the error. There is a predefined set of error detail types
|
|
424
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
425
|
+
# # Language mapping
|
|
426
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
427
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
428
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
429
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
430
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
431
|
+
# # Other uses
|
|
432
|
+
# The error model and the `Status` message can be used in a variety of
|
|
433
|
+
# environments, either with or without APIs, to provide a
|
|
434
|
+
# consistent developer experience across different environments.
|
|
435
|
+
# Example uses of this error model include:
|
|
436
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
437
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
438
|
+
# errors.
|
|
439
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
440
|
+
# have a `Status` message for error reporting.
|
|
441
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
442
|
+
# `Status` message should be used directly inside batch response, one for
|
|
443
|
+
# each error sub-response.
|
|
444
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
445
|
+
# results in its response, the status of those operations should be
|
|
446
|
+
# represented directly using the `Status` message.
|
|
447
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
448
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
449
|
+
# Corresponds to the JSON property `error`
|
|
450
|
+
# @return [Google::Apis::DatastoreV1beta1::Status]
|
|
451
|
+
attr_accessor :error
|
|
452
|
+
|
|
453
|
+
# Service-specific metadata associated with the operation. It typically
|
|
454
|
+
# contains progress information and common metadata such as create time.
|
|
455
|
+
# Some services might not provide such metadata. Any method that returns a
|
|
456
|
+
# long-running operation should document the metadata type, if any.
|
|
457
|
+
# Corresponds to the JSON property `metadata`
|
|
458
|
+
# @return [Hash<String,Object>]
|
|
459
|
+
attr_accessor :metadata
|
|
460
|
+
|
|
461
|
+
# The server-assigned name, which is only unique within the same service that
|
|
462
|
+
# originally returns it. If you use the default HTTP mapping, the
|
|
463
|
+
# `name` should have the format of `operations/some/unique/name`.
|
|
464
|
+
# Corresponds to the JSON property `name`
|
|
465
|
+
# @return [String]
|
|
466
|
+
attr_accessor :name
|
|
467
|
+
|
|
468
|
+
# The normal response of the operation in case of success. If the original
|
|
469
|
+
# method returns no data on success, such as `Delete`, the response is
|
|
470
|
+
# `google.protobuf.Empty`. If the original method is standard
|
|
471
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
472
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
473
|
+
# is the original method name. For example, if the original method name
|
|
474
|
+
# is `TakeSnapshot()`, the inferred response type is
|
|
475
|
+
# `TakeSnapshotResponse`.
|
|
476
|
+
# Corresponds to the JSON property `response`
|
|
477
|
+
# @return [Hash<String,Object>]
|
|
478
|
+
attr_accessor :response
|
|
479
|
+
|
|
480
|
+
def initialize(**args)
|
|
481
|
+
update!(**args)
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# Update properties of this object
|
|
485
|
+
def update!(**args)
|
|
486
|
+
@done = args[:done] if args.key?(:done)
|
|
487
|
+
@error = args[:error] if args.key?(:error)
|
|
488
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
489
|
+
@name = args[:name] if args.key?(:name)
|
|
490
|
+
@response = args[:response] if args.key?(:response)
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
495
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
496
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
497
|
+
# - Simple to use and understand for most users
|
|
498
|
+
# - Flexible enough to meet unexpected needs
|
|
499
|
+
# # Overview
|
|
500
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
501
|
+
# and error details. The error code should be an enum value of
|
|
502
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
503
|
+
# error message should be a developer-facing English message that helps
|
|
504
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
505
|
+
# error message is needed, put the localized message in the error details or
|
|
506
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
507
|
+
# information about the error. There is a predefined set of error detail types
|
|
508
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
509
|
+
# # Language mapping
|
|
510
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
511
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
512
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
513
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
514
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
515
|
+
# # Other uses
|
|
516
|
+
# The error model and the `Status` message can be used in a variety of
|
|
517
|
+
# environments, either with or without APIs, to provide a
|
|
518
|
+
# consistent developer experience across different environments.
|
|
519
|
+
# Example uses of this error model include:
|
|
520
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
521
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
522
|
+
# errors.
|
|
523
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
524
|
+
# have a `Status` message for error reporting.
|
|
525
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
526
|
+
# `Status` message should be used directly inside batch response, one for
|
|
527
|
+
# each error sub-response.
|
|
528
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
529
|
+
# results in its response, the status of those operations should be
|
|
530
|
+
# represented directly using the `Status` message.
|
|
531
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
532
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
533
|
+
class Status
|
|
534
|
+
include Google::Apis::Core::Hashable
|
|
535
|
+
|
|
536
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
537
|
+
# Corresponds to the JSON property `code`
|
|
538
|
+
# @return [Fixnum]
|
|
539
|
+
attr_accessor :code
|
|
540
|
+
|
|
541
|
+
# A list of messages that carry the error details. There is a common set of
|
|
542
|
+
# message types for APIs to use.
|
|
543
|
+
# Corresponds to the JSON property `details`
|
|
544
|
+
# @return [Array<Hash<String,Object>>]
|
|
545
|
+
attr_accessor :details
|
|
546
|
+
|
|
547
|
+
# A developer-facing error message, which should be in English. Any
|
|
548
|
+
# user-facing error message should be localized and sent in the
|
|
549
|
+
# google.rpc.Status.details field, or localized by the client.
|
|
550
|
+
# Corresponds to the JSON property `message`
|
|
551
|
+
# @return [String]
|
|
552
|
+
attr_accessor :message
|
|
553
|
+
|
|
554
|
+
def initialize(**args)
|
|
555
|
+
update!(**args)
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
# Update properties of this object
|
|
559
|
+
def update!(**args)
|
|
560
|
+
@code = args[:code] if args.key?(:code)
|
|
561
|
+
@details = args[:details] if args.key?(:details)
|
|
562
|
+
@message = args[:message] if args.key?(:message)
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
end
|