Class: Google::Apis::DataprocV1::EndpointConfig

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

Overview

Endpoint config for this cluster

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EndpointConfig

Returns a new instance of EndpointConfig.



2104
2105
2106
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2104

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

Instance Attribute Details

#enable_http_port_accessBoolean Also known as: enable_http_port_access?

Optional. If true, enable http access to specific ports on the cluster from external sources. Defaults to false. Corresponds to the JSON property enableHttpPortAccess

Returns:

  • (Boolean)


2095
2096
2097
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2095

def enable_http_port_access
  @enable_http_port_access
end

#http_portsHash<String,String>

Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true. Corresponds to the JSON property httpPorts

Returns:

  • (Hash<String,String>)


2102
2103
2104
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2102

def http_ports
  @http_ports
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2109
2110
2111
2112
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2109

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