Skip to content

Commit 2c1342e

Browse files
feat: Automated regeneration of netapp v1 client (#24346)
Auto-created at 2025-09-21 09:58:40 +0000 using the toys pull request generator.
1 parent 330a862 commit 2c1342e

File tree

6 files changed

+259
-2
lines changed

6 files changed

+259
-2
lines changed

api_names_out.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296318,6 +296318,21 @@
296318296318
"/netapp:v1/BlobstoreLocation": blobstore_location
296319296319
"/netapp:v1/BlobstoreLocation/policyId": policy_id
296320296320
"/netapp:v1/BlobstoreLocation/policyId/policy_id": policy_id
296321+
"/netapp:v1/CacheConfig": cache_config
296322+
"/netapp:v1/CacheConfig/cifsChangeNotifyEnabled": cifs_change_notify_enabled
296323+
"/netapp:v1/CacheParameters": cache_parameters
296324+
"/netapp:v1/CacheParameters/cacheConfig": cache_config
296325+
"/netapp:v1/CacheParameters/cacheState": cache_state
296326+
"/netapp:v1/CacheParameters/command": command
296327+
"/netapp:v1/CacheParameters/enableGlobalFileLock": enable_global_file_lock
296328+
"/netapp:v1/CacheParameters/passphrase": passphrase
296329+
"/netapp:v1/CacheParameters/peerClusterName": peer_cluster_name
296330+
"/netapp:v1/CacheParameters/peerIpAddresses": peer_ip_addresses
296331+
"/netapp:v1/CacheParameters/peerIpAddresses/peer_ip_address": peer_ip_address
296332+
"/netapp:v1/CacheParameters/peerSvmName": peer_svm_name
296333+
"/netapp:v1/CacheParameters/peerVolumeName": peer_volume_name
296334+
"/netapp:v1/CacheParameters/peeringCommandExpiryTime": peering_command_expiry_time
296335+
"/netapp:v1/CacheParameters/stateDetails": state_details
296321296336
"/netapp:v1/CancelOperationRequest": cancel_operation_request
296322296337
"/netapp:v1/CloudAsset": cloud_asset
296323296338
"/netapp:v1/CloudAsset/assetName": asset_name
@@ -296555,6 +296570,11 @@
296555296570
"/netapp:v1/RequirementOverride": requirement_override
296556296571
"/netapp:v1/RequirementOverride/ziOverride": zi_override
296557296572
"/netapp:v1/RequirementOverride/zsOverride": zs_override
296573+
"/netapp:v1/RestoreBackupFilesRequest": restore_backup_files_request
296574+
"/netapp:v1/RestoreBackupFilesRequest/backup": backup
296575+
"/netapp:v1/RestoreBackupFilesRequest/fileList": file_list
296576+
"/netapp:v1/RestoreBackupFilesRequest/fileList/file_list": file_list
296577+
"/netapp:v1/RestoreBackupFilesRequest/restoreDestinationPath": restore_destination_path
296558296578
"/netapp:v1/RestoreParameters": restore_parameters
296559296579
"/netapp:v1/RestoreParameters/sourceBackup": source_backup
296560296580
"/netapp:v1/RestoreParameters/sourceSnapshot": source_snapshot
@@ -296668,6 +296688,7 @@
296668296688
"/netapp:v1/Volume": volume
296669296689
"/netapp:v1/Volume/activeDirectory": active_directory
296670296690
"/netapp:v1/Volume/backupConfig": backup_config
296691+
"/netapp:v1/Volume/cacheParameters": cache_parameters
296671296692
"/netapp:v1/Volume/capacityGib": capacity_gib
296672296693
"/netapp:v1/Volume/coldTierSizeGib": cold_tier_size_gib
296673296694
"/netapp:v1/Volume/createTime": create_time
@@ -296902,6 +296923,8 @@
296902296923
"/netapp:v1/netapp.projects.locations.volumes.replications.stop/name": name
296903296924
"/netapp:v1/netapp.projects.locations.volumes.replications.sync": sync_replication
296904296925
"/netapp:v1/netapp.projects.locations.volumes.replications.sync/name": name
296926+
"/netapp:v1/netapp.projects.locations.volumes.restore": restore_volume_backup_files
296927+
"/netapp:v1/netapp.projects.locations.volumes.restore/name": name
296905296928
"/netapp:v1/netapp.projects.locations.volumes.revert": revert_volume
296906296929
"/netapp:v1/netapp.projects.locations.volumes.revert/name": name
296907296930
"/netapp:v1/netapp.projects.locations.volumes.snapshots.create": create_project_location_volume_snapshot

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.17.0 (2025-09-21)
4+
5+
* Regenerated from discovery document revision 20250917
6+
37
### v0.16.0 (2025-09-14)
48

59
* Regenerated from discovery document revision 20250908

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

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,109 @@ def update!(**args)
556556
end
557557
end
558558

559+
# Configuration of the cache volume.
560+
class CacheConfig
561+
include Google::Apis::Core::Hashable
562+
563+
# Optional. Flag indicating whether a CIFS change notification is enabled for
564+
# the FlexCache volume.
565+
# Corresponds to the JSON property `cifsChangeNotifyEnabled`
566+
# @return [Boolean]
567+
attr_accessor :cifs_change_notify_enabled
568+
alias_method :cifs_change_notify_enabled?, :cifs_change_notify_enabled
569+
570+
def initialize(**args)
571+
update!(**args)
572+
end
573+
574+
# Update properties of this object
575+
def update!(**args)
576+
@cifs_change_notify_enabled = args[:cifs_change_notify_enabled] if args.key?(:cifs_change_notify_enabled)
577+
end
578+
end
579+
580+
# Cache Parameters for the volume.
581+
class CacheParameters
582+
include Google::Apis::Core::Hashable
583+
584+
# Configuration of the cache volume.
585+
# Corresponds to the JSON property `cacheConfig`
586+
# @return [Google::Apis::NetappV1::CacheConfig]
587+
attr_accessor :cache_config
588+
589+
# Output only. State of the cache volume indicating the peering status.
590+
# Corresponds to the JSON property `cacheState`
591+
# @return [String]
592+
attr_accessor :cache_state
593+
594+
# Output only. Copy-paste-able commands to be used on user's ONTAP to accept
595+
# peering requests.
596+
# Corresponds to the JSON property `command`
597+
# @return [String]
598+
attr_accessor :command
599+
600+
# Optional. Field indicating whether cache volume as global file lock enabled.
601+
# Corresponds to the JSON property `enableGlobalFileLock`
602+
# @return [Boolean]
603+
attr_accessor :enable_global_file_lock
604+
alias_method :enable_global_file_lock?, :enable_global_file_lock
605+
606+
# Output only. Temporary passphrase generated to accept cluster peering command.
607+
# Corresponds to the JSON property `passphrase`
608+
# @return [String]
609+
attr_accessor :passphrase
610+
611+
# Required. Name of the origin volume's ONTAP cluster.
612+
# Corresponds to the JSON property `peerClusterName`
613+
# @return [String]
614+
attr_accessor :peer_cluster_name
615+
616+
# Required. List of IC LIF addresses of the origin volume's ONTAP cluster.
617+
# Corresponds to the JSON property `peerIpAddresses`
618+
# @return [Array<String>]
619+
attr_accessor :peer_ip_addresses
620+
621+
# Required. Name of the origin volume's SVM.
622+
# Corresponds to the JSON property `peerSvmName`
623+
# @return [String]
624+
attr_accessor :peer_svm_name
625+
626+
# Required. Name of the origin volume for the cache volume.
627+
# Corresponds to the JSON property `peerVolumeName`
628+
# @return [String]
629+
attr_accessor :peer_volume_name
630+
631+
# Optional. Expiration time for the peering command to be executed on user's
632+
# ONTAP.
633+
# Corresponds to the JSON property `peeringCommandExpiryTime`
634+
# @return [String]
635+
attr_accessor :peering_command_expiry_time
636+
637+
# Output only. Detailed description of the current cache state.
638+
# Corresponds to the JSON property `stateDetails`
639+
# @return [String]
640+
attr_accessor :state_details
641+
642+
def initialize(**args)
643+
update!(**args)
644+
end
645+
646+
# Update properties of this object
647+
def update!(**args)
648+
@cache_config = args[:cache_config] if args.key?(:cache_config)
649+
@cache_state = args[:cache_state] if args.key?(:cache_state)
650+
@command = args[:command] if args.key?(:command)
651+
@enable_global_file_lock = args[:enable_global_file_lock] if args.key?(:enable_global_file_lock)
652+
@passphrase = args[:passphrase] if args.key?(:passphrase)
653+
@peer_cluster_name = args[:peer_cluster_name] if args.key?(:peer_cluster_name)
654+
@peer_ip_addresses = args[:peer_ip_addresses] if args.key?(:peer_ip_addresses)
655+
@peer_svm_name = args[:peer_svm_name] if args.key?(:peer_svm_name)
656+
@peer_volume_name = args[:peer_volume_name] if args.key?(:peer_volume_name)
657+
@peering_command_expiry_time = args[:peering_command_expiry_time] if args.key?(:peering_command_expiry_time)
658+
@state_details = args[:state_details] if args.key?(:state_details)
659+
end
660+
end
661+
559662
# The request message for Operations.CancelOperation.
560663
class CancelOperationRequest
561664
include Google::Apis::Core::Hashable
@@ -1825,6 +1928,39 @@ def update!(**args)
18251928
end
18261929
end
18271930

1931+
# RestoreBackupFilesRequest restores files from a backup to a volume.
1932+
class RestoreBackupFilesRequest
1933+
include Google::Apis::Core::Hashable
1934+
1935+
# Required. The backup resource name, in the format `projects/`project_id`/
1936+
# locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id``
1937+
# Corresponds to the JSON property `backup`
1938+
# @return [String]
1939+
attr_accessor :backup
1940+
1941+
# Required. List of files to be restored in the form of their absolute path as
1942+
# in source volume.
1943+
# Corresponds to the JSON property `fileList`
1944+
# @return [Array<String>]
1945+
attr_accessor :file_list
1946+
1947+
# Optional. Absolute directory path in the destination volume.
1948+
# Corresponds to the JSON property `restoreDestinationPath`
1949+
# @return [String]
1950+
attr_accessor :restore_destination_path
1951+
1952+
def initialize(**args)
1953+
update!(**args)
1954+
end
1955+
1956+
# Update properties of this object
1957+
def update!(**args)
1958+
@backup = args[:backup] if args.key?(:backup)
1959+
@file_list = args[:file_list] if args.key?(:file_list)
1960+
@restore_destination_path = args[:restore_destination_path] if args.key?(:restore_destination_path)
1961+
end
1962+
end
1963+
18281964
# The RestoreParameters if volume is created from a snapshot or backup.
18291965
class RestoreParameters
18301966
include Google::Apis::Core::Hashable
@@ -2629,6 +2765,11 @@ class Volume
26292765
# @return [Google::Apis::NetappV1::BackupConfig]
26302766
attr_accessor :backup_config
26312767

2768+
# Cache Parameters for the volume.
2769+
# Corresponds to the JSON property `cacheParameters`
2770+
# @return [Google::Apis::NetappV1::CacheParameters]
2771+
attr_accessor :cache_parameters
2772+
26322773
# Required. Capacity in GIB of the volume
26332774
# Corresponds to the JSON property `capacityGib`
26342775
# @return [Fixnum]
@@ -2846,6 +2987,7 @@ def initialize(**args)
28462987
def update!(**args)
28472988
@active_directory = args[:active_directory] if args.key?(:active_directory)
28482989
@backup_config = args[:backup_config] if args.key?(:backup_config)
2990+
@cache_parameters = args[:cache_parameters] if args.key?(:cache_parameters)
28492991
@capacity_gib = args[:capacity_gib] if args.key?(:capacity_gib)
28502992
@cold_tier_size_gib = args[:cold_tier_size_gib] if args.key?(:cold_tier_size_gib)
28512993
@create_time = args[:create_time] if args.key?(:create_time)

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.16.0"
19+
GEM_VERSION = "0.17.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 = "20250908"
25+
REVISION = "20250917"
2626
end
2727
end
2828
end

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

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
5858
include Google::Apis::Core::JsonObjectSupport
5959
end
6060

61+
class CacheConfig
62+
class Representation < Google::Apis::Core::JsonRepresentation; end
63+
64+
include Google::Apis::Core::JsonObjectSupport
65+
end
66+
67+
class CacheParameters
68+
class Representation < Google::Apis::Core::JsonRepresentation; end
69+
70+
include Google::Apis::Core::JsonObjectSupport
71+
end
72+
6173
class CancelOperationRequest
6274
class Representation < Google::Apis::Core::JsonRepresentation; end
6375

@@ -244,6 +256,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
244256
include Google::Apis::Core::JsonObjectSupport
245257
end
246258

259+
class RestoreBackupFilesRequest
260+
class Representation < Google::Apis::Core::JsonRepresentation; end
261+
262+
include Google::Apis::Core::JsonObjectSupport
263+
end
264+
247265
class RestoreParameters
248266
class Representation < Google::Apis::Core::JsonRepresentation; end
249267

@@ -468,6 +486,31 @@ class Representation < Google::Apis::Core::JsonRepresentation
468486
end
469487
end
470488

489+
class CacheConfig
490+
# @private
491+
class Representation < Google::Apis::Core::JsonRepresentation
492+
property :cifs_change_notify_enabled, as: 'cifsChangeNotifyEnabled'
493+
end
494+
end
495+
496+
class CacheParameters
497+
# @private
498+
class Representation < Google::Apis::Core::JsonRepresentation
499+
property :cache_config, as: 'cacheConfig', class: Google::Apis::NetappV1::CacheConfig, decorator: Google::Apis::NetappV1::CacheConfig::Representation
500+
501+
property :cache_state, as: 'cacheState'
502+
property :command, as: 'command'
503+
property :enable_global_file_lock, as: 'enableGlobalFileLock'
504+
property :passphrase, as: 'passphrase'
505+
property :peer_cluster_name, as: 'peerClusterName'
506+
collection :peer_ip_addresses, as: 'peerIpAddresses'
507+
property :peer_svm_name, as: 'peerSvmName'
508+
property :peer_volume_name, as: 'peerVolumeName'
509+
property :peering_command_expiry_time, as: 'peeringCommandExpiryTime'
510+
property :state_details, as: 'stateDetails'
511+
end
512+
end
513+
471514
class CancelOperationRequest
472515
# @private
473516
class Representation < Google::Apis::Core::JsonRepresentation
@@ -805,6 +848,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
805848
end
806849
end
807850

851+
class RestoreBackupFilesRequest
852+
# @private
853+
class Representation < Google::Apis::Core::JsonRepresentation
854+
property :backup, as: 'backup'
855+
collection :file_list, as: 'fileList'
856+
property :restore_destination_path, as: 'restoreDestinationPath'
857+
end
858+
end
859+
808860
class RestoreParameters
809861
# @private
810862
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1002,6 +1054,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
10021054
property :active_directory, as: 'activeDirectory'
10031055
property :backup_config, as: 'backupConfig', class: Google::Apis::NetappV1::BackupConfig, decorator: Google::Apis::NetappV1::BackupConfig::Representation
10041056

1057+
property :cache_parameters, as: 'cacheParameters', class: Google::Apis::NetappV1::CacheParameters, decorator: Google::Apis::NetappV1::CacheParameters::Representation
1058+
10051059
property :capacity_gib, :numeric_string => true, as: 'capacityGib'
10061060
property :cold_tier_size_gib, :numeric_string => true, as: 'coldTierSizeGib'
10071061
property :create_time, as: 'createTime'

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,40 @@ def patch_project_location_volume(name, volume_object = nil, update_mask: nil, f
17101710
execute_or_queue_command(command, &block)
17111711
end
17121712

1713+
# Restore files from a backup to a volume.
1714+
# @param [String] name
1715+
# Required. The volume resource name, in the format `projects/`project_id`/
1716+
# locations/`location`/volumes/`volume_id``
1717+
# @param [Google::Apis::NetappV1::RestoreBackupFilesRequest] restore_backup_files_request_object
1718+
# @param [String] fields
1719+
# Selector specifying which fields to include in a partial response.
1720+
# @param [String] quota_user
1721+
# Available to use for quota purposes for server-side applications. Can be any
1722+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1723+
# @param [Google::Apis::RequestOptions] options
1724+
# Request-specific options
1725+
#
1726+
# @yield [result, err] Result & error if block supplied
1727+
# @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object
1728+
# @yieldparam err [StandardError] error object if request failed
1729+
#
1730+
# @return [Google::Apis::NetappV1::Operation]
1731+
#
1732+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1733+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1734+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1735+
def restore_volume_backup_files(name, restore_backup_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1736+
command = make_simple_command(:post, 'v1/{+name}:restore', options)
1737+
command.request_representation = Google::Apis::NetappV1::RestoreBackupFilesRequest::Representation
1738+
command.request_object = restore_backup_files_request_object
1739+
command.response_representation = Google::Apis::NetappV1::Operation::Representation
1740+
command.response_class = Google::Apis::NetappV1::Operation
1741+
command.params['name'] = name unless name.nil?
1742+
command.query['fields'] = fields unless fields.nil?
1743+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1744+
execute_or_queue_command(command, &block)
1745+
end
1746+
17131747
# Revert an existing volume to a specified snapshot. Warning! This operation
17141748
# will permanently revert all changes made after the snapshot was created.
17151749
# @param [String] name

0 commit comments

Comments
 (0)