40
40
from google .protobuf import field_mask_pb2
41
41
42
42
43
- _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution (
44
- "google-cloud-logging" ,
45
- ).version
43
+ _GAPIC_LIBRARY_VERSION = pkg_resources .get_distribution ("google-cloud-logging" ,).version
46
44
47
45
48
46
class ConfigServiceV2Client (object ):
@@ -79,8 +77,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
79
77
def billing_path (cls , billing_account ):
80
78
"""Return a fully-qualified billing string."""
81
79
return google .api_core .path_template .expand (
82
- "billingAccounts/{billing_account}" ,
83
- billing_account = billing_account ,
80
+ "billingAccounts/{billing_account}" , billing_account = billing_account ,
84
81
)
85
82
86
83
@classmethod
@@ -113,10 +110,7 @@ def exclusion_path(cls, project, exclusion):
113
110
@classmethod
114
111
def folder_path (cls , folder ):
115
112
"""Return a fully-qualified folder string."""
116
- return google .api_core .path_template .expand (
117
- "folders/{folder}" ,
118
- folder = folder ,
119
- )
113
+ return google .api_core .path_template .expand ("folders/{folder}" , folder = folder ,)
120
114
121
115
@classmethod
122
116
def folder_exclusion_path (cls , folder , exclusion ):
@@ -131,17 +125,14 @@ def folder_exclusion_path(cls, folder, exclusion):
131
125
def folder_sink_path (cls , folder , sink ):
132
126
"""Return a fully-qualified folder_sink string."""
133
127
return google .api_core .path_template .expand (
134
- "folders/{folder}/sinks/{sink}" ,
135
- folder = folder ,
136
- sink = sink ,
128
+ "folders/{folder}/sinks/{sink}" , folder = folder , sink = sink ,
137
129
)
138
130
139
131
@classmethod
140
132
def organization_path (cls , organization ):
141
133
"""Return a fully-qualified organization string."""
142
134
return google .api_core .path_template .expand (
143
- "organizations/{organization}" ,
144
- organization = organization ,
135
+ "organizations/{organization}" , organization = organization ,
145
136
)
146
137
147
138
@classmethod
@@ -166,17 +157,14 @@ def organization_sink_path(cls, organization, sink):
166
157
def project_path (cls , project ):
167
158
"""Return a fully-qualified project string."""
168
159
return google .api_core .path_template .expand (
169
- "projects/{project}" ,
170
- project = project ,
160
+ "projects/{project}" , project = project ,
171
161
)
172
162
173
163
@classmethod
174
164
def sink_path (cls , project , sink ):
175
165
"""Return a fully-qualified sink string."""
176
166
return google .api_core .path_template .expand (
177
- "projects/{project}/sinks/{sink}" ,
178
- project = project ,
179
- sink = sink ,
167
+ "projects/{project}/sinks/{sink}" , project = project , sink = sink ,
180
168
)
181
169
182
170
def __init__ (
@@ -265,12 +253,8 @@ def __init__(
265
253
)
266
254
self .transport = transport
267
255
else :
268
- self .transport = (
269
- config_service_v2_grpc_transport .ConfigServiceV2GrpcTransport (
270
- address = api_endpoint ,
271
- channel = channel ,
272
- credentials = credentials ,
273
- )
256
+ self .transport = config_service_v2_grpc_transport .ConfigServiceV2GrpcTransport (
257
+ address = api_endpoint , channel = channel , credentials = credentials ,
274
258
)
275
259
276
260
if client_info is None :
@@ -376,8 +360,7 @@ def list_sinks(
376
360
)
377
361
378
362
request = logging_config_pb2 .ListSinksRequest (
379
- parent = parent ,
380
- page_size = page_size ,
363
+ parent = parent , page_size = page_size ,
381
364
)
382
365
if metadata is None :
383
366
metadata = []
@@ -467,9 +450,7 @@ def get_sink(
467
450
client_info = self ._client_info ,
468
451
)
469
452
470
- request = logging_config_pb2 .GetSinkRequest (
471
- sink_name = sink_name ,
472
- )
453
+ request = logging_config_pb2 .GetSinkRequest (sink_name = sink_name ,)
473
454
if metadata is None :
474
455
metadata = []
475
456
metadata = list (metadata )
@@ -573,9 +554,7 @@ def create_sink(
573
554
)
574
555
575
556
request = logging_config_pb2 .CreateSinkRequest (
576
- parent = parent ,
577
- sink = sink ,
578
- unique_writer_identity = unique_writer_identity ,
557
+ parent = parent , sink = sink , unique_writer_identity = unique_writer_identity ,
579
558
)
580
559
if metadata is None :
581
560
metadata = []
@@ -780,9 +759,7 @@ def delete_sink(
780
759
client_info = self ._client_info ,
781
760
)
782
761
783
- request = logging_config_pb2 .DeleteSinkRequest (
784
- sink_name = sink_name ,
785
- )
762
+ request = logging_config_pb2 .DeleteSinkRequest (sink_name = sink_name ,)
786
763
if metadata is None :
787
764
metadata = []
788
765
metadata = list (metadata )
@@ -880,8 +857,7 @@ def list_exclusions(
880
857
)
881
858
882
859
request = logging_config_pb2 .ListExclusionsRequest (
883
- parent = parent ,
884
- page_size = page_size ,
860
+ parent = parent , page_size = page_size ,
885
861
)
886
862
if metadata is None :
887
863
metadata = []
@@ -971,9 +947,7 @@ def get_exclusion(
971
947
client_info = self ._client_info ,
972
948
)
973
949
974
- request = logging_config_pb2 .GetExclusionRequest (
975
- name = name ,
976
- )
950
+ request = logging_config_pb2 .GetExclusionRequest (name = name ,)
977
951
if metadata is None :
978
952
metadata = []
979
953
metadata = list (metadata )
@@ -1064,8 +1038,7 @@ def create_exclusion(
1064
1038
)
1065
1039
1066
1040
request = logging_config_pb2 .CreateExclusionRequest (
1067
- parent = parent ,
1068
- exclusion = exclusion ,
1041
+ parent = parent , exclusion = exclusion ,
1069
1042
)
1070
1043
if metadata is None :
1071
1044
metadata = []
@@ -1169,9 +1142,7 @@ def update_exclusion(
1169
1142
)
1170
1143
1171
1144
request = logging_config_pb2 .UpdateExclusionRequest (
1172
- name = name ,
1173
- exclusion = exclusion ,
1174
- update_mask = update_mask ,
1145
+ name = name , exclusion = exclusion , update_mask = update_mask ,
1175
1146
)
1176
1147
if metadata is None :
1177
1148
metadata = []
@@ -1247,9 +1218,7 @@ def delete_exclusion(
1247
1218
client_info = self ._client_info ,
1248
1219
)
1249
1220
1250
- request = logging_config_pb2 .DeleteExclusionRequest (
1251
- name = name ,
1252
- )
1221
+ request = logging_config_pb2 .DeleteExclusionRequest (name = name ,)
1253
1222
if metadata is None :
1254
1223
metadata = []
1255
1224
metadata = list (metadata )
@@ -1337,9 +1306,7 @@ def get_cmek_settings(
1337
1306
client_info = self ._client_info ,
1338
1307
)
1339
1308
1340
- request = logging_config_pb2 .GetCmekSettingsRequest (
1341
- name = name ,
1342
- )
1309
+ request = logging_config_pb2 .GetCmekSettingsRequest (name = name ,)
1343
1310
if metadata is None :
1344
1311
metadata = []
1345
1312
metadata = list (metadata )
@@ -1455,9 +1422,7 @@ def update_cmek_settings(
1455
1422
)
1456
1423
1457
1424
request = logging_config_pb2 .UpdateCmekSettingsRequest (
1458
- name = name ,
1459
- cmek_settings = cmek_settings ,
1460
- update_mask = update_mask ,
1425
+ name = name , cmek_settings = cmek_settings , update_mask = update_mask ,
1461
1426
)
1462
1427
if metadata is None :
1463
1428
metadata = []
0 commit comments