| 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="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> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Returns a transfer resource.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Returns information about transfer resources.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#list_next">list_next()</a></code></p> |
| 88 |
<p class="firstline">Retrieves the next page of results.</p> |
| 89 |
<h3>Method Details</h3> |
| 90 |
<div class="method"> |
| 91 |
<code class="details" id="close">close()</code> |
| 92 |
<pre>Close httplib2 connections.</pre> |
| 93 |
</div> |
| 94 |
|
| 95 |
<div class="method"> |
| 96 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 97 |
<pre>Returns a transfer resource. |
| 98 |
|
| 99 |
Args: |
| 100 |
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) |
| 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 |
{ # Resource (table/partition) that is being transferred. |
| 110 |
"destination": "A String", # Optional. Resource destination. |
| 111 |
"hierarchyDetail": { # Details about the hierarchy. # Optional. Details about the hierarchy. |
| 112 |
"partitionDetail": { # Partition details related to hierarchy. # Optional. Partition details related to hierarchy. |
| 113 |
"table": "A String", # Optional. Name of the table which has the partitions. |
| 114 |
}, |
| 115 |
"tableDetail": { # Table details related to hierarchy. # Optional. Table details related to hierarchy. |
| 116 |
"partitionCount": "A String", # Optional. Total number of partitions being tracked within the table. |
| 117 |
}, |
| 118 |
}, |
| 119 |
"lastSuccessfulRun": { # Basic information about a transfer run. # Output only. Run details for the last successful run. |
| 120 |
"run": "A String", # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}` |
| 121 |
"startTime": "A String", # Optional. Start time of the transfer run. |
| 122 |
}, |
| 123 |
"latestRun": { # Basic information about a transfer run. # Optional. Run details for the latest run. |
| 124 |
"run": "A String", # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}` |
| 125 |
"startTime": "A String", # Optional. Start time of the transfer run. |
| 126 |
}, |
| 127 |
"latestStatusDetail": { # Status details of the resource being transferred. # Optional. Status details for the latest run. |
| 128 |
"completedPercentage": 3.14, # Output only. Percentage of the transfer completed. Valid values: 0-100. |
| 129 |
"error": { # 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. |
| 130 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 131 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 132 |
{ |
| 133 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 134 |
}, |
| 135 |
], |
| 136 |
"message": "A String", # 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. |
| 137 |
}, |
| 138 |
"state": "A String", # Optional. Transfer state of the resource. |
| 139 |
"summary": { # Status summary of the resource being transferred. # Optional. Transfer status summary of the resource. |
| 140 |
"metrics": [ # Optional. List of transfer status metrics. |
| 141 |
{ # Metrics for tracking the transfer status. |
| 142 |
"completed": "A String", # Optional. Number of units transferred successfully. |
| 143 |
"failed": "A String", # Optional. Number of units that failed to transfer. |
| 144 |
"pending": "A String", # Optional. Number of units pending transfer. |
| 145 |
"total": "A String", # Optional. Total number of units for the transfer. |
| 146 |
"unit": "A String", # Optional. Unit for measuring progress (e.g., BYTES). |
| 147 |
}, |
| 148 |
], |
| 149 |
"progressUnit": "A String", # Input only. Unit based on which transfer status progress should be calculated. |
| 150 |
}, |
| 151 |
}, |
| 152 |
"name": "A String", # Identifier. Resource name. |
| 153 |
"type": "A String", # Optional. Resource type. |
| 154 |
"updateTime": "A String", # Output only. Time when the resource was last updated. |
| 155 |
}</pre> |
| 156 |
</div> |
| 157 |
|
| 158 |
<div class="method"> |
| 159 |
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 160 |
<pre>Returns information about transfer resources. |
| 161 |
|
| 162 |
Args: |
| 163 |
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) |
| 164 |
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="*123" AND (type="TABLE" OR latest_status_detail.state="SUCCEEDED")` * `update_time >= "2012-04-21T11:30:00-04:00"` * `hierarchy_detail.partition_detail.table = "table1"` |
| 165 |
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. |
| 166 |
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. |
| 167 |
x__xgafv: string, V1 error format. |
| 168 |
Allowed values |
| 169 |
1 - v1 error format |
| 170 |
2 - v2 error format |
| 171 |
|
| 172 |
Returns: |
| 173 |
An object of the form: |
| 174 |
|
| 175 |
{ # Response for the `ListTransferResources` RPC. |
| 176 |
"nextPageToken": "A String", # 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. |
| 177 |
"transferResources": [ # Output only. The transfer resources. |
| 178 |
{ # Resource (table/partition) that is being transferred. |
| 179 |
"destination": "A String", # Optional. Resource destination. |
| 180 |
"hierarchyDetail": { # Details about the hierarchy. # Optional. Details about the hierarchy. |
| 181 |
"partitionDetail": { # Partition details related to hierarchy. # Optional. Partition details related to hierarchy. |
| 182 |
"table": "A String", # Optional. Name of the table which has the partitions. |
| 183 |
}, |
| 184 |
"tableDetail": { # Table details related to hierarchy. # Optional. Table details related to hierarchy. |
| 185 |
"partitionCount": "A String", # Optional. Total number of partitions being tracked within the table. |
| 186 |
}, |
| 187 |
}, |
| 188 |
"lastSuccessfulRun": { # Basic information about a transfer run. # Output only. Run details for the last successful run. |
| 189 |
"run": "A String", # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}` |
| 190 |
"startTime": "A String", # Optional. Start time of the transfer run. |
| 191 |
}, |
| 192 |
"latestRun": { # Basic information about a transfer run. # Optional. Run details for the latest run. |
| 193 |
"run": "A String", # Optional. Run URI. The format must be: `projects/{project}/locations/{location}/transferConfigs/{transfer_config}/run/{run}` |
| 194 |
"startTime": "A String", # Optional. Start time of the transfer run. |
| 195 |
}, |
| 196 |
"latestStatusDetail": { # Status details of the resource being transferred. # Optional. Status details for the latest run. |
| 197 |
"completedPercentage": 3.14, # Output only. Percentage of the transfer completed. Valid values: 0-100. |
| 198 |
"error": { # 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. |
| 199 |
"code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 200 |
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 201 |
{ |
| 202 |
"a_key": "", # Properties of the object. Contains field @type with type URL. |
| 203 |
}, |
| 204 |
], |
| 205 |
"message": "A String", # 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. |
| 206 |
}, |
| 207 |
"state": "A String", # Optional. Transfer state of the resource. |
| 208 |
"summary": { # Status summary of the resource being transferred. # Optional. Transfer status summary of the resource. |
| 209 |
"metrics": [ # Optional. List of transfer status metrics. |
| 210 |
{ # Metrics for tracking the transfer status. |
| 211 |
"completed": "A String", # Optional. Number of units transferred successfully. |
| 212 |
"failed": "A String", # Optional. Number of units that failed to transfer. |
| 213 |
"pending": "A String", # Optional. Number of units pending transfer. |
| 214 |
"total": "A String", # Optional. Total number of units for the transfer. |
| 215 |
"unit": "A String", # Optional. Unit for measuring progress (e.g., BYTES). |
| 216 |
}, |
| 217 |
], |
| 218 |
"progressUnit": "A String", # Input only. Unit based on which transfer status progress should be calculated. |
| 219 |
}, |
| 220 |
}, |
| 221 |
"name": "A String", # Identifier. Resource name. |
| 222 |
"type": "A String", # Optional. Resource type. |
| 223 |
"updateTime": "A String", # Output only. Time when the resource was last updated. |
| 224 |
}, |
| 225 |
], |
| 226 |
}</pre> |
| 227 |
</div> |
| 228 |
|
| 229 |
<div class="method"> |
| 230 |
<code class="details" id="list_next">list_next()</code> |
| 231 |
<pre>Retrieves the next page of results. |
| 232 |
|
| 233 |
Args: |
| 234 |
previous_request: The request for the previous page. (required) |
| 235 |
previous_response: The response from the request for the previous page. (required) |
| 236 |
|
| 237 |
Returns: |
| 238 |
A request object that you can call 'execute()' on to request the next |
| 239 |
page. Returns None if there are no more items in the collection. |
| 240 |
</pre> |
| 241 |
</div> |
| 242 |
|
| 243 |
</body></html> |