Class: Google::Apis::ServicenetworkingV1::ConsumerProject

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

Overview

Represents a consumer project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConsumerProject

Returns a new instance of ConsumerProject.



1210
1211
1212
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1210

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

Instance Attribute Details

#project_numFixnum

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

Returns:

  • (Fixnum)


1208
1209
1210
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1208

def project_num
  @project_num
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1215
1216
1217
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 1215

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