Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1Collection

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Collection is a container for configuring resources and access to a set of DataStores.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1Collection

Returns a new instance of GoogleCloudDiscoveryengineV1Collection.



1665
1666
1667
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1665

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Timestamp the Collection was created at. Corresponds to the JSON property createTime

Returns:

  • (String)


1649
1650
1651
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1649

def create_time
  @create_time
end

#display_nameString

Required. The Collection display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponds to the JSON property displayName

Returns:

  • (String)


1656
1657
1658
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1656

def display_name
  @display_name
end

#nameString

Immutable. The full resource name of the Collection. Format: projects/ project/locations/location/collections/collection_id`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Corresponds to the JSON propertyname`

Returns:

  • (String)


1663
1664
1665
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1663

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1670
1671
1672
1673
1674
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1670

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
end