Class: Google::Apis::SecuresourcemanagerV1::Hook

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

Output only. Create timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


693
694
695
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 693

def create_time
  @create_time
end

#disabledBoolean 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

Returns:

  • (Boolean)


699
700
701
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 699

def disabled
  @disabled
end

#eventsArray<String>

Optional. The events that trigger hook on. Corresponds to the JSON property events

Returns:

  • (Array<String>)


705
706
707
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 705

def events
  @events
end

#nameString

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`

Returns:

  • (String)


712
713
714
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 712

def name
  @name
end

#push_optionGoogle::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_stringString

Optional. The sensitive query string to be appended to the target URI. Corresponds to the JSON property sensitiveQueryString

Returns:

  • (String)


722
723
724
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 722

def sensitive_query_string
  @sensitive_query_string
end

#target_uriString

Required. The target URI to which the payloads will be delivered. Corresponds to the JSON property targetUri

Returns:

  • (String)


727
728
729
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 727

def target_uri
  @target_uri
end

#uidString

Output only. Unique identifier of the hook. Corresponds to the JSON property uid

Returns:

  • (String)


732
733
734
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 732

def uid
  @uid
end

#update_timeString

Output only. Update timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


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