google-cloud-data_labeling-v1beta1 0.3.0 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +929 -257
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +149 -37
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +1 -1
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_services_pb.rb +1 -1
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +2 -2
- data/proto_docs/google/api/field_behavior.rb +7 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d30bb9545a33a0f4ed3dca7b5119723af65256a03e253c0fa1aa37797943d7
|
4
|
+
data.tar.gz: 268ca4506e5d51f958cdc346e7cfe30a234002fab5dee5c2851534892260c6af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ffeb8da25ea11af174ca807bdeea69c9597d0523e8b716697307a486a9fb78aaa521cb276ffb4c0aa2a5f817f3a92116737b7fac9af04e649ff8e06ad6cb50a
|
7
|
+
data.tar.gz: 564be242944ba760b5f5a0c5715f0f6fbb6d3fc97eca62714dbe022bc7814f9e86a30397af172fab6be1b4dd0f64640560395b1f8785d7d8d8aee5e646080a17
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-data_labeling-v1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `DATA_LABELING_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `DATA_LABELING_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/data_labeling/v1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/data_labeling/v1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/data_labeling/v1beta1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/data_labeling/v1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::DataLabeling::V1beta1::CreateDatasetRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_dataset request
|
38
38
|
```
|
39
39
|
|