72 lines
3 KiB
Cheetah
72 lines
3 KiB
Cheetah
{{ template "header" .Header }}
|
|
|
|
{{ htmlSafe "<!-- WARNING: this file was generated by" }} {{ .Tool }}. {{ htmlSafe "-->" }}
|
|
{{ htmlSafe "<!-- Do not edit by hand unless you're certain you know what you are doing! -->" }}
|
|
|
|
{{- if .DeprecationMessage }}
|
|
<p class="resource-deprecated">Deprecated: {{ print "{{% md %}}" -}}{{- .DeprecationMessage -}}{{- print "{{% /md %}}" -}}</p>
|
|
{{- end }}
|
|
|
|
{{ htmlSafe .Comment }}
|
|
{{- if ne (len .ExamplesSection) 0 }}
|
|
{{ template "examples" .ExamplesSection }}
|
|
{{- end }}
|
|
|
|
<!-- Input properties -->
|
|
## Using {{ .Header.Title }} {#using}
|
|
|
|
{{ htmlSafe "{{< chooser language \"typescript,python,go,csharp\" / >}}" }}
|
|
|
|
<!-- TS/JS -->
|
|
{{ print "{{% choosable language nodejs %}}" }}
|
|
<div class="highlight"><pre class="chroma"><code class="language-typescript" data-lang="typescript"><span class="k">function </span>{{ .FunctionName.nodejs }}<span class="p">(</span>{{ htmlSafe .FunctionArgs.nodejs }}<span class="p">): Promise<{{ template "linkify_param" .FunctionResult.nodejs }}></span></code></pre></div>
|
|
{{ print "{{% /choosable %}}" }}
|
|
|
|
<!-- Python -->
|
|
{{ print "{{% choosable language python %}}" }}
|
|
<div class="highlight"><pre class="chroma"><code class="language-python" data-lang="python"><span class="k">def </span>{{ .FunctionName.python }}(</span>{{ htmlSafe .FunctionArgs.python }}<span class="p">) -></span> {{ .FunctionResult.python.Name }}</code></pre></div>
|
|
{{ print "{{% /choosable %}}" }}
|
|
|
|
<!-- Go -->
|
|
{{ print "{{% choosable language go %}}" }}
|
|
<div class="highlight"><pre class="chroma"><code class="language-go" data-lang="go"><span class="k">func </span>{{ .FunctionName.go }}<span class="p">(</span>{{ htmlSafe .FunctionArgs.go }}<span class="p">) (*{{ template "linkify_param" .FunctionResult.go }}, error)</span></code></pre></div>
|
|
{{ if ne .FunctionName.go .Header.Title }}
|
|
> Note: This function is named `{{ .FunctionName.go }}` in the Go SDK.
|
|
{{ end }}
|
|
{{ print "{{% /choosable %}}" }}
|
|
|
|
<!-- C# -->
|
|
{{ print "{{% choosable language csharp %}}" }}
|
|
<div class="highlight"><pre class="chroma"><code class="language-csharp" data-lang="csharp"><span class="k">public static class </span><span class="nx">{{ .FunctionName.csharp }} </span><span class="p">{</span><span class="k">
|
|
public static </span>Task<{{ template "linkify_param" .FunctionResult.csharp }}> <span class="p">InvokeAsync(</span>{{ htmlSafe .FunctionArgs.csharp }}<span class="p">)</span><span class="p">
|
|
}</span></code></pre></div>
|
|
{{ print "{{% /choosable %}}" }}
|
|
|
|
{{ if ne (len .InputProperties) 0 }}
|
|
|
|
The following arguments are supported:
|
|
{{ template "properties" .InputProperties }}
|
|
|
|
{{ end }}
|
|
|
|
<!-- Output properties -->
|
|
## {{.Header.Title}} Result {#result}
|
|
|
|
The following output properties are available:
|
|
|
|
{{ template "properties" .OutputProperties }}
|
|
|
|
<!-- Supporting types -->
|
|
{{ if ne (len .NestedTypes) 0 }}
|
|
|
|
## Supporting Types
|
|
|
|
{{ range .NestedTypes }}
|
|
<h4 id="{{ .AnchorID }}">{{ htmlSafe .Name }}</h4>
|
|
|
|
{{ template "properties" .Properties }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ template "package_details" .PackageDetails }}
|