# Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent (v0.11.0)

0.11.0 (latest) 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::DataAgent.

Message describing a DataAgent object.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the data agent was created.

### #data_analytics_agent

    def data_analytics_agent() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAnalyticsAgent

**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAnalyticsAgent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAnalyticsAgent)) --- Data analytics agent.

### #data_analytics_agent=

    def data_analytics_agent=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAnalyticsAgent

**Parameter**

- **value** ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAnalyticsAgent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAnalyticsAgent)) --- Data analytics agent.
**Returns**

- ([::Google::Cloud::GeminiDataAnalytics::V1beta::DataAnalyticsAgent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Cloud-GeminiDataAnalytics-V1beta-DataAnalyticsAgent)) --- Data analytics agent.

### #delete_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. \[Output only\] The time the data agent was soft deleted.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Optional. Description of the agent.

  - Must be between 1-1024 characters.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Optional. Description of the agent.
  - Must be between 1-1024 characters.
**Returns**

- (::String) --- Optional. Description of the agent.

  - Must be between 1-1024 characters.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Optional. User friendly display name.

  - Must be between 1-256 characters.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Optional. User friendly display name.
  - Must be between 1-256 characters.
**Returns**

- (::String) --- Optional. User friendly display name.

  - Must be between 1-256 characters.

### #kms_key

    def kms_key() -> ::String

**Returns**

- (::String) --- Optional. Customer managed encryption key (CMEK) to use for encrypting the DataAgent resources. Cloud KMS CryptoKeys must reside in the same location as the DataAgent. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.

### #kms_key=

    def kms_key=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Customer managed encryption key (CMEK) to use for encrypting the DataAgent resources. Cloud KMS CryptoKeys must reside in the same location as the DataAgent. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
**Returns**

- (::String) --- Optional. Customer managed encryption key (CMEK) to use for encrypting the DataAgent resources. Cloud KMS CryptoKeys must reside in the same location as the DataAgent. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.

### #labels

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

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels to help users filter related agents. For example, "sales", "business", "etl", and so on. Note labels are used only for filtering and not for policies. See the [labels
  documentation](https://cloud.google.com/resource-manager/docs/labels-overview) for more details on label usage.

### #labels=

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

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels to help users filter related agents. For example, "sales", "business", "etl", and so on. Note labels are used only for filtering and not for policies. See the [labels
  documentation](https://cloud.google.com/resource-manager/docs/labels-overview) for more details on label usage.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. Labels to help users filter related agents. For example, "sales", "business", "etl", and so on. Note labels are used only for filtering and not for policies. See the [labels
  documentation](https://cloud.google.com/resource-manager/docs/labels-overview) for more details on label usage.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Optional. Identifier. The unique resource name of a DataAgent. Format: `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` `{data_agent}` is the resource id and should be 63 characters or less and must match the format described in https://google.aip.dev/122#resource-id-segments


  Example: `projects/1234567890/locations/global/dataAgents/my-agent`.

  It is recommended to skip setting this field during agent creation as it
  will be inferred automatically and overwritten with the
  {parent}/dataAgents/{data_agent_id}.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Identifier. The unique resource name of a DataAgent. Format: `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` `{data_agent}` is the resource id and should be 63 characters or less and must match the format described in https://google.aip.dev/122#resource-id-segments


  Example: `projects/1234567890/locations/global/dataAgents/my-agent`.

  It is recommended to skip setting this field during agent creation as it
  will be inferred automatically and overwritten with the
  {parent}/dataAgents/{data_agent_id}.
**Returns**

- (::String) --- Optional. Identifier. The unique resource name of a DataAgent. Format: `projects/{project}/locations/{location}/dataAgents/{data_agent_id}` `{data_agent}` is the resource id and should be 63 characters or less and must match the format described in https://google.aip.dev/122#resource-id-segments


  Example: `projects/1234567890/locations/global/dataAgents/my-agent`.

  It is recommended to skip setting this field during agent creation as it
  will be inferred automatically and overwritten with the
  {parent}/dataAgents/{data_agent_id}.

### #purge_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. Timestamp in UTC of when this data agent is considered expired. This is *always* provided on output, regardless of what was sent on input.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-gemini_data_analytics-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. The time when the data agent was last updated.