Class: Google::Apis::CloudsearchV1::OpenCreatedDraftActionMarkup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OpenCreatedDraftActionMarkup

Returns a new instance of OpenCreatedDraftActionMarkup.



14863
14864
14865
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14863

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

Instance Attribute Details

#draft_idString

The ID of the newly created draft in the form "r123". Corresponds to the JSON property draftId

Returns:

  • (String)


14843
14844
14845
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14843

def draft_id
  @draft_id
end

#draft_storage_idString

The server storage ID in hex format, for example,"15e9fa622ce1029d". Corresponds to the JSON property draftStorageId

Returns:

  • (String)


14848
14849
14850
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14848

def draft_storage_id
  @draft_storage_id
end

#draft_thread_idString

The ID of the thread containing the newly created draft, for example, " 15e9fa622ce1029d". Corresponds to the JSON property draftThreadId

Returns:

  • (String)


14854
14855
14856
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14854

def draft_thread_id
  @draft_thread_id
end

#draft_thread_server_perm_idString

The server permanent ID for the draft's thread. This field isn't set anywhere, and it's ignored when processing OpenCreatedDraftActionMarkup. Supply and use draftThreadStorageId instead. Corresponds to the JSON property draftThreadServerPermId

Returns:

  • (String)


14861
14862
14863
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14861

def draft_thread_server_perm_id
  @draft_thread_server_perm_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14868
14869
14870
14871
14872
14873
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14868

def update!(**args)
  @draft_id = args[:draft_id] if args.key?(:draft_id)
  @draft_storage_id = args[:draft_storage_id] if args.key?(:draft_storage_id)
  @draft_thread_id = args[:draft_thread_id] if args.key?(:draft_thread_id)
  @draft_thread_server_perm_id = args[:draft_thread_server_perm_id] if args.key?(:draft_thread_server_perm_id)
end