Skip to content

Commit 7d060eb

Browse files
yoshi-automationtseaver
authored andcommitted
Pick up stub docstring fix in GAPIC generator. (#6981)
1 parent 804cff6 commit 7d060eb

File tree

3 files changed

+48
-48
lines changed

3 files changed

+48
-48
lines changed

packages/google-cloud-securitycenter/google/cloud/securitycenter_v1beta1/gapic/enums.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,31 @@ class State(enum.IntEnum):
4949
INACTIVE = 2
5050

5151

52+
class ListAssetsResponse(object):
53+
class ListAssetsResult(object):
54+
class State(enum.IntEnum):
55+
"""
56+
State of the asset.
57+
58+
When querying across two points in time this describes the change
59+
between the two points: ADDED, REMOVED, or ACTIVE. If there was no
60+
compare\_duration supplied in the request the state should be: UNUSED
61+
62+
Attributes:
63+
STATE_UNSPECIFIED (int): Unspecified state.
64+
UNUSED (int): Request did not specify use of this field in the result.
65+
ADDED (int): Asset was added between the points in time.
66+
REMOVED (int): Asset was removed between the points in time.
67+
ACTIVE (int): Asset was active at both point(s) in time.
68+
"""
69+
70+
STATE_UNSPECIFIED = 0
71+
UNUSED = 1
72+
ADDED = 2
73+
REMOVED = 3
74+
ACTIVE = 4
75+
76+
5277
class OrganizationSettings(object):
5378
class AssetDiscoveryConfig(object):
5479
class InclusionMode(enum.IntEnum):
@@ -73,28 +98,3 @@ class InclusionMode(enum.IntEnum):
7398
INCLUSION_MODE_UNSPECIFIED = 0
7499
INCLUDE_ONLY = 1
75100
EXCLUDE = 2
76-
77-
78-
class ListAssetsResponse(object):
79-
class ListAssetsResult(object):
80-
class State(enum.IntEnum):
81-
"""
82-
State of the asset.
83-
84-
When querying across two points in time this describes the change
85-
between the two points: ADDED, REMOVED, or ACTIVE. If there was no
86-
compare\_duration supplied in the request the state should be: UNUSED
87-
88-
Attributes:
89-
STATE_UNSPECIFIED (int): Unspecified state.
90-
UNUSED (int): Request did not specify use of this field in the result.
91-
ADDED (int): Asset was added between the points in time.
92-
REMOVED (int): Asset was removed between the points in time.
93-
ACTIVE (int): Asset was active at both point(s) in time.
94-
"""
95-
96-
STATE_UNSPECIFIED = 0
97-
UNUSED = 1
98-
ADDED = 2
99-
REMOVED = 3
100-
ACTIVE = 4

packages/google-cloud-securitycenter/google/cloud/securitycenter_v1beta1/gapic/transports/security_center_grpc_transport.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def channel(self):
112112

113113
@property
114114
def create_source(self):
115-
"""Return the gRPC stub for {$apiMethod.name}.
115+
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_source`.
116116
117117
Creates a source.
118118
@@ -125,7 +125,7 @@ def create_source(self):
125125

126126
@property
127127
def create_finding(self):
128-
"""Return the gRPC stub for {$apiMethod.name}.
128+
"""Return the gRPC stub for :meth:`SecurityCenterClient.create_finding`.
129129
130130
Creates a finding. The corresponding source must exist for finding creation
131131
to succeed.
@@ -139,7 +139,7 @@ def create_finding(self):
139139

140140
@property
141141
def get_iam_policy(self):
142-
"""Return the gRPC stub for {$apiMethod.name}.
142+
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_iam_policy`.
143143
144144
Gets the access control policy on the specified Source.
145145
@@ -152,7 +152,7 @@ def get_iam_policy(self):
152152

153153
@property
154154
def get_organization_settings(self):
155-
"""Return the gRPC stub for {$apiMethod.name}.
155+
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_organization_settings`.
156156
157157
Gets the settings for an organization.
158158
@@ -165,7 +165,7 @@ def get_organization_settings(self):
165165

166166
@property
167167
def get_source(self):
168-
"""Return the gRPC stub for {$apiMethod.name}.
168+
"""Return the gRPC stub for :meth:`SecurityCenterClient.get_source`.
169169
170170
Gets a source.
171171
@@ -178,7 +178,7 @@ def get_source(self):
178178

179179
@property
180180
def group_assets(self):
181-
"""Return the gRPC stub for {$apiMethod.name}.
181+
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_assets`.
182182
183183
Filters an organization's assets and groups them by their specified
184184
properties.
@@ -192,7 +192,7 @@ def group_assets(self):
192192

193193
@property
194194
def group_findings(self):
195-
"""Return the gRPC stub for {$apiMethod.name}.
195+
"""Return the gRPC stub for :meth:`SecurityCenterClient.group_findings`.
196196
197197
Filters an organization or source's findings and groups them by their
198198
specified properties.
@@ -209,7 +209,7 @@ def group_findings(self):
209209

210210
@property
211211
def list_assets(self):
212-
"""Return the gRPC stub for {$apiMethod.name}.
212+
"""Return the gRPC stub for :meth:`SecurityCenterClient.list_assets`.
213213
214214
Lists an organization's assets.
215215
@@ -222,7 +222,7 @@ def list_assets(self):
222222

223223
@property
224224
def list_findings(self):
225-
"""Return the gRPC stub for {$apiMethod.name}.
225+
"""Return the gRPC stub for :meth:`SecurityCenterClient.list_findings`.
226226
227227
Lists an organization or source's findings.
228228
@@ -238,7 +238,7 @@ def list_findings(self):
238238

239239
@property
240240
def list_sources(self):
241-
"""Return the gRPC stub for {$apiMethod.name}.
241+
"""Return the gRPC stub for :meth:`SecurityCenterClient.list_sources`.
242242
243243
Lists all sources belonging to an organization.
244244
@@ -251,7 +251,7 @@ def list_sources(self):
251251

252252
@property
253253
def run_asset_discovery(self):
254-
"""Return the gRPC stub for {$apiMethod.name}.
254+
"""Return the gRPC stub for :meth:`SecurityCenterClient.run_asset_discovery`.
255255
256256
Runs asset discovery. The discovery is tracked with a long-running
257257
operation.
@@ -269,7 +269,7 @@ def run_asset_discovery(self):
269269

270270
@property
271271
def set_finding_state(self):
272-
"""Return the gRPC stub for {$apiMethod.name}.
272+
"""Return the gRPC stub for :meth:`SecurityCenterClient.set_finding_state`.
273273
274274
Updates the state of a finding.
275275
@@ -282,7 +282,7 @@ def set_finding_state(self):
282282

283283
@property
284284
def set_iam_policy(self):
285-
"""Return the gRPC stub for {$apiMethod.name}.
285+
"""Return the gRPC stub for :meth:`SecurityCenterClient.set_iam_policy`.
286286
287287
Sets the access control policy on the specified Source.
288288
@@ -295,7 +295,7 @@ def set_iam_policy(self):
295295

296296
@property
297297
def test_iam_permissions(self):
298-
"""Return the gRPC stub for {$apiMethod.name}.
298+
"""Return the gRPC stub for :meth:`SecurityCenterClient.test_iam_permissions`.
299299
300300
Returns the permissions that a caller has on the specified source.
301301
@@ -308,7 +308,7 @@ def test_iam_permissions(self):
308308

309309
@property
310310
def update_finding(self):
311-
"""Return the gRPC stub for {$apiMethod.name}.
311+
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_finding`.
312312
313313
Creates or updates a finding. The corresponding source must exist for a
314314
finding creation to succeed.
@@ -322,7 +322,7 @@ def update_finding(self):
322322

323323
@property
324324
def update_organization_settings(self):
325-
"""Return the gRPC stub for {$apiMethod.name}.
325+
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_organization_settings`.
326326
327327
Updates an organization's settings.
328328
@@ -335,7 +335,7 @@ def update_organization_settings(self):
335335

336336
@property
337337
def update_source(self):
338-
"""Return the gRPC stub for {$apiMethod.name}.
338+
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_source`.
339339
340340
Updates a source.
341341
@@ -348,7 +348,7 @@ def update_source(self):
348348

349349
@property
350350
def update_security_marks(self):
351-
"""Return the gRPC stub for {$apiMethod.name}.
351+
"""Return the gRPC stub for :meth:`SecurityCenterClient.update_security_marks`.
352352
353353
Updates security marks.
354354

packages/google-cloud-securitycenter/synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"updateTime": "2018-12-07T13:25:25.763656Z",
2+
"updateTime": "2018-12-18T13:25:31.560558Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.2",
8-
"dockerImage": "googleapis/artman@sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea"
7+
"version": "0.16.3",
8+
"dockerImage": "googleapis/artman@sha256:bfb92654b4a77368471f70e2808eaf4e60f263b9559f27bb3284097322787bf1"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "200fbbe59cc7b0077ae525eb5f3d6420c0c53e61",
16-
"internalRef": "224174014"
15+
"sha": "c04bc0dc0a9164d924a9ab923fd6845b4ae6a7ab",
16+
"internalRef": "225851467"
1717
}
1818
},
1919
{

0 commit comments

Comments
 (0)