Skip to content

Commit 1423ec9

Browse files
feat: [google-cloud-netapp] A new message 'google.cloud.netapp.v1.BackupRetentionPolicy' is added in 'google.cloud.netapp.v1.BackupVault' (googleapis#13916)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: A new field `enforced_retention_end_time` in message `google.cloud.netapp.v1.Backup` is added feat: New fields `custom_performance_enabled`, `total_throughput_mibps`, `total_iops` in message `google.cloud.netapp.v1.StoragePool` are added docs: A comment for field `transfer_bytes` in message `.google.cloud.netapp.v1.TransferStats` is changed feat: [google-cloud-netapp] A new message `google.cloud.netapp.v1.BackupRetentionPolicy` is added in `google.cloud.netapp.v1.BackupVault` END_COMMIT_OVERRIDE PiperOrigin-RevId: 759339617 Source-Link: googleapis/googleapis@90c4519 Source-Link: https://github.com/googleapis/googleapis-gen/commit/08f073fb6329f0bf92306581317f2ed06f2b3a9a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldGFwcC8uT3dsQm90LnlhbWwiLCJoIjoiMDhmMDczZmI2MzI5ZjBiZjkyMzA2NTgxMzE3ZjJlZDA2ZjJiM2E5YSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 863c743 commit 1423ec9

File tree

8 files changed

+137
-5
lines changed

8 files changed

+137
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.3.22" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.3.22" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ class Backup(proto.Message):
8989
backup_region (str):
9090
Output only. Region in which backup is stored. Format:
9191
``projects/{project_id}/locations/{location}``
92+
enforced_retention_end_time (google.protobuf.timestamp_pb2.Timestamp):
93+
Output only. The time until which the backup
94+
is not deletable.
9295
"""
9396

9497
class State(proto.Enum):
@@ -201,6 +204,11 @@ class Type(proto.Enum):
201204
proto.STRING,
202205
number=14,
203206
)
207+
enforced_retention_end_time: timestamp_pb2.Timestamp = proto.Field(
208+
proto.MESSAGE,
209+
number=15,
210+
message=timestamp_pb2.Timestamp,
211+
)
204212

205213

206214
class ListBackupsRequest(proto.Message):

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ class BackupVault(proto.Message):
6868
Output only. Name of the Backup vault created in backup
6969
region. Format:
7070
``projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}``
71+
backup_retention_policy (google.cloud.netapp_v1.types.BackupVault.BackupRetentionPolicy):
72+
Optional. Backup retention policy defining
73+
the retenton of backups.
7174
"""
7275

7376
class State(proto.Enum):
@@ -109,6 +112,56 @@ class BackupVaultType(proto.Enum):
109112
IN_REGION = 1
110113
CROSS_REGION = 2
111114

115+
class BackupRetentionPolicy(proto.Message):
116+
r"""Retention policy for backups in the backup vault
117+
118+
Attributes:
119+
backup_minimum_enforced_retention_days (int):
120+
Required. Minimum retention duration in days
121+
for backups in the backup vault.
122+
daily_backup_immutable (bool):
123+
Optional. Indicates if the daily backups are immutable.
124+
Atleast one of daily_backup_immutable,
125+
weekly_backup_immutable, monthly_backup_immutable and
126+
manual_backup_immutable must be true.
127+
weekly_backup_immutable (bool):
128+
Optional. Indicates if the weekly backups are immutable.
129+
Atleast one of daily_backup_immutable,
130+
weekly_backup_immutable, monthly_backup_immutable and
131+
manual_backup_immutable must be true.
132+
monthly_backup_immutable (bool):
133+
Optional. Indicates if the monthly backups are immutable.
134+
Atleast one of daily_backup_immutable,
135+
weekly_backup_immutable, monthly_backup_immutable and
136+
manual_backup_immutable must be true.
137+
manual_backup_immutable (bool):
138+
Optional. Indicates if the manual backups are immutable.
139+
Atleast one of daily_backup_immutable,
140+
weekly_backup_immutable, monthly_backup_immutable and
141+
manual_backup_immutable must be true.
142+
"""
143+
144+
backup_minimum_enforced_retention_days: int = proto.Field(
145+
proto.INT32,
146+
number=1,
147+
)
148+
daily_backup_immutable: bool = proto.Field(
149+
proto.BOOL,
150+
number=2,
151+
)
152+
weekly_backup_immutable: bool = proto.Field(
153+
proto.BOOL,
154+
number=3,
155+
)
156+
monthly_backup_immutable: bool = proto.Field(
157+
proto.BOOL,
158+
number=4,
159+
)
160+
manual_backup_immutable: bool = proto.Field(
161+
proto.BOOL,
162+
number=5,
163+
)
164+
112165
name: str = proto.Field(
113166
proto.STRING,
114167
number=1,
@@ -153,6 +206,11 @@ class BackupVaultType(proto.Enum):
153206
proto.STRING,
154207
number=10,
155208
)
209+
backup_retention_policy: BackupRetentionPolicy = proto.Field(
210+
proto.MESSAGE,
211+
number=11,
212+
message=BackupRetentionPolicy,
213+
)
156214

157215

158216
class GetBackupVaultRequest(proto.Message):

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class TransferStats(proto.Message):
5555
5656
Attributes:
5757
transfer_bytes (int):
58-
Cumulative bytes trasferred so far for the
59-
replication relatinonship.
58+
Cumulative bytes transferred so far for the
59+
replication relationship.
6060
6161
This field is a member of `oneof`_ ``_transfer_bytes``.
6262
total_transfer_duration (google.protobuf.duration_pb2.Duration):

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,17 @@ class StoragePool(proto.Message):
286286
Output only. Reserved for future use
287287
satisfies_pzi (bool):
288288
Output only. Reserved for future use
289+
custom_performance_enabled (bool):
290+
Optional. True if using Independent Scaling
291+
of capacity and performance (Hyperdisk) By
292+
default set to false
293+
total_throughput_mibps (int):
294+
Optional. Custom Performance Total Throughput
295+
of the pool (in MiB/s)
296+
total_iops (int):
297+
Optional. Custom Performance Total IOPS of the pool If not
298+
provided, it will be calculated based on the
299+
total_throughput_mibps
289300
"""
290301

291302
class State(proto.Enum):
@@ -412,6 +423,18 @@ class State(proto.Enum):
412423
proto.BOOL,
413424
number=24,
414425
)
426+
custom_performance_enabled: bool = proto.Field(
427+
proto.BOOL,
428+
number=25,
429+
)
430+
total_throughput_mibps: int = proto.Field(
431+
proto.INT64,
432+
number=26,
433+
)
434+
total_iops: int = proto.Field(
435+
proto.INT64,
436+
number=27,
437+
)
415438

416439

417440
class ValidateDirectoryServiceRequest(proto.Message):

packages/google-cloud-netapp/samples/generated_samples/snippet_metadata_google.cloud.netapp.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-netapp",
11-
"version": "0.3.22"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-netapp/tests/unit/gapic/netapp_v1/test_net_app.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,9 @@ def test_get_storage_pool(request_type, transport: str = "grpc"):
20372037
zone="zone_value",
20382038
satisfies_pzs=True,
20392039
satisfies_pzi=True,
2040+
custom_performance_enabled=True,
2041+
total_throughput_mibps=2391,
2042+
total_iops=1086,
20402043
)
20412044
response = client.get_storage_pool(request)
20422045

@@ -2068,6 +2071,9 @@ def test_get_storage_pool(request_type, transport: str = "grpc"):
20682071
assert response.zone == "zone_value"
20692072
assert response.satisfies_pzs is True
20702073
assert response.satisfies_pzi is True
2074+
assert response.custom_performance_enabled is True
2075+
assert response.total_throughput_mibps == 2391
2076+
assert response.total_iops == 1086
20712077

20722078

20732079
def test_get_storage_pool_non_empty_request_with_auto_populated_field():
@@ -2215,6 +2221,9 @@ async def test_get_storage_pool_async(
22152221
zone="zone_value",
22162222
satisfies_pzs=True,
22172223
satisfies_pzi=True,
2224+
custom_performance_enabled=True,
2225+
total_throughput_mibps=2391,
2226+
total_iops=1086,
22182227
)
22192228
)
22202229
response = await client.get_storage_pool(request)
@@ -2247,6 +2256,9 @@ async def test_get_storage_pool_async(
22472256
assert response.zone == "zone_value"
22482257
assert response.satisfies_pzs is True
22492258
assert response.satisfies_pzi is True
2259+
assert response.custom_performance_enabled is True
2260+
assert response.total_throughput_mibps == 2391
2261+
assert response.total_iops == 1086
22502262

22512263

22522264
@pytest.mark.asyncio
@@ -36283,6 +36295,9 @@ async def test_get_storage_pool_empty_call_grpc_asyncio():
3628336295
zone="zone_value",
3628436296
satisfies_pzs=True,
3628536297
satisfies_pzi=True,
36298+
custom_performance_enabled=True,
36299+
total_throughput_mibps=2391,
36300+
total_iops=1086,
3628636301
)
3628736302
)
3628836303
await client.get_storage_pool(request=None)
@@ -38133,6 +38148,9 @@ def test_create_storage_pool_rest_call_success(request_type):
3813338148
"zone": "zone_value",
3813438149
"satisfies_pzs": True,
3813538150
"satisfies_pzi": True,
38151+
"custom_performance_enabled": True,
38152+
"total_throughput_mibps": 2391,
38153+
"total_iops": 1086,
3813638154
}
3813738155
# The version of a generated dependency at test runtime may differ from the version used during generation.
3813838156
# Delete any fields which are not present in the current runtime dependency
@@ -38348,6 +38366,9 @@ def test_get_storage_pool_rest_call_success(request_type):
3834838366
zone="zone_value",
3834938367
satisfies_pzs=True,
3835038368
satisfies_pzi=True,
38369+
custom_performance_enabled=True,
38370+
total_throughput_mibps=2391,
38371+
total_iops=1086,
3835138372
)
3835238373

3835338374
# Wrap the value into a proper Response obj
@@ -38384,6 +38405,9 @@ def test_get_storage_pool_rest_call_success(request_type):
3838438405
assert response.zone == "zone_value"
3838538406
assert response.satisfies_pzs is True
3838638407
assert response.satisfies_pzi is True
38408+
assert response.custom_performance_enabled is True
38409+
assert response.total_throughput_mibps == 2391
38410+
assert response.total_iops == 1086
3838738411

3838838412

3838938413
@pytest.mark.parametrize("null_interceptor", [True, False])
@@ -38516,6 +38540,9 @@ def test_update_storage_pool_rest_call_success(request_type):
3851638540
"zone": "zone_value",
3851738541
"satisfies_pzs": True,
3851838542
"satisfies_pzi": True,
38543+
"custom_performance_enabled": True,
38544+
"total_throughput_mibps": 2391,
38545+
"total_iops": 1086,
3851938546
}
3852038547
# The version of a generated dependency at test runtime may differ from the version used during generation.
3852138548
# Delete any fields which are not present in the current runtime dependency
@@ -44369,6 +44396,13 @@ def test_create_backup_vault_rest_call_success(request_type):
4436944396
"backup_region": "backup_region_value",
4437044397
"source_backup_vault": "source_backup_vault_value",
4437144398
"destination_backup_vault": "destination_backup_vault_value",
44399+
"backup_retention_policy": {
44400+
"backup_minimum_enforced_retention_days": 4029,
44401+
"daily_backup_immutable": True,
44402+
"weekly_backup_immutable": True,
44403+
"monthly_backup_immutable": True,
44404+
"manual_backup_immutable": True,
44405+
},
4437244406
}
4437344407
# The version of a generated dependency at test runtime may differ from the version used during generation.
4437444408
# Delete any fields which are not present in the current runtime dependency
@@ -44850,6 +44884,13 @@ def test_update_backup_vault_rest_call_success(request_type):
4485044884
"backup_region": "backup_region_value",
4485144885
"source_backup_vault": "source_backup_vault_value",
4485244886
"destination_backup_vault": "destination_backup_vault_value",
44887+
"backup_retention_policy": {
44888+
"backup_minimum_enforced_retention_days": 4029,
44889+
"daily_backup_immutable": True,
44890+
"weekly_backup_immutable": True,
44891+
"monthly_backup_immutable": True,
44892+
"manual_backup_immutable": True,
44893+
},
4485344894
}
4485444895
# The version of a generated dependency at test runtime may differ from the version used during generation.
4485544896
# Delete any fields which are not present in the current runtime dependency
@@ -45173,6 +45214,7 @@ def test_create_backup_rest_call_success(request_type):
4517345214
"satisfies_pzi": True,
4517445215
"volume_region": "volume_region_value",
4517545216
"backup_region": "backup_region_value",
45217+
"enforced_retention_end_time": {},
4517645218
}
4517745219
# The version of a generated dependency at test runtime may differ from the version used during generation.
4517845220
# Delete any fields which are not present in the current runtime dependency
@@ -45772,6 +45814,7 @@ def test_update_backup_rest_call_success(request_type):
4577245814
"satisfies_pzi": True,
4577345815
"volume_region": "volume_region_value",
4577445816
"backup_region": "backup_region_value",
45817+
"enforced_retention_end_time": {},
4577545818
}
4577645819
# The version of a generated dependency at test runtime may differ from the version used during generation.
4577745820
# Delete any fields which are not present in the current runtime dependency

0 commit comments

Comments
 (0)