blob: 0575ef70c25f8d08152e26d76ecf04fe8b77850f [file] [log] [blame]
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="dataflow_v1b3.html">Dataflow API</a> . <a href="dataflow_v1b3.projects.html">projects</a> . <a href="dataflow_v1b3.projects.templateVersions.html">templateVersions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#list">list(parent=None, Format=None, Format, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
79<p class="firstline">List TemplateVersions using project_id and an optional display_name field.</p>
80<p class="toc_element">
81 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<h3>Method Details</h3>
84<div class="method">
85 <code class="details" id="list">list(parent=None, Format=None, Format, pageToken=None, pageSize=None, x__xgafv=None)</code>
86 <pre>List TemplateVersions using project_id and an optional display_name field.
87List all the TemplateVersions in the Template if display set.
88List all the TemplateVersions in the Project if display_name not set.
89
90Args:
91 parent: string, parent includes project_id, and display_name is optional.
92
93List by project_id(pid1) and display_name(tid1).
94 Format: projects/{pid1}/catalogTemplates/{tid1}
95
96List by project_id(pid1).
97 Format: projects/{pid1} (required)
98 pageToken: string, The page token, received from a previous ListTemplateVersions call.
99Provide this to retrieve the subsequent page.
100 pageSize: integer, The maximum number of TemplateVersions to return per page.
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
109 { # Respond a list of TemplateVersions.
110 &quot;templateVersions&quot;: [ # A list of TemplateVersions.
111 { # /////////////////////////////////////////////////////////////////////////////
112 # //// Template Catalog is used to organize user TemplateVersions.
113 # //// TemplateVersions that have the same project_id and display_name are
114 # //// belong to the same Template.
115 # //// Templates with the same project_id belong to the same Project.
116 # //// TemplateVersion may have labels and multiple labels are allowed.
117 # //// Duplicated labels in the same `TemplateVersion` are not allowed.
118 # //// TemplateVersion may have tags and multiple tags are allowed. Duplicated
119 # //// tags in the same `Template` are not allowed!
120 &quot;tags&quot;: [ # Alias for version_id, helps locate a TemplateVersion.
121 &quot;A String&quot;,
122 ],
123 &quot;description&quot;: &quot;A String&quot;, # Template description from the user.
124 &quot;displayName&quot;: &quot;A String&quot;, # A customized name for Template. Multiple TemplateVersions per Template.
125 &quot;createTime&quot;: &quot;A String&quot;, # Creation time of this TemplateVersion.
126 &quot;labels&quot;: { # Labels for the Template Version. Labels can be duplicate within Template.
127 &quot;a_key&quot;: &quot;A String&quot;,
128 },
129 &quot;artifact&quot;: { # Job information for templates. # Job graph and metadata if it is a legacy Template.
130 # Container image path and metadata if it is flex Template.
131 &quot;jobGraphGcsPath&quot;: &quot;A String&quot;, # job_graph_gcs_path set for legacy Template.
132 &quot;metadata&quot;: { # Metadata describing a template. # Metadata set for legacy Template.
133 &quot;parameters&quot;: [ # The parameters for the template.
134 { # Metadata for a specific parameter.
135 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
136 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter.
137 # Used for selecting input picker.
138 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
139 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
140 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
141 &quot;A String&quot;,
142 ],
143 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
144 },
145 ],
146 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the template.
147 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of the template.
148 },
149 &quot;containerSpec&quot;: { # Container Spec. # Container image path set for flex Template.
150 &quot;metadata&quot;: { # Metadata describing a template. # Metadata describing a template including description and validation rules.
151 &quot;parameters&quot;: [ # The parameters for the template.
152 { # Metadata for a specific parameter.
153 &quot;label&quot;: &quot;A String&quot;, # Required. The label to display for the parameter.
154 &quot;paramType&quot;: &quot;A String&quot;, # Optional. The type of the parameter.
155 # Used for selecting input picker.
156 &quot;helpText&quot;: &quot;A String&quot;, # Required. The help text to display for the parameter.
157 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the parameter.
158 &quot;regexes&quot;: [ # Optional. Regexes that the parameter must match.
159 &quot;A String&quot;,
160 ],
161 &quot;isOptional&quot;: True or False, # Optional. Whether the parameter is optional. Defaults to false.
162 },
163 ],
164 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the template.
165 &quot;description&quot;: &quot;A String&quot;, # Optional. A description of the template.
166 },
167 &quot;sdkInfo&quot;: { # SDK Information. # Required. SDK info of the Flex Template.
168 &quot;language&quot;: &quot;A String&quot;, # Required. The SDK Language.
169 &quot;version&quot;: &quot;A String&quot;, # Optional. The SDK version.
170 },
171 &quot;image&quot;: &quot;A String&quot;, # Name of the docker container image. E.g., gcr.io/project/some-image
172 },
173 },
174 &quot;versionId&quot;: &quot;A String&quot;, # An auto generated version_id for TemplateVersion.
175 &quot;type&quot;: &quot;A String&quot;, # Either LEGACY or FLEX. This should match with the type of artifact.
176 &quot;projectId&quot;: &quot;A String&quot;, # A unique project_id. Multiple Templates per Project.
177 },
178 ],
179 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as `page_token` to retrieve the next page.
180 # If this field is omitted, there are no subsequent pages.
181 }</pre>
182</div>
183
184<div class="method">
185 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
186 <pre>Retrieves the next page of results.
187
188Args:
189 previous_request: The request for the previous page. (required)
190 previous_response: The response from the request for the previous page. (required)
191
192Returns:
193 A request object that you can call &#x27;execute()&#x27; on to request the next
194 page. Returns None if there are no more items in the collection.
195 </pre>
196</div>
197
198</body></html>