# Storage Insights V1 API - Class Google::Cloud::StorageInsights::V1::DatasetConfig (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.7.0 0.6.0 0.5.1 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Storage Insights V1 API class Google::Cloud::StorageInsights::V1::DatasetConfig.

Message describing the dataset configuration properties. For more
information, see [Dataset configuration
properties](https://cloud.google.com/storage/docs/insights/datasets#dataset-config).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_storage_object_path

    def cloud_storage_object_path() -> ::String

**Returns**

- (::String) --- Input only. Cloud Storage object path containing a list of project or folder numbers to include in the dataset; it cannot contain a mix of project and folders.

  The object must be a text file where each line has one of the following
  entries:
  - Project number, formatted as `projects/{project_number}`, for example, `projects/1234567890`.
  - Folder identifier, formatted as `folders/{folder_number}`, for example, `folders/9876543210`. Path must be in the format `gs://{bucket_name}/{object_name}`.

  Note: The following fields are mutually exclusive: `cloud_storage_object_path`, `source_projects`, `source_folders`, `organization_scope`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #cloud_storage_object_path=

    def cloud_storage_object_path=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. Cloud Storage object path containing a list of project or folder numbers to include in the dataset; it cannot contain a mix of project and folders.


  The object must be a text file where each line has one of the following
  entries:
  - Project number, formatted as `projects/{project_number}`, for example, `projects/1234567890`.
  - Folder identifier, formatted as `folders/{folder_number}`, for example, `folders/9876543210`. Path must be in the format `gs://{bucket_name}/{object_name}`.

  Note: The following fields are mutually exclusive: `cloud_storage_object_path`, `source_projects`, `source_folders`, `organization_scope`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- Input only. Cloud Storage object path containing a list of project or folder numbers to include in the dataset; it cannot contain a mix of project and folders.

  The object must be a text file where each line has one of the following
  entries:
  - Project number, formatted as `projects/{project_number}`, for example, `projects/1234567890`.
  - Folder identifier, formatted as `folders/{folder_number}`, for example, `folders/9876543210`. Path must be in the format `gs://{bucket_name}/{object_name}`.

  Note: The following fields are mutually exclusive: `cloud_storage_object_path`, `source_projects`, `source_folders`, `organization_scope`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The UTC time at which the dataset configuration was created. This is auto-populated.

### #dataset_config_state

    def dataset_config_state() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::ConfigState

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::ConfigState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-ConfigState)) --- Output only. State of the `datasetConfig`.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. A user-provided description for the dataset configuration.

  Maximum length: 256 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A user-provided description for the dataset configuration.


  Maximum length: 256 characters.
**Returns**

- (::String) --- Optional. A user-provided description for the dataset configuration.

  Maximum length: 256 characters.

### #exclude_cloud_storage_buckets

    def exclude_cloud_storage_buckets() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageBuckets)) --- Note: The following fields are mutually exclusive: `exclude_cloud_storage_buckets`, `include_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #exclude_cloud_storage_buckets=

    def exclude_cloud_storage_buckets=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageBuckets)) --- Note: The following fields are mutually exclusive: `exclude_cloud_storage_buckets`, `include_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageBuckets)) --- Note: The following fields are mutually exclusive: `exclude_cloud_storage_buckets`, `include_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #exclude_cloud_storage_locations

    def exclude_cloud_storage_locations() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageLocations)) --- Note: The following fields are mutually exclusive: `exclude_cloud_storage_locations`, `include_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #exclude_cloud_storage_locations=

    def exclude_cloud_storage_locations=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageLocations)) --- Note: The following fields are mutually exclusive: `exclude_cloud_storage_locations`, `include_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageLocations)) --- Note: The following fields are mutually exclusive: `exclude_cloud_storage_locations`, `include_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #identity

    def identity() -> ::Google::Cloud::StorageInsights::V1::Identity

**Returns**

- ([::Google::Cloud::StorageInsights::V1::Identity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-Identity)) --- Identity used by this `datasetConfig`.

### #identity=

    def identity=(value) -> ::Google::Cloud::StorageInsights::V1::Identity

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::Identity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-Identity)) --- Identity used by this `datasetConfig`.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::Identity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-Identity)) --- Identity used by this `datasetConfig`.

### #include_cloud_storage_buckets

    def include_cloud_storage_buckets() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageBuckets)) --- Note: The following fields are mutually exclusive: `include_cloud_storage_buckets`, `exclude_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #include_cloud_storage_buckets=

    def include_cloud_storage_buckets=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageBuckets)) --- Note: The following fields are mutually exclusive: `include_cloud_storage_buckets`, `exclude_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageBuckets](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageBuckets)) --- Note: The following fields are mutually exclusive: `include_cloud_storage_buckets`, `exclude_cloud_storage_buckets`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #include_cloud_storage_locations

    def include_cloud_storage_locations() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageLocations)) --- Note: The following fields are mutually exclusive: `include_cloud_storage_locations`, `exclude_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #include_cloud_storage_locations=

    def include_cloud_storage_locations=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageLocations)) --- Note: The following fields are mutually exclusive: `include_cloud_storage_locations`, `exclude_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::CloudStorageLocations](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-CloudStorageLocations)) --- Note: The following fields are mutually exclusive: `include_cloud_storage_locations`, `exclude_cloud_storage_locations`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #include_newly_created_buckets

    def include_newly_created_buckets() -> ::Boolean

**Returns**

- (::Boolean) --- If set to `true`, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.

### #include_newly_created_buckets=

    def include_newly_created_buckets=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- If set to `true`, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.
**Returns**

- (::Boolean) --- If set to `true`, the request includes all the newly created buckets in the dataset that meet the inclusion and exclusion rules.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Labels as key value pairs

### #link

    def link() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::Link

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::Link](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-Link)) --- Details of the linked dataset.

### #link=

    def link=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::Link

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::Link](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-Link)) --- Details of the linked dataset.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::Link](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-Link)) --- Details of the linked dataset.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. name of resource

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. name of resource
**Returns**

- (::String) --- Identifier. name of resource

### #organization_number

    def organization_number() -> ::Integer

**Returns**

- (::Integer) --- Optional. Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.

### #organization_number=

    def organization_number=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.
**Returns**

- (::Integer) --- Optional. Organization resource ID that the source projects should belong to. Projects that do not belong to the provided organization are not considered when creating the dataset.

### #organization_scope

    def organization_scope() -> ::Boolean

**Returns**

- (::Boolean) --- Defines the options for providing a source organization for the dataset.

  Note: The following fields are mutually exclusive: `organization_scope`, `source_projects`, `source_folders`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #organization_scope=

    def organization_scope=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Defines the options for providing a source organization for the dataset.


  Note: The following fields are mutually exclusive: `organization_scope`, `source_projects`, `source_folders`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Boolean) --- Defines the options for providing a source organization for the dataset.

  Note: The following fields are mutually exclusive: `organization_scope`, `source_projects`, `source_folders`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #retention_period_days

    def retention_period_days() -> ::Integer

**Returns**

- (::Integer) --- Number of days of history that must be retained.

### #retention_period_days=

    def retention_period_days=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Number of days of history that must be retained.
**Returns**

- (::Integer) --- Number of days of history that must be retained.

### #skip_verification_and_ingest

    def skip_verification_and_ingest() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If set to `false`, then all the permission checks must be successful before the system can start ingesting data. This field can only be updated before the system ingests data for the first time. Any attempt to modify the field after data ingestion starts results in an error.

### #skip_verification_and_ingest=

    def skip_verification_and_ingest=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If set to `false`, then all the permission checks must be successful before the system can start ingesting data. This field can only be updated before the system ingests data for the first time. Any attempt to modify the field after data ingestion starts results in an error.
**Returns**

- (::Boolean) --- Optional. If set to `false`, then all the permission checks must be successful before the system can start ingesting data. This field can only be updated before the system ingests data for the first time. Any attempt to modify the field after data ingestion starts results in an error.

### #source_folders

    def source_folders() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceFolders

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceFolders](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-SourceFolders)) --- Defines the options for providing source folders for the dataset.


  Note: The following fields are mutually exclusive: `source_folders`, `source_projects`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #source_folders=

    def source_folders=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceFolders

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceFolders](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-SourceFolders)) --- Defines the options for providing source folders for the dataset.


  Note: The following fields are mutually exclusive: `source_folders`, `source_projects`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceFolders](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-SourceFolders)) --- Defines the options for providing source folders for the dataset.


  Note: The following fields are mutually exclusive: `source_folders`, `source_projects`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #source_projects

    def source_projects() -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceProjects

**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceProjects](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-SourceProjects)) --- Defines the options for providing source projects for the dataset.


  Note: The following fields are mutually exclusive: `source_projects`, `source_folders`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #source_projects=

    def source_projects=(value) -> ::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceProjects

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceProjects](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-SourceProjects)) --- Defines the options for providing source projects for the dataset.


  Note: The following fields are mutually exclusive: `source_projects`, `source_folders`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::DatasetConfig::SourceProjects](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-DatasetConfig-SourceProjects)) --- Defines the options for providing source projects for the dataset.


  Note: The following fields are mutually exclusive: `source_projects`, `source_folders`, `organization_scope`, `cloud_storage_object_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #status

    def status() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Rpc-Status)) --- Output only. Status of the `datasetConfig`.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. System generated unique identifier for the resource.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The UTC time at which the dataset configuration was last updated. This is auto-populated.