Skip to content

Commit 1c19fbf

Browse files
yoshi-automationbusunkim96
authored andcommitted
Reorder methods in file (via synth). (#7810)
1 parent 0b87645 commit 1c19fbf

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

google/cloud/logging_v2/gapic/config_service_v2_client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7777

7878
from_service_account_json = from_service_account_file
7979

80+
@classmethod
81+
def exclusion_path(cls, project, exclusion):
82+
"""Return a fully-qualified exclusion string."""
83+
return google.api_core.path_template.expand(
84+
"projects/{project}/exclusions/{exclusion}",
85+
project=project,
86+
exclusion=exclusion,
87+
)
88+
8089
@classmethod
8190
def project_path(cls, project):
8291
"""Return a fully-qualified project string."""
@@ -91,15 +100,6 @@ def sink_path(cls, project, sink):
91100
"projects/{project}/sinks/{sink}", project=project, sink=sink
92101
)
93102

94-
@classmethod
95-
def exclusion_path(cls, project, exclusion):
96-
"""Return a fully-qualified exclusion string."""
97-
return google.api_core.path_template.expand(
98-
"projects/{project}/exclusions/{exclusion}",
99-
project=project,
100-
exclusion=exclusion,
101-
)
102-
103103
def __init__(
104104
self,
105105
transport=None,

google/cloud/logging_v2/gapic/metrics_service_v2_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ def from_service_account_file(cls, filename, *args, **kwargs):
7777
from_service_account_json = from_service_account_file
7878

7979
@classmethod
80-
def project_path(cls, project):
81-
"""Return a fully-qualified project string."""
80+
def metric_path(cls, project, metric):
81+
"""Return a fully-qualified metric string."""
8282
return google.api_core.path_template.expand(
83-
"projects/{project}", project=project
83+
"projects/{project}/metrics/{metric}", project=project, metric=metric
8484
)
8585

8686
@classmethod
87-
def metric_path(cls, project, metric):
88-
"""Return a fully-qualified metric string."""
87+
def project_path(cls, project):
88+
"""Return a fully-qualified project string."""
8989
return google.api_core.path_template.expand(
90-
"projects/{project}/metrics/{metric}", project=project, metric=metric
90+
"projects/{project}", project=project
9191
)
9292

9393
def __init__(

synth.metadata

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"updateTime": "2019-03-28T12:19:01.156618Z",
2+
"updateTime": "2019-04-27T12:12:27.695009Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.20",
8-
"dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e"
7+
"version": "0.17.1",
8+
"dockerImage": "googleapis/artman@sha256:a40ca4dd4ef031c0ded4df4909ffdf7b3f20d29b23e682ef991eb60ba0ca6025"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "6a84b3267b0a95e922608b9891219075047eee29",
16-
"internalRef": "240640999"
15+
"sha": "808110e242c682d7ac2bab6d9c49fc3bf72d7604",
16+
"internalRef": "245313728"
1717
}
1818
},
1919
{
2020
"template": {
2121
"name": "python_library",
2222
"origin": "synthtool.gcp",
23-
"version": "2019.2.26"
23+
"version": "2019.4.10"
2424
}
2525
}
2626
],

0 commit comments

Comments
 (0)