Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest

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

Overview

Request message for SiteSearchEngineService.CreateTargetSite method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest.



2184
2185
2186
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2184

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)


2177
2178
2179
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2177

def parent
  @parent
end

#target_siteGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTargetSite

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



2182
2183
2184
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2182

def target_site
  @target_site
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2189
2190
2191
2192
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2189

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