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.



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

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)


205
206
207
# File 'lib/google/apis/ids_v1/classes.rb', line 205

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


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

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)


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

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)


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

def endpoint_ip
  @endpoint_ip
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


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

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


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

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)


236
237
238
# File 'lib/google/apis/ids_v1/classes.rb', line 236

def network
  @network
end

#severityString

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

Returns:

  • (String)


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

def severity
  @severity
end

#stateString

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

Returns:

  • (String)


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

def state
  @state
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)


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

def traffic_logs
  @traffic_logs
end

#update_timeString

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

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/ids_v1/classes.rb', line 257

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'lib/google/apis/ids_v1/classes.rb', line 264

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)
  @traffic_logs = args[:traffic_logs] if args.key?(:traffic_logs)
  @update_time = args[:update_time] if args.key?(:update_time)
end