Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class CreateFindingRequest.
Request message for creating a finding.
Generated from protobuf message google.cloud.securitycenter.v2.CreateFindingRequest
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. Resource name of the new finding's parent. The following list shows some examples of the format: + organizations/[organization_id]/sources/[source_id]
+ organizations/[organization_id]/sources/[source_id]/locations/[location_id]
↳ finding_id
string
Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
↳ finding
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. The following list
shows some examples of the format:
+ organizations/[organization_id]/sources/[source_id]
+ organizations/[organization_id]/sources/[source_id]/locations/[location_id]
string
setParent
Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+ organizations/[organization_id]/sources/[source_id]
+ organizations/[organization_id]/sources/[source_id]/locations/[location_id]
var
string
$this
getFindingId
Required. Unique identifier provided by the client within the parent scope.
It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
string
setFindingId
Required. Unique identifier provided by the client within the parent scope.
It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
var
string
$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.
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.
$this
static::build
parent
string
Required. Resource name of the new finding's parent. The following list
shows some examples of the format:
+ organizations/[organization_id]/sources/[source_id]
+ organizations/[organization_id]/sources/[source_id]/locations/[location_id]
Please see SecurityCenterClient::sourceName()
for help formatting this field.
finding
Finding
Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.
findingId
string
Required. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.