# Class CreateHookRequest (0.6.0)

0.6.0 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.17

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

CreateHookRequest is the request for creating a hook.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `parent` | `str` Required. The repository in which to create the hook. Values are of the form `projects/{project_number}/locations/{location_id}/repositories/{repository_id}` |
| `hook` | `https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.Hook` Required. The resource being created. |
| `hook_id` | `str` Required. The ID to use for the hook, which will become the final component of the hook's resource name. This value restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum. |