{ "clientLibrary": { "name": "cloud.google.com/go/datacatalog/lineage/apiv1", "version": "1.26.1", "language": "GO", "apis": [ { "id": "google.cloud.datacatalog.lineage.v1", "version": "v1" } ] }, "snippets": [ { "regionTag": "datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_sync", "title": "datalineage BatchSearchLinkProcesses Sample", "description": "BatchSearchLinkProcesses retrieve information about LineageProcesses associated with specific\nlinks. LineageProcesses are transformation pipelines that result in data\nflowing from **source** to **target** assets. Links between assets\nrepresent this operation.\n\nIf you have specific link names, you can use this method to\nverify which LineageProcesses contribute to creating those links.\nSee the\n[SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks]\nmethod for more information on how to retrieve link name.\n\nYou can retrieve the LineageProcess information in every project where you\nhave the `datalineage.events.get` permission. The project provided in the\nURL is used for Billing and Quota.", "file": "Client/BatchSearchLinkProcesses/main.go", "language": "GO", "clientMethod": { "shortName": "BatchSearchLinkProcesses", "fullName": "google.cloud.datacatalog.lineage.v1.Client.BatchSearchLinkProcesses", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.BatchSearchLinkProcessesRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ProcessLinksIterator", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "BatchSearchLinkProcesses", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_CancelOperation_sync", "title": "datalineage CancelOperation Sample", "description": "CancelOperation is a utility method from google.longrunning.Operations.", "file": "Client/CancelOperation/main.go", "language": "GO", "clientMethod": { "shortName": "CancelOperation", "fullName": "google.cloud.datacatalog.lineage.v1.Client.CancelOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.CancelOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "CancelOperation", "fullName": "google.longrunning.Operations.CancelOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 51, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_CreateLineageEvent_sync", "title": "datalineage CreateLineageEvent Sample", "description": "CreateLineageEvent creates a new lineage event.", "file": "Client/CreateLineageEvent/main.go", "language": "GO", "clientMethod": { "shortName": "CreateLineageEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Client.CreateLineageEvent", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.CreateLineageEventRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.LineageEvent", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "CreateLineageEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEvent", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_CreateProcess_sync", "title": "datalineage CreateProcess Sample", "description": "CreateProcess creates a new process.", "file": "Client/CreateProcess/main.go", "language": "GO", "clientMethod": { "shortName": "CreateProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Client.CreateProcess", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.CreateProcessRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.Process", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "CreateProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateProcess", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_CreateRun_sync", "title": "datalineage CreateRun Sample", "description": "CreateRun creates a new run.", "file": "Client/CreateRun/main.go", "language": "GO", "clientMethod": { "shortName": "CreateRun", "fullName": "google.cloud.datacatalog.lineage.v1.Client.CreateRun", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.CreateRunRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.Run", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "CreateRun", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateRun", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_DeleteLineageEvent_sync", "title": "datalineage DeleteLineageEvent Sample", "description": "DeleteLineageEvent deletes the lineage event with the specified name.", "file": "Client/DeleteLineageEvent/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteLineageEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Client.DeleteLineageEvent", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.DeleteLineageEventRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "DeleteLineageEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEvent", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 51, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_DeleteOperation_sync", "title": "datalineage DeleteOperation Sample", "description": "DeleteOperation is a utility method from google.longrunning.Operations.", "file": "Client/DeleteOperation/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteOperation", "fullName": "google.cloud.datacatalog.lineage.v1.Client.DeleteOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.DeleteOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "DeleteOperation", "fullName": "google.longrunning.Operations.DeleteOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 51, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_DeleteProcess_sync", "title": "datalineage DeleteProcess Sample", "description": "DeleteProcess deletes the process with the specified name.", "file": "Client/DeleteProcess/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Client.DeleteProcess", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.DeleteProcessRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteProcessOperation", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "DeleteProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcess", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_DeleteRun_sync", "title": "datalineage DeleteRun Sample", "description": "DeleteRun deletes the run with the specified name.", "file": "Client/DeleteRun/main.go", "language": "GO", "clientMethod": { "shortName": "DeleteRun", "fullName": "google.cloud.datacatalog.lineage.v1.Client.DeleteRun", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.DeleteRunRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "DeleteRunOperation", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "DeleteRun", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteRun", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 56, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_GetLineageEvent_sync", "title": "datalineage GetLineageEvent Sample", "description": "GetLineageEvent gets details of a specified lineage event.", "file": "Client/GetLineageEvent/main.go", "language": "GO", "clientMethod": { "shortName": "GetLineageEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Client.GetLineageEvent", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.GetLineageEventRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.LineageEvent", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "GetLineageEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEvent", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_GetOperation_sync", "title": "datalineage GetOperation Sample", "description": "GetOperation is a utility method from google.longrunning.Operations.", "file": "Client/GetOperation/main.go", "language": "GO", "clientMethod": { "shortName": "GetOperation", "fullName": "google.cloud.datacatalog.lineage.v1.Client.GetOperation", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.GetOperationRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*longrunningpb.Operation", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "GetOperation", "fullName": "google.longrunning.Operations.GetOperation", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_GetProcess_sync", "title": "datalineage GetProcess Sample", "description": "GetProcess gets the details of the specified process.", "file": "Client/GetProcess/main.go", "language": "GO", "clientMethod": { "shortName": "GetProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Client.GetProcess", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.GetProcessRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.Process", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "GetProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetProcess", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_GetRun_sync", "title": "datalineage GetRun Sample", "description": "GetRun gets the details of the specified run.", "file": "Client/GetRun/main.go", "language": "GO", "clientMethod": { "shortName": "GetRun", "fullName": "google.cloud.datacatalog.lineage.v1.Client.GetRun", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.GetRunRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.Run", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "GetRun", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetRun", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_ListLineageEvents_sync", "title": "datalineage ListLineageEvents Sample", "description": "ListLineageEvents lists lineage events in the given project and location. The list order is\nnot defined.", "file": "Client/ListLineageEvents/main.go", "language": "GO", "clientMethod": { "shortName": "ListLineageEvents", "fullName": "google.cloud.datacatalog.lineage.v1.Client.ListLineageEvents", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.ListLineageEventsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "LineageEventIterator", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "ListLineageEvents", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEvents", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_ListOperations_sync", "title": "datalineage ListOperations Sample", "description": "ListOperations is a utility method from google.longrunning.Operations.", "file": "Client/ListOperations/main.go", "language": "GO", "clientMethod": { "shortName": "ListOperations", "fullName": "google.cloud.datacatalog.lineage.v1.Client.ListOperations", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "longrunningpb.ListOperationsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "OperationIterator", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "ListOperations", "fullName": "google.longrunning.Operations.ListOperations", "service": { "shortName": "Operations", "fullName": "google.longrunning.Operations" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_ListProcesses_sync", "title": "datalineage ListProcesses Sample", "description": "ListProcesses list processes in the given project and location. List order is descending\nby insertion time.", "file": "Client/ListProcesses/main.go", "language": "GO", "clientMethod": { "shortName": "ListProcesses", "fullName": "google.cloud.datacatalog.lineage.v1.Client.ListProcesses", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.ListProcessesRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "ProcessIterator", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "ListProcesses", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListProcesses", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_ListRuns_sync", "title": "datalineage ListRuns Sample", "description": "ListRuns lists runs in the given project and location. List order is descending by\n`start_time`.", "file": "Client/ListRuns/main.go", "language": "GO", "clientMethod": { "shortName": "ListRuns", "fullName": "google.cloud.datacatalog.lineage.v1.Client.ListRuns", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.ListRunsRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "RunIterator", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "ListRuns", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListRuns", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_sync", "title": "datalineage ProcessOpenLineageRunEvent Sample", "description": "ProcessOpenLineageRunEvent creates new lineage events together with their parents: process and run.\nUpdates the process and run if they already exist.\nMapped from Open Lineage specification: \nhttps: //github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.", "file": "Client/ProcessOpenLineageRunEvent/main.go", "language": "GO", "clientMethod": { "shortName": "ProcessOpenLineageRunEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Client.ProcessOpenLineageRunEvent", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.ProcessOpenLineageRunEventRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.ProcessOpenLineageRunEventResponse", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "ProcessOpenLineageRunEvent", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ProcessOpenLineageRunEvent", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_SearchLinks_sync", "title": "datalineage SearchLinks Sample", "description": "SearchLinks retrieve a list of links connected to a specific asset.\nLinks represent the data flow between **source** (upstream)\nand **target** (downstream) assets in transformation pipelines.\nLinks are stored in the same project as the Lineage Events that create\nthem.\n\nYou can retrieve links in every project where you have the\n`datalineage.events.get` permission. The project provided in the URL\nis used for Billing and Quota.", "file": "Client/SearchLinks/main.go", "language": "GO", "clientMethod": { "shortName": "SearchLinks", "fullName": "google.cloud.datacatalog.lineage.v1.Client.SearchLinks", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.SearchLinksRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "LinkIterator", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "SearchLinks", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 66, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_UpdateProcess_sync", "title": "datalineage UpdateProcess Sample", "description": "UpdateProcess updates a process.", "file": "Client/UpdateProcess/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Client.UpdateProcess", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.UpdateProcessRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.Process", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "UpdateProcess", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcess", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] }, { "regionTag": "datalineage_v1_generated_Lineage_UpdateRun_sync", "title": "datalineage UpdateRun Sample", "description": "UpdateRun updates a run.", "file": "Client/UpdateRun/main.go", "language": "GO", "clientMethod": { "shortName": "UpdateRun", "fullName": "google.cloud.datacatalog.lineage.v1.Client.UpdateRun", "parameters": [ { "type": "context.Context", "name": "ctx" }, { "type": "lineagepb.UpdateRunRequest", "name": "req" }, { "type": "...gax.CallOption", "name": "opts" } ], "resultType": "*lineagepb.Run", "client": { "shortName": "Client", "fullName": "google.cloud.datacatalog.lineage.v1.Client" }, "method": { "shortName": "UpdateRun", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateRun", "service": { "shortName": "Lineage", "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" } } }, "origin": "API_DEFINITION", "segments": [ { "start": 18, "end": 53, "type": "FULL" } ] } ] }