Skip to content

Commit 750c514

Browse files
yoshi-automationbusunkim96
authored andcommitted
chore(logging): add trailing commas (via synth) (#9560)
1 parent 6a6bad0 commit 750c514

13 files changed

+78
-78
lines changed

google/cloud/logging_v2/gapic/config_service_v2_client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from google.protobuf import field_mask_pb2
4141

4242

43-
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-logging").version
43+
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-logging",).version
4444

4545

4646
class ConfigServiceV2Client(object):
@@ -77,7 +77,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7777
def billing_path(cls, billing_account):
7878
"""Return a fully-qualified billing string."""
7979
return google.api_core.path_template.expand(
80-
"billingAccounts/{billing_account}", billing_account=billing_account
80+
"billingAccounts/{billing_account}", billing_account=billing_account,
8181
)
8282

8383
@classmethod
@@ -110,7 +110,7 @@ def exclusion_path(cls, project, exclusion):
110110
@classmethod
111111
def folder_path(cls, folder):
112112
"""Return a fully-qualified folder string."""
113-
return google.api_core.path_template.expand("folders/{folder}", folder=folder)
113+
return google.api_core.path_template.expand("folders/{folder}", folder=folder,)
114114

115115
@classmethod
116116
def folder_exclusion_path(cls, folder, exclusion):
@@ -125,14 +125,14 @@ def folder_exclusion_path(cls, folder, exclusion):
125125
def folder_sink_path(cls, folder, sink):
126126
"""Return a fully-qualified folder_sink string."""
127127
return google.api_core.path_template.expand(
128-
"folders/{folder}/sinks/{sink}", folder=folder, sink=sink
128+
"folders/{folder}/sinks/{sink}", folder=folder, sink=sink,
129129
)
130130

131131
@classmethod
132132
def organization_path(cls, organization):
133133
"""Return a fully-qualified organization string."""
134134
return google.api_core.path_template.expand(
135-
"organizations/{organization}", organization=organization
135+
"organizations/{organization}", organization=organization,
136136
)
137137

138138
@classmethod
@@ -157,14 +157,14 @@ def organization_sink_path(cls, organization, sink):
157157
def project_path(cls, project):
158158
"""Return a fully-qualified project string."""
159159
return google.api_core.path_template.expand(
160-
"projects/{project}", project=project
160+
"projects/{project}", project=project,
161161
)
162162

163163
@classmethod
164164
def sink_path(cls, project, sink):
165165
"""Return a fully-qualified sink string."""
166166
return google.api_core.path_template.expand(
167-
"projects/{project}/sinks/{sink}", project=project, sink=sink
167+
"projects/{project}/sinks/{sink}", project=project, sink=sink,
168168
)
169169

170170
def __init__(
@@ -254,12 +254,12 @@ def __init__(
254254
self.transport = transport
255255
else:
256256
self.transport = config_service_v2_grpc_transport.ConfigServiceV2GrpcTransport(
257-
address=api_endpoint, channel=channel, credentials=credentials
257+
address=api_endpoint, channel=channel, credentials=credentials,
258258
)
259259

260260
if client_info is None:
261261
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
262-
gapic_version=_GAPIC_LIBRARY_VERSION
262+
gapic_version=_GAPIC_LIBRARY_VERSION,
263263
)
264264
else:
265265
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -270,7 +270,7 @@ def __init__(
270270
# (Ordinarily, these are the defaults specified in the `*_config.py`
271271
# file next to this one.)
272272
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
273-
client_config["interfaces"][self._INTERFACE_NAME]
273+
client_config["interfaces"][self._INTERFACE_NAME],
274274
)
275275

276276
# Save a dictionary of cached API call functions.
@@ -360,7 +360,7 @@ def list_sinks(
360360
)
361361

362362
request = logging_config_pb2.ListSinksRequest(
363-
parent=parent, page_size=page_size
363+
parent=parent, page_size=page_size,
364364
)
365365
if metadata is None:
366366
metadata = []
@@ -450,7 +450,7 @@ def get_sink(
450450
client_info=self._client_info,
451451
)
452452

453-
request = logging_config_pb2.GetSinkRequest(sink_name=sink_name)
453+
request = logging_config_pb2.GetSinkRequest(sink_name=sink_name,)
454454
if metadata is None:
455455
metadata = []
456456
metadata = list(metadata)
@@ -554,7 +554,7 @@ def create_sink(
554554
)
555555

556556
request = logging_config_pb2.CreateSinkRequest(
557-
parent=parent, sink=sink, unique_writer_identity=unique_writer_identity
557+
parent=parent, sink=sink, unique_writer_identity=unique_writer_identity,
558558
)
559559
if metadata is None:
560560
metadata = []
@@ -759,7 +759,7 @@ def delete_sink(
759759
client_info=self._client_info,
760760
)
761761

762-
request = logging_config_pb2.DeleteSinkRequest(sink_name=sink_name)
762+
request = logging_config_pb2.DeleteSinkRequest(sink_name=sink_name,)
763763
if metadata is None:
764764
metadata = []
765765
metadata = list(metadata)
@@ -857,7 +857,7 @@ def list_exclusions(
857857
)
858858

859859
request = logging_config_pb2.ListExclusionsRequest(
860-
parent=parent, page_size=page_size
860+
parent=parent, page_size=page_size,
861861
)
862862
if metadata is None:
863863
metadata = []
@@ -947,7 +947,7 @@ def get_exclusion(
947947
client_info=self._client_info,
948948
)
949949

950-
request = logging_config_pb2.GetExclusionRequest(name=name)
950+
request = logging_config_pb2.GetExclusionRequest(name=name,)
951951
if metadata is None:
952952
metadata = []
953953
metadata = list(metadata)
@@ -1038,7 +1038,7 @@ def create_exclusion(
10381038
)
10391039

10401040
request = logging_config_pb2.CreateExclusionRequest(
1041-
parent=parent, exclusion=exclusion
1041+
parent=parent, exclusion=exclusion,
10421042
)
10431043
if metadata is None:
10441044
metadata = []
@@ -1142,7 +1142,7 @@ def update_exclusion(
11421142
)
11431143

11441144
request = logging_config_pb2.UpdateExclusionRequest(
1145-
name=name, exclusion=exclusion, update_mask=update_mask
1145+
name=name, exclusion=exclusion, update_mask=update_mask,
11461146
)
11471147
if metadata is None:
11481148
metadata = []
@@ -1218,7 +1218,7 @@ def delete_exclusion(
12181218
client_info=self._client_info,
12191219
)
12201220

1221-
request = logging_config_pb2.DeleteExclusionRequest(name=name)
1221+
request = logging_config_pb2.DeleteExclusionRequest(name=name,)
12221222
if metadata is None:
12231223
metadata = []
12241224
metadata = list(metadata)

google/cloud/logging_v2/gapic/logging_service_v2_client.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from google.protobuf import field_mask_pb2
4545

4646

47-
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-logging").version
47+
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-logging",).version
4848

4949

5050
class LoggingServiceV2Client(object):
@@ -81,7 +81,7 @@ def from_service_account_file(cls, filename, *args, **kwargs):
8181
def billing_path(cls, billing_account):
8282
"""Return a fully-qualified billing string."""
8383
return google.api_core.path_template.expand(
84-
"billingAccounts/{billing_account}", billing_account=billing_account
84+
"billingAccounts/{billing_account}", billing_account=billing_account,
8585
)
8686

8787
@classmethod
@@ -96,27 +96,27 @@ def billing_log_path(cls, billing_account, log):
9696
@classmethod
9797
def folder_path(cls, folder):
9898
"""Return a fully-qualified folder string."""
99-
return google.api_core.path_template.expand("folders/{folder}", folder=folder)
99+
return google.api_core.path_template.expand("folders/{folder}", folder=folder,)
100100

101101
@classmethod
102102
def folder_log_path(cls, folder, log):
103103
"""Return a fully-qualified folder_log string."""
104104
return google.api_core.path_template.expand(
105-
"folders/{folder}/logs/{log}", folder=folder, log=log
105+
"folders/{folder}/logs/{log}", folder=folder, log=log,
106106
)
107107

108108
@classmethod
109109
def log_path(cls, project, log):
110110
"""Return a fully-qualified log string."""
111111
return google.api_core.path_template.expand(
112-
"projects/{project}/logs/{log}", project=project, log=log
112+
"projects/{project}/logs/{log}", project=project, log=log,
113113
)
114114

115115
@classmethod
116116
def organization_path(cls, organization):
117117
"""Return a fully-qualified organization string."""
118118
return google.api_core.path_template.expand(
119-
"organizations/{organization}", organization=organization
119+
"organizations/{organization}", organization=organization,
120120
)
121121

122122
@classmethod
@@ -132,7 +132,7 @@ def organization_log_path(cls, organization, log):
132132
def project_path(cls, project):
133133
"""Return a fully-qualified project string."""
134134
return google.api_core.path_template.expand(
135-
"projects/{project}", project=project
135+
"projects/{project}", project=project,
136136
)
137137

138138
def __init__(
@@ -222,12 +222,12 @@ def __init__(
222222
self.transport = transport
223223
else:
224224
self.transport = logging_service_v2_grpc_transport.LoggingServiceV2GrpcTransport(
225-
address=api_endpoint, channel=channel, credentials=credentials
225+
address=api_endpoint, channel=channel, credentials=credentials,
226226
)
227227

228228
if client_info is None:
229229
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
230-
gapic_version=_GAPIC_LIBRARY_VERSION
230+
gapic_version=_GAPIC_LIBRARY_VERSION,
231231
)
232232
else:
233233
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -238,7 +238,7 @@ def __init__(
238238
# (Ordinarily, these are the defaults specified in the `*_config.py`
239239
# file next to this one.)
240240
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
241-
client_config["interfaces"][self._INTERFACE_NAME]
241+
client_config["interfaces"][self._INTERFACE_NAME],
242242
)
243243

244244
# Save a dictionary of cached API call functions.
@@ -311,7 +311,7 @@ def delete_log(
311311
client_info=self._client_info,
312312
)
313313

314-
request = logging_pb2.DeleteLogRequest(log_name=log_name)
314+
request = logging_pb2.DeleteLogRequest(log_name=log_name,)
315315
if metadata is None:
316316
metadata = []
317317
metadata = list(metadata)
@@ -679,7 +679,7 @@ def list_monitored_resource_descriptors(
679679
)
680680

681681
request = logging_pb2.ListMonitoredResourceDescriptorsRequest(
682-
page_size=page_size
682+
page_size=page_size,
683683
)
684684
iterator = google.api_core.page_iterator.GRPCIterator(
685685
client=None,
@@ -776,7 +776,7 @@ def list_logs(
776776
client_info=self._client_info,
777777
)
778778

779-
request = logging_pb2.ListLogsRequest(parent=parent, page_size=page_size)
779+
request = logging_pb2.ListLogsRequest(parent=parent, page_size=page_size,)
780780
if metadata is None:
781781
metadata = []
782782
metadata = list(metadata)

google/cloud/logging_v2/gapic/metrics_service_v2_client.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
from google.protobuf import field_mask_pb2
4747

4848

49-
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-logging").version
49+
_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-logging",).version
5050

5151

5252
class MetricsServiceV2Client(object):
@@ -83,33 +83,33 @@ def from_service_account_file(cls, filename, *args, **kwargs):
8383
def billing_path(cls, billing_account):
8484
"""Return a fully-qualified billing string."""
8585
return google.api_core.path_template.expand(
86-
"billingAccounts/{billing_account}", billing_account=billing_account
86+
"billingAccounts/{billing_account}", billing_account=billing_account,
8787
)
8888

8989
@classmethod
9090
def folder_path(cls, folder):
9191
"""Return a fully-qualified folder string."""
92-
return google.api_core.path_template.expand("folders/{folder}", folder=folder)
92+
return google.api_core.path_template.expand("folders/{folder}", folder=folder,)
9393

9494
@classmethod
9595
def metric_path(cls, project, metric):
9696
"""Return a fully-qualified metric string."""
9797
return google.api_core.path_template.expand(
98-
"projects/{project}/metrics/{metric}", project=project, metric=metric
98+
"projects/{project}/metrics/{metric}", project=project, metric=metric,
9999
)
100100

101101
@classmethod
102102
def organization_path(cls, organization):
103103
"""Return a fully-qualified organization string."""
104104
return google.api_core.path_template.expand(
105-
"organizations/{organization}", organization=organization
105+
"organizations/{organization}", organization=organization,
106106
)
107107

108108
@classmethod
109109
def project_path(cls, project):
110110
"""Return a fully-qualified project string."""
111111
return google.api_core.path_template.expand(
112-
"projects/{project}", project=project
112+
"projects/{project}", project=project,
113113
)
114114

115115
def __init__(
@@ -199,12 +199,12 @@ def __init__(
199199
self.transport = transport
200200
else:
201201
self.transport = metrics_service_v2_grpc_transport.MetricsServiceV2GrpcTransport(
202-
address=api_endpoint, channel=channel, credentials=credentials
202+
address=api_endpoint, channel=channel, credentials=credentials,
203203
)
204204

205205
if client_info is None:
206206
client_info = google.api_core.gapic_v1.client_info.ClientInfo(
207-
gapic_version=_GAPIC_LIBRARY_VERSION
207+
gapic_version=_GAPIC_LIBRARY_VERSION,
208208
)
209209
else:
210210
client_info.gapic_version = _GAPIC_LIBRARY_VERSION
@@ -215,7 +215,7 @@ def __init__(
215215
# (Ordinarily, these are the defaults specified in the `*_config.py`
216216
# file next to this one.)
217217
self._method_configs = google.api_core.gapic_v1.config.parse_method_configs(
218-
client_config["interfaces"][self._INTERFACE_NAME]
218+
client_config["interfaces"][self._INTERFACE_NAME],
219219
)
220220

221221
# Save a dictionary of cached API call functions.
@@ -302,7 +302,7 @@ def list_log_metrics(
302302
)
303303

304304
request = logging_metrics_pb2.ListLogMetricsRequest(
305-
parent=parent, page_size=page_size
305+
parent=parent, page_size=page_size,
306306
)
307307
if metadata is None:
308308
metadata = []
@@ -387,7 +387,7 @@ def get_log_metric(
387387
client_info=self._client_info,
388388
)
389389

390-
request = logging_metrics_pb2.GetLogMetricRequest(metric_name=metric_name)
390+
request = logging_metrics_pb2.GetLogMetricRequest(metric_name=metric_name,)
391391
if metadata is None:
392392
metadata = []
393393
metadata = list(metadata)
@@ -472,7 +472,7 @@ def create_log_metric(
472472
)
473473

474474
request = logging_metrics_pb2.CreateLogMetricRequest(
475-
parent=parent, metric=metric
475+
parent=parent, metric=metric,
476476
)
477477
if metadata is None:
478478
metadata = []
@@ -559,7 +559,7 @@ def update_log_metric(
559559
)
560560

561561
request = logging_metrics_pb2.UpdateLogMetricRequest(
562-
metric_name=metric_name, metric=metric
562+
metric_name=metric_name, metric=metric,
563563
)
564564
if metadata is None:
565565
metadata = []
@@ -630,7 +630,7 @@ def delete_log_metric(
630630
client_info=self._client_info,
631631
)
632632

633-
request = logging_metrics_pb2.DeleteLogMetricRequest(metric_name=metric_name)
633+
request = logging_metrics_pb2.DeleteLogMetricRequest(metric_name=metric_name,)
634634
if metadata is None:
635635
metadata = []
636636
metadata = list(metadata)

0 commit comments

Comments
 (0)