| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -207,7 +207,7 @@ def self_link(self): | |||
| 207 | 207 | def default_table_expiration_ms(self): | |
| 208 | 208 | """Default expiration time for tables in the dataset. | |
| 209 | 209 | ||
| 210 | - :rtype: integer, or ``NoneType`` | ||
| 210 | + :rtype: int, or ``NoneType`` | ||
| 211 | 211 | :returns: The time in milliseconds, or None (the default). | |
| 212 | 212 | """ | |
| 213 | 213 | return self._properties.get('defaultTableExpirationMs') | |
@@ -216,7 +216,7 @@ def default_table_expiration_ms(self): | |||
| 216 | 216 | def default_table_expiration_ms(self, value): | |
| 217 | 217 | """Update default expiration time for tables in the dataset. | |
| 218 | 218 | ||
| 219 | - :type value: integer, or ``NoneType`` | ||
| 219 | + :type value: int, or ``NoneType`` | ||
| 220 | 220 | :param value: new default time, in milliseconds | |
| 221 | 221 | ||
| 222 | 222 | :raises: ValueError for invalid value types. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -455,7 +455,7 @@ def schema(self, value): | |||
| 455 | 455 | def input_file_bytes(self): | |
| 456 | 456 | """Count of bytes loaded from source files. | |
| 457 | 457 | ||
| 458 | - :rtype: integer, or ``NoneType`` | ||
| 458 | + :rtype: int, or ``NoneType`` | ||
| 459 | 459 | :returns: the count (None until set from the server). | |
| 460 | 460 | """ | |
| 461 | 461 | statistics = self._properties.get('statistics') | |
@@ -466,7 +466,7 @@ def input_file_bytes(self): | |||
| 466 | 466 | def input_files(self): | |
| 467 | 467 | """Count of source files. | |
| 468 | 468 | ||
| 469 | - :rtype: integer, or ``NoneType`` | ||
| 469 | + :rtype: int, or ``NoneType`` | ||
| 470 | 470 | :returns: the count (None until set from the server). | |
| 471 | 471 | """ | |
| 472 | 472 | statistics = self._properties.get('statistics') | |
@@ -477,7 +477,7 @@ def input_files(self): | |||
| 477 | 477 | def output_bytes(self): | |
| 478 | 478 | """Count of bytes saved to destination table. | |
| 479 | 479 | ||
| 480 | - :rtype: integer, or ``NoneType`` | ||
| 480 | + :rtype: int, or ``NoneType`` | ||
| 481 | 481 | :returns: the count (None until set from the server). | |
| 482 | 482 | """ | |
| 483 | 483 | statistics = self._properties.get('statistics') | |
@@ -488,7 +488,7 @@ def output_bytes(self): | |||
| 488 | 488 | def output_rows(self): | |
| 489 | 489 | """Count of rows saved to destination table. | |
| 490 | 490 | ||
| 491 | - :rtype: integer, or ``NoneType`` | ||
| 491 | + :rtype: int, or ``NoneType`` | ||
| 492 | 492 | :returns: the count (None until set from the server). | |
| 493 | 493 | """ | |
| 494 | 494 | statistics = self._properties.get('statistics') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -197,7 +197,7 @@ def total_rows(self): | |||
| 197 | 197 | See: | |
| 198 | 198 | https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#totalRows | |
| 199 | 199 | ||
| 200 | - :rtype: integer, or ``NoneType`` | ||
| 200 | + :rtype: int, or ``NoneType`` | ||
| 201 | 201 | :returns: Count generated on the server (None until set by the server). | |
| 202 | 202 | """ | |
| 203 | 203 | return self._properties.get('totalRows') | |
@@ -209,7 +209,7 @@ def total_bytes_processed(self): | |||
| 209 | 209 | See: | |
| 210 | 210 | https://cloud.google.com/bigquery/docs/reference/v2/jobs/query#totalBytesProcessed | |
| 211 | 211 | ||
| 212 | - :rtype: integer, or ``NoneType`` | ||
| 212 | + :rtype: int, or ``NoneType`` | ||
| 213 | 213 | :returns: Count generated on the server (None until set by the server). | |
| 214 | 214 | """ | |
| 215 | 215 | return self._properties.get('totalBytesProcessed') | |
@@ -345,16 +345,16 @@ def fetch_data(self, max_results=None, page_token=None, start_index=None, | |||
| 345 | 345 | See: | |
| 346 | 346 | https://cloud.google.com/bigquery/docs/reference/v2/jobs/getQueryResults | |
| 347 | 347 | ||
| 348 | - :type max_results: integer or ``NoneType`` | ||
| 348 | + :type max_results: int or ``NoneType`` | ||
| 349 | 349 | :param max_results: maximum number of rows to return. | |
| 350 | 350 | ||
| 351 | 351 | :type page_token: str or ``NoneType`` | |
| 352 | 352 | :param page_token: token representing a cursor into the table's rows. | |
| 353 | 353 | ||
| 354 | - :type start_index: integer or ``NoneType`` | ||
| 354 | + :type start_index: int or ``NoneType`` | ||
| 355 | 355 | :param start_index: zero-based index of starting row | |
| 356 | 356 | ||
| 357 | - :type timeout_ms: integer or ``NoneType`` | ||
| 357 | + :type timeout_ms: int or ``NoneType`` | ||
| 358 | 358 | :param timeout_ms: timeout, in milliseconds, to wait for query to | |
| 359 | 359 | complete | |
| 360 | 360 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -151,7 +151,7 @@ def modified(self): | |||
| 151 | 151 | def num_bytes(self): | |
| 152 | 152 | """The size of the table in bytes. | |
| 153 | 153 | ||
| 154 | - :rtype: integer, or ``NoneType`` | ||
| 154 | + :rtype: int, or ``NoneType`` | ||
| 155 | 155 | :returns: the byte count (None until set from the server). | |
| 156 | 156 | """ | |
| 157 | 157 | num_bytes_as_str = self._properties.get('numBytes') | |
@@ -162,7 +162,7 @@ def num_bytes(self): | |||
| 162 | 162 | def num_rows(self): | |
| 163 | 163 | """The number of rows in the table. | |
| 164 | 164 | ||
| 165 | - :rtype: integer, or ``NoneType`` | ||
| 165 | + :rtype: int, or ``NoneType`` | ||
| 166 | 166 | :returns: the row count (None until set from the server). | |
| 167 | 167 | """ | |
| 168 | 168 | num_rows_as_str = self._properties.get('numRows') | |
@@ -654,7 +654,7 @@ def fetch_data(self, max_results=None, page_token=None, client=None): | |||
| 654 | 654 | incomplete. To ensure that the local copy of the schema is | |
| 655 | 655 | up-to-date, call the table's ``reload`` method. | |
| 656 | 656 | ||
| 657 | - :type max_results: integer or ``NoneType`` | ||
| 657 | + :type max_results: int or ``NoneType`` | ||
| 658 | 658 | :param max_results: maximum number of rows to return. | |
| 659 | 659 | ||
| 660 | 660 | :type page_token: str or ``NoneType`` | |
@@ -836,7 +836,7 @@ def upload_from_file(self, | |||
| 836 | 836 | :func:`os.fstat`. (If the file handle is not from the | |
| 837 | 837 | filesystem this won't be possible.) | |
| 838 | 838 | ||
| 839 | - :type num_retries: integer | ||
| 839 | + :type num_retries: int | ||
| 840 | 840 | :param num_retries: Number of upload retries. Defaults to 6. | |
| 841 | 841 | ||
| 842 | 842 | :type allow_jagged_rows: bool | |
@@ -863,15 +863,15 @@ def upload_from_file(self, | |||
| 863 | 863 | :param ignore_unknown_values: job configuration option; see | |
| 864 | 864 | :meth:`google.cloud.bigquery.job.LoadJob`. | |
| 865 | 865 | ||
| 866 | - :type max_bad_records: integer | ||
| 866 | + :type max_bad_records: int | ||
| 867 | 867 | :param max_bad_records: job configuration option; see | |
| 868 | 868 | :meth:`google.cloud.bigquery.job.LoadJob`. | |
| 869 | 869 | ||
| 870 | 870 | :type quote_character: str | |
| 871 | 871 | :param quote_character: job configuration option; see | |
| 872 | 872 | :meth:`google.cloud.bigquery.job.LoadJob`. | |
| 873 | 873 | ||
| 874 | - :type skip_leading_rows: integer | ||
| 874 | + :type skip_leading_rows: int | ||
| 875 | 875 | :param skip_leading_rows: job configuration option; see | |
| 876 | 876 | :meth:`google.cloud.bigquery.job.LoadJob`. | |
| 877 | 877 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,10 +24,10 @@ class BufferedStream(object): | |||
| 24 | 24 | :type stream: readable file-like object | |
| 25 | 25 | :param stream: the stream to be buffered | |
| 26 | 26 | ||
| 27 | - :type start: integer | ||
| 27 | + :type start: int | ||
| 28 | 28 | :param start: the starting point in the stream | |
| 29 | 29 | ||
| 30 | - :type size: integer | ||
| 30 | + :type size: int | ||
| 31 | 31 | :param size: the size of the buffer | |
| 32 | 32 | """ | |
| 33 | 33 | def __init__(self, stream, start, size): | |
@@ -64,7 +64,7 @@ def stream_exhausted(self): | |||
| 64 | 64 | def stream_end_position(self): | |
| 65 | 65 | """Point to which stream was read into the buffer | |
| 66 | 66 | ||
| 67 | - :rtype: integer | ||
| 67 | + :rtype: int | ||
| 68 | 68 | :returns: The end-position of the stream. | |
| 69 | 69 | """ | |
| 70 | 70 | return self._end_pos | |
@@ -73,15 +73,15 @@ def stream_end_position(self): | |||
| 73 | 73 | def _bytes_remaining(self): | |
| 74 | 74 | """Bytes remaining to be read from the buffer | |
| 75 | 75 | ||
| 76 | - :rtype: integer | ||
| 76 | + :rtype: int | ||
| 77 | 77 | :returns: The number of bytes remaining. | |
| 78 | 78 | """ | |
| 79 | 79 | return len(self._buffered_data) - self._buffer_pos | |
| 80 | 80 | ||
| 81 | 81 | def read(self, size=None): | |
| 82 | 82 | """Read bytes from the buffer. | |
| 83 | 83 | ||
| 84 | - :type size: integer or None | ||
| 84 | + :type size: int or None | ||
| 85 | 85 | :param size: How many bytes to read (defaults to all remaining bytes). | |
| 86 | 86 | ||
| 87 | 87 | :rtype: str | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,7 @@ def __str__(self): | |||
| 50 | 50 | def status_code(self): | |
| 51 | 51 | """Status code for the response. | |
| 52 | 52 | ||
| 53 | - :rtype: integer | ||
| 53 | + :rtype: int | ||
| 54 | 54 | :returns: the code | |
| 55 | 55 | """ | |
| 56 | 56 | return int(self.response['status']) | |
@@ -97,7 +97,7 @@ class RetryAfterError(HttpError): | |||
| 97 | 97 | :type url: str | |
| 98 | 98 | :param url: URL of the response which returned the error. | |
| 99 | 99 | ||
| 100 | - :type retry_after: integer | ||
| 100 | + :type retry_after: int | ||
| 101 | 101 | :param retry_after: seconds to wait before retrying. | |
| 102 | 102 | """ | |
| 103 | 103 | def __init__(self, response, content, url, retry_after): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,7 +77,7 @@ def _httplib2_debug_level(http_request, level, http=None): | |||
| 77 | 77 | :type http_request: :class:`Request` | |
| 78 | 78 | :param http_request: the request to be logged. | |
| 79 | 79 | ||
| 80 | - :type level: integer | ||
| 80 | + :type level: int | ||
| 81 | 81 | :param level: the debuglevel for logging. | |
| 82 | 82 | ||
| 83 | 83 | :type http: :class:`httplib2.Http`, or ``None`` | |
@@ -191,7 +191,7 @@ def _process_content_range(content_range): | |||
| 191 | 191 | :type content_range: str | |
| 192 | 192 | :param content_range: the header value being parsed. | |
| 193 | 193 | ||
| 194 | - :rtype: integer | ||
| 194 | + :rtype: int | ||
| 195 | 195 | :returns: the length of the response chunk. | |
| 196 | 196 | """ | |
| 197 | 197 | _, _, range_spec = content_range.partition(' ') | |
@@ -221,7 +221,7 @@ def length(self): | |||
| 221 | 221 | Exposed as an attribute since using ``len()`` directly can fail | |
| 222 | 222 | for responses larger than ``sys.maxint``. | |
| 223 | 223 | ||
| 224 | - :rtype: integer or long | ||
| 224 | + :rtype: int or long | ||
| 225 | 225 | :returns: The length of the response. | |
| 226 | 226 | """ | |
| 227 | 227 | if 'content-encoding' in self.info and 'content-range' in self.info: | |
@@ -239,7 +239,7 @@ def length(self): | |||
| 239 | 239 | def status_code(self): | |
| 240 | 240 | """HTTP status code | |
| 241 | 241 | ||
| 242 | - :rtype: integer | ||
| 242 | + :rtype: int | ||
| 243 | 243 | :returns: The response status code. | |
| 244 | 244 | """ | |
| 245 | 245 | return int(self.info['status']) | |
@@ -248,7 +248,7 @@ def status_code(self): | |||
| 248 | 248 | def retry_after(self): | |
| 249 | 249 | """Retry interval (if set). | |
| 250 | 250 | ||
| 251 | - :rtype: integer | ||
| 251 | + :rtype: int | ||
| 252 | 252 | :returns: interval in seconds | |
| 253 | 253 | """ | |
| 254 | 254 | if 'retry-after' in self.info: | |
@@ -319,7 +319,7 @@ def _make_api_request_no_retry(http, http_request, redirections=_REDIRECTIONS): | |||
| 319 | 319 | :type http_request: :class:`Request` | |
| 320 | 320 | :param http_request: the request to send. | |
| 321 | 321 | ||
| 322 | - :type redirections: integer | ||
| 322 | + :type redirections: int | ||
| 323 | 323 | :param redirections: Number of redirects to follow. | |
| 324 | 324 | ||
| 325 | 325 | :rtype: :class:`Response` | |
@@ -363,11 +363,11 @@ def make_api_request(http, http_request, retries=7, | |||
| 363 | 363 | :type http_request: :class:`Request` | |
| 364 | 364 | :param http_request: the request to send. | |
| 365 | 365 | ||
| 366 | - :type retries: integer | ||
| 366 | + :type retries: int | ||
| 367 | 367 | :param retries: Number of retries to attempt on retryable | |
| 368 | 368 | responses (such as 429 or 5XX). | |
| 369 | 369 | ||
| 370 | - :type redirections: integer | ||
| 370 | + :type redirections: int | ||
| 371 | 371 | :param redirections: Number of redirects to follow. | |
| 372 | 372 | ||
| 373 | 373 | :rtype: :class:`Response` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ class StreamSlice(object): | |||
| 23 | 23 | :type stream: readable file-like object | |
| 24 | 24 | :param stream: the stream to be buffered. | |
| 25 | 25 | ||
| 26 | - :type max_bytes: integer | ||
| 26 | + :type max_bytes: int | ||
| 27 | 27 | :param max_bytes: maximum number of bytes to return in the slice. | |
| 28 | 28 | """ | |
| 29 | 29 | def __init__(self, stream, max_bytes): | |
@@ -51,7 +51,7 @@ def length(self): | |||
| 51 | 51 | ||
| 52 | 52 | For 32-bit python2.x, len() cannot exceed a 32-bit number. | |
| 53 | 53 | ||
| 54 | - :rtype: integer | ||
| 54 | + :rtype: int | ||
| 55 | 55 | :returns: The max "length" of the stream. | |
| 56 | 56 | """ | |
| 57 | 57 | return self._max_bytes | |
@@ -65,7 +65,7 @@ def read(self, size=None): | |||
| 65 | 65 | slice indicates we should still be able to read more bytes, we | |
| 66 | 66 | raise :exc:`IncompleteRead`. | |
| 67 | 67 | ||
| 68 | - :type size: integer or None | ||
| 68 | + :type size: int or None | ||
| 69 | 69 | :param size: If provided, read no more than size bytes from the stream. | |
| 70 | 70 | ||
| 71 | 71 | :rtype: bytes | |
| Back | FazBrowse Home | New Git URL |
0 commit comments