def Run(self, args): parent = asset_utils.GetParentNameForExport(args.organization, args.project, args.folder) if args.content_type == 'relationship': client = client_util.AssetExportClient( parent, api_version=client_util.V1P7BETA1_API_VERSION) else: client = client_util.AssetExportClient(parent) operation = client.Export(args) log.ExportResource(parent, is_async=True, kind='root asset') log.status.Print( 'Use [{} {}] to check the status of the operation.'.format( OPERATION_DESCRIBE_COMMAND, operation.name))
def Run(self, args): parent = asset_utils.GetParentNameForExport(args.organization, args.project, args.folder) client = client_util.AssetExportClient(parent) operation = client.Export(args) log.ExportResource(parent, is_async=True, kind='root asset') log.status.Print('Use [{} {}] to check the status of the operation.'.format( OPERATION_DESCRIBE_COMMAND, operation.name))
def Run(self, args): parent = asset_utils.GetParentName(args.organization, args.project, args.folder) client = client_util.AssetExportClient(parent) operation = client.Export(args) prefix = self.ReleaseTrack().prefix if prefix: operation_describe_command = 'gcloud {} asset operations describe'.format( prefix) else: operation_describe_command = 'gcloud asset operations describe' log.ExportResource(parent, is_async=True, kind='root asset') log.status.Print( 'Use [{} {}] to check the status of the operation.'.format( operation_describe_command, operation.name))