Skip to content

Commit a07bf82

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add a new Service Level FLEX
feat: Add Tiering Policy to Volume feat: Add backup chain bytes to BackupConfig in Volume feat: Add Location metadata support PiperOrigin-RevId: 634521970
1 parent 3cba473 commit a07bf82

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

google/cloud/netapp/v1/common.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ syntax = "proto3";
1616

1717
package google.cloud.netapp.v1;
1818

19+
import "google/api/field_behavior.proto";
20+
1921
option csharp_namespace = "Google.Cloud.NetApp.V1";
2022
option go_package = "cloud.google.com/go/netapp/apiv1/netapppb;netapppb";
2123
option java_multiple_files = true;
@@ -37,6 +39,9 @@ enum ServiceLevel {
3739

3840
// Standard service level.
3941
STANDARD = 3;
42+
43+
// Flex service level.
44+
FLEX = 4;
4045
}
4146

4247
// The volume encryption key source.
@@ -50,3 +55,11 @@ enum EncryptionType {
5055
// Customer managed encryption key, which is stored in KMS.
5156
CLOUD_KMS = 2;
5257
}
58+
59+
// Metadata for a given
60+
// [google.cloud.location.Location][google.cloud.location.Location].
61+
message LocationMetadata {
62+
// Output only. Supported service levels in a location.
63+
repeated ServiceLevel supported_service_levels = 1
64+
[(google.api.field_behavior) = OUTPUT_ONLY];
65+
}

google/cloud/netapp/v1/netapp_v1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ apis:
99
- name: google.longrunning.Operations
1010

1111
types:
12+
- name: google.cloud.netapp.v1.LocationMetadata
1213
- name: google.cloud.netapp.v1.OperationMetadata
1314

1415
documentation:

google/cloud/netapp/v1/volume.proto

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ message Volume {
383383
// Optional. List of actions that are restricted on this volume.
384384
repeated RestrictedAction restricted_actions = 31
385385
[(google.api.field_behavior) = OPTIONAL];
386+
387+
// Tiering policy for the volume.
388+
optional TieringPolicy tiering_policy = 34;
386389
}
387390

388391
// Defines the export policy for the volume.
@@ -576,4 +579,34 @@ message BackupConfig {
576579
// This field should be nil when there's no backup policy attached.
577580
optional bool scheduled_backup_enabled = 3
578581
[(google.api.field_behavior) = OPTIONAL];
582+
583+
// Output only. Total size of all backups in a chain in bytes = baseline
584+
// backup size + sum(incremental backup size).
585+
optional int64 backup_chain_bytes = 4
586+
[(google.api.field_behavior) = OUTPUT_ONLY];
587+
}
588+
589+
// Defines tiering policy for the volume.
590+
message TieringPolicy {
591+
// Tier action for the volume.
592+
enum TierAction {
593+
// Unspecified.
594+
TIER_ACTION_UNSPECIFIED = 0;
595+
596+
// When tiering is enabled, new cold data will be tiered.
597+
ENABLED = 1;
598+
599+
// When paused, tiering won't be performed on new data. Existing data stays
600+
// tiered until accessed.
601+
PAUSED = 2;
602+
}
603+
604+
// Optional. Flag indicating if the volume has tiering policy enable/pause.
605+
// Default is PAUSED.
606+
optional TierAction tier_action = 1 [(google.api.field_behavior) = OPTIONAL];
607+
608+
// Optional. Time in days to mark the volume's data block as cold and make it
609+
// eligible for tiering, can be range from 7-183. Default is 31.
610+
optional int32 cooling_threshold_days = 2
611+
[(google.api.field_behavior) = OPTIONAL];
579612
}

0 commit comments

Comments
 (0)