Skip to content

Commit 2f57a44

Browse files
fix!: [google-cloud-parallelstore] An existing field create_time is removed from message .google.cloud.parallelstore.v1beta.TransferOperationMetadata (#12700)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE fix!: [google-cloud-parallelstore] An existing field `create_time` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` fix!: An existing field `end_time` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` fix!: An existing field `source` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` fix!: An existing field `destination` is removed from message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat: A new field `create_time` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `end_time` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `target` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `verb` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `status_message` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `requested_cancellation` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `api_version` is added to message `.google.cloud.parallelstore.v1beta.ImportDataMetadata` feat: A new field `create_time` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `end_time` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `target` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `verb` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `status_message` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `requested_cancellation` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `api_version` is added to message `.google.cloud.parallelstore.v1beta.ExportDataMetadata` feat: A new field `source_parallelstore` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat: A new field `source_gcs_bucket` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat: A new field `destination_gcs_bucket` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` feat: A new field `destination_parallelstore` is added to message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` docs: A comment for field `counters` in message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` is changed docs: A comment for field `transfer_type` in message `.google.cloud.parallelstore.v1beta.TransferOperationMetadata` is changed END_COMMIT_OVERRIDE PiperOrigin-RevId: 634007169 Source-Link: googleapis/googleapis@07dfcda Source-Link: googleapis/googleapis-gen@afd2967 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBhcmFsbGVsc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImFmZDI5NjdmY2NhNDMwYWQ0NmYzMjkxOTliN2JhNTU2OGEyZGZkYTcifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent b2853c6 commit 2f57a44

1 file changed

Lines changed: 154 additions & 28 deletions

File tree

  • packages/google-cloud-parallelstore/google/cloud/parallelstore_v1beta/types

packages/google-cloud-parallelstore/google/cloud/parallelstore_v1beta/types/parallelstore.py

Lines changed: 154 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -724,13 +724,67 @@ class ImportDataMetadata(proto.Message):
724724
operation_metadata (google.cloud.parallelstore_v1beta.types.TransferOperationMetadata):
725725
Contains the data transfer operation
726726
metadata.
727+
create_time (google.protobuf.timestamp_pb2.Timestamp):
728+
Output only. The time the operation was
729+
created.
730+
end_time (google.protobuf.timestamp_pb2.Timestamp):
731+
Output only. The time the operation finished
732+
running.
733+
target (str):
734+
Output only. Server-defined resource path for
735+
the target of the operation.
736+
verb (str):
737+
Output only. Name of the verb executed by the
738+
operation.
739+
status_message (str):
740+
Output only. Human-readable status of the
741+
operation, if any.
742+
requested_cancellation (bool):
743+
Output only. Identifies whether the user has requested
744+
cancellation of the operation. Operations that have
745+
successfully been cancelled have [Operation.error][] value
746+
with a [google.rpc.Status.code][google.rpc.Status.code] of
747+
1, corresponding to ``Code.CANCELLED``.
748+
api_version (str):
749+
Output only. API version used to start the
750+
operation.
727751
"""
728752

729753
operation_metadata: "TransferOperationMetadata" = proto.Field(
730754
proto.MESSAGE,
731755
number=1,
732756
message="TransferOperationMetadata",
733757
)
758+
create_time: timestamp_pb2.Timestamp = proto.Field(
759+
proto.MESSAGE,
760+
number=2,
761+
message=timestamp_pb2.Timestamp,
762+
)
763+
end_time: timestamp_pb2.Timestamp = proto.Field(
764+
proto.MESSAGE,
765+
number=3,
766+
message=timestamp_pb2.Timestamp,
767+
)
768+
target: str = proto.Field(
769+
proto.STRING,
770+
number=4,
771+
)
772+
verb: str = proto.Field(
773+
proto.STRING,
774+
number=5,
775+
)
776+
status_message: str = proto.Field(
777+
proto.STRING,
778+
number=6,
779+
)
780+
requested_cancellation: bool = proto.Field(
781+
proto.BOOL,
782+
number=7,
783+
)
784+
api_version: str = proto.Field(
785+
proto.STRING,
786+
number=8,
787+
)
734788

735789

736790
class ExportDataResponse(proto.Message):
@@ -747,60 +801,132 @@ class ExportDataMetadata(proto.Message):
747801
operation_metadata (google.cloud.parallelstore_v1beta.types.TransferOperationMetadata):
748802
Contains the data transfer operation
749803
metadata.
804+
create_time (google.protobuf.timestamp_pb2.Timestamp):
805+
Output only. The time the operation was
806+
created.
807+
end_time (google.protobuf.timestamp_pb2.Timestamp):
808+
Output only. The time the operation finished
809+
running.
810+
target (str):
811+
Output only. Server-defined resource path for
812+
the target of the operation.
813+
verb (str):
814+
Output only. Name of the verb executed by the
815+
operation.
816+
status_message (str):
817+
Output only. Human-readable status of the
818+
operation, if any.
819+
requested_cancellation (bool):
820+
Output only. Identifies whether the user has requested
821+
cancellation of the operation. Operations that have
822+
successfully been cancelled have [Operation.error][] value
823+
with a [google.rpc.Status.code][google.rpc.Status.code] of
824+
1, corresponding to ``Code.CANCELLED``.
825+
api_version (str):
826+
Output only. API version used to start the
827+
operation.
750828
"""
751829

752830
operation_metadata: "TransferOperationMetadata" = proto.Field(
753831
proto.MESSAGE,
754832
number=1,
755833
message="TransferOperationMetadata",
756834
)
835+
create_time: timestamp_pb2.Timestamp = proto.Field(
836+
proto.MESSAGE,
837+
number=2,
838+
message=timestamp_pb2.Timestamp,
839+
)
840+
end_time: timestamp_pb2.Timestamp = proto.Field(
841+
proto.MESSAGE,
842+
number=3,
843+
message=timestamp_pb2.Timestamp,
844+
)
845+
target: str = proto.Field(
846+
proto.STRING,
847+
number=4,
848+
)
849+
verb: str = proto.Field(
850+
proto.STRING,
851+
number=5,
852+
)
853+
status_message: str = proto.Field(
854+
proto.STRING,
855+
number=6,
856+
)
857+
requested_cancellation: bool = proto.Field(
858+
proto.BOOL,
859+
number=7,
860+
)
861+
api_version: str = proto.Field(
862+
proto.STRING,
863+
number=8,
864+
)
757865

758866

759867
class TransferOperationMetadata(proto.Message):
760868
r"""Represents the metadata of the long-running operation.
761869
870+
This message has `oneof`_ fields (mutually exclusive fields).
871+
For each oneof, at most one member field can be set at the same time.
872+
Setting any member of the oneof automatically clears all other
873+
members.
874+
875+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
876+
762877
Attributes:
763-
create_time (google.protobuf.timestamp_pb2.Timestamp):
764-
Output only. CCFE supplied fields BEGIN
765-
The time the operation was created.
766-
end_time (google.protobuf.timestamp_pb2.Timestamp):
767-
Output only. The time the operation finished
768-
running.
878+
source_parallelstore (google.cloud.parallelstore_v1beta.types.SourceParallelstore):
879+
Output only. Parallelstore source.
880+
881+
This field is a member of `oneof`_ ``source``.
882+
source_gcs_bucket (google.cloud.parallelstore_v1beta.types.SourceGcsBucket):
883+
Output only. Cloud Storage source.
884+
885+
This field is a member of `oneof`_ ``source``.
886+
destination_gcs_bucket (google.cloud.parallelstore_v1beta.types.DestinationGcsBucket):
887+
Output only. Cloud Storage destination.
888+
889+
This field is a member of `oneof`_ ``destination``.
890+
destination_parallelstore (google.cloud.parallelstore_v1beta.types.DestinationParallelstore):
891+
Output only. Parallelstore destination.
892+
893+
This field is a member of `oneof`_ ``destination``.
769894
counters (google.cloud.parallelstore_v1beta.types.TransferCounters):
770-
Information about the progress of the
771-
transfer operation.
772-
source (str):
773-
Required. The origin of the data transfer.
774-
destination (str):
775-
Required. The destination of the data
776-
transfer.
895+
Output only. Information about the progress
896+
of the transfer operation.
777897
transfer_type (google.cloud.parallelstore_v1beta.types.TransferType):
778-
The type of transfer occurring.
898+
Output only. The type of transfer occurring.
779899
"""
780900

781-
create_time: timestamp_pb2.Timestamp = proto.Field(
901+
source_parallelstore: "SourceParallelstore" = proto.Field(
782902
proto.MESSAGE,
783-
number=1,
784-
message=timestamp_pb2.Timestamp,
903+
number=7,
904+
oneof="source",
905+
message="SourceParallelstore",
785906
)
786-
end_time: timestamp_pb2.Timestamp = proto.Field(
907+
source_gcs_bucket: "SourceGcsBucket" = proto.Field(
787908
proto.MESSAGE,
788-
number=2,
789-
message=timestamp_pb2.Timestamp,
909+
number=8,
910+
oneof="source",
911+
message="SourceGcsBucket",
912+
)
913+
destination_gcs_bucket: "DestinationGcsBucket" = proto.Field(
914+
proto.MESSAGE,
915+
number=9,
916+
oneof="destination",
917+
message="DestinationGcsBucket",
918+
)
919+
destination_parallelstore: "DestinationParallelstore" = proto.Field(
920+
proto.MESSAGE,
921+
number=10,
922+
oneof="destination",
923+
message="DestinationParallelstore",
790924
)
791925
counters: "TransferCounters" = proto.Field(
792926
proto.MESSAGE,
793927
number=3,
794928
message="TransferCounters",
795929
)
796-
source: str = proto.Field(
797-
proto.STRING,
798-
number=4,
799-
)
800-
destination: str = proto.Field(
801-
proto.STRING,
802-
number=5,
803-
)
804930
transfer_type: "TransferType" = proto.Field(
805931
proto.ENUM,
806932
number=6,

0 commit comments

Comments
 (0)