File tree 7 files changed +829
-5
lines changed
7 files changed +829
-5
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -69,6 +69,10 @@ def __init__(self, name: str):
69
69
self ._logger = logging .getLogger (name )
70
70
self ._logger .setLevel (logging .INFO )
71
71
72
+ if self ._logger .handlers :
73
+ # Avoid writing duplicate logs if the logger is created twice.
74
+ return
75
+
72
76
handler = logging .StreamHandler (sys .stdout )
73
77
handler .setLevel (logging .INFO )
74
78
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
26
26
if DEFAULT_VERSION == V1BETA1 :
27
27
28
28
services .dataset_service_client = services .dataset_service_client_v1beta1
29
+ services .deployment_resource_pool_service_client = (
30
+ services .deployment_resource_pool_service_client_v1beta1
31
+ )
29
32
services .endpoint_service_client = services .endpoint_service_client_v1beta1
30
33
services .featurestore_online_serving_service_client = (
31
34
services .featurestore_online_serving_service_client_v1beta1
59
62
types .dataset = types .dataset_v1beta1
60
63
types .dataset_service = types .dataset_service_v1beta1
61
64
types .deployed_model_ref = types .deployed_model_ref_v1beta1
65
+ types .deployment_resource_pool = types .deployment_resource_pool_v1beta1
62
66
types .encryption_spec = types .encryption_spec_v1beta1
63
67
types .endpoint = types .endpoint_v1beta1
64
68
types .endpoint_service = types .endpoint_service_v1beta1
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
18
18
from google .cloud .aiplatform_v1beta1 .services .dataset_service import (
19
19
client as dataset_service_client_v1beta1 ,
20
20
)
21
+ from google .cloud .aiplatform_v1beta1 .services .deployment_resource_pool_service import (
22
+ client as deployment_resource_pool_service_client_v1beta1 ,
23
+ )
21
24
from google .cloud .aiplatform_v1beta1 .services .endpoint_service import (
22
25
client as endpoint_service_client_v1beta1 ,
23
26
)
119
122
vizier_service_client_v1 ,
120
123
# v1beta1
121
124
dataset_service_client_v1beta1 ,
125
+ deployment_resource_pool_service_client_v1beta1 ,
122
126
endpoint_service_client_v1beta1 ,
123
127
featurestore_online_serving_service_client_v1beta1 ,
124
128
featurestore_service_client_v1beta1 ,
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- # Copyright 2021 Google LLC
3
+ # Copyright 2023 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
30
30
dataset_service as dataset_service_v1beta1 ,
31
31
deployed_index_ref as matching_engine_deployed_index_ref_v1beta1 ,
32
32
deployed_model_ref as deployed_model_ref_v1beta1 ,
33
+ deployment_resource_pool as deployment_resource_pool_v1beta1 ,
34
+ deployment_resource_pool_service as deployment_resource_pool_service_v1beta1 ,
33
35
encryption_spec as encryption_spec_v1beta1 ,
34
36
endpoint as endpoint_v1beta1 ,
35
37
endpoint_service as endpoint_service_v1beta1 ,
229
231
data_labeling_job_v1beta1 ,
230
232
dataset_v1beta1 ,
231
233
dataset_service_v1beta1 ,
234
+ deployment_resource_pool_v1beta1 ,
235
+ deployment_resource_pool_service_v1beta1 ,
232
236
deployed_model_ref_v1beta1 ,
233
237
encryption_spec_v1beta1 ,
234
238
endpoint_v1beta1 ,
You can’t perform that action at this time.
0 commit comments