Skip to content

Commit 4271393

Browse files
feat: Automated regeneration of netapp v1 client (googleapis#25253)
Auto-created at 2025-12-14 11:10:25 +0000 using the toys pull request generator.
1 parent 4c951f9 commit 4271393

File tree

6 files changed

+135
-19
lines changed

6 files changed

+135
-19
lines changed

api_names_out.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309398,9 +309398,12 @@
309398309398
"/netapp:v1/BackupVault/backupRegion": backup_region
309399309399
"/netapp:v1/BackupVault/backupRetentionPolicy": backup_retention_policy
309400309400
"/netapp:v1/BackupVault/backupVaultType": backup_vault_type
309401+
"/netapp:v1/BackupVault/backupsCryptoKeyVersion": backups_crypto_key_version
309401309402
"/netapp:v1/BackupVault/createTime": create_time
309402309403
"/netapp:v1/BackupVault/description": description
309403309404
"/netapp:v1/BackupVault/destinationBackupVault": destination_backup_vault
309405+
"/netapp:v1/BackupVault/encryptionState": encryption_state
309406+
"/netapp:v1/BackupVault/kmsConfig": kms_config
309404309407
"/netapp:v1/BackupVault/labels": labels
309405309408
"/netapp:v1/BackupVault/labels/label": label
309406309409
"/netapp:v1/BackupVault/name": name
@@ -309418,7 +309421,10 @@
309418309421
"/netapp:v1/BlockDevice/osType": os_type
309419309422
"/netapp:v1/BlockDevice/sizeGib": size_gib
309420309423
"/netapp:v1/CacheConfig": cache_config
309424+
"/netapp:v1/CacheConfig/cachePrePopulate": cache_pre_populate
309425+
"/netapp:v1/CacheConfig/cachePrePopulateState": cache_pre_populate_state
309421309426
"/netapp:v1/CacheConfig/cifsChangeNotifyEnabled": cifs_change_notify_enabled
309427+
"/netapp:v1/CacheConfig/writebackEnabled": writeback_enabled
309422309428
"/netapp:v1/CacheParameters": cache_parameters
309423309429
"/netapp:v1/CacheParameters/cacheConfig": cache_config
309424309430
"/netapp:v1/CacheParameters/cacheState": cache_state
@@ -309432,6 +309438,12 @@
309432309438
"/netapp:v1/CacheParameters/peerVolumeName": peer_volume_name
309433309439
"/netapp:v1/CacheParameters/peeringCommandExpiryTime": peering_command_expiry_time
309434309440
"/netapp:v1/CacheParameters/stateDetails": state_details
309441+
"/netapp:v1/CachePrePopulate": cache_pre_populate
309442+
"/netapp:v1/CachePrePopulate/excludePathList": exclude_path_list
309443+
"/netapp:v1/CachePrePopulate/excludePathList/exclude_path_list": exclude_path_list
309444+
"/netapp:v1/CachePrePopulate/pathList": path_list
309445+
"/netapp:v1/CachePrePopulate/pathList/path_list": path_list
309446+
"/netapp:v1/CachePrePopulate/recursion": recursion
309435309447
"/netapp:v1/CancelOperationRequest": cancel_operation_request
309436309448
"/netapp:v1/CloudAsset": cloud_asset
309437309449
"/netapp:v1/CloudAsset/assetName": asset_name

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.22.0 (2025-12-14)
4+
5+
* Regenerated from discovery document revision 20251209
6+
37
### v0.21.0 (2025-12-07)
48

59
* Regenerated from discovery document revision 20251116

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

Lines changed: 93 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,13 @@ class BackupVault
492492
# @return [String]
493493
attr_accessor :backup_vault_type
494494

495+
# Output only. The crypto key version used to encrypt the backup vault. Format:
496+
# projects/`project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`
497+
# crypto_key`/cryptoKeyVersions/`crypto_key_version`
498+
# Corresponds to the JSON property `backupsCryptoKeyVersion`
499+
# @return [String]
500+
attr_accessor :backups_crypto_key_version
501+
495502
# Output only. Create time of the backup vault.
496503
# Corresponds to the JSON property `createTime`
497504
# @return [String]
@@ -508,6 +515,17 @@ class BackupVault
508515
# @return [String]
509516
attr_accessor :destination_backup_vault
510517

518+
# Output only. Field indicating encryption state of CMEK backups.
519+
# Corresponds to the JSON property `encryptionState`
520+
# @return [String]
521+
attr_accessor :encryption_state
522+
523+
# Optional. Specifies the KMS config to be used for backup encryption. Format:
524+
# projects/`project`/locations/`location`/kmsConfigs/`kms_config`
525+
# Corresponds to the JSON property `kmsConfig`
526+
# @return [String]
527+
attr_accessor :kms_config
528+
511529
# Resource labels to represent user provided metadata.
512530
# Corresponds to the JSON property `labels`
513531
# @return [Hash<String,String>]
@@ -545,9 +563,12 @@ def update!(**args)
545563
@backup_region = args[:backup_region] if args.key?(:backup_region)
546564
@backup_retention_policy = args[:backup_retention_policy] if args.key?(:backup_retention_policy)
547565
@backup_vault_type = args[:backup_vault_type] if args.key?(:backup_vault_type)
566+
@backups_crypto_key_version = args[:backups_crypto_key_version] if args.key?(:backups_crypto_key_version)
548567
@create_time = args[:create_time] if args.key?(:create_time)
549568
@description = args[:description] if args.key?(:description)
550569
@destination_backup_vault = args[:destination_backup_vault] if args.key?(:destination_backup_vault)
570+
@encryption_state = args[:encryption_state] if args.key?(:encryption_state)
571+
@kms_config = args[:kms_config] if args.key?(:kms_config)
551572
@labels = args[:labels] if args.key?(:labels)
552573
@name = args[:name] if args.key?(:name)
553574
@source_backup_vault = args[:source_backup_vault] if args.key?(:source_backup_vault)
@@ -567,13 +588,13 @@ class BlockDevice
567588
# @return [Array<String>]
568589
attr_accessor :host_groups
569590

570-
# Output only. Device identifier of the Block volume. This represents
571-
# lun_serial_number for iSCSI volumes
591+
# Output only. Device identifier of the block volume. This represents `
592+
# lun_serial_number` for iSCSI volumes.
572593
# Corresponds to the JSON property `identifier`
573594
# @return [String]
574595
attr_accessor :identifier
575596

576-
# Optional. User-defined name for the block device, unique within the Volume. In
597+
# Optional. User-defined name for the block device, unique within the volume. In
577598
# case no user input is provided, name will be autogenerated in the backend. The
578599
# name must meet the following requirements: * Be between 1 and 255 characters
579600
# long. * Contain only uppercase or lowercase letters (A-Z, a-z), numbers (0-9),
@@ -589,9 +610,9 @@ class BlockDevice
589610
# @return [String]
590611
attr_accessor :os_type
591612

592-
# Optional. The size of the block device in GiB. Any value provided in this
593-
# field during Volume creation is IGNORED. The block device's size is system-
594-
# managed and will be set to match the parent Volume's `capacity_gib`.
613+
# Optional. The size of the block device in GiB. Any value provided for the `
614+
# size_gib` field during volume creation is ignored. The block device's size is
615+
# system-managed and will be set to match the parent Volume's `capacity_gib`.
595616
# Corresponds to the JSON property `sizeGib`
596617
# @return [Fixnum]
597618
attr_accessor :size_gib
@@ -614,20 +635,41 @@ def update!(**args)
614635
class CacheConfig
615636
include Google::Apis::Core::Hashable
616637

638+
# Pre-populate cache volume with data from the origin volume.
639+
# Corresponds to the JSON property `cachePrePopulate`
640+
# @return [Google::Apis::NetappV1::CachePrePopulate]
641+
attr_accessor :cache_pre_populate
642+
643+
# Output only. State of the prepopulation job indicating how the prepopulation
644+
# is progressing.
645+
# Corresponds to the JSON property `cachePrePopulateState`
646+
# @return [String]
647+
attr_accessor :cache_pre_populate_state
648+
617649
# Optional. Flag indicating whether a CIFS change notification is enabled for
618650
# the FlexCache volume.
619651
# Corresponds to the JSON property `cifsChangeNotifyEnabled`
620652
# @return [Boolean]
621653
attr_accessor :cifs_change_notify_enabled
622654
alias_method :cifs_change_notify_enabled?, :cifs_change_notify_enabled
623655

656+
# Optional. Flag indicating whether writeback is enabled for the FlexCache
657+
# volume.
658+
# Corresponds to the JSON property `writebackEnabled`
659+
# @return [Boolean]
660+
attr_accessor :writeback_enabled
661+
alias_method :writeback_enabled?, :writeback_enabled
662+
624663
def initialize(**args)
625664
update!(**args)
626665
end
627666

628667
# Update properties of this object
629668
def update!(**args)
669+
@cache_pre_populate = args[:cache_pre_populate] if args.key?(:cache_pre_populate)
670+
@cache_pre_populate_state = args[:cache_pre_populate_state] if args.key?(:cache_pre_populate_state)
630671
@cifs_change_notify_enabled = args[:cifs_change_notify_enabled] if args.key?(:cifs_change_notify_enabled)
672+
@writeback_enabled = args[:writeback_enabled] if args.key?(:writeback_enabled)
631673
end
632674
end
633675

@@ -651,7 +693,7 @@ class CacheParameters
651693
# @return [String]
652694
attr_accessor :command
653695

654-
# Optional. Field indicating whether cache volume as global file lock enabled.
696+
# Optional. Indicates whether the cache volume has global file lock enabled.
655697
# Corresponds to the JSON property `enableGlobalFileLock`
656698
# @return [Boolean]
657699
attr_accessor :enable_global_file_lock
@@ -713,6 +755,40 @@ def update!(**args)
713755
end
714756
end
715757

758+
# Pre-populate cache volume with data from the origin volume.
759+
class CachePrePopulate
760+
include Google::Apis::Core::Hashable
761+
762+
# Optional. List of directory-paths to be excluded for pre-population for the
763+
# FlexCache volume.
764+
# Corresponds to the JSON property `excludePathList`
765+
# @return [Array<String>]
766+
attr_accessor :exclude_path_list
767+
768+
# Optional. List of directory-paths to be pre-populated for the FlexCache volume.
769+
# Corresponds to the JSON property `pathList`
770+
# @return [Array<String>]
771+
attr_accessor :path_list
772+
773+
# Optional. Flag indicating whether the directories listed with the pathList
774+
# need to be recursively pre-populated.
775+
# Corresponds to the JSON property `recursion`
776+
# @return [Boolean]
777+
attr_accessor :recursion
778+
alias_method :recursion?, :recursion
779+
780+
def initialize(**args)
781+
update!(**args)
782+
end
783+
784+
# Update properties of this object
785+
def update!(**args)
786+
@exclude_path_list = args[:exclude_path_list] if args.key?(:exclude_path_list)
787+
@path_list = args[:path_list] if args.key?(:path_list)
788+
@recursion = args[:recursion] if args.key?(:recursion)
789+
end
790+
end
791+
716792
# The request message for Operations.CancelOperation.
717793
class CancelOperationRequest
718794
include Google::Apis::Core::Hashable
@@ -1138,8 +1214,8 @@ class KmsConfig
11381214
# @return [String]
11391215
attr_accessor :create_time
11401216

1141-
# Required. Customer managed crypto key resource full name. Format: projects/`
1142-
# project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`crypto_key`.
1217+
# Required. Customer managed crypto key resource full name. Format: `projects/`
1218+
# project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`crypto_key``.
11431219
# Corresponds to the JSON property `cryptoKeyName`
11441220
# @return [String]
11451221
attr_accessor :crypto_key_name
@@ -2097,13 +2173,14 @@ class RestoreBackupFilesRequest
20972173
# @return [String]
20982174
attr_accessor :backup
20992175

2100-
# Required. List of files to be restored in the form of their absolute path as
2101-
# in source volume.
2176+
# Required. List of files to be restored, specified by their absolute path in
2177+
# the source volume.
21022178
# Corresponds to the JSON property `fileList`
21032179
# @return [Array<String>]
21042180
attr_accessor :file_list
21052181

2106-
# Optional. Absolute directory path in the destination volume.
2182+
# Optional. Absolute directory path in the destination volume. This is required
2183+
# if the `file_list` is provided.
21072184
# Corresponds to the JSON property `restoreDestinationPath`
21082185
# @return [String]
21092186
attr_accessor :restore_destination_path
@@ -2210,7 +2287,7 @@ class SimpleExportPolicyRule
22102287
attr_accessor :allowed_clients
22112288

22122289
# Optional. An integer representing the anonymous user ID. Range is 0 to
2213-
# 4294967295. Required when squash_mode is ROOT_SQUASH or ALL_SQUASH.
2290+
# 4294967295. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
22142291
# Corresponds to the JSON property `anonUid`
22152292
# @return [Fixnum]
22162293
attr_accessor :anon_uid
@@ -2646,8 +2723,9 @@ class StoragePool
26462723
attr_accessor :total_throughput_mibps
26472724

26482725
# Optional. Type of the storage pool. This field is used to control whether the
2649-
# pool supports FILE based volumes only or UNIFIED (both FILE and BLOCK) volumes.
2650-
# If not specified during creation, it defaults to FILE.
2726+
# pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and `BLOCK`)
2727+
# volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`) volumes with
2728+
# large capacity. If not specified during creation, it defaults to `FILE`.
26512729
# Corresponds to the JSON property `type`
26522730
# @return [String]
26532731
attr_accessor :type

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.21.0"
19+
GEM_VERSION = "0.22.0"
2020

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

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

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79+
class CachePrePopulate
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7985
class CancelOperationRequest
8086
class Representation < Google::Apis::Core::JsonRepresentation; end
8187

@@ -493,9 +499,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
493499
property :backup_retention_policy, as: 'backupRetentionPolicy', class: Google::Apis::NetappV1::BackupRetentionPolicy, decorator: Google::Apis::NetappV1::BackupRetentionPolicy::Representation
494500

495501
property :backup_vault_type, as: 'backupVaultType'
502+
property :backups_crypto_key_version, as: 'backupsCryptoKeyVersion'
496503
property :create_time, as: 'createTime'
497504
property :description, as: 'description'
498505
property :destination_backup_vault, as: 'destinationBackupVault'
506+
property :encryption_state, as: 'encryptionState'
507+
property :kms_config, as: 'kmsConfig'
499508
hash :labels, as: 'labels'
500509
property :name, as: 'name'
501510
property :source_backup_vault, as: 'sourceBackupVault'
@@ -518,7 +527,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
518527
class CacheConfig
519528
# @private
520529
class Representation < Google::Apis::Core::JsonRepresentation
530+
property :cache_pre_populate, as: 'cachePrePopulate', class: Google::Apis::NetappV1::CachePrePopulate, decorator: Google::Apis::NetappV1::CachePrePopulate::Representation
531+
532+
property :cache_pre_populate_state, as: 'cachePrePopulateState'
521533
property :cifs_change_notify_enabled, as: 'cifsChangeNotifyEnabled'
534+
property :writeback_enabled, as: 'writebackEnabled'
522535
end
523536
end
524537

@@ -540,6 +553,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
540553
end
541554
end
542555

556+
class CachePrePopulate
557+
# @private
558+
class Representation < Google::Apis::Core::JsonRepresentation
559+
collection :exclude_path_list, as: 'excludePathList'
560+
collection :path_list, as: 'pathList'
561+
property :recursion, as: 'recursion'
562+
end
563+
end
564+
543565
class CancelOperationRequest
544566
# @private
545567
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ def get_project_location_host_group(name, fields: nil, quota_user: nil, options:
984984
execute_or_queue_command(command, &block)
985985
end
986986

987-
# Returns a list of host groups in a location. Use '-' as location to list host
988-
# groups across all locations.
987+
# Returns a list of host groups in a `location`. Use `-` as location to list
988+
# host groups across all locations.
989989
# @param [String] parent
990990
# Required. Parent value for ListHostGroupsRequest
991991
# @param [String] filter

0 commit comments

Comments
 (0)