| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f8d4d20 commit 3482953
12 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,4 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - | ||
| 3 | 2 | # Copyright 2020 Google LLC | |
| 4 | 3 | # | |
| 5 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
@@ -29,7 +28,6 @@ | |||
| 29 | 28 | from .types.standard_sql import StandardSqlStructType | |
| 30 | 29 | from .types.table_reference import TableReference | |
| 31 | 30 | ||
| 32 | - | ||
| 33 | 31 | __all__ = ( | |
| 34 | 32 | "DeleteModelRequest", | |
| 35 | 33 | "EncryptionConfiguration", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,63 @@ | |||
| 1 | + { | ||
| 2 | + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", | ||
| 3 | + "language": "python", | ||
| 4 | + "libraryPackage": "google.cloud.bigquery_v2", | ||
| 5 | + "protoPackage": "google.cloud.bigquery.v2", | ||
| 6 | + "schema": "1.0", | ||
| 7 | + "services": { | ||
| 8 | + "ModelService": { | ||
| 9 | + "clients": { | ||
| 10 | + "grpc": { | ||
| 11 | + "libraryClient": "ModelServiceClient", | ||
| 12 | + "rpcs": { | ||
| 13 | + "DeleteModel": { | ||
| 14 | + "methods": [ | ||
| 15 | + "delete_model" | ||
| 16 | + ] | ||
| 17 | + }, | ||
| 18 | + "GetModel": { | ||
| 19 | + "methods": [ | ||
| 20 | + "get_model" | ||
| 21 | + ] | ||
| 22 | + }, | ||
| 23 | + "ListModels": { | ||
| 24 | + "methods": [ | ||
| 25 | + "list_models" | ||
| 26 | + ] | ||
| 27 | + }, | ||
| 28 | + "PatchModel": { | ||
| 29 | + "methods": [ | ||
| 30 | + "patch_model" | ||
| 31 | + ] | ||
| 32 | + } | ||
| 33 | + } | ||
| 34 | + }, | ||
| 35 | + "grpc-async": { | ||
| 36 | + "libraryClient": "ModelServiceAsyncClient", | ||
| 37 | + "rpcs": { | ||
| 38 | + "DeleteModel": { | ||
| 39 | + "methods": [ | ||
| 40 | + "delete_model" | ||
| 41 | + ] | ||
| 42 | + }, | ||
| 43 | + "GetModel": { | ||
| 44 | + "methods": [ | ||
| 45 | + "get_model" | ||
| 46 | + ] | ||
| 47 | + }, | ||
| 48 | + "ListModels": { | ||
| 49 | + "methods": [ | ||
| 50 | + "list_models" | ||
| 51 | + ] | ||
| 52 | + }, | ||
| 53 | + "PatchModel": { | ||
| 54 | + "methods": [ | ||
| 55 | + "patch_model" | ||
| 56 | + ] | ||
| 57 | + } | ||
| 58 | + } | ||
| 59 | + } | ||
| 60 | + } | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,4 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - | ||
| 3 | 2 | # Copyright 2020 Google LLC | |
| 4 | 3 | # | |
| 5 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
@@ -14,7 +13,6 @@ | |||
| 14 | 13 | # See the License for the specific language governing permissions and | |
| 15 | 14 | # limitations under the License. | |
| 16 | 15 | # | |
| 17 | - | ||
| 18 | 16 | from .encryption_config import EncryptionConfiguration | |
| 19 | 17 | from .model import ( | |
| 20 | 18 | DeleteModelRequest, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,4 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - | ||
| 3 | 2 | # Copyright 2020 Google LLC | |
| 4 | 3 | # | |
| 5 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
@@ -14,11 +13,9 @@ | |||
| 14 | 13 | # See the License for the specific language governing permissions and | |
| 15 | 14 | # limitations under the License. | |
| 16 | 15 | # | |
| 17 | - | ||
| 18 | 16 | import proto # type: ignore | |
| 19 | 17 | ||
| 20 | - | ||
| 21 | - from google.protobuf import wrappers_pb2 as wrappers # type: ignore | ||
| 18 | + from google.protobuf import wrappers_pb2 # type: ignore | ||
| 22 | 19 | ||
| 23 | 20 | ||
| 24 | 21 | __protobuf__ = proto.module( | |
@@ -28,7 +25,6 @@ | |||
| 28 | 25 | ||
| 29 | 26 | class EncryptionConfiguration(proto.Message): | |
| 30 | 27 | r""" | |
| 31 | - | ||
| 32 | 28 | Attributes: | |
| 33 | 29 | kms_key_name (google.protobuf.wrappers_pb2.StringValue): | |
| 34 | 30 | Optional. Describes the Cloud KMS encryption | |
@@ -38,7 +34,9 @@ class EncryptionConfiguration(proto.Message): | |||
| 38 | 34 | this encryption key. | |
| 39 | 35 | """ | |
| 40 | 36 | ||
| 41 | - kms_key_name = proto.Field(proto.MESSAGE, number=1, message=wrappers.StringValue,) | ||
| 37 | + kms_key_name = proto.Field( | ||
| 38 | + proto.MESSAGE, number=1, message=wrappers_pb2.StringValue, | ||
| 39 | + ) | ||
| 42 | 40 | ||
| 43 | 41 | ||
| 44 | 42 | __all__ = tuple(sorted(__protobuf__.manifest)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments