Class ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.CreateRequest
Creates a new hook in a given repository.
Inheritance
ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.CreateRequest
Inherited Members
Namespace: Google.Apis.SecureSourceManager.v1
Assembly: Google.Apis.SecureSourceManager.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RepositoriesResource.HooksResource.CreateRequest : SecureSourceManagerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Hook, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Hook body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Hook | body | |
| string | parent |
Properties
HookId
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.
Declaration
[RequestParameter("hookId", RequestParameterType.Query)]
public virtual string HookId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The repository in which to create the hook. Values are of the form
projects/{project_number}/locations/{location_id}/repositories/{repository_id}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()