Skip to content

Commit 4e23ac6

Browse files
feat: Automated regeneration of netapp v1 client (googleapis#23198)
Auto-created at 2025-05-21 20:47:50 +0000 using the toys pull request generator.
1 parent 5d8f2b3 commit 4e23ac6

File tree

5 files changed

+129
-3
lines changed

5 files changed

+129
-3
lines changed

api_names_out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285085,6 +285085,7 @@
285085285085
"/netapp:v1/Backup/chainStorageBytes": chain_storage_bytes
285086285086
"/netapp:v1/Backup/createTime": create_time
285087285087
"/netapp:v1/Backup/description": description
285088+
"/netapp:v1/Backup/enforcedRetentionEndTime": enforced_retention_end_time
285088285089
"/netapp:v1/Backup/labels": labels
285089285090
"/netapp:v1/Backup/labels/label": label
285090285091
"/netapp:v1/Backup/name": name
@@ -285113,8 +285114,15 @@
285113285114
"/netapp:v1/BackupPolicy/name": name
285114285115
"/netapp:v1/BackupPolicy/state": state
285115285116
"/netapp:v1/BackupPolicy/weeklyBackupLimit": weekly_backup_limit
285117+
"/netapp:v1/BackupRetentionPolicy": backup_retention_policy
285118+
"/netapp:v1/BackupRetentionPolicy/backupMinimumEnforcedRetentionDays": backup_minimum_enforced_retention_days
285119+
"/netapp:v1/BackupRetentionPolicy/dailyBackupImmutable": daily_backup_immutable
285120+
"/netapp:v1/BackupRetentionPolicy/manualBackupImmutable": manual_backup_immutable
285121+
"/netapp:v1/BackupRetentionPolicy/monthlyBackupImmutable": monthly_backup_immutable
285122+
"/netapp:v1/BackupRetentionPolicy/weeklyBackupImmutable": weekly_backup_immutable
285116285123
"/netapp:v1/BackupVault": backup_vault
285117285124
"/netapp:v1/BackupVault/backupRegion": backup_region
285125+
"/netapp:v1/BackupVault/backupRetentionPolicy": backup_retention_policy
285118285126
"/netapp:v1/BackupVault/backupVaultType": backup_vault_type
285119285127
"/netapp:v1/BackupVault/createTime": create_time
285120285128
"/netapp:v1/BackupVault/description": description
@@ -285412,6 +285420,7 @@
285412285420
"/netapp:v1/StoragePool/allowAutoTiering": allow_auto_tiering
285413285421
"/netapp:v1/StoragePool/capacityGib": capacity_gib
285414285422
"/netapp:v1/StoragePool/createTime": create_time
285423+
"/netapp:v1/StoragePool/customPerformanceEnabled": custom_performance_enabled
285415285424
"/netapp:v1/StoragePool/description": description
285416285425
"/netapp:v1/StoragePool/encryptionType": encryption_type
285417285426
"/netapp:v1/StoragePool/globalAccessAllowed": global_access_allowed
@@ -285428,6 +285437,8 @@
285428285437
"/netapp:v1/StoragePool/serviceLevel": service_level
285429285438
"/netapp:v1/StoragePool/state": state
285430285439
"/netapp:v1/StoragePool/stateDetails": state_details
285440+
"/netapp:v1/StoragePool/totalIops": total_iops
285441+
"/netapp:v1/StoragePool/totalThroughputMibps": total_throughput_mibps
285431285442
"/netapp:v1/StoragePool/volumeCapacityGib": volume_capacity_gib
285432285443
"/netapp:v1/StoragePool/volumeCount": volume_count
285433285444
"/netapp:v1/StoragePool/zone": zone

generated/google-apis-netapp_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-netapp_v1
22

3+
### v0.9.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250515
6+
37
### v0.8.0 (2025-05-04)
48

59
* Regenerated using generator version 0.17.0

generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/classes.rb

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ class Backup
212212
# @return [String]
213213
attr_accessor :description
214214

215+
# Output only. The time until which the backup is not deletable.
216+
# Corresponds to the JSON property `enforcedRetentionEndTime`
217+
# @return [String]
218+
attr_accessor :enforced_retention_end_time
219+
215220
# Resource labels to represent user provided metadata.
216221
# Corresponds to the JSON property `labels`
217222
# @return [Hash<String,String>]
@@ -278,6 +283,7 @@ def update!(**args)
278283
@chain_storage_bytes = args[:chain_storage_bytes] if args.key?(:chain_storage_bytes)
279284
@create_time = args[:create_time] if args.key?(:create_time)
280285
@description = args[:description] if args.key?(:description)
286+
@enforced_retention_end_time = args[:enforced_retention_end_time] if args.key?(:enforced_retention_end_time)
281287
@labels = args[:labels] if args.key?(:labels)
282288
@name = args[:name] if args.key?(:name)
283289
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
@@ -411,6 +417,61 @@ def update!(**args)
411417
end
412418
end
413419

420+
# Retention policy for backups in the backup vault
421+
class BackupRetentionPolicy
422+
include Google::Apis::Core::Hashable
423+
424+
# Required. Minimum retention duration in days for backups in the backup vault.
425+
# Corresponds to the JSON property `backupMinimumEnforcedRetentionDays`
426+
# @return [Fixnum]
427+
attr_accessor :backup_minimum_enforced_retention_days
428+
429+
# Optional. Indicates if the daily backups are immutable. Atleast one of
430+
# daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and
431+
# manual_backup_immutable must be true.
432+
# Corresponds to the JSON property `dailyBackupImmutable`
433+
# @return [Boolean]
434+
attr_accessor :daily_backup_immutable
435+
alias_method :daily_backup_immutable?, :daily_backup_immutable
436+
437+
# Optional. Indicates if the manual backups are immutable. Atleast one of
438+
# daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and
439+
# manual_backup_immutable must be true.
440+
# Corresponds to the JSON property `manualBackupImmutable`
441+
# @return [Boolean]
442+
attr_accessor :manual_backup_immutable
443+
alias_method :manual_backup_immutable?, :manual_backup_immutable
444+
445+
# Optional. Indicates if the monthly backups are immutable. Atleast one of
446+
# daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and
447+
# manual_backup_immutable must be true.
448+
# Corresponds to the JSON property `monthlyBackupImmutable`
449+
# @return [Boolean]
450+
attr_accessor :monthly_backup_immutable
451+
alias_method :monthly_backup_immutable?, :monthly_backup_immutable
452+
453+
# Optional. Indicates if the weekly backups are immutable. Atleast one of
454+
# daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable and
455+
# manual_backup_immutable must be true.
456+
# Corresponds to the JSON property `weeklyBackupImmutable`
457+
# @return [Boolean]
458+
attr_accessor :weekly_backup_immutable
459+
alias_method :weekly_backup_immutable?, :weekly_backup_immutable
460+
461+
def initialize(**args)
462+
update!(**args)
463+
end
464+
465+
# Update properties of this object
466+
def update!(**args)
467+
@backup_minimum_enforced_retention_days = args[:backup_minimum_enforced_retention_days] if args.key?(:backup_minimum_enforced_retention_days)
468+
@daily_backup_immutable = args[:daily_backup_immutable] if args.key?(:daily_backup_immutable)
469+
@manual_backup_immutable = args[:manual_backup_immutable] if args.key?(:manual_backup_immutable)
470+
@monthly_backup_immutable = args[:monthly_backup_immutable] if args.key?(:monthly_backup_immutable)
471+
@weekly_backup_immutable = args[:weekly_backup_immutable] if args.key?(:weekly_backup_immutable)
472+
end
473+
end
474+
414475
# A NetApp BackupVault.
415476
class BackupVault
416477
include Google::Apis::Core::Hashable
@@ -421,6 +482,11 @@ class BackupVault
421482
# @return [String]
422483
attr_accessor :backup_region
423484

485+
# Retention policy for backups in the backup vault
486+
# Corresponds to the JSON property `backupRetentionPolicy`
487+
# @return [Google::Apis::NetappV1::BackupRetentionPolicy]
488+
attr_accessor :backup_retention_policy
489+
424490
# Optional. Type of backup vault to be created. Default is IN_REGION.
425491
# Corresponds to the JSON property `backupVaultType`
426492
# @return [String]
@@ -477,6 +543,7 @@ def initialize(**args)
477543
# Update properties of this object
478544
def update!(**args)
479545
@backup_region = args[:backup_region] if args.key?(:backup_region)
546+
@backup_retention_policy = args[:backup_retention_policy] if args.key?(:backup_retention_policy)
480547
@backup_vault_type = args[:backup_vault_type] if args.key?(:backup_vault_type)
481548
@create_time = args[:create_time] if args.key?(:create_time)
482549
@description = args[:description] if args.key?(:description)
@@ -2098,6 +2165,13 @@ class StoragePool
20982165
# @return [String]
20992166
attr_accessor :create_time
21002167

2168+
# Optional. True if using Independent Scaling of capacity and performance (
2169+
# Hyperdisk) By default set to false
2170+
# Corresponds to the JSON property `customPerformanceEnabled`
2171+
# @return [Boolean]
2172+
attr_accessor :custom_performance_enabled
2173+
alias_method :custom_performance_enabled?, :custom_performance_enabled
2174+
21012175
# Optional. Description of the storage pool
21022176
# Corresponds to the JSON property `description`
21032177
# @return [String]
@@ -2180,6 +2254,17 @@ class StoragePool
21802254
# @return [String]
21812255
attr_accessor :state_details
21822256

2257+
# Optional. Custom Performance Total IOPS of the pool If not provided, it will
2258+
# be calculated based on the total_throughput_mibps
2259+
# Corresponds to the JSON property `totalIops`
2260+
# @return [Fixnum]
2261+
attr_accessor :total_iops
2262+
2263+
# Optional. Custom Performance Total Throughput of the pool (in MiB/s)
2264+
# Corresponds to the JSON property `totalThroughputMibps`
2265+
# @return [Fixnum]
2266+
attr_accessor :total_throughput_mibps
2267+
21832268
# Output only. Allocated size of all volumes in GIB in the storage pool
21842269
# Corresponds to the JSON property `volumeCapacityGib`
21852270
# @return [Fixnum]
@@ -2205,6 +2290,7 @@ def update!(**args)
22052290
@allow_auto_tiering = args[:allow_auto_tiering] if args.key?(:allow_auto_tiering)
22062291
@capacity_gib = args[:capacity_gib] if args.key?(:capacity_gib)
22072292
@create_time = args[:create_time] if args.key?(:create_time)
2293+
@custom_performance_enabled = args[:custom_performance_enabled] if args.key?(:custom_performance_enabled)
22082294
@description = args[:description] if args.key?(:description)
22092295
@encryption_type = args[:encryption_type] if args.key?(:encryption_type)
22102296
@global_access_allowed = args[:global_access_allowed] if args.key?(:global_access_allowed)
@@ -2220,6 +2306,8 @@ def update!(**args)
22202306
@service_level = args[:service_level] if args.key?(:service_level)
22212307
@state = args[:state] if args.key?(:state)
22222308
@state_details = args[:state_details] if args.key?(:state_details)
2309+
@total_iops = args[:total_iops] if args.key?(:total_iops)
2310+
@total_throughput_mibps = args[:total_throughput_mibps] if args.key?(:total_throughput_mibps)
22232311
@volume_capacity_gib = args[:volume_capacity_gib] if args.key?(:volume_capacity_gib)
22242312
@volume_count = args[:volume_count] if args.key?(:volume_count)
22252313
@zone = args[:zone] if args.key?(:zone)
@@ -2315,7 +2403,7 @@ class TransferStats
23152403
# @return [String]
23162404
attr_accessor :total_transfer_duration
23172405

2318-
# Cumulative bytes trasferred so far for the replication relatinonship.
2406+
# Cumulative bytes transferred so far for the replication relationship.
23192407
# Corresponds to the JSON property `transferBytes`
23202408
# @return [Fixnum]
23212409
attr_accessor :transfer_bytes

generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module NetappV1
1818
# Version of the google-apis-netapp_v1 gem
19-
GEM_VERSION = "0.8.0"
19+
GEM_VERSION = "0.9.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.17.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250326"
25+
REVISION = "20250515"
2626
end
2727
end
2828
end

generated/google-apis-netapp_v1/lib/google/apis/netapp_v1/representations.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4646
include Google::Apis::Core::JsonObjectSupport
4747
end
4848

49+
class BackupRetentionPolicy
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
4955
class BackupVault
5056
class Representation < Google::Apis::Core::JsonRepresentation; end
5157

@@ -388,6 +394,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
388394
property :chain_storage_bytes, :numeric_string => true, as: 'chainStorageBytes'
389395
property :create_time, as: 'createTime'
390396
property :description, as: 'description'
397+
property :enforced_retention_end_time, as: 'enforcedRetentionEndTime'
391398
hash :labels, as: 'labels'
392399
property :name, as: 'name'
393400
property :satisfies_pzi, as: 'satisfiesPzi'
@@ -426,10 +433,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
426433
end
427434
end
428435

436+
class BackupRetentionPolicy
437+
# @private
438+
class Representation < Google::Apis::Core::JsonRepresentation
439+
property :backup_minimum_enforced_retention_days, as: 'backupMinimumEnforcedRetentionDays'
440+
property :daily_backup_immutable, as: 'dailyBackupImmutable'
441+
property :manual_backup_immutable, as: 'manualBackupImmutable'
442+
property :monthly_backup_immutable, as: 'monthlyBackupImmutable'
443+
property :weekly_backup_immutable, as: 'weeklyBackupImmutable'
444+
end
445+
end
446+
429447
class BackupVault
430448
# @private
431449
class Representation < Google::Apis::Core::JsonRepresentation
432450
property :backup_region, as: 'backupRegion'
451+
property :backup_retention_policy, as: 'backupRetentionPolicy', class: Google::Apis::NetappV1::BackupRetentionPolicy, decorator: Google::Apis::NetappV1::BackupRetentionPolicy::Representation
452+
433453
property :backup_vault_type, as: 'backupVaultType'
434454
property :create_time, as: 'createTime'
435455
property :description, as: 'description'
@@ -868,6 +888,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
868888
property :allow_auto_tiering, as: 'allowAutoTiering'
869889
property :capacity_gib, :numeric_string => true, as: 'capacityGib'
870890
property :create_time, as: 'createTime'
891+
property :custom_performance_enabled, as: 'customPerformanceEnabled'
871892
property :description, as: 'description'
872893
property :encryption_type, as: 'encryptionType'
873894
property :global_access_allowed, as: 'globalAccessAllowed'
@@ -883,6 +904,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
883904
property :service_level, as: 'serviceLevel'
884905
property :state, as: 'state'
885906
property :state_details, as: 'stateDetails'
907+
property :total_iops, :numeric_string => true, as: 'totalIops'
908+
property :total_throughput_mibps, :numeric_string => true, as: 'totalThroughputMibps'
886909
property :volume_capacity_gib, :numeric_string => true, as: 'volumeCapacityGib'
887910
property :volume_count, as: 'volumeCount'
888911
property :zone, as: 'zone'

0 commit comments

Comments
 (0)