# Class Hook (0.6.0)

0.6.0 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.17

    Hook(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata of a Secure Source Manager Hook.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. A unique identifier for a Hook. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}` |
| `target_uri` | `str` Required. The target URI to which the payloads will be delivered. |
| `disabled` | `bool` Optional. Determines if the hook disabled or not. Set to true to stop sending traffic. |
| `events` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.Hook.HookEventType]` Optional. The events that trigger hook on. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Create timestamp. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Update timestamp. |
| `uid` | `str` Output only. Unique identifier of the hook. |
| `push_option` | `https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.Hook.PushOption` Optional. The trigger option for push events. |
| `sensitive_query_string` | `str` Optional. The sensitive query string to be appended to the target URI. |

## Classes

### HookEventType

    HookEventType(value)

### PushOption

    PushOption(mapping=None, *, ignore_unknown_fields=False, **kwargs)