Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApi
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApi
- 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
Retrieve from data source powered by external API for grounding. The external API is not owned by Google, but need to follow the pre-defined API spec.
Instance Attribute Summary collapse
-
#api_auth ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth
The generic reusable api auth config.
-
#api_spec ⇒ String
The API spec that the external API implements.
-
#auth_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfig
Auth configuration to run the extension.
-
#elastic_search_params ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams
The search parameters to use for the ELASTIC_SEARCH spec.
-
#endpoint ⇒ String
The endpoint of the external API.
-
#simple_search_params ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiSimpleSearchParams
The search parameters to use for SIMPLE_SEARCH spec.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1ExternalApi
constructor
A new instance of GoogleCloudAiplatformV1ExternalApi.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1ExternalApi
Returns a new instance of GoogleCloudAiplatformV1ExternalApi.
12916 12917 12918 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12916 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_auth ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ApiAuth
The generic reusable api auth config. Deprecated. Please use AuthConfig (
google/cloud/aiplatform/master/auth.proto) instead.
Corresponds to the JSON property apiAuth
12887 12888 12889 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12887 def api_auth @api_auth end |
#api_spec ⇒ String
The API spec that the external API implements.
Corresponds to the JSON property apiSpec
12892 12893 12894 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12892 def api_spec @api_spec end |
#auth_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1AuthConfig
Auth configuration to run the extension.
Corresponds to the JSON property authConfig
12897 12898 12899 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12897 def auth_config @auth_config end |
#elastic_search_params ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiElasticSearchParams
The search parameters to use for the ELASTIC_SEARCH spec.
Corresponds to the JSON property elasticSearchParams
12902 12903 12904 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12902 def elastic_search_params @elastic_search_params end |
#endpoint ⇒ String
The endpoint of the external API. The system will call the API at this
endpoint to retrieve the data for grounding. Example: https://acme.com:443/
search
Corresponds to the JSON property endpoint
12909 12910 12911 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12909 def endpoint @endpoint end |
#simple_search_params ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1ExternalApiSimpleSearchParams
The search parameters to use for SIMPLE_SEARCH spec.
Corresponds to the JSON property simpleSearchParams
12914 12915 12916 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12914 def simple_search_params @simple_search_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12921 12922 12923 12924 12925 12926 12927 12928 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12921 def update!(**args) @api_auth = args[:api_auth] if args.key?(:api_auth) @api_spec = args[:api_spec] if args.key?(:api_spec) @auth_config = args[:auth_config] if args.key?(:auth_config) @elastic_search_params = args[:elastic_search_params] if args.key?(:elastic_search_params) @endpoint = args[:endpoint] if args.key?(:endpoint) @simple_search_params = args[:simple_search_params] if args.key?(:simple_search_params) end |