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

1.2.0 (latest) 1.1.2 1.0.5 0.8.5 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** ||
|---|---|
| **Name** | **Description** |
| `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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setContentType

The MIME type of this resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceUrl

URL of this violating resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setResourceUrl

URL of this violating resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |