google-cloud-bigquery 3.31.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. google/cloud/bigquery/__init__.py +249 -0
  2. google/cloud/bigquery/_helpers.py +1102 -0
  3. google/cloud/bigquery/_http.py +47 -0
  4. google/cloud/bigquery/_job_helpers.py +600 -0
  5. google/cloud/bigquery/_pandas_helpers.py +1181 -0
  6. google/cloud/bigquery/_pyarrow_helpers.py +147 -0
  7. google/cloud/bigquery/_tqdm_helpers.py +137 -0
  8. google/cloud/bigquery/_versions_helpers.py +264 -0
  9. google/cloud/bigquery/client.py +4406 -0
  10. google/cloud/bigquery/dataset.py +1076 -0
  11. google/cloud/bigquery/dbapi/__init__.py +87 -0
  12. google/cloud/bigquery/dbapi/_helpers.py +522 -0
  13. google/cloud/bigquery/dbapi/connection.py +128 -0
  14. google/cloud/bigquery/dbapi/cursor.py +586 -0
  15. google/cloud/bigquery/dbapi/exceptions.py +58 -0
  16. google/cloud/bigquery/dbapi/types.py +96 -0
  17. google/cloud/bigquery/encryption_configuration.py +84 -0
  18. google/cloud/bigquery/enums.py +389 -0
  19. google/cloud/bigquery/exceptions.py +35 -0
  20. google/cloud/bigquery/external_config.py +1188 -0
  21. google/cloud/bigquery/format_options.py +147 -0
  22. google/cloud/bigquery/iam.py +38 -0
  23. google/cloud/bigquery/job/__init__.py +87 -0
  24. google/cloud/bigquery/job/base.py +1116 -0
  25. google/cloud/bigquery/job/copy_.py +282 -0
  26. google/cloud/bigquery/job/extract.py +271 -0
  27. google/cloud/bigquery/job/load.py +985 -0
  28. google/cloud/bigquery/job/query.py +2498 -0
  29. google/cloud/bigquery/magics/__init__.py +20 -0
  30. google/cloud/bigquery/magics/line_arg_parser/__init__.py +34 -0
  31. google/cloud/bigquery/magics/line_arg_parser/exceptions.py +25 -0
  32. google/cloud/bigquery/magics/line_arg_parser/lexer.py +200 -0
  33. google/cloud/bigquery/magics/line_arg_parser/parser.py +484 -0
  34. google/cloud/bigquery/magics/line_arg_parser/visitors.py +159 -0
  35. google/cloud/bigquery/magics/magics.py +776 -0
  36. google/cloud/bigquery/model.py +517 -0
  37. google/cloud/bigquery/opentelemetry_tracing.py +164 -0
  38. google/cloud/bigquery/py.typed +2 -0
  39. google/cloud/bigquery/query.py +1344 -0
  40. google/cloud/bigquery/retry.py +207 -0
  41. google/cloud/bigquery/routine/__init__.py +33 -0
  42. google/cloud/bigquery/routine/routine.py +744 -0
  43. google/cloud/bigquery/schema.py +896 -0
  44. google/cloud/bigquery/standard_sql.py +389 -0
  45. google/cloud/bigquery/table.py +3594 -0
  46. google/cloud/bigquery/version.py +15 -0
  47. google/cloud/bigquery_v2/__init__.py +56 -0
  48. google/cloud/bigquery_v2/types/__init__.py +54 -0
  49. google/cloud/bigquery_v2/types/encryption_config.py +48 -0
  50. google/cloud/bigquery_v2/types/model.py +1994 -0
  51. google/cloud/bigquery_v2/types/model_reference.py +57 -0
  52. google/cloud/bigquery_v2/types/standard_sql.py +156 -0
  53. google/cloud/bigquery_v2/types/table_reference.py +80 -0
  54. google_cloud_bigquery-3.31.0.dist-info/LICENSE +202 -0
  55. google_cloud_bigquery-3.31.0.dist-info/METADATA +203 -0
  56. google_cloud_bigquery-3.31.0.dist-info/RECORD +58 -0
  57. google_cloud_bigquery-3.31.0.dist-info/WHEEL +5 -0
  58. google_cloud_bigquery-3.31.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ __version__ = "3.31.0"
@@ -0,0 +1,56 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2022 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ import warnings
18
+
19
+ from .types.encryption_config import EncryptionConfiguration
20
+ from .types.model import DeleteModelRequest
21
+ from .types.model import GetModelRequest
22
+ from .types.model import ListModelsRequest
23
+ from .types.model import ListModelsResponse
24
+ from .types.model import Model
25
+ from .types.model import PatchModelRequest
26
+ from .types.model_reference import ModelReference
27
+ from .types.standard_sql import StandardSqlDataType
28
+ from .types.standard_sql import StandardSqlField
29
+ from .types.standard_sql import StandardSqlStructType
30
+ from .types.standard_sql import StandardSqlTableType
31
+ from .types.table_reference import TableReference
32
+
33
+
34
+ _LEGACY_MSG = (
35
+ "Legacy proto-based types from bigquery_v2 are not maintained anymore, "
36
+ "use types defined in google.cloud.bigquery instead."
37
+ )
38
+
39
+ warnings.warn(_LEGACY_MSG, category=DeprecationWarning)
40
+
41
+
42
+ __all__ = (
43
+ "DeleteModelRequest",
44
+ "EncryptionConfiguration",
45
+ "GetModelRequest",
46
+ "ListModelsRequest",
47
+ "ListModelsResponse",
48
+ "Model",
49
+ "ModelReference",
50
+ "PatchModelRequest",
51
+ "StandardSqlDataType",
52
+ "StandardSqlField",
53
+ "StandardSqlStructType",
54
+ "StandardSqlTableType",
55
+ "TableReference",
56
+ )
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2022 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from .encryption_config import (
17
+ EncryptionConfiguration,
18
+ )
19
+ from .model import (
20
+ DeleteModelRequest,
21
+ GetModelRequest,
22
+ ListModelsRequest,
23
+ ListModelsResponse,
24
+ Model,
25
+ PatchModelRequest,
26
+ )
27
+ from .model_reference import (
28
+ ModelReference,
29
+ )
30
+ from .standard_sql import (
31
+ StandardSqlDataType,
32
+ StandardSqlField,
33
+ StandardSqlStructType,
34
+ StandardSqlTableType,
35
+ )
36
+ from .table_reference import (
37
+ TableReference,
38
+ )
39
+
40
+ __all__ = (
41
+ "EncryptionConfiguration",
42
+ "DeleteModelRequest",
43
+ "GetModelRequest",
44
+ "ListModelsRequest",
45
+ "ListModelsResponse",
46
+ "Model",
47
+ "PatchModelRequest",
48
+ "ModelReference",
49
+ "StandardSqlDataType",
50
+ "StandardSqlField",
51
+ "StandardSqlStructType",
52
+ "StandardSqlTableType",
53
+ "TableReference",
54
+ )
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2022 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ import proto # type: ignore
17
+
18
+ from google.protobuf import wrappers_pb2 # type: ignore
19
+
20
+
21
+ __protobuf__ = proto.module(
22
+ package="google.cloud.bigquery.v2",
23
+ manifest={
24
+ "EncryptionConfiguration",
25
+ },
26
+ )
27
+
28
+
29
+ class EncryptionConfiguration(proto.Message):
30
+ r"""
31
+
32
+ Attributes:
33
+ kms_key_name (google.protobuf.wrappers_pb2.StringValue):
34
+ Optional. Describes the Cloud KMS encryption
35
+ key that will be used to protect destination
36
+ BigQuery table. The BigQuery Service Account
37
+ associated with your project requires access to
38
+ this encryption key.
39
+ """
40
+
41
+ kms_key_name = proto.Field(
42
+ proto.MESSAGE,
43
+ number=1,
44
+ message=wrappers_pb2.StringValue,
45
+ )
46
+
47
+
48
+ __all__ = tuple(sorted(__protobuf__.manifest))