Skip to content

Commit 02f73f5

Browse files
Google APIscopybara-github
authored andcommitted
feat: add transfer metadata options proto definition
docs: update tickets component number PiperOrigin-RevId: 839132650
1 parent 4d2bfee commit 02f73f5

File tree

2 files changed

+71
-15
lines changed

2 files changed

+71
-15
lines changed

google/cloud/parallelstore/v1/parallelstore.proto

Lines changed: 70 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ message Instance {
270270
(google.api.field_behavior) = REQUIRED
271271
];
272272

273-
// Output only. Deprecated 'daos_version' field.
274-
// Output only. The version of DAOS software running in the instance.
273+
// Output only. Deprecated: The version of DAOS software running in the
274+
// instance.
275275
string daos_version = 9
276276
[deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
277277

@@ -343,6 +343,54 @@ message Instance {
343343
];
344344
}
345345

346+
// Transfer metadata options for the instance.
347+
message TransferMetadataOptions {
348+
// The UID preservation behavior.
349+
enum Uid {
350+
// default is UID_NUMBER_PRESERVE.
351+
UID_UNSPECIFIED = 0;
352+
353+
// Do not preserve UID during a transfer job.
354+
UID_SKIP = 1;
355+
356+
// Preserve UID that is in number format during a transfer job.
357+
UID_NUMBER_PRESERVE = 2;
358+
}
359+
360+
// The GID preservation behavior.
361+
enum Gid {
362+
// default is GID_NUMBER_PRESERVE.
363+
GID_UNSPECIFIED = 0;
364+
365+
// Do not preserve GID during a transfer job.
366+
GID_SKIP = 1;
367+
368+
// Preserve GID that is in number format during a transfer job.
369+
GID_NUMBER_PRESERVE = 2;
370+
}
371+
372+
// The mode preservation behavior.
373+
enum Mode {
374+
// default is MODE_PRESERVE.
375+
MODE_UNSPECIFIED = 0;
376+
377+
// Do not preserve mode during a transfer job.
378+
MODE_SKIP = 1;
379+
380+
// Preserve mode during a transfer job.
381+
MODE_PRESERVE = 2;
382+
}
383+
384+
// Optional. The UID preservation behavior.
385+
Uid uid = 1 [(google.api.field_behavior) = OPTIONAL];
386+
387+
// Optional. The GID preservation behavior.
388+
Gid gid = 2 [(google.api.field_behavior) = OPTIONAL];
389+
390+
// Optional. The mode preservation behavior.
391+
Mode mode = 3 [(google.api.field_behavior) = OPTIONAL];
392+
}
393+
346394
// List instances request.
347395
message ListInstancesRequest {
348396
// Required. The project and location for which to retrieve instance
@@ -425,8 +473,8 @@ message CreateInstanceRequest {
425473
// ignore the request if it has already been completed. The server will
426474
// guarantee that for at least 60 minutes since the first request.
427475
//
428-
// For example, consider a situation where you make an initial request and t
429-
// he request times out. If you make the request again with the same request
476+
// For example, consider a situation where you make an initial request and
477+
// the request times out. If you make the request again with the same request
430478
// ID, the server can check if original operation with the same request ID
431479
// was received, and if so, will ignore the second request. This prevents
432480
// clients from accidentally creating duplicate commitments.
@@ -453,8 +501,8 @@ message UpdateInstanceRequest {
453501
// ignore the request if it has already been completed. The server will
454502
// guarantee that for at least 60 minutes since the first request.
455503
//
456-
// For example, consider a situation where you make an initial request and t
457-
// he request times out. If you make the request again with the same request
504+
// For example, consider a situation where you make an initial request and
505+
// the request times out. If you make the request again with the same request
458506
// ID, the server can check if original operation with the same request ID
459507
// was received, and if so, will ignore the second request. This prevents
460508
// clients from accidentally creating duplicate commitments.
@@ -479,8 +527,8 @@ message DeleteInstanceRequest {
479527
// ignore the request if it has already been completed. The server will
480528
// guarantee that for at least 60 minutes after the first request.
481529
//
482-
// For example, consider a situation where you make an initial request and t
483-
// he request times out. If you make the request again with the same request
530+
// For example, consider a situation where you make an initial request and
531+
// the request times out. If you make the request again with the same request
484532
// ID, the server can check if original operation with the same request ID
485533
// was received, and if so, will ignore the second request. This prevents
486534
// clients from accidentally creating duplicate commitments.
@@ -577,8 +625,8 @@ message ImportDataRequest {
577625
// ignore the request if it has already been completed. The server will
578626
// guarantee that for at least 60 minutes since the first request.
579627
//
580-
// For example, consider a situation where you make an initial request and t
581-
// he request times out. If you make the request again with the same request
628+
// For example, consider a situation where you make an initial request and
629+
// the request times out. If you make the request again with the same request
582630
// ID, the server can check if original operation with the same request ID
583631
// was received, and if so, will ignore the second request. This prevents
584632
// clients from accidentally creating duplicate commitments.
@@ -607,6 +655,10 @@ message ImportDataRequest {
607655
type: "iam.googleapis.com/ServiceAccount"
608656
}
609657
];
658+
659+
// Optional. The transfer metadata options for the import data.
660+
TransferMetadataOptions metadata_options = 6
661+
[(google.api.field_behavior) = OPTIONAL];
610662
}
611663

612664
// Export data from Parallelstore to Cloud Storage.
@@ -636,8 +688,8 @@ message ExportDataRequest {
636688
// ignore the request if it has already been completed. The server will
637689
// guarantee that for at least 60 minutes since the first request.
638690
//
639-
// For example, consider a situation where you make an initial request and t
640-
// he request times out. If you make the request again with the same request
691+
// For example, consider a situation where you make an initial request and
692+
// the request times out. If you make the request again with the same request
641693
// ID, the server can check if original operation with the same request ID
642694
// was received, and if so, will ignore the second request. This prevents
643695
// clients from accidentally creating duplicate commitments.
@@ -665,6 +717,10 @@ message ExportDataRequest {
665717
type: "iam.googleapis.com/ServiceAccount"
666718
}
667719
];
720+
721+
// Optional. The metadata options for the export data.
722+
TransferMetadataOptions metadata_options = 6
723+
[(google.api.field_behavior) = OPTIONAL];
668724
}
669725

670726
// The response to a request to import data to Parallelstore.
@@ -824,9 +880,9 @@ message TransferCounters {
824880
// Bytes that are copied to the data destination.
825881
int64 bytes_copied = 6;
826882

827-
// Objects that are failed to write to the data destination.
883+
// Objects that failed to be written to the data destination.
828884
int64 objects_failed = 7;
829885

830-
// Bytes that are failed to write to the data destination.
886+
// Bytes that failed to be written to the data destination.
831887
int64 bytes_failed = 8;
832888
}

google/cloud/parallelstore/v1/parallelstore_v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ authentication:
5555
https://www.googleapis.com/auth/cloud-platform
5656
5757
publishing:
58-
new_issue_uri: https://issuetracker.google.com/issues/new?component=1605177
58+
new_issue_uri: https://issuetracker.google.com/issues/new?component=1181190
5959
documentation_uri: https://cloud.google.com/parallelstore?hl=en
6060
api_short_name: parallelstore
6161
github_label: 'api: parallelstore'

0 commit comments

Comments
 (0)