Returns the versions Resource.
Close httplib2 connections.
create(parent, body=None, requestId=None, templateId=None, x__xgafv=None)
Creates a new Template in a given project and location.
delete(name, requestId=None, x__xgafv=None)
Deletes a single Template.
Gets details of a single Template.
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists Templates in a given project and location.
Retrieves the next page of results.
patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)
Updates a single Template.
close()
Close httplib2 connections.
create(parent, body=None, requestId=None, templateId=None, x__xgafv=None)
Creates a new Template in a given project and location.
Args:
parent: string, Required. Value for parent in the format `projects/*/locations/*`. (required)
body: object, The request body.
The object takes the form of:
{ # Message describing Template resource
"createTime": "A String", # Output only. Create time stamp
"format": "A String", # Optional. Specifies the format of a Template.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.
"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).
templateId: string, Required. Id of the Template 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 Template resource
"createTime": "A String", # Output only. Create time stamp
"format": "A String", # Optional. Specifies the format of a Template.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.
"updateTime": "A String", # Output only. Update time stamp
}
delete(name, requestId=None, x__xgafv=None)
Deletes a single Template.
Args:
name: string, Required. Name of the resource in the format `projects/*/locations/*/templates/*`. (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, x__xgafv=None)
Gets details of a single Template.
Args:
name: string, Required. Name of the resource in the format `projects/*/locations/*/templates/*`. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Message describing Template resource
"createTime": "A String", # Output only. Create time stamp
"format": "A String", # Optional. Specifies the format of a Template.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.
"updateTime": "A String", # Output only. Update time stamp
}
list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists Templates in a given project and location.
Args:
parent: string, Required. Parent value for ListTemplatesRequest in the format `projects/*/locations/*`. (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 `ListTemplates` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTemplates` 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 Templates
"nextPageToken": "A String", # A token identifying a page of results the server should return.
"templates": [ # The list of Templates
{ # Message describing Template resource
"createTime": "A String", # Output only. Create time stamp
"format": "A String", # Optional. Specifies the format of a Template.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.
"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 Template.
Args:
name: string, Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`. (required)
body: object, The request body.
The object takes the form of:
{ # Message describing Template resource
"createTime": "A String", # Output only. Create time stamp
"format": "A String", # Optional. Specifies the format of a Template.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.
"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 Template 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 Template resource
"createTime": "A String", # Output only. Create time stamp
"format": "A String", # Optional. Specifies the format of a Template.
"labels": { # Optional. Labels as key value pairs
"a_key": "A String",
},
"name": "A String", # Identifier. The resource name of the Template in the format `projects/*/locations/*/templates/*`.
"updateTime": "A String", # Output only. Update time stamp
}