Class: Google::Apis::CloudtasksV2beta2::PullTaskTarget

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudtasks_v2beta2/classes.rb,
generated/google/apis/cloudtasks_v2beta2/representations.rb,
generated/google/apis/cloudtasks_v2beta2/representations.rb

Overview

Deprecated. Use PullMessage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PullTaskTarget

Returns a new instance of PullTaskTarget



915
916
917
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 915

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

Instance Attribute Details

#payloadString

Deprecated. Use PullMessage.payload. Corresponds to the JSON property payload NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


907
908
909
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 907

def payload
  @payload
end

#tagString

Deprecated. Use PullMessage.tag. Corresponds to the JSON property tag NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


913
914
915
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 913

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



920
921
922
923
# File 'generated/google/apis/cloudtasks_v2beta2/classes.rb', line 920

def update!(**args)
  @payload = args[:payload] if args.key?(:payload)
  @tag = args[:tag] if args.key?(:tag)
end