# Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::UserLicense (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::UserLicense.

User License information assigned by the admin.

## 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-discovery_engine-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. User created timestamp.

### #last_login_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. User last logged in time. If the user has not logged in yet, this field will be empty.

### #license_assignment_state

    def license_assignment_state() -> ::Google::Cloud::DiscoveryEngine::V1beta::UserLicense::LicenseAssignmentState

**Returns**

- ([::Google::Cloud::DiscoveryEngine::V1beta::UserLicense::LicenseAssignmentState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Cloud-DiscoveryEngine-V1beta-UserLicense-LicenseAssignmentState)) --- Output only. License assignment state of the user. If the user is assigned with a license config, the user login will be assigned with the license; If the user's license assignment state is unassigned or unspecified, no license config will be associated to the user;

### #license_config

    def license_config() -> ::String

**Returns**

- (::String) --- Optional. The full resource name of the Subscription(LicenseConfig) assigned to the user.

### #license_config=

    def license_config=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The full resource name of the Subscription(LicenseConfig) assigned to the user.
**Returns**

- (::String) --- Optional. The full resource name of the Subscription(LicenseConfig) assigned to the user.

### #update_time

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

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest/Google-Protobuf-Timestamp)) --- Output only. User update timestamp.

### #user_principal

    def user_principal() -> ::String

**Returns**

- (::String) --- Required. Immutable. The user principal of the User, could be email address or other prinical identifier. This field is immutable. Admin assign licenses based on the user principal.

### #user_principal=

    def user_principal=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Immutable. The user principal of the User, could be email address or other prinical identifier. This field is immutable. Admin assign licenses based on the user principal.
**Returns**

- (::String) --- Required. Immutable. The user principal of the User, could be email address or other prinical identifier. This field is immutable. Admin assign licenses based on the user principal.

### #user_profile

    def user_profile() -> ::String

**Returns**

- (::String) --- Optional. The user profile. We user user full name(First name + Last name) as user profile.

### #user_profile=

    def user_profile=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The user profile. We user user full name(First name + Last name) as user profile.
**Returns**

- (::String) --- Optional. The user profile. We user user full name(First name + Last name) as user profile.