File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
securitycenter/snippets_v2 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -403,10 +403,10 @@ def update_source(source_name) -> Dict:
403
403
Returns:
404
404
Dict: returns the details of updated source.
405
405
"""
406
- from google .cloud import securitycenter
406
+ from google .cloud import securitycenter_v2
407
407
from google .protobuf import field_mask_pb2
408
408
409
- client = securitycenter .SecurityCenterClient ()
409
+ client = securitycenter_v2 .SecurityCenterClient ()
410
410
411
411
# Field mask to only update the display name.
412
412
field_mask = field_mask_pb2 .FieldMask (paths = ["display_name" ])
@@ -440,10 +440,10 @@ def list_source(organization_id) -> int:
440
440
Dict: returns the count of the findings source
441
441
"""
442
442
count = - 1
443
- from google .cloud import securitycenter
443
+ from google .cloud import securitycenter_v2
444
444
445
445
# Create a new client.
446
- client = securitycenter .SecurityCenterClient ()
446
+ client = securitycenter_v2 .SecurityCenterClient ()
447
447
# 'parent' must be in one of the following formats:
448
448
# "organizations/{organization_id}"
449
449
# "projects/{project_id}"
You can’t perform that action at this time.
0 commit comments