1919
2020from google .protobuf import field_mask_pb2 # type: ignore
2121from google .protobuf import timestamp_pb2 # type: ignore
22+ from google .rpc import code_pb2 # type: ignore
2223import proto # type: ignore
2324
2425__protobuf__ = proto .module (
2930 "DirectoryStripeLevel" ,
3031 "DeploymentType" ,
3132 "Instance" ,
33+ "TransferMetadataOptions" ,
3234 "ListInstancesRequest" ,
3335 "ListInstancesResponse" ,
3436 "GetInstanceRequest" ,
4345 "ImportDataRequest" ,
4446 "ExportDataRequest" ,
4547 "ImportDataResponse" ,
48+ "TransferErrorLogEntry" ,
49+ "TransferErrorSummary" ,
4650 "ImportDataMetadata" ,
4751 "ExportDataResponse" ,
4852 "ExportDataMetadata" ,
@@ -157,8 +161,8 @@ class Instance(proto.Message):
157161 between 12000 and 100000, in multiples of 4000;
158162 e.g., 12000, 16000, 20000, ...
159163 daos_version (str):
160- Output only. The version of DAOS software
161- running in the instance.
164+ Output only. Deprecated 'daos_version' field. Output only.
165+ The version of DAOS software running in the instance.
162166 access_points (MutableSequence[str]):
163167 Output only. A list of IPv4 addresses used
164168 for client side configuration.
@@ -178,7 +182,8 @@ class Instance(proto.Message):
178182 and contains the value currently used by the
179183 service.
180184 file_stripe_level (google.cloud.parallelstore_v1beta.types.FileStripeLevel):
181- Optional. Stripe level for files. Allowed values are:
185+ Optional. Immutable. Stripe level for files. Allowed values
186+ are:
182187
183188 - ``FILE_STRIPE_LEVEL_MIN``: offers the best performance
184189 for small size files.
@@ -187,7 +192,8 @@ class Instance(proto.Message):
187192 - ``FILE_STRIPE_LEVEL_MAX``: higher throughput performance
188193 for larger files.
189194 directory_stripe_level (google.cloud.parallelstore_v1beta.types.DirectoryStripeLevel):
190- Optional. Stripe level for directories. Allowed values are:
195+ Optional. Immutable. Stripe level for directories. Allowed
196+ values are:
191197
192198 - ``DIRECTORY_STRIPE_LEVEL_MIN``: recommended when
193199 directories contain a small number of files.
@@ -197,8 +203,8 @@ class Instance(proto.Message):
197203 - ``DIRECTORY_STRIPE_LEVEL_MAX``: recommended for
198204 directories with a large number of files.
199205 deployment_type (google.cloud.parallelstore_v1beta.types.DeploymentType):
200- Optional. The deployment type of the instance. Allowed
201- values are:
206+ Optional. Immutable. The deployment type of the instance.
207+ Allowed values are:
202208
203209 - ``SCRATCH``: the instance is a scratch instance.
204210 - ``PERSISTENT``: the instance is a persistent instance.
@@ -220,13 +226,17 @@ class State(proto.Enum):
220226 The instance is not usable.
221227 UPGRADING (5):
222228 The instance is being upgraded.
229+ REPAIRING (6):
230+ The instance is being repaired. This should only be used by
231+ instances using the ``PERSISTENT`` deployment type.
223232 """
224233 STATE_UNSPECIFIED = 0
225234 CREATING = 1
226235 ACTIVE = 2
227236 DELETING = 3
228237 FAILED = 4
229238 UPGRADING = 5
239+ REPAIRING = 6
230240
231241 name : str = proto .Field (
232242 proto .STRING ,
@@ -297,6 +307,82 @@ class State(proto.Enum):
297307 )
298308
299309
310+ class TransferMetadataOptions (proto .Message ):
311+ r"""Transfer metadata options for the instance.
312+
313+ Attributes:
314+ uid (google.cloud.parallelstore_v1beta.types.TransferMetadataOptions.Uid):
315+ Optional. The UID preservation behavior.
316+ gid (google.cloud.parallelstore_v1beta.types.TransferMetadataOptions.Gid):
317+ Optional. The GID preservation behavior.
318+ mode (google.cloud.parallelstore_v1beta.types.TransferMetadataOptions.Mode):
319+ Optional. The mode preservation behavior.
320+ """
321+
322+ class Uid (proto .Enum ):
323+ r"""The UID perservation behavior.
324+
325+ Values:
326+ UID_UNSPECIFIED (0):
327+ default is UID_NUMBER_PRESERVE.
328+ UID_SKIP (1):
329+ Do not preserve UID during a transfer job.
330+ UID_NUMBER_PRESERVE (2):
331+ Preserve UID that is in number format during
332+ a transfer job.
333+ """
334+ UID_UNSPECIFIED = 0
335+ UID_SKIP = 1
336+ UID_NUMBER_PRESERVE = 2
337+
338+ class Gid (proto .Enum ):
339+ r"""The GID preservation behavior.
340+
341+ Values:
342+ GID_UNSPECIFIED (0):
343+ default is GID_NUMBER_PRESERVE.
344+ GID_SKIP (1):
345+ Do not preserve GID during a transfer job.
346+ GID_NUMBER_PRESERVE (2):
347+ Preserve GID that is in number format during
348+ a transfer job.
349+ """
350+ GID_UNSPECIFIED = 0
351+ GID_SKIP = 1
352+ GID_NUMBER_PRESERVE = 2
353+
354+ class Mode (proto .Enum ):
355+ r"""The mode preservation behavior.
356+
357+ Values:
358+ MODE_UNSPECIFIED (0):
359+ default is MODE_PRESERVE.
360+ MODE_SKIP (1):
361+ Do not preserve mode during a transfer job.
362+ MODE_PRESERVE (2):
363+ Preserve mode during a transfer job.
364+ """
365+ MODE_UNSPECIFIED = 0
366+ MODE_SKIP = 1
367+ MODE_PRESERVE = 2
368+
369+ uid : Uid = proto .Field (
370+ proto .ENUM ,
371+ number = 1 ,
372+ enum = Uid ,
373+ )
374+ gid : Gid = proto .Field (
375+ proto .ENUM ,
376+ number = 2 ,
377+ enum = Gid ,
378+ )
379+ mode : Mode = proto .Field (
380+ proto .ENUM ,
381+ number = 3 ,
382+ enum = Mode ,
383+ )
384+
385+
300386class ListInstancesRequest (proto .Message ):
301387 r"""List instances request.
302388
@@ -714,6 +800,9 @@ class ImportDataRequest(proto.Message):
714800
715801 If unspecified, the Parallelstore service agent is used:
716802 ``service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com``
803+ metadata_options (google.cloud.parallelstore_v1beta.types.TransferMetadataOptions):
804+ Optional. The transfer metadata options for
805+ the import data.
717806 """
718807
719808 source_gcs_bucket : "SourceGcsBucket" = proto .Field (
@@ -740,6 +829,11 @@ class ImportDataRequest(proto.Message):
740829 proto .STRING ,
741830 number = 5 ,
742831 )
832+ metadata_options : "TransferMetadataOptions" = proto .Field (
833+ proto .MESSAGE ,
834+ number = 6 ,
835+ message = "TransferMetadataOptions" ,
836+ )
743837
744838
745839class ExportDataRequest (proto .Message ):
@@ -789,6 +883,9 @@ class ExportDataRequest(proto.Message):
789883
790884 If unspecified, the Parallelstore service agent is used:
791885 ``service-<PROJECT_NUMBER>@gcp-sa-parallelstore.iam.gserviceaccount.com``
886+ metadata_options (google.cloud.parallelstore_v1beta.types.TransferMetadataOptions):
887+ Optional. The metadata options for the export
888+ data.
792889 """
793890
794891 source_parallelstore : "SourceParallelstore" = proto .Field (
@@ -815,12 +912,71 @@ class ExportDataRequest(proto.Message):
815912 proto .STRING ,
816913 number = 5 ,
817914 )
915+ metadata_options : "TransferMetadataOptions" = proto .Field (
916+ proto .MESSAGE ,
917+ number = 6 ,
918+ message = "TransferMetadataOptions" ,
919+ )
818920
819921
820922class ImportDataResponse (proto .Message ):
821923 r"""The response to a request to import data to Parallelstore."""
822924
823925
926+ class TransferErrorLogEntry (proto .Message ):
927+ r"""An entry describing an error that has occurred.
928+
929+ Attributes:
930+ uri (str):
931+ A URL that refers to the target (a data
932+ source, a data sink, or an object) with which
933+ the error is associated.
934+ error_details (MutableSequence[str]):
935+ A list of messages that carry the error
936+ details.
937+ """
938+
939+ uri : str = proto .Field (
940+ proto .STRING ,
941+ number = 1 ,
942+ )
943+ error_details : MutableSequence [str ] = proto .RepeatedField (
944+ proto .STRING ,
945+ number = 2 ,
946+ )
947+
948+
949+ class TransferErrorSummary (proto .Message ):
950+ r"""A summary of errors by error code, plus a count and sample
951+ error log entries.
952+
953+ Attributes:
954+ error_code (google.rpc.code_pb2.Code):
955+ One of the error codes that caused the
956+ transfer failure.
957+ error_count (int):
958+ Count of this type of error.
959+ error_log_entries (MutableSequence[google.cloud.parallelstore_v1beta.types.TransferErrorLogEntry]):
960+ A list of messages that carry the error
961+ details.
962+ """
963+
964+ error_code : code_pb2 .Code = proto .Field (
965+ proto .ENUM ,
966+ number = 1 ,
967+ enum = code_pb2 .Code ,
968+ )
969+ error_count : int = proto .Field (
970+ proto .INT64 ,
971+ number = 2 ,
972+ )
973+ error_log_entries : MutableSequence ["TransferErrorLogEntry" ] = proto .RepeatedField (
974+ proto .MESSAGE ,
975+ number = 4 ,
976+ message = "TransferErrorLogEntry" ,
977+ )
978+
979+
824980class ImportDataMetadata (proto .Message ):
825981 r"""Metadata related to the data import operation.
826982
@@ -997,6 +1153,10 @@ class TransferOperationMetadata(proto.Message):
9971153 operation.
9981154 transfer_type (google.cloud.parallelstore_v1beta.types.TransferType):
9991155 Output only. The type of transfer occurring.
1156+ error_summary (MutableSequence[google.cloud.parallelstore_v1beta.types.TransferErrorSummary]):
1157+ Output only. List of files that failed to be
1158+ transferred. This list will have a maximum size
1159+ of 5 elements.
10001160 """
10011161
10021162 source_parallelstore : "SourceParallelstore" = proto .Field (
@@ -1033,6 +1193,11 @@ class TransferOperationMetadata(proto.Message):
10331193 number = 6 ,
10341194 enum = "TransferType" ,
10351195 )
1196+ error_summary : MutableSequence ["TransferErrorSummary" ] = proto .RepeatedField (
1197+ proto .MESSAGE ,
1198+ number = 13 ,
1199+ message = "TransferErrorSummary" ,
1200+ )
10361201
10371202
10381203class TransferCounters (proto .Message ):
@@ -1064,6 +1229,12 @@ class TransferCounters(proto.Message):
10641229 bytes_copied (int):
10651230 Bytes that are copied to the data
10661231 destination.
1232+ objects_failed (int):
1233+ Objects that are failed to write to the data
1234+ destination.
1235+ bytes_failed (int):
1236+ Bytes that are failed to write to the data
1237+ destination.
10671238 """
10681239
10691240 objects_found : int = proto .Field (
@@ -1090,6 +1261,14 @@ class TransferCounters(proto.Message):
10901261 proto .INT64 ,
10911262 number = 6 ,
10921263 )
1264+ objects_failed : int = proto .Field (
1265+ proto .INT64 ,
1266+ number = 7 ,
1267+ )
1268+ bytes_failed : int = proto .Field (
1269+ proto .INT64 ,
1270+ number = 8 ,
1271+ )
10931272
10941273
10951274__all__ = tuple (sorted (__protobuf__ .manifest ))
0 commit comments