Class: Google::Apis::IdsV1::Endpoint

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

Overview

Endpoint describes a single IDS endpoint. It defines a forwarding rule to which packets can be sent for IDS inspection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Endpoint

Returns a new instance of Endpoint.



268
269
270
# File 'lib/google/apis/ids_v1/classes.rb', line 268

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

Instance Attribute Details

#create_timeString

Output only. The create time timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


209
210
211
# File 'lib/google/apis/ids_v1/classes.rb', line 209

def create_time
  @create_time
end

#descriptionString

User-provided description of the endpoint Corresponds to the JSON property description

Returns:

  • (String)


214
215
216
# File 'lib/google/apis/ids_v1/classes.rb', line 214

def description
  @description
end

#endpoint_forwarding_ruleString

Output only. The fully qualified URL of the endpoint's ILB Forwarding Rule. Corresponds to the JSON property endpointForwardingRule

Returns:

  • (String)


219
220
221
# File 'lib/google/apis/ids_v1/classes.rb', line 219

def endpoint_forwarding_rule
  @endpoint_forwarding_rule
end

#endpoint_ipString

Output only. The IP address of the IDS Endpoint's ILB. Corresponds to the JSON property endpointIp

Returns:

  • (String)


224
225
226
# File 'lib/google/apis/ids_v1/classes.rb', line 224

def endpoint_ip
  @endpoint_ip
end

#labelsHash<String,String>

The labels of the endpoint. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


229
230
231
# File 'lib/google/apis/ids_v1/classes.rb', line 229

def labels
  @labels
end

#nameString

Output only. The name of the endpoint. Corresponds to the JSON property name

Returns:

  • (String)


234
235
236
# File 'lib/google/apis/ids_v1/classes.rb', line 234

def name
  @name
end

#networkString

Required. The fully qualified URL of the network to which the IDS Endpoint is attached. Corresponds to the JSON property network

Returns:

  • (String)


240
241
242
# File 'lib/google/apis/ids_v1/classes.rb', line 240

def network
  @network
end

#severityString

Required. Lowest threat severity that this endpoint will alert on. Corresponds to the JSON property severity

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/ids_v1/classes.rb', line 245

def severity
  @severity
end

#stateString

Output only. Current state of the endpoint. Corresponds to the JSON property state

Returns:

  • (String)


250
251
252
# File 'lib/google/apis/ids_v1/classes.rb', line 250

def state
  @state
end

#threat_exceptionsArray<String>

List of threat IDs to be excepted from generating alerts. Corresponds to the JSON property threatExceptions

Returns:

  • (Array<String>)


255
256
257
# File 'lib/google/apis/ids_v1/classes.rb', line 255

def threat_exceptions
  @threat_exceptions
end

#traffic_logsBoolean Also known as: traffic_logs?

Whether the endpoint should report traffic logs in addition to threat logs. Corresponds to the JSON property trafficLogs

Returns:

  • (Boolean)


260
261
262
# File 'lib/google/apis/ids_v1/classes.rb', line 260

def traffic_logs
  @traffic_logs
end

#update_timeString

Output only. The update time timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/ids_v1/classes.rb', line 266

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'lib/google/apis/ids_v1/classes.rb', line 273

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @endpoint_forwarding_rule = args[:endpoint_forwarding_rule] if args.key?(:endpoint_forwarding_rule)
  @endpoint_ip = args[:endpoint_ip] if args.key?(:endpoint_ip)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @network = args[:network] if args.key?(:network)
  @severity = args[:severity] if args.key?(:severity)
  @state = args[:state] if args.key?(:state)
  @threat_exceptions = args[:threat_exceptions] if args.key?(:threat_exceptions)
  @traffic_logs = args[:traffic_logs] if args.key?(:traffic_logs)
  @update_time = args[:update_time] if args.key?(:update_time)
end