Class: Google::Apis::ServicecontrolV1::V1ResourceEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicecontrol_v1/classes.rb,
lib/google/apis/servicecontrol_v1/representations.rb,
lib/google/apis/servicecontrol_v1/representations.rb

Overview

Report v2 extension proto for passing the resource metadata associated with a resource create/update/delete/undelete event from ESF to Chemist. ResourceEvent proto should be serialized into the ReportRequest.operations. extensions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ V1ResourceEvent

Returns a new instance of V1ResourceEvent.



2966
2967
2968
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2966

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#destinationsString

The destinations field determines which backend services should handle the event. This should be specified as a comma-delimited string. Corresponds to the JSON property destinations

Returns:

  • (String)


2930
2931
2932
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2930

def destinations
  @destinations
end

#parentGoogle::Apis::ServicecontrolV1::Resource

This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service. Corresponds to the JSON property parent



2937
2938
2939
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2937

def parent
  @parent
end

#pathString

The api path the resource event was created in. This should match the source of the payload field. For direct integrations with Chemist, this should generally be the RESPONSE. go/resource-event-pipeline-type Corresponds to the JSON property path

Returns:

  • (String)


2944
2945
2946
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2944

def path
  @path
end

#payloadHash<String,Object>

The payload contains metadata associated with the resource event. A ResourceEventPayloadStatus is provided instead if the original payload cannot be returned due to a limitation (e.g. size limit). Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


2951
2952
2953
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2951

def payload
  @payload
end

#resourceGoogle::Apis::ServicecontrolV1::Resource

This message defines core attributes for a resource. A resource is an addressable (named) entity provided by the destination service. For example, a file stored on a network storage service. Corresponds to the JSON property resource



2958
2959
2960
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2958

def resource
  @resource
end

#typeString

The resource event type determines how the backend service should process the event. Corresponds to the JSON property type

Returns:

  • (String)


2964
2965
2966
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2964

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2971
2972
2973
2974
2975
2976
2977
2978
# File 'lib/google/apis/servicecontrol_v1/classes.rb', line 2971

def update!(**args)
  @destinations = args[:destinations] if args.key?(:destinations)
  @parent = args[:parent] if args.key?(:parent)
  @path = args[:path] if args.key?(:path)
  @payload = args[:payload] if args.key?(:payload)
  @resource = args[:resource] if args.key?(:resource)
  @type = args[:type] if args.key?(:type)
end