1<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.catalogTemplates.html">catalogTemplates</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="dataflow_v1b3.projects.catalogTemplates.templateVersions.html">templateVersions()</a></code> 79</p> 80<p class="firstline">Returns the templateVersions Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="#close">close()</a></code></p> 84<p class="firstline">Close httplib2 connections.</p> 85<p class="toc_element"> 86 <code><a href="#commit">commit(name, body=None, x__xgafv=None)</a></code></p> 87<p class="firstline">Creates a new TemplateVersion (Important: not new Template) entry in the spanner table. Requires project_id and display_name (template).</p> 88<p class="toc_element"> 89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 90<p class="firstline">Deletes an existing Template. Do nothing if Template does not exist.</p> 91<p class="toc_element"> 92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 93<p class="firstline">Get TemplateVersion using project_id and display_name with an optional version_id field. Get latest (has tag "latest") TemplateVersion if version_id not set.</p> 94<p class="toc_element"> 95 <code><a href="#label">label(name, body=None, x__xgafv=None)</a></code></p> 96<p class="firstline">Updates the label of the TemplateVersion. Label can be duplicated in Template, so either add or remove the label in the TemplateVersion.</p> 97<p class="toc_element"> 98 <code><a href="#tag">tag(name, body=None, x__xgafv=None)</a></code></p> 99<p class="firstline">Updates the tag of the TemplateVersion, and tag is unique in Template. If tag exists in another TemplateVersion in the Template, updates the tag to this TemplateVersion will remove it from the old TemplateVersion and add it to this TemplateVersion. If request is remove_only (remove_only = true), remove the tag from this TemplateVersion.</p> 100<h3>Method Details</h3> 101<div class="method"> 102 <code class="details" id="close">close()</code> 103 <pre>Close httplib2 connections.</pre> 104</div> 105 106<div class="method"> 107 <code class="details" id="commit">commit(name, body=None, x__xgafv=None)</code> 108 <pre>Creates a new TemplateVersion (Important: not new Template) entry in the spanner table. Requires project_id and display_name (template). 109 110Args: 111 name: string, The location of the template, name includes project_id and display_name. Commit using project_id(pid1) and display_name(tid1). Format: projects/{pid1}/catalogTemplates/{tid1} (required) 112 body: object, The request body. 113 The object takes the form of: 114 115{ # Commit will add a new TemplateVersion to an existing template. 116 "templateVersion": { # ///////////////////////////////////////////////////////////////////////////// //// Template Catalog is used to organize user TemplateVersions. //// TemplateVersions that have the same project_id and display_name are //// belong to the same Template. //// Templates with the same project_id belong to the same Project. //// TemplateVersion may have labels and multiple labels are allowed. //// Duplicated labels in the same `TemplateVersion` are not allowed. //// TemplateVersion may have tags and multiple tags are allowed. Duplicated //// tags in the same `Template` are not allowed! # TemplateVersion obejct to create. 117 "artifact": { # Job information for templates. # Job graph and metadata if it is a legacy Template. Container image path and metadata if it is flex Template. 118 "containerSpec": { # Container Spec. # Container image path set for flex Template. 119 "defaultEnvironment": { # The environment values to be set at runtime for flex template. # Default runtime environment for the job. 120 "additionalExperiments": [ # Additional experiment flags for the job. 121 "A String", 122 ], 123 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }. 124 "a_key": "A String", 125 }, 126 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 127 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 128 "ipConfiguration": "A String", # Configuration for VM IPs. 129 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 130 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 131 "maxWorkers": 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 132 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 133 "numWorkers": 42, # The initial number of Google Compute Engine instances for the job. 134 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 135 "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. 136 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 137 "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. 138 "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 139 "zone": "A String", # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence. 140 }, 141 "image": "A String", # Name of the docker container image. E.g., gcr.io/project/some-image 142 "metadata": { # Metadata describing a template. # Metadata describing a template including description and validation rules. 143 "description": "A String", # Optional. A description of the template. 144 "name": "A String", # Required. The name of the template. 145 "parameters": [ # The parameters for the template. 146 { # Metadata for a specific parameter. 147 "helpText": "A String", # Required. The help text to display for the parameter. 148 "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. 149 "label": "A String", # Required. The label to display for the parameter. 150 "name": "A String", # Required. The name of the parameter. 151 "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. 152 "regexes": [ # Optional. Regexes that the parameter must match. 153 "A String", 154 ], 155 }, 156 ], 157 }, 158 "sdkInfo": { # SDK Information. # Required. SDK info of the Flex Template. 159 "language": "A String", # Required. The SDK Language. 160 "version": "A String", # Optional. The SDK version. 161 }, 162 }, 163 "jobGraphGcsPath": "A String", # job_graph_gcs_path set for legacy Template. 164 "metadata": { # Metadata describing a template. # Metadata set for legacy Template. 165 "description": "A String", # Optional. A description of the template. 166 "name": "A String", # Required. The name of the template. 167 "parameters": [ # The parameters for the template. 168 { # Metadata for a specific parameter. 169 "helpText": "A String", # Required. The help text to display for the parameter. 170 "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. 171 "label": "A String", # Required. The label to display for the parameter. 172 "name": "A String", # Required. The name of the parameter. 173 "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. 174 "regexes": [ # Optional. Regexes that the parameter must match. 175 "A String", 176 ], 177 }, 178 ], 179 }, 180 }, 181 "createTime": "A String", # Creation time of this TemplateVersion. 182 "description": "A String", # Template description from the user. 183 "displayName": "A String", # A customized name for Template. Multiple TemplateVersions per Template. 184 "labels": { # Labels for the Template Version. Labels can be duplicate within Template. 185 "a_key": "A String", 186 }, 187 "projectId": "A String", # A unique project_id. Multiple Templates per Project. 188 "tags": [ # Alias for version_id, helps locate a TemplateVersion. 189 "A String", 190 ], 191 "type": "A String", # Either LEGACY or FLEX. This should match with the type of artifact. 192 "versionId": "A String", # An auto generated version_id for TemplateVersion. 193 }, 194} 195 196 x__xgafv: string, V1 error format. 197 Allowed values 198 1 - v1 error format 199 2 - v2 error format 200 201Returns: 202 An object of the form: 203 204 { # ///////////////////////////////////////////////////////////////////////////// //// Template Catalog is used to organize user TemplateVersions. //// TemplateVersions that have the same project_id and display_name are //// belong to the same Template. //// Templates with the same project_id belong to the same Project. //// TemplateVersion may have labels and multiple labels are allowed. //// Duplicated labels in the same `TemplateVersion` are not allowed. //// TemplateVersion may have tags and multiple tags are allowed. Duplicated //// tags in the same `Template` are not allowed! 205 "artifact": { # Job information for templates. # Job graph and metadata if it is a legacy Template. Container image path and metadata if it is flex Template. 206 "containerSpec": { # Container Spec. # Container image path set for flex Template. 207 "defaultEnvironment": { # The environment values to be set at runtime for flex template. # Default runtime environment for the job. 208 "additionalExperiments": [ # Additional experiment flags for the job. 209 "A String", 210 ], 211 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }. 212 "a_key": "A String", 213 }, 214 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 215 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 216 "ipConfiguration": "A String", # Configuration for VM IPs. 217 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 218 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 219 "maxWorkers": 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 220 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 221 "numWorkers": 42, # The initial number of Google Compute Engine instances for the job. 222 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 223 "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. 224 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 225 "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. 226 "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 227 "zone": "A String", # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence. 228 }, 229 "image": "A String", # Name of the docker container image. E.g., gcr.io/project/some-image 230 "metadata": { # Metadata describing a template. # Metadata describing a template including description and validation rules. 231 "description": "A String", # Optional. A description of the template. 232 "name": "A String", # Required. The name of the template. 233 "parameters": [ # The parameters for the template. 234 { # Metadata for a specific parameter. 235 "helpText": "A String", # Required. The help text to display for the parameter. 236 "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. 237 "label": "A String", # Required. The label to display for the parameter. 238 "name": "A String", # Required. The name of the parameter. 239 "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. 240 "regexes": [ # Optional. Regexes that the parameter must match. 241 "A String", 242 ], 243 }, 244 ], 245 }, 246 "sdkInfo": { # SDK Information. # Required. SDK info of the Flex Template. 247 "language": "A String", # Required. The SDK Language. 248 "version": "A String", # Optional. The SDK version. 249 }, 250 }, 251 "jobGraphGcsPath": "A String", # job_graph_gcs_path set for legacy Template. 252 "metadata": { # Metadata describing a template. # Metadata set for legacy Template. 253 "description": "A String", # Optional. A description of the template. 254 "name": "A String", # Required. The name of the template. 255 "parameters": [ # The parameters for the template. 256 { # Metadata for a specific parameter. 257 "helpText": "A String", # Required. The help text to display for the parameter. 258 "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. 259 "label": "A String", # Required. The label to display for the parameter. 260 "name": "A String", # Required. The name of the parameter. 261 "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. 262 "regexes": [ # Optional. Regexes that the parameter must match. 263 "A String", 264 ], 265 }, 266 ], 267 }, 268 }, 269 "createTime": "A String", # Creation time of this TemplateVersion. 270 "description": "A String", # Template description from the user. 271 "displayName": "A String", # A customized name for Template. Multiple TemplateVersions per Template. 272 "labels": { # Labels for the Template Version. Labels can be duplicate within Template. 273 "a_key": "A String", 274 }, 275 "projectId": "A String", # A unique project_id. Multiple Templates per Project. 276 "tags": [ # Alias for version_id, helps locate a TemplateVersion. 277 "A String", 278 ], 279 "type": "A String", # Either LEGACY or FLEX. This should match with the type of artifact. 280 "versionId": "A String", # An auto generated version_id for TemplateVersion. 281}</pre> 282</div> 283 284<div class="method"> 285 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 286 <pre>Deletes an existing Template. Do nothing if Template does not exist. 287 288Args: 289 name: string, name includes project_id and display_name. Delete by project_id(pid1) and display_name(tid1). Format: projects/{pid1}/catalogTemplates/{tid1} (required) 290 x__xgafv: string, V1 error format. 291 Allowed values 292 1 - v1 error format 293 2 - v2 error format 294 295Returns: 296 An object of the form: 297 298 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. 299}</pre> 300</div> 301 302<div class="method"> 303 <code class="details" id="get">get(name, x__xgafv=None)</code> 304 <pre>Get TemplateVersion using project_id and display_name with an optional version_id field. Get latest (has tag "latest") TemplateVersion if version_id not set. 305 306Args: 307 name: string, Resource name includes project_id and display_name. version_id is optional. Get the latest TemplateVersion if version_id not set. Get by project_id(pid1) and display_name(tid1): Format: projects/{pid1}/catalogTemplates/{tid1} Get by project_id(pid1), display_name(tid1), and version_id(vid1): Format: projects/{pid1}/catalogTemplates/{tid1@vid} (required) 308 x__xgafv: string, V1 error format. 309 Allowed values 310 1 - v1 error format 311 2 - v2 error format 312 313Returns: 314 An object of the form: 315 316 { # ///////////////////////////////////////////////////////////////////////////// //// Template Catalog is used to organize user TemplateVersions. //// TemplateVersions that have the same project_id and display_name are //// belong to the same Template. //// Templates with the same project_id belong to the same Project. //// TemplateVersion may have labels and multiple labels are allowed. //// Duplicated labels in the same `TemplateVersion` are not allowed. //// TemplateVersion may have tags and multiple tags are allowed. Duplicated //// tags in the same `Template` are not allowed! 317 "artifact": { # Job information for templates. # Job graph and metadata if it is a legacy Template. Container image path and metadata if it is flex Template. 318 "containerSpec": { # Container Spec. # Container image path set for flex Template. 319 "defaultEnvironment": { # The environment values to be set at runtime for flex template. # Default runtime environment for the job. 320 "additionalExperiments": [ # Additional experiment flags for the job. 321 "A String", 322 ], 323 "additionalUserLabels": { # Additional user labels to be specified for the job. Keys and values must follow the restrictions specified in the [labeling restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) page. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1kg", "count": "3" }. 324 "a_key": "A String", 325 }, 326 "enableStreamingEngine": True or False, # Whether to enable Streaming Engine for the job. 327 "flexrsGoal": "A String", # Set FlexRS goal for the job. https://cloud.google.com/dataflow/docs/guides/flexrs 328 "ipConfiguration": "A String", # Configuration for VM IPs. 329 "kmsKeyName": "A String", # Name for the Cloud KMS key for the job. Key format is: projects//locations//keyRings//cryptoKeys/ 330 "machineType": "A String", # The machine type to use for the job. Defaults to the value from the template if not specified. 331 "maxWorkers": 42, # The maximum number of Google Compute Engine instances to be made available to your pipeline during execution, from 1 to 1000. 332 "network": "A String", # Network to which VMs will be assigned. If empty or unspecified, the service will use the network "default". 333 "numWorkers": 42, # The initial number of Google Compute Engine instances for the job. 334 "serviceAccountEmail": "A String", # The email address of the service account to run the job as. 335 "subnetwork": "A String", # Subnetwork to which VMs will be assigned, if desired. You can specify a subnetwork using either a complete URL or an abbreviated path. Expected to be of the form "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in a Shared VPC network, you must use the complete URL. 336 "tempLocation": "A String", # The Cloud Storage path to use for temporary files. Must be a valid Cloud Storage URL, beginning with `gs://`. 337 "workerRegion": "A String", # The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region. 338 "workerZone": "A String", # The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity. If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. 339 "zone": "A String", # The Compute Engine [availability zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) for launching worker instances to run your pipeline. In the future, worker_zone will take precedence. 340 }, 341 "image": "A String", # Name of the docker container image. E.g., gcr.io/project/some-image 342 "metadata": { # Metadata describing a template. # Metadata describing a template including description and validation rules. 343 "description": "A String", # Optional. A description of the template. 344 "name": "A String", # Required. The name of the template. 345 "parameters": [ # The parameters for the template. 346 { # Metadata for a specific parameter. 347 "helpText": "A String", # Required. The help text to display for the parameter. 348 "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. 349 "label": "A String", # Required. The label to display for the parameter. 350 "name": "A String", # Required. The name of the parameter. 351 "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. 352 "regexes": [ # Optional. Regexes that the parameter must match. 353 "A String", 354 ], 355 }, 356 ], 357 }, 358 "sdkInfo": { # SDK Information. # Required. SDK info of the Flex Template. 359 "language": "A String", # Required. The SDK Language. 360 "version": "A String", # Optional. The SDK version. 361 }, 362 }, 363 "jobGraphGcsPath": "A String", # job_graph_gcs_path set for legacy Template. 364 "metadata": { # Metadata describing a template. # Metadata set for legacy Template. 365 "description": "A String", # Optional. A description of the template. 366 "name": "A String", # Required. The name of the template. 367 "parameters": [ # The parameters for the template. 368 { # Metadata for a specific parameter. 369 "helpText": "A String", # Required. The help text to display for the parameter. 370 "isOptional": True or False, # Optional. Whether the parameter is optional. Defaults to false. 371 "label": "A String", # Required. The label to display for the parameter. 372 "name": "A String", # Required. The name of the parameter. 373 "paramType": "A String", # Optional. The type of the parameter. Used for selecting input picker. 374 "regexes": [ # Optional. Regexes that the parameter must match. 375 "A String", 376 ], 377 }, 378 ], 379 }, 380 }, 381 "createTime": "A String", # Creation time of this TemplateVersion. 382 "description": "A String", # Template description from the user. 383 "displayName": "A String", # A customized name for Template. Multiple TemplateVersions per Template. 384 "labels": { # Labels for the Template Version. Labels can be duplicate within Template. 385 "a_key": "A String", 386 }, 387 "projectId": "A String", # A unique project_id. Multiple Templates per Project. 388 "tags": [ # Alias for version_id, helps locate a TemplateVersion. 389 "A String", 390 ], 391 "type": "A String", # Either LEGACY or FLEX. This should match with the type of artifact. 392 "versionId": "A String", # An auto generated version_id for TemplateVersion. 393}</pre> 394</div> 395 396<div class="method"> 397 <code class="details" id="label">label(name, body=None, x__xgafv=None)</code> 398 <pre>Updates the label of the TemplateVersion. Label can be duplicated in Template, so either add or remove the label in the TemplateVersion. 399 400Args: 401 name: string, Resource name includes project_id, display_name, and version_id. Updates by project_id(pid1), display_name(tid1), and version_id(vid1): Format: projects/{pid1}/catalogTemplates/{tid1@vid} (required) 402 body: object, The request body. 403 The object takes the form of: 404 405{ # Either add the label to TemplateVersion or remove it from the TemplateVersion. 406 "key": "A String", # The label key for update. 407 "op": "A String", # Requests for add label to TemplateVersion or remove label from TemplateVersion. 408 "value": "A String", # The label value for update. 409} 410 411 x__xgafv: string, V1 error format. 412 Allowed values 413 1 - v1 error format 414 2 - v2 error format 415 416Returns: 417 An object of the form: 418 419 { # Respond the labels in the TemplateVersion. 420 "labels": { # All the label in the TemplateVersion. 421 "a_key": "A String", 422 }, 423}</pre> 424</div> 425 426<div class="method"> 427 <code class="details" id="tag">tag(name, body=None, x__xgafv=None)</code> 428 <pre>Updates the tag of the TemplateVersion, and tag is unique in Template. If tag exists in another TemplateVersion in the Template, updates the tag to this TemplateVersion will remove it from the old TemplateVersion and add it to this TemplateVersion. If request is remove_only (remove_only = true), remove the tag from this TemplateVersion. 429 430Args: 431 name: string, Resource name includes project_id, display_name, and version_id. Updates by project_id(pid1), display_name(tid1), and version_id(vid1): Format: projects/{pid1}/catalogTemplates/{tid1@vid} (required) 432 body: object, The request body. 433 The object takes the form of: 434 435{ # Add a tag to the current TemplateVersion. If tag exist in another TemplateVersion in the Template, remove the tag before add it to the current TemplateVersion. If remove_only set, remove the tag from the current TemplateVersion. 436 "removeOnly": True or False, # The flag that indicates if the request is only for remove tag from TemplateVersion. 437 "tag": "A String", # The tag for update. 438} 439 440 x__xgafv: string, V1 error format. 441 Allowed values 442 1 - v1 error format 443 2 - v2 error format 444 445Returns: 446 An object of the form: 447 448 { # Respond the current tags in the TemplateVersion. 449 "tags": [ # All the tags in the TemplateVersion. 450 "A String", 451 ], 452}</pre> 453</div> 454 455</body></html>