Class: Google::Apis::ServicecontrolV1::ConsumerInfo
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::ConsumerInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb
Overview
ConsumerInfo
provides information about the consumer.
Instance Attribute Summary collapse
-
#consumer_number ⇒ Fixnum
The consumer identity number, can be Google cloud project number, folder number or organization number e.g.
-
#project_number ⇒ Fixnum
The Google cloud project number, e.g.
-
#type ⇒ String
Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsumerInfo
constructor
A new instance of ConsumerInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConsumerInfo
Returns a new instance of ConsumerInfo
640 641 642 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consumer_number ⇒ Fixnum
The consumer identity number, can be Google cloud project number, folder
number or organization number e.g. 1234567890. A value of 0 indicates no
consumer number is found.
Corresponds to the JSON property consumerNumber
625 626 627 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 625 def consumer_number @consumer_number end |
#project_number ⇒ Fixnum
The Google cloud project number, e.g. 1234567890. A value of 0 indicates
no project number is found.
NOTE: This field is deprecated after Chemist support flexible consumer
id. New code should not depend on this field anymore.
Corresponds to the JSON property projectNumber
633 634 635 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 633 def project_number @project_number end |
#type ⇒ String
Corresponds to the JSON property type
638 639 640 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 638 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
645 646 647 648 649 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 645 def update!(**args) @consumer_number = args[:consumer_number] if args.key?(:consumer_number) @project_number = args[:project_number] if args.key?(:project_number) @type = args[:type] if args.key?(:type) end |