Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CreateTargetSiteRequest

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

Overview

Request message for SiteSearchEngineService.CreateTargetSite method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CreateTargetSiteRequest

Returns a new instance of GoogleCloudDiscoveryengineV1CreateTargetSiteRequest.



3274
3275
3276
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3274

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

Instance Attribute Details

#parentString

Required. Parent resource name of TargetSite, such as projects/project/ locations/location/collections/collection/dataStores/data_store/ siteSearchEngine. Corresponds to the JSON property parent

Returns:

  • (String)


3267
3268
3269
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3267

def parent
  @parent
end

#target_siteGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1TargetSite

A target site for the SiteSearchEngine. Corresponds to the JSON property targetSite



3272
3273
3274
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3272

def target_site
  @target_site
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3279
3280
3281
3282
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3279

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