Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Rest::Client.
REST client for the FeaturedContentNativeDashboardService service.
This service provides functionality for managing FeaturedContentNativeDashboard.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the FeaturedContentNativeDashboardService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all FeaturedContentNativeDashboardService clients ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the FeaturedContentNativeDashboardService 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)
#get_featured_content_native_dashboard
def get_featured_content_native_dashboard(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard
def get_featured_content_native_dashboard(name: nil) -> ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardGet a native dashboard featured content.
def get_featured_content_native_dashboard(request, options = nil) -> ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardget_featured_content_native_dashboard via a request object, either of type
GetFeaturedContentNativeDashboardRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::GetFeaturedContentNativeDashboardRequest, ::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_featured_content_native_dashboard(name: nil) -> ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardget_featured_content_native_dashboard 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 resource name of the FeaturedContentNativeDashboard to retrieve. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard)
- 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::FeaturedContentNativeDashboardService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::GetFeaturedContentNativeDashboardRequest.new # Call the get_featured_content_native_dashboard method. result = client.get_featured_content_native_dashboard request # The returned object is of type Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new FeaturedContentNativeDashboardService REST client object.
- (config) — Configure the FeaturedContentNativeDashboardService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboardService::Rest::Client.new do |config| config.timeout = 10.0 end
#install_featured_content_native_dashboard
def install_featured_content_native_dashboard(request, options = nil) -> ::Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardResponse
def install_featured_content_native_dashboard(name: nil, featured_content_native_dashboard: nil) -> ::Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardResponseInstall a native dashboard featured content.
def install_featured_content_native_dashboard(request, options = nil) -> ::Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardResponseinstall_featured_content_native_dashboard via a request object, either of type
InstallFeaturedContentNativeDashboardRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardRequest, ::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 install_featured_content_native_dashboard(name: nil, featured_content_native_dashboard: nil) -> ::Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardResponseinstall_featured_content_native_dashboard 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 resource name of the FeaturedContentNativeDashboard to install. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/featuredContentNativeDashboards/{featured_content_native_dashboard}
- featured_content_native_dashboard (::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard, ::Hash) — Optional. The FeaturedContentNativeDashboard to install.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardResponse)
- 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::FeaturedContentNativeDashboardService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardRequest.new # Call the install_featured_content_native_dashboard method. result = client.install_featured_content_native_dashboard request # The returned object is of type Google::Cloud::Chronicle::V1::InstallFeaturedContentNativeDashboardResponse. p result
#list_featured_content_native_dashboards
def list_featured_content_native_dashboards(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard>
def list_featured_content_native_dashboards(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard>List all native dashboards featured content.
def list_featured_content_native_dashboards(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard>list_featured_content_native_dashboards via a request object, either of type
ListFeaturedContentNativeDashboardsRequest or an equivalent Hash.
- request (::Google::Cloud::Chronicle::V1::ListFeaturedContentNativeDashboardsRequest, ::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_featured_content_native_dashboards(parent: nil, page_size: nil, page_token: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard>list_featured_content_native_dashboards 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 FeaturedContentNativeDashboards. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub
- page_size (::Integer) — Optional. The maximum number of FeaturedContentNativeDashboards to return. The service may return fewer than this value. If unspecified, at most 100 FeaturedContentNativeDashboards will be returned. The maximum value is 100; values above 100 will be coerced to 100.
-
page_token (::String) — Optional. A page token, received from a previous
ListFeaturedContentNativeDashboardscall. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to
ListFeaturedContentNativeDashboardsmust match the call that provided the page token. -
filter (::String) —
Optional. The filter to apply to list the FeaturedContentNativeDashboards.
The filter syntax follows Google Cloud syntax: https://google.aip.dev/160.
Supported fields for filtering:
-
name: The resource name of the featured content. -
content_metadata.description: The description of the featured content.
When a literal value is provided without a field, it will perform a substring search across both
nameandcontent_metadata.description.Examples:
-
"test": Matches featured content where either the name or description contains "test" as a substring. -
name="test": Matches featured content where the name contains "test". -
content_metadata.description="test": Matches featured content where the description contains "test".
-
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::Chronicle::V1::FeaturedContentNativeDashboard>)
- (::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::FeaturedContentNativeDashboardService::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Chronicle::V1::ListFeaturedContentNativeDashboardsRequest.new # Call the list_featured_content_native_dashboards method. result = client.list_featured_content_native_dashboards 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::FeaturedContentNativeDashboard. 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)