Class: Google::Apis::NetworkconnectivityV1::LinkedProducerVpcNetwork
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::LinkedProducerVpcNetwork
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
Next ID: 7
Instance Attribute Summary collapse
-
#exclude_export_ranges ⇒ Array<String>
Optional.
-
#network ⇒ String
Immutable.
-
#peering ⇒ String
Immutable.
-
#producer_network ⇒ String
Output only.
-
#service_consumer_vpc_spoke ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LinkedProducerVpcNetwork
constructor
A new instance of LinkedProducerVpcNetwork.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LinkedProducerVpcNetwork
Returns a new instance of LinkedProducerVpcNetwork.
1207 1208 1209 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclude_export_ranges ⇒ Array<String>
Optional. IP ranges encompassing the subnets to be excluded from peering.
Corresponds to the JSON property excludeExportRanges
1182 1183 1184 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1182 def exclude_export_ranges @exclude_export_ranges end |
#network ⇒ String
Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered
with.
Corresponds to the JSON property network
1188 1189 1190 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1188 def network @network end |
#peering ⇒ String
Immutable. The name of the VPC peering between the Service Consumer VPC and
the Producer VPC (defined in the Tenant project) which is added to the NCC hub.
This peering must be in ACTIVE state.
Corresponds to the JSON property peering
1195 1196 1197 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1195 def peering @peering end |
#producer_network ⇒ String
Output only. The URI of the Producer VPC.
Corresponds to the JSON property producerNetwork
1200 1201 1202 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1200 def producer_network @producer_network end |
#service_consumer_vpc_spoke ⇒ String
Output only. The Service Consumer Network spoke.
Corresponds to the JSON property serviceConsumerVpcSpoke
1205 1206 1207 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1205 def service_consumer_vpc_spoke @service_consumer_vpc_spoke end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1212 1213 1214 1215 1216 1217 1218 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1212 def update!(**args) @exclude_export_ranges = args[:exclude_export_ranges] if args.key?(:exclude_export_ranges) @network = args[:network] if args.key?(:network) @peering = args[:peering] if args.key?(:peering) @producer_network = args[:producer_network] if args.key?(:producer_network) @service_consumer_vpc_spoke = args[:service_consumer_vpc_spoke] if args.key?(:service_consumer_vpc_spoke) end |