Class: Google::Apis::ServicenetworkingV1::ConsumerProject
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::ConsumerProject
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicenetworking_v1/classes.rb,
generated/google/apis/servicenetworking_v1/representations.rb,
generated/google/apis/servicenetworking_v1/representations.rb
Overview
Represents a consumer project.
Instance Attribute Summary collapse
-
#project_num ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConsumerProject
constructor
A new instance of ConsumerProject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ConsumerProject
Returns a new instance of ConsumerProject.
683 684 685 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 683 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_num ⇒ Fixnum
Required. Project number of the consumer that is launching the service
instance. It
can own the network that is peered with Google or, be a service project in
an XPN where the host project has the network.
Corresponds to the JSON property projectNum
681 682 683 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 681 def project_num @project_num end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
688 689 690 |
# File 'generated/google/apis/servicenetworking_v1/classes.rb', line 688 def update!(**args) @project_num = args[:project_num] if args.key?(:project_num) end |