# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig (v0.28.0)

0.28.0 (latest) 0.27.0 0.26.0 0.25.0 0.24.0 0.23.1 0.22.0 0.21.0 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.2 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.2 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig.

Information about users' licenses.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #auto_renew

    def auto_renew() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether the license config should be auto renewed when it reaches the end date.

### #auto_renew=

    def auto_renew=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether the license config should be auto renewed when it reaches the end date.
**Returns**

- (::Boolean) --- Optional. Whether the license config should be auto renewed when it reaches the end date.

### #early_terminated

    def early_terminated() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.

### #early_termination_date

    def early_termination_date() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Output only. The date when the subscription is terminated earlier than the expiration date.

### #end_date

    def end_date() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Optional. The planed end date.

### #end_date=

    def end_date=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Optional. The planed end date.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Optional. The planed end date.

### #free_trial

    def free_trial() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether the license config is for free trial.

### #free_trial=

    def free_trial=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether the license config is for free trial.
**Returns**

- (::Boolean) --- Optional. Whether the license config is for free trial.

### #gemini_bundle

    def gemini_bundle() -> ::Boolean

**Returns**

- (::Boolean) --- Output only. Whether the license config is for Gemini bundle.

### #license_count

    def license_count() -> ::Integer

**Returns**

- (::Integer) --- Required. Number of licenses purchased.

### #license_count=

    def license_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Required. Number of licenses purchased.
**Returns**

- (::Integer) --- Required. Number of licenses purchased.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Immutable. Identifier. The fully qualified resource name of the license config. Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Immutable. Identifier. The fully qualified resource name of the license config. Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
**Returns**

- (::String) --- Immutable. Identifier. The fully qualified resource name of the license config. Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config}`

### #start_date

    def start_date() -> ::Google::Type::Date

**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Required. The start date.

### #start_date=

    def start_date=(value) -> ::Google::Type::Date

**Parameter**

- **value** ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Required. The start date.
**Returns**

- ([::Google::Type::Date](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Type-Date)) --- Required. The start date.

### #state

    def state() -> ::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig::State

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::LicenseConfig::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-LicenseConfig-State)) --- Output only. The state of the license config.

### #subscription_term

    def subscription_term() -> ::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTerm

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTerm](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SubscriptionTerm)) --- Required. Subscription term.

### #subscription_term=

    def subscription_term=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTerm

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTerm](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SubscriptionTerm)) --- Required. Subscription term.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTerm](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SubscriptionTerm)) --- Required. Subscription term.

### #subscription_tier

    def subscription_tier() -> ::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTier

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SubscriptionTier)) --- Required. Subscription tier information for the license config.

### #subscription_tier=

    def subscription_tier=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTier

**Parameter**

- **value** ([::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SubscriptionTier)) --- Required. Subscription tier information for the license config.
**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::SubscriptionTier](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-SubscriptionTier)) --- Required. Subscription tier information for the license config.