Google Cloud Web Security Scanner V1 Client - Class ViolatingResource (0.7.18)

Reference documentation and code samples for the Google Cloud Web Security Scanner V1 Client class ViolatingResource.

Information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc.

Generated from protobuf message google.cloud.websecurityscanner.v1.ViolatingResource

Namespace

Google \ Cloud \ WebSecurityScanner \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ content_type string

The MIME type of this resource.

↳ resource_url string

URL of this violating resource.

getContentType

The MIME type of this resource.

Returns
TypeDescription
string

setContentType

The MIME type of this resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceUrl

URL of this violating resource.

Returns
TypeDescription
string

setResourceUrl

URL of this violating resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this