Skip to content

Commit 24c5ee0

Browse files
Google APIscopybara-github
authored andcommitted
feat: add file_stripe_level and directory_stripe_level fields to Instance
PiperOrigin-RevId: 658160286
1 parent 7b2b605 commit 24c5ee0

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

google/cloud/parallelstore/v1beta/parallelstore.proto

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,36 @@ enum TransferType {
160160
EXPORT = 2;
161161
}
162162

163+
// Represents the striping options for files.
164+
enum FileStripeLevel {
165+
// Default file striping
166+
FILE_STRIPE_LEVEL_UNSPECIFIED = 0;
167+
168+
// Minimum file striping
169+
FILE_STRIPE_LEVEL_MIN = 1;
170+
171+
// Medium file striping
172+
FILE_STRIPE_LEVEL_BALANCED = 2;
173+
174+
// Maximum file striping
175+
FILE_STRIPE_LEVEL_MAX = 3;
176+
}
177+
178+
// Represents the striping options for directories.
179+
enum DirectoryStripeLevel {
180+
// Default directory striping
181+
DIRECTORY_STRIPE_LEVEL_UNSPECIFIED = 0;
182+
183+
// Minimum directory striping
184+
DIRECTORY_STRIPE_LEVEL_MIN = 1;
185+
186+
// Medium directory striping
187+
DIRECTORY_STRIPE_LEVEL_BALANCED = 2;
188+
189+
// Maximum directory striping
190+
DIRECTORY_STRIPE_LEVEL_MAX = 3;
191+
}
192+
163193
// A Parallelstore instance.
164194
message Instance {
165195
option (google.api.resource) = {
@@ -272,6 +302,18 @@ message Instance {
272302
(google.api.field_behavior) = OUTPUT_ONLY,
273303
(google.api.resource_reference) = { type: "compute.googleapis.com/Address" }
274304
];
305+
306+
// Optional. Stripe level for files.
307+
// MIN better suited for small size files.
308+
// MAX higher throughput performance for larger files.
309+
FileStripeLevel file_stripe_level = 15
310+
[(google.api.field_behavior) = OPTIONAL];
311+
312+
// Optional. Stripe level for directories.
313+
// MIN when directory has a small number of files.
314+
// MAX when directory has a large number of files.
315+
DirectoryStripeLevel directory_stripe_level = 16
316+
[(google.api.field_behavior) = OPTIONAL];
275317
}
276318

277319
// Message for requesting list of Instances

0 commit comments

Comments
 (0)