Class: Google::Apis::CloudcommerceprocurementV1::Consumer

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

Overview

A resource using (consuming) this entitlement.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Consumer

Returns a new instance of Consumer.



209
210
211
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 209

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

Instance Attribute Details

#projectString

A project name with format projects/. Corresponds to the JSON property project

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 207

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



214
215
216
# File 'lib/google/apis/cloudcommerceprocurement_v1/classes.rb', line 214

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