diff --git a/google-cloud-netapp-v1/.owlbot-manifest.json b/google-cloud-netapp-v1/.owlbot-manifest.json index cab4a5c85371..060f3588ef30 100644 --- a/google-cloud-netapp-v1/.owlbot-manifest.json +++ b/google-cloud-netapp-v1/.owlbot-manifest.json @@ -34,6 +34,7 @@ "lib/google/cloud/netapp/v1/netapp/rest/client.rb", "lib/google/cloud/netapp/v1/netapp/rest/operations.rb", "lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb", + "lib/google/cloud/netapp/v1/ontap_pb.rb", "lib/google/cloud/netapp/v1/quota_rule_pb.rb", "lib/google/cloud/netapp/v1/replication_pb.rb", "lib/google/cloud/netapp/v1/rest.rb", @@ -55,6 +56,7 @@ "proto_docs/google/cloud/netapp/v1/common.rb", "proto_docs/google/cloud/netapp/v1/host_group.rb", "proto_docs/google/cloud/netapp/v1/kms.rb", + "proto_docs/google/cloud/netapp/v1/ontap.rb", "proto_docs/google/cloud/netapp/v1/quota_rule.rb", "proto_docs/google/cloud/netapp/v1/replication.rb", "proto_docs/google/cloud/netapp/v1/snapshot.rb", @@ -65,6 +67,7 @@ "proto_docs/google/protobuf/duration.rb", "proto_docs/google/protobuf/empty.rb", "proto_docs/google/protobuf/field_mask.rb", + "proto_docs/google/protobuf/struct.rb", "proto_docs/google/protobuf/timestamp.rb", "proto_docs/google/rpc/status.rb", "snippets/Gemfile", @@ -92,6 +95,11 @@ "snippets/netapp/delete_volume.rb", "snippets/netapp/encrypt_volumes.rb", "snippets/netapp/establish_peering.rb", + "snippets/netapp/establish_volume_peering.rb", + "snippets/netapp/execute_ontap_delete.rb", + "snippets/netapp/execute_ontap_get.rb", + "snippets/netapp/execute_ontap_patch.rb", + "snippets/netapp/execute_ontap_post.rb", "snippets/netapp/get_active_directory.rb", "snippets/netapp/get_backup.rb", "snippets/netapp/get_backup_policy.rb", diff --git a/google-cloud-netapp-v1/gapic_metadata.json b/google-cloud-netapp-v1/gapic_metadata.json index df80f1185a10..a4f5aa3d8843 100644 --- a/google-cloud-netapp-v1/gapic_metadata.json +++ b/google-cloud-netapp-v1/gapic_metadata.json @@ -75,6 +75,11 @@ "revert_volume" ] }, + "EstablishVolumePeering": { + "methods": [ + "establish_volume_peering" + ] + }, "ListSnapshots": { "methods": [ "list_snapshots" @@ -339,6 +344,26 @@ "methods": [ "delete_host_group" ] + }, + "ExecuteOntapPost": { + "methods": [ + "execute_ontap_post" + ] + }, + "ExecuteOntapGet": { + "methods": [ + "execute_ontap_get" + ] + }, + "ExecuteOntapDelete": { + "methods": [ + "execute_ontap_delete" + ] + }, + "ExecuteOntapPatch": { + "methods": [ + "execute_ontap_patch" + ] } } } diff --git a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb index 5a18989f8638..b92915600c0c 100644 --- a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +++ b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb @@ -14,6 +14,7 @@ require 'google/cloud/netapp/v1/backup_vault_pb' require 'google/cloud/netapp/v1/host_group_pb' require 'google/cloud/netapp/v1/kms_pb' +require 'google/cloud/netapp/v1/ontap_pb' require 'google/cloud/netapp/v1/quota_rule_pb' require 'google/cloud/netapp/v1/replication_pb' require 'google/cloud/netapp/v1/snapshot_pb' @@ -24,7 +25,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n1google/cloud/netapp/v1/cloud_netapp_service.proto\x12\x16google.cloud.netapp.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/netapp/v1/active_directory.proto\x1a#google/cloud/netapp/v1/backup.proto\x1a*google/cloud/netapp/v1/backup_policy.proto\x1a)google/cloud/netapp/v1/backup_vault.proto\x1a\'google/cloud/netapp/v1/host_group.proto\x1a google/cloud/netapp/v1/kms.proto\x1a\'google/cloud/netapp/v1/quota_rule.proto\x1a(google/cloud/netapp/v1/replication.proto\x1a%google/cloud/netapp/v1/snapshot.proto\x1a)google/cloud/netapp/v1/storage_pool.proto\x1a#google/cloud/netapp/v1/volume.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xe6m\n\x06NetApp\x12\xb8\x01\n\x10ListStoragePools\x12/.google.cloud.netapp.v1.ListStoragePoolsRequest\x1a\x30.google.cloud.netapp.v1.ListStoragePoolsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/storagePools\x12\xf6\x01\n\x11\x43reateStoragePool\x12\x30.google.cloud.netapp.v1.CreateStoragePoolRequest\x1a\x1d.google.longrunning.Operation\"\x8f\x01\xca\x41 \n\x0bStoragePool\x12\x11OperationMetadata\xda\x41#parent,storage_pool,storage_pool_id\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/storagePools:\x0cstorage_pool\x12\xa5\x01\n\x0eGetStoragePool\x12-.google.cloud.netapp.v1.GetStoragePoolRequest\x1a#.google.cloud.netapp.v1.StoragePool\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/storagePools/*}\x12\xf8\x01\n\x11UpdateStoragePool\x12\x30.google.cloud.netapp.v1.UpdateStoragePoolRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41 \n\x0bStoragePool\x12\x11OperationMetadata\xda\x41\x18storage_pool,update_mask\x82\xd3\xe4\x93\x02M2=/v1/{storage_pool.name=projects/*/locations/*/storagePools/*}:\x0cstorage_pool\x12\xd2\x01\n\x11\x44\x65leteStoragePool\x12\x30.google.cloud.netapp.v1.DeleteStoragePoolRequest\x1a\x1d.google.longrunning.Operation\"l\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/storagePools/*}\x12\xf6\x01\n\x18ValidateDirectoryService\x12\x37.google.cloud.netapp.v1.ValidateDirectoryServiceRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/storagePools/*}:validateDirectoryService:\x01*\x12\xd7\x01\n\x17SwitchActiveReplicaZone\x12\x36.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest\x1a\x1d.google.longrunning.Operation\"e\xca\x41 \n\x0bStoragePool\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/storagePools/*}:switch:\x01*\x12\xa4\x01\n\x0bListVolumes\x12*.google.cloud.netapp.v1.ListVolumesRequest\x1a+.google.cloud.netapp.v1.ListVolumesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/volumes\x12\x91\x01\n\tGetVolume\x12(.google.cloud.netapp.v1.GetVolumeRequest\x1a\x1e.google.cloud.netapp.v1.Volume\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/volumes/*}\x12\xcf\x01\n\x0c\x43reateVolume\x12+.google.cloud.netapp.v1.CreateVolumeRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\xda\x41\x17parent,volume,volume_id\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/volumes:\x06volume\x12\xd1\x01\n\x0cUpdateVolume\x12+.google.cloud.netapp.v1.UpdateVolumeRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\xda\x41\x12volume,update_mask\x82\xd3\xe4\x93\x02<22/v1/{volume.name=projects/*/locations/*/volumes/*}:\x06volume\x12\xc3\x01\n\x0c\x44\x65leteVolume\x12+.google.cloud.netapp.v1.DeleteVolumeRequest\x1a\x1d.google.longrunning.Operation\"g\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/volumes/*}\x12\xb7\x01\n\x0cRevertVolume\x12+.google.cloud.netapp.v1.RevertVolumeRequest\x1a\x1d.google.longrunning.Operation\"[\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/volumes/*}:revert:\x01*\x12\xb6\x01\n\rListSnapshots\x12,.google.cloud.netapp.v1.ListSnapshotsRequest\x1a-.google.cloud.netapp.v1.ListSnapshotsResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*/volumes/*}/snapshots\x12\xa3\x01\n\x0bGetSnapshot\x12*.google.cloud.netapp.v1.GetSnapshotRequest\x1a .google.cloud.netapp.v1.Snapshot\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/volumes/*/snapshots/*}\x12\xe8\x01\n\x0e\x43reateSnapshot\x12-.google.cloud.netapp.v1.CreateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1d\n\x08Snapshot\x12\x11OperationMetadata\xda\x41\x1bparent,snapshot,snapshot_id\x82\xd3\xe4\x93\x02\x43\"7/v1/{parent=projects/*/locations/*/volumes/*}/snapshots:\x08snapshot\x12\xd3\x01\n\x0e\x44\x65leteSnapshot\x12-.google.cloud.netapp.v1.DeleteSnapshotRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/volumes/*/snapshots/*}\x12\xea\x01\n\x0eUpdateSnapshot\x12-.google.cloud.netapp.v1.UpdateSnapshotRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\xca\x41\x1d\n\x08Snapshot\x12\x11OperationMetadata\xda\x41\x14snapshot,update_mask\x82\xd3\xe4\x93\x02L2@/v1/{snapshot.name=projects/*/locations/*/volumes/*/snapshots/*}:\x08snapshot\x12\xcc\x01\n\x15ListActiveDirectories\x12\x34.google.cloud.netapp.v1.ListActiveDirectoriesRequest\x1a\x35.google.cloud.netapp.v1.ListActiveDirectoriesResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{parent=projects/*/locations/*}/activeDirectories\x12\xb6\x01\n\x12GetActiveDirectory\x12\x31.google.cloud.netapp.v1.GetActiveDirectoryRequest\x1a\'.google.cloud.netapp.v1.ActiveDirectory\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{name=projects/*/locations/*/activeDirectories/*}\x12\x93\x02\n\x15\x43reateActiveDirectory\x12\x34.google.cloud.netapp.v1.CreateActiveDirectoryRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\xca\x41$\n\x0f\x41\x63tiveDirectory\x12\x11OperationMetadata\xda\x41+parent,active_directory,active_directory_id\x82\xd3\xe4\x93\x02I\"5/v1/{parent=projects/*/locations/*}/activeDirectories:\x10\x61\x63tive_directory\x12\x95\x02\n\x15UpdateActiveDirectory\x12\x34.google.cloud.netapp.v1.UpdateActiveDirectoryRequest\x1a\x1d.google.longrunning.Operation\"\xa6\x01\xca\x41$\n\x0f\x41\x63tiveDirectory\x12\x11OperationMetadata\xda\x41\x1c\x61\x63tive_directory,update_mask\x82\xd3\xe4\x93\x02Z2F/v1/{active_directory.name=projects/*/locations/*/activeDirectories/*}:\x10\x61\x63tive_directory\x12\xdf\x01\n\x15\x44\x65leteActiveDirectory\x12\x34.google.cloud.netapp.v1.DeleteActiveDirectoryRequest\x1a\x1d.google.longrunning.Operation\"q\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1/{name=projects/*/locations/*/activeDirectories/*}\x12\xb0\x01\n\x0eListKmsConfigs\x12-.google.cloud.netapp.v1.ListKmsConfigsRequest\x1a..google.cloud.netapp.v1.ListKmsConfigsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/kmsConfigs\x12\xe8\x01\n\x0f\x43reateKmsConfig\x12..google.cloud.netapp.v1.CreateKmsConfigRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\x1e\n\tKmsConfig\x12\x11OperationMetadata\xda\x41\x1fparent,kms_config,kms_config_id\x82\xd3\xe4\x93\x02<\"./v1/{parent=projects/*/locations/*}/kmsConfigs:\nkms_config\x12\x9d\x01\n\x0cGetKmsConfig\x12+.google.cloud.netapp.v1.GetKmsConfigRequest\x1a!.google.cloud.netapp.v1.KmsConfig\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/kmsConfigs/*}\x12\xea\x01\n\x0fUpdateKmsConfig\x12..google.cloud.netapp.v1.UpdateKmsConfigRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1e\n\tKmsConfig\x12\x11OperationMetadata\xda\x41\x16kms_config,update_mask\x82\xd3\xe4\x93\x02G29/v1/{kms_config.name=projects/*/locations/*/kmsConfigs/*}:\nkms_config\x12\xc2\x01\n\x0e\x45ncryptVolumes\x12-.google.cloud.netapp.v1.EncryptVolumesRequest\x1a\x1d.google.longrunning.Operation\"b\xca\x41\x1e\n\tKmsConfig\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/kmsConfigs/*}:encrypt:\x01*\x12\xb4\x01\n\x0fVerifyKmsConfig\x12..google.cloud.netapp.v1.VerifyKmsConfigRequest\x1a/.google.cloud.netapp.v1.VerifyKmsConfigResponse\"@\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/kmsConfigs/*}:verify:\x01*\x12\xcc\x01\n\x0f\x44\x65leteKmsConfig\x12..google.cloud.netapp.v1.DeleteKmsConfigRequest\x1a\x1d.google.longrunning.Operation\"j\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/kmsConfigs/*}\x12\xc2\x01\n\x10ListReplications\x12/.google.cloud.netapp.v1.ListReplicationsRequest\x1a\x30.google.cloud.netapp.v1.ListReplicationsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/volumes/*}/replications\x12\xaf\x01\n\x0eGetReplication\x12-.google.cloud.netapp.v1.GetReplicationRequest\x1a#.google.cloud.netapp.v1.Replication\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/locations/*/volumes/*/replications/*}\x12\xfd\x01\n\x11\x43reateReplication\x12\x30.google.cloud.netapp.v1.CreateReplicationRequest\x1a\x1d.google.longrunning.Operation\"\x96\x01\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\xda\x41!parent,replication,replication_id\x82\xd3\xe4\x93\x02I\":/v1/{parent=projects/*/locations/*/volumes/*}/replications:\x0breplication\x12\xdc\x01\n\x11\x44\x65leteReplication\x12\x30.google.cloud.netapp.v1.DeleteReplicationRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02<*:/v1/{name=projects/*/locations/*/volumes/*/replications/*}\x12\xff\x01\n\x11UpdateReplication\x12\x30.google.cloud.netapp.v1.UpdateReplicationRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\xda\x41\x17replication,update_mask\x82\xd3\xe4\x93\x02U2F/v1/{replication.name=projects/*/locations/*/volumes/*/replications/*}:\x0breplication\x12\xcf\x01\n\x0fStopReplication\x12..google.cloud.netapp.v1.StopReplicationRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/volumes/*/replications/*}:stop:\x01*\x12\xd5\x01\n\x11ResumeReplication\x12\x30.google.cloud.netapp.v1.ResumeReplicationRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/volumes/*/replications/*}:resume:\x01*\x12\xf3\x01\n\x1bReverseReplicationDirection\x12:.google.cloud.netapp.v1.ReverseReplicationDirectionRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/volumes/*/replications/*}:reverseDirection:\x01*\x12\xdd\x01\n\x10\x45stablishPeering\x12/.google.cloud.netapp.v1.EstablishPeeringRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/volumes/*/replications/*}:establishPeering:\x01*\x12\xcf\x01\n\x0fSyncReplication\x12..google.cloud.netapp.v1.SyncReplicationRequest\x1a\x1d.google.longrunning.Operation\"m\xca\x41 \n\x0bReplication\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/volumes/*/replications/*}:sync:\x01*\x12\xf6\x01\n\x11\x43reateBackupVault\x12\x30.google.cloud.netapp.v1.CreateBackupVaultRequest\x1a\x1d.google.longrunning.Operation\"\x8f\x01\xca\x41 \n\x0b\x42\x61\x63kupVault\x12\x11OperationMetadata\xda\x41#parent,backup_vault,backup_vault_id\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/backupVaults:\x0c\x62\x61\x63kup_vault\x12\xa5\x01\n\x0eGetBackupVault\x12-.google.cloud.netapp.v1.GetBackupVaultRequest\x1a#.google.cloud.netapp.v1.BackupVault\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/backupVaults/*}\x12\xb8\x01\n\x10ListBackupVaults\x12/.google.cloud.netapp.v1.ListBackupVaultsRequest\x1a\x30.google.cloud.netapp.v1.ListBackupVaultsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/backupVaults\x12\xf8\x01\n\x11UpdateBackupVault\x12\x30.google.cloud.netapp.v1.UpdateBackupVaultRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41 \n\x0b\x42\x61\x63kupVault\x12\x11OperationMetadata\xda\x41\x18\x62\x61\x63kup_vault,update_mask\x82\xd3\xe4\x93\x02M2=/v1/{backup_vault.name=projects/*/locations/*/backupVaults/*}:\x0c\x62\x61\x63kup_vault\x12\xd2\x01\n\x11\x44\x65leteBackupVault\x12\x30.google.cloud.netapp.v1.DeleteBackupVaultRequest\x1a\x1d.google.longrunning.Operation\"l\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/backupVaults/*}\x12\xdf\x01\n\x0c\x43reateBackup\x12+.google.cloud.netapp.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\xca\x41\x1b\n\x06\x42\x61\x63kup\x12\x11OperationMetadata\xda\x41\x17parent,backup,backup_id\x82\xd3\xe4\x93\x02\x44\":/v1/{parent=projects/*/locations/*/backupVaults/*}/backups:\x06\x62\x61\x63kup\x12\xa0\x01\n\tGetBackup\x12(.google.cloud.netapp.v1.GetBackupRequest\x1a\x1e.google.cloud.netapp.v1.Backup\"I\xda\x41\x04name\x82\xd3\xe4\x93\x02<\x12:/v1/{name=projects/*/locations/*/backupVaults/*/backups/*}\x12\xb3\x01\n\x0bListBackups\x12*.google.cloud.netapp.v1.ListBackupsRequest\x1a+.google.cloud.netapp.v1.ListBackupsResponse\"K\xda\x41\x06parent\x82\xd3\xe4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/backupVaults/*}/backups\x12\xd2\x01\n\x0c\x44\x65leteBackup\x12+.google.cloud.netapp.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"v\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02<*:/v1/{name=projects/*/locations/*/backupVaults/*/backups/*}\x12\xe1\x01\n\x0cUpdateBackup\x12+.google.cloud.netapp.v1.UpdateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\x1b\n\x06\x42\x61\x63kup\x12\x11OperationMetadata\xda\x41\x12\x62\x61\x63kup,update_mask\x82\xd3\xe4\x93\x02K2A/v1/{backup.name=projects/*/locations/*/backupVaults/*/backups/*}:\x06\x62\x61\x63kup\x12\xfe\x01\n\x12\x43reateBackupPolicy\x12\x31.google.cloud.netapp.v1.CreateBackupPolicyRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41!\n\x0c\x42\x61\x63kupPolicy\x12\x11OperationMetadata\xda\x41%parent,backup_policy,backup_policy_id\x82\xd3\xe4\x93\x02\x43\"2/v1/{parent=projects/*/locations/*}/backupPolicies:\rbackup_policy\x12\xaa\x01\n\x0fGetBackupPolicy\x12..google.cloud.netapp.v1.GetBackupPolicyRequest\x1a$.google.cloud.netapp.v1.BackupPolicy\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/backupPolicies/*}\x12\xc0\x01\n\x12ListBackupPolicies\x12\x31.google.cloud.netapp.v1.ListBackupPoliciesRequest\x1a\x32.google.cloud.netapp.v1.ListBackupPoliciesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/backupPolicies\x12\x80\x02\n\x12UpdateBackupPolicy\x12\x31.google.cloud.netapp.v1.UpdateBackupPolicyRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41!\n\x0c\x42\x61\x63kupPolicy\x12\x11OperationMetadata\xda\x41\x19\x62\x61\x63kup_policy,update_mask\x82\xd3\xe4\x93\x02Q2@/v1/{backup_policy.name=projects/*/locations/*/backupPolicies/*}:\rbackup_policy\x12\xd6\x01\n\x12\x44\x65leteBackupPolicy\x12\x31.google.cloud.netapp.v1.DeleteBackupPolicyRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/backupPolicies/*}\x12\xba\x01\n\x0eListQuotaRules\x12-.google.cloud.netapp.v1.ListQuotaRulesRequest\x1a..google.cloud.netapp.v1.ListQuotaRulesResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*/volumes/*}/quotaRules\x12\xa7\x01\n\x0cGetQuotaRule\x12+.google.cloud.netapp.v1.GetQuotaRuleRequest\x1a!.google.cloud.netapp.v1.QuotaRule\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/volumes/*/quotaRules/*}\x12\xf2\x01\n\x0f\x43reateQuotaRule\x12..google.cloud.netapp.v1.CreateQuotaRuleRequest\x1a\x1d.google.longrunning.Operation\"\x8f\x01\xca\x41\x1e\n\tQuotaRule\x12\x11OperationMetadata\xda\x41\x1fparent,quota_rule,quota_rule_id\x82\xd3\xe4\x93\x02\x46\"8/v1/{parent=projects/*/locations/*/volumes/*}/quotaRules:\nquota_rule\x12\xf4\x01\n\x0fUpdateQuotaRule\x12..google.cloud.netapp.v1.UpdateQuotaRuleRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41\x1e\n\tQuotaRule\x12\x11OperationMetadata\xda\x41\x16quota_rule,update_mask\x82\xd3\xe4\x93\x02Q2C/v1/{quota_rule.name=projects/*/locations/*/volumes/*/quotaRules/*}:\nquota_rule\x12\xd6\x01\n\x0f\x44\x65leteQuotaRule\x12..google.cloud.netapp.v1.DeleteQuotaRuleRequest\x1a\x1d.google.longrunning.Operation\"t\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02:*8/v1/{name=projects/*/locations/*/volumes/*/quotaRules/*}\x12\xd8\x01\n\x12RestoreBackupFiles\x12\x31.google.cloud.netapp.v1.RestoreBackupFilesRequest\x1a\x1d.google.longrunning.Operation\"p\xca\x41/\n\x1aRestoreBackupFilesResponse\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x38\"3/v1/{name=projects/*/locations/*/volumes/*}:restore:\x01*\x12\xb0\x01\n\x0eListHostGroups\x12-.google.cloud.netapp.v1.ListHostGroupsRequest\x1a..google.cloud.netapp.v1.ListHostGroupsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/hostGroups\x12\x9d\x01\n\x0cGetHostGroup\x12+.google.cloud.netapp.v1.GetHostGroupRequest\x1a!.google.cloud.netapp.v1.HostGroup\"=\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/hostGroups/*}\x12\xe8\x01\n\x0f\x43reateHostGroup\x12..google.cloud.netapp.v1.CreateHostGroupRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\xca\x41\x1e\n\tHostGroup\x12\x11OperationMetadata\xda\x41\x1fparent,host_group,host_group_id\x82\xd3\xe4\x93\x02<\"./v1/{parent=projects/*/locations/*}/hostGroups:\nhost_group\x12\xea\x01\n\x0fUpdateHostGroup\x12..google.cloud.netapp.v1.UpdateHostGroupRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x1e\n\tHostGroup\x12\x11OperationMetadata\xda\x41\x16host_group,update_mask\x82\xd3\xe4\x93\x02G29/v1/{host_group.name=projects/*/locations/*/hostGroups/*}:\nhost_group\x12\xcc\x01\n\x0f\x44\x65leteHostGroup\x12..google.cloud.netapp.v1.DeleteHostGroupRequest\x1a\x1d.google.longrunning.Operation\"j\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/hostGroups/*}\x1aI\xca\x41\x15netapp.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8a\x02\n\x1a\x63om.google.cloud.netapp.v1B\x17\x43loudNetappServiceProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}b\x06proto3" +descriptor_data = "\n1google/cloud/netapp/v1/cloud_netapp_service.proto\x12\x16google.cloud.netapp.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/netapp/v1/active_directory.proto\x1a#google/cloud/netapp/v1/backup.proto\x1a*google/cloud/netapp/v1/backup_policy.proto\x1a)google/cloud/netapp/v1/backup_vault.proto\x1a\'google/cloud/netapp/v1/host_group.proto\x1a google/cloud/netapp/v1/kms.proto\x1a\"google/cloud/netapp/v1/ontap.proto\x1a\'google/cloud/netapp/v1/quota_rule.proto\x1a(google/cloud/netapp/v1/replication.proto\x1a%google/cloud/netapp/v1/snapshot.proto\x1a)google/cloud/netapp/v1/storage_pool.proto\x1a#google/cloud/netapp/v1/volume.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xceu\n\x06NetApp\x12\xb8\x01\n\x10ListStoragePools\x12/.google.cloud.netapp.v1.ListStoragePoolsRequest\x1a\x30.google.cloud.netapp.v1.ListStoragePoolsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/storagePools\x12\xf6\x01\n\x11\x43reateStoragePool\x12\x30.google.cloud.netapp.v1.CreateStoragePoolRequest\x1a\x1d.google.longrunning.Operation\"\x8f\x01\xca\x41 \n\x0bStoragePool\x12\x11OperationMetadata\xda\x41#parent,storage_pool,storage_pool_id\x82\xd3\xe4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/storagePools:\x0cstorage_pool\x12\xa5\x01\n\x0eGetStoragePool\x12-.google.cloud.netapp.v1.GetStoragePoolRequest\x1a#.google.cloud.netapp.v1.StoragePool\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/storagePools/*}\x12\xf8\x01\n\x11UpdateStoragePool\x12\x30.google.cloud.netapp.v1.UpdateStoragePoolRequest\x1a\x1d.google.longrunning.Operation\"\x91\x01\xca\x41 \n\x0bStoragePool\x12\x11OperationMetadata\xda\x41\x18storage_pool,update_mask\x82\xd3\xe4\x93\x02M2=/v1/{storage_pool.name=projects/*/locations/*/storagePools/*}:\x0cstorage_pool\x12\xd2\x01\n\x11\x44\x65leteStoragePool\x12\x30.google.cloud.netapp.v1.DeleteStoragePoolRequest\x1a\x1d.google.longrunning.Operation\"l\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/storagePools/*}\x12\xf6\x01\n\x18ValidateDirectoryService\x12\x37.google.cloud.netapp.v1.ValidateDirectoryServiceRequest\x1a\x1d.google.longrunning.Operation\"\x81\x01\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/storagePools/*}:validateDirectoryService:\x01*\x12\xd7\x01\n\x17SwitchActiveReplicaZone\x12\x36.google.cloud.netapp.v1.SwitchActiveReplicaZoneRequest\x1a\x1d.google.longrunning.Operation\"e\xca\x41 \n\x0bStoragePool\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/storagePools/*}:switch:\x01*\x12\xa4\x01\n\x0bListVolumes\x12*.google.cloud.netapp.v1.ListVolumesRequest\x1a+.google.cloud.netapp.v1.ListVolumesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/volumes\x12\x91\x01\n\tGetVolume\x12(.google.cloud.netapp.v1.GetVolumeRequest\x1a\x1e.google.cloud.netapp.v1.Volume\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/volumes/*}\x12\xcf\x01\n\x0c\x43reateVolume\x12+.google.cloud.netapp.v1.CreateVolumeRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\xda\x41\x17parent,volume,volume_id\x82\xd3\xe4\x93\x02\x35\"+/v1/{parent=projects/*/locations/*}/volumes:\x06volume\x12\xd1\x01\n\x0cUpdateVolume\x12+.google.cloud.netapp.v1.UpdateVolumeRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\xda\x41\x12volume,update_mask\x82\xd3\xe4\x93\x02<22/v1/{volume.name=projects/*/locations/*/volumes/*}:\x06volume\x12\xc3\x01\n\x0c\x44\x65leteVolume\x12+.google.cloud.netapp.v1.DeleteVolumeRequest\x1a\x1d.google.longrunning.Operation\"g\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/volumes/*}\x12\xb7\x01\n\x0cRevertVolume\x12+.google.cloud.netapp.v1.RevertVolumeRequest\x1a\x1d.google.longrunning.Operation\"[\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/volumes/*}:revert:\x01*\x12\xd5\x01\n\x16\x45stablishVolumePeering\x12\x35.google.cloud.netapp.v1.EstablishVolumePeeringRequest\x1a\x1d.google.longrunning.Operation\"e\xca\x41\x1b\n\x06Volume\x12\x11OperationMetadata\x82\xd3\xe4\x93\x02\x41\"] + # Optional. List of IPv4 ip addresses to be used for peering. + # @param peer_volume_name [::String] + # Required. Name of the user's local source volume to be peered with the + # destination volume. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new + # + # # Call the establish_volume_peering method. + # result = client.establish_volume_peering request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def establish_volume_peering request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.establish_volume_peering.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.establish_volume_peering.timeout, + metadata: metadata, + retry_policy: @config.rpcs.establish_volume_peering.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.call_rpc :establish_volume_peering, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Returns descriptions of all snapshots for a volume. # @@ -6765,6 +6872,390 @@ def delete_host_group request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # `ExecuteOntapPost` dispatches the ONTAP `POST` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_post(request, options = nil) + # Pass arguments to `execute_ontap_post` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload execute_ontap_post(body: nil, ontap_path: nil) + # Pass arguments to `execute_ontap_post` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param body [::Google::Protobuf::Struct, ::Hash] + # Required. The raw `JSON` body of the request. + # The body should be in the format of the ONTAP resource. + # For example: + # ``` + # { + # "body": { + # "field1": "value1", + # "field2": "value2", + # } + # } + # ``` + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new + # + # # Call the execute_ontap_post method. + # result = client.execute_ontap_post request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPostResponse. + # p result + # + def execute_ontap_post request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.execute_ontap_post.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.ontap_path + header_params["ontap_path"] = request.ontap_path + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.execute_ontap_post.timeout, + metadata: metadata, + retry_policy: @config.rpcs.execute_ontap_post.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.call_rpc :execute_ontap_post, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # `ExecuteOntapGet` dispatches the ONTAP `GET` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_get(request, options = nil) + # Pass arguments to `execute_ontap_get` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload execute_ontap_get(ontap_path: nil) + # Pass arguments to `execute_ontap_get` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new + # + # # Call the execute_ontap_get method. + # result = client.execute_ontap_get request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapGetResponse. + # p result + # + def execute_ontap_get request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.execute_ontap_get.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.ontap_path + header_params["ontap_path"] = request.ontap_path + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.execute_ontap_get.timeout, + metadata: metadata, + retry_policy: @config.rpcs.execute_ontap_get.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.call_rpc :execute_ontap_get, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_delete(request, options = nil) + # Pass arguments to `execute_ontap_delete` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload execute_ontap_delete(ontap_path: nil) + # Pass arguments to `execute_ontap_delete` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new + # + # # Call the execute_ontap_delete method. + # result = client.execute_ontap_delete request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse. + # p result + # + def execute_ontap_delete request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.execute_ontap_delete.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.ontap_path + header_params["ontap_path"] = request.ontap_path + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.execute_ontap_delete.timeout, + metadata: metadata, + retry_policy: @config.rpcs.execute_ontap_delete.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.call_rpc :execute_ontap_delete, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_patch(request, options = nil) + # Pass arguments to `execute_ontap_patch` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload execute_ontap_patch(body: nil, ontap_path: nil) + # Pass arguments to `execute_ontap_patch` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param body [::Google::Protobuf::Struct, ::Hash] + # Required. The raw `JSON` body of the request. + # The body should be in the format of the ONTAP resource. + # For example: + # ``` + # { + # "body": { + # "field1": "value1", + # "field2": "value2", + # } + # } + # ``` + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new + # + # # Call the execute_ontap_patch method. + # result = client.execute_ontap_patch request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse. + # p result + # + def execute_ontap_patch request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.execute_ontap_patch.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.ontap_path + header_params["ontap_path"] = request.ontap_path + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.execute_ontap_patch.timeout, + metadata: metadata, + retry_policy: @config.rpcs.execute_ontap_patch.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.call_rpc :execute_ontap_patch, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the NetApp API. # @@ -7014,6 +7505,11 @@ class Rpcs # attr_reader :revert_volume ## + # RPC-specific configuration for `establish_volume_peering` + # @return [::Gapic::Config::Method] + # + attr_reader :establish_volume_peering + ## # RPC-specific configuration for `list_snapshots` # @return [::Gapic::Config::Method] # @@ -7278,6 +7774,26 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :delete_host_group + ## + # RPC-specific configuration for `execute_ontap_post` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_post + ## + # RPC-specific configuration for `execute_ontap_get` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_get + ## + # RPC-specific configuration for `execute_ontap_delete` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_delete + ## + # RPC-specific configuration for `execute_ontap_patch` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_patch # @private def initialize parent_rpcs = nil @@ -7307,6 +7823,8 @@ def initialize parent_rpcs = nil @delete_volume = ::Gapic::Config::Method.new delete_volume_config revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume @revert_volume = ::Gapic::Config::Method.new revert_volume_config + establish_volume_peering_config = parent_rpcs.establish_volume_peering if parent_rpcs.respond_to? :establish_volume_peering + @establish_volume_peering = ::Gapic::Config::Method.new establish_volume_peering_config list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot @@ -7413,6 +7931,14 @@ def initialize parent_rpcs = nil @update_host_group = ::Gapic::Config::Method.new update_host_group_config delete_host_group_config = parent_rpcs.delete_host_group if parent_rpcs.respond_to? :delete_host_group @delete_host_group = ::Gapic::Config::Method.new delete_host_group_config + execute_ontap_post_config = parent_rpcs.execute_ontap_post if parent_rpcs.respond_to? :execute_ontap_post + @execute_ontap_post = ::Gapic::Config::Method.new execute_ontap_post_config + execute_ontap_get_config = parent_rpcs.execute_ontap_get if parent_rpcs.respond_to? :execute_ontap_get + @execute_ontap_get = ::Gapic::Config::Method.new execute_ontap_get_config + execute_ontap_delete_config = parent_rpcs.execute_ontap_delete if parent_rpcs.respond_to? :execute_ontap_delete + @execute_ontap_delete = ::Gapic::Config::Method.new execute_ontap_delete_config + execute_ontap_patch_config = parent_rpcs.execute_ontap_patch if parent_rpcs.respond_to? :execute_ontap_patch + @execute_ontap_patch = ::Gapic::Config::Method.new execute_ontap_patch_config yield self if block_given? end diff --git a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/client.rb b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/client.rb index 1e4bf81c59f0..4814e4f04cdd 100644 --- a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/client.rb +++ b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/client.rb @@ -1530,6 +1530,106 @@ def revert_volume request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # Establish volume peering. This is used to establish cluster and svm + # peerings between the GCNV and OnPrem clusters. + # + # @overload establish_volume_peering(request, options = nil) + # Pass arguments to `establish_volume_peering` via a request object, either of type + # {::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload establish_volume_peering(name: nil, peer_cluster_name: nil, peer_svm_name: nil, peer_ip_addresses: nil, peer_volume_name: nil) + # Pass arguments to `establish_volume_peering` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The volume resource name, in the format + # `projects/{project_id}/locations/{location}/volumes/{volume_id}` + # @param peer_cluster_name [::String] + # Required. Name of the user's local source cluster to be peered with the + # destination cluster. + # @param peer_svm_name [::String] + # Required. Name of the user's local source vserver svm to be peered with the + # destination vserver svm. + # @param peer_ip_addresses [::Array<::String>] + # Optional. List of IPv4 ip addresses to be used for peering. + # @param peer_volume_name [::String] + # Required. Name of the user's local source volume to be peered with the + # destination volume. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new + # + # # Call the establish_volume_peering method. + # result = client.establish_volume_peering request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def establish_volume_peering request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.establish_volume_peering.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.establish_volume_peering.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.establish_volume_peering.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.establish_volume_peering request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Returns descriptions of all snapshots for a volume. # @@ -6297,6 +6397,362 @@ def delete_host_group request, options = nil raise ::Google::Cloud::Error.from_error(e) end + ## + # `ExecuteOntapPost` dispatches the ONTAP `POST` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_post(request, options = nil) + # Pass arguments to `execute_ontap_post` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload execute_ontap_post(body: nil, ontap_path: nil) + # Pass arguments to `execute_ontap_post` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param body [::Google::Protobuf::Struct, ::Hash] + # Required. The raw `JSON` body of the request. + # The body should be in the format of the ONTAP resource. + # For example: + # ``` + # { + # "body": { + # "field1": "value1", + # "field2": "value2", + # } + # } + # ``` + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new + # + # # Call the execute_ontap_post method. + # result = client.execute_ontap_post request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPostResponse. + # p result + # + def execute_ontap_post request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.execute_ontap_post.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.execute_ontap_post.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.execute_ontap_post.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.execute_ontap_post request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # `ExecuteOntapGet` dispatches the ONTAP `GET` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_get(request, options = nil) + # Pass arguments to `execute_ontap_get` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload execute_ontap_get(ontap_path: nil) + # Pass arguments to `execute_ontap_get` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new + # + # # Call the execute_ontap_get method. + # result = client.execute_ontap_get request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapGetResponse. + # p result + # + def execute_ontap_get request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.execute_ontap_get.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.execute_ontap_get.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.execute_ontap_get.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.execute_ontap_get request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_delete(request, options = nil) + # Pass arguments to `execute_ontap_delete` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload execute_ontap_delete(ontap_path: nil) + # Pass arguments to `execute_ontap_delete` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new + # + # # Call the execute_ontap_delete method. + # result = client.execute_ontap_delete request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse. + # p result + # + def execute_ontap_delete request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.execute_ontap_delete.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.execute_ontap_delete.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.execute_ontap_delete.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.execute_ontap_delete request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the + # `StoragePool` cluster. + # + # @overload execute_ontap_patch(request, options = nil) + # Pass arguments to `execute_ontap_patch` via a request object, either of type + # {::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload execute_ontap_patch(body: nil, ontap_path: nil) + # Pass arguments to `execute_ontap_patch` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param body [::Google::Protobuf::Struct, ::Hash] + # Required. The raw `JSON` body of the request. + # The body should be in the format of the ONTAP resource. + # For example: + # ``` + # { + # "body": { + # "field1": "value1", + # "field2": "value2", + # } + # } + # ``` + # @param ontap_path [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/netapp/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new + # + # # Call the execute_ontap_patch method. + # result = client.execute_ontap_patch request + # + # # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse. + # p result + # + def execute_ontap_patch request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.execute_ontap_patch.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::NetApp::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.execute_ontap_patch.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.execute_ontap_patch.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @net_app_stub.execute_ontap_patch request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + ## # Configuration class for the NetApp REST API. # @@ -6516,6 +6972,11 @@ class Rpcs # attr_reader :revert_volume ## + # RPC-specific configuration for `establish_volume_peering` + # @return [::Gapic::Config::Method] + # + attr_reader :establish_volume_peering + ## # RPC-specific configuration for `list_snapshots` # @return [::Gapic::Config::Method] # @@ -6780,6 +7241,26 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :delete_host_group + ## + # RPC-specific configuration for `execute_ontap_post` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_post + ## + # RPC-specific configuration for `execute_ontap_get` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_get + ## + # RPC-specific configuration for `execute_ontap_delete` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_delete + ## + # RPC-specific configuration for `execute_ontap_patch` + # @return [::Gapic::Config::Method] + # + attr_reader :execute_ontap_patch # @private def initialize parent_rpcs = nil @@ -6809,6 +7290,8 @@ def initialize parent_rpcs = nil @delete_volume = ::Gapic::Config::Method.new delete_volume_config revert_volume_config = parent_rpcs.revert_volume if parent_rpcs.respond_to? :revert_volume @revert_volume = ::Gapic::Config::Method.new revert_volume_config + establish_volume_peering_config = parent_rpcs.establish_volume_peering if parent_rpcs.respond_to? :establish_volume_peering + @establish_volume_peering = ::Gapic::Config::Method.new establish_volume_peering_config list_snapshots_config = parent_rpcs.list_snapshots if parent_rpcs.respond_to? :list_snapshots @list_snapshots = ::Gapic::Config::Method.new list_snapshots_config get_snapshot_config = parent_rpcs.get_snapshot if parent_rpcs.respond_to? :get_snapshot @@ -6915,6 +7398,14 @@ def initialize parent_rpcs = nil @update_host_group = ::Gapic::Config::Method.new update_host_group_config delete_host_group_config = parent_rpcs.delete_host_group if parent_rpcs.respond_to? :delete_host_group @delete_host_group = ::Gapic::Config::Method.new delete_host_group_config + execute_ontap_post_config = parent_rpcs.execute_ontap_post if parent_rpcs.respond_to? :execute_ontap_post + @execute_ontap_post = ::Gapic::Config::Method.new execute_ontap_post_config + execute_ontap_get_config = parent_rpcs.execute_ontap_get if parent_rpcs.respond_to? :execute_ontap_get + @execute_ontap_get = ::Gapic::Config::Method.new execute_ontap_get_config + execute_ontap_delete_config = parent_rpcs.execute_ontap_delete if parent_rpcs.respond_to? :execute_ontap_delete + @execute_ontap_delete = ::Gapic::Config::Method.new execute_ontap_delete_config + execute_ontap_patch_config = parent_rpcs.execute_ontap_patch if parent_rpcs.respond_to? :execute_ontap_patch + @execute_ontap_patch = ::Gapic::Config::Method.new execute_ontap_patch_config yield self if block_given? end diff --git a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb index 9150a7065b04..18dbb7ce43ef 100644 --- a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +++ b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb @@ -593,6 +593,46 @@ def revert_volume request_pb, options = nil end end + ## + # Baseline implementation for the establish_volume_peering REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def establish_volume_peering request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_establish_volume_peering_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "establish_volume_peering", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # Baseline implementation for the list_snapshots REST call # @@ -2713,6 +2753,166 @@ def delete_host_group request_pb, options = nil end end + ## + # Baseline implementation for the execute_ontap_post REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse] + # A result object deserialized from the server's reply + def execute_ontap_post request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_execute_ontap_post_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "execute_ontap_post", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the execute_ontap_get REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse] + # A result object deserialized from the server's reply + def execute_ontap_get request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_execute_ontap_get_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "execute_ontap_get", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the execute_ontap_delete REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse] + # A result object deserialized from the server's reply + def execute_ontap_delete request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_execute_ontap_delete_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "execute_ontap_delete", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the execute_ontap_patch REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse] + # A result object deserialized from the server's reply + def execute_ontap_patch request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_execute_ontap_patch_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "execute_ontap_patch", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + ## # @private # @@ -2993,6 +3193,28 @@ def self.transcode_revert_volume_request request_pb transcoder.transcode request_pb end + ## + # @private + # + # GRPC transcoding helper method for the establish_volume_peering REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_establish_volume_peering_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:establishPeering", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/volumes/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + ## # @private # @@ -4131,6 +4353,92 @@ def self.transcode_delete_host_group_request request_pb ) transcoder.transcode request_pb end + + ## + # @private + # + # GRPC transcoding helper method for the execute_ontap_post REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_execute_ontap_post_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{ontap_path}", + body: "*", + matches: [ + ["ontap_path", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/ontap(?:/.*)?$}, true] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the execute_ontap_get REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_execute_ontap_get_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{ontap_path}", + matches: [ + ["ontap_path", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/ontap(?:/.*)?$}, true] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the execute_ontap_delete REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_execute_ontap_delete_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{ontap_path}", + matches: [ + ["ontap_path", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/ontap(?:/.*)?$}, true] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the execute_ontap_patch REST call + # + # @param request_pb [::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_execute_ontap_patch_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{ontap_path}", + body: "*", + matches: [ + ["ontap_path", %r{^projects/[^/]+/locations/[^/]+/storagePools/[^/]+/ontap(?:/.*)?$}, true] + ] + ) + transcoder.transcode request_pb + end end end end diff --git a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/ontap_pb.rb b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/ontap_pb.rb new file mode 100644 index 000000000000..996523402162 --- /dev/null +++ b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/ontap_pb.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/netapp/v1/ontap.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/protobuf/struct_pb' + + +descriptor_data = "\n\"google/cloud/netapp/v1/ontap.proto\x12\x16google.cloud.netapp.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"^\n\x17\x45xecuteOntapPostRequest\x12*\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\x12\x17\n\nontap_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"A\n\x18\x45xecuteOntapPostResponse\x12%\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"1\n\x16\x45xecuteOntapGetRequest\x12\x17\n\nontap_path\x18\x01 \x01(\tB\x03\xe0\x41\x02\"@\n\x17\x45xecuteOntapGetResponse\x12%\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"4\n\x19\x45xecuteOntapDeleteRequest\x12\x17\n\nontap_path\x18\x02 \x01(\tB\x03\xe0\x41\x02\"C\n\x1a\x45xecuteOntapDeleteResponse\x12%\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"_\n\x18\x45xecuteOntapPatchRequest\x12*\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x02\x12\x17\n\nontap_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"B\n\x19\x45xecuteOntapPatchResponse\x12%\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\xac\x01\n\x1a\x63om.google.cloud.netapp.v1B\nOntapProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module NetApp + module V1 + ExecuteOntapPostRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapPostRequest").msgclass + ExecuteOntapPostResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapPostResponse").msgclass + ExecuteOntapGetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapGetRequest").msgclass + ExecuteOntapGetResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapGetResponse").msgclass + ExecuteOntapDeleteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapDeleteRequest").msgclass + ExecuteOntapDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapDeleteResponse").msgclass + ExecuteOntapPatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapPatchRequest").msgclass + ExecuteOntapPatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExecuteOntapPatchResponse").msgclass + end + end + end +end diff --git a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/storage_pool_pb.rb b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/storage_pool_pb.rb index 3bdc03f82c4b..01309ab222ca 100644 --- a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/storage_pool_pb.rb +++ b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/storage_pool_pb.rb @@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n)google/cloud/netapp/v1/storage_pool.proto\x12\x16google.cloud.netapp.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/netapp/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"P\n\x15GetStoragePoolRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\"\xb1\x01\n\x17ListStoragePoolsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!netapp.googleapis.com/StoragePool\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListStoragePoolsResponse\x12:\n\rstorage_pools\x18\x01 \x03(\x0b\x32#.google.cloud.netapp.v1.StoragePool\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xb3\x01\n\x18\x43reateStoragePoolRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!netapp.googleapis.com/StoragePool\x12\x1c\n\x0fstorage_pool_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0cstorage_pool\x18\x03 \x01(\x0b\x32#.google.cloud.netapp.v1.StoragePoolB\x03\xe0\x41\x02\"\x90\x01\n\x18UpdateStoragePoolRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12>\n\x0cstorage_pool\x18\x02 \x01(\x0b\x32#.google.cloud.netapp.v1.StoragePoolB\x03\xe0\x41\x02\"S\n\x18\x44\x65leteStoragePoolRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\"Y\n\x1eSwitchActiveReplicaZoneRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\"\xae\r\n\x0bStoragePool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12@\n\rservice_level\x18\x02 \x01(\x0e\x32$.google.cloud.netapp.v1.ServiceLevelB\x03\xe0\x41\x02\x12\x19\n\x0c\x63\x61pacity_gib\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\x12 \n\x13volume_capacity_gib\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cvolume_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12=\n\x05state\x18\x06 \x01(\x0e\x32).google.cloud.netapp.v1.StoragePool.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\n \x03(\x0b\x32/.google.cloud.netapp.v1.StoragePool.LabelsEntryB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12G\n\x10\x61\x63tive_directory\x18\x0c \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%netapp.googleapis.com/ActiveDirectory\x12;\n\nkms_config\x18\r \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\x12\x19\n\x0cldap_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\tpsa_range\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0f\x65ncryption_type\x18\x10 \x01(\x0e\x32&.google.cloud.netapp.v1.EncryptionTypeB\x03\xe0\x41\x03\x12&\n\x15global_access_allowed\x18\x11 \x01(\x08\x42\x02\x18\x01H\x00\x88\x01\x01\x12\x1f\n\x12\x61llow_auto_tiering\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0creplica_zone\x18\x14 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04zone\x18\x15 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rsatisfies_pzs\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03\x12\'\n\x1a\x63ustom_performance_enabled\x18\x19 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x16total_throughput_mibps\x18\x1a \x01(\x03\x42\x03\xe0\x41\x01\x12\x17\n\ntotal_iops\x18\x1b \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11hot_tier_size_gib\x18\x1c \x01(\x03\x42\x03\xe0\x41\x01\x12-\n\x1b\x65nable_hot_tier_auto_resize\x18\x1d \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x36\n\x08qos_type\x18\x1e \x01(\x0e\x32\x1f.google.cloud.netapp.v1.QosTypeB\x03\xe0\x41\x01\x12\'\n\x1a\x61vailable_throughput_mibps\x18\x1f \x01(\x01\x42\x03\xe0\x41\x03\x12$\n\x17\x63old_tier_size_used_gib\x18! \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16hot_tier_size_used_gib\x18\" \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x04type\x18# \x01(\x0e\x32\'.google.cloud.netapp.v1.StoragePoolTypeB\x03\xe0\x41\x01H\x02\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\r\n\tRESTORING\x10\x05\x12\x0c\n\x08\x44ISABLED\x10\x06\x12\t\n\x05\x45RROR\x10\x07:\x87\x01\xea\x41\x83\x01\n!netapp.googleapis.com/StoragePool\x12\x43projects/{project}/locations/{location}/storagePools/{storage_pool}*\x0cstoragePools2\x0bstoragePoolB\x18\n\x16_global_access_allowedB\x1e\n\x1c_enable_hot_tier_auto_resizeB\x07\n\x05_type\"\xa8\x01\n\x1fValidateDirectoryServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\x12L\n\x16\x64irectory_service_type\x18\x02 \x01(\x0e\x32,.google.cloud.netapp.v1.DirectoryServiceTypeB\xb2\x01\n\x1a\x63om.google.cloud.netapp.v1B\x10StoragePoolProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3" +descriptor_data = "\n)google/cloud/netapp/v1/storage_pool.proto\x12\x16google.cloud.netapp.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/netapp/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"P\n\x15GetStoragePoolRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\"\xb1\x01\n\x17ListStoragePoolsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!netapp.googleapis.com/StoragePool\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x18ListStoragePoolsResponse\x12:\n\rstorage_pools\x18\x01 \x03(\x0b\x32#.google.cloud.netapp.v1.StoragePool\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xb3\x01\n\x18\x43reateStoragePoolRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!netapp.googleapis.com/StoragePool\x12\x1c\n\x0fstorage_pool_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\x0cstorage_pool\x18\x03 \x01(\x0b\x32#.google.cloud.netapp.v1.StoragePoolB\x03\xe0\x41\x02\"\x90\x01\n\x18UpdateStoragePoolRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12>\n\x0cstorage_pool\x18\x02 \x01(\x0b\x32#.google.cloud.netapp.v1.StoragePoolB\x03\xe0\x41\x02\"S\n\x18\x44\x65leteStoragePoolRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\"Y\n\x1eSwitchActiveReplicaZoneRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\"\xed\r\n\x0bStoragePool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12@\n\rservice_level\x18\x02 \x01(\x0e\x32$.google.cloud.netapp.v1.ServiceLevelB\x03\xe0\x41\x02\x12\x19\n\x0c\x63\x61pacity_gib\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\x12 \n\x13volume_capacity_gib\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0cvolume_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12=\n\x05state\x18\x06 \x01(\x0e\x32).google.cloud.netapp.v1.StoragePool.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\n \x03(\x0b\x32/.google.cloud.netapp.v1.StoragePool.LabelsEntryB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12G\n\x10\x61\x63tive_directory\x18\x0c \x01(\tB-\xe0\x41\x01\xfa\x41\'\n%netapp.googleapis.com/ActiveDirectory\x12;\n\nkms_config\x18\r \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\x12\x19\n\x0cldap_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12\x16\n\tpsa_range\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0f\x65ncryption_type\x18\x10 \x01(\x0e\x32&.google.cloud.netapp.v1.EncryptionTypeB\x03\xe0\x41\x03\x12&\n\x15global_access_allowed\x18\x11 \x01(\x08\x42\x02\x18\x01H\x00\x88\x01\x01\x12\x1f\n\x12\x61llow_auto_tiering\x18\x12 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0creplica_zone\x18\x14 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04zone\x18\x15 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rsatisfies_pzs\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzi\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03\x12\'\n\x1a\x63ustom_performance_enabled\x18\x19 \x01(\x08\x42\x03\xe0\x41\x01\x12#\n\x16total_throughput_mibps\x18\x1a \x01(\x03\x42\x03\xe0\x41\x01\x12\x17\n\ntotal_iops\x18\x1b \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11hot_tier_size_gib\x18\x1c \x01(\x03\x42\x03\xe0\x41\x01\x12-\n\x1b\x65nable_hot_tier_auto_resize\x18\x1d \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x36\n\x08qos_type\x18\x1e \x01(\x0e\x32\x1f.google.cloud.netapp.v1.QosTypeB\x03\xe0\x41\x01\x12\'\n\x1a\x61vailable_throughput_mibps\x18\x1f \x01(\x01\x42\x03\xe0\x41\x03\x12$\n\x17\x63old_tier_size_used_gib\x18! \x01(\x03\x42\x03\xe0\x41\x03\x12#\n\x16hot_tier_size_used_gib\x18\" \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x04type\x18# \x01(\x0e\x32\'.google.cloud.netapp.v1.StoragePoolTypeB\x03\xe0\x41\x01H\x02\x88\x01\x01\x12\x34\n\x04mode\x18$ \x01(\x0e\x32\x1c.google.cloud.netapp.v1.ModeB\x03\xe0\x41\x01H\x03\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"{\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\r\n\tRESTORING\x10\x05\x12\x0c\n\x08\x44ISABLED\x10\x06\x12\t\n\x05\x45RROR\x10\x07:\x87\x01\xea\x41\x83\x01\n!netapp.googleapis.com/StoragePool\x12\x43projects/{project}/locations/{location}/storagePools/{storage_pool}*\x0cstoragePools2\x0bstoragePoolB\x18\n\x16_global_access_allowedB\x1e\n\x1c_enable_hot_tier_auto_resizeB\x07\n\x05_typeB\x07\n\x05_mode\"\xa8\x01\n\x1fValidateDirectoryServiceRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\x12L\n\x16\x64irectory_service_type\x18\x02 \x01(\x0e\x32,.google.cloud.netapp.v1.DirectoryServiceType*4\n\x04Mode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\t\n\x05ONTAP\x10\x02\x42\xb2\x01\n\x1a\x63om.google.cloud.netapp.v1B\x10StoragePoolProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -30,6 +30,7 @@ module V1 StoragePool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.StoragePool").msgclass StoragePool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.StoragePool.State").enummodule ValidateDirectoryServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ValidateDirectoryServiceRequest").msgclass + Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.Mode").enummodule end end end diff --git a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/volume_pb.rb b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/volume_pb.rb index e21783cfd8f5..187b89954b26 100644 --- a/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/volume_pb.rb +++ b/google-cloud-netapp-v1/lib/google/cloud/netapp/v1/volume_pb.rb @@ -12,7 +12,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n#google/cloud/netapp/v1/volume.proto\x12\x16google.cloud.netapp.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/netapp/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x93\x01\n\x12ListVolumesRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1cnetapp.googleapis.com/Volume\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"t\n\x13ListVolumesResponse\x12/\n\x07volumes\x18\x01 \x03(\x0b\x32\x1e.google.cloud.netapp.v1.Volume\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"F\n\x10GetVolumeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\"\x98\x01\n\x13\x43reateVolumeRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1cnetapp.googleapis.com/Volume\x12\x16\n\tvolume_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x06volume\x18\x03 \x01(\x0b\x32\x1e.google.cloud.netapp.v1.VolumeB\x03\xe0\x41\x02\"\x80\x01\n\x13UpdateVolumeRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x33\n\x06volume\x18\x02 \x01(\x0b\x32\x1e.google.cloud.netapp.v1.VolumeB\x03\xe0\x41\x02\"X\n\x13\x44\x65leteVolumeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"c\n\x13RevertVolumeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\x18\n\x0bsnapshot_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xde\x12\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x38\n\x05state\x18\x02 \x01(\x0e\x32$.google.cloud.netapp.v1.Volume.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nshare_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpsa_range\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12?\n\x0cstorage_pool\x18\x07 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\x12\x37\n\x07network\x18\x08 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12@\n\rservice_level\x18\t \x01(\x0e\x32$.google.cloud.netapp.v1.ServiceLevelB\x03\xe0\x41\x03\x12\x19\n\x0c\x63\x61pacity_gib\x18\n \x01(\x03\x42\x03\xe0\x41\x02\x12@\n\rexport_policy\x18\x0b \x01(\x0b\x32$.google.cloud.netapp.v1.ExportPolicyB\x03\xe0\x41\x01\x12\x39\n\tprotocols\x18\x0c \x03(\x0e\x32!.google.cloud.netapp.v1.ProtocolsB\x03\xe0\x41\x02\x12>\n\x0csmb_settings\x18\r \x03(\x0e\x32#.google.cloud.netapp.v1.SMBSettingsB\x03\xe0\x41\x01\x12?\n\rmount_options\x18\x0e \x03(\x0b\x32#.google.cloud.netapp.v1.MountOptionB\x03\xe0\x41\x03\x12\x1d\n\x10unix_permissions\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12?\n\x06labels\x18\x10 \x03(\x0b\x32*.google.cloud.netapp.v1.Volume.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x11 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0fsnapshot_policy\x18\x12 \x01(\x0b\x32&.google.cloud.netapp.v1.SnapshotPolicyB\x03\xe0\x41\x01\x12\x19\n\x0csnap_reserve\x18\x13 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12snapshot_directory\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08used_gib\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x0esecurity_style\x18\x16 \x01(\x0e\x32%.google.cloud.netapp.v1.SecurityStyleB\x03\xe0\x41\x01\x12\x1d\n\x10kerberos_enabled\x18\x17 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0cldap_enabled\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03\x12G\n\x10\x61\x63tive_directory\x18\x19 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%netapp.googleapis.com/ActiveDirectory\x12J\n\x12restore_parameters\x18\x1a \x01(\x0b\x32).google.cloud.netapp.v1.RestoreParametersB\x03\xe0\x41\x01\x12;\n\nkms_config\x18\x1b \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\x12\x44\n\x0f\x65ncryption_type\x18\x1c \x01(\x0e\x32&.google.cloud.netapp.v1.EncryptionTypeB\x03\xe0\x41\x03\x12\x1c\n\x0fhas_replication\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x12@\n\rbackup_config\x18\x1e \x01(\x0b\x32$.google.cloud.netapp.v1.BackupConfigH\x00\x88\x01\x01\x12I\n\x12restricted_actions\x18\x1f \x03(\x0e\x32(.google.cloud.netapp.v1.RestrictedActionB\x03\xe0\x41\x01\x12\x1b\n\x0elarge_capacity\x18 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12multiple_endpoints\x18! \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\x0etiering_policy\x18\" \x01(\x0b\x32%.google.cloud.netapp.v1.TieringPolicyH\x01\x88\x01\x01\x12\x19\n\x0creplica_zone\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04zone\x18% \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12\x63old_tier_size_gib\x18\' \x01(\x03\x42\x03\xe0\x41\x03\x12_\n\x1dhybrid_replication_parameters\x18( \x01(\x0b\x32\x33.google.cloud.netapp.v1.HybridReplicationParametersB\x03\xe0\x41\x01\x12\x1d\n\x10throughput_mibps\x18) \x01(\x01\x42\x03\xe0\x41\x01\x12\x46\n\x10\x63\x61\x63he_parameters\x18* \x01(\x0b\x32\'.google.cloud.netapp.v1.CacheParametersB\x03\xe0\x41\x01\x12#\n\x16hot_tier_size_used_gib\x18, \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\rblock_devices\x18- \x03(\x0b\x32#.google.cloud.netapp.v1.BlockDeviceB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x99\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\r\n\tRESTORING\x10\x05\x12\x0c\n\x08\x44ISABLED\x10\x06\x12\t\n\x05\x45RROR\x10\x07\x12\r\n\tPREPARING\x10\x08\x12\r\n\tREAD_ONLY\x10\t:l\xea\x41i\n\x1cnetapp.googleapis.com/Volume\x12\x38projects/{project}/locations/{location}/volumes/{volume}*\x07volumes2\x06volumeB\x10\n\x0e_backup_configB\x11\n\x0f_tiering_policy\"R\n\x0c\x45xportPolicy\x12\x42\n\x05rules\x18\x01 \x03(\x0b\x32..google.cloud.netapp.v1.SimpleExportPolicyRuleB\x03\xe0\x41\x02\"\xef\x06\n\x16SimpleExportPolicyRule\x12\x1c\n\x0f\x61llowed_clients\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fhas_root_access\x18\x02 \x01(\tH\x01\x88\x01\x01\x12<\n\x0b\x61\x63\x63\x65ss_type\x18\x03 \x01(\x0e\x32\".google.cloud.netapp.v1.AccessTypeH\x02\x88\x01\x01\x12\x12\n\x05nfsv3\x18\x04 \x01(\x08H\x03\x88\x01\x01\x12\x12\n\x05nfsv4\x18\x05 \x01(\x08H\x04\x88\x01\x01\x12!\n\x14kerberos_5_read_only\x18\x06 \x01(\x08H\x05\x88\x01\x01\x12\"\n\x15kerberos_5_read_write\x18\x07 \x01(\x08H\x06\x88\x01\x01\x12\"\n\x15kerberos_5i_read_only\x18\x08 \x01(\x08H\x07\x88\x01\x01\x12#\n\x16kerberos_5i_read_write\x18\t \x01(\x08H\x08\x88\x01\x01\x12\"\n\x15kerberos_5p_read_only\x18\n \x01(\x08H\t\x88\x01\x01\x12#\n\x16kerberos_5p_read_write\x18\x0b \x01(\x08H\n\x88\x01\x01\x12X\n\x0bsquash_mode\x18\x0c \x01(\x0e\x32\x39.google.cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12\x1a\n\x08\x61non_uid\x18\r \x01(\x03\x42\x03\xe0\x41\x01H\x0c\x88\x01\x01\"^\n\nSquashMode\x12\x1b\n\x17SQUASH_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_ROOT_SQUASH\x10\x01\x12\x0f\n\x0bROOT_SQUASH\x10\x02\x12\x0e\n\nALL_SQUASH\x10\x03\x42\x12\n\x10_allowed_clientsB\x12\n\x10_has_root_accessB\x0e\n\x0c_access_typeB\x08\n\x06_nfsv3B\x08\n\x06_nfsv4B\x17\n\x15_kerberos_5_read_onlyB\x18\n\x16_kerberos_5_read_writeB\x18\n\x16_kerberos_5i_read_onlyB\x19\n\x17_kerberos_5i_read_writeB\x18\n\x16_kerberos_5p_read_onlyB\x19\n\x17_kerberos_5p_read_writeB\x0e\n\x0c_squash_modeB\x0b\n\t_anon_uid\"\x9a\x03\n\x0eSnapshotPolicy\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x44\n\x0fhourly_schedule\x18\x02 \x01(\x0b\x32&.google.cloud.netapp.v1.HourlyScheduleH\x01\x88\x01\x01\x12\x42\n\x0e\x64\x61ily_schedule\x18\x03 \x01(\x0b\x32%.google.cloud.netapp.v1.DailyScheduleH\x02\x88\x01\x01\x12\x44\n\x0fweekly_schedule\x18\x04 \x01(\x0b\x32&.google.cloud.netapp.v1.WeeklyScheduleH\x03\x88\x01\x01\x12\x46\n\x10monthly_schedule\x18\x05 \x01(\x0b\x32\'.google.cloud.netapp.v1.MonthlyScheduleH\x04\x88\x01\x01\x42\n\n\x08_enabledB\x12\n\x10_hourly_scheduleB\x11\n\x0f_daily_scheduleB\x12\n\x10_weekly_scheduleB\x13\n\x11_monthly_schedule\"f\n\x0eHourlySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minute\"\x81\x01\n\rDailySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\x04hour\x18\x03 \x01(\x01H\x02\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minuteB\x07\n\x05_hour\"\x9c\x01\n\x0eWeeklySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\x04hour\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x10\n\x03\x64\x61y\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minuteB\x07\n\x05_hourB\x06\n\x04_day\"\xb1\x01\n\x0fMonthlySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\x04hour\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x1a\n\rdays_of_month\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minuteB\x07\n\x05_hourB\x10\n\x0e_days_of_month\"\x9e\x01\n\x0bMountOption\x12\x0e\n\x06\x65xport\x18\x01 \x01(\t\x12\x13\n\x0b\x65xport_full\x18\x02 \x01(\t\x12\x33\n\x08protocol\x18\x03 \x01(\x0e\x32!.google.cloud.netapp.v1.Protocols\x12\x14\n\x0cinstructions\x18\x04 \x01(\t\x12\x1f\n\nip_address\x18\x05 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x02\"Q\n\x11RestoreParameters\x12\x19\n\x0fsource_snapshot\x18\x01 \x01(\tH\x00\x12\x17\n\rsource_backup\x18\x02 \x01(\tH\x00\x42\x08\n\x06source\"\x9a\x02\n\x0c\x42\x61\x63kupConfig\x12\x43\n\x0f\x62\x61\x63kup_policies\x18\x01 \x03(\tB*\xe0\x41\x01\xfa\x41$\n\"netapp.googleapis.com/BackupPolicy\x12?\n\x0c\x62\x61\x63kup_vault\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!netapp.googleapis.com/BackupVault\x12*\n\x18scheduled_backup_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12$\n\x12\x62\x61\x63kup_chain_bytes\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1b\n\x19_scheduled_backup_enabledB\x15\n\x13_backup_chain_bytes\"\xca\x02\n\rTieringPolicy\x12O\n\x0btier_action\x18\x01 \x01(\x0e\x32\x30.google.cloud.netapp.v1.TieringPolicy.TierActionB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x16\x63ooling_threshold_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12.\n\x1chot_tier_bypass_mode_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\"B\n\nTierAction\x12\x1b\n\x17TIER_ACTION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x42\x0e\n\x0c_tier_actionB\x19\n\x17_cooling_threshold_daysB\x1f\n\x1d_hot_tier_bypass_mode_enabled\"\xc3\x06\n\x1bHybridReplicationParameters\x12>\n\x0breplication\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/Replication\x12\x1d\n\x10peer_volume_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_cluster_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rpeer_svm_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_ip_addresses\x18\x05 \x03(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x63luster_location\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12T\n\x06labels\x18\x08 \x03(\x0b\x32?.google.cloud.netapp.v1.HybridReplicationParameters.LabelsEntryB\x03\xe0\x41\x01\x12T\n\x14replication_schedule\x18\t \x01(\x0e\x32\x31.google.cloud.netapp.v1.HybridReplicationScheduleB\x03\xe0\x41\x01\x12u\n\x17hybrid_replication_type\x18\n \x01(\x0e\x32O.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationTypeB\x03\xe0\x41\x01\x12+\n\x1elarge_volume_constituent_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb0\x01\n\x1bVolumeHybridReplicationType\x12.\n*VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tMIGRATION\x10\x01\x12\x1a\n\x16\x43ONTINUOUS_REPLICATION\x10\x02\x12\x16\n\x12ONPREM_REPLICATION\x10\x03\x12\x1e\n\x1aREVERSE_ONPREM_REPLICATION\x10\x04\"\xea\x04\n\x0f\x43\x61\x63heParameters\x12\x1d\n\x10peer_volume_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_cluster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rpeer_svm_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_ip_addresses\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12)\n\x17\x65nable_global_file_lock\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12>\n\x0c\x63\x61\x63he_config\x18\x06 \x01(\x0b\x32#.google.cloud.netapp.v1.CacheConfigB\x03\xe0\x41\x01\x12L\n\x0b\x63\x61\x63he_state\x18\x07 \x01(\x0e\x32\x32.google.cloud.netapp.v1.CacheParameters.CacheStateB\x03\xe0\x41\x03\x12\x14\n\x07\x63ommand\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x1bpeering_command_expiry_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x17\n\npassphrase\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x0c \x01(\tB\x03\xe0\x41\x03\"v\n\nCacheState\x12\x1b\n\x17\x43\x41\x43HE_STATE_UNSPECIFIED\x10\x00\x12\x1b\n\x17PENDING_CLUSTER_PEERING\x10\x01\x12\x17\n\x13PENDING_SVM_PEERING\x10\x02\x12\n\n\x06PEERED\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x42\x1a\n\x18_enable_global_file_lock\"\xbf\x03\n\x0b\x43\x61\x63heConfig\x12I\n\x12\x63\x61\x63he_pre_populate\x18\x01 \x01(\x0b\x32(.google.cloud.netapp.v1.CachePrePopulateB\x03\xe0\x41\x01\x12#\n\x11writeback_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12,\n\x1a\x63ifs_change_notify_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12`\n\x18\x63\x61\x63he_pre_populate_state\x18\x06 \x01(\x0e\x32\x39.google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\x03\xe0\x41\x03\"{\n\x15\x43\x61\x63hePrePopulateState\x12(\n$CACHE_PRE_POPULATE_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nNOT_NEEDED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x42\x14\n\x12_writeback_enabledB\x1d\n\x1b_cifs_change_notify_enabled\"u\n\x10\x43\x61\x63hePrePopulate\x12\x16\n\tpath_list\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x65xclude_path_list\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\trecursion\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0c\n\n_recursion\"\xe7\x01\n\x0b\x42lockDevice\x12\x16\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12<\n\x0bhost_groups\x18\x02 \x03(\tB\'\xe0\x41\x01\xfa\x41!\n\x1fnetapp.googleapis.com/HostGroup\x12\x17\n\nidentifier\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\x08size_gib\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x37\n\x07os_type\x18\x05 \x01(\x0e\x32\x1e.google.cloud.netapp.v1.OsTypeB\x06\xe0\x41\x02\xe0\x41\x05\x42\x07\n\x05_nameB\x0b\n\t_size_gib\"\xc4\x01\n\x19RestoreBackupFilesRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\x34\n\x06\x62\x61\x63kup\x18\x02 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Backup\x12\x16\n\tfile_list\x18\x03 \x03(\tB\x03\xe0\x41\x02\x12%\n\x18restore_destination_path\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x1c\n\x1aRestoreBackupFilesResponse*P\n\tProtocols\x12\x19\n\x15PROTOCOLS_UNSPECIFIED\x10\x00\x12\t\n\x05NFSV3\x10\x01\x12\t\n\x05NFSV4\x10\x02\x12\x07\n\x03SMB\x10\x03\x12\t\n\x05ISCSI\x10\x04*W\n\nAccessType\x12\x1b\n\x17\x41\x43\x43\x45SS_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\x12\r\n\tREAD_NONE\x10\x03*\xe8\x01\n\x0bSMBSettings\x12\x1c\n\x18SMB_SETTINGS_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45NCRYPT_DATA\x10\x01\x12\r\n\tBROWSABLE\x10\x02\x12\x11\n\rCHANGE_NOTIFY\x10\x03\x12\x11\n\rNON_BROWSABLE\x10\x04\x12\x0b\n\x07OPLOCKS\x10\x05\x12\x11\n\rSHOW_SNAPSHOT\x10\x06\x12\x1a\n\x16SHOW_PREVIOUS_VERSIONS\x10\x07\x12\x1c\n\x18\x41\x43\x43\x45SS_BASED_ENUMERATION\x10\x08\x12\x1a\n\x16\x43ONTINUOUSLY_AVAILABLE\x10\t*C\n\rSecurityStyle\x12\x1e\n\x1aSECURITY_STYLE_UNSPECIFIED\x10\x00\x12\x08\n\x04NTFS\x10\x01\x12\x08\n\x04UNIX\x10\x02*A\n\x10RestrictedAction\x12!\n\x1dRESTRICTED_ACTION_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x42\xad\x01\n\x1a\x63om.google.cloud.netapp.v1B\x0bVolumeProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3" +descriptor_data = "\n#google/cloud/netapp/v1/volume.proto\x12\x16google.cloud.netapp.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/netapp/v1/common.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x93\x01\n\x12ListVolumesRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1cnetapp.googleapis.com/Volume\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"t\n\x13ListVolumesResponse\x12/\n\x07volumes\x18\x01 \x03(\x0b\x32\x1e.google.cloud.netapp.v1.Volume\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"F\n\x10GetVolumeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\"\x98\x01\n\x13\x43reateVolumeRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1cnetapp.googleapis.com/Volume\x12\x16\n\tvolume_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x33\n\x06volume\x18\x03 \x01(\x0b\x32\x1e.google.cloud.netapp.v1.VolumeB\x03\xe0\x41\x02\"\x80\x01\n\x13UpdateVolumeRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x33\n\x06volume\x18\x02 \x01(\x0b\x32\x1e.google.cloud.netapp.v1.VolumeB\x03\xe0\x41\x02\"X\n\x13\x44\x65leteVolumeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"c\n\x13RevertVolumeRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\x18\n\x0bsnapshot_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xd5\x14\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x38\n\x05state\x18\x02 \x01(\x0e\x32$.google.cloud.netapp.v1.Volume.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nshare_name\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tpsa_range\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12?\n\x0cstorage_pool\x18\x07 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/StoragePool\x12\x37\n\x07network\x18\x08 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12@\n\rservice_level\x18\t \x01(\x0e\x32$.google.cloud.netapp.v1.ServiceLevelB\x03\xe0\x41\x03\x12\x19\n\x0c\x63\x61pacity_gib\x18\n \x01(\x03\x42\x03\xe0\x41\x02\x12@\n\rexport_policy\x18\x0b \x01(\x0b\x32$.google.cloud.netapp.v1.ExportPolicyB\x03\xe0\x41\x01\x12\x39\n\tprotocols\x18\x0c \x03(\x0e\x32!.google.cloud.netapp.v1.ProtocolsB\x03\xe0\x41\x02\x12>\n\x0csmb_settings\x18\r \x03(\x0e\x32#.google.cloud.netapp.v1.SMBSettingsB\x03\xe0\x41\x01\x12?\n\rmount_options\x18\x0e \x03(\x0b\x32#.google.cloud.netapp.v1.MountOptionB\x03\xe0\x41\x03\x12\x1d\n\x10unix_permissions\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12?\n\x06labels\x18\x10 \x03(\x0b\x32*.google.cloud.netapp.v1.Volume.LabelsEntryB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x11 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x0fsnapshot_policy\x18\x12 \x01(\x0b\x32&.google.cloud.netapp.v1.SnapshotPolicyB\x03\xe0\x41\x01\x12\x19\n\x0csnap_reserve\x18\x13 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12snapshot_directory\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08used_gib\x18\x15 \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x0esecurity_style\x18\x16 \x01(\x0e\x32%.google.cloud.netapp.v1.SecurityStyleB\x03\xe0\x41\x01\x12\x1d\n\x10kerberos_enabled\x18\x17 \x01(\x08\x42\x03\xe0\x41\x01\x12\x19\n\x0cldap_enabled\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03\x12G\n\x10\x61\x63tive_directory\x18\x19 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%netapp.googleapis.com/ActiveDirectory\x12J\n\x12restore_parameters\x18\x1a \x01(\x0b\x32).google.cloud.netapp.v1.RestoreParametersB\x03\xe0\x41\x01\x12;\n\nkms_config\x18\x1b \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fnetapp.googleapis.com/KmsConfig\x12\x44\n\x0f\x65ncryption_type\x18\x1c \x01(\x0e\x32&.google.cloud.netapp.v1.EncryptionTypeB\x03\xe0\x41\x03\x12\x1c\n\x0fhas_replication\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x12@\n\rbackup_config\x18\x1e \x01(\x0b\x32$.google.cloud.netapp.v1.BackupConfigH\x00\x88\x01\x01\x12I\n\x12restricted_actions\x18\x1f \x03(\x0e\x32(.google.cloud.netapp.v1.RestrictedActionB\x03\xe0\x41\x01\x12\x1b\n\x0elarge_capacity\x18 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12multiple_endpoints\x18! \x01(\x08\x42\x03\xe0\x41\x01\x12\x42\n\x0etiering_policy\x18\" \x01(\x0b\x32%.google.cloud.netapp.v1.TieringPolicyH\x01\x88\x01\x01\x12\x19\n\x0creplica_zone\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04zone\x18% \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12\x63old_tier_size_gib\x18\' \x01(\x03\x42\x03\xe0\x41\x03\x12_\n\x1dhybrid_replication_parameters\x18( \x01(\x0b\x32\x33.google.cloud.netapp.v1.HybridReplicationParametersB\x03\xe0\x41\x01\x12\x1d\n\x10throughput_mibps\x18) \x01(\x01\x42\x03\xe0\x41\x01\x12\x46\n\x10\x63\x61\x63he_parameters\x18* \x01(\x0b\x32\'.google.cloud.netapp.v1.CacheParametersB\x03\xe0\x41\x01\x12#\n\x16hot_tier_size_used_gib\x18, \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\rblock_devices\x18- \x03(\x0b\x32#.google.cloud.netapp.v1.BlockDeviceB\x03\xe0\x41\x01\x12G\n\rclone_details\x18/ \x01(\x0b\x32+.google.cloud.netapp.v1.Volume.CloneDetailsB\x03\xe0\x41\x03\x1a\xab\x01\n\x0c\x43loneDetails\x12?\n\x0fsource_snapshot\x18\x01 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1enetapp.googleapis.com/Snapshot\x12;\n\rsource_volume\x18\x02 \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\x1d\n\x10shared_space_gib\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x99\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\t\n\x05READY\x10\x01\x12\x0c\n\x08\x43REATING\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0c\n\x08UPDATING\x10\x04\x12\r\n\tRESTORING\x10\x05\x12\x0c\n\x08\x44ISABLED\x10\x06\x12\t\n\x05\x45RROR\x10\x07\x12\r\n\tPREPARING\x10\x08\x12\r\n\tREAD_ONLY\x10\t:l\xea\x41i\n\x1cnetapp.googleapis.com/Volume\x12\x38projects/{project}/locations/{location}/volumes/{volume}*\x07volumes2\x06volumeB\x10\n\x0e_backup_configB\x11\n\x0f_tiering_policy\"R\n\x0c\x45xportPolicy\x12\x42\n\x05rules\x18\x01 \x03(\x0b\x32..google.cloud.netapp.v1.SimpleExportPolicyRuleB\x03\xe0\x41\x02\"\xef\x06\n\x16SimpleExportPolicyRule\x12\x1c\n\x0f\x61llowed_clients\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0fhas_root_access\x18\x02 \x01(\tH\x01\x88\x01\x01\x12<\n\x0b\x61\x63\x63\x65ss_type\x18\x03 \x01(\x0e\x32\".google.cloud.netapp.v1.AccessTypeH\x02\x88\x01\x01\x12\x12\n\x05nfsv3\x18\x04 \x01(\x08H\x03\x88\x01\x01\x12\x12\n\x05nfsv4\x18\x05 \x01(\x08H\x04\x88\x01\x01\x12!\n\x14kerberos_5_read_only\x18\x06 \x01(\x08H\x05\x88\x01\x01\x12\"\n\x15kerberos_5_read_write\x18\x07 \x01(\x08H\x06\x88\x01\x01\x12\"\n\x15kerberos_5i_read_only\x18\x08 \x01(\x08H\x07\x88\x01\x01\x12#\n\x16kerberos_5i_read_write\x18\t \x01(\x08H\x08\x88\x01\x01\x12\"\n\x15kerberos_5p_read_only\x18\n \x01(\x08H\t\x88\x01\x01\x12#\n\x16kerberos_5p_read_write\x18\x0b \x01(\x08H\n\x88\x01\x01\x12X\n\x0bsquash_mode\x18\x0c \x01(\x0e\x32\x39.google.cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\x03\xe0\x41\x01H\x0b\x88\x01\x01\x12\x1a\n\x08\x61non_uid\x18\r \x01(\x03\x42\x03\xe0\x41\x01H\x0c\x88\x01\x01\"^\n\nSquashMode\x12\x1b\n\x17SQUASH_MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eNO_ROOT_SQUASH\x10\x01\x12\x0f\n\x0bROOT_SQUASH\x10\x02\x12\x0e\n\nALL_SQUASH\x10\x03\x42\x12\n\x10_allowed_clientsB\x12\n\x10_has_root_accessB\x0e\n\x0c_access_typeB\x08\n\x06_nfsv3B\x08\n\x06_nfsv4B\x17\n\x15_kerberos_5_read_onlyB\x18\n\x16_kerberos_5_read_writeB\x18\n\x16_kerberos_5i_read_onlyB\x19\n\x17_kerberos_5i_read_writeB\x18\n\x16_kerberos_5p_read_onlyB\x19\n\x17_kerberos_5p_read_writeB\x0e\n\x0c_squash_modeB\x0b\n\t_anon_uid\"\x9a\x03\n\x0eSnapshotPolicy\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x44\n\x0fhourly_schedule\x18\x02 \x01(\x0b\x32&.google.cloud.netapp.v1.HourlyScheduleH\x01\x88\x01\x01\x12\x42\n\x0e\x64\x61ily_schedule\x18\x03 \x01(\x0b\x32%.google.cloud.netapp.v1.DailyScheduleH\x02\x88\x01\x01\x12\x44\n\x0fweekly_schedule\x18\x04 \x01(\x0b\x32&.google.cloud.netapp.v1.WeeklyScheduleH\x03\x88\x01\x01\x12\x46\n\x10monthly_schedule\x18\x05 \x01(\x0b\x32\'.google.cloud.netapp.v1.MonthlyScheduleH\x04\x88\x01\x01\x42\n\n\x08_enabledB\x12\n\x10_hourly_scheduleB\x11\n\x0f_daily_scheduleB\x12\n\x10_weekly_scheduleB\x13\n\x11_monthly_schedule\"f\n\x0eHourlySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minute\"\x81\x01\n\rDailySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\x04hour\x18\x03 \x01(\x01H\x02\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minuteB\x07\n\x05_hour\"\x9c\x01\n\x0eWeeklySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\x04hour\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x10\n\x03\x64\x61y\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minuteB\x07\n\x05_hourB\x06\n\x04_day\"\xb1\x01\n\x0fMonthlySchedule\x12\x1e\n\x11snapshots_to_keep\x18\x01 \x01(\x01H\x00\x88\x01\x01\x12\x13\n\x06minute\x18\x02 \x01(\x01H\x01\x88\x01\x01\x12\x11\n\x04hour\x18\x03 \x01(\x01H\x02\x88\x01\x01\x12\x1a\n\rdays_of_month\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x14\n\x12_snapshots_to_keepB\t\n\x07_minuteB\x07\n\x05_hourB\x10\n\x0e_days_of_month\"\x9e\x01\n\x0bMountOption\x12\x0e\n\x06\x65xport\x18\x01 \x01(\t\x12\x13\n\x0b\x65xport_full\x18\x02 \x01(\t\x12\x33\n\x08protocol\x18\x03 \x01(\x0e\x32!.google.cloud.netapp.v1.Protocols\x12\x14\n\x0cinstructions\x18\x04 \x01(\t\x12\x1f\n\nip_address\x18\x05 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x02\"t\n\x11RestoreParameters\x12\x19\n\x0fsource_snapshot\x18\x01 \x01(\tH\x00\x12:\n\rsource_backup\x18\x02 \x01(\tB!\xfa\x41\x1e\n\x1cnetapp.googleapis.com/BackupH\x00\x42\x08\n\x06source\"\x9a\x02\n\x0c\x42\x61\x63kupConfig\x12\x43\n\x0f\x62\x61\x63kup_policies\x18\x01 \x03(\tB*\xe0\x41\x01\xfa\x41$\n\"netapp.googleapis.com/BackupPolicy\x12?\n\x0c\x62\x61\x63kup_vault\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!netapp.googleapis.com/BackupVault\x12*\n\x18scheduled_backup_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12$\n\x12\x62\x61\x63kup_chain_bytes\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1b\n\x19_scheduled_backup_enabledB\x15\n\x13_backup_chain_bytes\"\xca\x02\n\rTieringPolicy\x12O\n\x0btier_action\x18\x01 \x01(\x0e\x32\x30.google.cloud.netapp.v1.TieringPolicy.TierActionB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12(\n\x16\x63ooling_threshold_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12.\n\x1chot_tier_bypass_mode_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\"B\n\nTierAction\x12\x1b\n\x17TIER_ACTION_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\n\n\x06PAUSED\x10\x02\x42\x0e\n\x0c_tier_actionB\x19\n\x17_cooling_threshold_daysB\x1f\n\x1d_hot_tier_bypass_mode_enabled\"\xc3\x06\n\x1bHybridReplicationParameters\x12>\n\x0breplication\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!netapp.googleapis.com/Replication\x12\x1d\n\x10peer_volume_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_cluster_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rpeer_svm_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_ip_addresses\x18\x05 \x03(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x63luster_location\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12T\n\x06labels\x18\x08 \x03(\x0b\x32?.google.cloud.netapp.v1.HybridReplicationParameters.LabelsEntryB\x03\xe0\x41\x01\x12T\n\x14replication_schedule\x18\t \x01(\x0e\x32\x31.google.cloud.netapp.v1.HybridReplicationScheduleB\x03\xe0\x41\x01\x12u\n\x17hybrid_replication_type\x18\n \x01(\x0e\x32O.google.cloud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationTypeB\x03\xe0\x41\x01\x12+\n\x1elarge_volume_constituent_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb0\x01\n\x1bVolumeHybridReplicationType\x12.\n*VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tMIGRATION\x10\x01\x12\x1a\n\x16\x43ONTINUOUS_REPLICATION\x10\x02\x12\x16\n\x12ONPREM_REPLICATION\x10\x03\x12\x1e\n\x1aREVERSE_ONPREM_REPLICATION\x10\x04\"\xea\x04\n\x0f\x43\x61\x63heParameters\x12\x1d\n\x10peer_volume_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_cluster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rpeer_svm_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_ip_addresses\x18\x04 \x03(\tB\x03\xe0\x41\x02\x12)\n\x17\x65nable_global_file_lock\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12>\n\x0c\x63\x61\x63he_config\x18\x06 \x01(\x0b\x32#.google.cloud.netapp.v1.CacheConfigB\x03\xe0\x41\x01\x12L\n\x0b\x63\x61\x63he_state\x18\x07 \x01(\x0e\x32\x32.google.cloud.netapp.v1.CacheParameters.CacheStateB\x03\xe0\x41\x03\x12\x14\n\x07\x63ommand\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x1bpeering_command_expiry_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x17\n\npassphrase\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rstate_details\x18\x0c \x01(\tB\x03\xe0\x41\x03\"v\n\nCacheState\x12\x1b\n\x17\x43\x41\x43HE_STATE_UNSPECIFIED\x10\x00\x12\x1b\n\x17PENDING_CLUSTER_PEERING\x10\x01\x12\x17\n\x13PENDING_SVM_PEERING\x10\x02\x12\n\n\x06PEERED\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x42\x1a\n\x18_enable_global_file_lock\"\xbf\x03\n\x0b\x43\x61\x63heConfig\x12I\n\x12\x63\x61\x63he_pre_populate\x18\x01 \x01(\x0b\x32(.google.cloud.netapp.v1.CachePrePopulateB\x03\xe0\x41\x01\x12#\n\x11writeback_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12,\n\x1a\x63ifs_change_notify_enabled\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12`\n\x18\x63\x61\x63he_pre_populate_state\x18\x06 \x01(\x0e\x32\x39.google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\x03\xe0\x41\x03\"{\n\x15\x43\x61\x63hePrePopulateState\x12(\n$CACHE_PRE_POPULATE_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nNOT_NEEDED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x42\x14\n\x12_writeback_enabledB\x1d\n\x1b_cifs_change_notify_enabled\"u\n\x10\x43\x61\x63hePrePopulate\x12\x16\n\tpath_list\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x65xclude_path_list\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\trecursion\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x0c\n\n_recursion\"\xe7\x01\n\x0b\x42lockDevice\x12\x16\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12<\n\x0bhost_groups\x18\x02 \x03(\tB\'\xe0\x41\x01\xfa\x41!\n\x1fnetapp.googleapis.com/HostGroup\x12\x17\n\nidentifier\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\x08size_gib\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x37\n\x07os_type\x18\x05 \x01(\x0e\x32\x1e.google.cloud.netapp.v1.OsTypeB\x06\xe0\x41\x02\xe0\x41\x05\x42\x07\n\x05_nameB\x0b\n\t_size_gib\"\xc4\x01\n\x19RestoreBackupFilesRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\x34\n\x06\x62\x61\x63kup\x18\x02 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Backup\x12\x16\n\tfile_list\x18\x03 \x03(\tB\x03\xe0\x41\x02\x12%\n\x18restore_destination_path\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x1c\n\x1aRestoreBackupFilesResponse\"\xce\x01\n\x1d\x45stablishVolumePeeringRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1cnetapp.googleapis.com/Volume\x12\x1e\n\x11peer_cluster_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rpeer_svm_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11peer_ip_addresses\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10peer_volume_name\x18\x05 \x01(\tB\x03\xe0\x41\x02*P\n\tProtocols\x12\x19\n\x15PROTOCOLS_UNSPECIFIED\x10\x00\x12\t\n\x05NFSV3\x10\x01\x12\t\n\x05NFSV4\x10\x02\x12\x07\n\x03SMB\x10\x03\x12\t\n\x05ISCSI\x10\x04*W\n\nAccessType\x12\x1b\n\x17\x41\x43\x43\x45SS_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\x12\r\n\tREAD_NONE\x10\x03*\xe8\x01\n\x0bSMBSettings\x12\x1c\n\x18SMB_SETTINGS_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45NCRYPT_DATA\x10\x01\x12\r\n\tBROWSABLE\x10\x02\x12\x11\n\rCHANGE_NOTIFY\x10\x03\x12\x11\n\rNON_BROWSABLE\x10\x04\x12\x0b\n\x07OPLOCKS\x10\x05\x12\x11\n\rSHOW_SNAPSHOT\x10\x06\x12\x1a\n\x16SHOW_PREVIOUS_VERSIONS\x10\x07\x12\x1c\n\x18\x41\x43\x43\x45SS_BASED_ENUMERATION\x10\x08\x12\x1a\n\x16\x43ONTINUOUSLY_AVAILABLE\x10\t*C\n\rSecurityStyle\x12\x1e\n\x1aSECURITY_STYLE_UNSPECIFIED\x10\x00\x12\x08\n\x04NTFS\x10\x01\x12\x08\n\x04UNIX\x10\x02*A\n\x10RestrictedAction\x12!\n\x1dRESTRICTED_ACTION_UNSPECIFIED\x10\x00\x12\n\n\x06\x44\x45LETE\x10\x01\x42\xad\x01\n\x1a\x63om.google.cloud.netapp.v1B\x0bVolumeProtoP\x01Z2cloud.google.com/go/netapp/apiv1/netapppb;netapppb\xaa\x02\x16Google.Cloud.NetApp.V1\xca\x02\x16Google\\Cloud\\NetApp\\V1\xea\x02\x19Google::Cloud::NetApp::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -29,6 +29,7 @@ module V1 DeleteVolumeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.DeleteVolumeRequest").msgclass RevertVolumeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.RevertVolumeRequest").msgclass Volume = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.Volume").msgclass + Volume::CloneDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.Volume.CloneDetails").msgclass Volume::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.Volume.State").enummodule ExportPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.ExportPolicy").msgclass SimpleExportPolicyRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.SimpleExportPolicyRule").msgclass @@ -53,6 +54,7 @@ module V1 BlockDevice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.BlockDevice").msgclass RestoreBackupFilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.RestoreBackupFilesRequest").msgclass RestoreBackupFilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.RestoreBackupFilesResponse").msgclass + EstablishVolumePeeringRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.EstablishVolumePeeringRequest").msgclass Protocols = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.Protocols").enummodule AccessType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.AccessType").enummodule SMBSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.netapp.v1.SMBSettings").enummodule diff --git a/google-cloud-netapp-v1/proto_docs/google/api/client.rb b/google-cloud-netapp-v1/proto_docs/google/api/client.rb index 44c6bee7f2e5..97193034f37c 100644 --- a/google-cloud-netapp-v1/proto_docs/google/api/client.rb +++ b/google-cloud-netapp-v1/proto_docs/google/api/client.rb @@ -141,9 +141,10 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 # @!attribute [rw] service_class_names # @return [::Google::Protobuf::Map{::String => ::String}] # Configure the Java class name to use instead of the service's for its @@ -155,11 +156,11 @@ class Publishing # # Example of a YAML configuration:: # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. @@ -190,6 +191,20 @@ class CppSettings # @!attribute [rw] common # @return [::Google::Api::CommonLanguageSettings] # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 class PhpSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -318,10 +333,12 @@ class RubySettings # service names and values are the name to be used for the service client # and call options. # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin class GoSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -344,10 +361,10 @@ class RenamedServicesEntry # # Example: # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... # @!attribute [rw] long_running # @return [::Google::Api::MethodSettings::LongRunning] # Describes settings to use for long-running operations when generating @@ -356,14 +373,14 @@ class RenamedServicesEntry # # Example of a YAML configuration:: # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes # @!attribute [rw] auto_populated_fields # @return [::Array<::String>] # List of top-level fields of the request message, that should be @@ -372,11 +389,24 @@ class RenamedServicesEntry # # Example of a YAML configuration: # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 class MethodSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -428,6 +458,77 @@ class SelectiveGapicGeneration extend ::Google::Protobuf::MessageExts::ClassMethods end + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The organization for which the client libraries are being published. # Affects the url where generated docs are published, etc. module ClientLibraryOrganization @@ -469,5 +570,20 @@ module ClientLibraryDestination # Publish the library to package managers like nuget.org and npmjs.com. PACKAGE_MANAGER = 20 end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end end end diff --git a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/backup.rb b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/backup.rb index 78985347febe..4e39676ffd28 100644 --- a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/backup.rb +++ b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/backup.rb @@ -46,6 +46,7 @@ module V1 # @!attribute [rw] source_volume # @return [::String] # Volume full name of this backup belongs to. + # Either source_volume or ontap_source should be provided. # Format: # `projects/{projects_id}/locations/{location}/volumes/{volume_id}` # @!attribute [rw] source_snapshot diff --git a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/common.rb b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/common.rb index f42e35a89c81..707b29ae6991 100644 --- a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/common.rb +++ b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/common.rb @@ -110,9 +110,6 @@ module StoragePoolType # Storage pool type is unified. UNIFIED = 2 - - # Storage pool type is unified large capacity. - UNIFIED_LARGE_CAPACITY = 3 end # Schedule for Hybrid Replication. diff --git a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/ontap.rb b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/ontap.rb new file mode 100644 index 000000000000..5e3f1cfe4ed6 --- /dev/null +++ b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/ontap.rb @@ -0,0 +1,140 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module NetApp + module V1 + # Request message for `ExecuteOntapPost` API. + # @!attribute [rw] body + # @return [::Google::Protobuf::Struct] + # Required. The raw `JSON` body of the request. + # The body should be in the format of the ONTAP resource. + # For example: + # ``` + # { + # "body": { + # "field1": "value1", + # "field2": "value2", + # } + # } + # ``` + # @!attribute [rw] ontap_path + # @return [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + class ExecuteOntapPostRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `ExecuteOntapPost` API. + # @!attribute [rw] body + # @return [::Google::Protobuf::Struct] + # The raw `JSON` body of the response. + class ExecuteOntapPostResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `ExecuteOntapGet` API. + # @!attribute [rw] ontap_path + # @return [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + class ExecuteOntapGetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `ExecuteOntapGet` API. + # @!attribute [rw] body + # @return [::Google::Protobuf::Struct] + # The raw `JSON` body of the response. + class ExecuteOntapGetResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `ExecuteOntapDelete` API. + # @!attribute [rw] ontap_path + # @return [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + class ExecuteOntapDeleteRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `ExecuteOntapDelete` API. + # @!attribute [rw] body + # @return [::Google::Protobuf::Struct] + # The raw `JSON` body of the response. + class ExecuteOntapDeleteResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for `ExecuteOntapPatch` API. + # @!attribute [rw] body + # @return [::Google::Protobuf::Struct] + # Required. The raw `JSON` body of the request. + # The body should be in the format of the ONTAP resource. + # For example: + # ``` + # { + # "body": { + # "field1": "value1", + # "field2": "value2", + # } + # } + # ``` + # @!attribute [rw] ontap_path + # @return [::String] + # Required. The resource path of the ONTAP resource. + # Format: + # `projects/{project_number}/locations/{location_id}/storagePools/{storage_pool_id}/ontap/{ontap_resource_path}`. + # For example: + # `projects/123456789/locations/us-central1/storagePools/my-storage-pool/ontap/api/storage/volumes`. + class ExecuteOntapPatchRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for `ExecuteOntapPatch` API. + # @!attribute [rw] body + # @return [::Google::Protobuf::Struct] + # The raw `JSON` body of the response. + class ExecuteOntapPatchResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/storage_pool.rb b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/storage_pool.rb index 8860ab055581..400e75a4e796 100644 --- a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/storage_pool.rb +++ b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/storage_pool.rb @@ -238,9 +238,13 @@ class SwitchActiveReplicaZoneRequest # @return [::Google::Cloud::NetApp::V1::StoragePoolType] # Optional. Type of the storage pool. This field is used to control whether # the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and - # `BLOCK`) volumes or `UNIFIED_LARGE_CAPACITY` (both `FILE` and `BLOCK`) - # volumes with large capacity. If not specified during creation, it defaults - # to `FILE`. + # `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`. + # @!attribute [rw] mode + # @return [::Google::Cloud::NetApp::V1::Mode] + # Optional. Mode of the storage pool. This field is used to control whether + # the user can perform the ONTAP operations on the storage pool using the + # GCNV ONTAP Mode APIs. If not specified during creation, it defaults to + # `DEFAULT`. class StoragePool include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -294,6 +298,19 @@ class ValidateDirectoryServiceRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end + + # `Mode` of the storage pool or volume. This field is used to control whether + # the resource is managed by the GCNV APIs or the GCNV ONTAP Mode APIs. + module Mode + # The `Mode` is not specified. + MODE_UNSPECIFIED = 0 + + # The resource is managed by the GCNV APIs. + DEFAULT = 1 + + # The resource is managed by the GCNV ONTAP Mode APIs. + ONTAP = 2 + end end end end diff --git a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/volume.rb b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/volume.rb index 068bafceea96..50dcb65b6a42 100644 --- a/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/volume.rb +++ b/google-cloud-netapp-v1/proto_docs/google/cloud/netapp/v1/volume.rb @@ -272,10 +272,34 @@ class RevertVolumeRequest # @return [::Array<::Google::Cloud::NetApp::V1::BlockDevice>] # Optional. Block devices for the volume. # Currently, only one block device is permitted per Volume. + # @!attribute [r] clone_details + # @return [::Google::Cloud::NetApp::V1::Volume::CloneDetails] + # Output only. If this volume is a clone, this field contains details about + # the clone. class Volume include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods + # Details about a clone volume. + # @!attribute [r] source_snapshot + # @return [::String] + # Output only. Specifies the full resource name of the source snapshot from + # which this volume was cloned. Format: + # projects/\\{project}/locations/\\{location}/volumes/\\{volume}/snapshots/\\{snapshot} + # @!attribute [r] source_volume + # @return [::String] + # Output only. Full name of the source volume resource. + # Format: + # projects/\\{project}/locations/\\{location}/volumes/\\{volume} + # @!attribute [r] shared_space_gib + # @return [::Integer] + # Output only. Shared space in GiB. Determined at volume creation time + # based on size of source snapshot. + class CloneDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # @!attribute [rw] key # @return [::String] # @!attribute [rw] value @@ -536,8 +560,10 @@ class MountOption # @!attribute [rw] source_backup # @return [::String] # Full name of the backup resource. - # Format: + # Format for standard backup: # projects/\\{project}/locations/\\{location}/backupVaults/\\{backup_vault_id}/backups/\\{backup_id} + # Format for BackupDR backup: + # projects/\\{project}/locations/\\{location}/backupVaults/\\{backup_vault}/dataSources/\\{data_source}/backups/\\{backup} # # Note: The following fields are mutually exclusive: `source_backup`, `source_snapshot`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RestoreParameters @@ -858,6 +884,32 @@ class RestoreBackupFilesResponse extend ::Google::Protobuf::MessageExts::ClassMethods end + # EstablishVolumePeeringRequest establishes cluster and svm peerings between + # the source and destination clusters. + # @!attribute [rw] name + # @return [::String] + # Required. The volume resource name, in the format + # `projects/{project_id}/locations/{location}/volumes/{volume_id}` + # @!attribute [rw] peer_cluster_name + # @return [::String] + # Required. Name of the user's local source cluster to be peered with the + # destination cluster. + # @!attribute [rw] peer_svm_name + # @return [::String] + # Required. Name of the user's local source vserver svm to be peered with the + # destination vserver svm. + # @!attribute [rw] peer_ip_addresses + # @return [::Array<::String>] + # Optional. List of IPv4 ip addresses to be used for peering. + # @!attribute [rw] peer_volume_name + # @return [::String] + # Required. Name of the user's local source volume to be peered with the + # destination volume. + class EstablishVolumePeeringRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # Protocols is an enum of all the supported network protocols for a volume. module Protocols # Unspecified protocol diff --git a/google-cloud-netapp-v1/proto_docs/google/protobuf/struct.rb b/google-cloud-netapp-v1/proto_docs/google/protobuf/struct.rb new file mode 100644 index 000000000000..39e1aca868d2 --- /dev/null +++ b/google-cloud-netapp-v1/proto_docs/google/protobuf/struct.rb @@ -0,0 +1,108 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Struct` represents a structured data value, consisting of fields + # which map to dynamically typed values. In some languages, `Struct` + # might be supported by a native representation. For example, in + # scripting languages like JS a struct is represented as an + # object. The details of that representation are described together + # with the proto support for the language. + # + # The JSON representation for `Struct` is JSON object. + # @!attribute [rw] fields + # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}] + # Unordered map of dynamically typed values. + class Struct + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Protobuf::Value] + class FieldsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # `Value` represents a dynamically typed value which can be either + # null, a number, a string, a boolean, a recursive struct value, or a + # list of values. A producer of value is expected to set one of these + # variants. Absence of any variant indicates an error. + # + # The JSON representation for `Value` is JSON value. + # @!attribute [rw] null_value + # @return [::Google::Protobuf::NullValue] + # Represents a null value. + # + # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] number_value + # @return [::Float] + # Represents a double value. + # + # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] string_value + # @return [::String] + # Represents a string value. + # + # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] bool_value + # @return [::Boolean] + # Represents a boolean value. + # + # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] struct_value + # @return [::Google::Protobuf::Struct] + # Represents a structured value. + # + # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] list_value + # @return [::Google::Protobuf::ListValue] + # Represents a repeated `Value`. + # + # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Value + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `ListValue` is a wrapper around a repeated field of values. + # + # The JSON representation for `ListValue` is JSON array. + # @!attribute [rw] values + # @return [::Array<::Google::Protobuf::Value>] + # Repeated field of dynamically typed values. + class ListValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `NullValue` is a singleton enumeration to represent the null value for the + # `Value` type union. + # + # The JSON representation for `NullValue` is JSON `null`. + module NullValue + # Null value. + NULL_VALUE = 0 + end + end +end diff --git a/google-cloud-netapp-v1/snippets/netapp/establish_volume_peering.rb b/google-cloud-netapp-v1/snippets/netapp/establish_volume_peering.rb new file mode 100644 index 000000000000..a6797a77060e --- /dev/null +++ b/google-cloud-netapp-v1/snippets/netapp/establish_volume_peering.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START netapp_v1_generated_NetApp_EstablishVolumePeering_sync] +require "google/cloud/netapp/v1" + +## +# Snippet for the establish_volume_peering call in the NetApp service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::NetApp::V1::NetApp::Client#establish_volume_peering. +# +def establish_volume_peering + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::NetApp::V1::NetApp::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new + + # Call the establish_volume_peering method. + result = client.establish_volume_peering request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END netapp_v1_generated_NetApp_EstablishVolumePeering_sync] diff --git a/google-cloud-netapp-v1/snippets/netapp/execute_ontap_delete.rb b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_delete.rb new file mode 100644 index 000000000000..4fa7203c0d7c --- /dev/null +++ b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_delete.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START netapp_v1_generated_NetApp_ExecuteOntapDelete_sync] +require "google/cloud/netapp/v1" + +## +# Snippet for the execute_ontap_delete call in the NetApp service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_delete. +# +def execute_ontap_delete + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::NetApp::V1::NetApp::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new + + # Call the execute_ontap_delete method. + result = client.execute_ontap_delete request + + # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse. + p result +end +# [END netapp_v1_generated_NetApp_ExecuteOntapDelete_sync] diff --git a/google-cloud-netapp-v1/snippets/netapp/execute_ontap_get.rb b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_get.rb new file mode 100644 index 000000000000..1bba809a723d --- /dev/null +++ b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_get.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START netapp_v1_generated_NetApp_ExecuteOntapGet_sync] +require "google/cloud/netapp/v1" + +## +# Snippet for the execute_ontap_get call in the NetApp service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_get. +# +def execute_ontap_get + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::NetApp::V1::NetApp::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new + + # Call the execute_ontap_get method. + result = client.execute_ontap_get request + + # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapGetResponse. + p result +end +# [END netapp_v1_generated_NetApp_ExecuteOntapGet_sync] diff --git a/google-cloud-netapp-v1/snippets/netapp/execute_ontap_patch.rb b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_patch.rb new file mode 100644 index 000000000000..906a97c7e735 --- /dev/null +++ b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_patch.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START netapp_v1_generated_NetApp_ExecuteOntapPatch_sync] +require "google/cloud/netapp/v1" + +## +# Snippet for the execute_ontap_patch call in the NetApp service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_patch. +# +def execute_ontap_patch + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::NetApp::V1::NetApp::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new + + # Call the execute_ontap_patch method. + result = client.execute_ontap_patch request + + # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse. + p result +end +# [END netapp_v1_generated_NetApp_ExecuteOntapPatch_sync] diff --git a/google-cloud-netapp-v1/snippets/netapp/execute_ontap_post.rb b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_post.rb new file mode 100644 index 000000000000..11e0a06b1115 --- /dev/null +++ b/google-cloud-netapp-v1/snippets/netapp/execute_ontap_post.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START netapp_v1_generated_NetApp_ExecuteOntapPost_sync] +require "google/cloud/netapp/v1" + +## +# Snippet for the execute_ontap_post call in the NetApp service +# +# This snippet has been automatically generated and should be regarded as a code +# template only. It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in https://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_post. +# +def execute_ontap_post + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::NetApp::V1::NetApp::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new + + # Call the execute_ontap_post method. + result = client.execute_ontap_post request + + # The returned object is of type Google::Cloud::NetApp::V1::ExecuteOntapPostResponse. + p result +end +# [END netapp_v1_generated_NetApp_ExecuteOntapPost_sync] diff --git a/google-cloud-netapp-v1/snippets/snippet_metadata_google.cloud.netapp.v1.json b/google-cloud-netapp-v1/snippets/snippet_metadata_google.cloud.netapp.v1.json index 595ae88e6655..a6acde22a6f5 100644 --- a/google-cloud-netapp-v1/snippets/snippet_metadata_google.cloud.netapp.v1.json +++ b/google-cloud-netapp-v1/snippets/snippet_metadata_google.cloud.netapp.v1.json @@ -531,6 +531,46 @@ } ] }, + { + "region_tag": "netapp_v1_generated_NetApp_EstablishVolumePeering_sync", + "title": "Snippet for the establish_volume_peering call in the NetApp service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::NetApp::V1::NetApp::Client#establish_volume_peering.", + "file": "netapp/establish_volume_peering.rb", + "language": "RUBY", + "client_method": { + "short_name": "establish_volume_peering", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client#establish_volume_peering", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "NetApp::Client", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client" + }, + "method": { + "short_name": "EstablishVolumePeering", + "full_name": "google.cloud.netapp.v1.NetApp.EstablishVolumePeering", + "service": { + "short_name": "NetApp", + "full_name": "google.cloud.netapp.v1.NetApp" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, { "region_tag": "netapp_v1_generated_NetApp_ListSnapshots_sync", "title": "Snippet for the list_snapshots call in the NetApp service", @@ -2650,6 +2690,166 @@ "type": "FULL" } ] + }, + { + "region_tag": "netapp_v1_generated_NetApp_ExecuteOntapPost_sync", + "title": "Snippet for the execute_ontap_post call in the NetApp service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_post.", + "file": "netapp/execute_ontap_post.rb", + "language": "RUBY", + "client_method": { + "short_name": "execute_ontap_post", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_post", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse", + "client": { + "short_name": "NetApp::Client", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client" + }, + "method": { + "short_name": "ExecuteOntapPost", + "full_name": "google.cloud.netapp.v1.NetApp.ExecuteOntapPost", + "service": { + "short_name": "NetApp", + "full_name": "google.cloud.netapp.v1.NetApp" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "netapp_v1_generated_NetApp_ExecuteOntapGet_sync", + "title": "Snippet for the execute_ontap_get call in the NetApp service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_get.", + "file": "netapp/execute_ontap_get.rb", + "language": "RUBY", + "client_method": { + "short_name": "execute_ontap_get", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_get", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse", + "client": { + "short_name": "NetApp::Client", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client" + }, + "method": { + "short_name": "ExecuteOntapGet", + "full_name": "google.cloud.netapp.v1.NetApp.ExecuteOntapGet", + "service": { + "short_name": "NetApp", + "full_name": "google.cloud.netapp.v1.NetApp" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "netapp_v1_generated_NetApp_ExecuteOntapDelete_sync", + "title": "Snippet for the execute_ontap_delete call in the NetApp service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_delete.", + "file": "netapp/execute_ontap_delete.rb", + "language": "RUBY", + "client_method": { + "short_name": "execute_ontap_delete", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_delete", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse", + "client": { + "short_name": "NetApp::Client", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client" + }, + "method": { + "short_name": "ExecuteOntapDelete", + "full_name": "google.cloud.netapp.v1.NetApp.ExecuteOntapDelete", + "service": { + "short_name": "NetApp", + "full_name": "google.cloud.netapp.v1.NetApp" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "netapp_v1_generated_NetApp_ExecuteOntapPatch_sync", + "title": "Snippet for the execute_ontap_patch call in the NetApp service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_patch.", + "file": "netapp/execute_ontap_patch.rb", + "language": "RUBY", + "client_method": { + "short_name": "execute_ontap_patch", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client#execute_ontap_patch", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse", + "client": { + "short_name": "NetApp::Client", + "full_name": "::Google::Cloud::NetApp::V1::NetApp::Client" + }, + "method": { + "short_name": "ExecuteOntapPatch", + "full_name": "google.cloud.netapp.v1.NetApp.ExecuteOntapPatch", + "service": { + "short_name": "NetApp", + "full_name": "google.cloud.netapp.v1.NetApp" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] } ] } \ No newline at end of file diff --git a/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_rest_test.rb b/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_rest_test.rb index b6bd034d2344..8187950bd3f7 100644 --- a/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_rest_test.rb +++ b/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_rest_test.rb @@ -797,6 +797,64 @@ def test_revert_volume end end + def test_establish_volume_peering + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + peer_cluster_name = "hello world" + peer_svm_name = "hello world" + peer_ip_addresses = ["hello world"] + peer_volume_name = "hello world" + + establish_volume_peering_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.stub :transcode_establish_volume_peering_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, establish_volume_peering_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.establish_volume_peering({ name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.establish_volume_peering name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.establish_volume_peering ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new(name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.establish_volume_peering({ name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.establish_volume_peering(::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new(name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, establish_volume_peering_client_stub.call_count + end + end + end + def test_list_snapshots # Create test objects. client_result = ::Google::Cloud::NetApp::V1::ListSnapshotsResponse.new @@ -3730,6 +3788,224 @@ def test_delete_host_group end end + def test_execute_ontap_post + # Create test objects. + client_result = ::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + body = {} + ontap_path = "hello world" + + execute_ontap_post_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.stub :transcode_execute_ontap_post_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, execute_ontap_post_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.execute_ontap_post({ body: body, ontap_path: ontap_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.execute_ontap_post body: body, ontap_path: ontap_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.execute_ontap_post ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new(body: body, ontap_path: ontap_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.execute_ontap_post({ body: body, ontap_path: ontap_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.execute_ontap_post(::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new(body: body, ontap_path: ontap_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, execute_ontap_post_client_stub.call_count + end + end + end + + def test_execute_ontap_get + # Create test objects. + client_result = ::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + ontap_path = "hello world" + + execute_ontap_get_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.stub :transcode_execute_ontap_get_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, execute_ontap_get_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.execute_ontap_get({ ontap_path: ontap_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.execute_ontap_get ontap_path: ontap_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.execute_ontap_get ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new(ontap_path: ontap_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.execute_ontap_get({ ontap_path: ontap_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.execute_ontap_get(::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new(ontap_path: ontap_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, execute_ontap_get_client_stub.call_count + end + end + end + + def test_execute_ontap_delete + # Create test objects. + client_result = ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + ontap_path = "hello world" + + execute_ontap_delete_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.stub :transcode_execute_ontap_delete_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, execute_ontap_delete_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.execute_ontap_delete({ ontap_path: ontap_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.execute_ontap_delete ontap_path: ontap_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.execute_ontap_delete ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new(ontap_path: ontap_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.execute_ontap_delete({ ontap_path: ontap_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.execute_ontap_delete(::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new(ontap_path: ontap_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, execute_ontap_delete_client_stub.call_count + end + end + end + + def test_execute_ontap_patch + # Create test objects. + client_result = ::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + body = {} + ontap_path = "hello world" + + execute_ontap_patch_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.stub :transcode_execute_ontap_patch_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, execute_ontap_patch_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.execute_ontap_patch({ body: body, ontap_path: ontap_path }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.execute_ontap_patch body: body, ontap_path: ontap_path do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.execute_ontap_patch ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new(body: body, ontap_path: ontap_path) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.execute_ontap_patch({ body: body, ontap_path: ontap_path }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.execute_ontap_patch(::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new(body: body, ontap_path: ontap_path), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, execute_ontap_patch_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_test.rb b/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_test.rb index 4d3c68918cfa..c1c88cb1e159 100644 --- a/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_test.rb +++ b/google-cloud-netapp-v1/test/google/cloud/netapp/v1/netapp_test.rb @@ -906,6 +906,77 @@ def test_revert_volume end end + def test_establish_volume_peering + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + peer_cluster_name = "hello world" + peer_svm_name = "hello world" + peer_ip_addresses = ["hello world"] + peer_volume_name = "hello world" + + establish_volume_peering_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :establish_volume_peering, name + assert_kind_of ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["peer_cluster_name"] + assert_equal "hello world", request["peer_svm_name"] + assert_equal ["hello world"], request["peer_ip_addresses"] + assert_equal "hello world", request["peer_volume_name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, establish_volume_peering_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.establish_volume_peering({ name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.establish_volume_peering name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.establish_volume_peering ::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new(name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.establish_volume_peering({ name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.establish_volume_peering(::Google::Cloud::NetApp::V1::EstablishVolumePeeringRequest.new(name: name, peer_cluster_name: peer_cluster_name, peer_svm_name: peer_svm_name, peer_ip_addresses: peer_ip_addresses, peer_volume_name: peer_volume_name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, establish_volume_peering_client_stub.call_rpc_count + end + end + def test_list_snapshots # Create GRPC objects. grpc_response = ::Google::Cloud::NetApp::V1::ListSnapshotsResponse.new @@ -4337,6 +4408,242 @@ def test_delete_host_group end end + def test_execute_ontap_post + # Create GRPC objects. + grpc_response = ::Google::Cloud::NetApp::V1::ExecuteOntapPostResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + body = {} + ontap_path = "hello world" + + execute_ontap_post_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :execute_ontap_post, name + assert_kind_of ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Struct), request["body"] + assert_equal "hello world", request["ontap_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, execute_ontap_post_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.execute_ontap_post({ body: body, ontap_path: ontap_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.execute_ontap_post body: body, ontap_path: ontap_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.execute_ontap_post ::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new(body: body, ontap_path: ontap_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.execute_ontap_post({ body: body, ontap_path: ontap_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.execute_ontap_post(::Google::Cloud::NetApp::V1::ExecuteOntapPostRequest.new(body: body, ontap_path: ontap_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, execute_ontap_post_client_stub.call_rpc_count + end + end + + def test_execute_ontap_get + # Create GRPC objects. + grpc_response = ::Google::Cloud::NetApp::V1::ExecuteOntapGetResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + ontap_path = "hello world" + + execute_ontap_get_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :execute_ontap_get, name + assert_kind_of ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest, request + assert_equal "hello world", request["ontap_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, execute_ontap_get_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.execute_ontap_get({ ontap_path: ontap_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.execute_ontap_get ontap_path: ontap_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.execute_ontap_get ::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new(ontap_path: ontap_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.execute_ontap_get({ ontap_path: ontap_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.execute_ontap_get(::Google::Cloud::NetApp::V1::ExecuteOntapGetRequest.new(ontap_path: ontap_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, execute_ontap_get_client_stub.call_rpc_count + end + end + + def test_execute_ontap_delete + # Create GRPC objects. + grpc_response = ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + ontap_path = "hello world" + + execute_ontap_delete_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :execute_ontap_delete, name + assert_kind_of ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest, request + assert_equal "hello world", request["ontap_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, execute_ontap_delete_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.execute_ontap_delete({ ontap_path: ontap_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.execute_ontap_delete ontap_path: ontap_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.execute_ontap_delete ::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new(ontap_path: ontap_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.execute_ontap_delete({ ontap_path: ontap_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.execute_ontap_delete(::Google::Cloud::NetApp::V1::ExecuteOntapDeleteRequest.new(ontap_path: ontap_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, execute_ontap_delete_client_stub.call_rpc_count + end + end + + def test_execute_ontap_patch + # Create GRPC objects. + grpc_response = ::Google::Cloud::NetApp::V1::ExecuteOntapPatchResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + body = {} + ontap_path = "hello world" + + execute_ontap_patch_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :execute_ontap_patch, name + assert_kind_of ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Struct), request["body"] + assert_equal "hello world", request["ontap_path"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, execute_ontap_patch_client_stub do + # Create client + client = ::Google::Cloud::NetApp::V1::NetApp::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.execute_ontap_patch({ body: body, ontap_path: ontap_path }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.execute_ontap_patch body: body, ontap_path: ontap_path do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.execute_ontap_patch ::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new(body: body, ontap_path: ontap_path) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.execute_ontap_patch({ body: body, ontap_path: ontap_path }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.execute_ontap_patch(::Google::Cloud::NetApp::V1::ExecuteOntapPatchRequest.new(body: body, ontap_path: ontap_path), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, execute_ontap_patch_client_stub.call_rpc_count + end + end + def test_configure grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure