Skip to content

Commit 931eb00

Browse files
feat: Automated regeneration of netapp v1 client (#25376)
Auto-created at 2026-01-18 09:41:25 +0000 using the toys pull request generator.
1 parent 7a3cd5a commit 931eb00

File tree

6 files changed

+126
-19
lines changed

6 files changed

+126
-19
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310972,6 +310972,12 @@
310972310972
"/netapp:v1/EstablishPeeringRequest/peerIpAddresses/peer_ip_address": peer_ip_address
310973310973
"/netapp:v1/EstablishPeeringRequest/peerSvmName": peer_svm_name
310974310974
"/netapp:v1/EstablishPeeringRequest/peerVolumeName": peer_volume_name
310975+
"/netapp:v1/EstablishVolumePeeringRequest": establish_volume_peering_request
310976+
"/netapp:v1/EstablishVolumePeeringRequest/peerClusterName": peer_cluster_name
310977+
"/netapp:v1/EstablishVolumePeeringRequest/peerIpAddresses": peer_ip_addresses
310978+
"/netapp:v1/EstablishVolumePeeringRequest/peerIpAddresses/peer_ip_address": peer_ip_address
310979+
"/netapp:v1/EstablishVolumePeeringRequest/peerSvmName": peer_svm_name
310980+
"/netapp:v1/EstablishVolumePeeringRequest/peerVolumeName": peer_volume_name
310975310981
"/netapp:v1/ExportPolicy": export_policy
310976310982
"/netapp:v1/ExportPolicy/rules": rules
310977310983
"/netapp:v1/ExportPolicy/rules/rule": rule
@@ -311522,6 +311528,8 @@
311522311528
"/netapp:v1/netapp.projects.locations.volumes.delete": delete_project_location_volume
311523311529
"/netapp:v1/netapp.projects.locations.volumes.delete/force": force
311524311530
"/netapp:v1/netapp.projects.locations.volumes.delete/name": name
311531+
"/netapp:v1/netapp.projects.locations.volumes.establishPeering": establish_project_location_volume_peering
311532+
"/netapp:v1/netapp.projects.locations.volumes.establishPeering/name": name
311525311533
"/netapp:v1/netapp.projects.locations.volumes.get": get_project_location_volume
311526311534
"/netapp:v1/netapp.projects.locations.volumes.get/name": name
311527311535
"/netapp:v1/netapp.projects.locations.volumes.list": list_project_location_volumes

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.24.0 (2026-01-18)
4+
5+
* Regenerated from discovery document revision 20260111
6+
37
### v0.23.0 (2026-01-11)
48

59
* Regenerated from discovery document revision 20260106

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

Lines changed: 59 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ 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:
495+
# Output only. The crypto key version used to encrypt the backup vault. Format: `
496496
# projects/`project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`
497-
# crypto_key`/cryptoKeyVersions/`crypto_key_version`
497+
# crypto_key`/cryptoKeyVersions/`crypto_key_version``
498498
# Corresponds to the JSON property `backupsCryptoKeyVersion`
499499
# @return [String]
500500
attr_accessor :backups_crypto_key_version
@@ -520,8 +520,9 @@ class BackupVault
520520
# @return [String]
521521
attr_accessor :encryption_state
522522

523-
# Optional. Specifies the KMS config to be used for backup encryption. Format:
524-
# projects/`project`/locations/`location`/kmsConfigs/`kms_config`
523+
# Optional. Specifies the Key Management System (KMS) configuration to be used
524+
# for backup encryption. Format: `projects/`project`/locations/`location`/
525+
# kmsConfigs/`kms_config``
525526
# Corresponds to the JSON property `kmsConfig`
526527
# @return [String]
527528
attr_accessor :kms_config
@@ -595,11 +596,11 @@ class BlockDevice
595596
attr_accessor :identifier
596597

597598
# Optional. User-defined name for the block device, unique within the volume. In
598-
# case no user input is provided, name will be autogenerated in the backend. The
599-
# name must meet the following requirements: * Be between 1 and 255 characters
600-
# long. * Contain only uppercase or lowercase letters (A-Z, a-z), numbers (0-9),
601-
# and the following special characters: "-", "_", "`", "`", ".". * Spaces are
602-
# not allowed.
599+
# case no user input is provided, name will be auto-generated in the backend.
600+
# The name must meet the following requirements: * Be between 1 and 255
601+
# characters long. * Contain only uppercase or lowercase letters (A-Z, a-z),
602+
# numbers (0-9), and the following special characters: "-", "_", "`", "`", ".". *
603+
# Spaces are not allowed.
603604
# Corresponds to the JSON property `name`
604605
# @return [String]
605606
attr_accessor :name
@@ -770,7 +771,7 @@ class CachePrePopulate
770771
# @return [Array<String>]
771772
attr_accessor :path_list
772773

773-
# Optional. Flag indicating whether the directories listed with the pathList
774+
# Optional. Flag indicating whether the directories listed with the `path_list`
774775
# need to be recursively pre-populated.
775776
# Corresponds to the JSON property `recursion`
776777
# @return [Boolean]
@@ -936,6 +937,47 @@ def update!(**args)
936937
end
937938
end
938939

940+
# EstablishVolumePeeringRequest establishes cluster and svm peerings between the
941+
# source and destination clusters.
942+
class EstablishVolumePeeringRequest
943+
include Google::Apis::Core::Hashable
944+
945+
# Required. Name of the user's local source cluster to be peered with the
946+
# destination cluster.
947+
# Corresponds to the JSON property `peerClusterName`
948+
# @return [String]
949+
attr_accessor :peer_cluster_name
950+
951+
# Optional. List of IPv4 ip addresses to be used for peering.
952+
# Corresponds to the JSON property `peerIpAddresses`
953+
# @return [Array<String>]
954+
attr_accessor :peer_ip_addresses
955+
956+
# Required. Name of the user's local source vserver svm to be peered with the
957+
# destination vserver svm.
958+
# Corresponds to the JSON property `peerSvmName`
959+
# @return [String]
960+
attr_accessor :peer_svm_name
961+
962+
# Required. Name of the user's local source volume to be peered with the
963+
# destination volume.
964+
# Corresponds to the JSON property `peerVolumeName`
965+
# @return [String]
966+
attr_accessor :peer_volume_name
967+
968+
def initialize(**args)
969+
update!(**args)
970+
end
971+
972+
# Update properties of this object
973+
def update!(**args)
974+
@peer_cluster_name = args[:peer_cluster_name] if args.key?(:peer_cluster_name)
975+
@peer_ip_addresses = args[:peer_ip_addresses] if args.key?(:peer_ip_addresses)
976+
@peer_svm_name = args[:peer_svm_name] if args.key?(:peer_svm_name)
977+
@peer_volume_name = args[:peer_volume_name] if args.key?(:peer_volume_name)
978+
end
979+
end
980+
939981
# Defines the export policy for the volume.
940982
class ExportPolicy
941983
include Google::Apis::Core::Hashable
@@ -1205,7 +1247,7 @@ def update!(**args)
12051247
end
12061248
end
12071249

1208-
# KmsConfig is the customer managed encryption key(CMEK) configuration.
1250+
# KmsConfig is the customer-managed encryption key(CMEK) configuration.
12091251
class KmsConfig
12101252
include Google::Apis::Core::Hashable
12111253

@@ -1214,8 +1256,8 @@ class KmsConfig
12141256
# @return [String]
12151257
attr_accessor :create_time
12161258

1217-
# Required. Customer managed crypto key resource full name. Format: `projects/`
1218-
# project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`crypto_key``.
1259+
# Required. Customer-managed crypto key resource full name. Format: `projects/`
1260+
# project`/locations/`location`/keyRings/`key_ring`/cryptoKeys/`crypto_key``
12191261
# Corresponds to the JSON property `cryptoKeyName`
12201262
# @return [String]
12211263
attr_accessor :crypto_key_name
@@ -1236,7 +1278,8 @@ class KmsConfig
12361278
# @return [Hash<String,String>]
12371279
attr_accessor :labels
12381280

1239-
# Identifier. Name of the KmsConfig.
1281+
# Identifier. Name of the KmsConfig. Format: `projects/`project`/locations/`
1282+
# location`/kmsConfigs/`kms_config``
12401283
# Corresponds to the JSON property `name`
12411284
# @return [String]
12421285
attr_accessor :name
@@ -2293,8 +2336,8 @@ class SimpleExportPolicyRule
22932336
# @return [String]
22942337
attr_accessor :allowed_clients
22952338

2296-
# Optional. An integer representing the anonymous user ID. Range is 0 to
2297-
# 4294967295. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
2339+
# Optional. An integer representing the anonymous user ID. Range is 0 to `
2340+
# 4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
22982341
# Corresponds to the JSON property `anonUid`
22992342
# @return [Fixnum]
23002343
attr_accessor :anon_uid

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.23.0"
19+
GEM_VERSION = "0.24.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 = "20260106"
25+
REVISION = "20260111"
2626
end
2727
end
2828
end

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
112112
include Google::Apis::Core::JsonObjectSupport
113113
end
114114

115+
class EstablishVolumePeeringRequest
116+
class Representation < Google::Apis::Core::JsonRepresentation; end
117+
118+
include Google::Apis::Core::JsonObjectSupport
119+
end
120+
115121
class ExportPolicy
116122
class Representation < Google::Apis::Core::JsonRepresentation; end
117123

@@ -605,6 +611,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
605611
end
606612
end
607613

614+
class EstablishVolumePeeringRequest
615+
# @private
616+
class Representation < Google::Apis::Core::JsonRepresentation
617+
property :peer_cluster_name, as: 'peerClusterName'
618+
collection :peer_ip_addresses, as: 'peerIpAddresses'
619+
property :peer_svm_name, as: 'peerSvmName'
620+
property :peer_volume_name, as: 'peerVolumeName'
621+
end
622+
end
623+
608624
class ExportPolicy
609625
# @private
610626
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,8 @@ def list_project_location_kms_configs(parent, filter: nil, order_by: nil, page_s
12421242

12431243
# Updates the Kms config properties with the full spec
12441244
# @param [String] name
1245-
# Identifier. Name of the KmsConfig.
1245+
# Identifier. Name of the KmsConfig. Format: `projects/`project`/locations/`
1246+
# location`/kmsConfigs/`kms_config``
12461247
# @param [Google::Apis::NetappV1::KmsConfig] kms_config_object
12471248
# @param [String] update_mask
12481249
# Required. Field mask is used to specify the fields to be overwritten in the
@@ -1788,6 +1789,41 @@ def delete_project_location_volume(name, force: nil, fields: nil, quota_user: ni
17881789
execute_or_queue_command(command, &block)
17891790
end
17901791

1792+
# Establish volume peering. This is used to establish cluster and svm peerings
1793+
# between the GCNV and OnPrem clusters.
1794+
# @param [String] name
1795+
# Required. The volume resource name, in the format `projects/`project_id`/
1796+
# locations/`location`/volumes/`volume_id``
1797+
# @param [Google::Apis::NetappV1::EstablishVolumePeeringRequest] establish_volume_peering_request_object
1798+
# @param [String] fields
1799+
# Selector specifying which fields to include in a partial response.
1800+
# @param [String] quota_user
1801+
# Available to use for quota purposes for server-side applications. Can be any
1802+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1803+
# @param [Google::Apis::RequestOptions] options
1804+
# Request-specific options
1805+
#
1806+
# @yield [result, err] Result & error if block supplied
1807+
# @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object
1808+
# @yieldparam err [StandardError] error object if request failed
1809+
#
1810+
# @return [Google::Apis::NetappV1::Operation]
1811+
#
1812+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1813+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1814+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1815+
def establish_project_location_volume_peering(name, establish_volume_peering_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1816+
command = make_simple_command(:post, 'v1/{+name}:establishPeering', options)
1817+
command.request_representation = Google::Apis::NetappV1::EstablishVolumePeeringRequest::Representation
1818+
command.request_object = establish_volume_peering_request_object
1819+
command.response_representation = Google::Apis::NetappV1::Operation::Representation
1820+
command.response_class = Google::Apis::NetappV1::Operation
1821+
command.params['name'] = name unless name.nil?
1822+
command.query['fields'] = fields unless fields.nil?
1823+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1824+
execute_or_queue_command(command, &block)
1825+
end
1826+
17911827
# Gets details of a single Volume.
17921828
# @param [String] name
17931829
# Required. Name of the volume

0 commit comments

Comments
 (0)