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.



6429
6430
6431
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6429

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>)


6421
6422
6423
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6421

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)


6427
6428
6429
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6427

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6434
6435
6436
6437
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6434

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