class Google::Apis::YoutubePartnerV1::MediaResponseInfo

This message is for backends to pass their scotty media specific fields to ESF. Backend will include this in their response message to ESF. Example: ExportFile is an rpc defined for upload using scotty from ESF. rpc ExportFile( ExportFileRequest) returns (ExportFileResponse) Message ExportFileResponse will include apiserving.MediaResponseInfo to tell ESF about data like dynamic_dropzone it needs to pass to Scotty. message ExportFileResponse ` optional gdata.Media blob = 1; optional apiserving.MediaResponseInfo media_response_info = 2 `

Attributes

custom_data[RW]

Data to copy from backend response to the next backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications. Corresponds to the JSON property `customData` @return [String]

data_storage_transform[RW]

Specifies any transformation to be applied to data before persisting it or retrieving from storage. E.g., encryption options for blobstore2. This should be of the form uploader_service.DataStorageTransform. Corresponds to the JSON property `dataStorageTransform` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

dynamic_drop_target[RW]

Specifies the Scotty Drop Target to use for uploads. If present in a media response, Scotty does not upload to a standard drop zone. Instead, Scotty saves the upload directly to the location specified in this drop target. Unlike drop zones, the drop target is the final storage location for an upload. So, the agent does not need to clone the blob at the end of the upload. The agent is responsible for garbage collecting any orphaned blobs that may occur due to aborted uploads. For more information, see the drop target design doc here: goto/ScottyDropTarget This field will be preferred to dynamicDropzone. If provided, the identified field in the response must be of the type uploader.agent.DropTarget. Corresponds to the JSON property `dynamicDropTarget` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

dynamic_dropzone[RW]

Specifies the Scotty dropzone to use for uploads. Corresponds to the JSON property `dynamicDropzone` @return [String]

media_for_diff[RW]

A reference to data stored on the filesystem, on GFS or in blobstore. Corresponds to the JSON property `mediaForDiff` @return [Google::Apis::YoutubePartnerV1::Media]

request_class[RW]

Request class to use for all Blobstore operations for this request. Corresponds to the JSON property `requestClass` @return [String]

scotty_agent_user_id[RW]

Requester ID passed along to be recorded in the Scotty logs Corresponds to the JSON property `scottyAgentUserId` @return [Fixnum]

scotty_customer_log[RW]

Customer-specific data to be recorded in the Scotty logs type is logs_proto_scotty.CustomerLog Corresponds to the JSON property `scottyCustomerLog` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

traffic_class_field[RW]

Specifies the TrafficClass that Scotty should use for any RPCs to fetch the response bytes. Will override the traffic class GTOS of the incoming http request. This is a temporary field to facilitate whitelisting and experimentation by the bigstore agent only. For instance, this does not apply to RTMP reads. WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM. Corresponds to the JSON property `trafficClassField` @return [String]

verify_hash_from_header[RW]

Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog- Hash header. Corresponds to the JSON property `verifyHashFromHeader` @return [Boolean]

verify_hash_from_header?[RW]

Tells Scotty to verify hashes on the agent's behalf by parsing out the X-Goog- Hash header. Corresponds to the JSON property `verifyHashFromHeader` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_partner_v1/classes.rb, line 2407
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_partner_v1/classes.rb, line 2412
def update!(**args)
  @custom_data = args[:custom_data] if args.key?(:custom_data)
  @data_storage_transform = args[:data_storage_transform] if args.key?(:data_storage_transform)
  @dynamic_drop_target = args[:dynamic_drop_target] if args.key?(:dynamic_drop_target)
  @dynamic_dropzone = args[:dynamic_dropzone] if args.key?(:dynamic_dropzone)
  @media_for_diff = args[:media_for_diff] if args.key?(:media_for_diff)
  @request_class = args[:request_class] if args.key?(:request_class)
  @scotty_agent_user_id = args[:scotty_agent_user_id] if args.key?(:scotty_agent_user_id)
  @scotty_customer_log = args[:scotty_customer_log] if args.key?(:scotty_customer_log)
  @traffic_class_field = args[:traffic_class_field] if args.key?(:traffic_class_field)
  @verify_hash_from_header = args[:verify_hash_from_header] if args.key?(:verify_hash_from_header)
end