google-cloud-chronicle-v1 1.0.1 → 1.1.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/README.md +0 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service/credentials.rb +1 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service/paths.rb +1 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service/rest/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service/rest.rb +1 -1
- data/lib/google/cloud/chronicle/v1/data_access_control_service.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service/credentials.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service/paths.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service/rest/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service/rest.rb +1 -1
- data/lib/google/cloud/chronicle/v1/entity_service.rb +1 -1
- data/lib/google/cloud/chronicle/v1/feed_pb.rb +205 -0
- data/lib/google/cloud/chronicle/v1/feed_services_pb.rb +79 -0
- data/lib/google/cloud/chronicle/v1/feeds_service/client.rb +1827 -0
- data/lib/google/cloud/chronicle/v1/feeds_service/credentials.rb +49 -0
- data/lib/google/cloud/chronicle/v1/feeds_service/paths.rb +136 -0
- data/lib/google/cloud/chronicle/v1/feeds_service/rest/client.rb +1686 -0
- data/lib/google/cloud/chronicle/v1/feeds_service/rest/service_stub.rb +941 -0
- data/lib/google/cloud/chronicle/v1/feeds_service/rest.rb +52 -0
- data/lib/google/cloud/chronicle/v1/feeds_service.rb +55 -0
- data/lib/google/cloud/chronicle/v1/instance_service/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/instance_service/credentials.rb +1 -1
- data/lib/google/cloud/chronicle/v1/instance_service/paths.rb +1 -1
- data/lib/google/cloud/chronicle/v1/instance_service/rest/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/instance_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/chronicle/v1/instance_service/rest.rb +1 -1
- data/lib/google/cloud/chronicle/v1/instance_service.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service/credentials.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service/paths.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service/rest/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service/rest.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_service.rb +1 -1
- data/lib/google/cloud/chronicle/v1/reference_list_services_pb.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rest.rb +2 -1
- data/lib/google/cloud/chronicle/v1/rule_execution_error_service/client.rb +5 -5
- data/lib/google/cloud/chronicle/v1/rule_execution_error_service/rest/client.rb +5 -5
- data/lib/google/cloud/chronicle/v1/rule_service/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/credentials.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/operations.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/paths.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/rest/client.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/rest/operations.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service/rest.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_service.rb +1 -1
- data/lib/google/cloud/chronicle/v1/rule_services_pb.rb +1 -1
- data/lib/google/cloud/chronicle/v1/version.rb +1 -1
- data/lib/google/cloud/chronicle/v1.rb +2 -1
- data/lib/google-cloud-chronicle-v1.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +1 -1
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/httpbody.rb +80 -0
- data/proto_docs/google/api/launch_stage.rb +1 -1
- data/proto_docs/google/api/resource.rb +1 -1
- data/proto_docs/google/cloud/chronicle/v1/data_access_control.rb +1 -1
- data/proto_docs/google/cloud/chronicle/v1/entity.rb +1 -1
- data/proto_docs/google/cloud/chronicle/v1/feed.rb +3427 -0
- data/proto_docs/google/cloud/chronicle/v1/instance.rb +1 -1
- data/proto_docs/google/cloud/chronicle/v1/reference_list.rb +1 -1
- data/proto_docs/google/cloud/chronicle/v1/rule.rb +1 -1
- data/proto_docs/google/cloud/chronicle/v1/rule_execution_error.rb +5 -5
- data/proto_docs/google/longrunning/operations.rb +1 -1
- data/proto_docs/google/protobuf/any.rb +1 -1
- data/proto_docs/google/protobuf/duration.rb +1 -1
- data/proto_docs/google/protobuf/empty.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +8 -7
- data/proto_docs/google/rpc/status.rb +1 -1
- data/proto_docs/google/type/interval.rb +1 -1
- metadata +13 -1
|
@@ -0,0 +1,1827 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 "google/cloud/errors"
|
|
20
|
+
require "google/cloud/chronicle/v1/feed_pb"
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Chronicle
|
|
25
|
+
module V1
|
|
26
|
+
module FeedsService
|
|
27
|
+
##
|
|
28
|
+
# Client for the FeedsService service.
|
|
29
|
+
#
|
|
30
|
+
# FeedsService contains procedures for managing Chronicle third-party feeds.
|
|
31
|
+
#
|
|
32
|
+
class Client
|
|
33
|
+
# @private
|
|
34
|
+
API_VERSION = ""
|
|
35
|
+
|
|
36
|
+
# @private
|
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "chronicle.$UNIVERSE_DOMAIN$"
|
|
38
|
+
|
|
39
|
+
include Paths
|
|
40
|
+
|
|
41
|
+
# @private
|
|
42
|
+
attr_reader :feeds_service_stub
|
|
43
|
+
|
|
44
|
+
##
|
|
45
|
+
# Configure the FeedsService Client class.
|
|
46
|
+
#
|
|
47
|
+
# See {::Google::Cloud::Chronicle::V1::FeedsService::Client::Configuration}
|
|
48
|
+
# for a description of the configuration fields.
|
|
49
|
+
#
|
|
50
|
+
# @example
|
|
51
|
+
#
|
|
52
|
+
# # Modify the configuration for all FeedsService clients
|
|
53
|
+
# ::Google::Cloud::Chronicle::V1::FeedsService::Client.configure do |config|
|
|
54
|
+
# config.timeout = 10.0
|
|
55
|
+
# end
|
|
56
|
+
#
|
|
57
|
+
# @yield [config] Configure the Client client.
|
|
58
|
+
# @yieldparam config [Client::Configuration]
|
|
59
|
+
#
|
|
60
|
+
# @return [Client::Configuration]
|
|
61
|
+
#
|
|
62
|
+
def self.configure
|
|
63
|
+
@configure ||= begin
|
|
64
|
+
namespace = ["Google", "Cloud", "Chronicle", "V1"]
|
|
65
|
+
parent_config = while namespace.any?
|
|
66
|
+
parent_name = namespace.join "::"
|
|
67
|
+
parent_const = const_get parent_name
|
|
68
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
|
69
|
+
namespace.pop
|
|
70
|
+
end
|
|
71
|
+
default_config = Client::Configuration.new parent_config
|
|
72
|
+
|
|
73
|
+
default_config.rpcs.fetch_service_account_for_customer.timeout = 60.0
|
|
74
|
+
default_config.rpcs.fetch_service_account_for_customer.retry_policy = {
|
|
75
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
default_config.rpcs.create_feed.timeout = 300.0
|
|
79
|
+
|
|
80
|
+
default_config.rpcs.get_feed.timeout = 30.0
|
|
81
|
+
default_config.rpcs.get_feed.retry_policy = {
|
|
82
|
+
initial_delay: 1.0, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
default_config.rpcs.delete_feed.timeout = 300.0
|
|
86
|
+
|
|
87
|
+
default_config.rpcs.enable_feed.timeout = 300.0
|
|
88
|
+
|
|
89
|
+
default_config.rpcs.disable_feed.timeout = 300.0
|
|
90
|
+
|
|
91
|
+
default_config.rpcs.list_feeds.timeout = 300.0
|
|
92
|
+
default_config.rpcs.list_feeds.retry_policy = {
|
|
93
|
+
initial_delay: 1.0, max_delay: 300.0, multiplier: 1.3, retry_codes: [14]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
default_config.rpcs.list_feed_packs.timeout = 60.0
|
|
97
|
+
default_config.rpcs.list_feed_packs.retry_policy = {
|
|
98
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
default_config.rpcs.get_feed_pack.timeout = 30.0
|
|
102
|
+
default_config.rpcs.get_feed_pack.retry_policy = {
|
|
103
|
+
initial_delay: 1.0, max_delay: 30.0, multiplier: 1.3, retry_codes: [14]
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
default_config.rpcs.update_feed.timeout = 300.0
|
|
107
|
+
|
|
108
|
+
default_config.rpcs.list_feed_source_type_schemas.timeout = 60.0
|
|
109
|
+
default_config.rpcs.list_feed_source_type_schemas.retry_policy = {
|
|
110
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
default_config.rpcs.list_log_type_schemas.timeout = 60.0
|
|
114
|
+
default_config.rpcs.list_log_type_schemas.retry_policy = {
|
|
115
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
default_config.rpcs.import_push_logs.timeout = 120.0
|
|
119
|
+
|
|
120
|
+
default_config.rpcs.generate_secret.timeout = 60.0
|
|
121
|
+
|
|
122
|
+
default_config
|
|
123
|
+
end
|
|
124
|
+
yield @configure if block_given?
|
|
125
|
+
@configure
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
##
|
|
129
|
+
# Configure the FeedsService Client instance.
|
|
130
|
+
#
|
|
131
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
|
132
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
|
133
|
+
# should be made on {Client.configure}.
|
|
134
|
+
#
|
|
135
|
+
# See {::Google::Cloud::Chronicle::V1::FeedsService::Client::Configuration}
|
|
136
|
+
# for a description of the configuration fields.
|
|
137
|
+
#
|
|
138
|
+
# @yield [config] Configure the Client client.
|
|
139
|
+
# @yieldparam config [Client::Configuration]
|
|
140
|
+
#
|
|
141
|
+
# @return [Client::Configuration]
|
|
142
|
+
#
|
|
143
|
+
def configure
|
|
144
|
+
yield @config if block_given?
|
|
145
|
+
@config
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
##
|
|
149
|
+
# The effective universe domain
|
|
150
|
+
#
|
|
151
|
+
# @return [String]
|
|
152
|
+
#
|
|
153
|
+
def universe_domain
|
|
154
|
+
@feeds_service_stub.universe_domain
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
##
|
|
158
|
+
# Create a new FeedsService client object.
|
|
159
|
+
#
|
|
160
|
+
# @example
|
|
161
|
+
#
|
|
162
|
+
# # Create a client using the default configuration
|
|
163
|
+
# client = ::Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
164
|
+
#
|
|
165
|
+
# # Create a client using a custom configuration
|
|
166
|
+
# client = ::Google::Cloud::Chronicle::V1::FeedsService::Client.new do |config|
|
|
167
|
+
# config.timeout = 10.0
|
|
168
|
+
# end
|
|
169
|
+
#
|
|
170
|
+
# @yield [config] Configure the FeedsService client.
|
|
171
|
+
# @yieldparam config [Client::Configuration]
|
|
172
|
+
#
|
|
173
|
+
def initialize
|
|
174
|
+
# These require statements are intentionally placed here to initialize
|
|
175
|
+
# the gRPC module only when it's required.
|
|
176
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
|
177
|
+
require "gapic/grpc"
|
|
178
|
+
require "google/cloud/chronicle/v1/feed_services_pb"
|
|
179
|
+
|
|
180
|
+
# Create the configuration object
|
|
181
|
+
@config = Configuration.new Client.configure
|
|
182
|
+
|
|
183
|
+
# Yield the configuration if needed
|
|
184
|
+
yield @config if block_given?
|
|
185
|
+
|
|
186
|
+
# Create credentials
|
|
187
|
+
credentials = @config.credentials
|
|
188
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
189
|
+
# but only if the default endpoint does not have a region prefix.
|
|
190
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
191
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
192
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
193
|
+
credentials ||= Credentials.default scope: @config.scope,
|
|
194
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
|
195
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
196
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
|
197
|
+
end
|
|
198
|
+
@quota_project_id = @config.quota_project
|
|
199
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
200
|
+
|
|
201
|
+
@feeds_service_stub = ::Gapic::ServiceStub.new(
|
|
202
|
+
::Google::Cloud::Chronicle::V1::FeedsService::Stub,
|
|
203
|
+
credentials: credentials,
|
|
204
|
+
endpoint: @config.endpoint,
|
|
205
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
206
|
+
universe_domain: @config.universe_domain,
|
|
207
|
+
channel_args: @config.channel_args,
|
|
208
|
+
interceptors: @config.interceptors,
|
|
209
|
+
channel_pool_config: @config.channel_pool,
|
|
210
|
+
logger: @config.logger
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
@feeds_service_stub.stub_logger&.info do |entry|
|
|
214
|
+
entry.set_system_name
|
|
215
|
+
entry.set_service
|
|
216
|
+
entry.message = "Created client for #{entry.service}"
|
|
217
|
+
entry.set_credentials_fields credentials
|
|
218
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
219
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
220
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
##
|
|
225
|
+
# The logger used for request/response debug logging.
|
|
226
|
+
#
|
|
227
|
+
# @return [Logger]
|
|
228
|
+
#
|
|
229
|
+
def logger
|
|
230
|
+
@feeds_service_stub.logger
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Service calls
|
|
234
|
+
|
|
235
|
+
##
|
|
236
|
+
# Fetch Chronicle's service account used for ingesting data from Cloud
|
|
237
|
+
# Storage buckets.
|
|
238
|
+
#
|
|
239
|
+
# @overload fetch_service_account_for_customer(request, options = nil)
|
|
240
|
+
# Pass arguments to `fetch_service_account_for_customer` via a request object, either of type
|
|
241
|
+
# {::Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest} or an equivalent Hash.
|
|
242
|
+
#
|
|
243
|
+
# @param request [::Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest, ::Hash]
|
|
244
|
+
# A request object representing the call parameters. Required. To specify no
|
|
245
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
246
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
247
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
248
|
+
#
|
|
249
|
+
# @overload fetch_service_account_for_customer(parent: nil)
|
|
250
|
+
# Pass arguments to `fetch_service_account_for_customer` via keyword arguments. Note that at
|
|
251
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
252
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
253
|
+
#
|
|
254
|
+
# @param parent [::String]
|
|
255
|
+
# Required. The parent resource where this FeedServiceAccount will be
|
|
256
|
+
# created. Format:
|
|
257
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
258
|
+
#
|
|
259
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
260
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::FeedServiceAccount]
|
|
261
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
262
|
+
#
|
|
263
|
+
# @return [::Google::Cloud::Chronicle::V1::FeedServiceAccount]
|
|
264
|
+
#
|
|
265
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
266
|
+
#
|
|
267
|
+
# @example Basic example
|
|
268
|
+
# require "google/cloud/chronicle/v1"
|
|
269
|
+
#
|
|
270
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
271
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
272
|
+
#
|
|
273
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
274
|
+
# request = Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest.new
|
|
275
|
+
#
|
|
276
|
+
# # Call the fetch_service_account_for_customer method.
|
|
277
|
+
# result = client.fetch_service_account_for_customer request
|
|
278
|
+
#
|
|
279
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::FeedServiceAccount.
|
|
280
|
+
# p result
|
|
281
|
+
#
|
|
282
|
+
def fetch_service_account_for_customer request, options = nil
|
|
283
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
284
|
+
|
|
285
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest
|
|
286
|
+
|
|
287
|
+
# Converts hash and nil to an options object
|
|
288
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
289
|
+
|
|
290
|
+
# Customize the options with defaults
|
|
291
|
+
metadata = @config.rpcs.fetch_service_account_for_customer.metadata.to_h
|
|
292
|
+
|
|
293
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
294
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
295
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
296
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
297
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
298
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
299
|
+
|
|
300
|
+
header_params = {}
|
|
301
|
+
if request.parent
|
|
302
|
+
header_params["parent"] = request.parent
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
306
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
307
|
+
|
|
308
|
+
options.apply_defaults timeout: @config.rpcs.fetch_service_account_for_customer.timeout,
|
|
309
|
+
metadata: metadata,
|
|
310
|
+
retry_policy: @config.rpcs.fetch_service_account_for_customer.retry_policy
|
|
311
|
+
|
|
312
|
+
options.apply_defaults timeout: @config.timeout,
|
|
313
|
+
metadata: @config.metadata,
|
|
314
|
+
retry_policy: @config.retry_policy
|
|
315
|
+
|
|
316
|
+
@feeds_service_stub.call_rpc :fetch_service_account_for_customer, request, options: options do |response, operation|
|
|
317
|
+
yield response, operation if block_given?
|
|
318
|
+
end
|
|
319
|
+
rescue ::GRPC::BadStatus => e
|
|
320
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
##
|
|
324
|
+
# Creates a feed.
|
|
325
|
+
#
|
|
326
|
+
# @overload create_feed(request, options = nil)
|
|
327
|
+
# Pass arguments to `create_feed` via a request object, either of type
|
|
328
|
+
# {::Google::Cloud::Chronicle::V1::CreateFeedRequest} or an equivalent Hash.
|
|
329
|
+
#
|
|
330
|
+
# @param request [::Google::Cloud::Chronicle::V1::CreateFeedRequest, ::Hash]
|
|
331
|
+
# A request object representing the call parameters. Required. To specify no
|
|
332
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
333
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
334
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
335
|
+
#
|
|
336
|
+
# @overload create_feed(parent: nil, feed: nil)
|
|
337
|
+
# Pass arguments to `create_feed` via keyword arguments. Note that at
|
|
338
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
339
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
340
|
+
#
|
|
341
|
+
# @param parent [::String]
|
|
342
|
+
# Required. The parent resource where this Feed will be created.
|
|
343
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
344
|
+
# @param feed [::Google::Cloud::Chronicle::V1::Feed, ::Hash]
|
|
345
|
+
# Required. Feed to create.
|
|
346
|
+
#
|
|
347
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
348
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::Feed]
|
|
349
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
350
|
+
#
|
|
351
|
+
# @return [::Google::Cloud::Chronicle::V1::Feed]
|
|
352
|
+
#
|
|
353
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
354
|
+
#
|
|
355
|
+
# @example Basic example
|
|
356
|
+
# require "google/cloud/chronicle/v1"
|
|
357
|
+
#
|
|
358
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
359
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
360
|
+
#
|
|
361
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
362
|
+
# request = Google::Cloud::Chronicle::V1::CreateFeedRequest.new
|
|
363
|
+
#
|
|
364
|
+
# # Call the create_feed method.
|
|
365
|
+
# result = client.create_feed request
|
|
366
|
+
#
|
|
367
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::Feed.
|
|
368
|
+
# p result
|
|
369
|
+
#
|
|
370
|
+
def create_feed request, options = nil
|
|
371
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
372
|
+
|
|
373
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::CreateFeedRequest
|
|
374
|
+
|
|
375
|
+
# Converts hash and nil to an options object
|
|
376
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
377
|
+
|
|
378
|
+
# Customize the options with defaults
|
|
379
|
+
metadata = @config.rpcs.create_feed.metadata.to_h
|
|
380
|
+
|
|
381
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
382
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
383
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
384
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
385
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
386
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
387
|
+
|
|
388
|
+
header_params = {}
|
|
389
|
+
if request.parent
|
|
390
|
+
header_params["parent"] = request.parent
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
394
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
395
|
+
|
|
396
|
+
options.apply_defaults timeout: @config.rpcs.create_feed.timeout,
|
|
397
|
+
metadata: metadata,
|
|
398
|
+
retry_policy: @config.rpcs.create_feed.retry_policy
|
|
399
|
+
|
|
400
|
+
options.apply_defaults timeout: @config.timeout,
|
|
401
|
+
metadata: @config.metadata,
|
|
402
|
+
retry_policy: @config.retry_policy
|
|
403
|
+
|
|
404
|
+
@feeds_service_stub.call_rpc :create_feed, request, options: options do |response, operation|
|
|
405
|
+
yield response, operation if block_given?
|
|
406
|
+
end
|
|
407
|
+
rescue ::GRPC::BadStatus => e
|
|
408
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
##
|
|
412
|
+
# Gets a feed.
|
|
413
|
+
#
|
|
414
|
+
# @overload get_feed(request, options = nil)
|
|
415
|
+
# Pass arguments to `get_feed` via a request object, either of type
|
|
416
|
+
# {::Google::Cloud::Chronicle::V1::GetFeedRequest} or an equivalent Hash.
|
|
417
|
+
#
|
|
418
|
+
# @param request [::Google::Cloud::Chronicle::V1::GetFeedRequest, ::Hash]
|
|
419
|
+
# A request object representing the call parameters. Required. To specify no
|
|
420
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
421
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
422
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
423
|
+
#
|
|
424
|
+
# @overload get_feed(name: nil)
|
|
425
|
+
# Pass arguments to `get_feed` via keyword arguments. Note that at
|
|
426
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
427
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
428
|
+
#
|
|
429
|
+
# @param name [::String]
|
|
430
|
+
# Required. The ID of the feed to retrieve.
|
|
431
|
+
# Format:
|
|
432
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feeds/\\{feed}
|
|
433
|
+
#
|
|
434
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
435
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::Feed]
|
|
436
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
437
|
+
#
|
|
438
|
+
# @return [::Google::Cloud::Chronicle::V1::Feed]
|
|
439
|
+
#
|
|
440
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
441
|
+
#
|
|
442
|
+
# @example Basic example
|
|
443
|
+
# require "google/cloud/chronicle/v1"
|
|
444
|
+
#
|
|
445
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
446
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
447
|
+
#
|
|
448
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
449
|
+
# request = Google::Cloud::Chronicle::V1::GetFeedRequest.new
|
|
450
|
+
#
|
|
451
|
+
# # Call the get_feed method.
|
|
452
|
+
# result = client.get_feed request
|
|
453
|
+
#
|
|
454
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::Feed.
|
|
455
|
+
# p result
|
|
456
|
+
#
|
|
457
|
+
def get_feed request, options = nil
|
|
458
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
459
|
+
|
|
460
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GetFeedRequest
|
|
461
|
+
|
|
462
|
+
# Converts hash and nil to an options object
|
|
463
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
464
|
+
|
|
465
|
+
# Customize the options with defaults
|
|
466
|
+
metadata = @config.rpcs.get_feed.metadata.to_h
|
|
467
|
+
|
|
468
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
469
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
470
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
471
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
472
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
473
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
474
|
+
|
|
475
|
+
header_params = {}
|
|
476
|
+
if request.name
|
|
477
|
+
header_params["name"] = request.name
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
481
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
482
|
+
|
|
483
|
+
options.apply_defaults timeout: @config.rpcs.get_feed.timeout,
|
|
484
|
+
metadata: metadata,
|
|
485
|
+
retry_policy: @config.rpcs.get_feed.retry_policy
|
|
486
|
+
|
|
487
|
+
options.apply_defaults timeout: @config.timeout,
|
|
488
|
+
metadata: @config.metadata,
|
|
489
|
+
retry_policy: @config.retry_policy
|
|
490
|
+
|
|
491
|
+
@feeds_service_stub.call_rpc :get_feed, request, options: options do |response, operation|
|
|
492
|
+
yield response, operation if block_given?
|
|
493
|
+
end
|
|
494
|
+
rescue ::GRPC::BadStatus => e
|
|
495
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
##
|
|
499
|
+
# Deletes a feed.
|
|
500
|
+
#
|
|
501
|
+
# @overload delete_feed(request, options = nil)
|
|
502
|
+
# Pass arguments to `delete_feed` via a request object, either of type
|
|
503
|
+
# {::Google::Cloud::Chronicle::V1::DeleteFeedRequest} or an equivalent Hash.
|
|
504
|
+
#
|
|
505
|
+
# @param request [::Google::Cloud::Chronicle::V1::DeleteFeedRequest, ::Hash]
|
|
506
|
+
# A request object representing the call parameters. Required. To specify no
|
|
507
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
508
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
509
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
510
|
+
#
|
|
511
|
+
# @overload delete_feed(name: nil, delete_backlog: nil)
|
|
512
|
+
# Pass arguments to `delete_feed` via keyword arguments. Note that at
|
|
513
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
514
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
515
|
+
#
|
|
516
|
+
# @param name [::String]
|
|
517
|
+
# Required. The ID of the feed to retrieve.
|
|
518
|
+
# Format:
|
|
519
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feeds/\\{feed}
|
|
520
|
+
# @param delete_backlog [::Boolean]
|
|
521
|
+
# Optional. If true, delete the uningested backlog in OOB retry queue for the
|
|
522
|
+
# feed.
|
|
523
|
+
#
|
|
524
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
525
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
526
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
527
|
+
#
|
|
528
|
+
# @return [::Google::Protobuf::Empty]
|
|
529
|
+
#
|
|
530
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
531
|
+
#
|
|
532
|
+
# @example Basic example
|
|
533
|
+
# require "google/cloud/chronicle/v1"
|
|
534
|
+
#
|
|
535
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
536
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
537
|
+
#
|
|
538
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
539
|
+
# request = Google::Cloud::Chronicle::V1::DeleteFeedRequest.new
|
|
540
|
+
#
|
|
541
|
+
# # Call the delete_feed method.
|
|
542
|
+
# result = client.delete_feed request
|
|
543
|
+
#
|
|
544
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
545
|
+
# p result
|
|
546
|
+
#
|
|
547
|
+
def delete_feed request, options = nil
|
|
548
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
549
|
+
|
|
550
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::DeleteFeedRequest
|
|
551
|
+
|
|
552
|
+
# Converts hash and nil to an options object
|
|
553
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
554
|
+
|
|
555
|
+
# Customize the options with defaults
|
|
556
|
+
metadata = @config.rpcs.delete_feed.metadata.to_h
|
|
557
|
+
|
|
558
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
559
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
560
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
561
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
562
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
563
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
564
|
+
|
|
565
|
+
header_params = {}
|
|
566
|
+
if request.name
|
|
567
|
+
header_params["name"] = request.name
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
571
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
572
|
+
|
|
573
|
+
options.apply_defaults timeout: @config.rpcs.delete_feed.timeout,
|
|
574
|
+
metadata: metadata,
|
|
575
|
+
retry_policy: @config.rpcs.delete_feed.retry_policy
|
|
576
|
+
|
|
577
|
+
options.apply_defaults timeout: @config.timeout,
|
|
578
|
+
metadata: @config.metadata,
|
|
579
|
+
retry_policy: @config.retry_policy
|
|
580
|
+
|
|
581
|
+
@feeds_service_stub.call_rpc :delete_feed, request, options: options do |response, operation|
|
|
582
|
+
yield response, operation if block_given?
|
|
583
|
+
end
|
|
584
|
+
rescue ::GRPC::BadStatus => e
|
|
585
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
##
|
|
589
|
+
# Enable feed for ingestion.
|
|
590
|
+
#
|
|
591
|
+
# @overload enable_feed(request, options = nil)
|
|
592
|
+
# Pass arguments to `enable_feed` via a request object, either of type
|
|
593
|
+
# {::Google::Cloud::Chronicle::V1::EnableFeedRequest} or an equivalent Hash.
|
|
594
|
+
#
|
|
595
|
+
# @param request [::Google::Cloud::Chronicle::V1::EnableFeedRequest, ::Hash]
|
|
596
|
+
# A request object representing the call parameters. Required. To specify no
|
|
597
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
598
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
599
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
600
|
+
#
|
|
601
|
+
# @overload enable_feed(name: nil)
|
|
602
|
+
# Pass arguments to `enable_feed` via keyword arguments. Note that at
|
|
603
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
604
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
605
|
+
#
|
|
606
|
+
# @param name [::String]
|
|
607
|
+
# Required. The name of the feed to enable.
|
|
608
|
+
# Format:
|
|
609
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feeds/\\{feed}
|
|
610
|
+
#
|
|
611
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
612
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::Feed]
|
|
613
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
614
|
+
#
|
|
615
|
+
# @return [::Google::Cloud::Chronicle::V1::Feed]
|
|
616
|
+
#
|
|
617
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
618
|
+
#
|
|
619
|
+
# @example Basic example
|
|
620
|
+
# require "google/cloud/chronicle/v1"
|
|
621
|
+
#
|
|
622
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
623
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
624
|
+
#
|
|
625
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
626
|
+
# request = Google::Cloud::Chronicle::V1::EnableFeedRequest.new
|
|
627
|
+
#
|
|
628
|
+
# # Call the enable_feed method.
|
|
629
|
+
# result = client.enable_feed request
|
|
630
|
+
#
|
|
631
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::Feed.
|
|
632
|
+
# p result
|
|
633
|
+
#
|
|
634
|
+
def enable_feed request, options = nil
|
|
635
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
636
|
+
|
|
637
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::EnableFeedRequest
|
|
638
|
+
|
|
639
|
+
# Converts hash and nil to an options object
|
|
640
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
641
|
+
|
|
642
|
+
# Customize the options with defaults
|
|
643
|
+
metadata = @config.rpcs.enable_feed.metadata.to_h
|
|
644
|
+
|
|
645
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
646
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
647
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
648
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
649
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
650
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
651
|
+
|
|
652
|
+
header_params = {}
|
|
653
|
+
if request.name
|
|
654
|
+
header_params["name"] = request.name
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
658
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
659
|
+
|
|
660
|
+
options.apply_defaults timeout: @config.rpcs.enable_feed.timeout,
|
|
661
|
+
metadata: metadata,
|
|
662
|
+
retry_policy: @config.rpcs.enable_feed.retry_policy
|
|
663
|
+
|
|
664
|
+
options.apply_defaults timeout: @config.timeout,
|
|
665
|
+
metadata: @config.metadata,
|
|
666
|
+
retry_policy: @config.retry_policy
|
|
667
|
+
|
|
668
|
+
@feeds_service_stub.call_rpc :enable_feed, request, options: options do |response, operation|
|
|
669
|
+
yield response, operation if block_given?
|
|
670
|
+
end
|
|
671
|
+
rescue ::GRPC::BadStatus => e
|
|
672
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
##
|
|
676
|
+
# Disable feed for ingestion. Make FeedState ARCHIVED.
|
|
677
|
+
#
|
|
678
|
+
# @overload disable_feed(request, options = nil)
|
|
679
|
+
# Pass arguments to `disable_feed` via a request object, either of type
|
|
680
|
+
# {::Google::Cloud::Chronicle::V1::DisableFeedRequest} or an equivalent Hash.
|
|
681
|
+
#
|
|
682
|
+
# @param request [::Google::Cloud::Chronicle::V1::DisableFeedRequest, ::Hash]
|
|
683
|
+
# A request object representing the call parameters. Required. To specify no
|
|
684
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
685
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
686
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
687
|
+
#
|
|
688
|
+
# @overload disable_feed(name: nil)
|
|
689
|
+
# Pass arguments to `disable_feed` via keyword arguments. Note that at
|
|
690
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
691
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
692
|
+
#
|
|
693
|
+
# @param name [::String]
|
|
694
|
+
# Required. The name of the feed to disable.
|
|
695
|
+
# Format:
|
|
696
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feeds/\\{feed}
|
|
697
|
+
#
|
|
698
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
699
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::Feed]
|
|
700
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
701
|
+
#
|
|
702
|
+
# @return [::Google::Cloud::Chronicle::V1::Feed]
|
|
703
|
+
#
|
|
704
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
705
|
+
#
|
|
706
|
+
# @example Basic example
|
|
707
|
+
# require "google/cloud/chronicle/v1"
|
|
708
|
+
#
|
|
709
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
710
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
711
|
+
#
|
|
712
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
713
|
+
# request = Google::Cloud::Chronicle::V1::DisableFeedRequest.new
|
|
714
|
+
#
|
|
715
|
+
# # Call the disable_feed method.
|
|
716
|
+
# result = client.disable_feed request
|
|
717
|
+
#
|
|
718
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::Feed.
|
|
719
|
+
# p result
|
|
720
|
+
#
|
|
721
|
+
def disable_feed request, options = nil
|
|
722
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
723
|
+
|
|
724
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::DisableFeedRequest
|
|
725
|
+
|
|
726
|
+
# Converts hash and nil to an options object
|
|
727
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
728
|
+
|
|
729
|
+
# Customize the options with defaults
|
|
730
|
+
metadata = @config.rpcs.disable_feed.metadata.to_h
|
|
731
|
+
|
|
732
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
733
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
734
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
735
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
736
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
737
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
738
|
+
|
|
739
|
+
header_params = {}
|
|
740
|
+
if request.name
|
|
741
|
+
header_params["name"] = request.name
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
745
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
746
|
+
|
|
747
|
+
options.apply_defaults timeout: @config.rpcs.disable_feed.timeout,
|
|
748
|
+
metadata: metadata,
|
|
749
|
+
retry_policy: @config.rpcs.disable_feed.retry_policy
|
|
750
|
+
|
|
751
|
+
options.apply_defaults timeout: @config.timeout,
|
|
752
|
+
metadata: @config.metadata,
|
|
753
|
+
retry_policy: @config.retry_policy
|
|
754
|
+
|
|
755
|
+
@feeds_service_stub.call_rpc :disable_feed, request, options: options do |response, operation|
|
|
756
|
+
yield response, operation if block_given?
|
|
757
|
+
end
|
|
758
|
+
rescue ::GRPC::BadStatus => e
|
|
759
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
##
|
|
763
|
+
# Lists all feeds for the customer.
|
|
764
|
+
#
|
|
765
|
+
# @overload list_feeds(request, options = nil)
|
|
766
|
+
# Pass arguments to `list_feeds` via a request object, either of type
|
|
767
|
+
# {::Google::Cloud::Chronicle::V1::ListFeedsRequest} or an equivalent Hash.
|
|
768
|
+
#
|
|
769
|
+
# @param request [::Google::Cloud::Chronicle::V1::ListFeedsRequest, ::Hash]
|
|
770
|
+
# A request object representing the call parameters. Required. To specify no
|
|
771
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
772
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
773
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
774
|
+
#
|
|
775
|
+
# @overload list_feeds(parent: nil, page_size: nil, page_token: nil)
|
|
776
|
+
# Pass arguments to `list_feeds` via keyword arguments. Note that at
|
|
777
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
778
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
779
|
+
#
|
|
780
|
+
# @param parent [::String]
|
|
781
|
+
# Required. The parent resource where this Feed will be created.
|
|
782
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
783
|
+
# @param page_size [::Integer]
|
|
784
|
+
# The maximum number of feeds to return. The service may return fewer than
|
|
785
|
+
# this value.
|
|
786
|
+
# If unspecified, at most 100 feeds will be returned.
|
|
787
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
788
|
+
# @param page_token [::String]
|
|
789
|
+
# A page token, received from a previous `ListFeeds` call. Provide this to
|
|
790
|
+
# retrieve the subsequent page.
|
|
791
|
+
#
|
|
792
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
793
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>]
|
|
794
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
795
|
+
#
|
|
796
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>]
|
|
797
|
+
#
|
|
798
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
799
|
+
#
|
|
800
|
+
# @example Basic example
|
|
801
|
+
# require "google/cloud/chronicle/v1"
|
|
802
|
+
#
|
|
803
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
804
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
805
|
+
#
|
|
806
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
807
|
+
# request = Google::Cloud::Chronicle::V1::ListFeedsRequest.new
|
|
808
|
+
#
|
|
809
|
+
# # Call the list_feeds method.
|
|
810
|
+
# result = client.list_feeds request
|
|
811
|
+
#
|
|
812
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
813
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
814
|
+
# result.each do |item|
|
|
815
|
+
# # Each element is of type ::Google::Cloud::Chronicle::V1::Feed.
|
|
816
|
+
# p item
|
|
817
|
+
# end
|
|
818
|
+
#
|
|
819
|
+
def list_feeds request, options = nil
|
|
820
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
821
|
+
|
|
822
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListFeedsRequest
|
|
823
|
+
|
|
824
|
+
# Converts hash and nil to an options object
|
|
825
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
826
|
+
|
|
827
|
+
# Customize the options with defaults
|
|
828
|
+
metadata = @config.rpcs.list_feeds.metadata.to_h
|
|
829
|
+
|
|
830
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
831
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
832
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
833
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
834
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
835
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
836
|
+
|
|
837
|
+
header_params = {}
|
|
838
|
+
if request.parent
|
|
839
|
+
header_params["parent"] = request.parent
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
843
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
844
|
+
|
|
845
|
+
options.apply_defaults timeout: @config.rpcs.list_feeds.timeout,
|
|
846
|
+
metadata: metadata,
|
|
847
|
+
retry_policy: @config.rpcs.list_feeds.retry_policy
|
|
848
|
+
|
|
849
|
+
options.apply_defaults timeout: @config.timeout,
|
|
850
|
+
metadata: @config.metadata,
|
|
851
|
+
retry_policy: @config.retry_policy
|
|
852
|
+
|
|
853
|
+
@feeds_service_stub.call_rpc :list_feeds, request, options: options do |response, operation|
|
|
854
|
+
response = ::Gapic::PagedEnumerable.new @feeds_service_stub, :list_feeds, request, response, operation, options
|
|
855
|
+
yield response, operation if block_given?
|
|
856
|
+
throw :response, response
|
|
857
|
+
end
|
|
858
|
+
rescue ::GRPC::BadStatus => e
|
|
859
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
##
|
|
863
|
+
# Lists Packs for which feeds can be configured.
|
|
864
|
+
#
|
|
865
|
+
# @overload list_feed_packs(request, options = nil)
|
|
866
|
+
# Pass arguments to `list_feed_packs` via a request object, either of type
|
|
867
|
+
# {::Google::Cloud::Chronicle::V1::ListFeedPacksRequest} or an equivalent Hash.
|
|
868
|
+
#
|
|
869
|
+
# @param request [::Google::Cloud::Chronicle::V1::ListFeedPacksRequest, ::Hash]
|
|
870
|
+
# A request object representing the call parameters. Required. To specify no
|
|
871
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
872
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
873
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
874
|
+
#
|
|
875
|
+
# @overload list_feed_packs(parent: nil, page_size: nil, page_token: nil)
|
|
876
|
+
# Pass arguments to `list_feed_packs` via keyword arguments. Note that at
|
|
877
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
878
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
879
|
+
#
|
|
880
|
+
# @param parent [::String]
|
|
881
|
+
# Required. The parent resource where this content pack will be created.
|
|
882
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
883
|
+
# @param page_size [::Integer]
|
|
884
|
+
# Optional. The maximum number of feed content packs to return. The service
|
|
885
|
+
# may return fewer than this value. If unspecified, at most 50 feed content
|
|
886
|
+
# packs will be returned. The maximum value is 1000; values above 1000 will
|
|
887
|
+
# be coerced to 1000.
|
|
888
|
+
# @param page_token [::String]
|
|
889
|
+
# Optional. A page token, received from a previous `ListFeedPacks` call.
|
|
890
|
+
# Provide this to retrieve the subsequent page. When paginating, all other
|
|
891
|
+
# parameters provided to `ListFeedPacks` must match the call that provided
|
|
892
|
+
# the page token.
|
|
893
|
+
#
|
|
894
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
895
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>]
|
|
896
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
897
|
+
#
|
|
898
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>]
|
|
899
|
+
#
|
|
900
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
901
|
+
#
|
|
902
|
+
# @example Basic example
|
|
903
|
+
# require "google/cloud/chronicle/v1"
|
|
904
|
+
#
|
|
905
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
906
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
907
|
+
#
|
|
908
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
909
|
+
# request = Google::Cloud::Chronicle::V1::ListFeedPacksRequest.new
|
|
910
|
+
#
|
|
911
|
+
# # Call the list_feed_packs method.
|
|
912
|
+
# result = client.list_feed_packs request
|
|
913
|
+
#
|
|
914
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
915
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
916
|
+
# result.each do |item|
|
|
917
|
+
# # Each element is of type ::Google::Cloud::Chronicle::V1::FeedPack.
|
|
918
|
+
# p item
|
|
919
|
+
# end
|
|
920
|
+
#
|
|
921
|
+
def list_feed_packs request, options = nil
|
|
922
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
923
|
+
|
|
924
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListFeedPacksRequest
|
|
925
|
+
|
|
926
|
+
# Converts hash and nil to an options object
|
|
927
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
928
|
+
|
|
929
|
+
# Customize the options with defaults
|
|
930
|
+
metadata = @config.rpcs.list_feed_packs.metadata.to_h
|
|
931
|
+
|
|
932
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
933
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
934
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
935
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
936
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
937
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
938
|
+
|
|
939
|
+
header_params = {}
|
|
940
|
+
if request.parent
|
|
941
|
+
header_params["parent"] = request.parent
|
|
942
|
+
end
|
|
943
|
+
|
|
944
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
945
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
946
|
+
|
|
947
|
+
options.apply_defaults timeout: @config.rpcs.list_feed_packs.timeout,
|
|
948
|
+
metadata: metadata,
|
|
949
|
+
retry_policy: @config.rpcs.list_feed_packs.retry_policy
|
|
950
|
+
|
|
951
|
+
options.apply_defaults timeout: @config.timeout,
|
|
952
|
+
metadata: @config.metadata,
|
|
953
|
+
retry_policy: @config.retry_policy
|
|
954
|
+
|
|
955
|
+
@feeds_service_stub.call_rpc :list_feed_packs, request, options: options do |response, operation|
|
|
956
|
+
response = ::Gapic::PagedEnumerable.new @feeds_service_stub, :list_feed_packs, request, response, operation, options
|
|
957
|
+
yield response, operation if block_given?
|
|
958
|
+
throw :response, response
|
|
959
|
+
end
|
|
960
|
+
rescue ::GRPC::BadStatus => e
|
|
961
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
##
|
|
965
|
+
# Gets a feed pack.
|
|
966
|
+
#
|
|
967
|
+
# @overload get_feed_pack(request, options = nil)
|
|
968
|
+
# Pass arguments to `get_feed_pack` via a request object, either of type
|
|
969
|
+
# {::Google::Cloud::Chronicle::V1::GetFeedPackRequest} or an equivalent Hash.
|
|
970
|
+
#
|
|
971
|
+
# @param request [::Google::Cloud::Chronicle::V1::GetFeedPackRequest, ::Hash]
|
|
972
|
+
# A request object representing the call parameters. Required. To specify no
|
|
973
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
974
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
975
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
976
|
+
#
|
|
977
|
+
# @overload get_feed_pack(name: nil)
|
|
978
|
+
# Pass arguments to `get_feed_pack` via keyword arguments. Note that at
|
|
979
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
980
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
981
|
+
#
|
|
982
|
+
# @param name [::String]
|
|
983
|
+
# Required. The ID of the feed pack to retrieve.
|
|
984
|
+
# Format:
|
|
985
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feedPacks/\\{feedPack}
|
|
986
|
+
#
|
|
987
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
988
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::FeedPack]
|
|
989
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
990
|
+
#
|
|
991
|
+
# @return [::Google::Cloud::Chronicle::V1::FeedPack]
|
|
992
|
+
#
|
|
993
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
994
|
+
#
|
|
995
|
+
# @example Basic example
|
|
996
|
+
# require "google/cloud/chronicle/v1"
|
|
997
|
+
#
|
|
998
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
999
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
1000
|
+
#
|
|
1001
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1002
|
+
# request = Google::Cloud::Chronicle::V1::GetFeedPackRequest.new
|
|
1003
|
+
#
|
|
1004
|
+
# # Call the get_feed_pack method.
|
|
1005
|
+
# result = client.get_feed_pack request
|
|
1006
|
+
#
|
|
1007
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::FeedPack.
|
|
1008
|
+
# p result
|
|
1009
|
+
#
|
|
1010
|
+
def get_feed_pack request, options = nil
|
|
1011
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1012
|
+
|
|
1013
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GetFeedPackRequest
|
|
1014
|
+
|
|
1015
|
+
# Converts hash and nil to an options object
|
|
1016
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1017
|
+
|
|
1018
|
+
# Customize the options with defaults
|
|
1019
|
+
metadata = @config.rpcs.get_feed_pack.metadata.to_h
|
|
1020
|
+
|
|
1021
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1022
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1023
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1024
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
1025
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1026
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1027
|
+
|
|
1028
|
+
header_params = {}
|
|
1029
|
+
if request.name
|
|
1030
|
+
header_params["name"] = request.name
|
|
1031
|
+
end
|
|
1032
|
+
|
|
1033
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1034
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1035
|
+
|
|
1036
|
+
options.apply_defaults timeout: @config.rpcs.get_feed_pack.timeout,
|
|
1037
|
+
metadata: metadata,
|
|
1038
|
+
retry_policy: @config.rpcs.get_feed_pack.retry_policy
|
|
1039
|
+
|
|
1040
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1041
|
+
metadata: @config.metadata,
|
|
1042
|
+
retry_policy: @config.retry_policy
|
|
1043
|
+
|
|
1044
|
+
@feeds_service_stub.call_rpc :get_feed_pack, request, options: options do |response, operation|
|
|
1045
|
+
yield response, operation if block_given?
|
|
1046
|
+
end
|
|
1047
|
+
rescue ::GRPC::BadStatus => e
|
|
1048
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
##
|
|
1052
|
+
# Updates the full feed.
|
|
1053
|
+
#
|
|
1054
|
+
# @overload update_feed(request, options = nil)
|
|
1055
|
+
# Pass arguments to `update_feed` via a request object, either of type
|
|
1056
|
+
# {::Google::Cloud::Chronicle::V1::UpdateFeedRequest} or an equivalent Hash.
|
|
1057
|
+
#
|
|
1058
|
+
# @param request [::Google::Cloud::Chronicle::V1::UpdateFeedRequest, ::Hash]
|
|
1059
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1060
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1061
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1062
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1063
|
+
#
|
|
1064
|
+
# @overload update_feed(feed: nil, update_mask: nil)
|
|
1065
|
+
# Pass arguments to `update_feed` via keyword arguments. Note that at
|
|
1066
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1067
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1068
|
+
#
|
|
1069
|
+
# @param feed [::Google::Cloud::Chronicle::V1::Feed, ::Hash]
|
|
1070
|
+
# Required. Feed to update. Updates full feed object.
|
|
1071
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1072
|
+
# Optional. Specifies which fields to update. If empty, update the full feed.
|
|
1073
|
+
# To update the display name, pass only `displayName` and no other
|
|
1074
|
+
# fields. To update other fields, pass a comma-separated list of fields to
|
|
1075
|
+
# update and omit `displayName`. The update fails if an existing
|
|
1076
|
+
# `displayName` is sent in the update request.
|
|
1077
|
+
#
|
|
1078
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1079
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::Feed]
|
|
1080
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1081
|
+
#
|
|
1082
|
+
# @return [::Google::Cloud::Chronicle::V1::Feed]
|
|
1083
|
+
#
|
|
1084
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1085
|
+
#
|
|
1086
|
+
# @example Basic example
|
|
1087
|
+
# require "google/cloud/chronicle/v1"
|
|
1088
|
+
#
|
|
1089
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1090
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
1091
|
+
#
|
|
1092
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1093
|
+
# request = Google::Cloud::Chronicle::V1::UpdateFeedRequest.new
|
|
1094
|
+
#
|
|
1095
|
+
# # Call the update_feed method.
|
|
1096
|
+
# result = client.update_feed request
|
|
1097
|
+
#
|
|
1098
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::Feed.
|
|
1099
|
+
# p result
|
|
1100
|
+
#
|
|
1101
|
+
def update_feed request, options = nil
|
|
1102
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1103
|
+
|
|
1104
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::UpdateFeedRequest
|
|
1105
|
+
|
|
1106
|
+
# Converts hash and nil to an options object
|
|
1107
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1108
|
+
|
|
1109
|
+
# Customize the options with defaults
|
|
1110
|
+
metadata = @config.rpcs.update_feed.metadata.to_h
|
|
1111
|
+
|
|
1112
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1113
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1114
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1115
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
1116
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1117
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1118
|
+
|
|
1119
|
+
header_params = {}
|
|
1120
|
+
if request.feed&.name
|
|
1121
|
+
header_params["feed.name"] = request.feed.name
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1125
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1126
|
+
|
|
1127
|
+
options.apply_defaults timeout: @config.rpcs.update_feed.timeout,
|
|
1128
|
+
metadata: metadata,
|
|
1129
|
+
retry_policy: @config.rpcs.update_feed.retry_policy
|
|
1130
|
+
|
|
1131
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1132
|
+
metadata: @config.metadata,
|
|
1133
|
+
retry_policy: @config.retry_policy
|
|
1134
|
+
|
|
1135
|
+
@feeds_service_stub.call_rpc :update_feed, request, options: options do |response, operation|
|
|
1136
|
+
yield response, operation if block_given?
|
|
1137
|
+
end
|
|
1138
|
+
rescue ::GRPC::BadStatus => e
|
|
1139
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1142
|
+
##
|
|
1143
|
+
# List all FeedSourceTypeSchemas.
|
|
1144
|
+
#
|
|
1145
|
+
# @overload list_feed_source_type_schemas(request, options = nil)
|
|
1146
|
+
# Pass arguments to `list_feed_source_type_schemas` via a request object, either of type
|
|
1147
|
+
# {::Google::Cloud::Chronicle::V1::ListFeedSourceTypeSchemasRequest} or an equivalent Hash.
|
|
1148
|
+
#
|
|
1149
|
+
# @param request [::Google::Cloud::Chronicle::V1::ListFeedSourceTypeSchemasRequest, ::Hash]
|
|
1150
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1151
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1152
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1153
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1154
|
+
#
|
|
1155
|
+
# @overload list_feed_source_type_schemas(parent: nil, page_size: nil, page_token: nil)
|
|
1156
|
+
# Pass arguments to `list_feed_source_type_schemas` via keyword arguments. Note that at
|
|
1157
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1158
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1159
|
+
#
|
|
1160
|
+
# @param parent [::String]
|
|
1161
|
+
# Required. The parent, which owns this collection of FeedSourceTypeSchemas.
|
|
1162
|
+
# Format: projects/\\{project}/locations/\\{location}/instances/\\{instance}
|
|
1163
|
+
# @param page_size [::Integer]
|
|
1164
|
+
# The maximum number of FeedSourceTypeSchemas to return. The service may
|
|
1165
|
+
# return fewer than this value. If unspecified all FeedSourceTypeSchemas will
|
|
1166
|
+
# be returned, meaning one FeedSourceTypeSchema for each
|
|
1167
|
+
# FeedDetails.FeedSourceType.
|
|
1168
|
+
# The maximum value is 100; values above 100 will be coerced to 100.
|
|
1169
|
+
# @param page_token [::String]
|
|
1170
|
+
# A page token, received from a previous `ListFeedSourceTypeSchemas` call.
|
|
1171
|
+
# Provide this to retrieve the subsequent page.
|
|
1172
|
+
#
|
|
1173
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1174
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>]
|
|
1175
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1176
|
+
#
|
|
1177
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>]
|
|
1178
|
+
#
|
|
1179
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1180
|
+
#
|
|
1181
|
+
# @example Basic example
|
|
1182
|
+
# require "google/cloud/chronicle/v1"
|
|
1183
|
+
#
|
|
1184
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1185
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
1186
|
+
#
|
|
1187
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1188
|
+
# request = Google::Cloud::Chronicle::V1::ListFeedSourceTypeSchemasRequest.new
|
|
1189
|
+
#
|
|
1190
|
+
# # Call the list_feed_source_type_schemas method.
|
|
1191
|
+
# result = client.list_feed_source_type_schemas request
|
|
1192
|
+
#
|
|
1193
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1194
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1195
|
+
# result.each do |item|
|
|
1196
|
+
# # Each element is of type ::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema.
|
|
1197
|
+
# p item
|
|
1198
|
+
# end
|
|
1199
|
+
#
|
|
1200
|
+
def list_feed_source_type_schemas request, options = nil
|
|
1201
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1202
|
+
|
|
1203
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListFeedSourceTypeSchemasRequest
|
|
1204
|
+
|
|
1205
|
+
# Converts hash and nil to an options object
|
|
1206
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1207
|
+
|
|
1208
|
+
# Customize the options with defaults
|
|
1209
|
+
metadata = @config.rpcs.list_feed_source_type_schemas.metadata.to_h
|
|
1210
|
+
|
|
1211
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1212
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1213
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1214
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
1215
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1216
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1217
|
+
|
|
1218
|
+
header_params = {}
|
|
1219
|
+
if request.parent
|
|
1220
|
+
header_params["parent"] = request.parent
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1224
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1225
|
+
|
|
1226
|
+
options.apply_defaults timeout: @config.rpcs.list_feed_source_type_schemas.timeout,
|
|
1227
|
+
metadata: metadata,
|
|
1228
|
+
retry_policy: @config.rpcs.list_feed_source_type_schemas.retry_policy
|
|
1229
|
+
|
|
1230
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1231
|
+
metadata: @config.metadata,
|
|
1232
|
+
retry_policy: @config.retry_policy
|
|
1233
|
+
|
|
1234
|
+
@feeds_service_stub.call_rpc :list_feed_source_type_schemas, request, options: options do |response, operation|
|
|
1235
|
+
response = ::Gapic::PagedEnumerable.new @feeds_service_stub, :list_feed_source_type_schemas, request, response, operation, options
|
|
1236
|
+
yield response, operation if block_given?
|
|
1237
|
+
throw :response, response
|
|
1238
|
+
end
|
|
1239
|
+
rescue ::GRPC::BadStatus => e
|
|
1240
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1241
|
+
end
|
|
1242
|
+
|
|
1243
|
+
##
|
|
1244
|
+
# List all LogTypeSchemas compatible with a given
|
|
1245
|
+
# FeedSourceType.
|
|
1246
|
+
#
|
|
1247
|
+
# @overload list_log_type_schemas(request, options = nil)
|
|
1248
|
+
# Pass arguments to `list_log_type_schemas` via a request object, either of type
|
|
1249
|
+
# {::Google::Cloud::Chronicle::V1::ListLogTypeSchemasRequest} or an equivalent Hash.
|
|
1250
|
+
#
|
|
1251
|
+
# @param request [::Google::Cloud::Chronicle::V1::ListLogTypeSchemasRequest, ::Hash]
|
|
1252
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1253
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1254
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1255
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1256
|
+
#
|
|
1257
|
+
# @overload list_log_type_schemas(parent: nil, page_size: nil, page_token: nil)
|
|
1258
|
+
# Pass arguments to `list_log_type_schemas` via keyword arguments. Note that at
|
|
1259
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1260
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1261
|
+
#
|
|
1262
|
+
# @param parent [::String]
|
|
1263
|
+
# Required. The parent, which owns this collection of LogTypeSchemas.
|
|
1264
|
+
# Format: Format:
|
|
1265
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feedSourceTypeSchemas/\\{feed_source_type}
|
|
1266
|
+
# @param page_size [::Integer]
|
|
1267
|
+
# The maximum number of LogTypeSchemas to return. The service may return
|
|
1268
|
+
# fewer than this value.
|
|
1269
|
+
# If unspecified, at most 5000 LogTypeSchemas will be returned.
|
|
1270
|
+
# The maximum value is 10000; values above 10000 will be coerced to 10000.
|
|
1271
|
+
# @param page_token [::String]
|
|
1272
|
+
# A page token, received from a previous `ListLogTypeSchemas` call. Provide
|
|
1273
|
+
# this to retrieve the subsequent page.
|
|
1274
|
+
#
|
|
1275
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1276
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>]
|
|
1277
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1278
|
+
#
|
|
1279
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>]
|
|
1280
|
+
#
|
|
1281
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1282
|
+
#
|
|
1283
|
+
# @example Basic example
|
|
1284
|
+
# require "google/cloud/chronicle/v1"
|
|
1285
|
+
#
|
|
1286
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1287
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
1288
|
+
#
|
|
1289
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1290
|
+
# request = Google::Cloud::Chronicle::V1::ListLogTypeSchemasRequest.new
|
|
1291
|
+
#
|
|
1292
|
+
# # Call the list_log_type_schemas method.
|
|
1293
|
+
# result = client.list_log_type_schemas request
|
|
1294
|
+
#
|
|
1295
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1296
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1297
|
+
# result.each do |item|
|
|
1298
|
+
# # Each element is of type ::Google::Cloud::Chronicle::V1::LogTypeSchema.
|
|
1299
|
+
# p item
|
|
1300
|
+
# end
|
|
1301
|
+
#
|
|
1302
|
+
def list_log_type_schemas request, options = nil
|
|
1303
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1304
|
+
|
|
1305
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ListLogTypeSchemasRequest
|
|
1306
|
+
|
|
1307
|
+
# Converts hash and nil to an options object
|
|
1308
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1309
|
+
|
|
1310
|
+
# Customize the options with defaults
|
|
1311
|
+
metadata = @config.rpcs.list_log_type_schemas.metadata.to_h
|
|
1312
|
+
|
|
1313
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1314
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1315
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1316
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
1317
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1318
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1319
|
+
|
|
1320
|
+
header_params = {}
|
|
1321
|
+
if request.parent
|
|
1322
|
+
header_params["parent"] = request.parent
|
|
1323
|
+
end
|
|
1324
|
+
|
|
1325
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1326
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1327
|
+
|
|
1328
|
+
options.apply_defaults timeout: @config.rpcs.list_log_type_schemas.timeout,
|
|
1329
|
+
metadata: metadata,
|
|
1330
|
+
retry_policy: @config.rpcs.list_log_type_schemas.retry_policy
|
|
1331
|
+
|
|
1332
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1333
|
+
metadata: @config.metadata,
|
|
1334
|
+
retry_policy: @config.retry_policy
|
|
1335
|
+
|
|
1336
|
+
@feeds_service_stub.call_rpc :list_log_type_schemas, request, options: options do |response, operation|
|
|
1337
|
+
response = ::Gapic::PagedEnumerable.new @feeds_service_stub, :list_log_type_schemas, request, response, operation, options
|
|
1338
|
+
yield response, operation if block_given?
|
|
1339
|
+
throw :response, response
|
|
1340
|
+
end
|
|
1341
|
+
rescue ::GRPC::BadStatus => e
|
|
1342
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1343
|
+
end
|
|
1344
|
+
|
|
1345
|
+
##
|
|
1346
|
+
# Import logs coming from https push feeds.
|
|
1347
|
+
# All log entries must be valid UTF-8. A single invalid event will cause the
|
|
1348
|
+
# entire request to be rejected.
|
|
1349
|
+
#
|
|
1350
|
+
# @overload import_push_logs(request, options = nil)
|
|
1351
|
+
# Pass arguments to `import_push_logs` via a request object, either of type
|
|
1352
|
+
# {::Google::Cloud::Chronicle::V1::ImportPushLogsRequest} or an equivalent Hash.
|
|
1353
|
+
#
|
|
1354
|
+
# @param request [::Google::Cloud::Chronicle::V1::ImportPushLogsRequest, ::Hash]
|
|
1355
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1356
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1357
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1358
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1359
|
+
#
|
|
1360
|
+
# @overload import_push_logs(parent: nil, http_body: nil, secret: nil)
|
|
1361
|
+
# Pass arguments to `import_push_logs` via keyword arguments. Note that at
|
|
1362
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1363
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1364
|
+
#
|
|
1365
|
+
# @param parent [::String]
|
|
1366
|
+
# Required. The parent, which owns this collection of logs.
|
|
1367
|
+
# Format:
|
|
1368
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feeds/\\{feed}
|
|
1369
|
+
# @param http_body [::Google::Api::HttpBody, ::Hash]
|
|
1370
|
+
# Required. The raw HTTP body is bound to this field.
|
|
1371
|
+
# All log entries must be valid UTF-8. A single invalid event will cause the
|
|
1372
|
+
# entire request to be rejected.
|
|
1373
|
+
# @param secret [::String]
|
|
1374
|
+
# Immutable. The secret for the feed.
|
|
1375
|
+
#
|
|
1376
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1377
|
+
# @yieldparam response [::Google::Api::HttpBody]
|
|
1378
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1379
|
+
#
|
|
1380
|
+
# @return [::Google::Api::HttpBody]
|
|
1381
|
+
#
|
|
1382
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1383
|
+
#
|
|
1384
|
+
# @example Basic example
|
|
1385
|
+
# require "google/cloud/chronicle/v1"
|
|
1386
|
+
#
|
|
1387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1388
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
1389
|
+
#
|
|
1390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1391
|
+
# request = Google::Cloud::Chronicle::V1::ImportPushLogsRequest.new
|
|
1392
|
+
#
|
|
1393
|
+
# # Call the import_push_logs method.
|
|
1394
|
+
# result = client.import_push_logs request
|
|
1395
|
+
#
|
|
1396
|
+
# # The returned object is of type Google::Api::HttpBody.
|
|
1397
|
+
# p result
|
|
1398
|
+
#
|
|
1399
|
+
def import_push_logs request, options = nil
|
|
1400
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1401
|
+
|
|
1402
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::ImportPushLogsRequest
|
|
1403
|
+
|
|
1404
|
+
# Converts hash and nil to an options object
|
|
1405
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1406
|
+
|
|
1407
|
+
# Customize the options with defaults
|
|
1408
|
+
metadata = @config.rpcs.import_push_logs.metadata.to_h
|
|
1409
|
+
|
|
1410
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1411
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1412
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1413
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
1414
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1415
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1416
|
+
|
|
1417
|
+
header_params = {}
|
|
1418
|
+
if request.parent
|
|
1419
|
+
header_params["parent"] = request.parent
|
|
1420
|
+
end
|
|
1421
|
+
|
|
1422
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1423
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1424
|
+
|
|
1425
|
+
options.apply_defaults timeout: @config.rpcs.import_push_logs.timeout,
|
|
1426
|
+
metadata: metadata,
|
|
1427
|
+
retry_policy: @config.rpcs.import_push_logs.retry_policy
|
|
1428
|
+
|
|
1429
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1430
|
+
metadata: @config.metadata,
|
|
1431
|
+
retry_policy: @config.retry_policy
|
|
1432
|
+
|
|
1433
|
+
@feeds_service_stub.call_rpc :import_push_logs, request, options: options do |response, operation|
|
|
1434
|
+
yield response, operation if block_given?
|
|
1435
|
+
end
|
|
1436
|
+
rescue ::GRPC::BadStatus => e
|
|
1437
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1438
|
+
end
|
|
1439
|
+
|
|
1440
|
+
##
|
|
1441
|
+
# Generates a new secret for https push feeds which do not support jwt
|
|
1442
|
+
# tokens. Secrets once generated should be copied and stored in safe place
|
|
1443
|
+
# to be used while configuring https push feeds.Please note that you can
|
|
1444
|
+
# always generate a new secret again for a feed using this API but it will
|
|
1445
|
+
# invalidate the previously generated secret for the feed.
|
|
1446
|
+
#
|
|
1447
|
+
# @overload generate_secret(request, options = nil)
|
|
1448
|
+
# Pass arguments to `generate_secret` via a request object, either of type
|
|
1449
|
+
# {::Google::Cloud::Chronicle::V1::GenerateSecretRequest} or an equivalent Hash.
|
|
1450
|
+
#
|
|
1451
|
+
# @param request [::Google::Cloud::Chronicle::V1::GenerateSecretRequest, ::Hash]
|
|
1452
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1453
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1454
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1455
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1456
|
+
#
|
|
1457
|
+
# @overload generate_secret(name: nil)
|
|
1458
|
+
# Pass arguments to `generate_secret` via keyword arguments. Note that at
|
|
1459
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1460
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1461
|
+
#
|
|
1462
|
+
# @param name [::String]
|
|
1463
|
+
# Required. The name of the feed to for which to generate secret.
|
|
1464
|
+
# Format:
|
|
1465
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance}/feeds/\\{feed}
|
|
1466
|
+
#
|
|
1467
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
1468
|
+
# @yieldparam response [::Google::Cloud::Chronicle::V1::GenerateSecretResponse]
|
|
1469
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
1470
|
+
#
|
|
1471
|
+
# @return [::Google::Cloud::Chronicle::V1::GenerateSecretResponse]
|
|
1472
|
+
#
|
|
1473
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
1474
|
+
#
|
|
1475
|
+
# @example Basic example
|
|
1476
|
+
# require "google/cloud/chronicle/v1"
|
|
1477
|
+
#
|
|
1478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1479
|
+
# client = Google::Cloud::Chronicle::V1::FeedsService::Client.new
|
|
1480
|
+
#
|
|
1481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1482
|
+
# request = Google::Cloud::Chronicle::V1::GenerateSecretRequest.new
|
|
1483
|
+
#
|
|
1484
|
+
# # Call the generate_secret method.
|
|
1485
|
+
# result = client.generate_secret request
|
|
1486
|
+
#
|
|
1487
|
+
# # The returned object is of type Google::Cloud::Chronicle::V1::GenerateSecretResponse.
|
|
1488
|
+
# p result
|
|
1489
|
+
#
|
|
1490
|
+
def generate_secret request, options = nil
|
|
1491
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1492
|
+
|
|
1493
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Chronicle::V1::GenerateSecretRequest
|
|
1494
|
+
|
|
1495
|
+
# Converts hash and nil to an options object
|
|
1496
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1497
|
+
|
|
1498
|
+
# Customize the options with defaults
|
|
1499
|
+
metadata = @config.rpcs.generate_secret.metadata.to_h
|
|
1500
|
+
|
|
1501
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1502
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1503
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1504
|
+
gapic_version: ::Google::Cloud::Chronicle::V1::VERSION
|
|
1505
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1506
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1507
|
+
|
|
1508
|
+
header_params = {}
|
|
1509
|
+
if request.name
|
|
1510
|
+
header_params["name"] = request.name
|
|
1511
|
+
end
|
|
1512
|
+
|
|
1513
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
1514
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
1515
|
+
|
|
1516
|
+
options.apply_defaults timeout: @config.rpcs.generate_secret.timeout,
|
|
1517
|
+
metadata: metadata,
|
|
1518
|
+
retry_policy: @config.rpcs.generate_secret.retry_policy
|
|
1519
|
+
|
|
1520
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1521
|
+
metadata: @config.metadata,
|
|
1522
|
+
retry_policy: @config.retry_policy
|
|
1523
|
+
|
|
1524
|
+
@feeds_service_stub.call_rpc :generate_secret, request, options: options do |response, operation|
|
|
1525
|
+
yield response, operation if block_given?
|
|
1526
|
+
end
|
|
1527
|
+
rescue ::GRPC::BadStatus => e
|
|
1528
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1529
|
+
end
|
|
1530
|
+
|
|
1531
|
+
##
|
|
1532
|
+
# Configuration class for the FeedsService API.
|
|
1533
|
+
#
|
|
1534
|
+
# This class represents the configuration for FeedsService,
|
|
1535
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
1536
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
1537
|
+
# applied individually to specific RPCs. See
|
|
1538
|
+
# {::Google::Cloud::Chronicle::V1::FeedsService::Client::Configuration::Rpcs}
|
|
1539
|
+
# for a list of RPCs that can be configured independently.
|
|
1540
|
+
#
|
|
1541
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
1542
|
+
# on construction.
|
|
1543
|
+
#
|
|
1544
|
+
# @example
|
|
1545
|
+
#
|
|
1546
|
+
# # Modify the global config, setting the timeout for
|
|
1547
|
+
# # fetch_service_account_for_customer to 20 seconds,
|
|
1548
|
+
# # and all remaining timeouts to 10 seconds.
|
|
1549
|
+
# ::Google::Cloud::Chronicle::V1::FeedsService::Client.configure do |config|
|
|
1550
|
+
# config.timeout = 10.0
|
|
1551
|
+
# config.rpcs.fetch_service_account_for_customer.timeout = 20.0
|
|
1552
|
+
# end
|
|
1553
|
+
#
|
|
1554
|
+
# # Apply the above configuration only to a new client.
|
|
1555
|
+
# client = ::Google::Cloud::Chronicle::V1::FeedsService::Client.new do |config|
|
|
1556
|
+
# config.timeout = 10.0
|
|
1557
|
+
# config.rpcs.fetch_service_account_for_customer.timeout = 20.0
|
|
1558
|
+
# end
|
|
1559
|
+
#
|
|
1560
|
+
# @!attribute [rw] endpoint
|
|
1561
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1562
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1563
|
+
# @return [::String,nil]
|
|
1564
|
+
# @!attribute [rw] credentials
|
|
1565
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
1566
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
1567
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
1568
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
1569
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
1570
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
|
1571
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
1572
|
+
# * (`nil`) indicating no credentials
|
|
1573
|
+
#
|
|
1574
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
1575
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
1576
|
+
# Google APIs can compromise the security of your systems and data.
|
|
1577
|
+
#
|
|
1578
|
+
# @example
|
|
1579
|
+
#
|
|
1580
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
1581
|
+
# # on the appropriate credentials class for your environment.
|
|
1582
|
+
#
|
|
1583
|
+
# require "googleauth"
|
|
1584
|
+
#
|
|
1585
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
1586
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
1587
|
+
# )
|
|
1588
|
+
#
|
|
1589
|
+
# client = ::Google::Cloud::Chronicle::V1::FeedsService::Client.new do |config|
|
|
1590
|
+
# config.credentials = credentials
|
|
1591
|
+
# end
|
|
1592
|
+
#
|
|
1593
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
1594
|
+
# external source for authentication to Google Cloud, you must validate it before
|
|
1595
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
|
1596
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
|
1597
|
+
# For more information, refer to [Validate credential configurations from external
|
|
1598
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
1599
|
+
# @return [::Object]
|
|
1600
|
+
# @!attribute [rw] scope
|
|
1601
|
+
# The OAuth scopes
|
|
1602
|
+
# @return [::Array<::String>]
|
|
1603
|
+
# @!attribute [rw] lib_name
|
|
1604
|
+
# The library name as recorded in instrumentation and logging
|
|
1605
|
+
# @return [::String]
|
|
1606
|
+
# @!attribute [rw] lib_version
|
|
1607
|
+
# The library version as recorded in instrumentation and logging
|
|
1608
|
+
# @return [::String]
|
|
1609
|
+
# @!attribute [rw] channel_args
|
|
1610
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
|
1611
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
|
1612
|
+
# @return [::Hash]
|
|
1613
|
+
# @!attribute [rw] interceptors
|
|
1614
|
+
# An array of interceptors that are run before calls are executed.
|
|
1615
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
|
1616
|
+
# @!attribute [rw] timeout
|
|
1617
|
+
# The call timeout in seconds.
|
|
1618
|
+
# @return [::Numeric]
|
|
1619
|
+
# @!attribute [rw] metadata
|
|
1620
|
+
# Additional gRPC headers to be sent with the call.
|
|
1621
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
1622
|
+
# @!attribute [rw] retry_policy
|
|
1623
|
+
# The retry policy. The value is a hash with the following keys:
|
|
1624
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1625
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1626
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1627
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1628
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1629
|
+
# trigger a retry.
|
|
1630
|
+
# @return [::Hash]
|
|
1631
|
+
# @!attribute [rw] quota_project
|
|
1632
|
+
# A separate project against which to charge quota.
|
|
1633
|
+
# @return [::String]
|
|
1634
|
+
# @!attribute [rw] universe_domain
|
|
1635
|
+
# The universe domain within which to make requests. This determines the
|
|
1636
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1637
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1638
|
+
# @return [::String,nil]
|
|
1639
|
+
# @!attribute [rw] logger
|
|
1640
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
1641
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
1642
|
+
# explicitly disable logging.
|
|
1643
|
+
# @return [::Logger,:default,nil]
|
|
1644
|
+
#
|
|
1645
|
+
class Configuration
|
|
1646
|
+
extend ::Gapic::Config
|
|
1647
|
+
|
|
1648
|
+
# @private
|
|
1649
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1650
|
+
DEFAULT_ENDPOINT = "chronicle.googleapis.com"
|
|
1651
|
+
|
|
1652
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1653
|
+
config_attr :credentials, nil do |value|
|
|
1654
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
|
1655
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
|
1656
|
+
allowed.any? { |klass| klass === value }
|
|
1657
|
+
end
|
|
1658
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
1659
|
+
config_attr :lib_name, nil, ::String, nil
|
|
1660
|
+
config_attr :lib_version, nil, ::String, nil
|
|
1661
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
|
1662
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
1663
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
1664
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
1665
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1666
|
+
config_attr :quota_project, nil, ::String, nil
|
|
1667
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1668
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
1669
|
+
|
|
1670
|
+
# @private
|
|
1671
|
+
def initialize parent_config = nil
|
|
1672
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
1673
|
+
|
|
1674
|
+
yield self if block_given?
|
|
1675
|
+
end
|
|
1676
|
+
|
|
1677
|
+
##
|
|
1678
|
+
# Configurations for individual RPCs
|
|
1679
|
+
# @return [Rpcs]
|
|
1680
|
+
#
|
|
1681
|
+
def rpcs
|
|
1682
|
+
@rpcs ||= begin
|
|
1683
|
+
parent_rpcs = nil
|
|
1684
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
1685
|
+
Rpcs.new parent_rpcs
|
|
1686
|
+
end
|
|
1687
|
+
end
|
|
1688
|
+
|
|
1689
|
+
##
|
|
1690
|
+
# Configuration for the channel pool
|
|
1691
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
1692
|
+
#
|
|
1693
|
+
def channel_pool
|
|
1694
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
1695
|
+
end
|
|
1696
|
+
|
|
1697
|
+
##
|
|
1698
|
+
# Configuration RPC class for the FeedsService API.
|
|
1699
|
+
#
|
|
1700
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
1701
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
1702
|
+
# the following configuration fields:
|
|
1703
|
+
#
|
|
1704
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
1705
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
|
1706
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
1707
|
+
# include the following keys:
|
|
1708
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1709
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1710
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1711
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1712
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1713
|
+
# trigger a retry.
|
|
1714
|
+
#
|
|
1715
|
+
class Rpcs
|
|
1716
|
+
##
|
|
1717
|
+
# RPC-specific configuration for `fetch_service_account_for_customer`
|
|
1718
|
+
# @return [::Gapic::Config::Method]
|
|
1719
|
+
#
|
|
1720
|
+
attr_reader :fetch_service_account_for_customer
|
|
1721
|
+
##
|
|
1722
|
+
# RPC-specific configuration for `create_feed`
|
|
1723
|
+
# @return [::Gapic::Config::Method]
|
|
1724
|
+
#
|
|
1725
|
+
attr_reader :create_feed
|
|
1726
|
+
##
|
|
1727
|
+
# RPC-specific configuration for `get_feed`
|
|
1728
|
+
# @return [::Gapic::Config::Method]
|
|
1729
|
+
#
|
|
1730
|
+
attr_reader :get_feed
|
|
1731
|
+
##
|
|
1732
|
+
# RPC-specific configuration for `delete_feed`
|
|
1733
|
+
# @return [::Gapic::Config::Method]
|
|
1734
|
+
#
|
|
1735
|
+
attr_reader :delete_feed
|
|
1736
|
+
##
|
|
1737
|
+
# RPC-specific configuration for `enable_feed`
|
|
1738
|
+
# @return [::Gapic::Config::Method]
|
|
1739
|
+
#
|
|
1740
|
+
attr_reader :enable_feed
|
|
1741
|
+
##
|
|
1742
|
+
# RPC-specific configuration for `disable_feed`
|
|
1743
|
+
# @return [::Gapic::Config::Method]
|
|
1744
|
+
#
|
|
1745
|
+
attr_reader :disable_feed
|
|
1746
|
+
##
|
|
1747
|
+
# RPC-specific configuration for `list_feeds`
|
|
1748
|
+
# @return [::Gapic::Config::Method]
|
|
1749
|
+
#
|
|
1750
|
+
attr_reader :list_feeds
|
|
1751
|
+
##
|
|
1752
|
+
# RPC-specific configuration for `list_feed_packs`
|
|
1753
|
+
# @return [::Gapic::Config::Method]
|
|
1754
|
+
#
|
|
1755
|
+
attr_reader :list_feed_packs
|
|
1756
|
+
##
|
|
1757
|
+
# RPC-specific configuration for `get_feed_pack`
|
|
1758
|
+
# @return [::Gapic::Config::Method]
|
|
1759
|
+
#
|
|
1760
|
+
attr_reader :get_feed_pack
|
|
1761
|
+
##
|
|
1762
|
+
# RPC-specific configuration for `update_feed`
|
|
1763
|
+
# @return [::Gapic::Config::Method]
|
|
1764
|
+
#
|
|
1765
|
+
attr_reader :update_feed
|
|
1766
|
+
##
|
|
1767
|
+
# RPC-specific configuration for `list_feed_source_type_schemas`
|
|
1768
|
+
# @return [::Gapic::Config::Method]
|
|
1769
|
+
#
|
|
1770
|
+
attr_reader :list_feed_source_type_schemas
|
|
1771
|
+
##
|
|
1772
|
+
# RPC-specific configuration for `list_log_type_schemas`
|
|
1773
|
+
# @return [::Gapic::Config::Method]
|
|
1774
|
+
#
|
|
1775
|
+
attr_reader :list_log_type_schemas
|
|
1776
|
+
##
|
|
1777
|
+
# RPC-specific configuration for `import_push_logs`
|
|
1778
|
+
# @return [::Gapic::Config::Method]
|
|
1779
|
+
#
|
|
1780
|
+
attr_reader :import_push_logs
|
|
1781
|
+
##
|
|
1782
|
+
# RPC-specific configuration for `generate_secret`
|
|
1783
|
+
# @return [::Gapic::Config::Method]
|
|
1784
|
+
#
|
|
1785
|
+
attr_reader :generate_secret
|
|
1786
|
+
|
|
1787
|
+
# @private
|
|
1788
|
+
def initialize parent_rpcs = nil
|
|
1789
|
+
fetch_service_account_for_customer_config = parent_rpcs.fetch_service_account_for_customer if parent_rpcs.respond_to? :fetch_service_account_for_customer
|
|
1790
|
+
@fetch_service_account_for_customer = ::Gapic::Config::Method.new fetch_service_account_for_customer_config
|
|
1791
|
+
create_feed_config = parent_rpcs.create_feed if parent_rpcs.respond_to? :create_feed
|
|
1792
|
+
@create_feed = ::Gapic::Config::Method.new create_feed_config
|
|
1793
|
+
get_feed_config = parent_rpcs.get_feed if parent_rpcs.respond_to? :get_feed
|
|
1794
|
+
@get_feed = ::Gapic::Config::Method.new get_feed_config
|
|
1795
|
+
delete_feed_config = parent_rpcs.delete_feed if parent_rpcs.respond_to? :delete_feed
|
|
1796
|
+
@delete_feed = ::Gapic::Config::Method.new delete_feed_config
|
|
1797
|
+
enable_feed_config = parent_rpcs.enable_feed if parent_rpcs.respond_to? :enable_feed
|
|
1798
|
+
@enable_feed = ::Gapic::Config::Method.new enable_feed_config
|
|
1799
|
+
disable_feed_config = parent_rpcs.disable_feed if parent_rpcs.respond_to? :disable_feed
|
|
1800
|
+
@disable_feed = ::Gapic::Config::Method.new disable_feed_config
|
|
1801
|
+
list_feeds_config = parent_rpcs.list_feeds if parent_rpcs.respond_to? :list_feeds
|
|
1802
|
+
@list_feeds = ::Gapic::Config::Method.new list_feeds_config
|
|
1803
|
+
list_feed_packs_config = parent_rpcs.list_feed_packs if parent_rpcs.respond_to? :list_feed_packs
|
|
1804
|
+
@list_feed_packs = ::Gapic::Config::Method.new list_feed_packs_config
|
|
1805
|
+
get_feed_pack_config = parent_rpcs.get_feed_pack if parent_rpcs.respond_to? :get_feed_pack
|
|
1806
|
+
@get_feed_pack = ::Gapic::Config::Method.new get_feed_pack_config
|
|
1807
|
+
update_feed_config = parent_rpcs.update_feed if parent_rpcs.respond_to? :update_feed
|
|
1808
|
+
@update_feed = ::Gapic::Config::Method.new update_feed_config
|
|
1809
|
+
list_feed_source_type_schemas_config = parent_rpcs.list_feed_source_type_schemas if parent_rpcs.respond_to? :list_feed_source_type_schemas
|
|
1810
|
+
@list_feed_source_type_schemas = ::Gapic::Config::Method.new list_feed_source_type_schemas_config
|
|
1811
|
+
list_log_type_schemas_config = parent_rpcs.list_log_type_schemas if parent_rpcs.respond_to? :list_log_type_schemas
|
|
1812
|
+
@list_log_type_schemas = ::Gapic::Config::Method.new list_log_type_schemas_config
|
|
1813
|
+
import_push_logs_config = parent_rpcs.import_push_logs if parent_rpcs.respond_to? :import_push_logs
|
|
1814
|
+
@import_push_logs = ::Gapic::Config::Method.new import_push_logs_config
|
|
1815
|
+
generate_secret_config = parent_rpcs.generate_secret if parent_rpcs.respond_to? :generate_secret
|
|
1816
|
+
@generate_secret = ::Gapic::Config::Method.new generate_secret_config
|
|
1817
|
+
|
|
1818
|
+
yield self if block_given?
|
|
1819
|
+
end
|
|
1820
|
+
end
|
|
1821
|
+
end
|
|
1822
|
+
end
|
|
1823
|
+
end
|
|
1824
|
+
end
|
|
1825
|
+
end
|
|
1826
|
+
end
|
|
1827
|
+
end
|