Google Cloud Security Command Center V1p1beta1 Client - Class CreateFindingRequest (1.19.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1p1beta1 Client class CreateFindingRequest.

Request message for creating a finding.

Generated from protobuf message google.cloud.securitycenter.v1p1beta1.CreateFindingRequest

Namespace

Google \ Cloud \ SecurityCenter \ V1p1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

↳ finding_id string

Required. Unique identifier provided by the client within the parent scope.

↳ finding Google\Cloud\SecurityCenter\V1p1beta1\Finding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

getParent

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

Returns
TypeDescription
string

setParent

Required. Resource name of the new finding's parent. Its format should be "organizations/[organization_id]/sources/[source_id]".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFindingId

Required. Unique identifier provided by the client within the parent scope.

Returns
TypeDescription
string

setFindingId

Required. Unique identifier provided by the client within the parent scope.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

Returns
TypeDescription
Google\Cloud\SecurityCenter\V1p1beta1\Finding|null

hasFinding

clearFinding

setFinding

Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1p1beta1\Finding
Returns
TypeDescription
$this