Skip to content

Commit 0370ed1

Browse files
feat: [google-cloud-netapp] add new fields for flex auto tiering (#14360)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add fields for manual qos feat: add fields for hybrid replication docs: field `daily_backup_immutable` in message `.google.cloud.netapp.v1.BackupVault` is changed docs: field `weekly_backup_immutable` in message `.google.cloud.netapp.v1.BackupVault` is changed docs: field `monthly_backup_immutable` in message `.google.cloud.netapp.v1.BackupVault` is changed docs: field `manual_backup_immutable` in message `.google.cloud.netapp.v1.BackupVault` is changed docs: field `subnet_ip` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `command` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `command_expiry_time` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `passphrase` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `peer_volume_name` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `peer_cluster_name` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `peer_svm_name` in message `.google.cloud.netapp.v1.HybridPeeringDetails` is changed docs: field `total_throughput_mibps` in message `.google.cloud.netapp.v1.StoragePool` is added docs: field `total_iops` in message `.google.cloud.netapp.v1.StoragePool` is added docs: A comment for field `cold_tier_size_gib` in message `.google.cloud.netapp.v1.Volume` is changed END_COMMIT_OVERRIDE PiperOrigin-RevId: 802857292 Source-Link: googleapis/googleapis@2dde7b2 Source-Link: googleapis/googleapis-gen@29a1da8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldGFwcC8uT3dsQm90LnlhbWwiLCJoIjoiMjlhMWRhODEzOTIxMzNlNGEzZmYwMzQwNzQxNmRhMzViYzgzZGVmMCJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 54ce5f3 commit 0370ed1

File tree

9 files changed

+365
-25
lines changed

9 files changed

+365
-25
lines changed

packages/google-cloud-netapp/google/cloud/netapp/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@
6161
DirectoryServiceType,
6262
EncryptionType,
6363
FlexPerformance,
64+
HybridReplicationSchedule,
6465
LocationMetadata,
66+
QosType,
6567
ServiceLevel,
68+
UserCommands,
6669
)
6770
from google.cloud.netapp_v1.types.kms import (
6871
CreateKmsConfigRequest,
@@ -183,9 +186,12 @@
183186
"UpdateBackupVaultRequest",
184187
"OperationMetadata",
185188
"LocationMetadata",
189+
"UserCommands",
186190
"DirectoryServiceType",
187191
"EncryptionType",
188192
"FlexPerformance",
193+
"HybridReplicationSchedule",
194+
"QosType",
189195
"ServiceLevel",
190196
"CreateKmsConfigRequest",
191197
"DeleteKmsConfigRequest",

packages/google-cloud-netapp/google/cloud/netapp_v1/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@
6060
DirectoryServiceType,
6161
EncryptionType,
6262
FlexPerformance,
63+
HybridReplicationSchedule,
6364
LocationMetadata,
65+
QosType,
6466
ServiceLevel,
67+
UserCommands,
6568
)
6669
from .types.kms import (
6770
CreateKmsConfigRequest,
@@ -198,6 +201,7 @@
198201
"HourlySchedule",
199202
"HybridPeeringDetails",
200203
"HybridReplicationParameters",
204+
"HybridReplicationSchedule",
201205
"KmsConfig",
202206
"ListActiveDirectoriesRequest",
203207
"ListActiveDirectoriesResponse",
@@ -225,6 +229,7 @@
225229
"NetAppClient",
226230
"OperationMetadata",
227231
"Protocols",
232+
"QosType",
228233
"QuotaRule",
229234
"Replication",
230235
"RestoreParameters",
@@ -254,6 +259,7 @@
254259
"UpdateSnapshotRequest",
255260
"UpdateStoragePoolRequest",
256261
"UpdateVolumeRequest",
262+
"UserCommands",
257263
"ValidateDirectoryServiceRequest",
258264
"VerifyKmsConfigRequest",
259265
"VerifyKmsConfigResponse",

packages/google-cloud-netapp/google/cloud/netapp_v1/types/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@
5454
DirectoryServiceType,
5555
EncryptionType,
5656
FlexPerformance,
57+
HybridReplicationSchedule,
5758
LocationMetadata,
59+
QosType,
5860
ServiceLevel,
61+
UserCommands,
5962
)
6063
from .kms import (
6164
CreateKmsConfigRequest,
@@ -174,9 +177,12 @@
174177
"UpdateBackupVaultRequest",
175178
"OperationMetadata",
176179
"LocationMetadata",
180+
"UserCommands",
177181
"DirectoryServiceType",
178182
"EncryptionType",
179183
"FlexPerformance",
184+
"HybridReplicationSchedule",
185+
"QosType",
180186
"ServiceLevel",
181187
"CreateKmsConfigRequest",
182188
"DeleteKmsConfigRequest",

packages/google-cloud-netapp/google/cloud/netapp_v1/types/backup_vault.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ class BackupRetentionPolicy(proto.Message):
120120
Required. Minimum retention duration in days
121121
for backups in the backup vault.
122122
daily_backup_immutable (bool):
123-
Optional. Indicates if the daily backups are immutable.
124-
Atleast one of daily_backup_immutable,
123+
Optional. Indicates if the daily backups are immutable. At
124+
least one of daily_backup_immutable,
125125
weekly_backup_immutable, monthly_backup_immutable and
126126
manual_backup_immutable must be true.
127127
weekly_backup_immutable (bool):
128-
Optional. Indicates if the weekly backups are immutable.
129-
Atleast one of daily_backup_immutable,
128+
Optional. Indicates if the weekly backups are immutable. At
129+
least one of daily_backup_immutable,
130130
weekly_backup_immutable, monthly_backup_immutable and
131131
manual_backup_immutable must be true.
132132
monthly_backup_immutable (bool):
133-
Optional. Indicates if the monthly backups are immutable.
134-
Atleast one of daily_backup_immutable,
133+
Optional. Indicates if the monthly backups are immutable. At
134+
least one of daily_backup_immutable,
135135
weekly_backup_immutable, monthly_backup_immutable and
136136
manual_backup_immutable must be true.
137137
manual_backup_immutable (bool):
138-
Optional. Indicates if the manual backups are immutable.
139-
Atleast one of daily_backup_immutable,
138+
Optional. Indicates if the manual backups are immutable. At
139+
least one of daily_backup_immutable,
140140
weekly_backup_immutable, monthly_backup_immutable and
141141
manual_backup_immutable must be true.
142142
"""

packages/google-cloud-netapp/google/cloud/netapp_v1/types/common.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
"FlexPerformance",
2727
"EncryptionType",
2828
"DirectoryServiceType",
29+
"HybridReplicationSchedule",
30+
"QosType",
2931
"LocationMetadata",
32+
"UserCommands",
3033
},
3134
)
3235

@@ -101,6 +104,43 @@ class DirectoryServiceType(proto.Enum):
101104
ACTIVE_DIRECTORY = 1
102105

103106

107+
class HybridReplicationSchedule(proto.Enum):
108+
r"""Schedule for Hybrid Replication.
109+
New enum values may be added in future to support different
110+
frequency of replication.
111+
112+
Values:
113+
HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED (0):
114+
Unspecified HybridReplicationSchedule
115+
EVERY_10_MINUTES (1):
116+
Replication happens once every 10 minutes.
117+
HOURLY (2):
118+
Replication happens once every hour.
119+
DAILY (3):
120+
Replication happens once every day.
121+
"""
122+
HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED = 0
123+
EVERY_10_MINUTES = 1
124+
HOURLY = 2
125+
DAILY = 3
126+
127+
128+
class QosType(proto.Enum):
129+
r"""QoS (Quality of Service) Types of the storage pool
130+
131+
Values:
132+
QOS_TYPE_UNSPECIFIED (0):
133+
Unspecified QoS Type
134+
AUTO (1):
135+
QoS Type is Auto
136+
MANUAL (2):
137+
QoS Type is Manual
138+
"""
139+
QOS_TYPE_UNSPECIFIED = 0
140+
AUTO = 1
141+
MANUAL = 2
142+
143+
104144
class LocationMetadata(proto.Message):
105145
r"""Metadata for a given
106146
[google.cloud.location.Location][google.cloud.location.Location].
@@ -112,6 +152,9 @@ class LocationMetadata(proto.Message):
112152
supported_flex_performance (MutableSequence[google.cloud.netapp_v1.types.FlexPerformance]):
113153
Output only. Supported flex performance in a
114154
location.
155+
has_vcp (bool):
156+
Output only. Indicates if the location has
157+
VCP support.
115158
"""
116159

117160
supported_service_levels: MutableSequence["ServiceLevel"] = proto.RepeatedField(
@@ -126,6 +169,26 @@ class LocationMetadata(proto.Message):
126169
number=2,
127170
enum="FlexPerformance",
128171
)
172+
has_vcp: bool = proto.Field(
173+
proto.BOOL,
174+
number=3,
175+
)
176+
177+
178+
class UserCommands(proto.Message):
179+
r"""UserCommands contains the commands to be executed by the
180+
customer.
181+
182+
Attributes:
183+
commands (MutableSequence[str]):
184+
Output only. List of commands to be executed
185+
by the customer.
186+
"""
187+
188+
commands: MutableSequence[str] = proto.RepeatedField(
189+
proto.STRING,
190+
number=1,
191+
)
129192

130193

131194
__all__ = tuple(sorted(__protobuf__.manifest))

packages/google-cloud-netapp/google/cloud/netapp_v1/types/replication.py

Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from google.protobuf import timestamp_pb2 # type: ignore
2323
import proto # type: ignore
2424

25-
from google.cloud.netapp_v1.types import volume
25+
from google.cloud.netapp_v1.types import common, volume
2626

2727
__protobuf__ = proto.module(
2828
package="google.cloud.netapp.v1",
@@ -206,6 +206,10 @@ class Replication(proto.Message):
206206
Optional. Location of the user cluster.
207207
hybrid_replication_type (google.cloud.netapp_v1.types.Replication.HybridReplicationType):
208208
Output only. Type of the hybrid replication.
209+
hybrid_replication_user_commands (google.cloud.netapp_v1.types.UserCommands):
210+
Output only. Copy pastable snapmirror
211+
commands to be executed on onprem cluster by the
212+
customer.
209213
"""
210214

211215
class State(proto.Enum):
@@ -232,6 +236,12 @@ class State(proto.Enum):
232236
PENDING_SVM_PEERING (9):
233237
Replication is waiting for SVM peering to be
234238
established.
239+
PENDING_REMOTE_RESYNC (10):
240+
Replication is waiting for Commands to be
241+
executed on Onprem ONTAP.
242+
EXTERNALLY_MANAGED_REPLICATION (11):
243+
Onprem ONTAP is destination and Replication
244+
can only be managed from Onprem.
235245
"""
236246
STATE_UNSPECIFIED = 0
237247
CREATING = 1
@@ -241,6 +251,8 @@ class State(proto.Enum):
241251
ERROR = 6
242252
PENDING_CLUSTER_PEERING = 8
243253
PENDING_SVM_PEERING = 9
254+
PENDING_REMOTE_RESYNC = 10
255+
EXTERNALLY_MANAGED_REPLICATION = 11
244256

245257
class ReplicationRole(proto.Enum):
246258
r"""New enum values may be added in future to support different
@@ -299,6 +311,11 @@ class MirrorState(proto.Enum):
299311
Baseline replication is in progress.
300312
ABORTED (6):
301313
Replication is aborted.
314+
EXTERNALLY_MANAGED (7):
315+
Replication is being managed from Onprem
316+
ONTAP.
317+
PENDING_PEERING (8):
318+
Peering is yet to be established.
302319
"""
303320
MIRROR_STATE_UNSPECIFIED = 0
304321
PREPARING = 1
@@ -307,6 +324,8 @@ class MirrorState(proto.Enum):
307324
TRANSFERRING = 4
308325
BASELINE_TRANSFERRING = 5
309326
ABORTED = 6
327+
EXTERNALLY_MANAGED = 7
328+
PENDING_PEERING = 8
310329

311330
class HybridReplicationType(proto.Enum):
312331
r"""Hybrid replication type.
@@ -319,10 +338,19 @@ class HybridReplicationType(proto.Enum):
319338
CONTINUOUS_REPLICATION (2):
320339
Hybrid replication type for continuous
321340
replication.
341+
ONPREM_REPLICATION (3):
342+
New field for reversible OnPrem replication,
343+
to be used for data protection.
344+
REVERSE_ONPREM_REPLICATION (4):
345+
Hybrid replication type for incremental
346+
Transfer in the reverse direction (GCNV is
347+
source and Onprem is destination)
322348
"""
323349
HYBRID_REPLICATION_TYPE_UNSPECIFIED = 0
324350
MIGRATION = 1
325351
CONTINUOUS_REPLICATION = 2
352+
ONPREM_REPLICATION = 3
353+
REVERSE_ONPREM_REPLICATION = 4
326354

327355
name: str = proto.Field(
328356
proto.STRING,
@@ -404,6 +432,11 @@ class HybridReplicationType(proto.Enum):
404432
number=19,
405433
enum=HybridReplicationType,
406434
)
435+
hybrid_replication_user_commands: common.UserCommands = proto.Field(
436+
proto.MESSAGE,
437+
number=20,
438+
message=common.UserCommands,
439+
)
407440

408441

409442
class HybridPeeringDetails(proto.Message):
@@ -412,25 +445,25 @@ class HybridPeeringDetails(proto.Message):
412445
413446
Attributes:
414447
subnet_ip (str):
415-
Optional. IP address of the subnet.
448+
Output only. IP address of the subnet.
416449
command (str):
417-
Optional. Copy-paste-able commands to be used
418-
on user's ONTAP to accept peering requests.
450+
Output only. Copy-paste-able commands to be
451+
used on user's ONTAP to accept peering requests.
419452
command_expiry_time (google.protobuf.timestamp_pb2.Timestamp):
420-
Optional. Expiration time for the peering
453+
Output only. Expiration time for the peering
421454
command to be executed on user's ONTAP.
422455
passphrase (str):
423-
Optional. Temporary passphrase generated to
424-
accept cluster peering command.
456+
Output only. Temporary passphrase generated
457+
to accept cluster peering command.
425458
peer_volume_name (str):
426-
Optional. Name of the user's local source
459+
Output only. Name of the user's local source
427460
volume to be peered with the destination volume.
428461
peer_cluster_name (str):
429-
Optional. Name of the user's local source
462+
Output only. Name of the user's local source
430463
cluster to be peered with the destination
431464
cluster.
432465
peer_svm_name (str):
433-
Optional. Name of the user's local source
466+
Output only. Name of the user's local source
434467
vserver svm to be peered with the destination
435468
vserver svm.
436469
"""

0 commit comments

Comments
 (0)