Class: Google::Apis::SecuresourcemanagerV1::Hook
- Inherits:
-
Object
- Object
- Google::Apis::SecuresourcemanagerV1::Hook
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securesourcemanager_v1/classes.rb,
lib/google/apis/securesourcemanager_v1/representations.rb,
lib/google/apis/securesourcemanager_v1/representations.rb
Overview
Metadata of a Secure Source Manager Hook.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#disabled ⇒ Boolean
(also: #disabled?)
Optional.
-
#events ⇒ Array<String>
Optional.
-
#name ⇒ String
Identifier.
-
#push_option ⇒ Google::Apis::SecuresourcemanagerV1::PushOption
Optional.
-
#sensitive_query_string ⇒ String
Optional.
-
#target_uri ⇒ String
Required.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Hook
constructor
A new instance of Hook.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Hook
Returns a new instance of Hook.
739 740 741 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 739 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Create timestamp.
Corresponds to the JSON property createTime
693 694 695 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 693 def create_time @create_time end |
#disabled ⇒ Boolean Also known as: disabled?
Optional. Determines if the hook disabled or not. Set to true to stop sending
traffic.
Corresponds to the JSON property disabled
699 700 701 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 699 def disabled @disabled end |
#events ⇒ Array<String>
Optional. The events that trigger hook on.
Corresponds to the JSON property events
705 706 707 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 705 def events @events end |
#name ⇒ 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`
Corresponds to the JSON propertyname`
712 713 714 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 712 def name @name end |
#push_option ⇒ Google::Apis::SecuresourcemanagerV1::PushOption
Optional. The trigger option for push events.
Corresponds to the JSON property pushOption
717 718 719 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 717 def push_option @push_option end |
#sensitive_query_string ⇒ String
Optional. The sensitive query string to be appended to the target URI.
Corresponds to the JSON property sensitiveQueryString
722 723 724 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 722 def sensitive_query_string @sensitive_query_string end |
#target_uri ⇒ String
Required. The target URI to which the payloads will be delivered.
Corresponds to the JSON property targetUri
727 728 729 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 727 def target_uri @target_uri end |
#uid ⇒ String
Output only. Unique identifier of the hook.
Corresponds to the JSON property uid
732 733 734 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 732 def uid @uid end |
#update_time ⇒ String
Output only. Update timestamp.
Corresponds to the JSON property updateTime
737 738 739 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 737 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 744 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @disabled = args[:disabled] if args.key?(:disabled) @events = args[:events] if args.key?(:events) @name = args[:name] if args.key?(:name) @push_option = args[:push_option] if args.key?(:push_option) @sensitive_query_string = args[:sensitive_query_string] if args.key?(:sensitive_query_string) @target_uri = args[:target_uri] if args.key?(:target_uri) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |