google-cloud-vision 0.32.2 → 0.32.3

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/lib/google/cloud/vision.rb +8 -6
  5. data/lib/google/cloud/vision/v1.rb +8 -6
  6. data/lib/google/cloud/vision/v1/credentials.rb +1 -1
  7. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/geometry.rb +1 -1
  8. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +1 -1
  9. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search.rb +3 -2
  10. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search_service.rb +13 -8
  11. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb +4 -3
  12. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb +1 -1
  13. data/lib/google/cloud/vision/v1/doc/google/longrunning/operations.rb +2 -44
  14. data/lib/google/cloud/vision/v1/doc/google/protobuf/any.rb +3 -2
  15. data/lib/google/cloud/vision/v1/doc/google/protobuf/empty.rb +1 -1
  16. data/lib/google/cloud/vision/v1/doc/google/protobuf/field_mask.rb +19 -27
  17. data/lib/google/cloud/vision/v1/doc/google/protobuf/timestamp.rb +16 -14
  18. data/lib/google/cloud/vision/v1/doc/google/protobuf/wrappers.rb +1 -65
  19. data/lib/google/cloud/vision/v1/doc/google/rpc/status.rb +18 -15
  20. data/lib/google/cloud/vision/v1/doc/google/type/color.rb +8 -3
  21. data/lib/google/cloud/vision/v1/doc/google/type/latlng.rb +1 -35
  22. data/lib/google/cloud/vision/v1/helpers.rb +44 -44
  23. data/lib/google/cloud/vision/v1/image_annotator_client.rb +1 -1
  24. data/lib/google/cloud/vision/v1/product_search_client.rb +102 -50
  25. data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +9 -7
  26. data/lib/google/cloud/vision/v1p3beta1.rb +8 -4
  27. data/lib/google/cloud/vision/v1p3beta1/credentials.rb +1 -1
  28. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/geometry.rb +1 -1
  29. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/image_annotator.rb +1 -1
  30. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search.rb +4 -2
  31. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search_service.rb +12 -7
  32. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/text_annotation.rb +4 -3
  33. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/web_detection.rb +1 -1
  34. data/lib/google/cloud/vision/v1p3beta1/doc/google/longrunning/operations.rb +2 -44
  35. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/any.rb +3 -2
  36. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/empty.rb +1 -1
  37. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/field_mask.rb +19 -27
  38. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/timestamp.rb +16 -14
  39. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/wrappers.rb +1 -65
  40. data/lib/google/cloud/vision/v1p3beta1/doc/google/rpc/status.rb +18 -15
  41. data/lib/google/cloud/vision/v1p3beta1/doc/google/type/color.rb +8 -3
  42. data/lib/google/cloud/vision/v1p3beta1/doc/google/type/latlng.rb +1 -35
  43. data/lib/google/cloud/vision/v1p3beta1/helpers.rb +44 -44
  44. data/lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb +1 -1
  45. data/lib/google/cloud/vision/v1p3beta1/product_search_client.rb +98 -40
  46. data/lib/google/cloud/vision/v1p3beta1/product_search_service_services_pb.rb +9 -5
  47. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52dd46891e2dd5c9808632ba5b9ac31a1365170bea2da85e742a6bcc7d93aa17
4
- data.tar.gz: e1ef13baff8bb0c1d9f7b6fd501300906ef366c829fc213acdd8e735fb6b4751
3
+ metadata.gz: e3e9260f0687fddb06b98ef2fe53379c06b0a3698c0c9f822c058371a63883a0
4
+ data.tar.gz: 22eb45350bd0589357f5d60f6282733f6acd844b56d683da727d4b4d4fc138c0
5
5
  SHA512:
6
- metadata.gz: 1130a631b6b852c00ae75cac33d59a713e122e6ebd14acbbb551a7039b4da5c50fe80bafdf30e39a28f93536a25729d0f0507d60bbe526b6063c8a51c0396e9f
7
- data.tar.gz: 12164c275468ab3331493a60ce1fb65d3748c3c541035c4d0f0b63563caa1623f9e3d76fc93211e13341b3b3a6faf0a82ff89f09f19fcbf0d9c326cac762e9ca
6
+ metadata.gz: 62cd25a84e43db4b7fa3faa122400fd1d22f4e8782562cae2950c3e75dcaae73bd6f604259364cfe58d57a7f81ca317fe4434059fad89eaf384ee5777fcd1dd4
7
+ data.tar.gz: 8f8318a452e72f504726e4e7b1c9cf5fb41f98a2f582e89f32c65c5371117cd97b87a2de0e38d48c8ac214ea6e8a778ceba75415ac06598e6a8e0e471cc4197d
data/.yardopts CHANGED
@@ -7,4 +7,5 @@
7
7
  ./lib/**/*.rb
8
8
  -
9
9
  README.md
10
+ AUTHENTICATION.md
10
11
  LICENSE
@@ -0,0 +1,199 @@
1
+ # Authentication
2
+
3
+ In general, the google-cloud-vision library uses [Service
4
+ Account](https://cloud.google.com/iam/docs/creating-managing-service-accounts)
5
+ credentials to connect to Google Cloud services. When running within [Google
6
+ Cloud Platform environments](#google-cloud-platform-environments)
7
+ the credentials will be discovered automatically. When running on other
8
+ environments, the Service Account credentials can be specified by providing the
9
+ path to the [JSON
10
+ keyfile](https://cloud.google.com/iam/docs/managing-service-account-keys) for
11
+ the account (or the JSON itself) in [environment
12
+ variables](#environment-variables). Additionally, Cloud SDK credentials can also
13
+ be discovered automatically, but this is only recommended during development.
14
+
15
+ ## Quickstart
16
+
17
+ 1. [Create a service account and credentials](#creating-a-service-account).
18
+ 2. Set the [environment variable](#environment-variables).
19
+
20
+ ```sh
21
+ export VISION_CREDENTIALS=/path/to/json`
22
+ ```
23
+
24
+ 3. Initialize the client.
25
+
26
+ ```ruby
27
+ require "google/cloud/vision"
28
+
29
+ client = Google::Cloud::Vision.new
30
+ ```
31
+
32
+ ## Project and Credential Lookup
33
+
34
+ The google-cloud-vision library aims to make authentication
35
+ as simple as possible, and provides several mechanisms to configure your system
36
+ without providing **Project ID** and **Service Account Credentials** directly in
37
+ code.
38
+
39
+ **Project ID** is discovered in the following order:
40
+
41
+ 1. Specify project ID in method arguments
42
+ 2. Specify project ID in configuration
43
+ 3. Discover project ID in environment variables
44
+ 4. Discover GCE project ID
45
+ 5. Discover project ID in credentials JSON
46
+
47
+ **Credentials** are discovered in the following order:
48
+
49
+ 1. Specify credentials in method arguments
50
+ 2. Specify credentials in configuration
51
+ 3. Discover credentials path in environment variables
52
+ 4. Discover credentials JSON in environment variables
53
+ 5. Discover credentials file in the Cloud SDK's path
54
+ 6. Discover GCE credentials
55
+
56
+ ### Google Cloud Platform environments
57
+
58
+ While running on Google Cloud Platform environments such as Google Compute
59
+ Engine, Google App Engine and Google Kubernetes Engine, no extra work is needed.
60
+ The **Project ID** and **Credentials** and are discovered automatically. Code
61
+ should be written as if already authenticated. Just be sure when you [set up the
62
+ GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
63
+ access. For example:
64
+
65
+ * **All APIs**
66
+ * `https://www.googleapis.com/auth/cloud-platform`
67
+ * `https://www.googleapis.com/auth/cloud-platform.read-only`
68
+ * **BigQuery**
69
+ * `https://www.googleapis.com/auth/bigquery`
70
+ * `https://www.googleapis.com/auth/bigquery.insertdata`
71
+ * **Compute Engine**
72
+ * `https://www.googleapis.com/auth/compute`
73
+ * **Datastore**
74
+ * `https://www.googleapis.com/auth/datastore`
75
+ * `https://www.googleapis.com/auth/userinfo.email`
76
+ * **DNS**
77
+ * `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
78
+ * **Pub/Sub**
79
+ * `https://www.googleapis.com/auth/pubsub`
80
+ * **Storage**
81
+ * `https://www.googleapis.com/auth/devstorage.full_control`
82
+ * `https://www.googleapis.com/auth/devstorage.read_only`
83
+ * `https://www.googleapis.com/auth/devstorage.read_write`
84
+
85
+ ### Environment Variables
86
+
87
+ The **Project ID** and **Credentials JSON** can be placed in environment
88
+ variables instead of declaring them directly in code. Each service has its own
89
+ environment variable, allowing for different service accounts to be used for
90
+ different services. (See the READMEs for the individual service gems for
91
+ details.) The path to the **Credentials JSON** file can be stored in the
92
+ environment variable, or the **Credentials JSON** itself can be stored for
93
+ environments such as Docker containers where writing files is difficult or not
94
+ encouraged.
95
+
96
+ The environment variables that google-cloud-vision checks for project ID are:
97
+
98
+ 1. `VISION_PROJECT`
99
+ 2. `GOOGLE_CLOUD_PROJECT`
100
+
101
+ The environment variables that google-cloud-vision checks for credentials are configured on {Google::Cloud::Vision::V1::Credentials}:
102
+
103
+ 1. `VISION_CREDENTIALS` - Path to JSON file, or JSON contents
104
+ 2. `VISION_KEYFILE` - Path to JSON file, or JSON contents
105
+ 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
106
+ 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
107
+ 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
108
+
109
+ ```ruby
110
+ require "google/cloud/vision"
111
+
112
+ ENV["VISION_PROJECT"] = "my-project-id"
113
+ ENV["VISION_CREDENTIALS"] = "path/to/keyfile.json"
114
+
115
+ client = Google::Cloud::Vision.new
116
+ ```
117
+
118
+ ### Configuration
119
+
120
+ The **Project ID** and **Credentials JSON** can be configured instead of placing them in environment variables or providing them as arguments.
121
+
122
+ ```ruby
123
+ require "google/cloud/vision"
124
+
125
+ Google::Cloud::Vision.configure do |config|
126
+ config.project_id = "my-project-id"
127
+ config.credentials = "path/to/keyfile.json"
128
+ end
129
+
130
+ client = Google::Cloud::Vision.new
131
+ ```
132
+
133
+ ### Cloud SDK
134
+
135
+ This option allows for an easy way to authenticate during development. If
136
+ credentials are not provided in code or in environment variables, then Cloud SDK
137
+ credentials are discovered.
138
+
139
+ To configure your system for this, simply:
140
+
141
+ 1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
142
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
143
+ 3. Write code as if already authenticated.
144
+
145
+ **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
146
+ *should* only be used during development.
147
+
148
+ [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
149
+ [dev-console]: https://console.cloud.google.com/project
150
+
151
+ [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
152
+
153
+ [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
154
+ [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
155
+ [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
156
+
157
+ ## Creating a Service Account
158
+
159
+ Google Cloud requires a **Project ID** and **Service Account Credentials** to
160
+ connect to the APIs. You will use the **Project ID** and **JSON key file** to
161
+ connect to most services with google-cloud-vision.
162
+
163
+ If you are not running this client within [Google Cloud Platform
164
+ environments](#google-cloud-platform-environments), you need a Google
165
+ Developers service account.
166
+
167
+ 1. Visit the [Google Developers Console][dev-console].
168
+ 1. Create a new project or click on an existing project.
169
+ 1. Activate the slide-out navigation tray and select **API Manager**. From
170
+ here, you will enable the APIs that your application requires.
171
+
172
+ ![Enable the APIs that your application requires][enable-apis]
173
+
174
+ *Note: You may need to enable billing in order to use these services.*
175
+
176
+ 1. Select **Credentials** from the side navigation.
177
+
178
+ You should see a screen like one of the following.
179
+
180
+ ![Create a new service account][create-new-service-account]
181
+
182
+ ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
183
+
184
+ Find the "Add credentials" drop down and select "Service account" to be
185
+ guided through downloading a new JSON key file.
186
+
187
+ If you want to re-use an existing service account, you can easily generate a
188
+ new key file. Just select the account you wish to re-use, and click "Generate
189
+ new JSON key":
190
+
191
+ ![Re-use an existing service account][reuse-service-account]
192
+
193
+ The key file you download will be used by this library to authenticate API
194
+ requests and should be stored in a secure location.
195
+
196
+ ## Troubleshooting
197
+
198
+ If you're having trouble authenticating you can ask for help by following the
199
+ {file:TROUBLESHOOTING.md Troubleshooting Guide}.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -117,16 +117,18 @@ module Google
117
117
  # Manages Products and ProductSets of reference images for use in product
118
118
  # search. It uses the following resource model:
119
119
  #
120
- # * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet} resources, named
121
- # `projects/*/locations/*/productSets/*`, which acts as a way to put different
122
- # products into groups to limit identification.
120
+ # * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet}
121
+ # resources, named `projects/*/locations/*/productSets/*`, which acts as a way
122
+ # to put different products into groups to limit identification.
123
123
  #
124
124
  # In parallel,
125
125
  #
126
- # * The API has a collection of {Google::Cloud::Vision::V1::Product Product} resources, named
126
+ # * The API has a collection of {Google::Cloud::Vision::V1::Product Product}
127
+ # resources, named
127
128
  # `projects/*/locations/*/products/*`
128
129
  #
129
- # * Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
130
+ # * Each {Google::Cloud::Vision::V1::Product Product} has a collection of
131
+ # {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
130
132
  # `projects/*/locations/*/products/*/referenceImages/*`
131
133
  #
132
134
  # @param version [Symbol, String]
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -106,16 +106,18 @@ module Google
106
106
  # Manages Products and ProductSets of reference images for use in product
107
107
  # search. It uses the following resource model:
108
108
  #
109
- # * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet} resources, named
110
- # `projects/*/locations/*/productSets/*`, which acts as a way to put different
111
- # products into groups to limit identification.
109
+ # * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet}
110
+ # resources, named `projects/*/locations/*/productSets/*`, which acts as a way
111
+ # to put different products into groups to limit identification.
112
112
  #
113
113
  # In parallel,
114
114
  #
115
- # * The API has a collection of {Google::Cloud::Vision::V1::Product Product} resources, named
115
+ # * The API has a collection of {Google::Cloud::Vision::V1::Product Product}
116
+ # resources, named
116
117
  # `projects/*/locations/*/products/*`
117
118
  #
118
- # * Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
119
+ # * Each {Google::Cloud::Vision::V1::Product Product} has a collection of
120
+ # {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
119
121
  # `projects/*/locations/*/products/*/referenceImages/*`
120
122
  #
121
123
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -24,7 +24,8 @@ module Google
24
24
  # Optional. If it is not specified, system discretion will be applied.
25
25
  # @!attribute [rw] product_set
26
26
  # @return [String]
27
- # The resource name of a {Google::Cloud::Vision::V1::ProductSet ProductSet} to be searched for similar images.
27
+ # The resource name of a {Google::Cloud::Vision::V1::ProductSet ProductSet} to
28
+ # be searched for similar images.
28
29
  #
29
30
  # Format is:
30
31
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -423,15 +423,17 @@ module Google
423
423
  # `product-display-name` column refers to
424
424
  # {Google::Cloud::Vision::V1::Product#display_name display_name}, the
425
425
  # `product-category` column refers to
426
- # {Google::Cloud::Vision::V1::Product#product_category product_category}, and the
427
- # `labels` column refers to {Google::Cloud::Vision::V1::Product#product_labels product_labels}.
426
+ # {Google::Cloud::Vision::V1::Product#product_category product_category}, and
427
+ # the `labels` column refers to
428
+ # {Google::Cloud::Vision::V1::Product#product_labels product_labels}.
428
429
  #
429
430
  # The `image-id` column is optional but must be unique if provided. If it is
430
431
  # empty, the system will automatically assign a unique id to the image.
431
432
  #
432
433
  # The `product-display-name` column is optional. If it is empty, the system
433
- # sets the {Google::Cloud::Vision::V1::Product#display_name display_name} field for the product to a
434
- # space (" "). You can update the `display_name` later by using the API.
434
+ # sets the {Google::Cloud::Vision::V1::Product#display_name display_name} field
435
+ # for the product to a space (" "). You can update the `display_name` later
436
+ # by using the API.
435
437
  #
436
438
  # If a `Product` with the specified `product-id` already exists, then the
437
439
  # system ignores the `product-display-name`, `product-category`, and `labels`
@@ -482,8 +484,10 @@ module Google
482
484
  # Response message for the `ImportProductSets` method.
483
485
  #
484
486
  # This message is returned by the
485
- # {Google::Longrunning::Operations::GetOperation} method in the returned
486
- # {Google::Longrunning::Operation#response} field.
487
+ # {Google::Longrunning::Operations::GetOperation}
488
+ # method in the returned
489
+ # {Google::Longrunning::Operation#response}
490
+ # field.
487
491
  # @!attribute [rw] reference_images
488
492
  # @return [Array<Google::Cloud::Vision::V1::ReferenceImage>]
489
493
  # The list of reference_images that are imported successfully.
@@ -510,7 +514,8 @@ module Google
510
514
  # @!attribute [rw] end_time
511
515
  # @return [Google::Protobuf::Timestamp]
512
516
  # The time when the batch request is finished and
513
- # {Google::Longrunning::Operation#done} is set to true.
517
+ # {Google::Longrunning::Operation#done} is
518
+ # set to true.
514
519
  class BatchOperationMetadata
515
520
  # Enumerates the possible states that the batch request can be in.
516
521
  module State
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,8 +22,9 @@ module Google
22
22
  # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
23
23
  # Each structural component, starting from Page, may further have their own
24
24
  # properties. Properties describe detected languages, breaks etc.. Please refer
25
- # to the {Google::Cloud::Vision::V1::TextAnnotation::TextProperty TextAnnotation::TextProperty} message definition below for more
26
- # detail.
25
+ # to the
26
+ # {Google::Cloud::Vision::V1::TextAnnotation::TextProperty TextAnnotation::TextProperty}
27
+ # message definition below for more detail.
27
28
  # @!attribute [rw] pages
28
29
  # @return [Array<Google::Cloud::Vision::V1::Page>]
29
30
  # List of pages detected by OCR.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ module Google
31
31
  # @!attribute [rw] done
32
32
  # @return [true, false]
33
33
  # If the value is `false`, it means the operation is still in progress.
34
- # If true, the operation is completed, and either `error` or `response` is
34
+ # If `true`, the operation is completed, and either `error` or `response` is
35
35
  # available.
36
36
  # @!attribute [rw] error
37
37
  # @return [Google::Rpc::Status]
@@ -47,47 +47,5 @@ module Google
47
47
  # is `TakeSnapshot()`, the inferred response type is
48
48
  # `TakeSnapshotResponse`.
49
49
  class Operation; end
50
-
51
- # The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
52
- # @!attribute [rw] name
53
- # @return [String]
54
- # The name of the operation resource.
55
- class GetOperationRequest; end
56
-
57
- # The request message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
58
- # @!attribute [rw] name
59
- # @return [String]
60
- # The name of the operation collection.
61
- # @!attribute [rw] filter
62
- # @return [String]
63
- # The standard list filter.
64
- # @!attribute [rw] page_size
65
- # @return [Integer]
66
- # The standard list page size.
67
- # @!attribute [rw] page_token
68
- # @return [String]
69
- # The standard list page token.
70
- class ListOperationsRequest; end
71
-
72
- # The response message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
73
- # @!attribute [rw] operations
74
- # @return [Array<Google::Longrunning::Operation>]
75
- # A list of operations that matches the specified filter in the request.
76
- # @!attribute [rw] next_page_token
77
- # @return [String]
78
- # The standard List next-page token.
79
- class ListOperationsResponse; end
80
-
81
- # The request message for {Google::Longrunning::Operations::CancelOperation Operations::CancelOperation}.
82
- # @!attribute [rw] name
83
- # @return [String]
84
- # The name of the operation resource to be cancelled.
85
- class CancelOperationRequest; end
86
-
87
- # The request message for {Google::Longrunning::Operations::DeleteOperation Operations::DeleteOperation}.
88
- # @!attribute [rw] name
89
- # @return [String]
90
- # The name of the operation resource to be deleted.
91
- class DeleteOperationRequest; end
92
50
  end
93
51
  end