Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
add comment to request/response
Browse files Browse the repository at this point in the history
  • Loading branch information
milton0825 committed Apr 21, 2021
1 parent edfcb3e commit 2f3e4c4
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 22 deletions.
4 changes: 4 additions & 0 deletions gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions gen/pb-java/datacatalog/Datacatalog.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 26 additions & 22 deletions gen/pb-protodoc/flyteidl/datacatalog/datacatalog.proto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,9 @@ reservation_status
datacatalog.ExtendReservationRequest
------------------------------------

`[datacatalog.ExtendReservationRequest proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L211>`_
`[datacatalog.ExtendReservationRequest proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L212>`_

Request to extend reservation

.. code-block:: json
Expand Down Expand Up @@ -525,8 +526,9 @@ owner_id
datacatalog.ExtendReservationResponse
-------------------------------------

`[datacatalog.ExtendReservationResponse proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L217>`_
`[datacatalog.ExtendReservationResponse proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L219>`_

Response to extend reservation

.. code-block:: json
Expand All @@ -540,8 +542,9 @@ datacatalog.ExtendReservationResponse
datacatalog.ReleaseReservationRequest
-------------------------------------

`[datacatalog.ReleaseReservationRequest proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L221>`_
`[datacatalog.ReleaseReservationRequest proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L224>`_

Request to release reservation

.. code-block:: json
Expand Down Expand Up @@ -573,8 +576,9 @@ owner_id
datacatalog.ReleaseReservationResponse
--------------------------------------

`[datacatalog.ReleaseReservationResponse proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L227>`_
`[datacatalog.ReleaseReservationResponse proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L231>`_

Response to release reservation

.. code-block:: json
Expand All @@ -588,7 +592,7 @@ datacatalog.ReleaseReservationResponse
datacatalog.Dataset
-------------------

`[datacatalog.Dataset proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L234>`_
`[datacatalog.Dataset proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L238>`_


Dataset message. It is uniquely identified by DatasetID.
Expand Down Expand Up @@ -623,7 +627,7 @@ partitionKeys
datacatalog.Partition
---------------------

`[datacatalog.Partition proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L243>`_
`[datacatalog.Partition proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L247>`_


An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair
Expand Down Expand Up @@ -652,7 +656,7 @@ value
datacatalog.DatasetID
---------------------

`[datacatalog.DatasetID proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L251>`_
`[datacatalog.DatasetID proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L255>`_


DatasetID message that is composed of several string fields.
Expand Down Expand Up @@ -699,7 +703,7 @@ UUID
datacatalog.Artifact
--------------------

`[datacatalog.Artifact proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L262>`_
`[datacatalog.Artifact proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L266>`_


Artifact message. It is composed of several string fields.
Expand Down Expand Up @@ -758,7 +762,7 @@ created_at
datacatalog.ArtifactData
------------------------

`[datacatalog.ArtifactData proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L275>`_
`[datacatalog.ArtifactData proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L279>`_


ArtifactData that belongs to an artifact
Expand Down Expand Up @@ -787,7 +791,7 @@ value
datacatalog.Tag
---------------

`[datacatalog.Tag proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L284>`_
`[datacatalog.Tag proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L288>`_


Tag message that is unique to a Dataset. It is associated to a single artifact and
Expand Down Expand Up @@ -823,7 +827,7 @@ dataset
datacatalog.Metadata
--------------------

`[datacatalog.Metadata proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L293>`_
`[datacatalog.Metadata proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L297>`_


Metadata representation for artifacts and datasets
Expand All @@ -846,7 +850,7 @@ key_map
datacatalog.FilterExpression
----------------------------

`[datacatalog.FilterExpression proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L298>`_
`[datacatalog.FilterExpression proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L302>`_

Filter expression that is composed of a combination of single filters

Expand All @@ -868,7 +872,7 @@ filters
datacatalog.SinglePropertyFilter
--------------------------------

`[datacatalog.SinglePropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L303>`_
`[datacatalog.SinglePropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L307>`_

A single property to filter on.

Expand Down Expand Up @@ -925,7 +929,7 @@ operator
Enum datacatalog.SinglePropertyFilter.ComparisonOperator
--------------------------------------------------------

`[datacatalog.SinglePropertyFilter.ComparisonOperator proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L312>`_
`[datacatalog.SinglePropertyFilter.ComparisonOperator proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L316>`_

as use-cases come up we can add more operators, ex: gte, like, not eq etc.

Expand All @@ -940,7 +944,7 @@ EQUALS
datacatalog.ArtifactPropertyFilter
----------------------------------

`[datacatalog.ArtifactPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L321>`_
`[datacatalog.ArtifactPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L325>`_

Artifact properties we can filter by

Expand All @@ -964,7 +968,7 @@ artifact_id
datacatalog.TagPropertyFilter
-----------------------------

`[datacatalog.TagPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L329>`_
`[datacatalog.TagPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L333>`_

Tag properties we can filter by

Expand All @@ -987,7 +991,7 @@ tag_name
datacatalog.PartitionPropertyFilter
-----------------------------------

`[datacatalog.PartitionPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L336>`_
`[datacatalog.PartitionPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L340>`_

Partition properties we can filter by

Expand All @@ -1010,7 +1014,7 @@ key_val
datacatalog.KeyValuePair
------------------------

`[datacatalog.KeyValuePair proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L342>`_
`[datacatalog.KeyValuePair proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L346>`_


.. code-block:: json
Expand All @@ -1037,7 +1041,7 @@ value
datacatalog.DatasetPropertyFilter
---------------------------------

`[datacatalog.DatasetPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L348>`_
`[datacatalog.DatasetPropertyFilter proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L352>`_

Dataset properties we can filter by

Expand Down Expand Up @@ -1089,7 +1093,7 @@ version
datacatalog.PaginationOptions
-----------------------------

`[datacatalog.PaginationOptions proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L358>`_
`[datacatalog.PaginationOptions proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L362>`_

Pagination options for making list requests

Expand Down Expand Up @@ -1132,7 +1136,7 @@ sortOrder
Enum datacatalog.PaginationOptions.SortOrder
--------------------------------------------

`[datacatalog.PaginationOptions.SortOrder proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L372>`_
`[datacatalog.PaginationOptions.SortOrder proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L376>`_


.. _api_enum_value_datacatalog.PaginationOptions.SortOrder.DESCENDING:
Expand All @@ -1151,7 +1155,7 @@ ASCENDING
Enum datacatalog.PaginationOptions.SortKey
------------------------------------------

`[datacatalog.PaginationOptions.SortKey proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L377>`_
`[datacatalog.PaginationOptions.SortKey proto] <https://github.com/lyft/flyteidl/blob/master/protos/flyteidl/datacatalog/datacatalog.proto#L381>`_


.. _api_enum_value_datacatalog.PaginationOptions.SortKey.CREATION_TIME:
Expand Down
4 changes: 4 additions & 0 deletions protos/flyteidl/datacatalog/datacatalog.proto
Original file line number Diff line number Diff line change
Expand Up @@ -209,22 +209,26 @@ message GetOrReserveArtifactResponse {
}
}

// Request to extend reservation
message ExtendReservationRequest {
DatasetID dataset_id = 1;
string tag_name = 2;
string owner_id = 3;
}

// Response to extend reservation
message ExtendReservationResponse {

}

// Request to release reservation
message ReleaseReservationRequest {
DatasetID dataset_id = 1;
string tag_name = 2;
string owner_id = 3;
}

// Response to release reservation
message ReleaseReservationResponse {

}
Expand Down

0 comments on commit 2f3e4c4

Please sign in to comment.