blob: 189f672b23c09b0f0bb2ee881b1f9615c98461ef [file] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="bigquerydatatransfer_v1.html">BigQuery Data Transfer API</a> . <a href="bigquerydatatransfer_v1.projects.html">projects</a> . <a href="bigquerydatatransfer_v1.projects.transferConfigs.html">transferConfigs</a> . <a href="bigquerydatatransfer_v1.projects.transferConfigs.transferResources.html">transferResources</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Returns a transfer resource.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns information about transfer resources.</p>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Returns a transfer resource.
Args:
name: string, Required. The name of the transfer resource in the form of: * `projects/{project}/transferConfigs/{transfer_config}/transferResources/{transfer_resource}` * `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/transferResources/{transfer_resource}` (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Resource (table/partition) that is being transferred.
&quot;destination&quot;: &quot;A String&quot;, # Optional. Resource destination.
&quot;hierarchyDetail&quot;: { # Details about the hierarchy. # Optional. Details about the hierarchy.
&quot;partitionDetail&quot;: { # Partition details related to hierarchy. # Optional. Partition details related to hierarchy.
&quot;table&quot;: &quot;A String&quot;, # Optional. Name of the table which has the partitions.
},
&quot;tableDetail&quot;: { # Table details related to hierarchy. # Optional. Table details related to hierarchy.
&quot;partitionCount&quot;: &quot;A String&quot;, # Optional. Total number of partitions being tracked within the table.
},
},
&quot;lastSuccessfulRun&quot;: { # Basic information about a transfer run. # Output only. Run details for the last successful run.
&quot;run&quot;: &quot;A String&quot;, # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}`
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Start time of the transfer run.
},
&quot;latestRun&quot;: { # Basic information about a transfer run. # Optional. Run details for the latest run.
&quot;run&quot;: &quot;A String&quot;, # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}`
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Start time of the transfer run.
},
&quot;latestStatusDetail&quot;: { # Status details of the resource being transferred. # Optional. Status details for the latest run.
&quot;completedPercentage&quot;: 3.14, # Output only. Percentage of the transfer completed. Valid values: 0-100.
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Optional. Transfer error details for the resource.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
&quot;state&quot;: &quot;A String&quot;, # Optional. Transfer state of the resource.
&quot;summary&quot;: { # Status summary of the resource being transferred. # Optional. Transfer status summary of the resource.
&quot;metrics&quot;: [ # Optional. List of transfer status metrics.
{ # Metrics for tracking the transfer status.
&quot;completed&quot;: &quot;A String&quot;, # Optional. Number of units transferred successfully.
&quot;failed&quot;: &quot;A String&quot;, # Optional. Number of units that failed to transfer.
&quot;pending&quot;: &quot;A String&quot;, # Optional. Number of units pending transfer.
&quot;total&quot;: &quot;A String&quot;, # Optional. Total number of units for the transfer.
&quot;unit&quot;: &quot;A String&quot;, # Optional. Unit for measuring progress (e.g., BYTES).
},
],
&quot;progressUnit&quot;: &quot;A String&quot;, # Input only. Unit based on which transfer status progress should be calculated.
},
},
&quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name.
&quot;type&quot;: &quot;A String&quot;, # Optional. Resource type.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the resource was last updated.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Returns information about transfer resources.
Args:
parent: string, Required. Name of transfer configuration for which transfer resources should be retrieved. The name should be in one of the following forms: * `projects/{project}/transferConfigs/{transfer_config}` * `projects/{project}/locations/{location_id}/transferConfigs/{transfer_config}` (required)
filter: string, Optional. Filter for the transfer resources. Currently supported filters include: * Resource name: `name` - Wildcard supported * Resource type: `type` * Resource destination: `destination` * Latest resource state: `latest_status_detail.state` * Last update time: `update_time` - RFC-3339 format * Parent table name: `hierarchy_detail.partition_detail.table` Multiple filters can be applied using the `AND/OR` operator. Examples: * `name=&quot;*123&quot; AND (type=&quot;TABLE&quot; OR latest_status_detail.state=&quot;SUCCEEDED&quot;)` * `update_time &gt;= &quot;2012-04-21T11:30:00-04:00&quot;` * `hierarchy_detail.partition_detail.table = &quot;table1&quot;`
pageSize: integer, Optional. The maximum number of transfer resources to return. The maximum value is 1000; values above 1000 will be coerced to 1000. The default page size is the maximum value of 1000 results.
pageToken: string, Optional. A page token, received from a previous `ListTransferResources` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListTransferResources` 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:
{ # Response for the `ListTransferResources` RPC.
&quot;nextPageToken&quot;: &quot;A String&quot;, # Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
&quot;transferResources&quot;: [ # Output only. The transfer resources.
{ # Resource (table/partition) that is being transferred.
&quot;destination&quot;: &quot;A String&quot;, # Optional. Resource destination.
&quot;hierarchyDetail&quot;: { # Details about the hierarchy. # Optional. Details about the hierarchy.
&quot;partitionDetail&quot;: { # Partition details related to hierarchy. # Optional. Partition details related to hierarchy.
&quot;table&quot;: &quot;A String&quot;, # Optional. Name of the table which has the partitions.
},
&quot;tableDetail&quot;: { # Table details related to hierarchy. # Optional. Table details related to hierarchy.
&quot;partitionCount&quot;: &quot;A String&quot;, # Optional. Total number of partitions being tracked within the table.
},
},
&quot;lastSuccessfulRun&quot;: { # Basic information about a transfer run. # Output only. Run details for the last successful run.
&quot;run&quot;: &quot;A String&quot;, # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}`
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Start time of the transfer run.
},
&quot;latestRun&quot;: { # Basic information about a transfer run. # Optional. Run details for the latest run.
&quot;run&quot;: &quot;A String&quot;, # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}`
&quot;startTime&quot;: &quot;A String&quot;, # Optional. Start time of the transfer run.
},
&quot;latestStatusDetail&quot;: { # Status details of the resource being transferred. # Optional. Status details for the latest run.
&quot;completedPercentage&quot;: 3.14, # Output only. Percentage of the transfer completed. Valid values: 0-100.
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # Optional. Transfer error details for the resource.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
&quot;state&quot;: &quot;A String&quot;, # Optional. Transfer state of the resource.
&quot;summary&quot;: { # Status summary of the resource being transferred. # Optional. Transfer status summary of the resource.
&quot;metrics&quot;: [ # Optional. List of transfer status metrics.
{ # Metrics for tracking the transfer status.
&quot;completed&quot;: &quot;A String&quot;, # Optional. Number of units transferred successfully.
&quot;failed&quot;: &quot;A String&quot;, # Optional. Number of units that failed to transfer.
&quot;pending&quot;: &quot;A String&quot;, # Optional. Number of units pending transfer.
&quot;total&quot;: &quot;A String&quot;, # Optional. Total number of units for the transfer.
&quot;unit&quot;: &quot;A String&quot;, # Optional. Unit for measuring progress (e.g., BYTES).
},
],
&quot;progressUnit&quot;: &quot;A String&quot;, # Input only. Unit based on which transfer status progress should be calculated.
},
},
&quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name.
&quot;type&quot;: &quot;A String&quot;, # Optional. Resource type.
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Time when the resource was last updated.
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next()</code>
<pre>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 &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
</body></html>