NetApp V1 API - Class Google::Cloud::NetApp::V1::NetApp::Rest::Client (v0.1.0)

Reference documentation and code samples for the NetApp V1 API class Google::Cloud::NetApp::V1::NetApp::Rest::Client.

REST client for the NetApp service.

NetApp Files Google Cloud Service

Inherits

  • Object

Methods

.configure

def self.configure() { |config| ... } -> Client::Configuration

Configure the NetApp Client class.

See Configuration for a description of the configuration fields.

Yields
  • (config) — Configure the Client client.
Yield Parameter
Example
# Modify the configuration for all NetApp clients
::Google::Cloud::NetApp::V1::NetApp::Rest::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.

Yields
  • (config) — Configure the Client client.
Yield Parameter

#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.

Overloads
def create_active_directory(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_active_directory via a request object, either of type CreateActiveDirectoryRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def create_kms_config(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_kms_config via a request object, either of type CreateKmsConfigRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def create_replication(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_replication via a request object, either of type CreateReplicationRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def create_snapshot(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_snapshot via a request object, either of type CreateSnapshotRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def create_storage_pool(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_storage_pool via a request object, either of type CreateStoragePoolRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def create_volume(request, options = nil) -> ::Gapic::Operation
Pass arguments to create_volume via a request object, either of type CreateVolumeRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def delete_active_directory(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_active_directory via a request object, either of type DeleteActiveDirectoryRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the active directory.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def delete_kms_config(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_kms_config via a request object, either of type DeleteKmsConfigRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the KmsConfig.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#delete_replication

def delete_replication(request, options = nil) -> ::Gapic::Operation
def delete_replication(name: nil) -> ::Gapic::Operation

Deletes a replication.

Overloads
def delete_replication(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_replication via a request object, either of type DeleteReplicationRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. The replication resource name, in the format projects/*/locations/*/volumes/*/replications/{replication_id}
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#delete_snapshot

def delete_snapshot(request, options = nil) -> ::Gapic::Operation
def delete_snapshot(name: nil) -> ::Gapic::Operation

Deletes a snapshot.

Overloads
def delete_snapshot(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_snapshot via a request object, either of type DeleteSnapshotRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. The snapshot resource name, in the format projects/*/locations/*/volumes/*/snapshots/{snapshot_id}
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def delete_storage_pool(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_storage_pool via a request object, either of type DeleteStoragePoolRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the storage pool
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#delete_volume

def delete_volume(request, options = nil) -> ::Gapic::Operation
def delete_volume(name: nil, force: nil) -> ::Gapic::Operation

Deletes a single Volume.

Overloads
def delete_volume(request, options = nil) -> ::Gapic::Operation
Pass arguments to delete_volume via a request object, either of type DeleteVolumeRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.)
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def encrypt_volumes(request, options = nil) -> ::Gapic::Operation
Pass arguments to encrypt_volumes via a request object, either of type EncryptVolumesRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the KmsConfig.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def get_active_directory(request, options = nil) -> ::Google::Cloud::NetApp::V1::ActiveDirectory
Pass arguments to get_active_directory via a request object, either of type GetActiveDirectoryRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the active directory.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def get_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::KmsConfig
Pass arguments to get_kms_config via a request object, either of type GetKmsConfigRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the KmsConfig
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def get_replication(request, options = nil) -> ::Google::Cloud::NetApp::V1::Replication
Pass arguments to get_replication via a request object, either of type GetReplicationRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. The replication resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def get_snapshot(request, options = nil) -> ::Google::Cloud::NetApp::V1::Snapshot
Pass arguments to get_snapshot via a request object, either of type GetSnapshotRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. The snapshot resource name, in the format projects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def get_storage_pool(request, options = nil) -> ::Google::Cloud::NetApp::V1::StoragePool
Pass arguments to get_storage_pool via a request object, either of type GetStoragePoolRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the storage pool
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def get_volume(request, options = nil) -> ::Google::Cloud::NetApp::V1::Volume
Pass arguments to get_volume via a request object, either of type GetVolumeRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the volume
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#initialize

def initialize() { |config| ... } -> Client

Create a new NetApp REST client object.

Yields
  • (config) — Configure the NetApp client.
Yield Parameter
Returns
  • (Client) — a new instance of Client
Example
# Create a client using the default configuration
client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new

# Create a client using a custom configuration
client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config|
  config.timeout = 10.0
end

#list_active_directories

def list_active_directories(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse
def list_active_directories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse

Lists active directories.

Overloads
def list_active_directories(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse
Pass arguments to list_active_directories via a request object, either of type ListActiveDirectoriesRequest or an equivalent Hash.
Parameters
  • 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) -> ::Google::Cloud::NetApp::V1::ListActiveDirectoriesResponse
Pass arguments to 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).
Parameters
  • 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#list_kms_configs

def list_kms_configs(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListKmsConfigsResponse
def list_kms_configs(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::NetApp::V1::ListKmsConfigsResponse

Returns descriptions of all KMS configs owned by the caller.

Overloads
def list_kms_configs(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListKmsConfigsResponse
Pass arguments to list_kms_configs via a request object, either of type ListKmsConfigsRequest or an equivalent Hash.
Parameters
  • 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) -> ::Google::Cloud::NetApp::V1::ListKmsConfigsResponse
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#list_replications

def list_replications(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListReplicationsResponse
def list_replications(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::NetApp::V1::ListReplicationsResponse

Returns descriptions of all replications for a volume.

Overloads
def list_replications(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListReplicationsResponse
Pass arguments to list_replications via a request object, either of type ListReplicationsRequest or an equivalent Hash.
Parameters
  • 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) -> ::Google::Cloud::NetApp::V1::ListReplicationsResponse
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#list_snapshots

def list_snapshots(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListSnapshotsResponse
def list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::NetApp::V1::ListSnapshotsResponse

Returns descriptions of all snapshots for a volume.

Overloads
def list_snapshots(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListSnapshotsResponse
Pass arguments to list_snapshots via a request object, either of type ListSnapshotsRequest or an equivalent Hash.
Parameters
  • 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) -> ::Google::Cloud::NetApp::V1::ListSnapshotsResponse
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#list_storage_pools

def list_storage_pools(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListStoragePoolsResponse
def list_storage_pools(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Google::Cloud::NetApp::V1::ListStoragePoolsResponse

Returns descriptions of all storage pools owned by the caller.

Overloads
def list_storage_pools(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListStoragePoolsResponse
Pass arguments to list_storage_pools via a request object, either of type ListStoragePoolsRequest or an equivalent Hash.
Parameters
  • 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) -> ::Google::Cloud::NetApp::V1::ListStoragePoolsResponse
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#list_volumes

def list_volumes(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListVolumesResponse
def list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Google::Cloud::NetApp::V1::ListVolumesResponse

Lists Volumes in a given project.

Overloads
def list_volumes(request, options = nil) -> ::Google::Cloud::NetApp::V1::ListVolumesResponse
Pass arguments to list_volumes via a request object, either of type ListVolumesRequest or an equivalent Hash.
Parameters
  • 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) -> ::Google::Cloud::NetApp::V1::ListVolumesResponse
Pass arguments to 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).
Parameters
  • 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#location_client

def location_client() -> Google::Cloud::Location::Locations::Rest::Client

Get the associated client for mix-in of the Locations.

Returns
  • (Google::Cloud::Location::Locations::Rest::Client)

#operations_client

def operations_client() -> ::Google::Cloud::NetApp::V1::NetApp::Rest::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.

Overloads
def resume_replication(request, options = nil) -> ::Gapic::Operation
Pass arguments to resume_replication via a request object, either of type ResumeReplicationRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def reverse_replication_direction(request, options = nil) -> ::Gapic::Operation
Pass arguments to reverse_replication_direction via a request object, either of type ReverseReplicationDirectionRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def revert_volume(request, options = nil) -> ::Gapic::Operation
Pass arguments to revert_volume via a request object, either of type RevertVolumeRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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}
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#stop_replication

def stop_replication(request, options = nil) -> ::Gapic::Operation
def stop_replication(name: nil, force: nil) -> ::Gapic::Operation

Stop Cross Region Replication.

Overloads
def stop_replication(request, options = nil) -> ::Gapic::Operation
Pass arguments to stop_replication via a request object, either of type StopReplicationRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def update_active_directory(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_active_directory via a request object, either of type UpdateActiveDirectoryRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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

Overloads
def update_kms_config(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_kms_config via a request object, either of type UpdateKmsConfigRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def update_replication(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_replication via a request object, either of type UpdateReplicationRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def update_snapshot(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_snapshot via a request object, either of type UpdateSnapshotRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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

Overloads
def update_storage_pool(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_storage_pool via a request object, either of type UpdateStoragePoolRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def update_volume(request, options = nil) -> ::Gapic::Operation
Pass arguments to update_volume via a request object, either of type UpdateVolumeRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameters
  • 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
  • result (::Gapic::Operation)
  • operation (::Gapic::Rest::TransportOperation)
Returns
  • (::Gapic::Operation)
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.

#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.

Overloads
def verify_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse
Pass arguments to verify_kms_config via a request object, either of type VerifyKmsConfigRequest or an equivalent Hash.
Parameters
  • 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
Pass arguments to 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).
Parameter
  • name (::String) — Required. Name of the KMS Config to be verified.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Raises
  • (::Google::Cloud::Error) — if the REST call is aborted.