# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::Hook (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.4.0 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::Hook.

Metadata of a Secure Source Manager Hook.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Create timestamp.

### #disabled

    def disabled() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.

### #disabled=

    def disabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.
**Returns**

- (::Boolean) --- Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.

### #events

    def events() -> ::Array<::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType>

**Returns**

- (::Array\<[::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Hook-HookEventType)\>) --- Optional. The events that trigger hook on.

### #events=

    def events=(value) -> ::Array<::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType>

**Parameter**

- **value** (::Array\<[::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Hook-HookEventType)\>) --- Optional. The events that trigger hook on.
**Returns**

- (::Array\<[::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Hook-HookEventType)\>) --- Optional. The events that trigger hook on.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- 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}`
**Returns**

- (::String) --- 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}`

### #push_option

    def push_option() -> ::Google::Cloud::SecureSourceManager::V1::Hook::PushOption

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::Hook::PushOption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Hook-PushOption)) --- Optional. The trigger option for push events.

### #push_option=

    def push_option=(value) -> ::Google::Cloud::SecureSourceManager::V1::Hook::PushOption

**Parameter**

- **value** ([::Google::Cloud::SecureSourceManager::V1::Hook::PushOption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Hook-PushOption)) --- Optional. The trigger option for push events.
**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::Hook::PushOption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-Hook-PushOption)) --- Optional. The trigger option for push events.

### #sensitive_query_string

    def sensitive_query_string() -> ::String

**Returns**

- (::String) --- Optional. The sensitive query string to be appended to the target URI.

### #sensitive_query_string=

    def sensitive_query_string=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The sensitive query string to be appended to the target URI.
**Returns**

- (::String) --- Optional. The sensitive query string to be appended to the target URI.

### #target_uri

    def target_uri() -> ::String

**Returns**

- (::String) --- Required. The target URI to which the payloads will be delivered.

### #target_uri=

    def target_uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The target URI to which the payloads will be delivered.
**Returns**

- (::String) --- Required. The target URI to which the payloads will be delivered.

### #uid

    def uid() -> ::String

**Returns**

- (::String) --- Output only. Unique identifier of the hook.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. Update timestamp.