Skip to content

UpdateGist

[Source]

Updates an existing gist's files and/or description. Each entry in the files array maps a filename to a GistFileUpdate: GistFileEdit to change content, GistFileRename to rename (optionally with new content), or GistFileDelete to remove the file.

primitive val UpdateGist

Constructors

create

[Source]

new val create()
: UpdateGist val^

Returns


Public Functions

apply

[Source]

fun box apply(
  gist_id: String val,
  files: Array[(String val , (GistFileEdit val | GistFileRename val | GistFileDelete val))] val,
  creds: Credentials val,
  description: (String val | None val) = reference)
: Promise[(Gist val | RequestError val)] tag

Parameters

Returns


by_url

[Source]

fun box by_url(
  url: String val,
  files: Array[(String val , (GistFileEdit val | GistFileRename val | GistFileDelete val))] val,
  creds: Credentials val,
  description: (String val | None val) = reference)
: Promise[(Gist val | RequestError val)] tag

Parameters

Returns


eq

[Source]

fun box eq(
  that: UpdateGist val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: UpdateGist val)
: Bool val

Parameters

Returns