Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame^] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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. |
| 87 | List all the TemplateVersions in the Template if display set. |
| 88 | List all the TemplateVersions in the Project if display_name not set. |
| 89 | |
| 90 | Args: |
| 91 | parent: string, parent includes project_id, and display_name is optional. |
| 92 | |
| 93 | List by project_id(pid1) and display_name(tid1). |
| 94 | Format: projects/{pid1}/catalogTemplates/{tid1} |
| 95 | |
| 96 | List by project_id(pid1). |
| 97 | Format: projects/{pid1} (required) |
| 98 | pageToken: string, The page token, received from a previous ListTemplateVersions call. |
| 99 | Provide 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 | |
| 106 | Returns: |
| 107 | An object of the form: |
| 108 | |
| 109 | { # Respond a list of TemplateVersions. |
| 110 | "templateVersions": [ # 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 | "tags": [ # Alias for version_id, helps locate a TemplateVersion. |
| 121 | "A String", |
| 122 | ], |
| 123 | "description": "A String", # Template description from the user. |
| 124 | "displayName": "A String", # A customized name for Template. Multiple TemplateVersions per Template. |
| 125 | "createTime": "A String", # Creation time of this TemplateVersion. |
| 126 | "labels": { # Labels for the Template Version. Labels can be duplicate within Template. |
| 127 | "a_key": "A String", |
| 128 | }, |
| 129 | "artifact": { # 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 | "jobGraphGcsPath": "A String", # job_graph_gcs_path set for legacy Template. |
| 132 | "metadata": { # Metadata describing a template. # Metadata set for legacy Template. |
| 133 | "parameters": [ # The parameters for the template. |
| 134 | { # Metadata for a specific parameter. |
| 135 | "label": "A String", # Required. The label to display for the parameter. |
| 136 | "paramType": "A String", # Optional. The type of the parameter. |
| 137 | # Used for selecting input picker. |
| 138 | "helpText": "A String", # Required. The help text to display for the parameter. |
| 139 | "name": "A String", # Required. The name of the parameter. |
| 140 | "regexes": [ # Optional. Regexes that the parameter must match. |
| 141 | "A String", |
| 142 | ], |
| 143 | "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. |
| 144 | }, |
| 145 | ], |
| 146 | "name": "A String", # Required. The name of the template. |
| 147 | "description": "A String", # Optional. A description of the template. |
| 148 | }, |
| 149 | "containerSpec": { # Container Spec. # Container image path set for flex Template. |
| 150 | "metadata": { # Metadata describing a template. # Metadata describing a template including description and validation rules. |
| 151 | "parameters": [ # The parameters for the template. |
| 152 | { # Metadata for a specific parameter. |
| 153 | "label": "A String", # Required. The label to display for the parameter. |
| 154 | "paramType": "A String", # Optional. The type of the parameter. |
| 155 | # Used for selecting input picker. |
| 156 | "helpText": "A String", # Required. The help text to display for the parameter. |
| 157 | "name": "A String", # Required. The name of the parameter. |
| 158 | "regexes": [ # Optional. Regexes that the parameter must match. |
| 159 | "A String", |
| 160 | ], |
| 161 | "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. |
| 162 | }, |
| 163 | ], |
| 164 | "name": "A String", # Required. The name of the template. |
| 165 | "description": "A String", # Optional. A description of the template. |
| 166 | }, |
| 167 | "sdkInfo": { # SDK Information. # Required. SDK info of the Flex Template. |
| 168 | "language": "A String", # Required. The SDK Language. |
| 169 | "version": "A String", # Optional. The SDK version. |
| 170 | }, |
| 171 | "image": "A String", # Name of the docker container image. E.g., gcr.io/project/some-image |
| 172 | }, |
| 173 | }, |
| 174 | "versionId": "A String", # An auto generated version_id for TemplateVersion. |
| 175 | "type": "A String", # Either LEGACY or FLEX. This should match with the type of artifact. |
| 176 | "projectId": "A String", # A unique project_id. Multiple Templates per Project. |
| 177 | }, |
| 178 | ], |
| 179 | "nextPageToken": "A String", # 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 | |
| 188 | Args: |
| 189 | previous_request: The request for the previous page. (required) |
| 190 | previous_response: The response from the request for the previous page. (required) |
| 191 | |
| 192 | Returns: |
| 193 | A request object that you can call 'execute()' 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> |