Class: Google::Cloud::SecureSourceManager::V1::Hook
- Inherits:
-
Object
- Object
- Google::Cloud::SecureSourceManager::V1::Hook
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb
Overview
Metadata of a Secure Source Manager Hook.
Defined Under Namespace
Modules: HookEventType Classes: PushOption
Instance Attribute Summary collapse
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#disabled ⇒ ::Boolean
Optional.
-
#events ⇒ ::Array<::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType>
Optional.
-
#name ⇒ ::String
Identifier.
-
#push_option ⇒ ::Google::Cloud::SecureSourceManager::V1::Hook::PushOption
Optional.
-
#sensitive_query_string ⇒ ::String
Optional.
-
#target_uri ⇒ ::String
Required.
-
#uid ⇒ ::String
readonly
Output only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Create timestamp.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#disabled ⇒ ::Boolean
Returns Optional. Determines if the hook disabled or not. Set to true to stop sending traffic.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#events ⇒ ::Array<::Google::Cloud::SecureSourceManager::V1::Hook::HookEventType>
Returns Optional. The events that trigger hook on.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#name ⇒ ::String
Returns 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}.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#push_option ⇒ ::Google::Cloud::SecureSourceManager::V1::Hook::PushOption
Returns Optional. The trigger option for push events.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#sensitive_query_string ⇒ ::String
Returns Optional. The sensitive query string to be appended to the target URI.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#target_uri ⇒ ::String
Returns Required. The target URI to which the payloads will be delivered.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#uid ⇒ ::String (readonly)
Returns Output only. Unique identifier of the hook.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. Update timestamp.
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'proto_docs/google/cloud/securesourcemanager/v1/secure_source_manager.rb', line 403 class Hook include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] branch_filter # @return [::String] # Optional. Trigger hook for matching branches only. # Specified as glob pattern. If empty or *, events for all branches are # reported. Examples: main, \\{main,release*}. # See https://pkg.go.dev/github.com/gobwas/glob documentation. class PushOption include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end module HookEventType # Unspecified. UNSPECIFIED = 0 # Push events are triggered when pushing to the repository. PUSH = 1 # Pull request events are triggered when a pull request is opened, closed, # reopened, or edited. PULL_REQUEST = 2 end end |