google-cloud-ai_platform-v1 0.26.0 → 0.28.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/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +103 -2
- data/lib/google/cloud/ai_platform/v1/dataset_service.rb +1 -2
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +1094 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +778 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service/paths.rb +187 -0
- data/lib/google/cloud/ai_platform/v1/schedule_service.rb +51 -0
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +94 -94
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +3 -2
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/job_state_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +2 -2
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/schedule_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/schedule_service_pb.rb +61 -0
- data/lib/google/cloud/aiplatform/v1/schedule_service_services_pb.rb +74 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +5 -5
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_services_pb.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +12 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +2 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +8 -8
- data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +13 -0
- data/proto_docs/google/cloud/aiplatform/v1/schedule.rb +152 -0
- data/proto_docs/google/cloud/aiplatform/v1/schedule_service.rb +201 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +52 -51
- metadata +12 -2
@@ -0,0 +1,187 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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 AIPlatform
|
23
|
+
module V1
|
24
|
+
module ScheduleService
|
25
|
+
# Path helper methods for the ScheduleService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Artifact resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param metadata_store [String]
|
37
|
+
# @param artifact [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def artifact_path project:, location:, metadata_store:, artifact:
|
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, "metadata_store cannot contain /" if metadata_store.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/metadataStores/#{metadata_store}/artifacts/#{artifact}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified Context resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param metadata_store [String]
|
58
|
+
# @param context [String]
|
59
|
+
#
|
60
|
+
# @return [::String]
|
61
|
+
def context_path project:, location:, metadata_store:, context:
|
62
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
64
|
+
raise ::ArgumentError, "metadata_store cannot contain /" if metadata_store.to_s.include? "/"
|
65
|
+
|
66
|
+
"projects/#{project}/locations/#{location}/metadataStores/#{metadata_store}/contexts/#{context}"
|
67
|
+
end
|
68
|
+
|
69
|
+
##
|
70
|
+
# Create a fully-qualified CustomJob resource string.
|
71
|
+
#
|
72
|
+
# The resource will be in the following format:
|
73
|
+
#
|
74
|
+
# `projects/{project}/locations/{location}/customJobs/{custom_job}`
|
75
|
+
#
|
76
|
+
# @param project [String]
|
77
|
+
# @param location [String]
|
78
|
+
# @param custom_job [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def custom_job_path project:, location:, custom_job:
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
84
|
+
|
85
|
+
"projects/#{project}/locations/#{location}/customJobs/#{custom_job}"
|
86
|
+
end
|
87
|
+
|
88
|
+
##
|
89
|
+
# Create a fully-qualified Execution resource string.
|
90
|
+
#
|
91
|
+
# The resource will be in the following format:
|
92
|
+
#
|
93
|
+
# `projects/{project}/locations/{location}/metadataStores/{metadata_store}/executions/{execution}`
|
94
|
+
#
|
95
|
+
# @param project [String]
|
96
|
+
# @param location [String]
|
97
|
+
# @param metadata_store [String]
|
98
|
+
# @param execution [String]
|
99
|
+
#
|
100
|
+
# @return [::String]
|
101
|
+
def execution_path project:, location:, metadata_store:, execution:
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
104
|
+
raise ::ArgumentError, "metadata_store cannot contain /" if metadata_store.to_s.include? "/"
|
105
|
+
|
106
|
+
"projects/#{project}/locations/#{location}/metadataStores/#{metadata_store}/executions/#{execution}"
|
107
|
+
end
|
108
|
+
|
109
|
+
##
|
110
|
+
# Create a fully-qualified Location resource string.
|
111
|
+
#
|
112
|
+
# The resource will be in the following format:
|
113
|
+
#
|
114
|
+
# `projects/{project}/locations/{location}`
|
115
|
+
#
|
116
|
+
# @param project [String]
|
117
|
+
# @param location [String]
|
118
|
+
#
|
119
|
+
# @return [::String]
|
120
|
+
def location_path project:, location:
|
121
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}"
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Create a fully-qualified Network resource string.
|
128
|
+
#
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/global/networks/{network}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param network [String]
|
135
|
+
#
|
136
|
+
# @return [::String]
|
137
|
+
def network_path project:, network:
|
138
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
139
|
+
|
140
|
+
"projects/#{project}/global/networks/#{network}"
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Create a fully-qualified PipelineJob resource string.
|
145
|
+
#
|
146
|
+
# The resource will be in the following format:
|
147
|
+
#
|
148
|
+
# `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`
|
149
|
+
#
|
150
|
+
# @param project [String]
|
151
|
+
# @param location [String]
|
152
|
+
# @param pipeline_job [String]
|
153
|
+
#
|
154
|
+
# @return [::String]
|
155
|
+
def pipeline_job_path project:, location:, pipeline_job:
|
156
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
157
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
158
|
+
|
159
|
+
"projects/#{project}/locations/#{location}/pipelineJobs/#{pipeline_job}"
|
160
|
+
end
|
161
|
+
|
162
|
+
##
|
163
|
+
# Create a fully-qualified Schedule resource string.
|
164
|
+
#
|
165
|
+
# The resource will be in the following format:
|
166
|
+
#
|
167
|
+
# `projects/{project}/locations/{location}/schedules/{schedule}`
|
168
|
+
#
|
169
|
+
# @param project [String]
|
170
|
+
# @param location [String]
|
171
|
+
# @param schedule [String]
|
172
|
+
#
|
173
|
+
# @return [::String]
|
174
|
+
def schedule_path project:, location:, schedule:
|
175
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
176
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
177
|
+
|
178
|
+
"projects/#{project}/locations/#{location}/schedules/#{schedule}"
|
179
|
+
end
|
180
|
+
|
181
|
+
extend self
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/ai_platform/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/ai_platform/v1/schedule_service/credentials"
|
26
|
+
require "google/cloud/ai_platform/v1/schedule_service/paths"
|
27
|
+
require "google/cloud/ai_platform/v1/schedule_service/operations"
|
28
|
+
require "google/cloud/ai_platform/v1/schedule_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module AIPlatform
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# A service for creating and managing Vertex AI's Schedule resources to
|
36
|
+
# periodically launch shceudled runs to make API calls.
|
37
|
+
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
39
|
+
#
|
40
|
+
# require "google/cloud/ai_platform/v1/schedule_service"
|
41
|
+
# client = ::Google::Cloud::AIPlatform::V1::ScheduleService::Client.new
|
42
|
+
#
|
43
|
+
module ScheduleService
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "schedule_service", "helpers.rb"
|
51
|
+
require "google/cloud/ai_platform/v1/schedule_service/helpers" if ::File.file? helper_path
|
@@ -368,93 +368,6 @@ module Google
|
|
368
368
|
raise ::Google::Cloud::Error.from_error(e)
|
369
369
|
end
|
370
370
|
|
371
|
-
##
|
372
|
-
# Returns a list of monthly active users for a given TensorBoard instance.
|
373
|
-
#
|
374
|
-
# @overload read_tensorboard_usage(request, options = nil)
|
375
|
-
# Pass arguments to `read_tensorboard_usage` via a request object, either of type
|
376
|
-
# {::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest} or an equivalent Hash.
|
377
|
-
#
|
378
|
-
# @param request [::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest, ::Hash]
|
379
|
-
# A request object representing the call parameters. Required. To specify no
|
380
|
-
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
381
|
-
# @param options [::Gapic::CallOptions, ::Hash]
|
382
|
-
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
383
|
-
#
|
384
|
-
# @overload read_tensorboard_usage(tensorboard: nil)
|
385
|
-
# Pass arguments to `read_tensorboard_usage` via keyword arguments. Note that at
|
386
|
-
# least one keyword argument is required. To specify no parameters, or to keep all
|
387
|
-
# the default parameter values, pass an empty Hash as a request object (see above).
|
388
|
-
#
|
389
|
-
# @param tensorboard [::String]
|
390
|
-
# Required. The name of the Tensorboard resource.
|
391
|
-
# Format:
|
392
|
-
# `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
|
393
|
-
#
|
394
|
-
# @yield [response, operation] Access the result along with the RPC operation
|
395
|
-
# @yieldparam response [::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse]
|
396
|
-
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
397
|
-
#
|
398
|
-
# @return [::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse]
|
399
|
-
#
|
400
|
-
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
401
|
-
#
|
402
|
-
# @example Basic example
|
403
|
-
# require "google/cloud/ai_platform/v1"
|
404
|
-
#
|
405
|
-
# # Create a client object. The client can be reused for multiple calls.
|
406
|
-
# client = Google::Cloud::AIPlatform::V1::TensorboardService::Client.new
|
407
|
-
#
|
408
|
-
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
-
# request = Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest.new
|
410
|
-
#
|
411
|
-
# # Call the read_tensorboard_usage method.
|
412
|
-
# result = client.read_tensorboard_usage request
|
413
|
-
#
|
414
|
-
# # The returned object is of type Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse.
|
415
|
-
# p result
|
416
|
-
#
|
417
|
-
def read_tensorboard_usage request, options = nil
|
418
|
-
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
|
-
|
420
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest
|
421
|
-
|
422
|
-
# Converts hash and nil to an options object
|
423
|
-
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
424
|
-
|
425
|
-
# Customize the options with defaults
|
426
|
-
metadata = @config.rpcs.read_tensorboard_usage.metadata.to_h
|
427
|
-
|
428
|
-
# Set x-goog-api-client and x-goog-user-project headers
|
429
|
-
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
430
|
-
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
431
|
-
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
432
|
-
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
433
|
-
|
434
|
-
header_params = {}
|
435
|
-
if request.tensorboard
|
436
|
-
header_params["tensorboard"] = request.tensorboard
|
437
|
-
end
|
438
|
-
|
439
|
-
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
440
|
-
metadata[:"x-goog-request-params"] ||= request_params_header
|
441
|
-
|
442
|
-
options.apply_defaults timeout: @config.rpcs.read_tensorboard_usage.timeout,
|
443
|
-
metadata: metadata,
|
444
|
-
retry_policy: @config.rpcs.read_tensorboard_usage.retry_policy
|
445
|
-
|
446
|
-
options.apply_defaults timeout: @config.timeout,
|
447
|
-
metadata: @config.metadata,
|
448
|
-
retry_policy: @config.retry_policy
|
449
|
-
|
450
|
-
@tensorboard_service_stub.call_rpc :read_tensorboard_usage, request, options: options do |response, operation|
|
451
|
-
yield response, operation if block_given?
|
452
|
-
return response
|
453
|
-
end
|
454
|
-
rescue ::GRPC::BadStatus => e
|
455
|
-
raise ::Google::Cloud::Error.from_error(e)
|
456
|
-
end
|
457
|
-
|
458
371
|
##
|
459
372
|
# Updates a Tensorboard.
|
460
373
|
#
|
@@ -763,6 +676,93 @@ module Google
|
|
763
676
|
raise ::Google::Cloud::Error.from_error(e)
|
764
677
|
end
|
765
678
|
|
679
|
+
##
|
680
|
+
# Returns a list of monthly active users for a given TensorBoard instance.
|
681
|
+
#
|
682
|
+
# @overload read_tensorboard_usage(request, options = nil)
|
683
|
+
# Pass arguments to `read_tensorboard_usage` via a request object, either of type
|
684
|
+
# {::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest} or an equivalent Hash.
|
685
|
+
#
|
686
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest, ::Hash]
|
687
|
+
# A request object representing the call parameters. Required. To specify no
|
688
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
689
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
690
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
691
|
+
#
|
692
|
+
# @overload read_tensorboard_usage(tensorboard: nil)
|
693
|
+
# Pass arguments to `read_tensorboard_usage` via keyword arguments. Note that at
|
694
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
695
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
696
|
+
#
|
697
|
+
# @param tensorboard [::String]
|
698
|
+
# Required. The name of the Tensorboard resource.
|
699
|
+
# Format:
|
700
|
+
# `projects/{project}/locations/{location}/tensorboards/{tensorboard}`
|
701
|
+
#
|
702
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
703
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse]
|
704
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
705
|
+
#
|
706
|
+
# @return [::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse]
|
707
|
+
#
|
708
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
709
|
+
#
|
710
|
+
# @example Basic example
|
711
|
+
# require "google/cloud/ai_platform/v1"
|
712
|
+
#
|
713
|
+
# # Create a client object. The client can be reused for multiple calls.
|
714
|
+
# client = Google::Cloud::AIPlatform::V1::TensorboardService::Client.new
|
715
|
+
#
|
716
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
717
|
+
# request = Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest.new
|
718
|
+
#
|
719
|
+
# # Call the read_tensorboard_usage method.
|
720
|
+
# result = client.read_tensorboard_usage request
|
721
|
+
#
|
722
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::ReadTensorboardUsageResponse.
|
723
|
+
# p result
|
724
|
+
#
|
725
|
+
def read_tensorboard_usage request, options = nil
|
726
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
727
|
+
|
728
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ReadTensorboardUsageRequest
|
729
|
+
|
730
|
+
# Converts hash and nil to an options object
|
731
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
732
|
+
|
733
|
+
# Customize the options with defaults
|
734
|
+
metadata = @config.rpcs.read_tensorboard_usage.metadata.to_h
|
735
|
+
|
736
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
737
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
738
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
739
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
740
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
741
|
+
|
742
|
+
header_params = {}
|
743
|
+
if request.tensorboard
|
744
|
+
header_params["tensorboard"] = request.tensorboard
|
745
|
+
end
|
746
|
+
|
747
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
748
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
749
|
+
|
750
|
+
options.apply_defaults timeout: @config.rpcs.read_tensorboard_usage.timeout,
|
751
|
+
metadata: metadata,
|
752
|
+
retry_policy: @config.rpcs.read_tensorboard_usage.retry_policy
|
753
|
+
|
754
|
+
options.apply_defaults timeout: @config.timeout,
|
755
|
+
metadata: @config.metadata,
|
756
|
+
retry_policy: @config.retry_policy
|
757
|
+
|
758
|
+
@tensorboard_service_stub.call_rpc :read_tensorboard_usage, request, options: options do |response, operation|
|
759
|
+
yield response, operation if block_given?
|
760
|
+
return response
|
761
|
+
end
|
762
|
+
rescue ::GRPC::BadStatus => e
|
763
|
+
raise ::Google::Cloud::Error.from_error(e)
|
764
|
+
end
|
765
|
+
|
766
766
|
##
|
767
767
|
# Creates a TensorboardExperiment.
|
768
768
|
#
|
@@ -3130,11 +3130,6 @@ module Google
|
|
3130
3130
|
#
|
3131
3131
|
attr_reader :get_tensorboard
|
3132
3132
|
##
|
3133
|
-
# RPC-specific configuration for `read_tensorboard_usage`
|
3134
|
-
# @return [::Gapic::Config::Method]
|
3135
|
-
#
|
3136
|
-
attr_reader :read_tensorboard_usage
|
3137
|
-
##
|
3138
3133
|
# RPC-specific configuration for `update_tensorboard`
|
3139
3134
|
# @return [::Gapic::Config::Method]
|
3140
3135
|
#
|
@@ -3150,6 +3145,11 @@ module Google
|
|
3150
3145
|
#
|
3151
3146
|
attr_reader :delete_tensorboard
|
3152
3147
|
##
|
3148
|
+
# RPC-specific configuration for `read_tensorboard_usage`
|
3149
|
+
# @return [::Gapic::Config::Method]
|
3150
|
+
#
|
3151
|
+
attr_reader :read_tensorboard_usage
|
3152
|
+
##
|
3153
3153
|
# RPC-specific configuration for `create_tensorboard_experiment`
|
3154
3154
|
# @return [::Gapic::Config::Method]
|
3155
3155
|
#
|
@@ -3271,14 +3271,14 @@ module Google
|
|
3271
3271
|
@create_tensorboard = ::Gapic::Config::Method.new create_tensorboard_config
|
3272
3272
|
get_tensorboard_config = parent_rpcs.get_tensorboard if parent_rpcs.respond_to? :get_tensorboard
|
3273
3273
|
@get_tensorboard = ::Gapic::Config::Method.new get_tensorboard_config
|
3274
|
-
read_tensorboard_usage_config = parent_rpcs.read_tensorboard_usage if parent_rpcs.respond_to? :read_tensorboard_usage
|
3275
|
-
@read_tensorboard_usage = ::Gapic::Config::Method.new read_tensorboard_usage_config
|
3276
3274
|
update_tensorboard_config = parent_rpcs.update_tensorboard if parent_rpcs.respond_to? :update_tensorboard
|
3277
3275
|
@update_tensorboard = ::Gapic::Config::Method.new update_tensorboard_config
|
3278
3276
|
list_tensorboards_config = parent_rpcs.list_tensorboards if parent_rpcs.respond_to? :list_tensorboards
|
3279
3277
|
@list_tensorboards = ::Gapic::Config::Method.new list_tensorboards_config
|
3280
3278
|
delete_tensorboard_config = parent_rpcs.delete_tensorboard if parent_rpcs.respond_to? :delete_tensorboard
|
3281
3279
|
@delete_tensorboard = ::Gapic::Config::Method.new delete_tensorboard_config
|
3280
|
+
read_tensorboard_usage_config = parent_rpcs.read_tensorboard_usage if parent_rpcs.respond_to? :read_tensorboard_usage
|
3281
|
+
@read_tensorboard_usage = ::Gapic::Config::Method.new read_tensorboard_usage_config
|
3282
3282
|
create_tensorboard_experiment_config = parent_rpcs.create_tensorboard_experiment if parent_rpcs.respond_to? :create_tensorboard_experiment
|
3283
3283
|
@create_tensorboard_experiment = ::Gapic::Config::Method.new create_tensorboard_experiment_config
|
3284
3284
|
get_tensorboard_experiment_config = parent_rpcs.get_tensorboard_experiment if parent_rpcs.respond_to? :get_tensorboard_experiment
|
@@ -30,6 +30,7 @@ require "google/cloud/ai_platform/v1/model_service"
|
|
30
30
|
require "google/cloud/ai_platform/v1/model_garden_service"
|
31
31
|
require "google/cloud/ai_platform/v1/pipeline_service"
|
32
32
|
require "google/cloud/ai_platform/v1/prediction_service"
|
33
|
+
require "google/cloud/ai_platform/v1/schedule_service"
|
33
34
|
require "google/cloud/ai_platform/v1/specialist_pool_service"
|
34
35
|
require "google/cloud/ai_platform/v1/tensorboard_service"
|
35
36
|
require "google/cloud/ai_platform/v1/vizier_service"
|
@@ -13,7 +13,7 @@ require 'google/protobuf/struct_pb'
|
|
13
13
|
require 'google/protobuf/timestamp_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n(google/cloud/aiplatform/v1/dataset.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a#google/cloud/aiplatform/v1/io.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
16
|
+
descriptor_data = "\n(google/cloud/aiplatform/v1/dataset.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/aiplatform/v1/encryption_spec.proto\x1a#google/cloud/aiplatform/v1/io.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x05\n\x07\x44\x61taset\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x10 \x01(\t\x12 \n\x13metadata_schema_uri\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12-\n\x08metadata\x18\x08 \x01(\x0b\x32\x16.google.protobuf.ValueB\x03\xe0\x41\x02\x12\x1c\n\x0f\x64\x61ta_item_count\x18\n \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x06 \x01(\t\x12?\n\x06labels\x18\x07 \x03(\x0b\x32/.google.cloud.aiplatform.v1.Dataset.LabelsEntry\x12=\n\rsaved_queries\x18\t \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x43\n\x0f\x65ncryption_spec\x18\x0b \x01(\x0b\x32*.google.cloud.aiplatform.v1.EncryptionSpec\x12\x1e\n\x11metadata_artifact\x18\x11 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:b\xea\x41_\n!aiplatform.googleapis.com/Dataset\x12:projects/{project}/locations/{location}/datasets/{dataset}\"\xa4\x03\n\x10ImportDataConfig\x12;\n\ngcs_source\x18\x01 \x01(\x0b\x32%.google.cloud.aiplatform.v1.GcsSourceH\x00\x12Z\n\x10\x64\x61ta_item_labels\x18\x02 \x03(\x0b\x32@.google.cloud.aiplatform.v1.ImportDataConfig.DataItemLabelsEntry\x12]\n\x11\x61nnotation_labels\x18\x03 \x03(\x0b\x32\x42.google.cloud.aiplatform.v1.ImportDataConfig.AnnotationLabelsEntry\x12\x1e\n\x11import_schema_uri\x18\x04 \x01(\tB\x03\xe0\x41\x02\x1a\x35\n\x13\x44\x61taItemLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15\x41nnotationLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06source\"\xd8\x01\n\x10\x45xportDataConfig\x12\x45\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32*.google.cloud.aiplatform.v1.GcsDestinationH\x00\x12I\n\x0e\x66raction_split\x18\x05 \x01(\x0b\x32/.google.cloud.aiplatform.v1.ExportFractionSplitH\x01\x12\x1a\n\x12\x61nnotations_filter\x18\x02 \x01(\tB\r\n\x0b\x64\x65stinationB\x07\n\x05split\"d\n\x13\x45xportFractionSplit\x12\x19\n\x11training_fraction\x18\x01 \x01(\x01\x12\x1b\n\x13validation_fraction\x18\x02 \x01(\x01\x12\x15\n\rtest_fraction\x18\x03 \x01(\x01\x42\xca\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x0c\x44\x61tasetProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -19,7 +19,7 @@ require 'google/protobuf/empty_pb'
|
|
19
19
|
require 'google/protobuf/field_mask_pb'
|
20
20
|
|
21
21
|
|
22
|
-
descriptor_data = "\n0google/cloud/aiplatform/v1/dataset_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/aiplatform/v1/annotation.proto\x1a\x30google/cloud/aiplatform/v1/annotation_spec.proto\x1a*google/cloud/aiplatform/v1/data_item.proto\x1a(google/cloud/aiplatform/v1/dataset.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x8c\x01\n\x14\x43reateDatasetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x39\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\"p\n\x1e\x43reateDatasetOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"{\n\x11GetDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x87\x01\n\x14UpdateDatasetRequest\x12\x39\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xc8\x01\n\x13ListDatasetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"f\n\x14ListDatasetsResponse\x12\x35\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32#.google.cloud.aiplatform.v1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x14\x44\x65leteDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\"\x97\x01\n\x11ImportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12I\n\x0eimport_configs\x18\x02 \x03(\x0b\x32,.google.cloud.aiplatform.v1.ImportDataConfigB\x03\xe0\x41\x02\"\x14\n\x12ImportDataResponse\"m\n\x1bImportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\x96\x01\n\x11\x45xportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12H\n\rexport_config\x18\x02 \x01(\x0b\x32,.google.cloud.aiplatform.v1.ExportDataConfigB\x03\xe0\x41\x02\",\n\x12\x45xportDataResponse\x12\x16\n\x0e\x65xported_files\x18\x01 \x03(\t\"\x8b\x01\n\x1b\x45xportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x1c\n\x14gcs_output_directory\x18\x02 \x01(\t\"\xc9\x01\n\x14ListDataItemsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"j\n\x15ListDataItemsResponse\x12\x38\n\ndata_items\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdc\x04\n\x16SearchDataItemsRequest\x12\x1c\n\x12order_by_data_item\x18\x0c \x01(\tH\x00\x12\x63\n\x13order_by_annotation\x18\r \x01(\x0b\x32\x44.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationH\x00\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12@\n\x0bsaved_query\x18\x02 \x01(\tB+\x18\x01\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\x12\x19\n\x11\x64\x61ta_labeling_job\x18\x03 \x01(\t\x12\x18\n\x10\x64\x61ta_item_filter\x18\x04 \x01(\t\x12\x1e\n\x12\x61nnotations_filter\x18\x05 \x01(\tB\x02\x18\x01\x12\x1a\n\x12\x61nnotation_filters\x18\x0b \x03(\t\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x19\n\x11\x61nnotations_limit\x18\x07 \x01(\x05\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x14\n\x08order_by\x18\t \x01(\tB\x02\x18\x01\x12\x12\n\npage_token\x18\n \x01(\t\x1a?\n\x11OrderByAnnotation\x12\x18\n\x0bsaved_query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08order_by\x18\x02 \x01(\tB\x07\n\x05order\"u\n\x17SearchDataItemsResponse\x12\x41\n\x0f\x64\x61ta_item_views\x18\x01 \x03(\x0b\x32(.google.cloud.aiplatform.v1.DataItemView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x0c\x44\x61taItemView\x12\x37\n\tdata_item\x18\x01 \x01(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12;\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12!\n\x19has_truncated_annotations\x18\x03 \x01(\x08\"\xcc\x01\n\x17ListSavedQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"r\n\x18ListSavedQueriesResponse\x12=\n\rsaved_queries\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x89\x01\n\x18GetAnnotationSpecRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/AnnotationSpec\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xcc\x01\n\x16ListAnnotationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/DataItem\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"o\n\x17ListAnnotationsResponse\x12;\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xec\x13\n\x0e\x44\x61tasetService\x12\xdc\x01\n\rCreateDataset\x12\x30.google.cloud.aiplatform.v1.CreateDatasetRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\xda\x41\x0eparent,dataset\xca\x41)\n\x07\x44\x61taset\x12\x1e\x43reateDatasetOperationMetadata\x12\x9d\x01\n\nGetDataset\x12-.google.cloud.aiplatform.v1.GetDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\x12\xc3\x01\n\rUpdateDataset\x12\x30.google.cloud.aiplatform.v1.UpdateDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\"[\x82\xd3\xe4\x93\x02?24/v1/{dataset.name=projects/*/locations/*/datasets/*}:\x07\x64\x61taset\xda\x41\x13\x64\x61taset,update_mask\x12\xb0\x01\n\x0cListDatasets\x12/.google.cloud.aiplatform.v1.ListDatasetsRequest\x1a\x30.google.cloud.aiplatform.v1.ListDatasetsResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/datasets\xda\x41\x06parent\x12\xd0\x01\n\rDeleteDataset\x12\x30.google.cloud.aiplatform.v1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"n\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xe5\x01\n\nImportData\x12-.google.cloud.aiplatform.v1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:import:\x01*\xda\x41\x13name,import_configs\xca\x41\x31\n\x12ImportDataResponse\x12\x1bImportDataOperationMetadata\x12\xe4\x01\n\nExportData\x12-.google.cloud.aiplatform.v1.ExportDataRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:export:\x01*\xda\x41\x12name,export_config\xca\x41\x31\n\x12\x45xportDataResponse\x12\x1b\x45xportDataOperationMetadata\x12\xbf\x01\n\rListDataItems\x12\x30.google.cloud.aiplatform.v1.ListDataItemsRequest\x1a\x31.google.cloud.aiplatform.v1.ListDataItemsResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/datasets/*}/dataItems\xda\x41\x06parent\x12\xc3\x01\n\x0fSearchDataItems\x12\x32.google.cloud.aiplatform.v1.SearchDataItemsRequest\x1a\x33.google.cloud.aiplatform.v1.SearchDataItemsResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/v1/{dataset=projects/*/locations/*/datasets/*}:searchDataItems\x12\xcb\x01\n\x10ListSavedQueries\x12\x33.google.cloud.aiplatform.v1.ListSavedQueriesRequest\x1a\x34.google.cloud.aiplatform.v1.ListSavedQueriesResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries\xda\x41\x06parent\x12\xc4\x01\n\x11GetAnnotationSpec\x12\x34.google.cloud.aiplatform.v1.GetAnnotationSpecRequest\x1a*.google.cloud.aiplatform.v1.AnnotationSpec\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}\xda\x41\x04name\x12\xd3\x01\n\x0fListAnnotations\x12\x32.google.cloud.aiplatform.v1.ListAnnotationsRequest\x1a\x33.google.cloud.aiplatform.v1.ListAnnotationsResponse\"W\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/datasets/*/dataItems/*}/annotations\xda\x41\x06parent\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x44\x61tasetServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
|
22
|
+
descriptor_data = "\n0google/cloud/aiplatform/v1/dataset_service.proto\x12\x1agoogle.cloud.aiplatform.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/aiplatform/v1/annotation.proto\x1a\x30google/cloud/aiplatform/v1/annotation_spec.proto\x1a*google/cloud/aiplatform/v1/data_item.proto\x1a(google/cloud/aiplatform/v1/dataset.proto\x1a*google/cloud/aiplatform/v1/operation.proto\x1a,google/cloud/aiplatform/v1/saved_query.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x8c\x01\n\x14\x43reateDatasetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x39\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\"p\n\x1e\x43reateDatasetOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"{\n\x11GetDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x87\x01\n\x14UpdateDatasetRequest\x12\x39\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32#.google.cloud.aiplatform.v1.DatasetB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xc8\x01\n\x13ListDatasetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"f\n\x14ListDatasetsResponse\x12\x35\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32#.google.cloud.aiplatform.v1.Dataset\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x14\x44\x65leteDatasetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\"\x97\x01\n\x11ImportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12I\n\x0eimport_configs\x18\x02 \x03(\x0b\x32,.google.cloud.aiplatform.v1.ImportDataConfigB\x03\xe0\x41\x02\"\x14\n\x12ImportDataResponse\"m\n\x1bImportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\"\x96\x01\n\x11\x45xportDataRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12H\n\rexport_config\x18\x02 \x01(\x0b\x32,.google.cloud.aiplatform.v1.ExportDataConfigB\x03\xe0\x41\x02\",\n\x12\x45xportDataResponse\x12\x16\n\x0e\x65xported_files\x18\x01 \x03(\t\"\x8b\x01\n\x1b\x45xportDataOperationMetadata\x12N\n\x10generic_metadata\x18\x01 \x01(\x0b\x32\x34.google.cloud.aiplatform.v1.GenericOperationMetadata\x12\x1c\n\x14gcs_output_directory\x18\x02 \x01(\t\"\xc9\x01\n\x14ListDataItemsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"j\n\x15ListDataItemsResponse\x12\x38\n\ndata_items\x18\x01 \x03(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xdc\x04\n\x16SearchDataItemsRequest\x12\x1c\n\x12order_by_data_item\x18\x0c \x01(\tH\x00\x12\x63\n\x13order_by_annotation\x18\r \x01(\x0b\x32\x44.google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotationH\x00\x12:\n\x07\x64\x61taset\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12@\n\x0bsaved_query\x18\x02 \x01(\tB+\x18\x01\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\x12\x19\n\x11\x64\x61ta_labeling_job\x18\x03 \x01(\t\x12\x18\n\x10\x64\x61ta_item_filter\x18\x04 \x01(\t\x12\x1e\n\x12\x61nnotations_filter\x18\x05 \x01(\tB\x02\x18\x01\x12\x1a\n\x12\x61nnotation_filters\x18\x0b \x03(\t\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x19\n\x11\x61nnotations_limit\x18\x07 \x01(\x05\x12\x11\n\tpage_size\x18\x08 \x01(\x05\x12\x14\n\x08order_by\x18\t \x01(\tB\x02\x18\x01\x12\x12\n\npage_token\x18\n \x01(\t\x1a?\n\x11OrderByAnnotation\x12\x18\n\x0bsaved_query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08order_by\x18\x02 \x01(\tB\x07\n\x05order\"u\n\x17SearchDataItemsResponse\x12\x41\n\x0f\x64\x61ta_item_views\x18\x01 \x03(\x0b\x32(.google.cloud.aiplatform.v1.DataItemView\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa7\x01\n\x0c\x44\x61taItemView\x12\x37\n\tdata_item\x18\x01 \x01(\x0b\x32$.google.cloud.aiplatform.v1.DataItem\x12;\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12!\n\x19has_truncated_annotations\x18\x03 \x01(\x08\"\xcc\x01\n\x17ListSavedQueriesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!aiplatform.googleapis.com/Dataset\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"r\n\x18ListSavedQueriesResponse\x12=\n\rsaved_queries\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.SavedQuery\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"U\n\x17\x44\x65leteSavedQueryRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$aiplatform.googleapis.com/SavedQuery\"\x89\x01\n\x18GetAnnotationSpecRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(aiplatform.googleapis.com/AnnotationSpec\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xcc\x01\n\x16ListAnnotationsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"aiplatform.googleapis.com/DataItem\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12-\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08order_by\x18\x06 \x01(\t\"o\n\x17ListAnnotationsResponse\x12;\n\x0b\x61nnotations\x18\x01 \x03(\x0b\x32&.google.cloud.aiplatform.v1.Annotation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd4\x15\n\x0e\x44\x61tasetService\x12\xdc\x01\n\rCreateDataset\x12\x30.google.cloud.aiplatform.v1.CreateDatasetRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/datasets:\x07\x64\x61taset\xda\x41\x0eparent,dataset\xca\x41)\n\x07\x44\x61taset\x12\x1e\x43reateDatasetOperationMetadata\x12\x9d\x01\n\nGetDataset\x12-.google.cloud.aiplatform.v1.GetDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\x12\xc3\x01\n\rUpdateDataset\x12\x30.google.cloud.aiplatform.v1.UpdateDatasetRequest\x1a#.google.cloud.aiplatform.v1.Dataset\"[\x82\xd3\xe4\x93\x02?24/v1/{dataset.name=projects/*/locations/*/datasets/*}:\x07\x64\x61taset\xda\x41\x13\x64\x61taset,update_mask\x12\xb0\x01\n\x0cListDatasets\x12/.google.cloud.aiplatform.v1.ListDatasetsRequest\x1a\x30.google.cloud.aiplatform.v1.ListDatasetsResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/datasets\xda\x41\x06parent\x12\xd0\x01\n\rDeleteDataset\x12\x30.google.cloud.aiplatform.v1.DeleteDatasetRequest\x1a\x1d.google.longrunning.Operation\"n\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/datasets/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xe5\x01\n\nImportData\x12-.google.cloud.aiplatform.v1.ImportDataRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:import:\x01*\xda\x41\x13name,import_configs\xca\x41\x31\n\x12ImportDataResponse\x12\x1bImportDataOperationMetadata\x12\xe4\x01\n\nExportData\x12-.google.cloud.aiplatform.v1.ExportDataRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/datasets/*}:export:\x01*\xda\x41\x12name,export_config\xca\x41\x31\n\x12\x45xportDataResponse\x12\x1b\x45xportDataOperationMetadata\x12\xbf\x01\n\rListDataItems\x12\x30.google.cloud.aiplatform.v1.ListDataItemsRequest\x1a\x31.google.cloud.aiplatform.v1.ListDataItemsResponse\"I\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/datasets/*}/dataItems\xda\x41\x06parent\x12\xc3\x01\n\x0fSearchDataItems\x12\x32.google.cloud.aiplatform.v1.SearchDataItemsRequest\x1a\x33.google.cloud.aiplatform.v1.SearchDataItemsResponse\"G\x82\xd3\xe4\x93\x02\x41\x12?/v1/{dataset=projects/*/locations/*/datasets/*}:searchDataItems\x12\xcb\x01\n\x10ListSavedQueries\x12\x33.google.cloud.aiplatform.v1.ListSavedQueriesRequest\x1a\x34.google.cloud.aiplatform.v1.ListSavedQueriesResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries\xda\x41\x06parent\x12\xe5\x01\n\x10\x44\x65leteSavedQuery\x12\x33.google.cloud.aiplatform.v1.DeleteSavedQueryRequest\x1a\x1d.google.longrunning.Operation\"}\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteOperationMetadata\x12\xc4\x01\n\x11GetAnnotationSpec\x12\x34.google.cloud.aiplatform.v1.GetAnnotationSpecRequest\x1a*.google.cloud.aiplatform.v1.AnnotationSpec\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}\xda\x41\x04name\x12\xd3\x01\n\x0fListAnnotations\x12\x32.google.cloud.aiplatform.v1.ListAnnotationsRequest\x1a\x33.google.cloud.aiplatform.v1.ListAnnotationsResponse\"W\x82\xd3\xe4\x93\x02H\x12\x46/v1/{parent=projects/*/locations/*/datasets/*/dataItems/*}/annotations\xda\x41\x06parent\x1aM\xca\x41\x19\x61iplatform.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd1\x01\n\x1e\x63om.google.cloud.aiplatform.v1B\x13\x44\x61tasetServiceProtoP\x01Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb\xaa\x02\x1aGoogle.Cloud.AIPlatform.V1\xca\x02\x1aGoogle\\Cloud\\AIPlatform\\V1\xea\x02\x1dGoogle::Cloud::AIPlatform::V1b\x06proto3"
|
23
23
|
|
24
24
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
25
25
|
|
@@ -76,6 +76,7 @@ module Google
|
|
76
76
|
DataItemView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DataItemView").msgclass
|
77
77
|
ListSavedQueriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesRequest").msgclass
|
78
78
|
ListSavedQueriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesResponse").msgclass
|
79
|
+
DeleteSavedQueryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteSavedQueryRequest").msgclass
|
79
80
|
GetAnnotationSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetAnnotationSpecRequest").msgclass
|
80
81
|
ListAnnotationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListAnnotationsRequest").msgclass
|
81
82
|
ListAnnotationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListAnnotationsResponse").msgclass
|
@@ -24,8 +24,7 @@ module Google
|
|
24
24
|
module AIPlatform
|
25
25
|
module V1
|
26
26
|
module DatasetService
|
27
|
-
# The service that
|
28
|
-
# resources.
|
27
|
+
# The service that manages Vertex AI Dataset and its child resources.
|
29
28
|
class Service
|
30
29
|
|
31
30
|
include ::GRPC::GenericService
|
@@ -54,6 +53,8 @@ module Google
|
|
54
53
|
rpc :SearchDataItems, ::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest, ::Google::Cloud::AIPlatform::V1::SearchDataItemsResponse
|
55
54
|
# Lists SavedQueries in a Dataset.
|
56
55
|
rpc :ListSavedQueries, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesResponse
|
56
|
+
# Deletes a SavedQuery.
|
57
|
+
rpc :DeleteSavedQuery, ::Google::Cloud::AIPlatform::V1::DeleteSavedQueryRequest, ::Google::Longrunning::Operation
|
57
58
|
# Gets an AnnotationSpec.
|
58
59
|
rpc :GetAnnotationSpec, ::Google::Cloud::AIPlatform::V1::GetAnnotationSpecRequest, ::Google::Cloud::AIPlatform::V1::AnnotationSpec
|
59
60
|
# Lists Annotations belongs to a dataitem
|