Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::NetApp::Client.
Client for the NetApp service.
NetApp Files Google Cloud Service
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all NetApp clients ::Google::Cloud::NetApp::V1::NetApp::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the NetApp Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_active_directory
def create_active_directory(request, options = nil) -> ::Gapic::Operation
def create_active_directory(parent: nil, active_directory: nil, active_directory_id: nil) -> ::Gapic::Operation
CreateActiveDirectory Creates the active directory specified in the request.
def create_active_directory(request, options = nil) -> ::Gapic::Operation
create_active_directory
via a request object, either of type
CreateActiveDirectoryRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateActiveDirectoryRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_active_directory(parent: nil, active_directory: nil, active_directory_id: nil) -> ::Gapic::Operation
create_active_directory
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).
- parent (::String) — Required. Value for parent.
- active_directory (::Google::Cloud::NetApp::V1::ActiveDirectory, ::Hash) — Required. Fields of the to be created active directory.
- active_directory_id (::String) — Required. ID of the active directory to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::CreateActiveDirectoryRequest.new # Call the create_active_directory method. result = client.create_active_directory 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
#create_kms_config
def create_kms_config(request, options = nil) -> ::Gapic::Operation
def create_kms_config(parent: nil, kms_config_id: nil, kms_config: nil) -> ::Gapic::Operation
Creates a new KMS config.
def create_kms_config(request, options = nil) -> ::Gapic::Operation
create_kms_config
via a request object, either of type
CreateKmsConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateKmsConfigRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_kms_config(parent: nil, kms_config_id: nil, kms_config: nil) -> ::Gapic::Operation
create_kms_config
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).
- parent (::String) — Required. Value for parent.
- kms_config_id (::String) — Required. Id of the requesting KmsConfig If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC
- kms_config (::Google::Cloud::NetApp::V1::KmsConfig, ::Hash) — Required. The required parameters to create a new KmsConfig.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::CreateKmsConfigRequest.new # Call the create_kms_config method. result = client.create_kms_config 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
#create_replication
def create_replication(request, options = nil) -> ::Gapic::Operation
def create_replication(parent: nil, replication: nil, replication_id: nil) -> ::Gapic::Operation
Create a new replication for a volume.
def create_replication(request, options = nil) -> ::Gapic::Operation
create_replication
via a request object, either of type
CreateReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateReplicationRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_replication(parent: nil, replication: nil, replication_id: nil) -> ::Gapic::Operation
create_replication
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).
-
parent (::String) — Required. The NetApp volume to create the replications of, in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}
- replication (::Google::Cloud::NetApp::V1::Replication, ::Hash) — Required. A replication resource
- replication_id (::String) — Required. ID of the replication to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::CreateReplicationRequest.new # Call the create_replication method. result = client.create_replication 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
#create_snapshot
def create_snapshot(request, options = nil) -> ::Gapic::Operation
def create_snapshot(parent: nil, snapshot: nil, snapshot_id: nil) -> ::Gapic::Operation
Create a new snapshot for a volume.
def create_snapshot(request, options = nil) -> ::Gapic::Operation
create_snapshot
via a request object, either of type
CreateSnapshotRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateSnapshotRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_snapshot(parent: nil, snapshot: nil, snapshot_id: nil) -> ::Gapic::Operation
create_snapshot
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).
-
parent (::String) — Required. The NetApp volume to create the snapshots of, in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}
- snapshot (::Google::Cloud::NetApp::V1::Snapshot, ::Hash) — Required. A snapshot resource
- snapshot_id (::String) — Required. ID of the snapshot to create. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::CreateSnapshotRequest.new # Call the create_snapshot method. result = client.create_snapshot 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
#create_storage_pool
def create_storage_pool(request, options = nil) -> ::Gapic::Operation
def create_storage_pool(parent: nil, storage_pool_id: nil, storage_pool: nil) -> ::Gapic::Operation
Creates a new storage pool.
def create_storage_pool(request, options = nil) -> ::Gapic::Operation
create_storage_pool
via a request object, either of type
CreateStoragePoolRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateStoragePoolRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_storage_pool(parent: nil, storage_pool_id: nil, storage_pool: nil) -> ::Gapic::Operation
create_storage_pool
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).
- parent (::String) — Required. Value for parent.
- storage_pool_id (::String) — Required. Id of the requesting storage pool If auto-generating Id server-side, remove this field and id from the method_signature of Create RPC
- storage_pool (::Google::Cloud::NetApp::V1::StoragePool, ::Hash) — Required. The required parameters to create a new storage pool.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::CreateStoragePoolRequest.new # Call the create_storage_pool method. result = client.create_storage_pool 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
#create_volume
def create_volume(request, options = nil) -> ::Gapic::Operation
def create_volume(parent: nil, volume_id: nil, volume: nil) -> ::Gapic::Operation
Creates a new Volume in a given project and location.
def create_volume(request, options = nil) -> ::Gapic::Operation
create_volume
via a request object, either of type
CreateVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateVolumeRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_volume(parent: nil, volume_id: nil, volume: nil) -> ::Gapic::Operation
create_volume
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).
- parent (::String) — Required. Value for parent.
- volume_id (::String) — Required. Id of the requesting volume If auto-generating Id server-side, remove this field and Id from the method_signature of Create RPC
- volume (::Google::Cloud::NetApp::V1::Volume, ::Hash) — Required. The volume being created.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::CreateVolumeRequest.new # Call the create_volume method. result = client.create_volume 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
#delete_active_directory
def delete_active_directory(request, options = nil) -> ::Gapic::Operation
def delete_active_directory(name: nil) -> ::Gapic::Operation
Delete the active directory specified in the request.
def delete_active_directory(request, options = nil) -> ::Gapic::Operation
delete_active_directory
via a request object, either of type
DeleteActiveDirectoryRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteActiveDirectoryRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_active_directory(name: nil) -> ::Gapic::Operation
delete_active_directory
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).
- name (::String) — Required. Name of the active directory.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::DeleteActiveDirectoryRequest.new # Call the delete_active_directory method. result = client.delete_active_directory 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
#delete_kms_config
def delete_kms_config(request, options = nil) -> ::Gapic::Operation
def delete_kms_config(name: nil) -> ::Gapic::Operation
Warning! This operation will permanently delete the Kms config.
def delete_kms_config(request, options = nil) -> ::Gapic::Operation
delete_kms_config
via a request object, either of type
DeleteKmsConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteKmsConfigRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_kms_config(name: nil) -> ::Gapic::Operation
delete_kms_config
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).
- name (::String) — Required. Name of the KmsConfig.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::DeleteKmsConfigRequest.new # Call the delete_kms_config method. result = client.delete_kms_config 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
#delete_replication
def delete_replication(request, options = nil) -> ::Gapic::Operation
def delete_replication(name: nil) -> ::Gapic::Operation
Deletes a replication.
def delete_replication(request, options = nil) -> ::Gapic::Operation
delete_replication
via a request object, either of type
DeleteReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteReplicationRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_replication(name: nil) -> ::Gapic::Operation
delete_replication
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).
-
name (::String) — Required. The replication resource name, in the format
projects/*/locations/*/volumes/*/replications/{replication_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::DeleteReplicationRequest.new # Call the delete_replication method. result = client.delete_replication 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
#delete_snapshot
def delete_snapshot(request, options = nil) -> ::Gapic::Operation
def delete_snapshot(name: nil) -> ::Gapic::Operation
Deletes a snapshot.
def delete_snapshot(request, options = nil) -> ::Gapic::Operation
delete_snapshot
via a request object, either of type
DeleteSnapshotRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteSnapshotRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_snapshot(name: nil) -> ::Gapic::Operation
delete_snapshot
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).
-
name (::String) — Required. The snapshot resource name, in the format
projects/*/locations/*/volumes/*/snapshots/{snapshot_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::DeleteSnapshotRequest.new # Call the delete_snapshot method. result = client.delete_snapshot 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
#delete_storage_pool
def delete_storage_pool(request, options = nil) -> ::Gapic::Operation
def delete_storage_pool(name: nil) -> ::Gapic::Operation
Warning! This operation will permanently delete the storage pool.
def delete_storage_pool(request, options = nil) -> ::Gapic::Operation
delete_storage_pool
via a request object, either of type
DeleteStoragePoolRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteStoragePoolRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_storage_pool(name: nil) -> ::Gapic::Operation
delete_storage_pool
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).
- name (::String) — Required. Name of the storage pool
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::DeleteStoragePoolRequest.new # Call the delete_storage_pool method. result = client.delete_storage_pool 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
#delete_volume
def delete_volume(request, options = nil) -> ::Gapic::Operation
def delete_volume(name: nil, force: nil) -> ::Gapic::Operation
Deletes a single Volume.
def delete_volume(request, options = nil) -> ::Gapic::Operation
delete_volume
via a request object, either of type
DeleteVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteVolumeRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_volume(name: nil, force: nil) -> ::Gapic::Operation
delete_volume
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).
- name (::String) — Required. Name of the volume
- force (::Boolean) — If this field is set as true, CCFE will not block the volume resource deletion even if it has any snapshots resource. (Otherwise, the request will only work if the volume has no snapshots.)
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::DeleteVolumeRequest.new # Call the delete_volume method. result = client.delete_volume 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
#encrypt_volumes
def encrypt_volumes(request, options = nil) -> ::Gapic::Operation
def encrypt_volumes(name: nil) -> ::Gapic::Operation
Encrypt the existing volumes without CMEK encryption with the desired the KMS config for the whole region.
def encrypt_volumes(request, options = nil) -> ::Gapic::Operation
encrypt_volumes
via a request object, either of type
EncryptVolumesRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::EncryptVolumesRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def encrypt_volumes(name: nil) -> ::Gapic::Operation
encrypt_volumes
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).
- name (::String) — Required. Name of the KmsConfig.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::EncryptVolumesRequest.new # Call the encrypt_volumes method. result = client.encrypt_volumes 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
#get_active_directory
def get_active_directory(request, options = nil) -> ::Google::Cloud::NetApp::V1::ActiveDirectory
def get_active_directory(name: nil) -> ::Google::Cloud::NetApp::V1::ActiveDirectory
Describes a specified active directory.
def get_active_directory(request, options = nil) -> ::Google::Cloud::NetApp::V1::ActiveDirectory
get_active_directory
via a request object, either of type
GetActiveDirectoryRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetActiveDirectoryRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_active_directory(name: nil) -> ::Google::Cloud::NetApp::V1::ActiveDirectory
get_active_directory
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).
- name (::String) — Required. Name of the active directory.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::ActiveDirectory)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::GetActiveDirectoryRequest.new # Call the get_active_directory method. result = client.get_active_directory request # The returned object is of type Google::Cloud::NetApp::V1::ActiveDirectory. p result
#get_kms_config
def get_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::KmsConfig
def get_kms_config(name: nil) -> ::Google::Cloud::NetApp::V1::KmsConfig
Returns the description of the specified KMS config by kms_config_id.
def get_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::KmsConfig
get_kms_config
via a request object, either of type
GetKmsConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetKmsConfigRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_kms_config(name: nil) -> ::Google::Cloud::NetApp::V1::KmsConfig
get_kms_config
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).
- name (::String) — Required. Name of the KmsConfig
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::KmsConfig)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::GetKmsConfigRequest.new # Call the get_kms_config method. result = client.get_kms_config request # The returned object is of type Google::Cloud::NetApp::V1::KmsConfig. p result
#get_replication
def get_replication(request, options = nil) -> ::Google::Cloud::NetApp::V1::Replication
def get_replication(name: nil) -> ::Google::Cloud::NetApp::V1::Replication
Describe a replication for a volume.
def get_replication(request, options = nil) -> ::Google::Cloud::NetApp::V1::Replication
get_replication
via a request object, either of type
GetReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetReplicationRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_replication(name: nil) -> ::Google::Cloud::NetApp::V1::Replication
get_replication
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).
-
name (::String) — Required. The replication resource name, in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::Replication)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::GetReplicationRequest.new # Call the get_replication method. result = client.get_replication request # The returned object is of type Google::Cloud::NetApp::V1::Replication. p result
#get_snapshot
def get_snapshot(request, options = nil) -> ::Google::Cloud::NetApp::V1::Snapshot
def get_snapshot(name: nil) -> ::Google::Cloud::NetApp::V1::Snapshot
Describe a snapshot for a volume.
def get_snapshot(request, options = nil) -> ::Google::Cloud::NetApp::V1::Snapshot
get_snapshot
via a request object, either of type
GetSnapshotRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetSnapshotRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_snapshot(name: nil) -> ::Google::Cloud::NetApp::V1::Snapshot
get_snapshot
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).
-
name (::String) — Required. The snapshot resource name, in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::Snapshot)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::GetSnapshotRequest.new # Call the get_snapshot method. result = client.get_snapshot request # The returned object is of type Google::Cloud::NetApp::V1::Snapshot. p result
#get_storage_pool
def get_storage_pool(request, options = nil) -> ::Google::Cloud::NetApp::V1::StoragePool
def get_storage_pool(name: nil) -> ::Google::Cloud::NetApp::V1::StoragePool
Returns the description of the specified storage pool by poolId.
def get_storage_pool(request, options = nil) -> ::Google::Cloud::NetApp::V1::StoragePool
get_storage_pool
via a request object, either of type
GetStoragePoolRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetStoragePoolRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_storage_pool(name: nil) -> ::Google::Cloud::NetApp::V1::StoragePool
get_storage_pool
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).
- name (::String) — Required. Name of the storage pool
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::StoragePool)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::GetStoragePoolRequest.new # Call the get_storage_pool method. result = client.get_storage_pool request # The returned object is of type Google::Cloud::NetApp::V1::StoragePool. p result
#get_volume
def get_volume(request, options = nil) -> ::Google::Cloud::NetApp::V1::Volume
def get_volume(name: nil) -> ::Google::Cloud::NetApp::V1::Volume
Gets details of a single Volume.
def get_volume(request, options = nil) -> ::Google::Cloud::NetApp::V1::Volume
get_volume
via a request object, either of type
GetVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetVolumeRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_volume(name: nil) -> ::Google::Cloud::NetApp::V1::Volume
get_volume
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).
- name (::String) — Required. Name of the volume
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::Volume)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::GetVolumeRequest.new # Call the get_volume method. result = client.get_volume request # The returned object is of type Google::Cloud::NetApp::V1::Volume. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new NetApp client object.
- (config) — Configure the NetApp client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::NetApp::V1::NetApp::Client.new # Create a client using a custom configuration client = ::Google::Cloud::NetApp::V1::NetApp::Client.new do |config| config.timeout = 10.0 end
#list_active_directories
def list_active_directories(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>
def list_active_directories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>
Lists active directories.
def list_active_directories(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>
list_active_directories
via a request object, either of type
ListActiveDirectoriesRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListActiveDirectoriesRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_active_directories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>
list_active_directories
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).
- parent (::String) — Required. Parent value for ListActiveDirectoriesRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ListActiveDirectoriesRequest.new # Call the list_active_directories method. result = client.list_active_directories request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetApp::V1::ActiveDirectory. p item end
#list_kms_configs
def list_kms_configs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>
def list_kms_configs(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>
Returns descriptions of all KMS configs owned by the caller.
def list_kms_configs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>
list_kms_configs
via a request object, either of type
ListKmsConfigsRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListKmsConfigsRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_kms_configs(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>
list_kms_configs
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).
- parent (::String) — Required. Parent value
- page_size (::Integer) — The maximum number of items to return.
- page_token (::String) — The next_page_token value to use if there are additional results to retrieve for this list request.
- order_by (::String) — Sort results. Supported values are "name", "name desc" or "" (unsorted).
- filter (::String) — List filter.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ListKmsConfigsRequest.new # Call the list_kms_configs method. result = client.list_kms_configs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetApp::V1::KmsConfig. p item end
#list_replications
def list_replications(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>
def list_replications(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>
Returns descriptions of all replications for a volume.
def list_replications(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>
list_replications
via a request object, either of type
ListReplicationsRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListReplicationsRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_replications(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>
list_replications
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).
-
parent (::String) — Required. The volume for which to retrieve replication information,
in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}
. - page_size (::Integer) — The maximum number of items to return.
- page_token (::String) — The next_page_token value to use if there are additional results to retrieve for this list request.
- order_by (::String) — Sort results. Supported values are "name", "name desc" or "" (unsorted).
- filter (::String) — List filter.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ListReplicationsRequest.new # Call the list_replications method. result = client.list_replications request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetApp::V1::Replication. p item end
#list_snapshots
def list_snapshots(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>
def list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>
Returns descriptions of all snapshots for a volume.
def list_snapshots(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>
list_snapshots
via a request object, either of type
ListSnapshotsRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListSnapshotsRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>
list_snapshots
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).
-
parent (::String) — Required. The volume for which to retrieve snapshot information,
in the format
projects/{project_id}/locations/{location}/volumes/{volume_id}
. - page_size (::Integer) — The maximum number of items to return.
- page_token (::String) — The next_page_token value to use if there are additional results to retrieve for this list request.
- order_by (::String) — Sort results. Supported values are "name", "name desc" or "" (unsorted).
- filter (::String) — List filter.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ListSnapshotsRequest.new # Call the list_snapshots method. result = client.list_snapshots request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetApp::V1::Snapshot. p item end
#list_storage_pools
def list_storage_pools(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>
def list_storage_pools(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>
Returns descriptions of all storage pools owned by the caller.
def list_storage_pools(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>
list_storage_pools
via a request object, either of type
ListStoragePoolsRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListStoragePoolsRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_storage_pools(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>
list_storage_pools
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).
- parent (::String) — Required. Parent value
- page_size (::Integer) — The maximum number of items to return.
- page_token (::String) — The next_page_token value to use if there are additional results to retrieve for this list request.
- order_by (::String) — Sort results. Supported values are "name", "name desc" or "" (unsorted).
- filter (::String) — List filter.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ListStoragePoolsRequest.new # Call the list_storage_pools method. result = client.list_storage_pools request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetApp::V1::StoragePool. p item end
#list_volumes
def list_volumes(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>
def list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>
Lists Volumes in a given project.
def list_volumes(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>
list_volumes
via a request object, either of type
ListVolumesRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListVolumesRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>
list_volumes
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).
- parent (::String) — Required. Parent value for ListVolumesRequest
- page_size (::Integer) — Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
- page_token (::String) — A token identifying a page of results the server should return.
- filter (::String) — Filtering results
- order_by (::String) — Hint for how to order the results
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ListVolumesRequest.new # Call the list_volumes method. result = client.list_volumes request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::NetApp::V1::Volume. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#operations_client
def operations_client() -> ::Google::Cloud::NetApp::V1::NetApp::Operations
Get the associated client for long-running operations.
#resume_replication
def resume_replication(request, options = nil) -> ::Gapic::Operation
def resume_replication(name: nil) -> ::Gapic::Operation
Resume Cross Region Replication.
def resume_replication(request, options = nil) -> ::Gapic::Operation
resume_replication
via a request object, either of type
ResumeReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ResumeReplicationRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def resume_replication(name: nil) -> ::Gapic::Operation
resume_replication
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).
- name (::String) — Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ResumeReplicationRequest.new # Call the resume_replication method. result = client.resume_replication 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
#reverse_replication_direction
def reverse_replication_direction(request, options = nil) -> ::Gapic::Operation
def reverse_replication_direction(name: nil) -> ::Gapic::Operation
Reverses direction of replication. Source becomes destination and destination becomes source.
def reverse_replication_direction(request, options = nil) -> ::Gapic::Operation
reverse_replication_direction
via a request object, either of type
ReverseReplicationDirectionRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ReverseReplicationDirectionRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def reverse_replication_direction(name: nil) -> ::Gapic::Operation
reverse_replication_direction
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).
- name (::String) — Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::ReverseReplicationDirectionRequest.new # Call the reverse_replication_direction method. result = client.reverse_replication_direction 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
#revert_volume
def revert_volume(request, options = nil) -> ::Gapic::Operation
def revert_volume(name: nil, snapshot_id: nil) -> ::Gapic::Operation
Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.
def revert_volume(request, options = nil) -> ::Gapic::Operation
revert_volume
via a request object, either of type
RevertVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::RevertVolumeRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def revert_volume(name: nil, snapshot_id: nil) -> ::Gapic::Operation
revert_volume
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).
- name (::String) — Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}.
- snapshot_id (::String) — Required. The snapshot resource ID, in the format 'my-snapshot', where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::RevertVolumeRequest.new # Call the revert_volume method. result = client.revert_volume 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
#stop_replication
def stop_replication(request, options = nil) -> ::Gapic::Operation
def stop_replication(name: nil, force: nil) -> ::Gapic::Operation
Stop Cross Region Replication.
def stop_replication(request, options = nil) -> ::Gapic::Operation
stop_replication
via a request object, either of type
StopReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::StopReplicationRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def stop_replication(name: nil, force: nil) -> ::Gapic::Operation
stop_replication
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).
- name (::String) — Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
- force (::Boolean) — Indicates whether to stop replication forcefully while data transfer is in progress. Warning! if force is true, this will abort any current transfers and can lead to data loss due to partial transfer. If force is false, stop replication will fail while data transfer is in progress and you will need to retry later.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::StopReplicationRequest.new # Call the stop_replication method. result = client.stop_replication 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
#update_active_directory
def update_active_directory(request, options = nil) -> ::Gapic::Operation
def update_active_directory(update_mask: nil, active_directory: nil) -> ::Gapic::Operation
Update the parameters of an active directories.
def update_active_directory(request, options = nil) -> ::Gapic::Operation
update_active_directory
via a request object, either of type
UpdateActiveDirectoryRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateActiveDirectoryRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_active_directory(update_mask: nil, active_directory: nil) -> ::Gapic::Operation
update_active_directory
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the Active Directory resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- active_directory (::Google::Cloud::NetApp::V1::ActiveDirectory, ::Hash) — Required. The volume being updated
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::UpdateActiveDirectoryRequest.new # Call the update_active_directory method. result = client.update_active_directory 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
#update_kms_config
def update_kms_config(request, options = nil) -> ::Gapic::Operation
def update_kms_config(update_mask: nil, kms_config: nil) -> ::Gapic::Operation
Updates the Kms config properties with the full spec
def update_kms_config(request, options = nil) -> ::Gapic::Operation
update_kms_config
via a request object, either of type
UpdateKmsConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateKmsConfigRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_kms_config(update_mask: nil, kms_config: nil) -> ::Gapic::Operation
update_kms_config
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the KmsConfig resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- kms_config (::Google::Cloud::NetApp::V1::KmsConfig, ::Hash) — Required. The KmsConfig being updated
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::UpdateKmsConfigRequest.new # Call the update_kms_config method. result = client.update_kms_config 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
#update_replication
def update_replication(request, options = nil) -> ::Gapic::Operation
def update_replication(update_mask: nil, replication: nil) -> ::Gapic::Operation
Updates the settings of a specific replication.
def update_replication(request, options = nil) -> ::Gapic::Operation
update_replication
via a request object, either of type
UpdateReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateReplicationRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_replication(update_mask: nil, replication: nil) -> ::Gapic::Operation
update_replication
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update. At least one path must be supplied in this field.
- replication (::Google::Cloud::NetApp::V1::Replication, ::Hash) — Required. A replication resource
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::UpdateReplicationRequest.new # Call the update_replication method. result = client.update_replication 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
#update_snapshot
def update_snapshot(request, options = nil) -> ::Gapic::Operation
def update_snapshot(update_mask: nil, snapshot: nil) -> ::Gapic::Operation
Updates the settings of a specific snapshot.
def update_snapshot(request, options = nil) -> ::Gapic::Operation
update_snapshot
via a request object, either of type
UpdateSnapshotRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateSnapshotRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_snapshot(update_mask: nil, snapshot: nil) -> ::Gapic::Operation
update_snapshot
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Mask of fields to update. At least one path must be supplied in this field.
- snapshot (::Google::Cloud::NetApp::V1::Snapshot, ::Hash) — Required. A snapshot resource
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::UpdateSnapshotRequest.new # Call the update_snapshot method. result = client.update_snapshot 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
#update_storage_pool
def update_storage_pool(request, options = nil) -> ::Gapic::Operation
def update_storage_pool(update_mask: nil, storage_pool: nil) -> ::Gapic::Operation
Updates the storage pool properties with the full spec
def update_storage_pool(request, options = nil) -> ::Gapic::Operation
update_storage_pool
via a request object, either of type
UpdateStoragePoolRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateStoragePoolRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_storage_pool(update_mask: nil, storage_pool: nil) -> ::Gapic::Operation
update_storage_pool
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the StoragePool resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- storage_pool (::Google::Cloud::NetApp::V1::StoragePool, ::Hash) — Required. The pool being updated
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::UpdateStoragePoolRequest.new # Call the update_storage_pool method. result = client.update_storage_pool 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
#update_volume
def update_volume(request, options = nil) -> ::Gapic::Operation
def update_volume(update_mask: nil, volume: nil) -> ::Gapic::Operation
Updates the parameters of a single Volume.
def update_volume(request, options = nil) -> ::Gapic::Operation
update_volume
via a request object, either of type
UpdateVolumeRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateVolumeRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_volume(update_mask: nil, volume: nil) -> ::Gapic::Operation
update_volume
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).
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Field mask is used to specify the fields to be overwritten in the Volume resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.
- volume (::Google::Cloud::NetApp::V1::Volume, ::Hash) — Required. The volume being updated
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::UpdateVolumeRequest.new # Call the update_volume method. result = client.update_volume 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
#verify_kms_config
def verify_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse
def verify_kms_config(name: nil) -> ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse
Verifies KMS config reachability.
def verify_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse
verify_kms_config
via a request object, either of type
VerifyKmsConfigRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::VerifyKmsConfigRequest, ::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.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def verify_kms_config(name: nil) -> ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse
verify_kms_config
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).
- name (::String) — Required. Name of the KMS Config to be verified.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
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::VerifyKmsConfigRequest.new # Call the verify_kms_config method. result = client.verify_kms_config request # The returned object is of type Google::Cloud::NetApp::V1::VerifyKmsConfigResponse. p result