Skip to content

Commit e99de3d

Browse files
Google APIscopybara-github
authored andcommitted
feat(api): A new rpc 'SwitchActiveReplicaZone' is added to service 'google.cloud.netapp.v1.NetApp'
feat: A new message 'google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest' is added feat: A new field 'allow_auto_tiering' in message 'google.cloud.netapp.v1.StoragePool' is added feat: A new field 'cold_tier_size_gib' in message 'google.cloud.netapp.v1.Volume' is added PiperOrigin-RevId: 674440910
1 parent 964f6c9 commit e99de3d

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

google/cloud/netapp/v1/cloud_netapp_service.proto

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,20 @@ service NetApp {
110110
};
111111
}
112112

113+
// This operation will switch the active/replica zone for a regional
114+
// storagePool.
115+
rpc SwitchActiveReplicaZone(SwitchActiveReplicaZoneRequest)
116+
returns (google.longrunning.Operation) {
117+
option (google.api.http) = {
118+
post: "/v1/{name=projects/*/locations/*/storagePools/*}:switch"
119+
body: "*"
120+
};
121+
option (google.longrunning.operation_info) = {
122+
response_type: "StoragePool"
123+
metadata_type: "OperationMetadata"
124+
};
125+
}
126+
113127
// Lists Volumes in a given project.
114128
rpc ListVolumes(ListVolumesRequest) returns (ListVolumesResponse) {
115129
option (google.api.http) = {

google/cloud/netapp/v1/storage_pool.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@ message DeleteStoragePoolRequest {
123123
];
124124
}
125125

126+
// SwitchActiveReplicaZoneRequest switch the active/replica zone for a regional
127+
// storagePool.
128+
message SwitchActiveReplicaZoneRequest {
129+
// Required. Name of the storage pool
130+
string name = 1 [
131+
(google.api.field_behavior) = REQUIRED,
132+
(google.api.resource_reference) = {
133+
type: "netapp.googleapis.com/StoragePool"
134+
}
135+
];
136+
}
137+
126138
// StoragePool is a container for volumes with a service level and capacity.
127139
// Volumes can be created in a pool of sufficient available capacity.
128140
// StoragePool capacity is what you are billed for.
@@ -231,6 +243,11 @@ message StoragePool {
231243
// regions.
232244
optional bool global_access_allowed = 17 [deprecated = true];
233245

246+
// Optional. True if the storage pool supports Auto Tiering enabled volumes.
247+
// Default is false. Auto-tiering can be enabled after storage pool creation
248+
// but it can't be disabled once enabled.
249+
bool allow_auto_tiering = 18 [(google.api.field_behavior) = OPTIONAL];
250+
234251
// Optional. Specifies the replica zone for regional storagePool.
235252
string replica_zone = 20 [(google.api.field_behavior) = OPTIONAL];
236253

google/cloud/netapp/v1/volume.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ message Volume {
402402

403403
// Output only. Specifies the active zone for regional volume.
404404
string zone = 37 [(google.api.field_behavior) = OUTPUT_ONLY];
405+
406+
// Output only. Size of the volume cold tier data in GiB.
407+
int64 cold_tier_size_gib = 39 [(google.api.field_behavior) = OUTPUT_ONLY];
405408
}
406409

407410
// Defines the export policy for the volume.

0 commit comments

Comments
 (0)