Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1GcsSource

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

Overview

Google Cloud Storage location for input content. format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecommendationengineV1beta1GcsSource

Returns a new instance of GoogleCloudRecommendationengineV1beta1GcsSource.



574
575
576
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 574

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

Instance Attribute Details

#input_urisArray<String>

Required. Google Cloud Storage URIs to input files. URI can be up to 2000 characters long. URIs can match the full object path (for example, gs://bucket/ directory/object.json) or a pattern matching one or more files, such as gs:// bucket/directory/*.json. A request can contain at most 100 files, and each file can be up to 2 GB. See Importing catalog information for the expected file format and setup instructions. Corresponds to the JSON property inputUris

Returns:

  • (Array<String>)


559
560
561
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 559

def input_uris
  @input_uris
end

#json_schemaString

Optional. The schema to use when parsing the data from the source. Supported values for catalog imports: 1: "catalog_recommendations_ai" using https:// cloud.google.com/recommendations-ai/docs/upload-catalog#json (Default for catalogItems.import) 2: "catalog_merchant_center" using https://cloud.google. com/recommendations-ai/docs/upload-catalog#mc Supported values for user events imports: 1: "user_events_recommendations_ai" using https://cloud.google.com/ recommendations-ai/docs/manage-user-events#import (Default for userEvents. import) 2. "user_events_ga360" using https://support.google.com/analytics/ answer/3437719?hl=en Corresponds to the JSON property jsonSchema

Returns:

  • (String)


572
573
574
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 572

def json_schema
  @json_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



579
580
581
582
# File 'generated/google/apis/recommendationengine_v1beta1/classes.rb', line 579

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