Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1UrlCitation

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

Overview

A URL citation annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1UrlCitation

Returns a new instance of GenaiVertexV1beta1UrlCitation.



4977
4978
4979
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4977

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

Instance Attribute Details

#titleString

The title of the URL. Corresponds to the JSON property title

Returns:

  • (String)


4970
4971
4972
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4970

def title
  @title
end

#urlString

The URL. Corresponds to the JSON property url

Returns:

  • (String)


4975
4976
4977
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4975

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4982
4983
4984
4985
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4982

def update!(**args)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end