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.



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

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


6419
6420
6421
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6419

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)


6425
6426
6427
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6425

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6432
6433
6434
6435
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6432

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