Class: Google::Apis::NetworkconnectivityV1::LinkedProducerVpcNetwork

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LinkedProducerVpcNetwork

Returns a new instance of LinkedProducerVpcNetwork.



1864
1865
1866
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1864

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

Instance Attribute Details

#exclude_export_rangesArray<String>

Optional. IP ranges encompassing the subnets to be excluded from peering. Corresponds to the JSON property excludeExportRanges

Returns:

  • (Array<String>)


1822
1823
1824
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1822

def exclude_export_ranges
  @exclude_export_ranges
end

#include_export_rangesArray<String>

Optional. IP ranges allowed to be included from peering. Corresponds to the JSON property includeExportRanges

Returns:

  • (Array<String>)


1827
1828
1829
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1827

def include_export_ranges
  @include_export_ranges
end

#networkString

Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with. Corresponds to the JSON property network

Returns:

  • (String)


1833
1834
1835
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1833

def network
  @network
end

#peeringString

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

Returns:

  • (String)


1840
1841
1842
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1840

def peering
  @peering
end

#producer_networkString

Output only. The URI of the Producer VPC. Corresponds to the JSON property producerNetwork

Returns:

  • (String)


1845
1846
1847
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1845

def producer_network
  @producer_network
end

#proposed_exclude_export_rangesArray<String>

Output only. The proposed exclude export IP ranges waiting for hub administrator's approval. Corresponds to the JSON property proposedExcludeExportRanges

Returns:

  • (Array<String>)


1851
1852
1853
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1851

def proposed_exclude_export_ranges
  @proposed_exclude_export_ranges
end

#proposed_include_export_rangesArray<String>

Output only. The proposed include export IP ranges waiting for hub administrator's approval. Corresponds to the JSON property proposedIncludeExportRanges

Returns:

  • (Array<String>)


1857
1858
1859
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1857

def proposed_include_export_ranges
  @proposed_include_export_ranges
end

#service_consumer_vpc_spokeString

Output only. The Service Consumer Network spoke. Corresponds to the JSON property serviceConsumerVpcSpoke

Returns:

  • (String)


1862
1863
1864
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1862

def service_consumer_vpc_spoke
  @service_consumer_vpc_spoke
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1869

def update!(**args)
  @exclude_export_ranges = args[:exclude_export_ranges] if args.key?(:exclude_export_ranges)
  @include_export_ranges = args[:include_export_ranges] if args.key?(:include_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)
  @proposed_exclude_export_ranges = args[:proposed_exclude_export_ranges] if args.key?(:proposed_exclude_export_ranges)
  @proposed_include_export_ranges = args[:proposed_include_export_ranges] if args.key?(:proposed_include_export_ranges)
  @service_consumer_vpc_spoke = args[:service_consumer_vpc_spoke] if args.key?(:service_consumer_vpc_spoke)
end