Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.
REST client for the FeedsService service.
FeedsService contains procedures for managing Chronicle third-party feeds.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the FeedsService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all FeedsService clients ::Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the FeedsService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_feed
def create_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feed
def create_feed(parent: nil, feed: nil) -> ::Google::Cloud::Chronicle::V1::FeedCreates a feed.
def create_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feedcreate_feed via a request object, either of type
CreateFeedRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::CreateFeedRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_feed(parent: nil, feed: nil) -> ::Google::Cloud::Chronicle::V1::Feedcreate_feed via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- feed (::Google::Cloud::Chronicle::V1::Feed, ::Hash) — Required. Feed to create.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::Feed)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::CreateFeedRequest.new # Call the create_feed method. result = client.create_feed request # The returned object is of type Google::Cloud::Chronicle::V1::Feed. p result
#delete_feed
def delete_feed(request, options = nil) -> ::Google::Protobuf::Empty
def delete_feed(name: nil, delete_backlog: nil) -> ::Google::Protobuf::EmptyDeletes a feed.
def delete_feed(request, options = nil) -> ::Google::Protobuf::Emptydelete_feed via a request object, either of type
DeleteFeedRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::DeleteFeedRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_feed(name: nil, delete_backlog: nil) -> ::Google::Protobuf::Emptydelete_feed via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed}
- delete_backlog (::Boolean) — Optional. If true, delete the uningested backlog in OOB retry queue for the feed.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::DeleteFeedRequest.new # Call the delete_feed method. result = client.delete_feed request # The returned object is of type Google::Protobuf::Empty. p result
#disable_feed
def disable_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feed
def disable_feed(name: nil) -> ::Google::Cloud::Chronicle::V1::FeedDisable feed for ingestion. Make FeedState ARCHIVED.
def disable_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feeddisable_feed via a request object, either of type
DisableFeedRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::DisableFeedRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def disable_feed(name: nil) -> ::Google::Cloud::Chronicle::V1::Feeddisable_feed via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the feed to disable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::Feed)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::DisableFeedRequest.new # Call the disable_feed method. result = client.disable_feed request # The returned object is of type Google::Cloud::Chronicle::V1::Feed. p result
#enable_feed
def enable_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feed
def enable_feed(name: nil) -> ::Google::Cloud::Chronicle::V1::FeedEnable feed for ingestion.
def enable_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feedenable_feed via a request object, either of type
EnableFeedRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::EnableFeedRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def enable_feed(name: nil) -> ::Google::Cloud::Chronicle::V1::Feedenable_feed via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the feed to enable. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::Feed)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::EnableFeedRequest.new # Call the enable_feed method. result = client.enable_feed request # The returned object is of type Google::Cloud::Chronicle::V1::Feed. p result
#fetch_service_account_for_customer
def fetch_service_account_for_customer(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FeedServiceAccount
def fetch_service_account_for_customer(parent: nil) -> ::Google::Cloud::Chronicle::V1::FeedServiceAccountFetch Chronicle's service account used for ingesting data from Cloud Storage buckets.
def fetch_service_account_for_customer(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FeedServiceAccountfetch_service_account_for_customer via a request object, either of type
Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def fetch_service_account_for_customer(parent: nil) -> ::Google::Cloud::Chronicle::V1::FeedServiceAccountfetch_service_account_for_customer via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource where this FeedServiceAccount will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::FeedServiceAccount)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::FetchServiceAccountForCustomerRequest.new # Call the fetch_service_account_for_customer method. result = client.fetch_service_account_for_customer request # The returned object is of type Google::Cloud::Chronicle::V1::FeedServiceAccount. p result
#generate_secret
def generate_secret(request, options = nil) -> ::Google::Cloud::Chronicle::V1::GenerateSecretResponse
def generate_secret(name: nil) -> ::Google::Cloud::Chronicle::V1::GenerateSecretResponseGenerates a new secret for https push feeds which do not support jwt tokens. Secrets once generated should be copied and stored in safe place to be used while configuring https push feeds.Please note that you can always generate a new secret again for a feed using this API but it will invalidate the previously generated secret for the feed.
def generate_secret(request, options = nil) -> ::Google::Cloud::Chronicle::V1::GenerateSecretResponsegenerate_secret via a request object, either of type
GenerateSecretRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GenerateSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def generate_secret(name: nil) -> ::Google::Cloud::Chronicle::V1::GenerateSecretResponsegenerate_secret via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The name of the feed to for which to generate secret. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::GenerateSecretResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GenerateSecretRequest.new # Call the generate_secret method. result = client.generate_secret request # The returned object is of type Google::Cloud::Chronicle::V1::GenerateSecretResponse. p result
#get_feed
def get_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feed
def get_feed(name: nil) -> ::Google::Cloud::Chronicle::V1::FeedGets a feed.
def get_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feedget_feed via a request object, either of type
GetFeedRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetFeedRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_feed(name: nil) -> ::Google::Cloud::Chronicle::V1::Feedget_feed via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The ID of the feed to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::Feed)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetFeedRequest.new # Call the get_feed method. result = client.get_feed request # The returned object is of type Google::Cloud::Chronicle::V1::Feed. p result
#get_feed_pack
def get_feed_pack(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FeedPack
def get_feed_pack(name: nil) -> ::Google::Cloud::Chronicle::V1::FeedPackGets a feed pack.
def get_feed_pack(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FeedPackget_feed_pack via a request object, either of type
GetFeedPackRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetFeedPackRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_feed_pack(name: nil) -> ::Google::Cloud::Chronicle::V1::FeedPackget_feed_pack via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The ID of the feed pack to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/feedPacks/{feedPack}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::FeedPack)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetFeedPackRequest.new # Call the get_feed_pack method. result = client.get_feed_pack request # The returned object is of type Google::Cloud::Chronicle::V1::FeedPack. p result
#import_push_logs
def import_push_logs(request, options = nil) -> ::Google::Api::HttpBody
def import_push_logs(parent: nil, http_body: nil, secret: nil) -> ::Google::Api::HttpBodyImport logs coming from https push feeds. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
def import_push_logs(request, options = nil) -> ::Google::Api::HttpBodyimport_push_logs via a request object, either of type
ImportPushLogsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ImportPushLogsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def import_push_logs(parent: nil, http_body: nil, secret: nil) -> ::Google::Api::HttpBodyimport_push_logs via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent, which owns this collection of logs. Format: projects/{project}/locations/{location}/instances/{instance}/feeds/{feed}
- http_body (::Google::Api::HttpBody, ::Hash) — Required. The raw HTTP body is bound to this field. All log entries must be valid UTF-8. A single invalid event will cause the entire request to be rejected.
- secret (::String) — Immutable. The secret for the feed.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Api::HttpBody)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ImportPushLogsRequest.new # Call the import_push_logs method. result = client.import_push_logs request # The returned object is of type Google::Api::HttpBody. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new FeedsService REST client object.
- (config) — Configure the FeedsService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_feed_packs
def list_feed_packs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>
def list_feed_packs(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>Lists Packs for which feeds can be configured.
def list_feed_packs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>list_feed_packs via a request object, either of type
ListFeedPacksRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListFeedPacksRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_feed_packs(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>list_feed_packs via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource where this content pack will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — Optional. The maximum number of feed content packs to return. The service may return fewer than this value. If unspecified, at most 50 feed content packs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — Optional. A page token, received from a previous
ListFeedPackscall. Provide this to retrieve the subsequent page. When paginating, all other parameters provided toListFeedPacksmust match the call that provided the page token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedPack>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListFeedPacksRequest.new # Call the list_feed_packs method. result = client.list_feed_packs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::FeedPack. p item end
#list_feed_source_type_schemas
def list_feed_source_type_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>
def list_feed_source_type_schemas(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>List all FeedSourceTypeSchemas.
def list_feed_source_type_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>list_feed_source_type_schemas via a request object, either of type
ListFeedSourceTypeSchemasRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListFeedSourceTypeSchemasRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_feed_source_type_schemas(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>list_feed_source_type_schemas via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent, which owns this collection of FeedSourceTypeSchemas. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — The maximum number of FeedSourceTypeSchemas to return. The service may return fewer than this value. If unspecified all FeedSourceTypeSchemas will be returned, meaning one FeedSourceTypeSchema for each FeedDetails.FeedSourceType. The maximum value is 100; values above 100 will be coerced to 100.
-
page_token (::String) — A page token, received from a previous
ListFeedSourceTypeSchemascall. Provide this to retrieve the subsequent page.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListFeedSourceTypeSchemasRequest.new # Call the list_feed_source_type_schemas method. result = client.list_feed_source_type_schemas request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::FeedSourceTypeSchema. p item end
#list_feeds
def list_feeds(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>
def list_feeds(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>Lists all feeds for the customer.
def list_feeds(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>list_feeds via a request object, either of type
ListFeedsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListFeedsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_feeds(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>list_feeds via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent resource where this Feed will be created. Format: projects/{project}/locations/{location}/instances/{instance}
- page_size (::Integer) — The maximum number of feeds to return. The service may return fewer than this value. If unspecified, at most 100 feeds will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
-
page_token (::String) — A page token, received from a previous
ListFeedscall. Provide this to retrieve the subsequent page.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::Feed>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListFeedsRequest.new # Call the list_feeds method. result = client.list_feeds request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::Feed. p item end
#list_log_type_schemas
def list_log_type_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>
def list_log_type_schemas(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>List all LogTypeSchemas compatible with a given FeedSourceType.
def list_log_type_schemas(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>list_log_type_schemas via a request object, either of type
ListLogTypeSchemasRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListLogTypeSchemasRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_log_type_schemas(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>list_log_type_schemas via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- parent (::String) — Required. The parent, which owns this collection of LogTypeSchemas. Format: Format: projects/{project}/locations/{location}/instances/{instance}/feedSourceTypeSchemas/{feed_source_type}
- page_size (::Integer) — The maximum number of LogTypeSchemas to return. The service may return fewer than this value. If unspecified, at most 5000 LogTypeSchemas will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
-
page_token (::String) — A page token, received from a previous
ListLogTypeSchemascall. Provide this to retrieve the subsequent page.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::LogTypeSchema>)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListLogTypeSchemasRequest.new # Call the list_log_type_schemas method. result = client.list_log_type_schemas request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::Chronicle::V1::LogTypeSchema. p item end
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_feed
def update_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feed
def update_feed(feed: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::FeedUpdates the full feed.
def update_feed(request, options = nil) -> ::Google::Cloud::Chronicle::V1::Feedupdate_feed via a request object, either of type
UpdateFeedRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::UpdateFeedRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_feed(feed: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::Feedupdate_feed via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- feed (::Google::Cloud::Chronicle::V1::Feed, ::Hash) — Required. Feed to update. Updates full feed object.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) — Optional. Specifies which fields to update. If empty, update the full feed.
To update the display name, pass only
displayNameand no other fields. To update other fields, pass a comma-separated list of fields to update and omitdisplayName. The update fails if an existingdisplayNameis sent in the update request.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::Feed)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
Basic example
require "google/cloud/chronicle/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Chronicle::V1::FeedsService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::UpdateFeedRequest.new # Call the update_feed method. result = client.update_feed request # The returned object is of type Google::Cloud::Chronicle::V1::Feed. p result