Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AnnotationSpec

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

Overview

Identifies a concept with which DataItems may be annotated with.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1AnnotationSpec

Returns a new instance of GoogleCloudAiplatformV1AnnotationSpec.



1605
1606
1607
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1605

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

Instance Attribute Details

#create_timeString

Output only. Timestamp when this AnnotationSpec was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1581
1582
1583
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1581

def create_time
  @create_time
end

#display_nameString

Required. The user-defined name of the AnnotationSpec. The name can be up to 128 characters long and can consist of any UTF-8 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


1587
1588
1589
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1587

def display_name
  @display_name
end

#etagString

Optional. Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens. Corresponds to the JSON property etag

Returns:

  • (String)


1593
1594
1595
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1593

def etag
  @etag
end

#nameString

Output only. Resource name of the AnnotationSpec. Corresponds to the JSON property name

Returns:

  • (String)


1598
1599
1600
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1598

def name
  @name
end

#update_timeString

Output only. Timestamp when AnnotationSpec was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1603
1604
1605
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1603

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1610
1611
1612
1613
1614
1615
1616
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 1610

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