google-cloud-automl-v1 1.8.1 → 2.0.0
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/.yardopts +1 -4
- data/LICENSE.md +2 -2
- data/README.md +3 -153
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- metadata +15 -115
- data/AUTHENTICATION.md +0 -122
- data/lib/google/cloud/automl/v1/_helpers.rb +0 -26
- data/lib/google/cloud/automl/v1/annotation_payload_pb.rb +0 -27
- data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +0 -23
- data/lib/google/cloud/automl/v1/automl/client.rb +0 -2351
- data/lib/google/cloud/automl/v1/automl/credentials.rb +0 -51
- data/lib/google/cloud/automl/v1/automl/operations.rb +0 -851
- data/lib/google/cloud/automl/v1/automl/paths.rb +0 -130
- data/lib/google/cloud/automl/v1/automl/rest/client.rb +0 -2182
- data/lib/google/cloud/automl/v1/automl/rest/operations.rb +0 -1095
- data/lib/google/cloud/automl/v1/automl/rest/service_stub.rb +0 -1188
- data/lib/google/cloud/automl/v1/automl/rest.rb +0 -66
- data/lib/google/cloud/automl/v1/automl.rb +0 -69
- data/lib/google/cloud/automl/v1/classification_pb.rb +0 -26
- data/lib/google/cloud/automl/v1/data_items_pb.rb +0 -32
- data/lib/google/cloud/automl/v1/dataset_pb.rb +0 -27
- data/lib/google/cloud/automl/v1/detection_pb.rb +0 -26
- data/lib/google/cloud/automl/v1/geometry_pb.rb +0 -22
- data/lib/google/cloud/automl/v1/image_pb.rb +0 -29
- data/lib/google/cloud/automl/v1/io_pb.rb +0 -30
- data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +0 -29
- data/lib/google/cloud/automl/v1/model_pb.rb +0 -28
- data/lib/google/cloud/automl/v1/operations_pb.rb +0 -37
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +0 -770
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +0 -51
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +0 -851
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +0 -52
- data/lib/google/cloud/automl/v1/prediction_service/rest/client.rb +0 -713
- data/lib/google/cloud/automl/v1/prediction_service/rest/operations.rb +0 -1095
- data/lib/google/cloud/automl/v1/prediction_service/rest/service_stub.rb +0 -205
- data/lib/google/cloud/automl/v1/prediction_service/rest.rb +0 -56
- data/lib/google/cloud/automl/v1/prediction_service.rb +0 -59
- data/lib/google/cloud/automl/v1/prediction_service_pb.rb +0 -33
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +0 -99
- data/lib/google/cloud/automl/v1/rest.rb +0 -38
- data/lib/google/cloud/automl/v1/service_pb.rb +0 -55
- data/lib/google/cloud/automl/v1/service_services_pb.rb +0 -136
- data/lib/google/cloud/automl/v1/text_extraction_pb.rb +0 -25
- data/lib/google/cloud/automl/v1/text_pb.rb +0 -28
- data/lib/google/cloud/automl/v1/text_segment_pb.rb +0 -21
- data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +0 -24
- data/lib/google/cloud/automl/v1/translation_pb.rb +0 -27
- data/lib/google/cloud/automl/v1.rb +0 -46
- data/lib/google-cloud-automl-v1.rb +0 -21
- data/proto_docs/README.md +0 -4
- data/proto_docs/google/api/client.rb +0 -593
- data/proto_docs/google/api/field_behavior.rb +0 -85
- data/proto_docs/google/api/launch_stage.rb +0 -71
- data/proto_docs/google/api/resource.rb +0 -227
- data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +0 -70
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +0 -45
- data/proto_docs/google/cloud/automl/v1/classification.rb +0 -189
- data/proto_docs/google/cloud/automl/v1/data_items.rb +0 -202
- data/proto_docs/google/cloud/automl/v1/dataset.rb +0 -106
- data/proto_docs/google/cloud/automl/v1/detection.rb +0 -97
- data/proto_docs/google/cloud/automl/v1/geometry.rb +0 -53
- data/proto_docs/google/cloud/automl/v1/image.rb +0 -215
- data/proto_docs/google/cloud/automl/v1/io.rb +0 -1345
- data/proto_docs/google/cloud/automl/v1/model.rb +0 -121
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +0 -100
- data/proto_docs/google/cloud/automl/v1/operations.rb +0 -197
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +0 -270
- data/proto_docs/google/cloud/automl/v1/service.rb +0 -326
- data/proto_docs/google/cloud/automl/v1/text.rb +0 -76
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +0 -73
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +0 -44
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +0 -82
- data/proto_docs/google/cloud/automl/v1/translation.rb +0 -79
- data/proto_docs/google/longrunning/operations.rb +0 -191
- data/proto_docs/google/protobuf/any.rb +0 -145
- data/proto_docs/google/protobuf/duration.rb +0 -98
- data/proto_docs/google/protobuf/empty.rb +0 -34
- data/proto_docs/google/protobuf/field_mask.rb +0 -229
- data/proto_docs/google/protobuf/timestamp.rb +0 -127
- data/proto_docs/google/rpc/status.rb +0 -48
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# Copyright 2020 Google LLC
|
|
4
|
-
#
|
|
5
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
# you may not use this file except in compliance with the License.
|
|
7
|
-
# You may obtain a copy of the License at
|
|
8
|
-
#
|
|
9
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
#
|
|
11
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
# See the License for the specific language governing permissions and
|
|
15
|
-
# limitations under the License.
|
|
16
|
-
|
|
17
|
-
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
module Google
|
|
21
|
-
module Cloud
|
|
22
|
-
module AutoML
|
|
23
|
-
module V1
|
|
24
|
-
module AutoML
|
|
25
|
-
# Path helper methods for the AutoMl API.
|
|
26
|
-
module Paths
|
|
27
|
-
##
|
|
28
|
-
# Create a fully-qualified AnnotationSpec resource string.
|
|
29
|
-
#
|
|
30
|
-
# The resource will be in the following format:
|
|
31
|
-
#
|
|
32
|
-
# `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`
|
|
33
|
-
#
|
|
34
|
-
# @param project [String]
|
|
35
|
-
# @param location [String]
|
|
36
|
-
# @param dataset [String]
|
|
37
|
-
# @param annotation_spec [String]
|
|
38
|
-
#
|
|
39
|
-
# @return [::String]
|
|
40
|
-
def annotation_spec_path project:, location:, dataset:, annotation_spec:
|
|
41
|
-
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
-
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
-
raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
|
44
|
-
|
|
45
|
-
"projects/#{project}/locations/#{location}/datasets/#{dataset}/annotationSpecs/#{annotation_spec}"
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
##
|
|
49
|
-
# Create a fully-qualified Dataset resource string.
|
|
50
|
-
#
|
|
51
|
-
# The resource will be in the following format:
|
|
52
|
-
#
|
|
53
|
-
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
|
54
|
-
#
|
|
55
|
-
# @param project [String]
|
|
56
|
-
# @param location [String]
|
|
57
|
-
# @param dataset [String]
|
|
58
|
-
#
|
|
59
|
-
# @return [::String]
|
|
60
|
-
def dataset_path project:, location:, dataset:
|
|
61
|
-
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
62
|
-
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
63
|
-
|
|
64
|
-
"projects/#{project}/locations/#{location}/datasets/#{dataset}"
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
##
|
|
68
|
-
# Create a fully-qualified Location resource string.
|
|
69
|
-
#
|
|
70
|
-
# The resource will be in the following format:
|
|
71
|
-
#
|
|
72
|
-
# `projects/{project}/locations/{location}`
|
|
73
|
-
#
|
|
74
|
-
# @param project [String]
|
|
75
|
-
# @param location [String]
|
|
76
|
-
#
|
|
77
|
-
# @return [::String]
|
|
78
|
-
def location_path project:, location:
|
|
79
|
-
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
80
|
-
|
|
81
|
-
"projects/#{project}/locations/#{location}"
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
##
|
|
85
|
-
# Create a fully-qualified Model resource string.
|
|
86
|
-
#
|
|
87
|
-
# The resource will be in the following format:
|
|
88
|
-
#
|
|
89
|
-
# `projects/{project}/locations/{location}/models/{model}`
|
|
90
|
-
#
|
|
91
|
-
# @param project [String]
|
|
92
|
-
# @param location [String]
|
|
93
|
-
# @param model [String]
|
|
94
|
-
#
|
|
95
|
-
# @return [::String]
|
|
96
|
-
def model_path project:, location:, model:
|
|
97
|
-
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
98
|
-
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
99
|
-
|
|
100
|
-
"projects/#{project}/locations/#{location}/models/#{model}"
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
##
|
|
104
|
-
# Create a fully-qualified ModelEvaluation resource string.
|
|
105
|
-
#
|
|
106
|
-
# The resource will be in the following format:
|
|
107
|
-
#
|
|
108
|
-
# `projects/{project}/locations/{location}/models/{model}/modelEvaluations/{model_evaluation}`
|
|
109
|
-
#
|
|
110
|
-
# @param project [String]
|
|
111
|
-
# @param location [String]
|
|
112
|
-
# @param model [String]
|
|
113
|
-
# @param model_evaluation [String]
|
|
114
|
-
#
|
|
115
|
-
# @return [::String]
|
|
116
|
-
def model_evaluation_path project:, location:, model:, model_evaluation:
|
|
117
|
-
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
118
|
-
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
119
|
-
raise ::ArgumentError, "model cannot contain /" if model.to_s.include? "/"
|
|
120
|
-
|
|
121
|
-
"projects/#{project}/locations/#{location}/models/#{model}/modelEvaluations/#{model_evaluation}"
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
extend self
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
|
-
end
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
end
|