Class: Google::Apis::DatafusionV1::NetworkConfig

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

Overview

Network configuration for a Data Fusion instance. These configurations are used for peering with the customer network. Configurations are optional when a public Data Fusion instance is to be created. However, providing these configurations allows several benefits, such as reduced network latency while accessing the customer resources from managed Data Fusion instance nodes, as well as access to the customer on-prem resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



788
789
790
# File 'lib/google/apis/datafusion_v1/classes.rb', line 788

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

Instance Attribute Details

#ip_allocationString

The IP range in CIDR notation to use for the managed Data Fusion instance nodes. This range must not overlap with any other ranges used in the customer network. Corresponds to the JSON property ipAllocation

Returns:

  • (String)


778
779
780
# File 'lib/google/apis/datafusion_v1/classes.rb', line 778

def ip_allocation
  @ip_allocation
end

#networkString

Name of the network in the customer project with which the Tenant Project will be peered for executing pipelines. In case of shared VPC where the network resides in another host project the network should specified in the form of projects/host-project-id/global/networks/network Corresponds to the JSON property network

Returns:

  • (String)


786
787
788
# File 'lib/google/apis/datafusion_v1/classes.rb', line 786

def network
  @network
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



793
794
795
796
# File 'lib/google/apis/datafusion_v1/classes.rb', line 793

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