Class: Google::Apis::DataformV1beta1::SearchResult

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

Overview

Client-facing representation of a search result entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SearchResult

Returns a new instance of SearchResult.



2637
2638
2639
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2637

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

Instance Attribute Details

#directoryGoogle::Apis::DataformV1beta1::DirectorySearchResult

Client-facing representation of a directory entry in search results. Corresponds to the JSON property directory



2630
2631
2632
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2630

def directory
  @directory
end

#fileGoogle::Apis::DataformV1beta1::FileSearchResult

Client-facing representation of a file entry in search results. Corresponds to the JSON property file



2635
2636
2637
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2635

def file
  @file
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2642
2643
2644
2645
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2642

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