google-apis-datastore_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ff029f441c7f8dc2d8090a0581460648973380bb5ffda419f56f9db714066670
4
+ data.tar.gz: 725b9d5d23318394726fa38ff5f2f18f08b29778304b656d0c3ea93f27224b43
5
+ SHA512:
6
+ metadata.gz: 9497ba95ad71ed2addd44e5845662396dc2e9142aae2997525d8ca040297f45c8b9b478d3fcf6028b90a9bbd689612e131e381d422633d7a0ac361d802333a01
7
+ data.tar.gz: 5b3a8862089d32dc378ad206c152df318b4cc6c484c63a8166d3a1dc356ac89d020bc672d441483544151cd938f67d9270b4fa99867f78fe56ad32ebd653ff03
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-datastore_v1beta1
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/datastore_v1beta1/*.rb
9
+ lib/google/apis/datastore_v1beta1.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-datastore_v1beta1
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20200802
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta1 of the Cloud Datastore API
2
+
3
+ This is a simple client library for version V1beta1 of the Cloud Datastore API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/datastore.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-datastore_v1beta1', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-datastore_v1beta1
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/datastore_v1beta1"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::DatastoreV1beta1::DatastoreService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Datastore service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Datastore API, see the {Google::Apis::DatastoreV1beta1::DatastoreService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-datastore_v1beta1`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/datastore/) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
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"
@@ -0,0 +1,40 @@
1
+ # Copyright 2020 Google LLC
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
+ require 'google/apis/datastore_v1beta1/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Datastore API
23
+ #
24
+ # Accesses the schemaless NoSQL database to provide fully managed, robust,
25
+ # scalable storage for your application.
26
+ #
27
+ # @see https://cloud.google.com/datastore/
28
+ module DatastoreV1beta1
29
+ # Version of the Cloud Datastore API this client connects to.
30
+ # This is NOT the gem version.
31
+ VERSION = 'V1beta1'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
+
36
+ # View and manage your Google Cloud Datastore data
37
+ AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,721 @@
1
+ # Copyright 2020 Google LLC
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 GoogleDatastoreAdminV1CommonMetadata
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 created.
35
+ # 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 ListOperationsRequest.
41
+ # Corresponds to the JSON property `operationType`
42
+ # @return [String]
43
+ attr_accessor :operation_type
44
+
45
+ # The time that work began on the operation.
46
+ # Corresponds to the JSON property `startTime`
47
+ # @return [String]
48
+ attr_accessor :start_time
49
+
50
+ # The current state of the Operation.
51
+ # Corresponds to the JSON property `state`
52
+ # @return [String]
53
+ attr_accessor :state
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @end_time = args[:end_time] if args.key?(:end_time)
62
+ @labels = args[:labels] if args.key?(:labels)
63
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
64
+ @start_time = args[:start_time] if args.key?(:start_time)
65
+ @state = args[:state] if args.key?(:state)
66
+ end
67
+ end
68
+
69
+ # Identifies a subset of entities in a project. This is specified as
70
+ # combinations of kinds and namespaces (either or both of which may be all, as
71
+ # described in the following examples). Example usage: Entire project: kinds=[],
72
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
73
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
74
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
75
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
76
+ # namespace: kinds=[], namespace_ids=['Baz']
77
+ class GoogleDatastoreAdminV1EntityFilter
78
+ include Google::Apis::Core::Hashable
79
+
80
+ # If empty, then this represents all kinds.
81
+ # Corresponds to the JSON property `kinds`
82
+ # @return [Array<String>]
83
+ attr_accessor :kinds
84
+
85
+ # An empty list represents all namespaces. This is the preferred usage for
86
+ # projects that don't use namespaces. An empty string element represents the
87
+ # default namespace. This should be used if the project has data in non-default
88
+ # namespaces, but doesn't want to include them. Each namespace in this list must
89
+ # be unique.
90
+ # Corresponds to the JSON property `namespaceIds`
91
+ # @return [Array<String>]
92
+ attr_accessor :namespace_ids
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @kinds = args[:kinds] if args.key?(:kinds)
101
+ @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
102
+ end
103
+ end
104
+
105
+ # Metadata for ExportEntities operations.
106
+ class GoogleDatastoreAdminV1ExportEntitiesMetadata
107
+ include Google::Apis::Core::Hashable
108
+
109
+ # Metadata common to all Datastore Admin operations.
110
+ # Corresponds to the JSON property `common`
111
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata]
112
+ attr_accessor :common
113
+
114
+ # Identifies a subset of entities in a project. This is specified as
115
+ # combinations of kinds and namespaces (either or both of which may be all, as
116
+ # described in the following examples). Example usage: Entire project: kinds=[],
117
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
118
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
119
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
120
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
121
+ # namespace: kinds=[], namespace_ids=['Baz']
122
+ # Corresponds to the JSON property `entityFilter`
123
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter]
124
+ attr_accessor :entity_filter
125
+
126
+ # Location for the export metadata and data files. This will be the same value
127
+ # as the google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix field.
128
+ # The final output location is provided in google.datastore.admin.v1.
129
+ # ExportEntitiesResponse.output_url.
130
+ # Corresponds to the JSON property `outputUrlPrefix`
131
+ # @return [String]
132
+ attr_accessor :output_url_prefix
133
+
134
+ # Measures the progress of a particular metric.
135
+ # Corresponds to the JSON property `progressBytes`
136
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
137
+ attr_accessor :progress_bytes
138
+
139
+ # Measures the progress of a particular metric.
140
+ # Corresponds to the JSON property `progressEntities`
141
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
142
+ attr_accessor :progress_entities
143
+
144
+ def initialize(**args)
145
+ update!(**args)
146
+ end
147
+
148
+ # Update properties of this object
149
+ def update!(**args)
150
+ @common = args[:common] if args.key?(:common)
151
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
152
+ @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
153
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
154
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
155
+ end
156
+ end
157
+
158
+ # The response for google.datastore.admin.v1.DatastoreAdmin.ExportEntities.
159
+ class GoogleDatastoreAdminV1ExportEntitiesResponse
160
+ include Google::Apis::Core::Hashable
161
+
162
+ # Location of the output metadata file. This can be used to begin an import into
163
+ # Cloud Datastore (this project or another project). See google.datastore.admin.
164
+ # v1.ImportEntitiesRequest.input_url. Only present if the operation completed
165
+ # successfully.
166
+ # Corresponds to the JSON property `outputUrl`
167
+ # @return [String]
168
+ attr_accessor :output_url
169
+
170
+ def initialize(**args)
171
+ update!(**args)
172
+ end
173
+
174
+ # Update properties of this object
175
+ def update!(**args)
176
+ @output_url = args[:output_url] if args.key?(:output_url)
177
+ end
178
+ end
179
+
180
+ # Metadata for ImportEntities operations.
181
+ class GoogleDatastoreAdminV1ImportEntitiesMetadata
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # Metadata common to all Datastore Admin operations.
185
+ # Corresponds to the JSON property `common`
186
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata]
187
+ attr_accessor :common
188
+
189
+ # Identifies a subset of entities in a project. This is specified as
190
+ # combinations of kinds and namespaces (either or both of which may be all, as
191
+ # described in the following examples). Example usage: Entire project: kinds=[],
192
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
193
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
194
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
195
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
196
+ # namespace: kinds=[], namespace_ids=['Baz']
197
+ # Corresponds to the JSON property `entityFilter`
198
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1EntityFilter]
199
+ attr_accessor :entity_filter
200
+
201
+ # The location of the import metadata file. This will be the same value as the
202
+ # google.datastore.admin.v1.ExportEntitiesResponse.output_url field.
203
+ # Corresponds to the JSON property `inputUrl`
204
+ # @return [String]
205
+ attr_accessor :input_url
206
+
207
+ # Measures the progress of a particular metric.
208
+ # Corresponds to the JSON property `progressBytes`
209
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
210
+ attr_accessor :progress_bytes
211
+
212
+ # Measures the progress of a particular metric.
213
+ # Corresponds to the JSON property `progressEntities`
214
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
215
+ attr_accessor :progress_entities
216
+
217
+ def initialize(**args)
218
+ update!(**args)
219
+ end
220
+
221
+ # Update properties of this object
222
+ def update!(**args)
223
+ @common = args[:common] if args.key?(:common)
224
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
225
+ @input_url = args[:input_url] if args.key?(:input_url)
226
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
227
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
228
+ end
229
+ end
230
+
231
+ # Metadata for Index operations.
232
+ class GoogleDatastoreAdminV1IndexOperationMetadata
233
+ include Google::Apis::Core::Hashable
234
+
235
+ # Metadata common to all Datastore Admin operations.
236
+ # Corresponds to the JSON property `common`
237
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1CommonMetadata]
238
+ attr_accessor :common
239
+
240
+ # The index resource ID that this operation is acting on.
241
+ # Corresponds to the JSON property `indexId`
242
+ # @return [String]
243
+ attr_accessor :index_id
244
+
245
+ # Measures the progress of a particular metric.
246
+ # Corresponds to the JSON property `progressEntities`
247
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1Progress]
248
+ attr_accessor :progress_entities
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @common = args[:common] if args.key?(:common)
257
+ @index_id = args[:index_id] if args.key?(:index_id)
258
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
259
+ end
260
+ end
261
+
262
+ # Measures the progress of a particular metric.
263
+ class GoogleDatastoreAdminV1Progress
264
+ include Google::Apis::Core::Hashable
265
+
266
+ # The amount of work that has been completed. Note that this may be greater than
267
+ # work_estimated.
268
+ # Corresponds to the JSON property `workCompleted`
269
+ # @return [Fixnum]
270
+ attr_accessor :work_completed
271
+
272
+ # An estimate of how much work needs to be performed. May be zero if the work
273
+ # estimate is unavailable.
274
+ # Corresponds to the JSON property `workEstimated`
275
+ # @return [Fixnum]
276
+ attr_accessor :work_estimated
277
+
278
+ def initialize(**args)
279
+ update!(**args)
280
+ end
281
+
282
+ # Update properties of this object
283
+ def update!(**args)
284
+ @work_completed = args[:work_completed] if args.key?(:work_completed)
285
+ @work_estimated = args[:work_estimated] if args.key?(:work_estimated)
286
+ end
287
+ end
288
+
289
+ # Metadata common to all Datastore Admin operations.
290
+ class GoogleDatastoreAdminV1beta1CommonMetadata
291
+ include Google::Apis::Core::Hashable
292
+
293
+ # The time the operation ended, either successfully or otherwise.
294
+ # Corresponds to the JSON property `endTime`
295
+ # @return [String]
296
+ attr_accessor :end_time
297
+
298
+ # The client-assigned labels which were provided when the operation was created.
299
+ # May also include additional labels.
300
+ # Corresponds to the JSON property `labels`
301
+ # @return [Hash<String,String>]
302
+ attr_accessor :labels
303
+
304
+ # The type of the operation. Can be used as a filter in ListOperationsRequest.
305
+ # Corresponds to the JSON property `operationType`
306
+ # @return [String]
307
+ attr_accessor :operation_type
308
+
309
+ # The time that work began on the operation.
310
+ # Corresponds to the JSON property `startTime`
311
+ # @return [String]
312
+ attr_accessor :start_time
313
+
314
+ # The current state of the Operation.
315
+ # Corresponds to the JSON property `state`
316
+ # @return [String]
317
+ attr_accessor :state
318
+
319
+ def initialize(**args)
320
+ update!(**args)
321
+ end
322
+
323
+ # Update properties of this object
324
+ def update!(**args)
325
+ @end_time = args[:end_time] if args.key?(:end_time)
326
+ @labels = args[:labels] if args.key?(:labels)
327
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
328
+ @start_time = args[:start_time] if args.key?(:start_time)
329
+ @state = args[:state] if args.key?(:state)
330
+ end
331
+ end
332
+
333
+ # Identifies a subset of entities in a project. This is specified as
334
+ # combinations of kinds and namespaces (either or both of which may be all, as
335
+ # described in the following examples). Example usage: Entire project: kinds=[],
336
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
337
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
338
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
339
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
340
+ # namespace: kinds=[], namespace_ids=['Baz']
341
+ class GoogleDatastoreAdminV1beta1EntityFilter
342
+ include Google::Apis::Core::Hashable
343
+
344
+ # If empty, then this represents all kinds.
345
+ # Corresponds to the JSON property `kinds`
346
+ # @return [Array<String>]
347
+ attr_accessor :kinds
348
+
349
+ # An empty list represents all namespaces. This is the preferred usage for
350
+ # projects that don't use namespaces. An empty string element represents the
351
+ # default namespace. This should be used if the project has data in non-default
352
+ # namespaces, but doesn't want to include them. Each namespace in this list must
353
+ # be unique.
354
+ # Corresponds to the JSON property `namespaceIds`
355
+ # @return [Array<String>]
356
+ attr_accessor :namespace_ids
357
+
358
+ def initialize(**args)
359
+ update!(**args)
360
+ end
361
+
362
+ # Update properties of this object
363
+ def update!(**args)
364
+ @kinds = args[:kinds] if args.key?(:kinds)
365
+ @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
366
+ end
367
+ end
368
+
369
+ # Metadata for ExportEntities operations.
370
+ class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
371
+ include Google::Apis::Core::Hashable
372
+
373
+ # Metadata common to all Datastore Admin operations.
374
+ # Corresponds to the JSON property `common`
375
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata]
376
+ attr_accessor :common
377
+
378
+ # Identifies a subset of entities in a project. This is specified as
379
+ # combinations of kinds and namespaces (either or both of which may be all, as
380
+ # described in the following examples). Example usage: Entire project: kinds=[],
381
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
382
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
383
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
384
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
385
+ # namespace: kinds=[], namespace_ids=['Baz']
386
+ # Corresponds to the JSON property `entityFilter`
387
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
388
+ attr_accessor :entity_filter
389
+
390
+ # Location for the export metadata and data files. This will be the same value
391
+ # as the google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix
392
+ # field. The final output location is provided in google.datastore.admin.v1beta1.
393
+ # ExportEntitiesResponse.output_url.
394
+ # Corresponds to the JSON property `outputUrlPrefix`
395
+ # @return [String]
396
+ attr_accessor :output_url_prefix
397
+
398
+ # Measures the progress of a particular metric.
399
+ # Corresponds to the JSON property `progressBytes`
400
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
401
+ attr_accessor :progress_bytes
402
+
403
+ # Measures the progress of a particular metric.
404
+ # Corresponds to the JSON property `progressEntities`
405
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
406
+ attr_accessor :progress_entities
407
+
408
+ def initialize(**args)
409
+ update!(**args)
410
+ end
411
+
412
+ # Update properties of this object
413
+ def update!(**args)
414
+ @common = args[:common] if args.key?(:common)
415
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
416
+ @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
417
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
418
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
419
+ end
420
+ end
421
+
422
+ # The request for google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
423
+ class GoogleDatastoreAdminV1beta1ExportEntitiesRequest
424
+ include Google::Apis::Core::Hashable
425
+
426
+ # Identifies a subset of entities in a project. This is specified as
427
+ # combinations of kinds and namespaces (either or both of which may be all, as
428
+ # described in the following examples). Example usage: Entire project: kinds=[],
429
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
430
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
431
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
432
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
433
+ # namespace: kinds=[], namespace_ids=['Baz']
434
+ # Corresponds to the JSON property `entityFilter`
435
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
436
+ attr_accessor :entity_filter
437
+
438
+ # Client-assigned labels.
439
+ # Corresponds to the JSON property `labels`
440
+ # @return [Hash<String,String>]
441
+ attr_accessor :labels
442
+
443
+ # Location for the export metadata and data files. The full resource URL of the
444
+ # external storage location. Currently, only Google Cloud Storage is supported.
445
+ # So output_url_prefix should be of the form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`
446
+ # , where `BUCKET_NAME` is the name of the Cloud Storage bucket and `
447
+ # NAMESPACE_PATH` is an optional Cloud Storage namespace path (this is not a
448
+ # Cloud Datastore namespace). For more information about Cloud Storage namespace
449
+ # paths, see [Object name considerations](https://cloud.google.com/storage/docs/
450
+ # naming#object-considerations). The resulting files will be nested deeper than
451
+ # the specified URL prefix. The final output URL will be provided in the google.
452
+ # datastore.admin.v1beta1.ExportEntitiesResponse.output_url field. That value
453
+ # should be used for subsequent ImportEntities operations. By nesting the data
454
+ # files deeper, the same Cloud Storage bucket can be used in multiple
455
+ # ExportEntities operations without conflict.
456
+ # Corresponds to the JSON property `outputUrlPrefix`
457
+ # @return [String]
458
+ attr_accessor :output_url_prefix
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
467
+ @labels = args[:labels] if args.key?(:labels)
468
+ @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
469
+ end
470
+ end
471
+
472
+ # The response for google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
473
+ class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
474
+ include Google::Apis::Core::Hashable
475
+
476
+ # Location of the output metadata file. This can be used to begin an import into
477
+ # Cloud Datastore (this project or another project). See google.datastore.admin.
478
+ # v1beta1.ImportEntitiesRequest.input_url. Only present if the operation
479
+ # completed successfully.
480
+ # Corresponds to the JSON property `outputUrl`
481
+ # @return [String]
482
+ attr_accessor :output_url
483
+
484
+ def initialize(**args)
485
+ update!(**args)
486
+ end
487
+
488
+ # Update properties of this object
489
+ def update!(**args)
490
+ @output_url = args[:output_url] if args.key?(:output_url)
491
+ end
492
+ end
493
+
494
+ # Metadata for ImportEntities operations.
495
+ class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
496
+ include Google::Apis::Core::Hashable
497
+
498
+ # Metadata common to all Datastore Admin operations.
499
+ # Corresponds to the JSON property `common`
500
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata]
501
+ attr_accessor :common
502
+
503
+ # Identifies a subset of entities in a project. This is specified as
504
+ # combinations of kinds and namespaces (either or both of which may be all, as
505
+ # described in the following examples). Example usage: Entire project: kinds=[],
506
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
507
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
508
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
509
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
510
+ # namespace: kinds=[], namespace_ids=['Baz']
511
+ # Corresponds to the JSON property `entityFilter`
512
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
513
+ attr_accessor :entity_filter
514
+
515
+ # The location of the import metadata file. This will be the same value as the
516
+ # google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url field.
517
+ # Corresponds to the JSON property `inputUrl`
518
+ # @return [String]
519
+ attr_accessor :input_url
520
+
521
+ # Measures the progress of a particular metric.
522
+ # Corresponds to the JSON property `progressBytes`
523
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
524
+ attr_accessor :progress_bytes
525
+
526
+ # Measures the progress of a particular metric.
527
+ # Corresponds to the JSON property `progressEntities`
528
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress]
529
+ attr_accessor :progress_entities
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @common = args[:common] if args.key?(:common)
538
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
539
+ @input_url = args[:input_url] if args.key?(:input_url)
540
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
541
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
542
+ end
543
+ end
544
+
545
+ # The request for google.datastore.admin.v1beta1.DatastoreAdmin.ImportEntities.
546
+ class GoogleDatastoreAdminV1beta1ImportEntitiesRequest
547
+ include Google::Apis::Core::Hashable
548
+
549
+ # Identifies a subset of entities in a project. This is specified as
550
+ # combinations of kinds and namespaces (either or both of which may be all, as
551
+ # described in the following examples). Example usage: Entire project: kinds=[],
552
+ # namespace_ids=[] Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'],
553
+ # namespace_ids=[] Kinds Foo and Bar only in the default namespace: kinds=['Foo',
554
+ # 'Bar'], namespace_ids=[''] Kinds Foo and Bar in both the default and Baz
555
+ # namespaces: kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz'] The entire Baz
556
+ # namespace: kinds=[], namespace_ids=['Baz']
557
+ # Corresponds to the JSON property `entityFilter`
558
+ # @return [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter]
559
+ attr_accessor :entity_filter
560
+
561
+ # The full resource URL of the external storage location. Currently, only Google
562
+ # Cloud Storage is supported. So input_url should be of the form: `gs://
563
+ # BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where `BUCKET_NAME`
564
+ # is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is an optional
565
+ # Cloud Storage namespace path (this is not a Cloud Datastore namespace), and `
566
+ # OVERALL_EXPORT_METADATA_FILE` is the metadata file written by the
567
+ # ExportEntities operation. For more information about Cloud Storage namespace
568
+ # paths, see [Object name considerations](https://cloud.google.com/storage/docs/
569
+ # naming#object-considerations). For more information, see google.datastore.
570
+ # admin.v1beta1.ExportEntitiesResponse.output_url.
571
+ # Corresponds to the JSON property `inputUrl`
572
+ # @return [String]
573
+ attr_accessor :input_url
574
+
575
+ # Client-assigned labels.
576
+ # Corresponds to the JSON property `labels`
577
+ # @return [Hash<String,String>]
578
+ attr_accessor :labels
579
+
580
+ def initialize(**args)
581
+ update!(**args)
582
+ end
583
+
584
+ # Update properties of this object
585
+ def update!(**args)
586
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
587
+ @input_url = args[:input_url] if args.key?(:input_url)
588
+ @labels = args[:labels] if args.key?(:labels)
589
+ end
590
+ end
591
+
592
+ # Measures the progress of a particular metric.
593
+ class GoogleDatastoreAdminV1beta1Progress
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # The amount of work that has been completed. Note that this may be greater than
597
+ # work_estimated.
598
+ # Corresponds to the JSON property `workCompleted`
599
+ # @return [Fixnum]
600
+ attr_accessor :work_completed
601
+
602
+ # An estimate of how much work needs to be performed. May be zero if the work
603
+ # estimate is unavailable.
604
+ # Corresponds to the JSON property `workEstimated`
605
+ # @return [Fixnum]
606
+ attr_accessor :work_estimated
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @work_completed = args[:work_completed] if args.key?(:work_completed)
615
+ @work_estimated = args[:work_estimated] if args.key?(:work_estimated)
616
+ end
617
+ end
618
+
619
+ # This resource represents a long-running operation that is the result of a
620
+ # network API call.
621
+ class GoogleLongrunningOperation
622
+ include Google::Apis::Core::Hashable
623
+
624
+ # If the value is `false`, it means the operation is still in progress. If `true`
625
+ # , the operation is completed, and either `error` or `response` is available.
626
+ # Corresponds to the JSON property `done`
627
+ # @return [Boolean]
628
+ attr_accessor :done
629
+ alias_method :done?, :done
630
+
631
+ # The `Status` type defines a logical error model that is suitable for different
632
+ # programming environments, including REST APIs and RPC APIs. It is used by [
633
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
634
+ # data: error code, error message, and error details. You can find out more
635
+ # about this error model and how to work with it in the [API Design Guide](https:
636
+ # //cloud.google.com/apis/design/errors).
637
+ # Corresponds to the JSON property `error`
638
+ # @return [Google::Apis::DatastoreV1beta1::Status]
639
+ attr_accessor :error
640
+
641
+ # Service-specific metadata associated with the operation. It typically contains
642
+ # progress information and common metadata such as create time. Some services
643
+ # might not provide such metadata. Any method that returns a long-running
644
+ # operation should document the metadata type, if any.
645
+ # Corresponds to the JSON property `metadata`
646
+ # @return [Hash<String,Object>]
647
+ attr_accessor :metadata
648
+
649
+ # The server-assigned name, which is only unique within the same service that
650
+ # originally returns it. If you use the default HTTP mapping, the `name` should
651
+ # be a resource name ending with `operations/`unique_id``.
652
+ # Corresponds to the JSON property `name`
653
+ # @return [String]
654
+ attr_accessor :name
655
+
656
+ # The normal response of the operation in case of success. If the original
657
+ # method returns no data on success, such as `Delete`, the response is `google.
658
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
659
+ # the response should be the resource. For other methods, the response should
660
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
661
+ # example, if the original method name is `TakeSnapshot()`, the inferred
662
+ # response type is `TakeSnapshotResponse`.
663
+ # Corresponds to the JSON property `response`
664
+ # @return [Hash<String,Object>]
665
+ attr_accessor :response
666
+
667
+ def initialize(**args)
668
+ update!(**args)
669
+ end
670
+
671
+ # Update properties of this object
672
+ def update!(**args)
673
+ @done = args[:done] if args.key?(:done)
674
+ @error = args[:error] if args.key?(:error)
675
+ @metadata = args[:metadata] if args.key?(:metadata)
676
+ @name = args[:name] if args.key?(:name)
677
+ @response = args[:response] if args.key?(:response)
678
+ end
679
+ end
680
+
681
+ # The `Status` type defines a logical error model that is suitable for different
682
+ # programming environments, including REST APIs and RPC APIs. It is used by [
683
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
684
+ # data: error code, error message, and error details. You can find out more
685
+ # about this error model and how to work with it in the [API Design Guide](https:
686
+ # //cloud.google.com/apis/design/errors).
687
+ class Status
688
+ include Google::Apis::Core::Hashable
689
+
690
+ # The status code, which should be an enum value of google.rpc.Code.
691
+ # Corresponds to the JSON property `code`
692
+ # @return [Fixnum]
693
+ attr_accessor :code
694
+
695
+ # A list of messages that carry the error details. There is a common set of
696
+ # message types for APIs to use.
697
+ # Corresponds to the JSON property `details`
698
+ # @return [Array<Hash<String,Object>>]
699
+ attr_accessor :details
700
+
701
+ # A developer-facing error message, which should be in English. Any user-facing
702
+ # error message should be localized and sent in the google.rpc.Status.details
703
+ # field, or localized by the client.
704
+ # Corresponds to the JSON property `message`
705
+ # @return [String]
706
+ attr_accessor :message
707
+
708
+ def initialize(**args)
709
+ update!(**args)
710
+ end
711
+
712
+ # Update properties of this object
713
+ def update!(**args)
714
+ @code = args[:code] if args.key?(:code)
715
+ @details = args[:details] if args.key?(:details)
716
+ @message = args[:message] if args.key?(:message)
717
+ end
718
+ end
719
+ end
720
+ end
721
+ end