示例#1
0
def sample_get_execution():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.GetExecutionRequest(name="name_value", )

    # Make the request
    response = client.get_execution(request=request)

    # Handle the response
    print(response)
def sample_create_artifact():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.CreateArtifactRequest(parent="parent_value", )

    # Make the request
    response = client.create_artifact(request=request)

    # Handle the response
    print(response)
示例#3
0
def sample_update_context():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.UpdateContextRequest()

    # Make the request
    response = client.update_context(request=request)

    # Handle the response
    print(response)
def sample_list_executions():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.ListExecutionsRequest(parent="parent_value", )

    # Make the request
    page_result = client.list_executions(request=request)

    # Handle the response
    for response in page_result:
        print(response)
示例#5
0
def sample_add_context_artifacts_and_executions():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.AddContextArtifactsAndExecutionsRequest(
        context="context_value", )

    # Make the request
    response = client.add_context_artifacts_and_executions(request=request)

    # Handle the response
    print(response)
示例#6
0
def sample_query_context_lineage_subgraph():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.QueryContextLineageSubgraphRequest(
        context="context_value", )

    # Make the request
    response = client.query_context_lineage_subgraph(request=request)

    # Handle the response
    print(response)
示例#7
0
def sample_add_context_children():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.AddContextChildrenRequest(
        context="context_value", )

    # Make the request
    response = client.add_context_children(request=request)

    # Handle the response
    print(response)
def sample_query_execution_inputs_and_outputs():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.QueryExecutionInputsAndOutputsRequest(
        execution="execution_value",
    )

    # Make the request
    response = client.query_execution_inputs_and_outputs(request=request)

    # Handle the response
    print(response)
def sample_add_execution_events():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.AddExecutionEventsRequest(
        execution="execution_value",
    )

    # Make the request
    response = client.add_execution_events(request=request)

    # Handle the response
    print(response)
示例#10
0
def sample_delete_metadata_store():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.DeleteMetadataStoreRequest(name="name_value", )

    # Make the request
    operation = client.delete_metadata_store(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)
示例#11
0
def sample_create_metadata_schema():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    metadata_schema = aiplatform_v1.MetadataSchema()
    metadata_schema.schema = "schema_value"

    request = aiplatform_v1.CreateMetadataSchemaRequest(
        parent="parent_value",
        metadata_schema=metadata_schema,
    )

    # Make the request
    response = client.create_metadata_schema(request=request)

    # Handle the response
    print(response)
示例#12
0
def sample_purge_executions():
    # Create a client
    client = aiplatform_v1.MetadataServiceClient()

    # Initialize request argument(s)
    request = aiplatform_v1.PurgeExecutionsRequest(
        parent="parent_value",
        filter="filter_value",
    )

    # Make the request
    operation = client.purge_executions(request=request)

    print("Waiting for operation to complete...")

    response = operation.result()

    # Handle the response
    print(response)