Google Cloud Security Command Center V1 Client - Class Connection (1.19.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Connection.

Contains information about the IP connection associated with the finding.

Generated from protobuf message google.cloud.securitycenter.v1.Connection

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ destination_ip string

Destination IP address. Not present for sockets that are listening and not connected.

↳ destination_port int

Destination port. Not present for sockets that are listening and not connected.

↳ source_ip string

Source IP address.

↳ source_port int

Source port.

↳ protocol int

IANA Internet Protocol Number such as TCP(6) and UDP(17).

getDestinationIp

Destination IP address. Not present for sockets that are listening and not connected.

Returns
TypeDescription
string

setDestinationIp

Destination IP address. Not present for sockets that are listening and not connected.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestinationPort

Destination port. Not present for sockets that are listening and not connected.

Returns
TypeDescription
int

setDestinationPort

Destination port. Not present for sockets that are listening and not connected.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSourceIp

Source IP address.

Returns
TypeDescription
string

setSourceIp

Source IP address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourcePort

Source port.

Returns
TypeDescription
int

setSourcePort

Source port.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getProtocol

IANA Internet Protocol Number such as TCP(6) and UDP(17).

Returns
TypeDescription
int

setProtocol

IANA Internet Protocol Number such as TCP(6) and UDP(17).

Parameter
NameDescription
var int
Returns
TypeDescription
$this