@@ -23,15 +23,15 @@ def export_assets(project_id, dump_file_path):
2323 from google .cloud import asset_v1beta1
2424 from google .cloud .asset_v1beta1 .proto import asset_service_pb2
2525
26- # TODO project_id = " Your Google Cloud Project ID"
27- # TODO dump_file_path = " Your asset dump file path"
26+ # TODO project_id = ' Your Google Cloud Project ID'
27+ # TODO dump_file_path = ' Your asset dump file path'
2828
2929 client = asset_v1beta1 .AssetServiceClient ()
3030 parent = client .project_path (project_id )
3131 output_config = asset_service_pb2 .OutputConfig ()
3232 output_config .gcs_destination .uri = dump_file_path
3333 response = client .export_assets (parent , output_config )
34- print (response .result )
34+ print (response .result () )
3535 # [END asset_quickstart_exportassets]
3636
3737
@@ -42,9 +42,10 @@ def export_assets(project_id, dump_file_path):
4242 formatter_class = argparse .RawDescriptionHelpFormatter
4343 )
4444 parser .add_argument ('project_id' , help = 'Your Google Cloud project ID' )
45- parser .add_argument ('dump_file_path' ,
46- help = 'The file ExportAssets API will dump assets to, '
47- 'e.g.: gs://<bucket-name>/asset_dump_file' )
45+ parser .add_argument (
46+ 'dump_file_path' ,
47+ help = 'The file ExportAssets API will dump assets to, '
48+ 'e.g.: gs://<bucket-name>/asset_dump_file' )
4849
4950 args = parser .parse_args ()
5051
0 commit comments