Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class CreateHookRequest.
CreateHookRequest is the request for creating a hook.
Generated from protobuf messagegoogle.cloud.securesourcemanager.v1.CreateHookRequest
Namespace
Google \ Cloud \ SecureSourceManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The repository in which to create the hook. Values are of the formprojects/{project_number}/locations/{location_id}/repositories/{repository_id}
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.
getParent
Required. The repository in which to create the hook. Values are of the
formprojects/{project_number}/locations/{location_id}/repositories/{repository_id}
Returns
Type
Description
string
setParent
Required. The repository in which to create the hook. Values are of the
formprojects/{project_number}/locations/{location_id}/repositories/{repository_id}
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.
Returns
Type
Description
string
setHookId
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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The repository in which to create the hook. Values are of the
formprojects/{project_number}/locations/{location_id}/repositories/{repository_id}Please seeSecureSourceManagerClient::repositoryName()for help formatting this field.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Secure Source Manager V1 Client - Class CreateHookRequest (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/php/docs/reference/cloud-securesourcemanager/latest/V1.CreateHookRequest)\n- [1.4.1](/php/docs/reference/cloud-securesourcemanager/1.4.1/V1.CreateHookRequest)\n- [1.3.3](/php/docs/reference/cloud-securesourcemanager/1.3.3/V1.CreateHookRequest)\n- [1.2.0](/php/docs/reference/cloud-securesourcemanager/1.2.0/V1.CreateHookRequest)\n- [1.1.0](/php/docs/reference/cloud-securesourcemanager/1.1.0/V1.CreateHookRequest)\n- [1.0.0](/php/docs/reference/cloud-securesourcemanager/1.0.0/V1.CreateHookRequest)\n- [0.2.5](/php/docs/reference/cloud-securesourcemanager/0.2.5/V1.CreateHookRequest)\n- [0.1.0](/php/docs/reference/cloud-securesourcemanager/0.1.0/V1.CreateHookRequest) \nReference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class CreateHookRequest.\n\nCreateHookRequest is the request for creating a hook.\n\nGenerated from protobuf message `google.cloud.securesourcemanager.v1.CreateHookRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecureSourceManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The repository in which to create the hook. Values are of the\nform\n`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`\n\n### setParent\n\nRequired. The repository in which to create the hook. Values are of the\nform\n`projects/{project_number}/locations/{location_id}/repositories/{repository_id}`\n\n### getHook\n\nRequired. The resource being created.\n\n### hasHook\n\n### clearHook\n\n### setHook\n\nRequired. The resource being created.\n\n### getHookId\n\nRequired. The ID to use for the hook, which will become the final component\nof the hook's resource name. This value restricts to lower-case letters,\nnumbers, and hyphen, with the first character a letter, the last a letter\nor a number, and a 63 character maximum.\n\n### setHookId\n\nRequired. The ID to use for the hook, which will become the final component\nof the hook's resource name. This value restricts to lower-case letters,\nnumbers, and hyphen, with the first character a letter, the last a letter\nor a number, and a 63 character maximum.\n\n### static::build"]]