Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProject

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

Overview

Metadata that describes a Cloud Retail Project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaProject

Returns a new instance of GoogleCloudRetailV2alphaProject.



4742
4743
4744
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4742

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

Instance Attribute Details

#enrolled_solutionsArray<String>

Output only. Retail API solutions that the project has enrolled. Corresponds to the JSON property enrolledSolutions

Returns:

  • (Array<String>)


4734
4735
4736
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4734

def enrolled_solutions
  @enrolled_solutions
end

#nameString

Output only. Full resource name of the retail project, such as projects/ project_id_or_number/retailProject. Corresponds to the JSON property name

Returns:

  • (String)


4740
4741
4742
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4740

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4747
4748
4749
4750
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4747

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