Close httplib2 connections.
create(parent, body=None, requestId=None, templateVersionId=None, x__xgafv=None)
Creates a new TemplateVersion in a given project, location, and template.
delete(name, requestId=None, x__xgafv=None)
Deletes a single TemplateVersion.
get(name, view=None, x__xgafv=None)
Gets details of a single TemplateVersion.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists TemplateVersions in a given project, location, and template.
Retrieves the next page of results.
patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)
Updates a single TemplateVersion.
render(name, parameterVersion=None, x__xgafv=None)
Gets rendered version of a TemplateVersion.
close()
Close httplib2 connections.
create(parent, body=None, requestId=None, templateVersionId=None, x__xgafv=None)
Creates a new TemplateVersion in a given project, location, and template.
Args:
parent: string, Required. Value for parent in the format `projects/*/locations/*/templates/*`. (required)
body: object, The request body.
The object takes the form of:
{ # Message describing TemplateVersion resource
"createTime": "A String", # Output only. Create time stamp
"disabled": True or False, # Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).
"name": "A String", # Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Required. Immutable. Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"updateTime": "A String", # Output only. Update time stamp
}
requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
templateVersionId: string, Required. Id of the TemplateVersion resource
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message describing TemplateVersion resource
"createTime": "A String", # Output only. Create time stamp
"disabled": True or False, # Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).
"name": "A String", # Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Required. Immutable. Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"updateTime": "A String", # Output only. Update time stamp
}
delete(name, requestId=None, x__xgafv=None)
Deletes a single TemplateVersion.
Args:
name: string, Required. Name of the resource in the format `projects/*/locations/*/templates/*/versions/*`. (required)
requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # 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); }
}
get(name, view=None, x__xgafv=None)
Gets details of a single TemplateVersion.
Args:
name: string, Required. Name of the resource in the format `projects/*/locations/*/templates/*/versions/*`. (required)
view: string, Optional. Specifies the view of the TemplateVersion to return. In the default FULL view, all metadata & payload associated with the TemplateVersion will be returned.
Allowed values
VIEW_UNSPECIFIED - The default / unset value. The API will default to the FULL view.
BASIC - Include only the metadata for the resource.
FULL - Include metadata & other relevant payload data as well. This is the default view.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message describing TemplateVersion resource
"createTime": "A String", # Output only. Create time stamp
"disabled": True or False, # Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).
"name": "A String", # Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Required. Immutable. Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"updateTime": "A String", # Output only. Update time stamp
}
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists TemplateVersions in a given project, location, and template.
Args:
parent: string, Required. Parent value for ListTemplateVersionsRequest in the format `projects/*/locations/*/templates/*`. (required)
filter: string, Optional. Filtering results
orderBy: string, Optional. Hint for how to order the results
pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
pageToken: string, Optional. A page token, received from a previous `ListTemplateVersions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTemplateVersions` must match the call that provided the page token.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message for response to listing TemplateVersions
"nextPageToken": "A String", # A token identifying a page of results the server should return.
"templateVersions": [ # The list of TemplateVersions
{ # Message describing TemplateVersion resource
"createTime": "A String", # Output only. Create time stamp
"disabled": True or False, # Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).
"name": "A String", # Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Required. Immutable. Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"updateTime": "A String", # Output only. Update time stamp
},
],
"unreachable": [ # Unordered list. Locations that could not be reached.
"A String",
],
}
list_next()
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.
patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)
Updates a single TemplateVersion.
Args:
name: string, Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`. (required)
body: object, The request body.
The object takes the form of:
{ # Message describing TemplateVersion resource
"createTime": "A String", # Output only. Create time stamp
"disabled": True or False, # Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).
"name": "A String", # Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Required. Immutable. Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"updateTime": "A String", # Output only. Update time stamp
}
requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the TemplateVersion resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A mutable field will be overwritten if it is in the mask. If the user does not provide a mask then all mutable fields present in the request will be overwritten.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message describing TemplateVersion resource
"createTime": "A String", # Output only. Create time stamp
"disabled": True or False, # Optional. Disabled boolean to determine if a TemplateVersion acts as a metadata only resource (payload is never returned if disabled is true).
"name": "A String", # Identifier. The resource name of the TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Required. Immutable. Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"updateTime": "A String", # Output only. Update time stamp
}
render(name, parameterVersion=None, x__xgafv=None)
Gets rendered version of a TemplateVersion.
Args:
name: string, Required. Name of the resource (required)
parameterVersion: string, Required. Parameter version used to render the template version.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message describing RenderTemplateVersionResponse resource
"parameterVersion": "A String", # Output only. The resource name of the ParameterVersion used to render the template version in the format `projects/*/locations/*/parameters/*/versions/*`.
"payload": { # Message for storing a TemplateVersion resource's payload data # Payload content of a TemplateVersion resource.
"data": "A String", # Required. bytes data for storing payload.
},
"renderedPayload": "A String", # Output only. Server generated rendered version of the user provided payload data (TemplateVersionPayload) which has all the variables resolved using the provided parameter version.
"templateFormat": "A String", # Output only. Format of the template version.
"templateVersion": "A String", # Resource identifier of a TemplateVersion in the format `projects/*/locations/*/templates/*/versions/*`.
}