0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Chronicle V1 API class Google::Cloud::Chronicle::V1::ReferenceListService::Client.

Client for the ReferenceListService service.


<br />

ReferenceListService provides an interface for managing reference lists.

## Inherits

- Object

## Includes

- [Google::Cloud::Chronicle::V1::ReferenceListService::Paths](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Paths)

## Methods

### .configure

    def self.configure() { |config| ... } -> Client::Configuration

Configure the ReferenceListService Client class.


<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration "Google::Cloud::Chronicle::V1::ReferenceListService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration))
**Example**

```ruby
# Modify the configuration for all ReferenceListService clients
::Google::Cloud::Chronicle::V1::ReferenceListService::Client.configure do |config|
  config.timeout = 10.0
end
```

### #configure

    def configure() { |config| ... } -> Client::Configuration

Configure the ReferenceListService 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client#Google__Cloud__Chronicle__V1__ReferenceListService__Client_configure_class_ "Google::Cloud::Chronicle::V1::ReferenceListService::Client.configure (method)").

<br />

See [Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration "Google::Cloud::Chronicle::V1::ReferenceListService::Client::Configuration (class)")
for a description of the configuration fields.
**Yields**

- (config) --- Configure the Client client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration))
**Returns**

- ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration))

### #create_reference_list

    def create_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList
    def create_reference_list(parent: nil, reference_list: nil, reference_list_id: nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Creates a new reference list.
**Overloads**

    def create_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Pass arguments to `create_reference_list` via a request object, either of type [CreateReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-CreateReferenceListRequest "Google::Cloud::Chronicle::V1::CreateReferenceListRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Chronicle::V1::CreateReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-CreateReferenceListRequest), ::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_reference_list(parent: nil, reference_list: nil, reference_list_id: nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Pass arguments to `create_reference_list` 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). **Parameters**

- **parent** (::String) --- Required. The parent resource where this reference list will be created. Format: `projects/{project}/locations/{location}/instances/{instance}`
- **reference_list** ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList), ::Hash) --- Required. The reference list to create.
- **reference_list_id** (::String) ---

  Required. The ID to use for the reference list. This is also the display
  name for the reference list. It must satisfy the following requirements:
  - Starts with letter.
  - Contains only letters, numbers and underscore.
  - Has length less than 256.
  - Must be unique.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/chronicle/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Chronicle::V1::ReferenceListService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Chronicle::V1::CreateReferenceListRequest.new

# Call the create_reference_list method.
result = client.create_reference_list request

# The returned object is of type Google::Cloud::Chronicle::V1::ReferenceList.
p result
```

### #get_reference_list

    def get_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList
    def get_reference_list(name: nil, view: nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Gets a single reference list.
**Overloads**

    def get_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Pass arguments to `get_reference_list` via a request object, either of type [GetReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-GetReferenceListRequest "Google::Cloud::Chronicle::V1::GetReferenceListRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Chronicle::V1::GetReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-GetReferenceListRequest), ::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_reference_list(name: nil, view: nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Pass arguments to `get_reference_list` 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). **Parameters**

- **name** (::String) --- Required. The resource name of the reference list to retrieve. Format: `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}`
- **view** ([::Google::Cloud::Chronicle::V1::ReferenceListView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListView)) --- How much of the ReferenceList to view. Defaults to REFERENCE_LIST_VIEW_FULL.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/chronicle/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Chronicle::V1::ReferenceListService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Chronicle::V1::GetReferenceListRequest.new

# Call the get_reference_list method.
result = client.get_reference_list request

# The returned object is of type Google::Cloud::Chronicle::V1::ReferenceList.
p result
```

### #initialize

    def initialize() { |config| ... } -> Client

Create a new ReferenceListService client object.
**Yields**

- (config) --- Configure the ReferenceListService client.
**Yield Parameter**

- **config** ([Client::Configuration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client-Configuration))
**Returns**

- ([Client](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListService-Client)) --- a new instance of Client
**Example**

```ruby
# Create a client using the default configuration
client = ::Google::Cloud::Chronicle::V1::ReferenceListService::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::Chronicle::V1::ReferenceListService::Client.new do |config|
  config.timeout = 10.0
end
```

### #list_reference_lists

    def list_reference_lists(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::ReferenceList>
    def list_reference_lists(parent: nil, page_size: nil, page_token: nil, view: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::ReferenceList>

Lists a collection of reference lists.
**Overloads**

    def list_reference_lists(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::ReferenceList>

Pass arguments to `list_reference_lists` via a request object, either of type [ListReferenceListsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ListReferenceListsRequest "Google::Cloud::Chronicle::V1::ListReferenceListsRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Chronicle::V1::ListReferenceListsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ListReferenceListsRequest), ::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_reference_lists(parent: nil, page_size: nil, page_token: nil, view: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::Chronicle::V1::ReferenceList>

Pass arguments to `list_reference_lists` 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). **Parameters**

- **parent** (::String) --- Required. The parent, which owns this collection of reference lists. Format: `projects/{project}/locations/{location}/instances/{instance}`
- **page_size** (::Integer) --- The maximum number of reference lists to return. The service may return fewer than this value. If unspecified, at most 100 reference lists 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 `ListReferenceLists` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListReferenceLists` must match the call that provided the page token.
- **view** ([::Google::Cloud::Chronicle::V1::ReferenceListView](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListView)) --- How much of each ReferenceList to view. Defaults to REFERENCE_LIST_VIEW_BASIC.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** (::Gapic::PagedEnumerable\<[::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList)\>)
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- (::Gapic::PagedEnumerable\<[::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList)\>)
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/chronicle/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Chronicle::V1::ReferenceListService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Chronicle::V1::ListReferenceListsRequest.new

# Call the list_reference_lists method.
result = client.list_reference_lists 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::ReferenceList.
  p item
end
```

### #logger

    def logger() -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_reference_list

    def update_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList
    def update_reference_list(reference_list: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Updates an existing reference list.
**Overloads**

    def update_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Pass arguments to `update_reference_list` via a request object, either of type [UpdateReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-UpdateReferenceListRequest "Google::Cloud::Chronicle::V1::UpdateReferenceListRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Chronicle::V1::UpdateReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-UpdateReferenceListRequest), ::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_reference_list(reference_list: nil, update_mask: nil) -> ::Google::Cloud::Chronicle::V1::ReferenceList

Pass arguments to `update_reference_list` 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). **Parameters**

- **reference_list** ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList), ::Hash) --- Required. The reference list to update.


  The reference list's `name` field is used to identify the reference list to
  update.
  Format:
  `projects/{project}/locations/{locations}/instances/{instance}/referenceLists/{reference_list}`
- **update_mask** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Protobuf-FieldMask), ::Hash) --- The list of fields to update. When no field mask is supplied, all non-empty fields will be updated. A field mask of "\*" will update all fields, whether empty or not.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::Chronicle::V1::ReferenceList](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceList))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/chronicle/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Chronicle::V1::ReferenceListService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Chronicle::V1::UpdateReferenceListRequest.new

# Call the update_reference_list method.
result = client.update_reference_list request

# The returned object is of type Google::Cloud::Chronicle::V1::ReferenceList.
p result
```

### #verify_reference_list

    def verify_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::VerifyReferenceListResponse
    def verify_reference_list(instance: nil, syntax_type: nil, entries: nil) -> ::Google::Cloud::Chronicle::V1::VerifyReferenceListResponse

VerifyReferenceList validates list content and returns line errors, if any.
**Overloads**

    def verify_reference_list(request, options = nil) -> ::Google::Cloud::Chronicle::V1::VerifyReferenceListResponse

Pass arguments to `verify_reference_list` via a request object, either of type [VerifyReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-VerifyReferenceListRequest "Google::Cloud::Chronicle::V1::VerifyReferenceListRequest (class)") or an equivalent Hash. **Parameters**

- **request** ([::Google::Cloud::Chronicle::V1::VerifyReferenceListRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-VerifyReferenceListRequest), ::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 verify_reference_list(instance: nil, syntax_type: nil, entries: nil) -> ::Google::Cloud::Chronicle::V1::VerifyReferenceListResponse

Pass arguments to `verify_reference_list` 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). **Parameters**

- **instance** (::String) --- Required. The name of the parent resource, which is the SecOps instance associated with the request. Format: `projects/{project}/locations/{location}/instances/{instance}`
- **syntax_type** ([::Google::Cloud::Chronicle::V1::ReferenceListSyntaxType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListSyntaxType)) --- Required. Type (format) of list lines.
- **entries** (::Array\<[::Google::Cloud::Chronicle::V1::ReferenceListEntry](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-ReferenceListEntry), ::Hash\>) --- Required. The entries of the reference list. Each line may be either an item in the list or a comment.
**Yields**

- (response, operation) --- Access the result along with the RPC operation
**Yield Parameters**

- **response** ([::Google::Cloud::Chronicle::V1::VerifyReferenceListResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-VerifyReferenceListResponse))
- **operation** (::GRPC::ActiveCall::Operation)
**Returns**

- ([::Google::Cloud::Chronicle::V1::VerifyReferenceListResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-chronicle-v1/latest/Google-Cloud-Chronicle-V1-VerifyReferenceListResponse))
**Raises**

- (::Google::Cloud::Error) --- if the RPC is aborted.
**Example**

Basic example

```ruby
require "google/cloud/chronicle/v1"

# Create a client object. The client can be reused for multiple calls.
client = Google::Cloud::Chronicle::V1::ReferenceListService::Client.new

# Create a request. To set request fields, pass in keyword arguments.
request = Google::Cloud::Chronicle::V1::VerifyReferenceListRequest.new

# Call the verify_reference_list method.
result = client.verify_reference_list request

# The returned object is of type Google::Cloud::Chronicle::V1::VerifyReferenceListResponse.
p result
```